Home
last modified time | relevance | path

Searched refs:devicestatusData (Results 1 – 24 of 24) sorted by relevance

/base/msdp/device_status/services/native/src/
Ddevicestatus_manager.cpp130 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/
Ddevicestatus_callback_proxy.cpp34 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()
Ddevicestatus_agent.cpp31 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()
Ddevicestatus_callback_stub.cpp58 Data devicestatusData = { in OnDeviceStatusChangedStub() local
62 OnDeviceStatusChanged(devicestatusData); in OnDeviceStatusChangedStub()
Ddevicestatus_client.cpp156 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/
Ddevicestatus_module_test.cpp40 …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/
Ddevicestatus_agent_test.cpp44 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 …]
Ddevicestatus_service_test.cpp54 …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()
59devicestatusData.value <= OnChangedValue::VALUE_EXIT)) << "DeviceStatusServiceTestCallback failed"; in OnDeviceStatusChanged()
/base/msdp/device_status/services/native/test/unittest/include/
Ddevicestatus_agent_test.h38 bool OnEventResult(const Data& devicestatusData) override;
43 bool OnEventResult(const Data& devicestatusData) override;
Ddevicestatus_service_test.h39 virtual void OnDeviceStatusChanged(const Data& devicestatusData) override;
/base/msdp/device_status/test/fuzztest/devicestatusclient_fuzzer/
Ddevicestatusclient_fuzzer.cpp37 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()
Ddevicestatusclient_fuzzer.h48 virtual void OnDeviceStatusChanged(const Data& devicestatusData) override;
/base/msdp/device_status/services/communication/client/src/
Ddevicestatus_srv_proxy.cpp97 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/
Ddevicestatus_agent.h35 virtual bool OnEventResult(const Data& devicestatusData) = 0;
42 void OnDeviceStatusChanged(const Data& devicestatusData) override;
Dstationary_callback.h33 virtual void OnDeviceStatusChanged(const Data& devicestatusData) = 0;
Ddevicestatus_callback_proxy.h35 virtual void OnDeviceStatusChanged(const Data& devicestatusData) override;
/base/msdp/device_status/test/systemtest/src/
Ddevicestatus_client_test.cpp36 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()
47devicestatusData.value <= OnChangedValue::VALUE_EXIT) << "DeviceStatusClientTestCallback failed"; in OnDeviceStatusChanged()
/base/msdp/device_status/test/fuzztest/devicestatusagent_fuzzer/
Ddevicestatusagent_fuzzer.cpp33 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()
Ddevicestatusagent_fuzzer.h53 bool OnEventResult(const Data& devicestatusData) override;
/base/msdp/device_status/services/native/test/moduletest/include/
Ddevicestatus_module_test.h34 virtual void OnDeviceStatusChanged(const Data& devicestatusData) override;
/base/msdp/device_status/frameworks/js/napi/src/
Ddevicestatus_napi.cpp47 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/
Ddevicestatus_srv_stub.cpp149 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/
Ddevicestatus_manager.h49 int32_t NotifyDeviceStatusChange(const Data &devicestatusData);
/base/msdp/device_status/frameworks/js/napi/include/
Ddevicestatus_napi.h37 void OnDeviceStatusChanged(const Data &devicestatusData) override;