/ohos5.0/drivers/hdf_core/framework/support/platform/src/fwk/ |
H A D | platform_device.c | 34 if (device == NULL) { in PlatformDeviceOnLastPut() 61 if (device == NULL) { in PlatformDeviceSetName() 104 if (device != NULL && device->name != NULL) { in PlatformDeviceClearName() 114 if (device == NULL) { in PlatformDeviceInit() 142 if (device == NULL) { in PlatformDeviceUninit() 154 if (device == NULL) { in PlatformDeviceGet() 165 if (device != NULL) { in PlatformDevicePut() 172 if (device != NULL) { in PlatformDeviceRefCount() 233 device->name, manager->device.name); in PlatformDeviceDel() 401 (void)device; in PlatformDeviceGetDrs() [all …]
|
H A D | platform_manager.c | 19 (void)OsalSpinLockIrqSave(&manager->device.spin, &manager->device.irqSave); in PlatformManagerLock() 137 device->name, device->number, manager->device.name); in PlatformManagerAddDeviceDefault() 140 if (device->name != NULL && device->name == tmp->name) { in PlatformManagerAddDeviceDefault() 143 device->name, device->number, manager->device.name); in PlatformManagerAddDeviceDefault() 179 device->name, device->number, manager->device.name); in PlatformManagerAddDevice() 193 device->name, device->number, manager->device.name); in PlatformManagerAddDevice() 197 device->name, device->number, manager->device.name, ret); in PlatformManagerAddDevice() 237 device->name, device->number, manager->device.name); in PlatformManagerDelDevice() 251 device->name, device->number, manager->device.name); in PlatformManagerDelDevice() 254 device->name, device->number, manager->device.name, ret); in PlatformManagerDelDevice() [all …]
|
/ohos5.0/drivers/hdf_core/framework/support/platform/src/clock/ |
H A D | clock_core.c | 58 return device->lockOps->lock(device); in ClockDeviceLock() 64 device->lockOps->unlock(device); in ClockDeviceUnlock() 247 ret = device->ops->start(device); in ClockDeviceStart() 272 ret = device->ops->stop(device); in ClockDeviceStop() 334 ret = device->ops->setRate(device, rate); in ClockDeviceSetRate() 358 ret = device->ops->getRate(device, rate); in ClockDeviceGetRate() 382 parent = device->ops->getParent(device); in ClockDeviceGetParent() 412 ret = device->ops->setParent(device, parent); in ClockDeviceSetParent() 438 ret = device->ops->disable(device); in ClockDeviceDisable() 463 ret = device->ops->enable(device); in ClockDeviceEnable() [all …]
|
/ohos5.0/drivers/hdf_core/framework/support/platform/src/adc/ |
H A D | adc_core.c | 62 return device->lockOps->lock(device); in AdcDeviceLock() 68 device->lockOps->unlock(device); in AdcDeviceUnlock() 81 if (device->ops == NULL || device->ops->start == NULL) { in AdcDeviceStart() 91 ret = device->ops->start(device); in AdcDeviceStart() 113 if (device->ops == NULL || device->ops->stop == NULL) { in AdcDeviceStop() 123 ret = device->ops->stop(device); in AdcDeviceStop() 161 manager->devices[device->devNum] = device; in AdcManagerAddDevice() 188 if (manager->devices[device->devNum] != device) { in AdcManagerRemoveDevice() 315 if (device->ops == NULL || device->ops->read == NULL) { in AdcDeviceRead() 330 ret = device->ops->read(device, channel, val); in AdcDeviceRead() [all …]
|
/ohos5.0/drivers/hdf_core/framework/support/platform/src/dac/ |
H A D | dac_core.c | 65 return device->lockOps->lock(device); in DacDeviceLock() 75 device->lockOps->unlock(device); in DacDeviceUnlock() 107 manager->devices[device->devNum] = device; in DacManagerAddDevice() 138 if (manager->devices[device->devNum] != device) { in DacManagerRemoveDevice() 265 if (device->ops == NULL || device->ops->write == NULL) { in DacDeviceWrite() 275 ret = device->ops->write(device, channel, val); in DacDeviceWrite() 289 if (device->ops == NULL || device->ops->start == NULL) { in DacDeviceStart() 299 ret = device->ops->start(device); in DacDeviceStart() 321 if (device->ops == NULL || device->ops->stop == NULL) { in DacDeviceStop() 331 ret = device->ops->stop(device); in DacDeviceStop() [all …]
|
/ohos5.0/foundation/multimedia/audio_framework/frameworks/native/bluetoothclient/ |
H A D | bluetooth_device_manager.cpp | 103 BluetoothRemoteDevice device; in SendUserSelectionEvent() local 163 HandleWearDevice(device); in SetMediaStack() 175 HandleWearEnable(device); in SetMediaStack() 178 HandleWearDisable(device); in SetMediaStack() 458 a2dpBluetoothDeviceMap_[device.GetDeviceAddr()] = device; in NotifyToUpdateAudioDevice() 508 BluetoothRemoteDevice &device) in GetConnectedA2dpBluetoothDevice() argument 513 device = deviceIter->second; in GetConnectedA2dpBluetoothDevice() 827 stopVirtualCallHandle_.device = device; in HandleStopVirtualCall() 899 hfpBluetoothDeviceMap_[device.GetDeviceAddr()] = device; in NotifyToUpdateAudioDevice() 951 BluetoothRemoteDevice &device) in GetConnectedHfpBluetoothDevice() argument [all …]
|
H A D | bluetooth_device_manager.h | 34 bool IsBTWearDetectionEnable(const BluetoothRemoteDevice &device); 43 static void HandleConnectDevice(const BluetoothRemoteDevice &device); 45 static void HandleWearDevice(const BluetoothRemoteDevice &device); 46 static void HandleUnwearDevice(const BluetoothRemoteDevice &device); 47 static void HandleEnableDevice(const BluetoothRemoteDevice &device); 48 static void HandleDisableDevice(const BluetoothRemoteDevice &device); 49 static void HandleWearEnable(const BluetoothRemoteDevice &device); 50 static void HandleWearDisable(const BluetoothRemoteDevice &device); 82 BluetoothRemoteDevice device; member 94 static void HandleWearDevice(const BluetoothRemoteDevice &device); [all …]
|
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/server/src/ |
H A D | bluetooth_hfp_hf_server.cpp | 195 RawAddress addr(device.GetAddress()); in ConnectSco() 204 RawAddress addr(device.GetAddress()); in DisconnectSco() 242 RawAddress addr(device.GetAddress()); in GetDeviceState() 251 RawAddress addr(device.GetAddress()); in GetScoState() 260 RawAddress addr(device.GetAddress()); in SendDTMFTone() 269 RawAddress addr(device.GetAddress()); in Connect() 278 RawAddress addr(device.GetAddress()); in Disconnect() 287 RawAddress addr(device.GetAddress()); in OpenVoiceRecognition() 296 RawAddress addr(device.GetAddress()); in CloseVoiceRecognition() 307 RawAddress addr(device.GetAddress()); in GetCurrentCallList() [all …]
|
/ohos5.0/drivers/hdf_core/framework/core/host/src/ |
H A D | hdf_device.c | 59 nodeId = device->devidIndex; in AcquireNodeDeivceId() 65 device->devidIndex++; in AcquireNodeDeivceId() 74 *devid = MK_DEVID(HOSTID(device->deviceId), DEVICEID(device->deviceId), nodeId); in AcquireNodeDeivceId() 107 struct HdfDevice *device = NULL; in HdfDeviceDetach() local 161 DListHeadInit(&device->devNodes); in HdfDeviceConstruct() 177 if (device != NULL) { in HdfDeviceCreate() 178 HdfDeviceConstruct(device); in HdfDeviceCreate() 186 if (device != NULL) { in HdfDeviceRelease() 187 HdfDeviceDestruct(device); in HdfDeviceRelease() 188 OsalMemFree(device); in HdfDeviceRelease() [all …]
|
H A D | devhost_service.c | 31 return device; in DevHostServiceFindDevice() 40 if (device != NULL) { in DevHostServiceFreeDevice() 49 if (device == NULL) { in DevHostServiceQueryOrAddDevice() 60 return device; in DevHostServiceQueryOrAddDevice() 78 if (device == NULL || device->super.Attach == NULL) { in DevHostServiceAddDevice() 82 devNode = device->super.GetDeviceNode(&device->super, deviceInfo->deviceId); in DevHostServiceAddDevice() 102 devNode->device = device; in DevHostServiceAddDevice() 104 ret = device->super.Attach(&device->super, devNode); in DevHostServiceAddDevice() 128 if (device == NULL) { in DevHostServiceDelDevice() 133 devNode = device->super.GetDeviceNode(&device->super, devId); in DevHostServiceDelDevice() [all …]
|
/ohos5.0/foundation/communication/bluetooth/frameworks/inner/src/ |
H A D | bluetooth_hfp_hf.cpp | 501 return pimpl->ConnectSco(device); in ConnectSco() 514 return pimpl->DisconnectSco(device); in DisconnectSco() 540 return pimpl->GetDeviceState(device); in GetDeviceState() 553 return pimpl->GetScoState(device); in GetScoState() 578 return pimpl->Connect(device); in Connect() 591 return pimpl->Disconnect(device); in Disconnect() 630 return pimpl->GetExistingCalls(device); in GetExistingCalls() 655 return pimpl->HoldActiveCall(device); in HoldActiveCall() 673 return pimpl->SendKeyPressed(device); in SendKeyPressed() 712 return pimpl->DialLastNumber(device); in DialLastNumber() [all …]
|
H A D | bluetooth_avrcp_ct.cpp | 98 impl_->OnSetBrowsedPlayer(device, in OnSetBrowsedPlayer() 210 impl_->OnGetPlayStatus(device, in OnGetPlayStatus() 298 impl_->OnGetTotalNumberOfItems(device, in OnGetTotalNumberOfItems() 453 GET_ENCRYPT_ADDR(device), state, cause); in OnConnectionStateChanged() 465 GET_ENCRYPT_ADDR(device), button, result); in OnPressButton() 472 observer->OnActionCompleted(device, resp); in OnPressButton() 479 GET_ENCRYPT_ADDR(device), button, result); in OnReleaseButton() 486 observer->OnActionCompleted(device, resp); in OnReleaseButton() 494 GET_ENCRYPT_ADDR(device), result, detail); in OnSetBrowsedPlayer() 954 devices.push_back(device); in GetConnectedDevices() [all …]
|
H A D | bluetooth_a2dp_src.cpp | 193 devices.push_back(device); in GetDevicesByStates() 208 if (!device.IsValidBluetoothRemoteDevice()) { in GetDeviceState() 228 if (!device.IsValidBluetoothRemoteDevice()) { in GetPlayingState() 249 if (!device.IsValidBluetoothRemoteDevice()) { in GetPlayingState() 268 if (!device.IsValidBluetoothRemoteDevice()) { in Connect() 286 if (!device.IsValidBluetoothRemoteDevice()) { in Disconnect() 316 if (!device.IsValidBluetoothRemoteDevice()) { in SetActiveSinkDevice() 370 if (!device.IsValidBluetoothRemoteDevice()) { in GetConnectStrategy() 389 if (!device.IsValidBluetoothRemoteDevice()) { in GetCodecStatus() 432 if (!device.IsValidBluetoothRemoteDevice()) { in GetCodecPreference() [all …]
|
/ohos5.0/drivers/hdf_core/adapter/khdf/uniproton/test/sample_driver/src/ |
H A D | platform_device_test.c | 57 PlatformDeviceClearName(device); in PlatformDeviceTestSetName() 67 PlatformDeviceClearName(device); in PlatformDeviceTestSetName() 83 ret = PlatformDeviceGet(device); in PlatformDeviceTestGetDevice() 91 ret = PlatformDeviceGet(device); in PlatformDeviceTestGetDevice() 98 PlatformDevicePut(device); in PlatformDeviceTestGetDevice() 103 PlatformDevicePut(device); in PlatformDeviceTestGetDevice() 125 device->manager = manager; in PlatformDeviceTestAddDevice() 127 ret = PlatformDeviceAdd(device); in PlatformDeviceTestAddDevice() 135 PlatformDeviceDel(device); in PlatformDeviceTestAddDevice() 325 ret = entry->func(&device); in PlatformDeviceTestExecute() [all …]
|
/ohos5.0/drivers/hdf_core/framework/test/unittest/platform/virtual/ |
H A D | clock_virtual.c | 21 if (device->clk != NULL) { in VirtualClockStart() 26 device->clk = (void *)&device->deviceIndex; in VirtualClockStart() 32 if (device->clk == NULL) { in VirtualClockSetRate() 42 if (device->clk == NULL) { in VirtualClockStop() 47 device->clk = NULL; in VirtualClockStop() 100 if (device->parent && device->parent->deviceName == NULL) { in VirtualClockSetParent() 104 device->parent = parent; in VirtualClockSetParent() 130 device->parent->clk = device->clk; in VirtualClockGetParent() 193 if (device == NULL || device->property == NULL) { in VirtualClockInit() 211 virtual->device.priv = (void *)device->property; in VirtualClockInit() [all …]
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/syncer/src/device/ |
H A D | subscribe_manager.cpp | 38 unFinishedLocalAutoSubMap_.erase(device); in ClearLocalSubscribeQuery() 79 … unFinishedLocalAutoSubMap_[device].find(queryId) != unFinishedLocalAutoSubMap_[device].end()) { in ActiveLocalSubscribeQuery() 149 … unFinishedLocalAutoSubMap_[device].find(queryId) != unFinishedLocalAutoSubMap_[device].end()) { in RemoveLocalSubscribeQuery() 208 for (const auto &device : devices) { in LocalSubscribeLimitCheck() local 251 subscribeMap.erase(device); in ClearSubscribeQuery() 259 auto iter = subscribeMap.find(device); in ReserveSubscribeQuery() 285 if (subscribeMap[device].find(queryId) == subscribeMap[device].end()) { in ReserveSubscribeQuery() 308 if (subscribeMap[device].find(queryId) == subscribeMap[device].end()) { in ActiveSubscribeQuery() 323 if (subscribeMap[device].find(queryId) == subscribeMap[device].end()) { in DeleteSubscribeQuery() 333 subscribeMap[device].erase(queryId); in DeleteSubscribeQuery() [all …]
|
/ohos5.0/foundation/multimodalinput/input/intention/cooperate/plugin/src/ |
H A D | input_device_mgr.cpp | 90 CHKPC(device); in AddVirtualInputDevice() 100 CHKPC(device); in RemoveVirtualInputDevice() 108 CHKPV(notice.device); in HandleRemoteHotPlug() 160 CHKPV(device); in BroadcastHotPlugToRemote() 187 DispDeviceInfo(device); in RemoveRemoteInputDevice() 215 CHKPV(device); in DispDeviceInfo() 246 packet << device->GetId() << device->GetDevPath() << device->GetSysPath() << device->GetBus() << in SerializeDevice() 247 device->GetVendor() << device->GetProduct() << device->GetVersion() << device->GetName() << in SerializeDevice() 248 device->GetPhys() << device->GetUniq() << device->IsPointerDevice() << device->IsKeyboard() << in SerializeDevice() 260 CHKPP(device); in Transform() [all …]
|
/ohos5.0/base/msdp/device_status/intention/cooperate/plugin/src/ |
H A D | input_device_mgr.cpp | 90 CHKPC(device); in AddVirtualInputDevice() 100 CHKPC(device); in RemoveVirtualInputDevice() 108 CHKPV(notice.device); in HandleRemoteHotPlug() 160 CHKPV(device); in BroadcastHotPlugToRemote() 187 DispDeviceInfo(device); in RemoveRemoteInputDevice() 215 CHKPV(device); in DispDeviceInfo() 246 packet << device->GetId() << device->GetDevPath() << device->GetSysPath() << device->GetBus() << in SerializeDevice() 247 device->GetVendor() << device->GetProduct() << device->GetVersion() << device->GetName() << in SerializeDevice() 248 device->GetPhys() << device->GetUniq() << device->IsPointerDevice() << device->IsKeyboard() << in SerializeDevice() 260 CHKPP(device); in Transform() [all …]
|
/ohos5.0/drivers/hdf_core/framework/test/unittest/platform/common/ |
H A D | platform_device_test.c | 37 PlatformDeviceClearName(device); in PlatformDeviceTestSetName() 47 PlatformDeviceClearName(device); in PlatformDeviceTestSetName() 63 ret = PlatformDeviceGet(device); in PlatformDeviceTestGetDevice() 71 ret = PlatformDeviceGet(device); in PlatformDeviceTestGetDevice() 78 PlatformDevicePut(device); in PlatformDeviceTestGetDevice() 83 PlatformDevicePut(device); in PlatformDeviceTestGetDevice() 133 device->manager = manager; in PlatformDeviceTestAddDevice() 143 PlatformDeviceDel(device); in PlatformDeviceTestAddDevice() 189 device->service = &service; in PlatformDeviceTestBindDevice() 310 ret = entry->func(&device); in PlatformDeviceTestExecute() [all …]
|
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/service/src/hfp_ag/ |
H A D | hfp_ag_profile_event_sender.cpp | 40 msg.dev_ = device; in AnswerCall() 48 msg.dev_ = device; in HangupCall() 57 msg.dev_ = device; in HfVolumeChanged() 65 msg.dev_ = device; in DialOutCall() 75 msg.dev_ = device; in SendDtmf() 84 msg.dev_ = device; in EnableNoiseReduction() 93 msg.dev_ = device; in VoiceRecognitionStateChanged() 102 msg.dev_ = device; in HoldCall() 110 msg.dev_ = device; in GetSubscriberNumber() 118 msg.dev_ = device; in GetAgIndicator() [all …]
|
H A D | hfp_ag_profile_event_sender.h | 44 void AnswerCall(const std::string &device) const; 51 void HangupCall(const std::string &device) const; 76 void SendDtmf(const std::string &device, int dtmf) const; 92 void HoldCall(const std::string &device, int chld) const; 106 void GetAgIndicator(const std::string &device) const; 113 void GetNetworkOperater(const std::string &device) const; 120 void GetCurrentCalls(const std::string &device) const; 135 void ProcessAtBcc(const std::string &device) const; 142 void ProcessAtBcs(const std::string &device) const; 246 void SendRingAndClip(const std::string &device) const; [all …]
|
/ohos5.0/drivers/hdf_core/adapter/khdf/linux/platform/clock/ |
H A D | clock_adapter.c | 58 device->clk = clk; in ClockStart() 67 clk = device->clk; in ClockLinuxSetRate() 80 clk = device->clk; in ClockStop() 98 clk = device->clk; in ClockLinuxGetRate() 112 clk = device->clk; in ClockLinuxDisable() 170 if (device->parent && device->parent->deviceName == NULL) { in ClockLinuxSetParent() 273 (void)device; in ClockParseAndDeviceAdd() 304 if (device == NULL || device->property == NULL) { in LinuxClockInit() 341 if (device != NULL && device->priv == node) { in ClockRemoveByNode() 346 if (device->parent && device->parent->deviceName == NULL) { in ClockRemoveByNode() [all …]
|
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_p2p/ |
H A D | wifi_p2p_device_manager.cpp | 28 if (!device.IsValid()) { in AddDevice() 34 if (*it == device) { in AddDevice() 40 device.GetDeviceName().c_str(), device.GetDeviceAddress().c_str(), in AddDevice() 44 __func__, device.GetDeviceName().c_str(), device.GetDeviceAddress().c_str()); in AddDevice() 91 if (!device.IsValid()) { in UpdateDevice() 97 if (*it == device) { in UpdateDevice() 98 *it = device; in UpdateDevice() 104 __func__, device.GetDeviceName().c_str(), device.GetDeviceAddress().c_str()); in UpdateDevice() 134 __func__, device.GetDeviceName().c_str(), device.GetDeviceAddress().c_str()); in UpdateDeviceSupplicantInf() 227 return UpdateGroupAddress(device.GetDeviceAddress(), device.GetGroupAddress()); in UpdateGroupAddress() [all …]
|
/ohos5.0/foundation/communication/bluetooth/interfaces/inner_api/include/ |
H A D | bluetooth_hfp_hf.h | 188 bool ConnectSco(const BluetoothRemoteDevice &device); 197 bool DisconnectSco(const BluetoothRemoteDevice &device); 215 int GetDeviceState(const BluetoothRemoteDevice &device) const; 224 int GetScoState(const BluetoothRemoteDevice &device) const; 243 bool Connect(const BluetoothRemoteDevice &device); 252 bool Disconnect(const BluetoothRemoteDevice &device); 261 bool OpenVoiceRecognition(const BluetoothRemoteDevice &device); 298 bool HoldActiveCall(const BluetoothRemoteDevice &device); 307 bool RejectIncomingCall(const BluetoothRemoteDevice &device); 309 bool SendKeyPressed(const BluetoothRemoteDevice &device); [all …]
|
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/service/include/ |
H A D | interface_profile_hfp_hf.h | 75 virtual void OnScoStateChanged(const RawAddress &device, int state) in OnScoStateChanged() argument 190 virtual bool ConnectSco(const RawAddress &device) = 0; 199 virtual bool DisconnectSco(const RawAddress &device) = 0; 217 virtual int GetDeviceState(const RawAddress &device) = 0; 226 virtual int GetScoState(const RawAddress &device) = 0; 245 virtual bool OpenVoiceRecognition(const RawAddress &device) = 0; 254 virtual bool CloseVoiceRecognition(const RawAddress &device) = 0; 282 virtual bool HoldActiveCall(const RawAddress &device) = 0; 291 virtual bool RejectIncomingCall(const RawAddress &device) = 0; 300 virtual bool SendKeyPressed(const RawAddress &device) = 0; [all …]
|