/ohos5.0/foundation/ability/dmsfwk/services/dtbschedmgr/test/missionCenterDemo/dmsDemo/entry/src/main/ets/pages/ |
H A D | Index.ets | 83 Text("本机:"+this.deviceManager.localDevice.deviceInfo.deviceName) 86 .backgroundColor(this.deviceManager.localDevice.color) 92 … let networkId = CommonTools.getInstance().getNetworkId(this.deviceManager.localDevice); 94 this.deviceManager.currentDevice=this.deviceManager.localDevice 98 this.deviceManager.localDevice.color=Color.Blue 102 this.deviceManager.localDevice.color=Color.Grey 106 if(this.deviceManager.localDevice.deviceInfo.networkId && 113 this.deviceManager.localDevice.color = Color.Green 118 this.deviceManager.localDevice.color = Color.Grey 147 if (this.deviceManager.localDevice.deviceInfo.networkId && [all …]
|
H A D | faultCase.ets | 100 if (this.deviceManager && this.deviceManager.localDevice.deviceInfo.deviceId) { 101 this.srcDeviceId = this.deviceManager.localDevice.deviceInfo.deviceId;
|
/ohos5.0/base/notification/distributed_notification_service/services/distributed/test/unittest/mock/ |
H A D | mock_distributed_kv_data_manager.cpp | 50 Status DistributedKvDataManager::GetLocalDevice(DeviceInfo &localDevice) in GetLocalDevice() argument 52 localDevice.deviceId = "<localDeviceId>"; in GetLocalDevice() 53 localDevice.deviceName = "<localDeviceName>"; in GetLocalDevice() 54 localDevice.deviceType = "<localDeviceType>"; in GetLocalDevice() 60 DeviceInfo localDevice = { in GetDeviceList() local 71 deviceInfoList.push_back(localDevice); in GetDeviceList()
|
H A D | mock_device_manager_impl.cpp | 40 DmDeviceInfo localDevice; in GetTrustedDeviceList() local 41 memset_s(&localDevice, sizeof(localDevice), 0, sizeof(localDevice)); in GetTrustedDeviceList() 42 strcpy_s(localDevice.deviceId, sizeof(localDevice.deviceId) - 1, "<localDeviceId>"); in GetTrustedDeviceList() 43 strcpy_s(localDevice.deviceName, sizeof(localDevice.deviceName) - 1, "<localDeviceName>"); in GetTrustedDeviceList() 51 deviceList.push_back(localDevice); in GetTrustedDeviceList()
|
/ohos5.0/foundation/ability/dmsfwk/services/dtbschedmgr/test/missionCenterDemo/dmsDemo/entry/src/main/ets/Util/ |
H A D | DeviceManager.ets | 39 localDevice: Device = new Device({deviceId: '', deviceName: '', deviceType: ''}, true) 66 Logger.info('lxw success' + JSON.stringify(self.localDevice)); 67 let networkId = CommonTools.getInstance().getNetworkId(self.localDevice); 69 self.currentDevice = self.localDevice 133 this.localDevice = new Device(deviceInfo, true) 206 if (this.toDeviceId == this.localDevice.deviceInfo.networkId) { 210 if (this.fromDeviceId != this.localDevice.deviceInfo.networkId 211 && this.toDeviceId != this.localDevice.deviceInfo.networkId) {
|
/ohos5.0/base/security/access_token/services/tokensyncmanager/src/device/ |
H A D | device_info_manager.cpp | 65 std::string localDevice = ConstantCommon::GetLocalDeviceId(); in RemoveAllRemoteDeviceInfo() local 69 localDevice, DeviceIdType::UNIQUE_DISABILITY_ID, localDeviceInfoOpt)) { in RemoveAllRemoteDeviceInfo() 80 std::string localDevice = ConstantCommon::GetLocalDeviceId(); in RemoveRemoteDeviceInfo() local 82 if (deviceInfo.deviceId.uniqueDeviceId != localDevice) { in RemoveRemoteDeviceInfo()
|
/ohos5.0/foundation/multimedia/av_session/services/session/server/ |
H A D | avrouter_impl.cpp | 322 OutputDeviceInfo localDevice; in StartCast() local 327 localDevice.deviceInfos_.emplace_back(localInfo); in StartCast() 328 castHandleInfo.outputDeviceInfo_ = localDevice; in StartCast() 378 OutputDeviceInfo localDevice; in StopCast() local 383 localDevice.deviceInfos_.emplace_back(localInfo); in StopCast() 384 castHandleToInfoMap_[castHandle].outputDeviceInfo_ = localDevice; in StopCast() 525 OutputDeviceInfo localDevice; in OnCastStateChange() local 530 localDevice.deviceInfos_.emplace_back(localInfo); in OnCastStateChange() 531 castHandleToInfoMap_[number].outputDeviceInfo_ = localDevice; in OnCastStateChange()
|
H A D | avsession_item.cpp | 1403 OutputDeviceInfo localDevice; in RegisterDeviceStateCallback() local 1408 localDevice.deviceInfos_.emplace_back(localInfo); in RegisterDeviceStateCallback() 1409 descriptor_.outputDeviceInfo_ = localDevice; in RegisterDeviceStateCallback() 2076 OutputDeviceInfo localDevice; in SaveLocalDeviceInfo() local 2081 localDevice.deviceInfos_.emplace_back(localInfo); in SaveLocalDeviceInfo() 2082 descriptor_.outputDeviceInfo_ = localDevice; in SaveLocalDeviceInfo()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/syncer/src/device/ |
H A D | commit_history_sync.cpp | 564 std::string localDevice; in GetDeviceLatestCommit() local 565 errCode = GetLocalDeviceInfo(localDevice); in GetDeviceLatestCommit() 566 LOGD("GetLocalDeviceInfo : %s{private}, errCode = %d", localDevice.c_str(), errCode); in GetDeviceLatestCommit() 572 errCode = storagePtr_->TransferSyncCommitDevInfo(item.second, localDevice, false); in GetDeviceLatestCommit() 587 std::string localDevice; in GetCommitTree() local 588 int errCode = GetLocalDeviceInfo(localDevice); in GetCommitTree() 589 LOGD("GetLocalDeviceInfo : %s{private}, errCode = %d", localDevice.c_str(), errCode); in GetCommitTree() 596 errCode = storagePtr_->TransferSyncCommitDevInfo(commitNode, localDevice, true); in GetCommitTree() 608 errCode = storagePtr_->TransferSyncCommitDevInfo(commit, localDevice, false); in GetCommitTree()
|
/ohos5.0/base/notification/distributed_notification_service/services/distributed/src/ |
H A D | distributed_screen_status_manager.cpp | 235 DistributedHardware::DmDeviceInfo localDevice; in SetLocalScreenStatus() local 236 …_t ret = DistributedHardware::DeviceManager::GetInstance().GetLocalDeviceInfo(APP_ID, localDevice); in SetLocalScreenStatus() 242 DistributedKv::Key kvStoreKey = GenerateDistributedKey(localDevice.deviceId); in SetLocalScreenStatus()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/kvstoremock/frameworks/innerkitsimpl/distributeddatafwk/include/ |
H A D | distributed_kv_data_manager.h | 116 API_EXPORT Status GetLocalDevice(DeviceInfo &localDevice);
|
/ohos5.0/foundation/communication/ipc/ipc/native/src/core/source/ |
H A D | dbinder_callback_stub.cpp | 36 const std::string &localDevice, uint64_t stubIndex, uint32_t handle, uint32_t tokenId) in DBinderCallbackStub() argument 40 localDeviceID_(localDevice), in DBinderCallbackStub()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/kvstoremock/frameworks/innerkitsimpl/distributeddatafwk/src/ |
H A D | distributed_kv_data_manager.cpp | 136 Status DistributedKvDataManager::GetLocalDevice(DeviceInfo &localDevice) in GetLocalDevice() argument
|
/ohos5.0/foundation/distributeddatamgr/data_object/frameworks/innerkitsimpl/src/communicator/ |
H A D | softbus_adapter_standard.cpp | 163 DevManager::DetailInfo localDevice = DevManager::GetInstance()->GetLocalDevice(); in GetDeviceList() local 166 if (localDevice.networkId == event.srcNetworkId_) { in GetDeviceList() 169 } else if (localDevice.networkId == event.dstNetworkId_) { in GetDeviceList()
|
/ohos5.0/foundation/communication/ipc/ipc/native/test/fuzztest/core/ipcprocessskeleton_fuzzer/ |
H A D | ipcprocessskeleton_fuzzer.cpp | 923 std::string localDevice; in AttachToDetachDBinderCallbackStubTest() local 927 if (!GenerateString(service) || !GenerateString(device) || !GenerateString(localDevice) || in AttachToDetachDBinderCallbackStubTest() 932 … sptr<DBinderCallbackStub> stub = new DBinderCallbackStub(service, device, localDevice, stubIndex, in AttachToDetachDBinderCallbackStubTest()
|
/ohos5.0/foundation/multimedia/audio_framework/services/audio_policy/server/src/service/ |
H A D | audio_policy_service.cpp | 1064 sptr<AudioDeviceDescriptor> localDevice = new(std::nothrow) AudioDeviceDescriptor(); in NotifyRemoteRenderState() local 1065 CHECK_AND_RETURN_LOG(localDevice != nullptr, "Device error: null device."); in NotifyRemoteRenderState() 1066 localDevice->networkId_ = LOCAL_NETWORK_ID; in NotifyRemoteRenderState() 1067 localDevice->deviceRole_ = DeviceRole::OUTPUT_DEVICE; in NotifyRemoteRenderState() 1068 localDevice->deviceType_ = DeviceType::DEVICE_TYPE_SPEAKER; in NotifyRemoteRenderState() 1072 if (localDevice->deviceType_ != curOutputDeviceDesc.deviceType_) { in NotifyRemoteRenderState() 1074 …static_cast<int32_t>(localDevice->deviceType_), static_cast<int32_t>(curOutputDeviceDesc.deviceTyp… in NotifyRemoteRenderState() 1077 ret = MoveToLocalOutputDevice(targetSinkInputs, localDevice); in NotifyRemoteRenderState() 1086 desc.push_back(localDevice); in NotifyRemoteRenderState()
|