Searched refs:unbondCause (Results 1 – 3 of 3) sorted by relevance
/ohos5.0/foundation/communication/bluetooth/frameworks/js/napi/src/common/ |
H A D | napi_native_object.cpp | 171 napi_value unbondCause = nullptr; in ToNapiValue() local 172 napi_create_int32(env, unbondCause_, &unbondCause); in ToNapiValue() 173 napi_set_named_property(env, result, "cause", unbondCause); in ToNapiValue()
|
/ohos5.0/foundation/communication/bluetooth/frameworks/js/napi/src/connection/ |
H A D | napi_bluetooth_connection.cpp | 827 napi_value unbondCause = nullptr; in UnbondCauseInit() local 828 napi_create_object(env, &unbondCause); in UnbondCauseInit() 829 SetNamedPropertyByInteger(env, unbondCause, UNBOND_CAUSE_USER_REMOVED, "USER_REMOVED"); in UnbondCauseInit() 830 …SetNamedPropertyByInteger(env, unbondCause, UNBOND_CAUSE_REMOTE_DEVICE_DOWN, "REMOTE_DEVICE_DOWN"); in UnbondCauseInit() 831 SetNamedPropertyByInteger(env, unbondCause, UNBOND_CAUSE_AUTH_FAILURE, "AUTH_FAILURE"); in UnbondCauseInit() 832 SetNamedPropertyByInteger(env, unbondCause, UNBOND_CAUSE_AUTH_REJECTED, "AUTH_REJECTED"); in UnbondCauseInit() 833 SetNamedPropertyByInteger(env, unbondCause, UNBOND_CAUSE_INTERNAL_ERROR, "INTERNAL_ERROR"); in UnbondCauseInit() 834 return unbondCause; in UnbondCauseInit()
|
/ohos5.0/foundation/communication/bluetooth/frameworks/js/napi/include/ |
H A D | napi_native_object.h | 118 NapiNativeBondStateParam(std::string deviceAddr, int bondStatus, int unbondCause) in NapiNativeBondStateParam() argument 119 : deviceAddr_(deviceAddr), bondStatus_(bondStatus), unbondCause_(unbondCause) {} in NapiNativeBondStateParam()
|