Searched refs:mHealth (Results 1 – 5 of 5) 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 …]
77 sp<hardware::health::V2_1::IHealth> mHealth; member95 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 …]
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 …]
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 …]