Home
last modified time | relevance | path

Searched refs:getCurrentPowerPolicy (Results 1 – 18 of 18) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarAudioPowerListenerTest.java92 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/
DCarPowerManagementServiceUnitTest.java804 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/
DCarPowerPolicyServerTest.cpp156 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(&currentPolicy); in TEST_F()
484 status = server->getCurrentPowerPolicy(&policy); in TEST_F()
502 status = server->getCurrentPowerPolicy(&policy); in TEST_F()
DSilentModeHandlerTest.cpp104 MOCK_METHOD(ScopedAStatus, getCurrentPowerPolicy, (CarPowerPolicy * aidlReturn), (override));
/packages/services/Car/car-lib/src/android/car/hardware/power/
DICarPower.aidl40 CarPowerPolicy getCurrentPowerPolicy(); in getCurrentPowerPolicy() method
DCarPowerManager.java513 public CarPowerPolicy getCurrentPowerPolicy() { in getCurrentPowerPolicy() method in CarPowerManager
515 return mService.getCurrentPowerPolicy(); in getCurrentPowerPolicy()
/packages/apps/Car/Settings/src/com/android/car/settings/common/
DPowerPolicyListener.java112 CarPowerPolicy policy = mCarPowerManager.getCurrentPowerPolicy(); in handleCurrentPolicy()
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioPowerListener.java98 CarPowerPolicy policy = mCarPowerManagementService.getCurrentPowerPolicy(); in initializePowerState()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/media/
DCarMediaServiceTest.java170 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/
DCarPowerManagerUnitTest.java304 assertPolicyIdentical(expected, mCarPowerManager.getCurrentPowerPolicy()); in testGetCurrentPowerPolicy()
315 assertThat(mCarPowerManager.getCurrentPowerPolicy().getPolicyId()).isEqualTo(policyId); in testApplyPowerPolicy()
/packages/services/Car/cpp/powerpolicy/server/src/
DCarPowerPolicyServer.h195 ndk::ScopedAStatus getCurrentPowerPolicy(
DCarPowerPolicyServer.cpp378 ScopedAStatus CarPowerPolicyServer::getCurrentPowerPolicy(CarPowerPolicy* aidlReturn) { in getCurrentPowerPolicy() function in android::frameworks::automotive::powerpolicy::CarPowerPolicyServer
/packages/services/Car/service/src/com/android/car/
DCarMediaService.java545 CarPowerPolicy currentPolicy = mPowerManagementService.getCurrentPowerPolicy(); in isMediaPowerEnabled()
/packages/services/Car/service/src/com/android/car/power/
DCarPowerManagementService.java2042 public CarPowerPolicy getCurrentPowerPolicy() { in getCurrentPowerPolicy() method in CarPowerManagementService
/packages/services/Car/car-lib/api/
Dcurrent.txt695 …ON_READ_CAR_POWER_POLICY) public android.car.hardware.power.CarPowerPolicy getCurrentPowerPolicy();
Dlint-baseline.txt1346 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/
Dcurrent.txt695 …ON_READ_CAR_POWER_POLICY) public android.car.hardware.power.CarPowerPolicy getCurrentPowerPolicy();
/packages/services/Car/tools/GenericCarApiBuilder/
Dcomplete_car_api_list.txt1698 method TIRAMISU_0 CarPowerPolicy getCurrentPowerPolicy();