Home
last modified time | relevance | path

Searched refs:health (Results 1 – 25 of 201) sorted by relevance

123456789

/hardware/interfaces/health/aidl/android/hardware/health/
Dtranslate-ndk.cpp21 static_assert(aidl::android::hardware::health::BatteryStatus::UNKNOWN ==
22 static_cast<aidl::android::hardware::health::BatteryStatus>(
23 ::android::hardware::health::V1_0::BatteryStatus::UNKNOWN));
24 static_assert(aidl::android::hardware::health::BatteryStatus::CHARGING ==
25 static_cast<aidl::android::hardware::health::BatteryStatus>(
26 ::android::hardware::health::V1_0::BatteryStatus::CHARGING));
27 static_assert(aidl::android::hardware::health::BatteryStatus::DISCHARGING ==
28 static_cast<aidl::android::hardware::health::BatteryStatus>(
29 ::android::hardware::health::V1_0::BatteryStatus::DISCHARGING));
30 static_assert(aidl::android::hardware::health::BatteryStatus::NOT_CHARGING ==
[all …]
DHealthInfo.aidl17 package android.hardware.health;
19 import android.hardware.health.BatteryCapacityLevel;
20 import android.hardware.health.BatteryChargingPolicy;
21 import android.hardware.health.BatteryChargingState;
22 import android.hardware.health.BatteryHealth;
23 import android.hardware.health.BatteryHealthData;
24 import android.hardware.health.BatteryStatus;
25 import android.hardware.health.DiskStats;
26 import android.hardware.health.StorageInfo;
58 android.hardware.health.BatteryStatus batteryStatus;
[all …]
DTranslate.java17 package android.hardware.health;
20 static public android.hardware.health.StorageInfo h2aTranslate( in h2aTranslate()
21 android.hardware.health.V2_0.StorageInfo in) { in h2aTranslate()
22 android.hardware.health.StorageInfo out = new android.hardware.health.StorageInfo(); in h2aTranslate()
30 static public android.hardware.health.DiskStats h2aTranslate( in h2aTranslate()
31 android.hardware.health.V2_0.DiskStats in) { in h2aTranslate()
32 android.hardware.health.DiskStats out = new android.hardware.health.DiskStats(); in h2aTranslate()
48 android.hardware.health.HealthInfo out, android.hardware.health.V1_0.HealthInfo in) { in h2aTranslateInternal()
67 public static android.hardware.health.HealthInfo h2aTranslate( in h2aTranslate()
68 android.hardware.health.V1_0.HealthInfo in) { in h2aTranslate()
[all …]
DIHealth.aidl17 package android.hardware.health;
19 import android.hardware.health.BatteryChargingPolicy;
20 import android.hardware.health.BatteryHealthData;
21 import android.hardware.health.BatteryStatus;
22 import android.hardware.health.DiskStats;
23 import android.hardware.health.HealthInfo;
24 import android.hardware.health.IHealthInfoCallback;
25 import android.hardware.health.StorageInfo;
/hardware/interfaces/health/aidl/aidl_api/android.hardware.health/2/android/hardware/health/
DIHealth.aidl34 package android.hardware.health;
37 void registerCallback(in android.hardware.health.IHealthInfoCallback callback); in registerCallback()
38 void unregisterCallback(in android.hardware.health.IHealthInfoCallback callback); in unregisterCallback()
45 android.hardware.health.BatteryStatus getChargeStatus(); in getChargeStatus()
46 android.hardware.health.StorageInfo[] getStorageInfo(); in getStorageInfo()
47 android.hardware.health.DiskStats[] getDiskStats(); in getDiskStats()
48 android.hardware.health.HealthInfo getHealthInfo(); in getHealthInfo()
49 void setChargingPolicy(android.hardware.health.BatteryChargingPolicy in_value); in setChargingPolicy()
50 android.hardware.health.BatteryChargingPolicy getChargingPolicy(); in getChargingPolicy()
51 android.hardware.health.BatteryHealthData getBatteryHealthData(); in getBatteryHealthData()
DHealthInfo.aidl34 package android.hardware.health;
43 android.hardware.health.BatteryStatus batteryStatus;
44 android.hardware.health.BatteryHealth batteryHealth;
55 android.hardware.health.DiskStats[] diskStats;
56 android.hardware.health.StorageInfo[] storageInfos;
57 android.hardware.health.BatteryCapacityLevel batteryCapacityLevel;
60 android.hardware.health.BatteryChargingState chargingState;
61 android.hardware.health.BatteryChargingPolicy chargingPolicy;
62 @nullable android.hardware.health.BatteryHealthData batteryHealthData;
/hardware/interfaces/health/aidl/aidl_api/android.hardware.health/current/android/hardware/health/
DIHealth.aidl34 package android.hardware.health;
37 void registerCallback(in android.hardware.health.IHealthInfoCallback callback); in registerCallback()
38 void unregisterCallback(in android.hardware.health.IHealthInfoCallback callback); in unregisterCallback()
45 android.hardware.health.BatteryStatus getChargeStatus(); in getChargeStatus()
46 android.hardware.health.StorageInfo[] getStorageInfo(); in getStorageInfo()
47 android.hardware.health.DiskStats[] getDiskStats(); in getDiskStats()
48 android.hardware.health.HealthInfo getHealthInfo(); in getHealthInfo()
49 void setChargingPolicy(android.hardware.health.BatteryChargingPolicy in_value); in setChargingPolicy()
50 android.hardware.health.BatteryChargingPolicy getChargingPolicy(); in getChargingPolicy()
51 android.hardware.health.BatteryHealthData getBatteryHealthData(); in getBatteryHealthData()
DHealthInfo.aidl34 package android.hardware.health;
43 android.hardware.health.BatteryStatus batteryStatus;
44 android.hardware.health.BatteryHealth batteryHealth;
55 android.hardware.health.DiskStats[] diskStats;
56 android.hardware.health.StorageInfo[] storageInfos;
57 android.hardware.health.BatteryCapacityLevel batteryCapacityLevel;
60 android.hardware.health.BatteryChargingState chargingState;
61 android.hardware.health.BatteryChargingPolicy chargingPolicy;
62 @nullable android.hardware.health.BatteryHealthData batteryHealthData;
/hardware/interfaces/health/aidl/aidl_api/android.hardware.health/3/android/hardware/health/
DIHealth.aidl34 package android.hardware.health;
37 void registerCallback(in android.hardware.health.IHealthInfoCallback callback); in registerCallback()
38 void unregisterCallback(in android.hardware.health.IHealthInfoCallback callback); in unregisterCallback()
45 android.hardware.health.BatteryStatus getChargeStatus(); in getChargeStatus()
46 android.hardware.health.StorageInfo[] getStorageInfo(); in getStorageInfo()
47 android.hardware.health.DiskStats[] getDiskStats(); in getDiskStats()
48 android.hardware.health.HealthInfo getHealthInfo(); in getHealthInfo()
49 void setChargingPolicy(android.hardware.health.BatteryChargingPolicy in_value); in setChargingPolicy()
50 android.hardware.health.BatteryChargingPolicy getChargingPolicy(); in getChargingPolicy()
51 android.hardware.health.BatteryHealthData getBatteryHealthData(); in getBatteryHealthData()
DHealthInfo.aidl34 package android.hardware.health;
43 android.hardware.health.BatteryStatus batteryStatus;
44 android.hardware.health.BatteryHealth batteryHealth;
55 android.hardware.health.DiskStats[] diskStats;
56 android.hardware.health.StorageInfo[] storageInfos;
57 android.hardware.health.BatteryCapacityLevel batteryCapacityLevel;
60 android.hardware.health.BatteryChargingState chargingState;
61 android.hardware.health.BatteryChargingPolicy chargingPolicy;
62 @nullable android.hardware.health.BatteryHealthData batteryHealthData;
/hardware/interfaces/health/aidl/
DAndroid.bp25 name: "android.hardware.health",
29 srcs: ["android/hardware/health/*.aidl"],
60 name: "android.hardware.health-translate-ndk_defaults",
64 srcs: ["android/hardware/health/translate-ndk.cpp"],
68 "android.hardware.health@2.0",
69 "android.hardware.health@2.1",
73 "android.hardware.health@2.0",
74 "android.hardware.health@2.1",
84 name: "android.hardware.health-translate-ndk",
85 defaults: ["android.hardware.health-translate-ndk_defaults"],
[all …]
DREADME.md8 [health 2.1 HIDL HAL implementation](../2.1/README.md).
20 The health AIDL HAL service also provides functionalities of `charger`. As a
23 However, the health AIDL HAL service is not allowed to read `ro.charger.*`
25 * `ro.charger.enable_suspend`. If set, you need a custom health AIDL HAL
27 * `ro.charger.no_ui`. If set, you need a custom health AIDL HAL service.
39 [android.hardware.health-service.example.rc](default/android.hardware.health-service.example.rc).
58 Compare each line against the one provided by the example health AIDL HAL
60 [android.hardware.health-service.example.rc](default/android.hardware.health-service.example.rc).
66 `<name>` is the name of your charger service, then you need a custom health
69 custom health AIDL service.
[all …]
/hardware/interfaces/health/aidl/include/android/hardware/health/
Dtranslate-ndk.h30 const ::android::hardware::health::V2_0::StorageInfo& in,
31 aidl::android::hardware::health::StorageInfo* out);
33 const ::android::hardware::health::V2_0::DiskStats& in,
34 aidl::android::hardware::health::DiskStats* out);
36 const ::android::hardware::health::V2_0::HealthInfo& in,
37 aidl::android::hardware::health::HealthInfo* out);
39 const ::android::hardware::health::V2_1::HealthInfo& in,
40 aidl::android::hardware::health::HealthInfo* out);
/hardware/interfaces/health/aidl/aidl_api/android.hardware.health/1/android/hardware/health/
DIHealth.aidl34 package android.hardware.health;
37 void registerCallback(in android.hardware.health.IHealthInfoCallback callback); in registerCallback()
38 void unregisterCallback(in android.hardware.health.IHealthInfoCallback callback); in unregisterCallback()
45 android.hardware.health.BatteryStatus getChargeStatus(); in getChargeStatus()
46 android.hardware.health.StorageInfo[] getStorageInfo(); in getStorageInfo()
47 android.hardware.health.DiskStats[] getDiskStats(); in getDiskStats()
48 android.hardware.health.HealthInfo getHealthInfo(); in getHealthInfo()
DHealthInfo.aidl34 package android.hardware.health;
43 android.hardware.health.BatteryStatus batteryStatus;
44 android.hardware.health.BatteryHealth batteryHealth;
55 android.hardware.health.DiskStats[] diskStats;
56 android.hardware.health.StorageInfo[] storageInfos;
57 android.hardware.health.BatteryCapacityLevel batteryCapacityLevel;
/hardware/interfaces/health/aidl/vts/functional/
DVtsHalHealthTargetTest.cpp38 using android::hardware::health::test_utils::SucceedOnce;
62 namespace aidl::android::hardware::health { namespace
106 health = IHealth::fromBinder(binder); in SetUp()
107 ASSERT_NE(health, nullptr); in SetUp()
109 std::shared_ptr<IHealth> health; member in aidl::android::hardware::health::HealthAidl
140 ASSERT_THAT(health->registerCallback(first_callback), IsOk()); in TEST_P()
141 ASSERT_THAT(health->registerCallback(second_callback), IsOk()); in TEST_P()
150 ASSERT_THAT(health->update(), IsOk()); in TEST_P()
155 ASSERT_THAT(health->unregisterCallback(first_callback), IsOk()); in TEST_P()
163 ASSERT_THAT(health->update(), IsOk()); in TEST_P()
[all …]
/hardware/interfaces/health/2.1/default/
DAndroid.bp25 name: "android.hardware.health@2.1-impl-defaults",
34 "android.hardware.health@2.1",
35 "android.hardware.health@2.0",
39 "android.hardware.health@1.0-convert",
46 // Default passthrough implementation of the health@2.1 HAL.
47 // Passhtrough implementations of the health@2.1 HAL must be installed in
49 // Passhtrough implementations of the health@2.1 HAL must be installed in
53 name: "android.hardware.health@2.1-impl",
54 stem: "android.hardware.health@2.0-impl-2.1",
60 defaults: ["android.hardware.health@2.1-impl-defaults"],
[all …]
/hardware/interfaces/health/aidl/default/
DAndroid.bp32 "android.hardware.health-V3-ndk",
42 "android.hardware.health-translate-ndk",
51 "android.hardware.health-V3-ndk",
93 // A helper library for health HAL implementation.
109 "health-convert.cpp",
132 // AIDL version of android.hardware.health@2.1-service.
133 // Default binder service of the health HAL.
135 name: "android.hardware.health-service.example-defaults",
137 vintf_fragments: ["android.hardware.health-service.example.xml"],
148 name: "android.hardware.health-service.example",
[all …]
Dmain.cpp30 using aidl::android::hardware::health::HalHealthLoop;
31 using aidl::android::hardware::health::Health;
34 using aidl::android::hardware::health::charger::ChargerCallback;
35 using aidl::android::hardware::health::charger::ChargerModeMain;
48 ::android::hardware::health::InitHealthdConfig(config.get()); in main()
/hardware/interfaces/health/2.1/
DREADME.md9 PRODUCT_PACKAGES += android.hardware.health@2.1-service
12 1. Delete existing VINTF manifest entry. Search for `android.hardware.health` in
14 of the HAL. Instead, when `android.hardware.health@2.1-service` is installed,
26 PRODUCT_PACKAGES += android.hardware.health@2.1-impl
29 PRODUCT_PACKAGES += android.hardware.health@2.1-impl.recovery
42 * If you are upgrading from 1.0 health HAL, see
44 * If you are upgrading from a customized 2.0 health HAL
109 PRODUCT_PACKAGES += android.hardware.health@2.1-impl-<device>
112 PRODUCT_PACKAGES += android.hardware.health@2.1-impl-<device>.recovery
148 ## `device/<manufacturer>/<device>/health/Android.bp` {#android_bp}
[all …]
/hardware/google/pixel/health/
DHealthHelper.cpp22 using HidlHealthInfo = android::hardware::health::V2_0::HealthInfo;
23 using aidl::android::hardware::health::HealthInfo;
25 using android::hardware::health::V1_0::hal_conversion::convertToHealthInfo;
30 namespace health { namespace
/hardware/interfaces/health/storage/aidl/default/
DStorage.cpp24 using ::android::hardware::health::storage::DebugDump;
25 using ::android::hardware::health::storage::GarbageCollect;
27 using HResult = android::hardware::health::storage::V1_0::Result;
28 using AResult = aidl::android::hardware::health::storage::Result;
34 namespace aidl::android::hardware::health::storage { namespace
/hardware/qcom/sm7150/gps/android/utils/
Dbattery_listener.cpp46 using android::hardware::health::V1_0::BatteryStatus;
47 using android::hardware::health::V1_0::toString;
48 using android::hardware::health::V2_0::get_health_service;
49 using android::hardware::health::V2_0::HealthInfo;
50 using android::hardware::health::V2_0::IHealth;
51 using android::hardware::health::V2_0::Result;
61 struct BatteryListenerImpl : public hardware::health::V2_0::IHealthInfoCallback,
67 const hardware::health::V2_0::HealthInfo& info);
75 sp<hardware::health::V2_0::IHealth> mHealth;
97 mHealth = hardware::health::V2_0::get_health_service(); in init()
[all …]
/hardware/qcom/sm8150p/gps/android/utils/
Dbattery_listener.cpp43 using android::hardware::health::V1_0::BatteryStatus;
44 using android::hardware::health::V1_0::toString;
45 using android::hardware::health::V2_0::get_health_service;
46 using android::hardware::health::V2_0::HealthInfo;
47 using android::hardware::health::V2_0::IHealth;
48 using android::hardware::health::V2_0::Result;
58 struct BatteryListenerImpl : public hardware::health::V2_0::IHealthInfoCallback,
64 const hardware::health::V2_0::HealthInfo& info);
72 sp<hardware::health::V2_0::IHealth> mHealth;
94 mHealth = hardware::health::V2_0::get_health_service(); in init()
[all …]
/hardware/qcom/sm8150/gps/android/utils/
Dbattery_listener.cpp47 using android::hardware::health::V1_0::BatteryStatus;
48 using android::hardware::health::V2_1::HealthInfo;
49 using android::hardware::health::V2_1::IHealthInfoCallback;
50 using android::hardware::health::V2_1::IHealth;
51 using android::hardware::health::V2_0::Result;
61 struct BatteryListenerImpl : public hardware::health::V2_1::IHealthInfoCallback,
67 const hardware::health::V2_0::HealthInfo& info);
69 const hardware::health::V2_1::HealthInfo& info);
77 sp<hardware::health::V2_1::IHealth> mHealth;
224 const hardware::health::V2_0::HealthInfo& info) { in healthInfoChanged()
[all …]

123456789