Home
last modified time | relevance | path

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

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/power/
DPowerComponentHandlerUnitTest.java19 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 …]
DPolicyReaderUnitTest.java19 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 …]
DCarPowerManagementServiceUnitTest.java198 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/
DPowerComponentHandlerTest.cpp91 {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()
DPolicyManagerTest.cpp118 {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 …]
DCarPowerPolicyServerTest.cpp404 filter.components = {PowerComponent::BLUETOOTH, PowerComponent::AUDIO}; in TEST_F()
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioPowerListener.java19 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/
DPowerComponentUtilUnitTest.java71 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()
DCarPowerManagerUnitTest.java19 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/
DTestProvidersAccess.java49 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/
DPowerComponentUtil.java67 public static final int FIRST_POWER_COMPONENT = PowerComponent.AUDIO;
152 return PowerComponent.AUDIO; in toPowerComponent()
200 case PowerComponent.AUDIO: in powerComponentToString()
DPowerComponent.java29 int AUDIO = 1; field
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/dirlist/
DAppsRowManagerTest.java203 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/
DFakeRefactoredCarPowerPolicyDaemon.java124 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/
DCarAudioPowerListenerTest.java45 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/
DRootsFragmentTest.java72 TestProvidersAccess.AUDIO.title,
192 fakeRootInfoList.add(TestProvidersAccess.AUDIO); in createFakeRootInfoList()
/packages/services/Car/cpp/powerpolicy/server/src/
DPolicyManager.cpp101 {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/
DBluetoothClass.java123 public static final int AUDIO = 0x200000; field in BluetoothClass.Service
/packages/services/Car/service/src/com/android/car/power/
DPolicyReader.java127 PowerComponent.AUDIO, PowerComponent.DISPLAY, PowerComponent.CPU
134 PowerComponent.AUDIO, PowerComponent.MEDIA, PowerComponent.DISPLAY,
143 PowerComponent.AUDIO, PowerComponent.BLUETOOTH, PowerComponent.WIFI,
DPowerComponentHandler.java538 case PowerComponent.AUDIO: in createPowerComponent()
/packages/services/Car/car-lib/api/
Dcurrent.txt727 field public static final int AUDIO = 1; // 0x1
Dlint-baseline.txt1390 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/
Dcurrent.txt727 field public static final int AUDIO = 1; // 0x1
/packages/modules/Bluetooth/framework/api/
Dcurrent.txt412 field public static final int AUDIO = 2097152; // 0x200000
/packages/services/Car/tools/GenericCarApiBuilder/
Dcomplete_car_api_list.txt1719 field TIRAMISU_0 int FIRST_POWER_COMPONENT = PowerComponent.AUDIO;