/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/ |
H A D | StorageNotification.java | 98 onVolumeStateChangedInternal(vol); 107 if (vol != null && vol.isMountedReadable()) { 205 for (VolumeInfo vol : vols) { in start() 305 switch (vol.getType()) { in onVolumeStateChangedInternal() 335 switch (vol.getState()) { in onPublicVolumeStateChangedInternal() 489 if (!vol.isPrimary()) { in onVolumeRemoved() 506 if (!vol.isPrimary()) { in onVolumeBadRemoval() 633 .setSmallIcon(getSmallIcon(vol.getDisk(), vol.getState())) in buildNotificationBuilder() 720 final Intent intent = vol.buildBrowseIntentForUser(vol.getMountUserId()); in buildBrowsePendingIntent() 740 switch (vol.getType()) { in buildVolumeSettingsPendingIntent() [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/storage/ |
H A D | StorageSessionController.java | 92 return vol.mountUserId; in getConnectionUserIdForVolume() 112 if (!shouldHandle(vol)) { in onVolumeMount() 118 String sessionId = vol.getId(); in onVolumeMount() 147 if (!shouldHandle(vol)) { in notifyVolumeStateChanged() 150 String sessionId = vol.getId(); in notifyVolumeStateChanged() 159 vol.buildStorageVolume(mContext, vol.getMountUserId(), false)); in notifyVolumeStateChanged() 217 if (!shouldHandle(vol)) { in onVolumeRemove() 222 String sessionId = vol.getId(); in onVolumeRemove() 460 || (vol.type == VolumeInfo.TYPE_PUBLIC && vol.isVisible()); in isEmulatedOrPublic() 479 return isEmulatedOrPublic(vol) || vol.type == VolumeInfo.TYPE_STUB; in isSupportedVolume() [all …]
|
H A D | DeviceStorageMonitorService.java | 182 for (VolumeInfo vol : storage.getWritablePrivateVolumes()) { in checkLow() 183 final File file = vol.getPath(); in checkLow() 233 updateNotifications(vol, oldLevel, newLevel); in checkLow() 234 updateBroadcasts(vol, oldLevel, newLevel, seq); in checkLow() 265 for (VolumeInfo vol : storage.getWritablePrivateVolumes()) { in checkHigh() 266 final File file = vol.getPath(); in checkHigh() 271 pm.freeAllAppCacheAboveQuota(vol.getFsUuid()); in checkHigh() 478 final File file = vol.getPath(); in dumpImpl() 508 final UUID uuid = StorageManager.convert(vol.getFsUuid()); in updateNotifications() 543 Objects.toString(vol.getDescription()), in updateNotifications() [all …]
|
H A D | StorageUserConnection.java | 120 public void notifyVolumeStateChanged(String sessionId, StorageVolume vol) in notifyVolumeStateChanged() argument 123 Objects.requireNonNull(vol); in notifyVolumeStateChanged() 131 mActiveConnection.notifyVolumeStateChanged(sessionId, vol); in notifyVolumeStateChanged() 414 public void notifyVolumeStateChanged(String sessionId, StorageVolume vol) throws in notifyVolumeStateChanged() argument 418 service.notifyVolumeStateChanged(sessionId, vol, callback)); in notifyVolumeStateChanged() 421 + "for vol : " + vol, e); in notifyVolumeStateChanged()
|
/aosp14/frameworks/base/services/core/java/com/android/server/ |
H A D | StorageManagerService.java | 489 return vol; in findVolumeByIdOrThrow() 499 if (vol.path != null && path.startsWith(vol.path)) { in findRecordForPath() 1212 if (vol.isVisibleForUser(userId) && vol.isMountedReadable()) { in completeUnlockUser() 1257 if (!vol.isPrimary() && vol.isMountedWritable() && vol.isVisible() in maybeRemountVolumes() 1660 rec = new VolumeRecord(vol.type, vol.fsUuid); in onVolumeStateChangedAsync() 1818 if (vol.disk != null && vol.disk.isUsb()) { in isMountDisallowed() 2238 mount(vol); in mount() 2263 mVold.mount(vol.id, vol.mountFlags, vol.mountUserId, new IVoldMountCallback.Stub() { in mount() 2304 unmount(vol); in unmount() 2973 if (vol.isPrimary() && vol.isMountedWritable()) { in warnOnNotMounted() [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | StorageEventHelper.java | 82 if (vol.type == VolumeInfo.TYPE_PRIVATE) { in onVolumeStateChanged() 83 if (vol.state == VolumeInfo.STATE_MOUNTED) { in onVolumeStateChanged() 84 final String volumeUuid = vol.getFsUuid(); in onVolumeStateChanged() 95 loadPrivatePackages(vol); in onVolumeStateChanged() 98 unloadPrivatePackages(vol); in onVolumeStateChanged() 132 private void loadPrivatePackages(final VolumeInfo vol) { in loadPrivatePackages() argument 136 private void loadPrivatePackagesInner(VolumeInfo vol) { in loadPrivatePackagesInner() argument 137 final String volumeUuid = vol.fsUuid; in loadPrivatePackagesInner() 232 mLoadedVolumes.add(vol.getId()); in loadPrivatePackagesInner() 241 final String volumeUuid = vol.fsUuid; in unloadPrivatePackagesInner() [all …]
|
H A D | UserDataPreparer.java | 76 for (VolumeInfo vol : storage.getWritablePrivateVolumes()) { in prepareUserData() 77 final String volumeUuid = vol.getFsUuid(); in prepareUserData() 148 for (VolumeInfo vol : storage.getWritablePrivateVolumes()) { in destroyUserData() 149 final String volumeUuid = vol.getFsUuid(); in destroyUserData()
|
/aosp14/frameworks/base/core/java/android/os/storage/ |
H A D | StorageManager.java | 822 return vol; in findVolumeById() 835 return vol; in findVolumeByUuid() 908 if (vol.path != null && FileUtils.contains(vol.path, pathString) in getUuidForPath() 928 if (vol != null) { in findPathForUuid() 929 return vol.getPath(); in findPathForUuid() 962 if (vol.getType() == VolumeInfo.TYPE_PRIVATE && vol.isMountedWritable()) { in getWritablePrivateVolumes() 963 res.add(vol); in getWritablePrivateVolumes() 998 if (vol.disk != null) { in getBestVolumeDescription() 1011 return vol; in getPrimaryPhysicalVolume() 1280 if (vol != null) { in getVolumeState() [all …]
|
H A D | IStorageEventListener.aidl | 50 void onVolumeStateChanged(in VolumeInfo vol, int oldState, int newState) = 2; in onVolumeStateChanged() argument
|
H A D | StorageEventListener.java | 52 public void onVolumeStateChanged(VolumeInfo vol, int oldState, int newState) { in onVolumeStateChanged() argument
|
/aosp14/frameworks/base/core/java/com/android/internal/content/ |
H A D | InstallLocationUtils.java | 203 for (VolumeInfo vol : storageManager.getVolumes()) { in resolveInstallVolume() 204 if (vol.type == VolumeInfo.TYPE_PRIVATE && vol.isMountedWritable()) { in resolveInstallVolume() 205 final boolean isInternalStorage = ID_PRIVATE_INTERNAL.equals(vol.id); in resolveInstallVolume() 207 internalVolumePath = vol.path; in resolveInstallVolume() 210 volumePaths.put(vol.fsUuid, vol.path); in resolveInstallVolume() 272 for (String vol : volumePaths.keySet()) { in resolveInstallVolume() 273 final String volumePath = volumePaths.get(vol); in resolveInstallVolume() 282 bestCandidate = vol; in resolveInstallVolume()
|
/aosp14/frameworks/base/media/java/android/media/ |
H A D | IAudioDeviceVolumeDispatcher.aidl | 29 void dispatchDeviceVolumeChanged(in AudioDeviceAttributes device, in VolumeInfo vol); in dispatchDeviceVolumeChanged() argument 30 void dispatchDeviceVolumeAdjusted(in AudioDeviceAttributes device, in VolumeInfo vol, in dispatchDeviceVolumeAdjusted() argument
|
H A D | AudioDeviceVolumeManager.java | 99 @NonNull VolumeInfo vol); in onAudioDeviceVolumeChanged() argument 110 @NonNull VolumeInfo vol, in onAudioDeviceVolumeAdjusted() argument 166 @NonNull AudioDeviceAttributes device, @NonNull VolumeInfo vol) { in dispatchDeviceVolumeChanged() argument 174 () -> listenerInfo.mListener.onAudioDeviceVolumeChanged(device, vol)); in dispatchDeviceVolumeChanged() 181 @NonNull AudioDeviceAttributes device, @NonNull VolumeInfo vol, int direction, in dispatchDeviceVolumeAdjusted() argument 190 () -> listenerInfo.mListener.onAudioDeviceVolumeAdjusted(device, vol, in dispatchDeviceVolumeAdjusted()
|
H A D | PlayerProxy.java | 98 public void setVolume(float vol) { in setVolume() argument 100 mConf.getIPlayer().setVolume(vol); in setVolume()
|
H A D | PlayerBase.java | 249 void setVolumeMultiplier(float vol) { in setVolumeMultiplier() argument 251 this.mVolMultiplier = vol; in setVolumeMultiplier() 405 public void setVolume(float vol) { in setVolume() argument 408 pb.setVolumeMultiplier(vol); in setVolume()
|
/aosp14/frameworks/base/core/java/android/speech/tts/ |
H A D | AudioPlaybackQueueItem.java | 100 final float vol = clip(volume, 0.0f, 1.0f); in setupVolume() local 103 float volLeft = vol, volRight = vol; in setupVolume()
|
H A D | BlockingAudioTrack.java | 319 final float vol = clip(volume, 0.0f, 1.0f); in setupVolume() local 322 float volLeft = vol; in setupVolume() 323 float volRight = vol; in setupVolume()
|
/aosp14/frameworks/base/cmds/sm/src/com/android/commands/sm/ |
H A D | Sm.java | 142 for (VolumeInfo vol : vols) { in runListVolumes() 143 if (filterType == -1 || filterType == vol.getType()) { in runListVolumes() 144 final String envState = VolumeInfo.getEnvironmentForState(vol.getState()); in runListVolumes() 145 System.out.println(vol.getId() + " " + envState + " " + vol.getFsUuid()); in runListVolumes()
|
/aosp14/frameworks/base/core/java/android/service/storage/ |
H A D | ExternalStorageService.java | 158 public abstract void onVolumeStateChanged(@NonNull StorageVolume vol) throws IOException; in onVolumeStateChanged() argument 209 public void notifyVolumeStateChanged(String sessionId, StorageVolume vol, in notifyVolumeStateChanged() argument 213 onVolumeStateChanged(vol); in notifyVolumeStateChanged()
|
H A D | IExternalStorageService.aidl | 31 void notifyVolumeStateChanged(@utf8InCpp String sessionId, in StorageVolume vol, in notifyVolumeStateChanged() argument
|
/aosp14/frameworks/base/core/java/com/android/internal/graphics/palette/ |
H A D | WuQuantizer.java | 197 volumeVariance[next] = (mCubes[next].vol > 1) ? variance(mCubes[next]) : 0.0; in createBoxes() 198 volumeVariance[i] = (mCubes[i].vol > 1) ? variance(mCubes[i]) : 0.0; in createBoxes() 315 one.vol = (one.r1 - one.r0) * (one.g1 - one.g0) * (one.b1 - one.b0); in cut() 316 two.vol = (two.r1 - two.r0) * (two.g1 - two.g0) * (two.b1 - two.b0); in cut() 458 public int vol = 0; field in WuQuantizer.Box
|
/aosp14/frameworks/base/core/java/android/app/ |
H A D | ApplicationPackageManager.java | 2620 } else if (vol.isPrimaryPhysical()) { in movePackage() 2661 for (VolumeInfo vol : vols) { in getPackageCandidateVolumes() 2662 if (Objects.equals(vol, currentVol) in getPackageCandidateVolumes() 2664 candidates.add(vol); in getPackageCandidateVolumes() 2702 if (!vol.isMountedWritable()) { in isPackageCandidateVolume() 2707 if (vol.isPrimaryPhysical()) { in isPackageCandidateVolume() 2730 } else if (vol.isPrimaryPhysical()) { in movePrimaryStorage() 2760 for (VolumeInfo vol : vols) { in getPrimaryStorageCandidateVolumes() 2761 if (Objects.equals(vol, currentVol) || isPrimaryStorageCandidateVolume(vol)) { in getPrimaryStorageCandidateVolumes() 2762 candidates.add(vol); in getPrimaryStorageCandidateVolumes() [all …]
|
/aosp14/frameworks/base/core/tests/coretests/src/android/app/ |
H A D | ApplicationPackageManagerTest.java | 146 for (VolumeInfo vol : exptectedVols) { in verifyReturnedVolumes() 147 if (!actualVols.contains(vol)) { in verifyReturnedVolumes()
|
/aosp14/frameworks/base/services/usage/java/com/android/server/usage/ |
H A D | StorageStatsService.java | 156 public void onVolumeStateChanged(VolumeInfo vol, int oldState, int newState) { in StorageStatsService() 157 switch (vol.type) { in StorageStatsService() 281 final VolumeInfo vol = mStorage.findVolumeByUuid(volumeUuid); in getTotalBytes() local 282 if (vol == null) { in getTotalBytes() 286 return FileUtils.roundStorageSize(vol.disk.size); in getTotalBytes()
|
/aosp14/frameworks/base/services/core/java/com/android/server/audio/ |
H A D | SoundDoseHelper.java | 566 final int vol = mSafeMediaVolumeDevices.get(device); in safeMediaVolumeIndex() local 567 if (vol == SAFE_MEDIA_VOLUME_UNINITIALIZED) { in safeMediaVolumeIndex() 571 return vol; in safeMediaVolumeIndex()
|