Home
last modified time | relevance | path

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

/packages/services/Car/cpp/powerpolicy/server/tests/
DCarPowerPolicyServerTest.cpp68 Status getCurrentPowerPolicy(CarPowerPolicy* aidlReturn) { in getCurrentPowerPolicy() function in android::frameworks::automotive::powerpolicy::internal::CarPowerPolicyServerPeer
69 return server->getCurrentPowerPolicy(aidlReturn); in getCurrentPowerPolicy()
134 Status status = server->getCurrentPowerPolicy(&currentPolicy); in TEST_F()
DSilentModeHandlerTest.cpp108 MOCK_METHOD(Status, getCurrentPowerPolicy, (CarPowerPolicy * aidlReturn), (override));
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarAudioPowerListenerTest.java91 when(mMockCarPowerService.getCurrentPowerPolicy()).thenReturn(null); in startListeningForPolicyChanges_withNullPolicy_enablesAudio()
169 when(mMockCarPowerService.getCurrentPowerPolicy()).thenReturn(ENABLED_POLICY); in withAudioInitiallyEnabled()
173 when(mMockCarPowerService.getCurrentPowerPolicy()).thenReturn(DISABLED_POLICY); in withAudioInitiallyDisabled()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/power/
DCarPowerManagementServiceUnitTest.java447 CarPowerPolicy policy = mService.getCurrentPowerPolicy(); in testApplyPowerPolicy()
542 assertThat(listenerAudio.getCurrentPowerPolicy().getPolicyId()).isEqualTo(policyId); in testAddPowerPolicyListener()
543 assertThat(listenerWifi.getCurrentPowerPolicy().getPolicyId()).isEqualTo(policyId); in testAddPowerPolicyListener()
544 assertThat(listenerLocation.getCurrentPowerPolicy()).isNull(); in testAddPowerPolicyListener()
560 assertThat(listenerAudio.getCurrentPowerPolicy()).isNull(); in testRemovePowerPolicyListener()
572 CarPowerPolicy policy = mService.getCurrentPowerPolicy(); in testParcelableCreation()
914 public CarPowerPolicy getCurrentPowerPolicy() { in getCurrentPowerPolicy() method in CarPowerManagementServiceUnitTest.MockedPowerPolicyListener
/packages/services/Car/car-lib/src/android/car/hardware/power/
DCarPowerManager.java343 public CarPowerPolicy getCurrentPowerPolicy() { in getCurrentPowerPolicy() method in CarPowerManager
345 return mService.getCurrentPowerPolicy(); in getCurrentPowerPolicy()
DICarPower.aidl40 CarPowerPolicy getCurrentPowerPolicy(); in getCurrentPowerPolicy() method
/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.java99 CarPowerPolicy policy = mCarPowerManagementService.getCurrentPowerPolicy(); in initializePowerState()
/packages/services/Car/tests/CarSecurityPermissionTest/src/com/android/car/power/
DCarPowerManagerPermissionTest.java104 () -> mCarPowerManager.getCurrentPowerPolicy()); in testGetCurrentPowerPolicy()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hardware/power/
DCarPowerManagerUnitTest.java272 assertPolicyIdentical(expected, mCarPowerManager.getCurrentPowerPolicy()); in testGetCurrentPowerPolicy()
283 assertThat(mCarPowerManager.getCurrentPowerPolicy().getPolicyId()).isEqualTo(policyId); in testApplyPowerPolicy()
/packages/services/Car/cpp/powerpolicy/server/src/
DCarPowerPolicyServer.h157 binder::Status getCurrentPowerPolicy(CarPowerPolicy* aidlReturn) override;
DCarPowerPolicyServer.cpp228 Status CarPowerPolicyServer::getCurrentPowerPolicy(CarPowerPolicy* aidlReturn) { in getCurrentPowerPolicy() function in android::frameworks::automotive::powerpolicy::CarPowerPolicyServer
/packages/services/Car/service/src/com/android/car/power/
DCarPowerManagementService.java1088 public CarPowerPolicy getCurrentPowerPolicy() { in getCurrentPowerPolicy() method in CarPowerManagementService
/packages/services/Car/car-lib/api/
Dcurrent.txt561 …ON_READ_CAR_POWER_POLICY) public android.car.hardware.power.CarPowerPolicy getCurrentPowerPolicy();