/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/ |
D | CarAudioContextTest.java | 109 public static final CarAudioContext TEST_CAR_AUDIO_CONTEXT = field in CarAudioContextTest 114 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute(TEST_MEDIA_ATTRIBUTE); 116 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute(TEST_ALARM_ATTRIBUTE); 118 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute(TEST_CALL_ATTRIBUTE); 120 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute(TEST_RINGER_ATTRIBUTE); 122 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute(TEST_EMERGENCY_ATTRIBUTE); 124 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute(TEST_NAVIGATION_ATTRIBUTE); 126 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute(TEST_NOTIFICATION_ATTRIBUTE); 128 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute(TEST_ANNOUNCEMENT_ATTRIBUTE); 130 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute(TEST_SAFETY_ATTRIBUTE); [all …]
|
D | CarVolumeTest.java | 72 public static final CarAudioContext TEST_CAR_AUDIO_CONTEXT = field in CarVolumeTest 103 mCarVolume = new CarVolume(TEST_CAR_AUDIO_CONTEXT, mMockClock, in setUp() 111 new CarVolume(TEST_CAR_AUDIO_CONTEXT, mMockClock, VERSION_ZERO, KEY_EVENT_TIMEOUT_MS); in constructor_withVersionLessThanOne_failsTooLow() 121 new CarVolume(TEST_CAR_AUDIO_CONTEXT, mMockClock, VERSION_THREE, KEY_EVENT_TIMEOUT_MS); in constructor_withVersionGreaterThanTwo_failsTooHigh() 131 new CarVolume(TEST_CAR_AUDIO_CONTEXT, null, VERSION_ONE, KEY_EVENT_TIMEOUT_MS); in constructor_withNullSystemClock_fails() 169 assertThat(suggestedContext).isEqualTo(TEST_CAR_AUDIO_CONTEXT in getSuggestedAudioContext_withNoActivePlaybackAndIdleTelephony_returnsDefault() 182 assertThat(suggestedContext).isEqualTo(TEST_CAR_AUDIO_CONTEXT in getSuggestedAudioContext_withOneConfiguration_returnsAssociatedContext() 192 assertThat(suggestedContext).isEqualTo(TEST_CAR_AUDIO_CONTEXT in getSuggestedAudioContext_withCallStateOffHook_returnsCallContext() 205 assertThat(suggestedContext).isEqualTo(TEST_CAR_AUDIO_CONTEXT in getSuggestedAudioContext_withV1AndCallStateRinging_returnsCallRingContext() 219 assertThat(suggestedContext).isEqualTo(TEST_CAR_AUDIO_CONTEXT in getSuggestedAudioContext_withActivePlayback_returnsHighestPriorityContext() [all …]
|
D | CarDuckingUtilsTest.java | 54 private static final CarAudioContext TEST_CAR_AUDIO_CONTEXT = field in CarDuckingUtilsTest 59 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute( 62 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute( 65 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute(CarAudioContext 68 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute(CarAudioContext 227 when(mockZone.getCarAudioContext()).thenReturn(TEST_CAR_AUDIO_CONTEXT); in generateAudioZoneMock()
|
D | CarVolumeGroupFactoryTest.java | 54 private static final CarAudioContext TEST_CAR_AUDIO_CONTEXT = field in CarVolumeGroupFactoryTest 59 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute( 62 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute(CarAudioContext 298 /* carAudioSettings= */ null, TEST_CAR_AUDIO_CONTEXT, ZONE_ID, in factoryConstructor_withNullCarAudioSettings_fails() 324 TEST_CAR_AUDIO_CONTEXT, ZONE_ID, CONFIG_ID, GROUP_ID, GROUP_NAME, in factoryConstructor_withNullCarActivationVolumeConfig_fails() 332 return new CarVolumeGroupFactory(mAudioManagerMock, mSettingsMock, TEST_CAR_AUDIO_CONTEXT, in getFactory()
|
D | CarDuckingTest.java | 64 private static final CarAudioContext TEST_CAR_AUDIO_CONTEXT = field in CarDuckingTest 69 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute( 72 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute(CarAudioContext 355 when(primaryZone.getCarAudioContext()).thenReturn(TEST_CAR_AUDIO_CONTEXT); in generateZoneMocks() 361 when(passengerZone.getCarAudioContext()).thenReturn(TEST_CAR_AUDIO_CONTEXT); in generateZoneMocks() 368 when(rearZone.getCarAudioContext()).thenReturn(TEST_CAR_AUDIO_CONTEXT); in generateZoneMocks()
|
D | CarVolumeGroupMutingTest.java | 63 private static final CarAudioContext TEST_CAR_AUDIO_CONTEXT = field in CarVolumeGroupMutingTest 68 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute( 71 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute(CarAudioContext 74 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute( 77 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute(CarAudioContext 80 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute(CarAudioContext
|
D | CarAudioZoneConfigUnitTest.java | 91 private static final CarAudioContext TEST_CAR_AUDIO_CONTEXT = new CarAudioContext( field in CarAudioZoneConfigUnitTest 96 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute(TEST_MEDIA_ATTRIBUTE); 99 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute(TEST_ASSISTANT_ATTRIBUTE); 102 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute(TEST_NAVIGATION_ATTRIBUTE); 454 .that(zoneConfig.validateVolumeGroups(TEST_CAR_AUDIO_CONTEXT, in validateVolumeGroups_notUsingCoreAudioRouting_succeeds() 469 .that(zoneConfig.validateVolumeGroups(TEST_CAR_AUDIO_CONTEXT, in validateVolumeGroups_usingCoreAudioRouting_succeeds() 485 .that(zoneConfig.validateVolumeGroups(TEST_CAR_AUDIO_CONTEXT, in validateVolumeGroups_withContextSharedAmongGroups() 501 .that(zoneConfig.validateVolumeGroups(TEST_CAR_AUDIO_CONTEXT, in validateVolumeGroups_withInvalidDeviceTypesInGroup() 517 .that(zoneConfig.validateVolumeGroups(TEST_CAR_AUDIO_CONTEXT, in validateVolumeGroups_withInvalidDeviceTypesInGroupAndCoreAudioRouting() 532 .that(zoneConfig.validateVolumeGroups(TEST_CAR_AUDIO_CONTEXT, in validateVolumeGroups_withAddressSharedAmongGroupNotUsingCoreAudioRouting_fails() [all …]
|
D | CarHalAudioUtilsTest.java | 80 private static final CarAudioContext TEST_CAR_AUDIO_CONTEXT = field in CarHalAudioUtilsTest 85 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute( 88 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute(CarAudioContext 111 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute( in setUp() 434 when(zone.getCarAudioContext()).thenReturn(TEST_CAR_AUDIO_CONTEXT); in generateZoneMock()
|
D | CarAudioVolumeGroupTest.java | 113 private static final CarAudioContext TEST_CAR_AUDIO_CONTEXT = field in CarAudioVolumeGroupTest 118 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute( 121 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute( 124 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute( 127 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute( 130 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute(CarAudioContext 133 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute(CarAudioContext 678 CarAudioVolumeGroup carVolumeGroup = new CarAudioVolumeGroup(TEST_CAR_AUDIO_CONTEXT, in getCarAudioVolumeGroupWithDevice() 715 return new CarAudioVolumeGroup(TEST_CAR_AUDIO_CONTEXT, settings, contextToDeviceInfo, in testVolumeGroupSetup()
|
D | CarAudioZoneUnitTest.java | 110 private static final CarAudioContext TEST_CAR_AUDIO_CONTEXT = field in CarAudioZoneUnitTest 134 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute(TEST_MEDIA_ATTRIBUTE); 137 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute(TEST_ALARM_ATTRIBUTE); 140 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute(TEST_ASSISTANT_ATTRIBUTE); 143 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute(TEST_NAVIGATION_ATTRIBUTE); 171 mTestAudioZone = new CarAudioZone(TEST_CAR_AUDIO_CONTEXT, TEST_ZONE_NAME, in setUp() 200 CarAudioZone primaryZone = new CarAudioZone(TEST_CAR_AUDIO_CONTEXT, in isPrimaryZone_forPrimaryZone_returnsTrue() 806 .that(mTestAudioZone.getCarAudioContext()).isEqualTo(TEST_CAR_AUDIO_CONTEXT); in getCarAudioContext() 969 when(zoneConfig.validateVolumeGroups(eq(TEST_CAR_AUDIO_CONTEXT), anyBoolean())) in build()
|
D | FocusEntryTest.java | 52 private static final CarAudioContext TEST_CAR_AUDIO_CONTEXT = field in FocusEntryTest 56 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute(
|
D | ZoneAudioPlaybackCallbackTest.java | 78 private static final CarAudioContext TEST_CAR_AUDIO_CONTEXT = field in ZoneAudioPlaybackCallbackTest 84 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute(TEST_MEDIA_AUDIO_ATTRIBUTE); 88 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute(TEST_NAVIGATION_AUDIO_ATTRIBUTE); 92 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute(CarAudioContext
|
D | CarVolumeGroupUnitTest.java | 108 private static final CarAudioContext TEST_CAR_AUDIO_CONTEXT = field in CarVolumeGroupUnitTest 113 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute( 116 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute( 119 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute( 122 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute( 125 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute( 128 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute(CarAudioContext 131 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute(CarAudioContext 2172 int safetyContextId = TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute( in getAddressForContext_withoutContextFound() 2188 TEST_CAR_AUDIO_CONTEXT, ZONE_ID, CONFIG_ID, GROUP_ID, /* name= */ "0", in getCarVolumeGroupWithNavigationBound() [all …]
|
D | FocusInteractionTest.java | 71 private static final CarAudioContext TEST_CAR_AUDIO_CONTEXT = field in FocusInteractionTest 373 return new FocusEntry(info, TEST_CAR_AUDIO_CONTEXT in newMockFocusEntryWithUsage()
|
D | CarAudioPlaybackCallbackTest.java | 70 private static final CarAudioContext TEST_CAR_AUDIO_CONTEXT = field in CarAudioPlaybackCallbackTest 75 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute(TEST_MEDIA_AUDIO_ATTRIBUTE);
|
D | CarAudioGainMonitorTest.java | 75 private static final CarAudioContext TEST_CAR_AUDIO_CONTEXT = field in CarAudioGainMonitorTest 80 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute( 83 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute(CarAudioContext
|
D | CarAudioFocusUnitTest.java | 107 private static final CarAudioContext TEST_CAR_AUDIO_CONTEXT = field in CarAudioFocusUnitTest 214 when(mMockCarAudioZone.getCarAudioContext()).thenReturn(TEST_CAR_AUDIO_CONTEXT); in constructor_withNullVolumeInfoWrapper_fails() 1683 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute(mediaAudioAttribute), in onAudioFocusRequest_withOemServiceEnabled_capturesFocusRequest() 1717 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute(mediaAudioAttribute), in onAudioFocusRequest_withOemServiceEnabledAndEnabledFadeManager() 1759 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute(mediaAudioAttribute), in onAudioFocusRequest_withOemServiceEnabledAndEnableIsolatedFocus() 1803 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute(mediaAudioAttribute), in onAudioFocusRequest_withOemServiceEnabled_containsTransientCarAudioFadeConfigs() 1809 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute(emergencyAudioAttributes), in onAudioFocusRequest_withOemServiceEnabled_containsTransientCarAudioFadeConfigs() 2047 when(mMockCarAudioZone.getCarAudioContext()).thenReturn(TEST_CAR_AUDIO_CONTEXT); in getCarAudioFocus()
|
/packages/services/Car/tests/carservice_test/src/com/android/car/audio/ |
D | CarAudioZonesHelperLegacyTest.java | 72 private static final CarAudioContext TEST_CAR_AUDIO_CONTEXT = field in CarAudioZonesHelperLegacyTest 76 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute( 79 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute( 82 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute( 85 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute( 88 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute( 91 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute(CarAudioContext 94 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute(CarAudioContext 97 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute(CarAudioContext 100 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute(CarAudioContext [all …]
|
D | CarAudioDynamicRoutingTest.java | 67 private static final CarAudioContext TEST_CAR_AUDIO_CONTEXT = field in CarAudioDynamicRoutingTest 72 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute(TEST_MEDIA_ATTRIBUTE); 74 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute(TEST_NAVIGATION_ATTRIBUTE); 85 CarAudioDynamicRouting.setupAudioDynamicRouting(TEST_CAR_AUDIO_CONTEXT, mAudioManager, in setupAudioDynamicRouting() 163 CarAudioDynamicRouting.setupAudioDynamicRouting(TEST_CAR_AUDIO_CONTEXT, mAudioManager, in setupAudioDynamicRouting_withDefaultConfigSelected() 245 () -> CarAudioDynamicRouting.setupAudioDynamicRouting(TEST_CAR_AUDIO_CONTEXT, in setupAudioDynamicRouting_withoutSelectedConfig() 311 CarAudioZone carAudioZone = new CarAudioZone(TEST_CAR_AUDIO_CONTEXT, "Primary zone", in getTestCarAudioZones()
|
D | CarAudioZonesHelperTest.java | 152 public static final CarAudioContext TEST_CAR_AUDIO_CONTEXT = field in CarAudioZonesHelperTest 155 public static final int TEST_DEFAULT_CONTEXT_ID = TEST_CAR_AUDIO_CONTEXT 157 public static final int TEST_EMERGENCY_CONTEXT_ID = TEST_CAR_AUDIO_CONTEXT 160 public static final int TEST_SAFETY_CONTEXT_ID = TEST_CAR_AUDIO_CONTEXT 163 public static final int TEST_VEHICLE_STATUS_CONTEXT_ID = TEST_CAR_AUDIO_CONTEXT 166 public static final int TEST_ANNOUNCEMENT_CONTEXT_ID = TEST_CAR_AUDIO_CONTEXT 636 .containsExactly(TEST_CAR_AUDIO_CONTEXT.getContextForAttributes(CarAudioContext in loadAudioZones_parsesContexts() 641 .that(contextForBusList).containsExactlyElementsIn(TEST_CAR_AUDIO_CONTEXT in loadAudioZones_parsesContexts() 686 .containsExactly(TEST_CAR_AUDIO_CONTEXT.getContextForAttributes(CarAudioContext in loadAudioZones_versionTwoParsesContexts() 693 .containsExactlyElementsIn(TEST_CAR_AUDIO_CONTEXT.getAllContextsIds()); in loadAudioZones_versionTwoParsesContexts()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/hal/ |
D | HalAudioFocusTest.java | 108 private static final CarAudioContext TEST_CAR_AUDIO_CONTEXT = field in HalAudioFocusTest 117 mCarAudioPlaybackMonitor, TEST_CAR_AUDIO_CONTEXT, AUDIO_ZONE_IDS); in setUp() 206 /* carAudioPlaybackMonitor= */ null, TEST_CAR_AUDIO_CONTEXT, AUDIO_ZONE_IDS); in requestAudioFocus_withNullPlaybackMonitor()
|
D | AudioControlWrapperAidlTest.java | 134 private static final CarAudioContext TEST_CAR_AUDIO_CONTEXT = field in AudioControlWrapperAidlTest 144 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute(TEST_MEDIA_ATTRIBUTE); 146 TEST_CAR_AUDIO_CONTEXT.getContextForAudioAttribute(TEST_NOTIFICATION_ATTRIBUTE); 941 when(mockZone.getCarAudioContext()).thenReturn(TEST_CAR_AUDIO_CONTEXT); in generateAudioZoneMock()
|