/aosp12/frameworks/base/core/java/android/os/ |
H A D | PowerComponents.java | 112 return mPowerComponentsMah[componentId]; in getConsumedPower() 185 return mUsageDurationsMs[componentId]; in getUsageDurationMillis() 229 for (int componentId = 0; componentId < BatteryConsumer.POWER_COMPONENT_COUNT; in dump() 230 componentId++) { in dump() 297 componentId); in writeStatsProtoImpl() 313 for (int componentId = 0; componentId < BatteryConsumer.POWER_COMPONENT_COUNT; 314 componentId++) { 339 componentId < customComponentEnd; 340 componentId++) { 376 int componentId = -1; [all …]
|
H A D | BatteryConsumer.java | 170 public double getConsumedPower(@PowerComponent int componentId) { in getConsumedPower() argument 171 return mPowerComponents.getConsumedPower(componentId); in getConsumedPower() 181 return mPowerComponents.getPowerModel(componentId); in getPowerModel() 190 public double getConsumedPowerForCustomComponent(int componentId) { in getConsumedPowerForCustomComponent() argument 207 public String getCustomPowerComponentName(int componentId) { in getCustomPowerComponentName() argument 208 return mPowerComponents.getCustomPowerComponentName(componentId); in getCustomPowerComponentName() 219 public long getUsageDurationMillis(@PowerComponent int componentId) { in getUsageDurationMillis() argument 220 return mPowerComponents.getUsageDurationMillis(componentId); in getUsageDurationMillis() 230 public long getUsageDurationForCustomComponentMillis(int componentId) { in getUsageDurationForCustomComponentMillis() argument 242 return sPowerComponentNames[componentId]; in powerComponentIdToString() [all …]
|
H A D | BatteryUsageStats.java | 561 for (int componentId = 0; componentId < BatteryConsumer.POWER_COMPONENT_COUNT; in dump() 562 componentId++) { in dump() 563 final double devicePowerMah = deviceConsumer.getConsumedPower(componentId); in dump() 564 final double appsPowerMah = appsConsumer.getConsumedPower(componentId); in dump() 571 deviceConsumer.getPowerModel(componentId), in dump() 572 deviceConsumer.getUsageDurationMillis(componentId)); in dump() 575 for (int componentId = BatteryConsumer.FIRST_CUSTOM_POWER_COMPONENT_ID; in dump() 576 componentId < BatteryConsumer.FIRST_CUSTOM_POWER_COMPONENT_ID in dump() 578 componentId++) { in dump() 580 deviceConsumer.getConsumedPowerForCustomComponent(componentId); in dump() [all …]
|
/aosp12/frameworks/base/core/java/android/hardware/biometrics/ |
H A D | ComponentInfoInternal.java | 30 @NonNull public final String componentId; field in ComponentInfoInternal 41 return new ComponentInfoInternal(comp.componentId, comp.hardwareVersion, in from() 48 public ComponentInfoInternal(@NonNull String componentId, @NonNull String hardwareVersion, in ComponentInfoInternal() argument 51 this.componentId = componentId; in ComponentInfoInternal() 59 componentId = in.readString(); in ComponentInfoInternal() 86 dest.writeString(componentId); in writeToParcel() 95 return "ComponentId: " + componentId in toString()
|
H A D | SensorProperties.java | 75 public ComponentInfo(@NonNull String componentId, @NonNull String hardwareVersion, in ComponentInfo() argument 78 mComponentId = componentId; in ComponentInfo() 131 return new ComponentInfo(internalComp.componentId, internalComp.hardwareVersion, in from()
|
/aosp12/frameworks/base/core/java/com/android/internal/accessibility/util/ |
H A D | ShortcutUtils.java | 52 @NonNull String componentId) { in optInValueToSettings() argument 58 if (isComponentIdExistingInSettings(context, shortcutType, componentId)) { in optInValueToSettings() 65 joiner.add(componentId); in optInValueToSettings() 79 Context context, @UserShortcutType int shortcutType, @NonNull String componentId) { in optOutValueFromSettings() argument 92 if (TextUtils.isEmpty(id) || componentId.equals(id)) { in optOutValueFromSettings() 110 @UserShortcutType int shortcutType, @NonNull String componentId) { in isComponentIdExistingInSettings() argument 122 if (componentId.equals(id)) { in isComponentIdExistingInSettings() 139 @NonNull String componentId) { in isShortcutContained() argument 143 return requiredTargets.contains(componentId); in isShortcutContained()
|
H A D | AccessibilityUtils.java | 144 @NonNull String componentId) { in isAccessibilityServiceEnabled() argument 152 if (id.equals(componentId)) { in isAccessibilityServiceEnabled()
|
/aosp12/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
H A D | BatteryAppListPreferenceController.java | 348 for (int componentId = 0; componentId < BatteryConsumer.POWER_COMPONENT_COUNT; in getCoalescedUsageList() 349 componentId++) { in getCoalescedUsageList() 355 results.add(new BatteryEntry(mContext, componentId, in getCoalescedUsageList() 356 deviceConsumer.getConsumedPower(componentId), in getCoalescedUsageList() 357 appsConsumer.getConsumedPower(componentId), in getCoalescedUsageList() 358 deviceConsumer.getUsageDurationMillis(componentId))); in getCoalescedUsageList() 364 componentId++) { in getCoalescedUsageList() 369 results.add(new BatteryEntry(mContext, componentId, in getCoalescedUsageList() 370 deviceConsumer.getCustomPowerComponentName(componentId), in getCoalescedUsageList() 480 for (@BatteryConsumer.PowerComponent int componentId : new int[]{ in getFakeStats() [all …]
|
/aosp12/packages/services/Car/cpp/powerpolicy/server/src/ |
H A D | PowerComponentHandler.cpp | 39 for (const auto componentId : enum_range<PowerComponent>()) { in init() local 40 mAccumulatedPolicy->disabledComponents.push_back(componentId); in init() 71 Result<bool> PowerComponentHandler::getPowerComponentState(const PowerComponent componentId) const { in getPowerComponentState() 73 auto findComponent = [componentId](const std::vector<PowerComponent>& components) -> bool { in getPowerComponentState() 74 return std::find(components.begin(), components.end(), componentId) != components.end(); in getPowerComponentState() 82 return Error() << StringPrintf("Invalid power component(%d)", componentId); in getPowerComponentState()
|
H A D | PolicyManager.cpp | 141 std::string_view componentId = id.substr(prefix.size()); in toPowerComponent() local 144 if (componentId == toString(component)) { in toPowerComponent() 184 PowerComponent componentId = toPowerComponent(id, kPowerComponentPrefix); in readComponents() local 185 if (componentId == INVALID_POWER_COMPONENT) { in readComponents() 190 if (visited->count(componentId) > 0) { in readComponents() 195 visited->insert(componentId); in readComponents() 198 policy->enabledComponents.push_back(componentId); in readComponents() 200 policy->disabledComponents.push_back(componentId); in readComponents() 409 PowerComponent componentId = toPowerComponent(component, ""); in stringsToComponents() local 410 if (componentId == INVALID_POWER_COMPONENT) { in stringsToComponents() [all …]
|
H A D | PowerComponentHandler.h | 43 android::base::Result<bool> getPowerComponentState(const PowerComponent componentId) const;
|
/aosp12/frameworks/base/core/tests/batterystatstests/BatteryUsageStatsProtoTests/src/com/android/internal/os/ |
H A D | BatteryUsageStatsPulledTest.java | 120 final int componentId = componentProto.component; in assertSameBatteryConsumer() local 121 if (componentId < BatteryConsumer.POWER_COMPONENT_COUNT) { in assertSameBatteryConsumer() 122 assertEquals(message + " for component " + componentId, in assertSameBatteryConsumer() 123 convertMahToDc(consumer.getConsumedPower(componentId)), in assertSameBatteryConsumer() 125 assertEquals(message + " for component " + componentId, in assertSameBatteryConsumer() 126 consumer.getUsageDurationMillis(componentId), in assertSameBatteryConsumer() 129 assertEquals(message + " for custom component " + componentId, in assertSameBatteryConsumer() 130 convertMahToDc(consumer.getConsumedPowerForCustomComponent(componentId)), in assertSameBatteryConsumer() 132 assertEquals(message + " for custom component " + componentId, in assertSameBatteryConsumer() 133 consumer.getUsageDurationForCustomComponentMillis(componentId), in assertSameBatteryConsumer()
|
/aosp12/frameworks/base/core/tests/batterystatstests/BatteryStatsLoadTests/src/com/android/frameworks/core/batterystatsloadtests/ |
H A D | PowerMetrics.java | 82 static String getDurationMetricName(int componentId) { in getDurationMetricName() argument 84 "POWER_COMPONENT_", componentId); in getDurationMetricName() 87 static String getPowerMetricName(int componentId) { in getPowerMetricName() argument 89 "POWER_COMPONENT_", componentId); in getPowerMetricName()
|
/aosp12/frameworks/base/core/tests/batterystatstests/BatteryStatsViewer/src/com/android/frameworks/core/batterystatsviewer/ |
H A D | BatteryConsumerData.java | 262 static String getPowerMetricTitle(int componentId) { in getPowerMetricTitle() argument 263 return getPowerComponentName(componentId); in getPowerMetricTitle() 266 static String getTimeMetricTitle(int componentId) { in getTimeMetricTitle() argument 267 return getPowerComponentName(componentId) + " time"; in getTimeMetricTitle() 270 private static String getPowerComponentName(int componentId) { in getPowerComponentName() argument 271 switch (componentId) { in getPowerComponentName() 280 "POWER_COMPONENT_", componentId); in getPowerComponentName()
|
/aosp12/hardware/interfaces/biometrics/face/aidl/default/ |
H A D | Face.cpp | 36 hw_component_info.componentId = kHwComponentId; in getSensorProps() 43 sw_component_info.componentId = kSwComponentId; in getSensorProps()
|
/aosp12/packages/services/Car/cpp/powerpolicy/server/tests/ |
H A D | PowerComponentHandlerTest.cpp | 64 for (auto componentId : enum_range<PowerComponent>()) { in TEST_F() local 65 allComponents.push_back(componentId); in TEST_F()
|
H A D | SilentModeHandlerTest.cpp | 95 MOCK_METHOD(Status, getPowerComponentState, (PowerComponent componentId, bool* aidlReturn),
|
/aosp12/frameworks/hardware/interfaces/automotive/powerpolicy/aidl/vts/ |
H A D | VtsAidlPowerPolicyTargetTest.cpp | 98 for (const auto componentId : android::enum_range<PowerComponent>()) { in TEST_P() local 99 Status status = powerPolicyServer->getPowerComponentState(componentId, &state); in TEST_P()
|
/aosp12/hardware/interfaces/biometrics/common/aidl/aidl_api/android.hardware.biometrics.common/1/android/hardware/biometrics/common/ |
H A D | ComponentInfo.aidl | 37 String componentId;
|
/aosp12/hardware/interfaces/biometrics/common/aidl/aidl_api/android.hardware.biometrics.common/current/android/hardware/biometrics/common/ |
H A D | ComponentInfo.aidl | 37 String componentId;
|
/aosp12/hardware/interfaces/biometrics/common/aidl/android/hardware/biometrics/common/ |
H A D | ComponentInfo.aidl | 25 String componentId;
|
/aosp12/frameworks/hardware/interfaces/automotive/powerpolicy/aidl/aidl_api/android.frameworks.automotive.powerpolicy/1/android/frameworks/automotive/powerpolicy/ |
H A D | ICarPowerPolicyServer.aidl | 38 …an getPowerComponentState(in android.frameworks.automotive.powerpolicy.PowerComponent componentId); in getPowerComponentState() argument
|
/aosp12/frameworks/hardware/interfaces/automotive/powerpolicy/aidl/aidl_api/android.frameworks.automotive.powerpolicy/current/android/frameworks/automotive/powerpolicy/ |
H A D | ICarPowerPolicyServer.aidl | 37 …an getPowerComponentState(in android.frameworks.automotive.powerpolicy.PowerComponent componentId); in getPowerComponentState() argument
|
/aosp12/frameworks/hardware/interfaces/automotive/powerpolicy/aidl/android/frameworks/automotive/powerpolicy/ |
H A D | ICarPowerPolicyServer.aidl | 46 boolean getPowerComponentState(in PowerComponent componentId); in getPowerComponentState() argument
|
/aosp12/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
H A D | AccessibilityUserState.java | 511 final String componentId = mAccessibilityShortcutKeyTargets.valueAt(i); in dump() local 512 pw.append(componentId); in dump() 521 final String componentId = mAccessibilityButtonTargets.valueAt(i); in dump() local 522 pw.append(componentId); in dump()
|