Home
last modified time | relevance | path

Searched refs:mHealth (Results 1 – 5 of 5) sorted by relevance

/hardware/interfaces/health/2.0/vts/functional/
DVtsHalHealthV2_0TargetTest.cpp73 mHealth = IHealth::getService(serviceName); in SetUp()
74 ASSERT_NE(mHealth, nullptr); in SetUp()
77 sp<IHealth> mHealth; member in android::hardware::health::V2_0::HealthHidlTest
129 ASSERT_ALL_OK(mHealth->registerCallback(firstCallback)); in TEST_P()
130 ASSERT_ALL_OK(mHealth->registerCallback(secondCallback)); in TEST_P()
139 ASSERT_ALL_OK(mHealth->update()); in TEST_P()
144 ASSERT_ALL_OK(mHealth->unregisterCallback(firstCallback)); in TEST_P()
152 ASSERT_ALL_OK(mHealth->update()); in TEST_P()
157 ASSERT_ALL_OK(mHealth->unregisterCallback(secondCallback)); in TEST_P()
162 auto ret = mHealth->unregisterCallback(callback); in TEST_P()
[all …]
/hardware/qcom/sm7250/gps/android/utils/
Dbattery_listener.cpp77 sp<hardware::health::V2_1::IHealth> mHealth; member
95 if (mHealth != NULL) in init()
99 mHealth = IHealth::getService(); in init()
100 if (mHealth != NULL) in init()
106 if (mHealth == NULL) { in init()
113 auto ret = mHealth->getChargeStatus([&](Result r, BatteryStatus status) { in init()
163 auto reg = mHealth->registerCallback(this); in init()
169 auto linked = mHealth->linkToDeath(this, 0 /* cookie */); in init()
187 if (mHealth != NULL) in ~BatteryListenerImpl()
188 mHealth->unregisterCallback(this); in ~BatteryListenerImpl()
[all …]
/hardware/qcom/sm8150/gps/android/utils/
Dbattery_listener.cpp77 sp<hardware::health::V2_1::IHealth> mHealth; member
95 if (mHealth != NULL) in init()
99 mHealth = IHealth::getService(); in init()
100 if (mHealth != NULL) in init()
106 if (mHealth == NULL) { in init()
113 auto ret = mHealth->getChargeStatus([&](Result r, BatteryStatus status) { in init()
163 auto reg = mHealth->registerCallback(this); in init()
169 auto linked = mHealth->linkToDeath(this, 0 /* cookie */); in init()
187 if (mHealth != NULL) in ~BatteryListenerImpl()
188 mHealth->unregisterCallback(this); in ~BatteryListenerImpl()
[all …]
/hardware/qcom/sm8150p/gps/android/utils/
Dbattery_listener.cpp72 sp<hardware::health::V2_0::IHealth> mHealth; member
90 if (mHealth != NULL) in init()
94 mHealth = hardware::health::V2_0::get_health_service(); in init()
95 if (mHealth != NULL) in init()
101 if (mHealth == NULL) { in init()
108 auto ret = mHealth->getChargeStatus([&](Result r, BatteryStatus status) { in init()
157 auto reg = mHealth->registerCallback(this); in init()
163 auto linked = mHealth->linkToDeath(this, 0 /* cookie */); in init()
180 if (mHealth != NULL) in ~BatteryListenerImpl()
181 mHealth->unlinkToDeath(this); in ~BatteryListenerImpl()
[all …]
/hardware/qcom/sm7150/gps/android/utils/
Dbattery_listener.cpp75 sp<hardware::health::V2_0::IHealth> mHealth; member
93 if (mHealth != NULL) in init()
97 mHealth = hardware::health::V2_0::get_health_service(); in init()
98 if (mHealth != NULL) in init()
104 if (mHealth == NULL) { in init()
111 auto ret = mHealth->getChargeStatus([&](Result r, BatteryStatus status) { in init()
161 auto reg = mHealth->registerCallback(this); in init()
167 auto linked = mHealth->linkToDeath(this, 0 /* cookie */); in init()
185 if (mHealth != NULL) in ~BatteryListenerImpl()
186 mHealth->unlinkToDeath(this); in ~BatteryListenerImpl()
[all …]