Home
last modified time | relevance | path

Searched refs:g_proxy (Results 1 – 4 of 4) sorted by relevance

/base/sensors/sensor_lite/frameworks/src/
Dsensor_agent.c18 void *g_proxy; variable
22 if (g_proxy == NULL) { in GetAllSensors()
23 g_proxy = GetServiceProxy(); in GetAllSensors()
25 return GetAllSensorsByProxy(g_proxy, sensorInfo, count); in GetAllSensors()
30 if (g_proxy == NULL) { in ActivateSensor()
31 g_proxy = GetServiceProxy(); in ActivateSensor()
33 return ActivateSensorByProxy(g_proxy, sensorTypeId, user); in ActivateSensor()
38 if (g_proxy == NULL) { in DeactivateSensor()
39 g_proxy = GetServiceProxy(); in DeactivateSensor()
41 return DeactivateSensorByProxy(g_proxy, sensorTypeId, user); in DeactivateSensor()
[all …]
/base/powermgr/battery_manager/test/unittest/src/
Dbattery_srv_proxy_mock_test.cpp29 std::shared_ptr<BatterySrvProxy> g_proxy; variable
40 g_proxy = std::make_shared<BatterySrvProxy>(remoteObj); in SetUpTestCase()
46 g_proxy = nullptr; in TearDownTestCase()
62 int32_t capacity = g_proxy->GetCapacity();
74 BatteryChargeState chargeState = g_proxy->GetChargingStatus();
87 BatteryHealthState healthState = g_proxy->GetHealthStatus();
100 BatteryPluggedType pluggedType = g_proxy->GetPluggedType();
113 bool isPresent = g_proxy->GetPresent();
125 std::string technology = g_proxy->GetTechnology();
137 int32_t totalEnergy = g_proxy->GetTotalEnergy();
[all …]
/base/useriam/face_auth/test/fuzztest/faceauthexecutorhdi_fuzzer/
Dface_auth_executor_hdi_fuzzer.cpp235 auto g_proxy = new (nothrow) DummyExecutorProxy(); variable
236 auto g_hdi = Common::MakeShared<FaceAuthExecutorHdi>(g_proxy);
406 g_proxy->FuzzTriggerSaCommandCallback(parcel); in FuzzTriggerSaCommandCallback()
412 if (g_proxy == nullptr) { in SetProxyParcel()
416 g_proxy->SetParcel(parcel); in SetProxyParcel()
421 if (g_proxy == nullptr) { in ClearProxyParcel()
425 g_proxy->ClearParcel(); in ClearProxyParcel()
/base/useriam/fingerprint_auth/test/fuzztest/fingerprintauthexecutorhdi_fuzzer/
Dfingerprint_auth_executor_hdi_fuzzer.cpp232 auto g_proxy = new (nothrow) DummyExecutorProxy(); variable
233 auto g_hdi = Common::MakeShared<FingerprintAuthExecutorHdi>(g_proxy);
393 if (g_proxy == nullptr) { in SetProxyParcel()
397 g_proxy->SetParcel(parcel); in SetProxyParcel()
402 if (g_proxy == nullptr) { in ClearProxyParcel()
406 g_proxy->ClearParcel(); in ClearProxyParcel()