Home
last modified time | relevance | path

Searched refs:unbondCause (Results 1 - 3 of 3) sorted by relevance

/foundation/communication/bluetooth/frameworks/js/napi/src/common/
H A Dnapi_native_object.cpp168 napi_value unbondCause = nullptr; in ToNapiValue() local
169 napi_create_int32(env, unbondCause_, &unbondCause); in ToNapiValue()
170 napi_set_named_property(env, result, "cause", unbondCause); in ToNapiValue()
/foundation/communication/bluetooth/frameworks/js/napi/src/connection/
H A Dnapi_bluetooth_connection.cpp858 napi_value unbondCause = nullptr; in UnbondCauseInit() local
859 napi_create_object(env, &unbondCause); in UnbondCauseInit()
860 SetNamedPropertyByInteger(env, unbondCause, UNBOND_CAUSE_USER_REMOVED, "USER_REMOVED"); in UnbondCauseInit()
861 SetNamedPropertyByInteger(env, unbondCause, UNBOND_CAUSE_REMOTE_DEVICE_DOWN, "REMOTE_DEVICE_DOWN"); in UnbondCauseInit()
862 SetNamedPropertyByInteger(env, unbondCause, UNBOND_CAUSE_AUTH_FAILURE, "AUTH_FAILURE"); in UnbondCauseInit()
863 SetNamedPropertyByInteger(env, unbondCause, UNBOND_CAUSE_AUTH_REJECTED, "AUTH_REJECTED"); in UnbondCauseInit()
864 SetNamedPropertyByInteger(env, unbondCause, UNBOND_CAUSE_INTERNAL_ERROR, "INTERNAL_ERROR"); in UnbondCauseInit()
865 return unbondCause; in UnbondCauseInit()
/foundation/communication/bluetooth/frameworks/js/napi/include/
H A Dnapi_native_object.h118 NapiNativeBondStateParam(std::string deviceAddr, int bondStatus, int unbondCause) in NapiNativeBondStateParam() argument
119 : deviceAddr_(deviceAddr), bondStatus_(bondStatus), unbondCause_(unbondCause) {} in NapiNativeBondStateParam()

Completed in 4 milliseconds