Home
last modified time | relevance | path

Searched refs:avgAttributes (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/media/tests/AudioPolicyTest/src/com/android/audiopolicytest/
DAudioVolumesTestRule.java60 AudioAttributes avgAttributes = DEFAULT_ATTRIBUTES; in storeAllVolumes() local
63 avgAttributes = aa; in storeAllVolumes()
67 if (avgAttributes.equals(DEFAULT_ATTRIBUTES)) { in storeAllVolumes()
73 avg.getId(), mAudioManager.getVolumeIndexForAttributes(avgAttributes)); in storeAllVolumes()
86 AudioAttributes avgAttributes = DEFAULT_ATTRIBUTES; in restoreAllVolumes() local
89 avgAttributes = aa; in restoreAllVolumes()
93 assertTrue(!avgAttributes.equals(DEFAULT_ATTRIBUTES)); in restoreAllVolumes()
95 avgAttributes, e.getValue(), AudioManager.FLAG_ALLOW_RINGER_MODES); in restoreAllVolumes()
DAudioVolumeGroupChangeHandlerTest.java121 List<AudioAttributes> avgAttributes = audioVolumeGroup.getAudioAttributes(); in testCallbackReceived() local
123 if (avgAttributes.size() == 0 || avgAttributes.get(0).equals(DEFAULT_ATTRIBUTES)) { in testCallbackReceived()
129 final AudioAttributes aa = avgAttributes.get(0); in testCallbackReceived()
176 List<AudioAttributes> avgAttributes = audioVolumeGroup.getAudioAttributes(); in testMultipleCallbackReceived() local
178 if (avgAttributes.size() == 0 || avgAttributes.get(0).equals(DEFAULT_ATTRIBUTES)) { in testMultipleCallbackReceived()
184 AudioAttributes aa = avgAttributes.get(0); in testMultipleCallbackReceived()
DAudioVolumeGroupTest.java91 List<AudioAttributes> avgAttributes = avg.getAudioAttributes(); in testGetVolumeGroups() local
92 assertNotNull(avgAttributes); in testGetVolumeGroups()
99 for (final AudioAttributes aa : avgAttributes) { in testGetVolumeGroups()
DAudioManagerTest.java144 List<AudioAttributes> avgAttributes = audioVolumeGroup.getAudioAttributes(); in testGetAndValidateVolumeGroups() local
149 for (final AudioAttributes aa : avgAttributes) { in testGetAndValidateVolumeGroups()
300 List<AudioAttributes> avgAttributes = audioVolumeGroup.getAudioAttributes(); in testVolumeGroupCallback() local
308 for (final AudioAttributes aa : avgAttributes) { in testVolumeGroupCallback()