Home
last modified time | relevance | path

Searched refs:Health (Results 1 – 18 of 18) sorted by relevance

/hardware/interfaces/health/utils/libhealth2impl/
DHealth.cpp65 Health::Health(std::unique_ptr<healthd_config>&& config) : healthd_config_(std::move(config)) { in Health() function in android::hardware::health::V2_1::implementation::Health
73 Return<Result> Health::registerCallback(const sp<V2_0::IHealthInfoCallback>&) { in registerCallback()
77 Return<Result> Health::unregisterCallback(const sp<V2_0::IHealthInfoCallback>&) { in unregisterCallback()
81 Return<Result> Health::update() { in update()
127 Return<void> Health::getChargeCounter(getChargeCounter_cb _hidl_cb) { in getChargeCounter()
131 Return<void> Health::getCurrentNow(getCurrentNow_cb _hidl_cb) { in getCurrentNow()
135 Return<void> Health::getCurrentAverage(getCurrentAverage_cb _hidl_cb) { in getCurrentAverage()
139 Return<void> Health::getCapacity(getCapacity_cb _hidl_cb) { in getCapacity()
143 Return<void> Health::getEnergyCounter(getEnergyCounter_cb _hidl_cb) { in getEnergyCounter()
147 Return<void> Health::getChargeStatus(getChargeStatus_cb _hidl_cb) { in getChargeStatus()
[all …]
DAndroid.bp16 // HAL implementations can link to this library and extend the Health class.
33 "Health.cpp",
/hardware/interfaces/health/2.0/default/
DHealth.cpp37 sp<Health> Health::instance_;
39 Health::Health(struct healthd_config* c) { in Health() function in android::hardware::health::V2_0::implementation::Health
47 Return<Result> Health::registerCallback(const sp<IHealthInfoCallback>& callback) { in registerCallback()
68 bool Health::unregisterCallbackInternal(const sp<IBase>& callback) { in unregisterCallbackInternal()
85 Return<Result> Health::unregisterCallback(const sp<IHealthInfoCallback>& callback) { in unregisterCallback()
116 Return<void> Health::getChargeCounter(getChargeCounter_cb _hidl_cb) { in getChargeCounter()
121 Return<void> Health::getCurrentNow(getCurrentNow_cb _hidl_cb) { in getCurrentNow()
126 Return<void> Health::getCurrentAverage(getCurrentAverage_cb _hidl_cb) { in getCurrentAverage()
131 Return<void> Health::getCapacity(getCapacity_cb _hidl_cb) { in getCapacity()
136 Return<void> Health::getEnergyCounter(getEnergyCounter_cb _hidl_cb) { in getEnergyCounter()
[all …]
DHealthImplDefault.cpp21 using android::hardware::health::V2_0::implementation::Health;
66 return Health::initInstance(&gHealthdConfig).get(); in HIDL_FETCH_IHealth()
Dhealthd_common_adapter.cpp28 using android::hardware::health::V2_0::implementation::Health;
47 void ScheduleBatteryUpdate() override { Health::getImplementation()->update(); } in ScheduleBatteryUpdate()
DAndroid.bp42 "Health.cpp",
/hardware/interfaces/health/2.0/default/include/health2/
DHealth.h28 struct Health : public IHealth, hidl_death_recipient { struct
34 static sp<Health> getImplementation();
36 Health(struct healthd_config* c);
60 static sp<Health> instance_;
/hardware/interfaces/health/2.1/default/
Dimpl.cpp26 using ::android::hardware::health::V2_1::implementation::Health;
52 return new Health(std::move(config)); in HIDL_FETCH_IHealth()
/hardware/interfaces/health/2.0/utils/libhealthservice/
DHealthServiceCommon.cpp35 using android::hardware::health::V2_0::implementation::Health;
56 android::sp<IHealth> service = Health::initInstance(config); in healthd_mode_service_2_0_init()
75 Health::getImplementation()->notifyListeners(&info); in healthd_mode_service_2_0_battery_update()
/hardware/interfaces/health/2.1/
DREADME.md1 # Implementing Health 2.1 HAL
43 [Upgrading from Health HAL 1.0](#update-from-1-0).
46 [Upgrading from Health HAL 2.0](#update-from-2-0).
54 # Upgrading with a customized libhealthd or from Health HAL 1.0 {#update-from-1-0}
57 `healthd_board_battery_update()`. Similarly, Health HAL 1.0 contains `init()`
83 Return<void> Health::getEnergyCounter(getEnergyCounter_cb _hidl_cb) {
90 # Upgrading from Health HAL 2.0 {#update-from-2-0}
195 #include <health2impl/Health.h>
213 // android::hardware::health::V2_1::implementation::Health implements most
215 class HealthImpl : public Health {
[all …]
DIHealth.hal61 * Get Health Information.
66 * @return value Health information, to be ignored if result is not
Dtypes.hal71 * Combined Health Information.
/hardware/interfaces/health/utils/libhealth2impl/include/health2impl/
DHealth.h42 class Health : public IHealth {
44 Health(std::unique_ptr<healthd_config>&& config);
/hardware/interfaces/health/2.0/
DREADME6 # Upgrading from Health 1.0 HAL
167 #include <health2/Health.h>
170 using android::hardware::health::V2_0::implementation::Health;
174 return Health::initInstance(&gHealthdConfig).get();
DREADME.md6 # Upgrading from Health 1.0 HAL
167 #include <health2/Health.h>
170 using android::hardware::health::V2_0::implementation::Health;
174 return Health::initInstance(&gHealthdConfig).get();
DIHealth.hal165 * Get Health Information.
170 * @return value Health information, to be ignored if result is not
Dtypes.hal129 * Combined Health Information.
/hardware/interfaces/health/1.0/
Dtypes.hal48 * Possible values for Battery Health.