Home
last modified time | relevance | path

Searched refs:power (Results 1 – 25 of 232) sorted by relevance

12345678910

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/power/
DPowerComponentHandlerUnitTest.java17 package com.android.car.power;
19 import static android.car.hardware.power.PowerComponent.AUDIO;
20 import static android.car.hardware.power.PowerComponent.BLUETOOTH;
21 import static android.car.hardware.power.PowerComponent.CELLULAR;
22 import static android.car.hardware.power.PowerComponent.CPU;
23 import static android.car.hardware.power.PowerComponent.DISPLAY;
24 import static android.car.hardware.power.PowerComponent.ETHERNET;
25 import static android.car.hardware.power.PowerComponent.INPUT;
26 import static android.car.hardware.power.PowerComponent.LOCATION;
27 import static android.car.hardware.power.PowerComponent.MEDIA;
[all …]
DPolicyReaderUnitTest.java17 package com.android.car.power;
19 import static android.car.hardware.power.PowerComponent.AUDIO;
20 import static android.car.hardware.power.PowerComponent.BLUETOOTH;
21 import static android.car.hardware.power.PowerComponent.CELLULAR;
22 import static android.car.hardware.power.PowerComponent.CPU;
23 import static android.car.hardware.power.PowerComponent.DISPLAY;
24 import static android.car.hardware.power.PowerComponent.ETHERNET;
25 import static android.car.hardware.power.PowerComponent.INPUT;
26 import static android.car.hardware.power.PowerComponent.LOCATION;
27 import static android.car.hardware.power.PowerComponent.MEDIA;
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hardware/power/
DCarPowerManagerUnitTest.java17 package com.android.car.hardware.power;
19 import static android.car.hardware.power.PowerComponent.AUDIO;
20 import static android.car.hardware.power.PowerComponent.BLUETOOTH;
21 import static android.car.hardware.power.PowerComponent.CELLULAR;
22 import static android.car.hardware.power.PowerComponent.CPU;
23 import static android.car.hardware.power.PowerComponent.DISPLAY;
24 import static android.car.hardware.power.PowerComponent.ETHERNET;
25 import static android.car.hardware.power.PowerComponent.INPUT;
26 import static android.car.hardware.power.PowerComponent.LOCATION;
27 import static android.car.hardware.power.PowerComponent.MEDIA;
[all …]
DPowerComponentUtilUnitTest.java16 package com.android.car.power;
18 import static android.car.hardware.power.PowerComponentUtil.powerComponentToString;
19 import static android.car.hardware.power.PowerComponentUtil.powerComponentsToStrings;
24 import android.car.hardware.power.CarPowerPolicy;
25 import android.car.hardware.power.CarPowerPolicyFilter;
26 import android.car.hardware.power.PowerComponent;
27 import android.car.hardware.power.PowerComponentUtil;
/packages/services/Car/car-lib/src/android/car/hardware/power/
DICarPower.aidl17 package android.car.hardware.power;
19 import android.car.hardware.power.CarPowerPolicy;
20 import android.car.hardware.power.CarPowerPolicyFilter;
21 import android.car.hardware.power.ICarPowerPolicyListener;
22 import android.car.hardware.power.ICarPowerStateListener;
DICarPowerPolicyListener.aidl17 package android.car.hardware.power;
19 import android.car.hardware.power.CarPowerPolicy;
/packages/services/Car/service/src/com/android/car/power/
DPowerComponentHandler.java17 package com.android.car.power;
19 import static android.car.hardware.power.PowerComponent.BLUETOOTH;
20 import static android.car.hardware.power.PowerComponent.DISPLAY;
21 import static android.car.hardware.power.PowerComponent.VOICE_INTERACTION;
22 import static android.car.hardware.power.PowerComponent.WIFI;
23 import static android.car.hardware.power.PowerComponentUtil.FIRST_POWER_COMPONENT;
24 import static android.car.hardware.power.PowerComponentUtil.INVALID_POWER_COMPONENT;
25 import static android.car.hardware.power.PowerComponentUtil.LAST_POWER_COMPONENT;
26 import static android.car.hardware.power.PowerComponentUtil.powerComponentToString;
27 import static android.car.hardware.power.PowerComponentUtil.toPowerComponent;
[all …]
DPolicyReader.java17 package com.android.car.power;
19 import static android.car.hardware.power.PowerComponentUtil.FIRST_POWER_COMPONENT;
20 import static android.car.hardware.power.PowerComponentUtil.INVALID_POWER_COMPONENT;
21 import static android.car.hardware.power.PowerComponentUtil.LAST_POWER_COMPONENT;
22 import static android.car.hardware.power.PowerComponentUtil.powerComponentToString;
23 import static android.car.hardware.power.PowerComponentUtil.toPowerComponent;
37 import android.car.hardware.power.CarPowerPolicy;
38 import android.car.hardware.power.PowerComponent;
52 import com.android.car.power.CarPowerDumpProto.PolicyReaderProto;
53 import com.android.car.power.CarPowerDumpProto.PolicyReaderProto.ComponentNameToValue;
[all …]
/packages/modules/Bluetooth/system/doc/
Dpower_management.md27 The PM code makes calls into the BTM module to set various power
35 Overall power states are managed *per device*, not per connection, but the power
36 policy is determined by the greatest allowable power action defined across all
40 states it wants ACTIVE, the power management code will change to ACTIVE.
44 The tables that determine which power levels are acceptable for which profiles
52 power modes are acceptable and what actions to take for each event.
63 from `bta_dm_conn_srvcs` and no longer be considered for power management
71 - `BTA_DM_PM_ACTIVE` is full-on power.
73 timeout is possible to be set, which effectively allows a power operation to
79 `bta_dm_pm_cback` with the bta sys module for incoming power management events,
[all …]
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioPowerListener.java19 import static android.car.hardware.power.PowerComponent.AUDIO;
23 import android.car.hardware.power.CarPowerPolicy;
24 import android.car.hardware.power.CarPowerPolicyFilter;
25 import android.car.hardware.power.ICarPowerPolicyListener;
29 import com.android.car.power.CarPowerManagementService;
/packages/services/Car/service/src/com/android/car/bluetooth/
DBluetoothPowerPolicy.java24 import android.car.hardware.power.CarPowerPolicy;
25 import android.car.hardware.power.CarPowerPolicyFilter;
26 import android.car.hardware.power.ICarPowerPolicyListener;
27 import android.car.hardware.power.PowerComponent;
38 import com.android.car.power.CarPowerManagementService;
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DAidRoutingManager.java90 int power; field in AidRoutingManager.AidEntry
289 int power = aidEntry.getValue().power; in configureRouting() local
296 powerForAid.put(aid, power); in configureRouting()
422 default_route_power_state |= aidMap.get(aid).power; in configureRouting()
433 entry.power = default_route_power_state; in configureRouting()
453 if (aidMap.get(aid).power != default_route_power_state) { in configureRouting()
495 int power = aidEntry.getValue().power; in commit() local
498 + ",aidtype:" + aidType + ", power state:" + power); in commit()
501 NfcService.getInstance().routeAids(aid, route, aidType, power); in commit()
/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/
DPowerRecord.java98 public PowerRecordSample(@NonNull Power power, @NonNull Instant time) { in PowerRecordSample() argument
99 this(power, time, false); in PowerRecordSample()
111 @NonNull Power power, @NonNull Instant time, boolean skipValidation) { in PowerRecordSample()
113 Objects.requireNonNull(power); in PowerRecordSample()
115 ValidationUtils.requireInRange(power.getInWatts(), 0.0, 100000.0, "power"); in PowerRecordSample()
118 mPower = power; in PowerRecordSample()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/aggregation/
DDataFactory.java55 static BasalMetabolicRateRecord getBasalMetabolicRateRecord(double power, Instant time) { in getBasalMetabolicRateRecord() argument
57 new Metadata.Builder().build(), time, Power.fromWatts(power)) in getBasalMetabolicRateRecord()
66 double power, Instant time, ZoneOffset offset) { in getBasalMetabolicRateRecord() argument
68 new Metadata.Builder().build(), time, Power.fromWatts(power)) in getBasalMetabolicRateRecord()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarAudioPowerListenerTest.java28 import android.car.hardware.power.CarPowerPolicy;
29 import android.car.hardware.power.CarPowerPolicyFilter;
30 import android.car.hardware.power.ICarPowerPolicyListener;
31 import android.car.hardware.power.PowerComponent;
33 import com.android.car.power.CarPowerManagementService;
/packages/apps/Car/Settings/src/com/android/car/settings/common/
DPowerPolicyListener.java20 import android.car.hardware.power.CarPowerManager;
21 import android.car.hardware.power.CarPowerPolicy;
22 import android.car.hardware.power.CarPowerPolicyFilter;
/packages/services/Car/service/src/com/android/car/
DCarLocationService.java27 import android.car.hardware.power.CarPowerManager;
28 import android.car.hardware.power.CarPowerManager.CarPowerStateListenerWithCompletion;
29 import android.car.hardware.power.CarPowerManager.CompletablePowerStateChangeFuture;
30 import android.car.hardware.power.CarPowerPolicy;
31 import android.car.hardware.power.CarPowerPolicyFilter;
32 import android.car.hardware.power.ICarPowerPolicyListener;
33 import android.car.hardware.power.PowerComponent;
53 import com.android.car.power.CarPowerManagementService;
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/bluetooth/
DBluetoothPowerPolicyTest.java19 import static android.car.hardware.power.PowerComponentUtil.FIRST_POWER_COMPONENT;
20 import static android.car.hardware.power.PowerComponentUtil.LAST_POWER_COMPONENT;
33 import android.car.hardware.power.CarPowerPolicy;
40 import com.android.car.power.CarPowerManagementService;
/packages/services/Car/service/src/com/android/car/telemetry/sessioncontroller/
DSessionController.java21 import android.car.hardware.power.CarPowerManager;
22 import android.car.hardware.power.ICarPowerStateListener;
30 import com.android.car.power.CarPowerManagementService;
/packages/modules/Virtualization/vmbase/src/
Dlib.rs34 pub mod power; module
41 use power::reboot;
/packages/services/Car/tests/common_utils/src/com/android/car/test/power/
DCarPowerPolicyUtil.java17 package com.android.car.test.power;
21 import android.car.hardware.power.CarPowerPolicy;
/packages/services/Car/service/src/com/android/car/garagemode/
DGarageModeController.java23 import android.car.hardware.power.CarPowerManager;
24 import android.car.hardware.power.ICarPowerStateListener;
36 import com.android.car.power.CarPowerManagementService;
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/formatters/
DPowerFormatter.kt80 val avrPower = samples.sumOf { it.power.inWatts } / samples.size in <lambda>()
92 mapOf("value" to sample.power.inWatts)), in <lambda>()
96 mapOf("value" to sample.power.inWatts)), in <lambda>()
/packages/services/Car/cpp/powerpolicy/sepolicy/private/
Dcarpowerpolicy.te1 # Car power policy server
20 # Allow reading and writing /sys/power/
/packages/services/Car/tests/carservice_test/src/com/android/car/power/
DPowerComponentValidityTest.java16 package com.android.car.power;
35 Field[] carFields = android.car.hardware.power.PowerComponent.class.getFields(); in testSamePowerComponent()

12345678910