/base/msdp/device_status/services/native/src/ |
D | devicestatus_manager.cpp | 130 int32_t DeviceStatusManager::NotifyDeviceStatusChange(const Data& devicestatusData) in NotifyDeviceStatusChange() argument 133 FI_HILOGI("type:%{public}d, value:%{public}d", devicestatusData.type, devicestatusData.value); in NotifyDeviceStatusChange() 136 auto iter = listenerMap_.find(devicestatusData.type); in NotifyDeviceStatusChange() 138 FI_HILOGE("type:%{public}d is not exits", devicestatusData.type); in NotifyDeviceStatusChange() 147 …FI_HILOGI("type:%{public}d, arrs_:%{public}d", devicestatusData.type, arrs_[devicestatusData.type]… in NotifyDeviceStatusChange() 148 switch (arrs_[devicestatusData.type]) { in NotifyDeviceStatusChange() 150 if (devicestatusData.value == VALUE_ENTER) { in NotifyDeviceStatusChange() 151 listener->OnDeviceStatusChanged(devicestatusData); in NotifyDeviceStatusChange() 156 if (devicestatusData.value == VALUE_EXIT) { in NotifyDeviceStatusChange() 157 listener->OnDeviceStatusChanged(devicestatusData); in NotifyDeviceStatusChange() [all …]
|
/base/msdp/device_status/frameworks/native/src/ |
D | devicestatus_callback_proxy.cpp | 34 void DeviceStatusCallbackProxy::OnDeviceStatusChanged(const Data& devicestatusData) in OnDeviceStatusChanged() argument 46 WRITEINT32(data, static_cast<int32_t>(devicestatusData.type)); in OnDeviceStatusChanged() 47 WRITEINT32(data, static_cast<int32_t>(devicestatusData.value)); in OnDeviceStatusChanged()
|
D | devicestatus_agent.cpp | 31 const Data& devicestatusData) in OnDeviceStatusChanged() argument 33 FI_HILOGI("type:%{public}d, value:%{public}d", static_cast<Type>(devicestatusData.type), in OnDeviceStatusChanged() 34 static_cast<OnChangedValue>(devicestatusData.value)); in OnDeviceStatusChanged() 37 agent->agentEvent_->OnEventResult(devicestatusData); in OnDeviceStatusChanged()
|
D | devicestatus_callback_stub.cpp | 58 Data devicestatusData = { in OnDeviceStatusChangedStub() local 62 OnDeviceStatusChanged(devicestatusData); in OnDeviceStatusChangedStub()
|
D | devicestatus_client.cpp | 156 Data devicestatusData; in GetDeviceStatusData() local 157 devicestatusData.type = Type::TYPE_INVALID; in GetDeviceStatusData() 158 devicestatusData.value = OnChangedValue::VALUE_INVALID; in GetDeviceStatusData() 161 return devicestatusData; in GetDeviceStatusData() 165 return devicestatusData; in GetDeviceStatusData() 169 devicestatusData = devicestatusProxy_->GetCache(type); in GetDeviceStatusData() 171 return devicestatusData; in GetDeviceStatusData()
|
/base/msdp/device_status/services/native/test/moduletest/src/ |
D | devicestatus_module_test.cpp | 40 …atusModuleTest::DeviceStatusModuleTestCallback::OnDeviceStatusChanged(const Data& devicestatusData) in OnDeviceStatusChanged() argument 42 GTEST_LOG_(INFO) << "DeviceStatusModuleTestCallback type: " << devicestatusData.type; in OnDeviceStatusChanged() 43 GTEST_LOG_(INFO) << "DeviceStatusModuleTestCallback value: " << devicestatusData.value; in OnDeviceStatusChanged() 44 EXPECT_EQ(true, devicestatusData.type == g_moduleTest && in OnDeviceStatusChanged() 45 (devicestatusData.value >= OnChangedValue::VALUE_INVALID && in OnDeviceStatusChanged() 46 devicestatusData.value <= OnChangedValue::VALUE_EXIT)) << in OnDeviceStatusChanged()
|
/base/msdp/device_status/services/native/test/unittest/src/ |
D | devicestatus_agent_test.cpp | 44 const Data& devicestatusData) in OnEventResult() argument 46 GTEST_LOG_(INFO) << "agent type: " << devicestatusData.type; in OnEventResult() 47 GTEST_LOG_(INFO) << "agent value: " << devicestatusData.value; in OnEventResult() 48 EXPECT_TRUE(devicestatusData.type == DeviceStatusAgentTest::g_agentTest && in OnEventResult() 49 (devicestatusData.value >= OnChangedValue::VALUE_INVALID && in OnEventResult() 50 devicestatusData.value <= OnChangedValue::VALUE_ENTER)); in OnEventResult() 55 const Data& devicestatusData) in OnEventResult() argument 57 GTEST_LOG_(INFO) << "agent type: " << devicestatusData.type; in OnEventResult() 58 GTEST_LOG_(INFO) << "agent value: " << devicestatusData.value; in OnEventResult() 59 EXPECT_TRUE(devicestatusData.type == DeviceStatusAgentTest::g_agentTest && in OnEventResult() [all …]
|
D | devicestatus_service_test.cpp | 54 …usServiceTest::DeviceStatusServiceTestCallback::OnDeviceStatusChanged(const Data& devicestatusData) in OnDeviceStatusChanged() argument 56 GTEST_LOG_(INFO) << "DeviceStatusServiceTestCallback type: " << devicestatusData.type; in OnDeviceStatusChanged() 57 GTEST_LOG_(INFO) << "DeviceStatusServiceTestCallback value: " << devicestatusData.value; in OnDeviceStatusChanged() 58 …EXPECT_TRUE(devicestatusData.type == g_type && (devicestatusData.value >= OnChangedValue::VALUE_IN… in OnDeviceStatusChanged() 59 …devicestatusData.value <= OnChangedValue::VALUE_EXIT)) << "DeviceStatusServiceTestCallback failed"; in OnDeviceStatusChanged()
|
/base/msdp/device_status/services/native/test/unittest/include/ |
D | devicestatus_agent_test.h | 38 bool OnEventResult(const Data& devicestatusData) override; 43 bool OnEventResult(const Data& devicestatusData) override;
|
D | devicestatus_service_test.h | 39 virtual void OnDeviceStatusChanged(const Data& devicestatusData) override;
|
/base/msdp/device_status/test/fuzztest/devicestatusclient_fuzzer/ |
D | devicestatusclient_fuzzer.cpp | 37 Data& devicestatusData) in OnDeviceStatusChanged() 39 std::cout << "DeviceStatusTestCallback type: " << devicestatusData.type << std::endl; in OnDeviceStatusChanged() 40 std::cout << "DeviceStatusTestCallback value: " << devicestatusData.value << std::endl; in OnDeviceStatusChanged()
|
D | devicestatusclient_fuzzer.h | 48 virtual void OnDeviceStatusChanged(const Data& devicestatusData) override;
|
/base/msdp/device_status/services/communication/client/src/ |
D | devicestatus_srv_proxy.cpp | 97 Data devicestatusData; in GetCache() local 98 devicestatusData.type = Type::TYPE_INVALID; in GetCache() 99 devicestatusData.value = OnChangedValue::VALUE_INVALID; in GetCache() 102 DEV_RET_IF_NULL_WITH_RET((remote == nullptr), devicestatusData); in GetCache() 110 return devicestatusData; in GetCache() 113 WRITEINT32(data, type, devicestatusData); in GetCache() 119 return devicestatusData; in GetCache() 124 READINT32(reply, devicestatusType, devicestatusData); in GetCache() 125 READINT32(reply, devicestatusValue, devicestatusData); in GetCache() 126 devicestatusData.type = static_cast<Type>(devicestatusType); in GetCache() [all …]
|
/base/msdp/device_status/interfaces/innerkits/include/ |
D | devicestatus_agent.h | 35 virtual bool OnEventResult(const Data& devicestatusData) = 0; 42 void OnDeviceStatusChanged(const Data& devicestatusData) override;
|
D | stationary_callback.h | 33 virtual void OnDeviceStatusChanged(const Data& devicestatusData) = 0;
|
D | devicestatus_callback_proxy.h | 35 virtual void OnDeviceStatusChanged(const Data& devicestatusData) override;
|
/base/msdp/device_status/test/systemtest/src/ |
D | devicestatus_client_test.cpp | 36 virtual void OnDeviceStatusChanged(const Data& devicestatusData); 41 Data& devicestatusData) in OnDeviceStatusChanged() argument 43 GTEST_LOG_(INFO) << "DeviceStatusClientTestCallback type: " << devicestatusData.type; in OnDeviceStatusChanged() 44 GTEST_LOG_(INFO) << "DeviceStatusClientTestCallback value: " << devicestatusData.value; in OnDeviceStatusChanged() 45 EXPECT_TRUE(devicestatusData.type == Type::TYPE_VERTICAL_POSITION && in OnDeviceStatusChanged() 46 devicestatusData.value >= OnChangedValue::VALUE_INVALID && in OnDeviceStatusChanged() 47 … devicestatusData.value <= OnChangedValue::VALUE_EXIT) << "DeviceStatusClientTestCallback failed"; in OnDeviceStatusChanged()
|
/base/msdp/device_status/test/fuzztest/devicestatusagent_fuzzer/ |
D | devicestatusagent_fuzzer.cpp | 33 const Data& devicestatusData) in OnEventResult() argument 35 std::cout << "type: " << devicestatusData.type << std::endl; in OnEventResult() 36 std::cout << "value: " << devicestatusData.value << std::endl; in OnEventResult()
|
D | devicestatusagent_fuzzer.h | 53 bool OnEventResult(const Data& devicestatusData) override;
|
/base/msdp/device_status/services/native/test/moduletest/include/ |
D | devicestatus_module_test.h | 34 virtual void OnDeviceStatusChanged(const Data& devicestatusData) override;
|
/base/msdp/device_status/frameworks/js/napi/src/ |
D | devicestatus_napi.cpp | 47 void DeviceStatusCallback::OnDeviceStatusChanged(const Data& devicestatusData) in OnDeviceStatusChanged() argument 57 devicestatusData.type, devicestatusData.value); in OnDeviceStatusChanged() 58 data_ = devicestatusData; in OnDeviceStatusChanged() 458 …Data devicestatusData = StationaryManager::GetInstance()->GetDeviceStatusData(static_cast<Type>(ty… in GetDeviceStatus() local 459 if (devicestatusData.type == Type::TYPE_INVALID) { in GetDeviceStatus() 462 g_obj->OnDeviceStatusChangedDone(devicestatusData.type, devicestatusData.value, true); in GetDeviceStatus() 463 g_obj->OffOnce(devicestatusData.type, handler); in GetDeviceStatus()
|
/base/msdp/device_status/services/communication/service/src/ |
D | devicestatus_srv_stub.cpp | 149 Data devicestatusData = GetCache(static_cast<Type>(type)); in GetLatestDeviceStatusDataStub() local 150 FI_HILOGD("devicestatusData.type:%{public}d", devicestatusData.type); in GetLatestDeviceStatusDataStub() 151 FI_HILOGD("devicestatusData.value:%{public}d", devicestatusData.value); in GetLatestDeviceStatusDataStub() 152 WRITEINT32(reply, devicestatusData.type, E_DEVICESTATUS_WRITE_PARCEL_ERROR); in GetLatestDeviceStatusDataStub() 153 WRITEINT32(reply, devicestatusData.value, E_DEVICESTATUS_WRITE_PARCEL_ERROR); in GetLatestDeviceStatusDataStub()
|
/base/msdp/device_status/services/native/include/ |
D | devicestatus_manager.h | 49 int32_t NotifyDeviceStatusChange(const Data &devicestatusData);
|
/base/msdp/device_status/frameworks/js/napi/include/ |
D | devicestatus_napi.h | 37 void OnDeviceStatusChanged(const Data &devicestatusData) override;
|