Home
last modified time | relevance | path

Searched refs:gattDevice (Results 1 - 2 of 2) sorted by relevance

/foundation/communication/bluetooth/frameworks/inner/ipc/parcel/
H A Dbluetooth_gatt_device.cpp45 BluetoothGattDevice *gattDevice = new BluetoothGattDevice(); in Unmarshalling() local
46 if (gattDevice != nullptr && !gattDevice->ReadFromParcel(parcel)) { in Unmarshalling()
47 delete gattDevice; in Unmarshalling()
48 gattDevice = nullptr; in Unmarshalling()
50 return gattDevice; in Unmarshalling()
/foundation/communication/bluetooth/frameworks/inner/src/
H A Dbluetooth_gatt_server.cpp523 for (auto &gattDevice : devices_) { in FindConnectedDevice()
524 if (device.GetDeviceAddr().compare(gattDevice.addr_.GetAddress()) == 0 && in FindConnectedDevice()
526 (gattDevice.transport_ == GATT_TRANSPORT_TYPE_LE) ? BT_TRANSPORT_BLE : BT_TRANSPORT_BREDR)) { in FindConnectedDevice()
527 return &gattDevice; in FindConnectedDevice()
692 bluetooth::GattDevice gattDevice(bluetooth::RawAddress(device.GetDeviceAddr()), GATT_TRANSPORT_TYPE_LE); in Connect()
693 return proxy->Connect(appId, gattDevice, isDirect); in Connect()
703 auto gattDevice = pimpl->FindConnectedDevice(device); in CancelConnection() local
704 if (gattDevice == nullptr) { in CancelConnection()
705 HILOGE("gattDevice is nullptr"); in CancelConnection()
711 return proxy->CancelConnection(appId, *gattDevice); in CancelConnection()
[all...]

Completed in 3 milliseconds