Searched refs:volumeInfo (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/audio/ |
D | AbsoluteVolumeBehaviorTest.java | 222 VolumeInfo volumeInfo = new VolumeInfo.Builder(AudioManager.STREAM_MUSIC) in setStreamVolume_noAbsVolFlag_dispatchesVolumeChanged() local 230 Collections.singletonList(volumeInfo), true, in setStreamVolume_noAbsVolFlag_dispatchesVolumeChanged() 242 new VolumeInfo.Builder(volumeInfo).setVolumeIndex(250).build()); in setStreamVolume_noAbsVolFlag_dispatchesVolumeChanged() 248 VolumeInfo volumeInfo = new VolumeInfo.Builder(AudioManager.STREAM_MUSIC) in setStreamVolume_absVolFlagSet_doesNotDispatchVolumeChanged() local 256 Collections.singletonList(volumeInfo), true, in setStreamVolume_absVolFlagSet_doesNotDispatchVolumeChanged() 273 VolumeInfo volumeInfo = new VolumeInfo.Builder(AudioManager.STREAM_MUSIC) in adjustStreamVolume_handlesAdjust_noAbsVolFlag_noVolChange_dispatchesVolumeAdjusted() local 282 Collections.singletonList(volumeInfo), true, in adjustStreamVolume_handlesAdjust_noAbsVolFlag_noVolChange_dispatchesVolumeAdjusted() 303 VolumeInfo volumeInfo = new VolumeInfo.Builder(AudioManager.STREAM_MUSIC) in adjustStreamVolume_noHandleAdjust_noAbsVolFlag_volChanges_dispatchesVolumeChanged() local 312 Collections.singletonList(volumeInfo), false, in adjustStreamVolume_noHandleAdjust_noAbsVolFlag_volChanges_dispatchesVolumeChanged() 332 VolumeInfo volumeInfo = new VolumeInfo.Builder(AudioManager.STREAM_MUSIC) in adjustStreamVolume_absVolFlagSet_streamVolumeChanges_nothingDispatched() local [all …]
|
/frameworks/base/core/java/android/os/storage/ |
D | VolumeInfo.java | 206 public VolumeInfo(VolumeInfo volumeInfo) { in VolumeInfo() argument 207 this.id = volumeInfo.id; in VolumeInfo() 208 this.type = volumeInfo.type; in VolumeInfo() 209 this.disk = volumeInfo.disk; in VolumeInfo() 210 this.partGuid = volumeInfo.partGuid; in VolumeInfo() 211 this.mountFlags = volumeInfo.mountFlags; in VolumeInfo() 212 this.mountUserId = volumeInfo.mountUserId; in VolumeInfo() 213 this.state = volumeInfo.state; in VolumeInfo() 214 this.fsType = volumeInfo.fsType; in VolumeInfo() 215 this.fsUuid = volumeInfo.fsUuid; in VolumeInfo() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/storage/ |
D | DiskStatsLoggingServiceTest.java | 196 VolumeInfo volumeInfo = in testDontCrashOnRun() local 198 when(pm.getPrimaryStorageCurrentVolume()).thenReturn(volumeInfo); in testDontCrashOnRun()
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | AudioService.java | 823 for (VolumeInfo volumeInfo : mVolumeInfos) { in getMatchingVolumeInfoForStream() 824 boolean streamTypeMatches = volumeInfo.hasStreamType() in getMatchingVolumeInfoForStream() 825 && volumeInfo.getStreamType() == streamType; in getMatchingVolumeInfoForStream() 826 boolean volumeGroupMatches = volumeInfo.hasVolumeGroup() in getMatchingVolumeInfoForStream() 827 && Arrays.stream(volumeInfo.getVolumeGroup().getLegacyStreamTypes()) in getMatchingVolumeInfoForStream() 830 return volumeInfo; in getMatchingVolumeInfoForStream() 2980 private int rescaleIndex(VolumeInfo volumeInfo, int dstStream) { in rescaleIndex() argument 2981 if (volumeInfo.getVolumeIndex() == VolumeInfo.INDEX_NOT_SET in rescaleIndex() 2982 || volumeInfo.getMinVolumeIndex() == VolumeInfo.INDEX_NOT_SET in rescaleIndex() 2983 || volumeInfo.getMaxVolumeIndex() == VolumeInfo.INDEX_NOT_SET) { in rescaleIndex() [all …]
|
/frameworks/base/services/core/java/com/android/server/hdmi/ |
D | HdmiControlService.java | 4697 VolumeInfo volumeInfo = new VolumeInfo.Builder(AudioManager.STREAM_MUSIC) in enableAbsoluteVolumeBehavior() local 4717 device, volumeInfo, mServiceThreadExecutor, in enableAbsoluteVolumeBehavior() 4724 device, volumeInfo, mServiceThreadExecutor, in enableAbsoluteVolumeBehavior() 4761 @NonNull VolumeInfo volumeInfo) { in onAudioDeviceVolumeChanged() argument 4773 avbDevice.updateAvbVolume(volumeInfo.getVolumeIndex()); in onAudioDeviceVolumeChanged() 4786 volumeInfo.getVolumeIndex()), in onAudioDeviceVolumeChanged() 4794 avbDevice.updateAvbVolume(volumeInfo.getVolumeIndex()); in onAudioDeviceVolumeChanged() 4811 @NonNull VolumeInfo volumeInfo, in onAudioDeviceVolumeAdjusted() argument
|
/frameworks/base/services/core/java/com/android/server/stats/pull/ |
D | StatsPullAtomService.java | 3878 VolumeInfo volumeInfo = mStorageManager.findVolumeByUuid( 3880 if (volumeInfo == null) { 3884 DiskInfo diskInfo = volumeInfo.getDisk();
|