Home
last modified time | relevance | path

Searched refs:mAudioDeviceAttributes (Results 1 – 5 of 5) sorted by relevance

/packages/services/Car/car-lib/src/android/car/media/
DCarVolumeGroupInfo.java64 private final List<AudioDeviceAttributes> mAudioDeviceAttributes; field in CarVolumeGroupInfo
92 mAudioDeviceAttributes = Objects.requireNonNull(audioDeviceAttributes, in CarVolumeGroupInfo()
134 this.mAudioDeviceAttributes = audioDeviceAttributes; in CarVolumeGroupInfo()
248 return mAudioDeviceAttributes; in getAudioDeviceAttributes()
290 builder.append(", audio device attributes = ").append(mAudioDeviceAttributes); in toString()
307 dest.writeParcelableList(mAudioDeviceAttributes, flags); in writeToParcel()
342 && checkIsSameAudioAttributeDevices(that.mAudioDeviceAttributes) in equals()
353 hash = Objects.hash(hash, mAudioDeviceAttributes); in hashCode()
366 return Objects.equals(mAudioDeviceAttributes, other); in checkIsSameAudioAttributeDevices()
403 private List<AudioDeviceAttributes> mAudioDeviceAttributes = new ArrayList<>(); field in CarVolumeGroupInfo.Builder
[all …]
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioDeviceInfo.java70 private AudioDeviceAttributes mAudioDeviceAttributes; field in CarAudioDeviceInfo
101 mAudioDeviceAttributes = audioDeviceAttributes; in CarAudioDeviceInfo()
196 return mAudioDeviceAttributes; in getAudioDevice()
307 return mAudioDeviceAttributes.getType(); in getTypeLocked()
339 mAudioDeviceAttributes = new AudioDeviceAttributes(info); in setAudioGainInfoIfNeededLocked()
357 int type = mAudioDeviceAttributes.getType(); in resetAudioDeviceInfoToDefaultLocked()
358 mAudioDeviceAttributes = new AudioDeviceAttributes(AudioDeviceAttributes.ROLE_OUTPUT, in resetAudioDeviceInfoToDefaultLocked()
373 return mAudioDeviceAttributes.getAddress(); in getAddressLocked()
463 writer.printf("CarAudioDeviceInfo Device(%s)\n", mAudioDeviceAttributes.getAddress()); in dump()
464 writer.printf("CarAudioDeviceInfo Type(%s)\n", mAudioDeviceAttributes.getType()); in dump()
[all …]
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/sound/
DAudioRouteItemTest.java42 private AudioDeviceAttributes mAudioDeviceAttributes; field in AudioRouteItemTest
55 when(mAudioDeviceAttributes.getName()).thenReturn(name); in init_withAudioDeviceAttributes()
56 when(mAudioDeviceAttributes.getAddress()).thenReturn(address); in init_withAudioDeviceAttributes()
57 AudioRouteItem audioRouteItem = new AudioRouteItem(mAudioDeviceAttributes); in init_withAudioDeviceAttributes()
62 assertThat(audioRouteItem.getAudioDeviceAttributes()).isEqualTo(mAudioDeviceAttributes); in init_withAudioDeviceAttributes()
DAudioRoutesManagerTest.java93 private AudioDeviceAttributes mAudioDeviceAttributes; field in AudioRoutesManagerTest
115 .thenReturn(new ArrayList<>(Collections.singleton(mAudioDeviceAttributes))); in init_verifyAudioRouteList()
129 .thenReturn(Arrays.asList(mAudioDeviceAttributes, mOtherAudioDeviceAttributes)); in init_verifyAudioRouteList_repeatAddress()
143 .thenReturn(new ArrayList<>(Collections.singleton(mAudioDeviceAttributes))); in init_verifyActiveDeviceAddress()
154 .thenReturn(new ArrayList<>(Collections.singleton(mAudioDeviceAttributes))); in init_verifyAudioRouteItemMap()
168 .isEqualTo(mAudioDeviceAttributes); in init_verifyAudioRouteItemMap()
208 when(mAudioDeviceAttributes.getAddress()).thenReturn(AUDIO_DEVICE_ADDRESS); in initMocks()
209 when(mAudioDeviceAttributes.getName()).thenReturn(AUDIO_DEVICE_NAME); in initMocks()
/packages/apps/Car/Settings/src/com/android/car/settings/sound/
DAudioRouteItem.java41 private AudioDeviceAttributes mAudioDeviceAttributes; field in AudioRouteItem
55 mAudioDeviceAttributes = audioDeviceAttributes; in AudioRouteItem()
77 return mAudioDeviceAttributes; in getAudioDeviceAttributes()