/foundation/communication/bluetooth/frameworks/js/napi/src/pbap/ |
H A D | napi_bluetooth_pbap_pse.cpp | 110 napi_value shareType = nullptr;
in ShareTypeInit() local 111 napi_create_object(env, &shareType);
in ShareTypeInit() 112 SetNamedPropertyByInteger(env, shareType, ShareType::SHARE_NAME_AND_PHONE_NUMBER, "SHARE_NAME_AND_PHONE_NUMBER");
in ShareTypeInit() 113 SetNamedPropertyByInteger(env, shareType, ShareType::SHARE_ALL, "SHARE_ALL");
in ShareTypeInit() 114 SetNamedPropertyByInteger(env, shareType, ShareType::SHARE_NOTHING, "SHARE_NOTHING");
in ShareTypeInit() 115 return shareType;
in ShareTypeInit() 238 bool IsShareTypeValid(int32_t shareType)
in IsShareTypeValid() argument 240 return shareType == static_cast<int32_t>(ShareType::SHARE_NAME_AND_PHONE_NUMBER) ||
in IsShareTypeValid() 241 shareType == static_cast<int32_t>(ShareType::SHARE_ALL) ||
in IsShareTypeValid() 242 shareType in IsShareTypeValid() 245 CheckShareTypeParam(napi_env env, napi_callback_info info, std::string &addr, int32_t &shareType) CheckShareTypeParam() argument 261 int32_t shareType = 0; SetShareType() local [all...] |
/foundation/communication/bluetooth/frameworks/inner/src/ |
H A D | bluetooth_pbap_pse.cpp | 207 bool CheckShareTypeInvalid(int32_t shareType)
in CheckShareTypeInvalid() argument 209 if (shareType == static_cast<int32_t>(BTShareType::SHARE_NAME_AND_PHONE_NUMBER) ||
in CheckShareTypeInvalid() 210 shareType == static_cast<int32_t>(BTShareType::SHARE_ALL) ||
in CheckShareTypeInvalid() 211 shareType == static_cast<int32_t>(BTShareType::SHARE_NOTHING)) {
in CheckShareTypeInvalid() 217 int32_t PbapPse::SetShareType(const BluetoothRemoteDevice &device, int32_t shareType)
in SetShareType() argument 219 HILOGI("device: %{public}s, shareType: %{public}d", GET_ENCRYPT_ADDR(device), shareType);
in SetShareType() 224 CHECK_AND_RETURN_LOG_RET(CheckShareTypeInvalid(shareType), BT_ERR_INVALID_PARAM, "shareType param error");
in SetShareType() 226 return proxy->SetShareType(BluetoothRawAddress(device.GetDeviceAddr()), shareType);
in SetShareType() [all...] |
/foundation/communication/netmanager_ext/services/networksharemanager/src/stub/ |
H A D | networkshare_service_stub.cpp | 107 SharingIfaceType shareType = static_cast<SharingIfaceType>(type); in ReplyStartNetworkSharing() local 108 int32_t ret = StartNetworkSharing(shareType); in ReplyStartNetworkSharing() 121 SharingIfaceType shareType = static_cast<SharingIfaceType>(type); in ReplyStopNetworkSharing() local 122 int32_t ret = StopNetworkSharing(shareType); in ReplyStopNetworkSharing() 135 SharingIfaceType shareType = static_cast<SharingIfaceType>(type); in ReplyGetSharableRegexs() local 137 int32_t ret = GetSharableRegexs(shareType, ifaceRegexs); in ReplyGetSharableRegexs() 159 SharingIfaceType shareType = static_cast<SharingIfaceType>(type); in ReplyGetSharingState() local 161 int32_t ret = GetSharingState(shareType, shareState); in ReplyGetSharingState()
|
/foundation/communication/bluetooth/frameworks/inner/ipc/interface/ |
H A D | i_bluetooth_pbap_pse.h | 35 virtual int32_t SetShareType(const BluetoothRawAddress &device, int32_t shareType) = 0;
36 virtual int32_t GetShareType(const BluetoothRawAddress &device, int32_t &shareType) = 0;
|
/foundation/communication/bluetooth/interfaces/inner_api/include/ |
H A D | bluetooth_pbap_pse.h | 127 * @param shareType The share type.
130 int32_t SetShareType(const BluetoothRemoteDevice &device, int32_t shareType);
136 * @param shareType The share type.
139 int32_t GetShareType(const BluetoothRemoteDevice &device, int32_t &shareType) const;
|
/foundation/communication/bluetooth/frameworks/inner/ipc/include/ |
H A D | bluetooth_pbap_pse_proxy.h | 35 int32_t SetShareType(const BluetoothRawAddress &device, int32_t shareType) override;
36 int32_t GetShareType(const BluetoothRawAddress &device, int32_t &shareType) override;
|
/foundation/communication/bluetooth/frameworks/inner/ipc/src/ |
H A D | bluetooth_pbap_pse_proxy.cpp | 122 int32_t BluetoothPbapPseProxy::SetShareType(const BluetoothRawAddress &device, int32_t shareType)
in SetShareType() argument 128 CHECK_AND_RETURN_LOG_RET(data.WriteInt32(shareType), BT_ERR_IPC_TRANS_FAILED, "Write shareType error");
in SetShareType() 139 int32_t BluetoothPbapPseProxy::GetShareType(const BluetoothRawAddress &device, int32_t &shareType)
in GetShareType() argument 154 shareType = reply.ReadInt32();
in GetShareType()
|