Searched refs:mHealth (Results 1 – 4 of 4) sorted by relevance
73 mHealth = IHealth::getService(serviceName); in SetUp()74 ASSERT_NE(mHealth, nullptr); in SetUp()77 sp<IHealth> mHealth; member in android::hardware::health::V2_0::HealthHidlTest129 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 …]
75 sp<hardware::health::V2_0::IHealth> mHealth; member93 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 …]
72 sp<hardware::health::V2_0::IHealth> mHealth; member90 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 …]
79 sp<hardware::health::V2_1::IHealth> mHealth; member97 if (mHealth != NULL) in init()101 mHealth = IHealth::getService("default", true); in init()102 if (mHealth != NULL) in init()108 if (mHealth == NULL) { in init()115 auto ret = mHealth->getChargeStatus([&](Result r, BatteryStatus status) { in init()165 auto reg = mHealth->registerCallback(this); in init()171 auto linked = mHealth->linkToDeath(this, 0 /* cookie */); in init()189 if (mHealth != NULL) in ~BatteryListenerImpl()190 mHealth->unlinkToDeath(this); in ~BatteryListenerImpl()[all …]