Searched refs:aaForUsage (Results 1 – 2 of 2) sorted by relevance
149 AudioAttributes aaForUsage = new AudioAttributes.Builder().setUsage(usage).build(); in testAudioAttributesToStreamTypes() local153 aaForUsage); in testAudioAttributesToStreamTypes()159 Log.w(TAG, "GUSTAVE aaForUsage=" + aaForUsage.toString()); in testAudioAttributesToStreamTypes()166 if (!aps.supportsAudioAttributes(aaForUsage)) { in testAudioAttributesToStreamTypes()172 + aaForUsage.toString() + " already associated also matches with" in testAudioAttributesToStreamTypes()182 int streamTypeFromAps = aps.getLegacyStreamTypeForAudioAttributes(aaForUsage); in testAudioAttributesToStreamTypes()190 assertEquals("Attributes " + aaForUsage.toString() + " associated to stream " in testAudioAttributesToStreamTypes()201 aps.getVolumeGroupIdForAudioAttributes(aaForUsage); in testAudioAttributesToStreamTypes()
205 AudioAttributes aaForUsage = new AudioAttributes.Builder().setUsage(usage).build(); in testSetGetVolumePerAttributes() local212 indexMax = mAudioManager.getMaxVolumeIndexForAttributes(aaForUsage); in testSetGetVolumePerAttributes()219 indexMin = mAudioManager.getMinVolumeIndexForAttributes(aaForUsage); in testSetGetVolumePerAttributes()226 index = mAudioManager.getVolumeIndexForAttributes(aaForUsage); in testSetGetVolumePerAttributes()233 mAudioManager.setVolumeIndexForAttributes(aaForUsage, indexMin, 0/*flags*/); in testSetGetVolumePerAttributes()239 index = mAudioManager.getVolumeIndexForAttributes(aaForUsage); in testSetGetVolumePerAttributes()242 mAudioManager.setVolumeIndexForAttributes(aaForUsage, indexMax, 0/*flags*/); in testSetGetVolumePerAttributes()243 index = mAudioManager.getVolumeIndexForAttributes(aaForUsage); in testSetGetVolumePerAttributes()