/packages/services/Car/tests/carservice_unit_test/src/com/android/car/power/ |
D | PowerComponentHandlerUnitTest.java | 19 import static android.car.hardware.power.PowerComponent.AUDIO; 80 new int[]{AUDIO, BLUETOOTH, CELLULAR, CPU, DISPLAY, ETHERNET, INPUT, LOCATION, in testGetAccumulatedPolicy_firstTime() 90 DISPLAY, VOICE_INTERACTION}, new int[]{AUDIO}); in testApplyPowerPolicy_oneTime() 92 DISPLAY, VOICE_INTERACTION}, new int[]{AUDIO, CELLULAR, CPU, ETHERNET, INPUT, in testApplyPowerPolicy_oneTime() 104 new CarPowerPolicy("test_policy1", new int[]{WIFI}, new int[]{AUDIO}), in testApplyPowerPolicy_multipleTimes() 107 new CarPowerPolicy("test_policy4", new int[]{MEDIA, AUDIO}, new int[]{})}; in testApplyPowerPolicy_multipleTimes() 109 new int[]{AUDIO, MEDIA, DISPLAY, INPUT, CPU}, in testApplyPowerPolicy_multipleTimes() 125 new int[]{WIFI, customComponentId}, new int[]{AUDIO}); in testApplyPowerPolicy_withCustomComponents() 134 new int[]{INPUT, MEDIA, AUDIO, BLUETOOTH, CELLULAR, ETHERNET, LOCATION, MICROPHONE, in testApplyPowerPolicy_withCustomComponents() 139 CarPowerPolicy policy3 = new CarPowerPolicy("test_policy3", new int[]{WIFI, AUDIO}, in testApplyPowerPolicy_withCustomComponents() [all …]
|
D | PolicyReaderUnitTest.java | 19 import static android.car.hardware.power.PowerComponent.AUDIO; 82 new int[]{AUDIO, MEDIA, DISPLAY, BLUETOOTH, CELLULAR, ETHERNET, PROJECTION, NFC, INPUT, 88 new int[]{AUDIO, VOICE_INTERACTION, VISUAL_INTERACTION, TRUSTED_DEVICE_DETECTION}); 91 new int[]{AUDIO, DISPLAY, BLUETOOTH, WIFI, VOICE_INTERACTION, 96 new int[]{AUDIO, VOICE_INTERACTION, VISUAL_INTERACTION, TRUSTED_DEVICE_DETECTION}); 100 new int[]{AUDIO, MEDIA, DISPLAY, BLUETOOTH, PROJECTION, NFC, INPUT, 105 new int[]{AUDIO, MEDIA, DISPLAY, PROJECTION, INPUT, VOICE_INTERACTION, 110 new int[]{AUDIO, BLUETOOTH, WIFI, LOCATION, MICROPHONE, CPU}); 115 new int[]{AUDIO, MEDIA, DISPLAY, PROJECTION, INPUT, VOICE_INTERACTION, 122 new int[]{AUDIO, MEDIA, DISPLAY, BLUETOOTH, CELLULAR, ETHERNET, PROJECTION, NFC, INPUT, [all …]
|
D | CarPowerManagementServiceUnitTest.java | 198 PowerComponent.AUDIO, PowerComponent.VOICE_INTERACTION, 201 PowerComponent.AUDIO, PowerComponent.DISPLAY, PowerComponent.VISUAL_INTERACTION); 207 PowerComponent.AUDIO, PowerComponent.DISPLAY, PowerComponent.VISUAL_INTERACTION, 212 PowerComponent.AUDIO, PowerComponent.DISPLAY, PowerComponent.VISUAL_INTERACTION, 1548 CarPowerPolicyFilter filterAudio = getListenerFilterForComponents(PowerComponent.AUDIO); in testNotifyPowerPolicyChange_powerPolicyRefactorFlagDisabled() 1563 expectPowerComponentDisabled(PowerComponent.AUDIO); in testNotifyPowerPolicyChange_powerPolicyRefactorFlagDisabled() 1581 CarPowerPolicyFilter filterAudio = getListenerFilterForComponents(PowerComponent.AUDIO); in testNotifyPowerPolicyChange_powerPolicyRefactorFlagEnabled() 1596 expectPowerComponentDisabled(PowerComponent.AUDIO); in testNotifyPowerPolicyChange_powerPolicyRefactorFlagEnabled() 1609 CarPowerPolicyFilter filterAudio = getListenerFilterForComponents(PowerComponent.AUDIO); in testAddPowerPolicyListener_powerPolicyRefactorFlagDisabled() 1620 expectPowerComponentDisabled(PowerComponent.AUDIO); in testAddPowerPolicyListener_powerPolicyRefactorFlagDisabled() [all …]
|
/packages/services/Car/cpp/powerpolicy/server/tests/ |
D | PowerComponentHandlerTest.cpp | 91 {PowerComponent::AUDIO, PowerComponent::DISPLAY}, {}, {}); in TEST_F() 96 ASSERT_FALSE(*handler.getPowerComponentState(PowerComponent::AUDIO)); in TEST_F() 103 {PowerComponent::AUDIO, PowerComponent::DISPLAY}, in TEST_F() 114 {"test_policy1", {PowerComponent::WIFI}, {PowerComponent::AUDIO}}, in TEST_F() 121 {"test_policy4", {PowerComponent::MEDIA, PowerComponent::AUDIO}, {}}, in TEST_F() 125 {PowerComponent::AUDIO, PowerComponent::MEDIA, PowerComponent::DISPLAY, in TEST_F() 146 createPolicy("test_policy1", {PowerComponent::WIFI, PowerComponent::AUDIO}, {}, {}, {}); in TEST_F() 151 createPolicy("test_policy1", {PowerComponent::WIFI, PowerComponent::AUDIO}, in TEST_F()
|
D | PolicyManagerTest.cpp | 118 {PowerComponent::AUDIO, PowerComponent::MEDIA, 136 {PowerComponent::AUDIO, PowerComponent::MEDIA, 153 {PowerComponent::AUDIO, PowerComponent::MEDIA, PowerComponent::DISPLAY, 170 {PowerComponent::AUDIO, 179 {PowerComponent::WIFI, PowerComponent::AUDIO, PowerComponent::MEDIA, 196 {PowerComponent::AUDIO, PowerComponent::VOICE_INTERACTION, 208 {PowerComponent::AUDIO, 218 {PowerComponent::AUDIO, PowerComponent::DISPLAY, 225 {PowerComponent::AUDIO, PowerComponent::DISPLAY, 233 {PowerComponent::AUDIO, PowerComponent::VOICE_INTERACTION, [all …]
|
D | CarPowerPolicyServerTest.cpp | 404 filter.components = {PowerComponent::BLUETOOTH, PowerComponent::AUDIO}; in TEST_F()
|
/packages/services/Car/service/src/com/android/car/audio/ |
D | CarAudioPowerListener.java | 19 import static android.car.hardware.power.PowerComponent.AUDIO; 48 if (mIsAudioEnabled != accumulatedPolicy.isComponentEnabled(AUDIO)) { 85 .setComponents(AUDIO).build(); in startListeningForPolicyChanges() 112 mIsAudioEnabled = policy.isComponentEnabled(AUDIO); in updateAudioPowerStateLocked()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hardware/power/ |
D | PowerComponentUtilUnitTest.java | 71 CarPowerPolicy policy = new CarPowerPolicy("testPolicy", new int[]{PowerComponent.AUDIO}, in testHasComponents() 74 .setComponents(PowerComponent.AUDIO).build(); in testHasComponents() 118 List<Integer> components = List.of(PowerComponent.AUDIO, PowerComponent.BLUETOOTH, in testPowerComponentsToStrings() 143 List<Integer> components = List.of(PowerComponent.AUDIO, PowerComponent.BLUETOOTH, 42); in testPowerComponentsToStrings_unknownComponent() 152 List<Integer> components = List.of(PowerComponent.AUDIO, PowerComponent.BLUETOOTH, in testPowerComponentsToStrings_customComponent()
|
D | CarPowerManagerUnitTest.java | 19 import static android.car.hardware.power.PowerComponent.AUDIO; 284 new int[]{AUDIO, MEDIA, DISPLAY, INPUT, CPU}, in testGetCurrentPowerPolicy() 347 .setComponents(PowerComponent.AUDIO).build(); in testAddPowerPolicyListener() 372 .setComponents(PowerComponent.AUDIO).build(); in testAddPowerPolicyListener_Twice_WithDifferentFilters() 387 .setComponents(PowerComponent.AUDIO).build(); in testAddPowerPolicyListener_nullListener() 410 .setComponents(PowerComponent.AUDIO).build(); in testRemovePowerPolicyListener() 436 .setComponents(PowerComponent.AUDIO).build(); in testRemovePowerPolicyListener_Twice()
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/ |
D | TestProvidersAccess.java | 49 public static final RootInfo AUDIO; field in TestProvidersAccess 123 AUDIO = new RootInfo(); 124 AUDIO.userId = userId; 125 AUDIO.authority = Providers.AUTHORITY_MEDIA; 126 AUDIO.rootId = Providers.ROOT_ID_AUDIO; 127 AUDIO.title = "Audio"; 128 AUDIO.derivedType = RootInfo.TYPE_AUDIO;
|
/packages/services/Car/car-lib/src/android/car/hardware/power/ |
D | PowerComponentUtil.java | 67 public static final int FIRST_POWER_COMPONENT = PowerComponent.AUDIO; 152 return PowerComponent.AUDIO; in toPowerComponent() 200 case PowerComponent.AUDIO: in powerComponentToString()
|
D | PowerComponent.java | 29 int AUDIO = 1; field
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/dirlist/ |
D | AppsRowManagerTest.java | 203 rootList.add(new RootItem(TestProvidersAccess.AUDIO, mActionHandler, mMaybeShowBadge)); in testUpdateView_showSelectedUserItems() 228 rootList.add(new RootItem(TestProvidersAccess.AUDIO, mActionHandler, mMaybeShowBadge)); in testUpdateView_showSelectedUserItems_otherUser() 295 rootList.add(new RootItem(TestProvidersAccess.AUDIO, mActionHandler, mMaybeShowBadge)); in testUpdateView_crossProfileSearch_hideRow() 317 rootList.add(new RootItem(TestProvidersAccess.AUDIO, mActionHandler, mMaybeShowBadge)); in testUpdateView_notCrossProfileSearch_showRow() 339 rootList.add(new RootItem(TestProvidersAccess.AUDIO, mActionHandler, mMaybeShowBadge)); in testUpdateView_noItemsOnSelectedUser_hideRow()
|
/packages/services/Car/libs/car-test-lib/src/android/car/testapi/ |
D | FakeRefactoredCarPowerPolicyDaemon.java | 124 new int[]{PowerComponent.AUDIO, PowerComponent.DISPLAY, PowerComponent.CPU}, in createInitialOnPowerPolicy() 137 return createPolicy(SYSTEM_POWER_POLICY_ALL_ON, new int[]{PowerComponent.AUDIO, in createAllOnPowerPolicy() 153 PowerComponent.AUDIO, PowerComponent.MEDIA, PowerComponent.DISPLAY, in createNoUserPowerPolicy() 163 PowerComponent.AUDIO, PowerComponent.BLUETOOTH, PowerComponent.WIFI, in createSuspendPrepPowerPolicy()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/ |
D | CarAudioPowerListenerTest.java | 45 private static final int[] COMPONENTS_WITH_AUDIO = {PowerComponent.AUDIO}; 86 .containsExactly(PowerComponent.AUDIO); in startListeningForPolicyChanges_addsPowerPolicyListener()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/sidebar/ |
D | RootsFragmentTest.java | 72 TestProvidersAccess.AUDIO.title, 192 fakeRootInfoList.add(TestProvidersAccess.AUDIO); in createFakeRootInfoList()
|
/packages/services/Car/cpp/powerpolicy/server/src/ |
D | PolicyManager.cpp | 101 {PowerComponent::AUDIO, 112 const std::vector<PowerComponent> kAllComponents = {PowerComponent::AUDIO, 128 const std::vector<PowerComponent> kInitialOnComponents = {PowerComponent::AUDIO, 132 const std::vector<PowerComponent> kSuspendPrepDisabledComponents = {PowerComponent::AUDIO,
|
/packages/modules/Bluetooth/framework/java/android/bluetooth/ |
D | BluetoothClass.java | 123 public static final int AUDIO = 0x200000; field in BluetoothClass.Service
|
/packages/services/Car/service/src/com/android/car/power/ |
D | PolicyReader.java | 127 PowerComponent.AUDIO, PowerComponent.DISPLAY, PowerComponent.CPU 134 PowerComponent.AUDIO, PowerComponent.MEDIA, PowerComponent.DISPLAY, 143 PowerComponent.AUDIO, PowerComponent.BLUETOOTH, PowerComponent.WIFI,
|
D | PowerComponentHandler.java | 538 case PowerComponent.AUDIO: in createPowerComponent()
|
/packages/services/Car/car-lib/api/ |
D | current.txt | 727 field public static final int AUDIO = 1; // 0x1
|
D | lint-baseline.txt | 1390 UnflaggedApi: android.car.hardware.power.PowerComponent#AUDIO: 1391 New API must be flagged with @FlaggedApi: field android.car.hardware.power.PowerComponent.AUDIO
|
/packages/services/Car/car-lib-module/api/ |
D | current.txt | 727 field public static final int AUDIO = 1; // 0x1
|
/packages/modules/Bluetooth/framework/api/ |
D | current.txt | 412 field public static final int AUDIO = 2097152; // 0x200000
|
/packages/services/Car/tools/GenericCarApiBuilder/ |
D | complete_car_api_list.txt | 1719 field TIRAMISU_0 int FIRST_POWER_COMPONENT = PowerComponent.AUDIO;
|