Home
last modified time | relevance | path

Searched refs:battery (Results 1 – 25 of 99) sorted by relevance

1234

/frameworks/base/core/jni/
Dcom_android_internal_os_LongArrayMultiStateCounter.cpp31 battery::LongArrayMultiStateCounter *counter = in native_init()
32 new battery::LongArrayMultiStateCounter(stateCount, std::vector<uint64_t>(arrayLength)); in native_init()
37 battery::LongArrayMultiStateCounter *counter = in native_dispose()
38 reinterpret_cast<battery::LongArrayMultiStateCounter *>(nativePtr); in native_dispose()
47 battery::LongArrayMultiStateCounter *counter = in native_setEnabled()
48 reinterpret_cast<battery::LongArrayMultiStateCounter *>(nativePtr); in native_setEnabled()
53 battery::LongArrayMultiStateCounter *counter = in native_setState()
54 reinterpret_cast<battery::LongArrayMultiStateCounter *>(nativePtr); in native_setState()
59 battery::LongArrayMultiStateCounter *counterTarget = in native_copyStatesFrom()
60 reinterpret_cast<battery::LongArrayMultiStateCounter *>(nativePtrTarget); in native_copyStatesFrom()
[all …]
Dcom_android_internal_os_LongMultiStateCounter.cpp29 namespace battery { namespace
31 typedef battery::MultiStateCounter<int64_t> LongMultiStateCounter;
58 static inline battery::LongMultiStateCounter *asLongMultiStateCounter(const jlong nativePtr) { in asLongMultiStateCounter()
59 return reinterpret_cast<battery::LongMultiStateCounter *>(nativePtr); in asLongMultiStateCounter()
63 battery::LongMultiStateCounter *counter = new battery::LongMultiStateCounter(stateCount, 0); in native_init()
68 delete reinterpret_cast<battery::LongMultiStateCounter *>(nativePtr); in native_dispose()
123 battery::LongMultiStateCounter *counter = asLongMultiStateCounter(nativePtr); in native_writeToParcel()
129 for (battery::state_t state = 0; state < stateCount; state++) { in native_writeToParcel()
160 auto counter = std::make_unique<battery::LongMultiStateCounter>(stateCount, 0); in native_initFromParcel()
162 for (battery::state_t state = 0; state < stateCount; state++) { in native_initFromParcel()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/battery/
DAccessorizedBatteryDrawableTest.kt17 package com.android.systemui.battery
21 import com.android.systemui.battery.BatterySpecs.BATTERY_HEIGHT
22 import com.android.systemui.battery.BatterySpecs.BATTERY_HEIGHT_WITH_SHIELD
23 import com.android.systemui.battery.BatterySpecs.BATTERY_WIDTH
24 import com.android.systemui.battery.BatterySpecs.BATTERY_WIDTH_WITH_SHIELD
DBatterySpecsTest.kt17 package com.android.systemui.battery
21 import com.android.systemui.battery.BatterySpecs.BATTERY_HEIGHT
22 import com.android.systemui.battery.BatterySpecs.BATTERY_HEIGHT_WITH_SHIELD
23 import com.android.systemui.battery.BatterySpecs.BATTERY_WIDTH
24 import com.android.systemui.battery.BatterySpecs.BATTERY_WIDTH_WITH_SHIELD
/frameworks/proto_logging/stats/express/catalog/
Dbattery.cfg2 id: "battery.value_app_background_restricted"
4 description: "Number of times an app is put under background battery restriction"
12 id: "battery.value_app_added_to_power_allowlist"
22 id: "battery.value_app_removed_from_power_allowlist"
/frameworks/base/packages/SystemUI/src/com/android/systemui/battery/
DAccessorizedBatteryDrawable.kt15 package com.android.systemui.battery in <lambda>()
32 import com.android.systemui.battery.BatterySpecs.BATTERY_HEIGHT in <lambda>()
33 import com.android.systemui.battery.BatterySpecs.BATTERY_HEIGHT_WITH_SHIELD in <lambda>()
34 import com.android.systemui.battery.BatterySpecs.BATTERY_WIDTH in <lambda>()
35 import com.android.systemui.battery.BatterySpecs.BATTERY_WIDTH_WITH_SHIELD in <lambda>()
36 import com.android.systemui.battery.BatterySpecs.SHIELD_LEFT_OFFSET in <lambda>()
37 import com.android.systemui.battery.BatterySpecs.SHIELD_STROKE in <lambda>()
38 import com.android.systemui.battery.BatterySpecs.SHIELD_TOP_OFFSET in <lambda>()
DBatterySaverModule.kt1 package com.android.systemui.battery
9 import com.android.systemui.qs.tiles.impl.battery.domain.interactor.BatterySaverTileDataInteractor
10 import com.android.systemui.qs.tiles.impl.battery.domain.interactor.BatterySaverTileUserActionInter…
11 import com.android.systemui.qs.tiles.impl.battery.domain.model.BatterySaverTileModel
12 import com.android.systemui.qs.tiles.impl.battery.ui.BatterySaverTileMapper
/frameworks/base/services/core/java/com/android/server/power/stats/
Dflags.aconfig15 description: "Feature flag for streamlined battery stats"
30 description: "Feature flag for streamlined connectivity battery stats"
37 description: "Feature flag for streamlined misc (excluding CPU, Cell, Wifi, BT) battery stats"
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/qs/tiles/impl/battery/
DBatterySaverTileKosmos.kt17 package com.android.systemui.qs.tiles.impl.battery
19 import com.android.systemui.battery.BatterySaverModule
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/battery/doman/interactor/
DBatterySaverTileUserActionInteractorTest.kt17 package com.android.systemui.qs.tiles.impl.battery.doman.interactor
28 import com.android.systemui.qs.tiles.impl.battery.domain.interactor.BatterySaverTileUserActionInter…
29 import com.android.systemui.qs.tiles.impl.battery.domain.model.BatterySaverTileModel
/frameworks/hardware/interfaces/stats/1.0/
DIStats.hal52 * Report bucketed battery charge cycles.
54 * @param chargeCycles A struct with battery charge cycle buckets.
59 * Report battery health snapshot, aggregated.
77 * Report a shutdown event caused by low battery.
80 * the last recorded battery voltage prior to shutdown.
Dtypes.hal93 * Represents bucketed battery charge cycles.
96 * the battery has charged past equal-sized fractions of full capacity.
97 * For example, given the vector [12, 11, 10, 9, 8, 7, 6, 5], the battery
119 MIN_BATT_LEVEL, // Snapshot at min battery level (SoC) over 24hrs.
120 MAX_BATT_LEVEL, // Snapshot at max battery level (SoC) over 24hrs.
121 AVG_RESISTANCE, // Snapshot at average battery resistance over 24hrs.
164 /* The last recorded battery voltage prior to shutdown. */
/frameworks/base/core/proto/android/os/
Dbatterystats.proto83 // Realtime duration on battery.
93 // Total time the screen was dozing while the device was running on battery.
97 // The estimated real battery capacity, which may be less than the declared
98 // battery capacity (for example, because of battery aging). This field is
102 // The minimum learned battery capacity in uAh.
104 // The maximum learned battery capacity in uAh.
107 optional Battery battery = 1; field
112 // Discharged battery percentage points since the stats were last reset
124 // Total amount of battery discharged in mAh. This will only be non-zero for
125 // devices that report battery discharge via a coulomb counter.
[all …]
Dappbackgroundrestrictioninfo.proto76 // total battery usage within last 24h (1/10000th)
78 // background battery usage (1/10000th)
80 // FGS battery usage (1/10000th)
82 // Foreground battery usage (1/10000th)
84 // Cached battery usage (1/10000th)
/frameworks/base/core/proto/android/server/
Dpowermanagerservice.proto87 // The current battery level percentage.
89 // The battery level percentage at the time the dream started.
124 // True if the battery level is currently considered low.
180 // The time (in the elapsed realtime timebase) at which the battery level will reach 0%. This
184 // Timestamp (in the elapsed realtime timebase) of last update to enhanced battery estimate
192 // The battery level drained by the dream.
276 // Minimum battery level to allow dreaming when powered.
279 // Minimum battery level to allow dreaming when not powered.
282 // If the battery level drops by this percentage and the user activity
309 // A set of battery conditions under which to make the screen stay on.
[all …]
/frameworks/base/packages/SystemUI/src/com/android/keyguard/dagger/
DKeyguardStatusBarViewModule.java20 import com.android.systemui.battery.BatteryMeterView;
42 return view.findViewById(R.id.battery); in getBatteryMeterView()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/battery/domain/interactor/
DBatterySaverTileUserActionInteractor.kt17 package com.android.systemui.qs.tiles.impl.battery.domain.interactor
24 import com.android.systemui.qs.tiles.impl.battery.domain.model.BatterySaverTileModel
DBatterySaverTileDataInteractor.kt17 package com.android.systemui.qs.tiles.impl.battery.domain.interactor in <lambda>()
23 import com.android.systemui.qs.tiles.impl.battery.domain.model.BatterySaverTileModel in <lambda>()
/frameworks/base/core/proto/android/service/
Dbattery.proto18 package android.service.battery;
45 // True if the battery is present
55 // The type of battery installed, e.g. "Li-ion"
/frameworks/base/packages/SystemUI/src/com/android/systemui/battery/unified/
DBatteryPercentTextOnlyDrawable.kt17 package com.android.systemui.battery.unified in <lambda>()
27 import com.android.systemui.battery.unified.BatteryLayersDrawable.Companion.Metrics in <lambda>()
DBatterySpaceSharingPercentTextDrawable.kt17 package com.android.systemui.battery.unified in <lambda>()
27 import com.android.systemui.battery.unified.BatteryLayersDrawable.Companion.Metrics in <lambda>()
/frameworks/base/packages/SystemUI/docs/
Ddemo_mode.md29 | ```battery``` | | | Control the battery display
30 | | ```level``` | | Sets the battery level (0 …
113 Empty battery, and not charging (red exclamation point)
116 adb shell am broadcast -a com.android.systemui.demo -e command battery -e level
170 $ADB shell am broadcast -a com.android.systemui.demo -e command battery -e
172 $ADB shell am broadcast -a com.android.systemui.demo -e command battery -e
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/battery/ui/
DBatterySaverTileMapper.kt17 package com.android.systemui.qs.tiles.impl.battery.ui
23 import com.android.systemui.qs.tiles.impl.battery.domain.model.BatterySaverTileModel
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DBatteryStatusChip.kt26 import com.android.systemui.battery.BatteryMeterView
27 import com.android.systemui.battery.unified.BatteryColors
/frameworks/native/libs/battery/
DLongArrayMultiStateCounter.h24 namespace battery {

1234