/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/ |
D | CarAudioPowerListenerTest.java | 92 when(mMockCarPowerService.getCurrentPowerPolicy()).thenReturn(null); in startListeningForPolicyChanges_withNullPolicy_doesNothing() 208 when(mMockCarPowerService.getCurrentPowerPolicy()).thenReturn(ENABLED_POLICY); in withAudioInitiallyEnabled() 212 when(mMockCarPowerService.getCurrentPowerPolicy()).thenReturn(DISABLED_POLICY); in withAudioInitiallyDisabled()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/power/ |
D | CarPowerManagementServiceUnitTest.java | 804 assertThat(mService.getCurrentPowerPolicy().getPolicyId()) in testUserManagerOnResumeCallAfterCancel() 820 assertThat(mService.getCurrentPowerPolicy().getPolicyId()) in testUserManagerOnResumeCallAfterCancel() 1734 CarPowerPolicy policy = mService.getCurrentPowerPolicy(); in testParcelableCreation() 2114 WAIT_TIMEOUT_LONG_MS, () -> listenerBluetooth.getCurrentPowerPolicy() != null in testGarageModeSystemPolicyOverride() 2116 listenerBluetooth.getCurrentPowerPolicy().getPolicyId())); in testGarageModeSystemPolicyOverride() 2118 .that(listenerBluetooth.getCurrentPowerPolicy().getEnabledComponents()).asList() in testGarageModeSystemPolicyOverride() 2121 WAIT_TIMEOUT_LONG_MS, () -> listenerNfc.getCurrentPowerPolicy() != null in testGarageModeSystemPolicyOverride() 2123 listenerNfc.getCurrentPowerPolicy().getPolicyId())); in testGarageModeSystemPolicyOverride() 2125 listenerBluetooth.getCurrentPowerPolicy().getEnabledComponents()).asList().contains( in testGarageModeSystemPolicyOverride() 2738 assertThat(mService.getCurrentPowerPolicy().getPolicyId()).isEqualTo( in suspendAndResume() [all …]
|
/packages/services/Car/cpp/powerpolicy/server/tests/ |
D | CarPowerPolicyServerTest.cpp | 156 ScopedAStatus getCurrentPowerPolicy(CarPowerPolicy* aidlReturn) { in getCurrentPowerPolicy() function in android::frameworks::automotive::powerpolicy::internal::CarPowerPolicyServerPeer 157 return mServerProxy->getCurrentPowerPolicy(aidlReturn); in getCurrentPowerPolicy() 462 ScopedAStatus status = server->getCurrentPowerPolicy(¤tPolicy); in TEST_F() 484 status = server->getCurrentPowerPolicy(&policy); in TEST_F() 502 status = server->getCurrentPowerPolicy(&policy); in TEST_F()
|
D | SilentModeHandlerTest.cpp | 104 MOCK_METHOD(ScopedAStatus, getCurrentPowerPolicy, (CarPowerPolicy * aidlReturn), (override));
|
/packages/services/Car/car-lib/src/android/car/hardware/power/ |
D | ICarPower.aidl | 40 CarPowerPolicy getCurrentPowerPolicy(); in getCurrentPowerPolicy() method
|
D | CarPowerManager.java | 513 public CarPowerPolicy getCurrentPowerPolicy() { in getCurrentPowerPolicy() method in CarPowerManager 515 return mService.getCurrentPowerPolicy(); in getCurrentPowerPolicy()
|
/packages/apps/Car/Settings/src/com/android/car/settings/common/ |
D | PowerPolicyListener.java | 112 CarPowerPolicy policy = mCarPowerManager.getCurrentPowerPolicy(); in handleCurrentPolicy()
|
/packages/services/Car/service/src/com/android/car/audio/ |
D | CarAudioPowerListener.java | 98 CarPowerPolicy policy = mCarPowerManagementService.getCurrentPowerPolicy(); in initializePowerState()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/media/ |
D | CarMediaServiceTest.java | 170 when(mMockCarPowerManagementService.getCurrentPowerPolicy()) in setUp() 203 when(mMockCarPowerManagementService.getCurrentPowerPolicy()) in testInit_powerDisabled_doesNotStartMediaConnectorService() 214 when(mMockCarPowerManagementService.getCurrentPowerPolicy()) in testPowerPolicyListener_startsMediaConnectorService()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hardware/power/ |
D | CarPowerManagerUnitTest.java | 304 assertPolicyIdentical(expected, mCarPowerManager.getCurrentPowerPolicy()); in testGetCurrentPowerPolicy() 315 assertThat(mCarPowerManager.getCurrentPowerPolicy().getPolicyId()).isEqualTo(policyId); in testApplyPowerPolicy()
|
/packages/services/Car/cpp/powerpolicy/server/src/ |
D | CarPowerPolicyServer.h | 195 ndk::ScopedAStatus getCurrentPowerPolicy(
|
D | CarPowerPolicyServer.cpp | 378 ScopedAStatus CarPowerPolicyServer::getCurrentPowerPolicy(CarPowerPolicy* aidlReturn) { in getCurrentPowerPolicy() function in android::frameworks::automotive::powerpolicy::CarPowerPolicyServer
|
/packages/services/Car/service/src/com/android/car/ |
D | CarMediaService.java | 545 CarPowerPolicy currentPolicy = mPowerManagementService.getCurrentPowerPolicy(); in isMediaPowerEnabled()
|
/packages/services/Car/service/src/com/android/car/power/ |
D | CarPowerManagementService.java | 2042 public CarPowerPolicy getCurrentPowerPolicy() { in getCurrentPowerPolicy() method in CarPowerManagementService
|
/packages/services/Car/car-lib/api/ |
D | current.txt | 695 …ON_READ_CAR_POWER_POLICY) public android.car.hardware.power.CarPowerPolicy getCurrentPowerPolicy();
|
D | lint-baseline.txt | 1346 UnflaggedApi: android.car.hardware.power.CarPowerManager#getCurrentPowerPolicy(): 1347 …flagged with @FlaggedApi: method android.car.hardware.power.CarPowerManager.getCurrentPowerPolicy()
|
/packages/services/Car/car-lib-module/api/ |
D | current.txt | 695 …ON_READ_CAR_POWER_POLICY) public android.car.hardware.power.CarPowerPolicy getCurrentPowerPolicy();
|
/packages/services/Car/tools/GenericCarApiBuilder/ |
D | complete_car_api_list.txt | 1698 method TIRAMISU_0 CarPowerPolicy getCurrentPowerPolicy();
|