Searched refs:g_svc (Results 1 – 2 of 2) sorted by relevance
30 android::sp<IHealth> g_svc; variable33 g_svc = ::android::hardware::health::V2_0::get_health_service(); in ResetService()40 if (!g_svc) in GetBatteryCounter()43 if (!g_svc) in GetBatteryCounter()58 g_svc->getChargeCounter([&res, value](Result hal_res, int32_t hal_value) { in GetBatteryCounter()65 g_svc->getCapacity([&res, value](Result hal_res, int64_t hal_value) { in GetBatteryCounter()72 g_svc->getCurrentNow([&res, value](Result hal_res, int32_t hal_value) { in GetBatteryCounter()79 g_svc->getCurrentAverage( in GetBatteryCounter()88 g_svc.clear(); in GetBatteryCounter()
37 android::sp<IPowerStats> g_svc; variable40 if (!g_svc) in GetService()41 g_svc = IPowerStats::getService(); in GetService()43 return g_svc != nullptr; in GetService()77 Return<void> ret = g_svc->getRailInfo(rails_cb); in GetAvailableRails()105 Return<void> ret = g_svc->getEnergyData(hidl_vec<uint32_t>(), energy_cb); in GetRailEnergyData()