Home
last modified time | relevance | path

Searched refs:vol (Results 1 – 25 of 136) sorted by relevance

123456

/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
H A DStorageNotification.java80 onVolumeStateChangedInternal(vol);
89 if (vol != null && vol.isMountedReadable()) {
180 for (VolumeInfo vol : vols) { in start()
278 switch (vol.getType()) { in onVolumeStateChangedInternal()
308 switch (vol.getState()) { in onPublicVolumeStateChangedInternal()
462 if (!vol.isPrimary()) { in onVolumeRemoved()
479 if (!vol.isPrimary()) { in onVolumeBadRemoval()
606 .setSmallIcon(getSmallIcon(vol.getDisk(), vol.getState())) in buildNotificationBuilder()
693 final Intent intent = vol.buildBrowseIntentForUser(vol.getMountUserId()); in buildBrowsePendingIntent()
713 switch (vol.getType()) { in buildVolumeSettingsPendingIntent()
[all …]
/aosp12/frameworks/base/services/core/java/com/android/server/storage/
H A DStorageSessionController.java91 return vol.mountUserId; in getConnectionUserIdForVolume()
111 if (!shouldHandle(vol)) { in onVolumeMount()
117 String sessionId = vol.getId(); in onVolumeMount()
146 if (!shouldHandle(vol)) { in notifyVolumeStateChanged()
149 String sessionId = vol.getId(); in notifyVolumeStateChanged()
158 vol.buildStorageVolume(mContext, vol.getMountUserId(), false)); in notifyVolumeStateChanged()
216 if (!shouldHandle(vol)) { in onVolumeRemove()
221 String sessionId = vol.getId(); in onVolumeRemove()
468 || (vol.type == VolumeInfo.TYPE_PUBLIC && vol.isVisible()); in isEmulatedOrPublic()
487 return isEmulatedOrPublic(vol) || vol.type == VolumeInfo.TYPE_STUB; in isSupportedVolume()
[all …]
H A DDeviceStorageMonitorService.java178 for (VolumeInfo vol : storage.getWritablePrivateVolumes()) { in check()
179 final File file = vol.getPath(); in check()
190 pms.freeStorage(vol.getFsUuid(), lowBytes * 2, 0); in check()
198 final UUID uuid = StorageManager.convert(vol.getFsUuid()); in check()
229 updateNotifications(vol, oldLevel, newLevel); in check()
230 updateBroadcasts(vol, oldLevel, newLevel, seq); in check()
431 for (VolumeInfo vol : storage.getWritablePrivateVolumes()) { in dumpImpl()
432 final File file = vol.getPath(); in dumpImpl()
462 final UUID uuid = StorageManager.convert(vol.getFsUuid()); in updateNotifications()
497 Objects.toString(vol.getDescription()), in updateNotifications()
[all …]
/aosp12/frameworks/av/media/libaudioprocessing/
H A DAudioMixerOps.h276 center = (vol[0] + vol[1]) * 0.5; // do not use divide in stereoVolumeHelperWithChannelMask()
278 center = (vol[0] >> 1) + (vol[1] >> 1); // rounds to 0. in stereoVolumeHelperWithChannelMask()
446 vol[i] += volinc[i]; in volumeRampMulti()
458 vol[0] += volinc[0]; in volumeRampMulti()
463 vol[0] += volinc[0]; in volumeRampMulti()
474 vol[0] += volinc[0]; in volumeRampMulti()
475 vol[1] += volinc[1]; in volumeRampMulti()
501 vol[0] += volinc[0]; in volumeRampMulti()
506 vol[0] += volinc[0]; in volumeRampMulti()
516 vol[0] += volinc[0]; in volumeRampMulti()
[all …]
/aosp12/system/vold/model/
H A DDisk.cpp116 return vol; in findVolume()
138 vols.push_back(vol); in getVolumes()
178 vol->create(); in createPublicVolume()
179 vol->format("auto"); in createPublicVolume()
180 vol->destroy(); in createPublicVolume()
186 vol->create(); in createPublicVolume()
209 vol->create(); in createPrivateVolume()
211 vol->destroy(); in createPrivateVolume()
218 vol->create(); in createPrivateVolume()
232 vol->destroy(); in destroyAllVolumes()
[all …]
H A DVolumeBase.cpp173 for (auto vol : mVolumes) { in findVolume() local
174 if (vol->getId() == id) { in findVolume()
175 return vol; in findVolume()
250 for (const auto& vol : mVolumes) { in unmount() local
251 if (vol->destroy()) { in unmount()
252 LOG(WARNING) << getId() << " failed to destroy " << vol->getId() << " stacked above"; in unmount()
/aosp12/hardware/qcom/audio/legacy/alsa_sound/
H A DALSAMixer.cpp277 if (vol > maxVol) vol = maxVol; in setMasterVolume()
278 if (vol < minVol) vol = minVol; in setMasterVolume()
280 info->volume = vol; in setMasterVolume()
296 if (vol > maxVol) vol = maxVol; in setMasterGain()
297 if (vol < minVol) vol = minVol; in setMasterGain()
299 info->volume = vol; in setMasterGain()
318 if (vol > maxVol) vol = maxVol; in setVolume()
319 if (vol < minVol) vol = minVol; in setVolume()
321 info->volume = vol; in setVolume()
341 if (vol > maxVol) vol = maxVol; in setGain()
[all …]
/aosp12/system/vold/
H A DVolumeManager.cpp191 vol->setMountUserId(0); in start()
192 vol->create(); in start()
326 return vol; in findVolume()
332 return vol; in findVolume()
337 return vol; in findVolume()
376 auto vol = *i; in destroyEmulatedVolumesForUser() local
411 vol->create(); in createEmulatedVolumesForUser()
898 vol->destroy(); in reset()
919 vol->destroy(); in shutdown()
939 vol->unmount(); in unmountAll()
[all …]
H A DMoveStorage.cpp178 static void bringOffline(const std::shared_ptr<VolumeBase>& vol) { in bringOffline() argument
179 vol->destroy(); in bringOffline()
180 vol->setSilent(true); in bringOffline()
181 vol->create(); in bringOffline()
182 vol->setMountFlags(0); in bringOffline()
183 vol->mount(); in bringOffline()
186 static void bringOnline(const std::shared_ptr<VolumeBase>& vol) { in bringOnline() argument
187 vol->destroy(); in bringOnline()
188 vol->setSilent(false); in bringOnline()
189 vol->create(); in bringOnline()
H A DVolumeManager.h87 for (const auto& vol : mInternalEmulatedVolumes) { in findVolumeWithFilter() local
88 if (fn(*vol)) { in findVolumeWithFilter()
89 return vol; in findVolumeWithFilter()
93 for (const auto& vol : disk->getVolumes()) { in findVolumeWithFilter() local
94 if (fn(*vol)) { in findVolumeWithFilter()
95 return vol; in findVolumeWithFilter()
/aosp12/frameworks/base/services/core/java/com/android/server/
H A DStorageManagerService.java471 return vol; in findVolumeByIdOrThrow()
481 if (vol.path != null && path.startsWith(vol.path)) { in findVolumeIdForPathOrThrow()
493 if (vol.path != null && path.startsWith(vol.path)) { in findRecordForPath()
1236 if (vol.isVisibleForRead(userId) && vol.isMountedReadable()) { in completeUnlockUser()
1282 if (!vol.isPrimary() && vol.isMountedWritable() && vol.isVisible() in maybeRemountVolumes()
1687 rec = new VolumeRecord(vol.type, vol.fsUuid); in onVolumeStateChangedAsync()
1833 if (vol.disk != null && vol.disk.isUsb()) { in isMountDisallowed()
2251 mount(vol); in mount()
2276 mVold.mount(vol.id, vol.mountFlags, vol.mountUserId, new IVoldMountCallback.Stub() { in mount()
2315 unmount(vol); in unmount()
[all …]
/aosp12/frameworks/av/media/codecs/m4v_h263/dec/src/
H A Dpvdec_api.cpp106 video->vol = (Vol **) IMEM_VOL; in PVInitVideoDecoder()
194 if (video->vol[idx] == NULL) in PVInitVideoDecoder()
619 if (video->vol) in PVCleanUpVideoDecoder()
623 if (video->vol[idx]) in PVCleanUpVideoDecoder()
627 video->vol[idx] = NULL; in PVCleanUpVideoDecoder()
632 video->vol = NULL; in PVCleanUpVideoDecoder()
688 if (video->vol) in PVCleanUpVideoDecoder()
692 if (video->vol[idx]) in PVCleanUpVideoDecoder()
703 oscl_free(video->vol); in PVCleanUpVideoDecoder()
1123 currVol = video->vol[target_layer]; in PVDecodeVopHeader()
[all …]
/aosp12/hardware/qcom/audio/hal/audio_extn/
H A Dmaxxaudio.c114 float vol; member
229 STREAM_VOICE, ma_cur_state_table[STREAM_VOICE].vol, in print_state_log()
233 STREAM_RING, ma_cur_state_table[STREAM_RING].vol, in print_state_log()
235 STREAM_MUSIC, ma_cur_state_table[STREAM_MUSIC].vol, in print_state_log()
291 float vol = 0; in check_and_send_all_audio_cal() local
607 ma_cur_state_table[i].vol = 0.0; in audio_extn_ma_init()
646 float vol, bool active) in audio_extn_ma_set_state() argument
665 pr_mstate.vol = ma_cur_state_table[(ma_stream_type_t)stream_type].vol; in audio_extn_ma_set_state()
669 if (pr_mstate.vol != vol || pr_mstate.active != active) { in audio_extn_ma_set_state()
673 ma_cur_state_table[(ma_stream_type_t)stream_type].vol = vol; in audio_extn_ma_set_state()
[all …]
H A Dhfp.c86 int32_t vol, ret = 0; in hfp_set_volume() local
102 vol = lrint((value * 0x2000) + 0.5); in hfp_set_volume()
109 ALOGD("%s: Setting HFP volume to %d \n", __func__, vol); in hfp_set_volume()
125 if(mixer_ctl_set_value(ctl, 0, vol) < 0) { in hfp_set_volume()
126 ALOGE("%s: Couldn't set HFP Volume: [%d]", __func__, vol); in hfp_set_volume()
435 float vol; in audio_extn_hfp_set_parameters() local
492 if (sscanf(value, "%f", &vol) != 1){ in audio_extn_hfp_set_parameters()
497 ALOGD("%s: set_hfp_volume usecase, Vol: [%f]", __func__, vol); in audio_extn_hfp_set_parameters()
498 hfp_set_volume(adev, vol); in audio_extn_hfp_set_parameters()
505 if (sscanf(value, "%f", &vol) != 1){ in audio_extn_hfp_set_parameters()
[all …]
/aosp12/packages/providers/MediaProvider/src/com/android/providers/media/fuse/
H A DExternalStorageServiceImpl.java82 public void onVolumeStateChanged(@NonNull StorageVolume vol) throws IOException { in onVolumeStateChanged() argument
83 Objects.requireNonNull(vol); in onVolumeStateChanged()
87 switch(vol.getState()) { in onVolumeStateChanged()
89 MediaVolume volume = MediaVolume.fromStorageVolume(vol); in onVolumeStateChanged()
97 mediaProvider.detachVolume(MediaVolume.fromStorageVolume(vol)); in onVolumeStateChanged()
100 Log.i(TAG, "Ignoring volume state for vol:" + vol.getMediaStoreVolumeName() in onVolumeStateChanged()
101 + ". State: " + vol.getState()); in onVolumeStateChanged()
/aosp12/frameworks/base/core/java/android/os/storage/
H A DStorageManager.java839 return vol; in findVolumeById()
852 return vol; in findVolumeByUuid()
925 if (vol.path != null && FileUtils.contains(vol.path, pathString) in getUuidForPath()
945 if (vol != null) { in findPathForUuid()
946 return vol.getPath(); in findPathForUuid()
979 if (vol.getType() == VolumeInfo.TYPE_PRIVATE && vol.isMountedWritable()) { in getWritablePrivateVolumes()
980 res.add(vol); in getWritablePrivateVolumes()
1015 if (vol.disk != null) { in getBestVolumeDescription()
1028 return vol; in getPrimaryPhysicalVolume()
1297 if (vol != null) { in getVolumeState()
[all …]
/aosp12/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/
H A DStorageSummaryFragment.java144 for (final VolumeInfo vol : volumes) { in refresh()
145 if (vol.getType() == VolumeInfo.TYPE_PRIVATE) { in refresh()
146 privateVolumes.add(vol); in refresh()
147 } else if (vol.getType() == VolumeInfo.TYPE_PUBLIC) { in refresh()
148 publicVolumes.add(vol); in refresh()
150 Log.d(TAG, "Skipping volume " + vol.toString()); in refresh()
273 private String getSizeString(VolumeInfo vol) { in getSizeString() argument
274 final File path = vol.getPath(); in getSizeString()
275 if (vol.isMountedReadable() && path != null) { in getSizeString()
323 public void onVolumeStateChanged(VolumeInfo vol, int oldState, int newState) { in onVolumeStateChanged() argument
/aosp12/frameworks/av/media/libaudioprocessing/tests/
H A Dmixerops_benchmark.cpp38 float vol[2] = {0.f, 0.f}; in BM_VolumeRampMulti() local
47 volumeRampMulti<MIXTYPE, NCHAN>(out, FRAME_COUNT, in, aux, vol, volinc, &vola, volainc); in BM_VolumeRampMulti()
64 float vol[2] = {0.f, 0.f}; in BM_VolumeMulti() local
70 volumeMulti<MIXTYPE, NCHAN>(out, FRAME_COUNT, in, aux, vol, vola); in BM_VolumeMulti()
/aosp12/frameworks/av/media/codecs/m4v_h263/enc/src/
H A Dmp4enc_api.cpp892 pVol = video->vol[idx]; in PVInitVideoEncoder()
1255 if (video->vol) in PVCleanUpVideoEncoder()
1259 if (video->vol[idx]) in PVCleanUpVideoEncoder()
2624 Vol **vol = video->vol; in DetermineCodingLayer() local
2690 vol[i]->moduloTimeBase = 0; in DetermineCodingLayer()
2691 while (vol[i]->timeIncrement >= vol[i]->timeIncrementResolution) in DetermineCodingLayer()
2693 vol[i]->timeIncrement -= vol[i]->timeIncrementResolution; in DetermineCodingLayer()
2694 vol[i]->moduloTimeBase++; in DetermineCodingLayer()
2741 while (vol[i]->timeIncrement >= vol[i]->timeIncrementResolution) in DetermineCodingLayer()
2743 vol[i]->timeIncrement -= vol[i]->timeIncrementResolution; in DetermineCodingLayer()
[all …]
/aosp12/frameworks/base/core/java/com/android/internal/content/
H A DPackageHelper.java197 for (VolumeInfo vol : storageManager.getVolumes()) { in resolveInstallVolume()
198 if (vol.type == VolumeInfo.TYPE_PRIVATE && vol.isMountedWritable()) { in resolveInstallVolume()
199 final boolean isInternalStorage = ID_PRIVATE_INTERNAL.equals(vol.id); in resolveInstallVolume()
201 internalVolumePath = vol.path; in resolveInstallVolume()
204 volumePaths.put(vol.fsUuid, vol.path); in resolveInstallVolume()
266 for (String vol : volumePaths.keySet()) { in resolveInstallVolume()
267 final String volumePath = volumePaths.get(vol); in resolveInstallVolume()
276 bestCandidate = vol; in resolveInstallVolume()
/aosp12/packages/providers/MediaProvider/src/com/android/providers/media/
H A DVolumeCache.java84 for (MediaVolume vol : mExternalVolumes) { in getExternalVolumeNames()
85 volNames.add(vol.getName()); in getExternalVolumeNames()
94 for (MediaVolume vol : mExternalVolumes) { in findVolume()
95 if (vol.getName().equals(volumeName) && vol.isVisibleToUser(user)) { in findVolume()
96 return vol; in findVolume()
/aosp12/packages/apps/Settings/src/com/android/settings/deviceinfo/
H A DStorageUnmountReceiver.java36 final VolumeInfo vol = storage.findVolumeById(volId); in onReceive() local
37 if (vol != null) { in onReceive()
38 new UnmountTask(context, vol).execute(); in onReceive()
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/storage/
H A DStorageUnmountReceiver.java40 VolumeInfo vol = storage.findVolumeById(volId); in onReceive() local
41 if (vol != null) { in onReceive()
42 new UnmountTask(context, vol).execute(); in onReceive()
/aosp12/bootable/recovery/updater/
H A Dupdater_runtime.cpp122 MountedVolume* vol = find_mounted_volume_by_mount_point(std::string(mount_point).c_str()); in IsMounted() local
123 return vol != nullptr; in IsMounted()
128 MountedVolume* vol = find_mounted_volume_by_mount_point(std::string(mount_point).c_str()); in Unmount() local
129 if (vol == nullptr) { in Unmount()
133 int ret = unmount_mounted_volume(vol); in Unmount()
/aosp12/packages/apps/Car/SystemUpdater/src/com/android/car/systemupdater/
H A DDeviceListFragment.java66 public void onVolumeStateChanged(VolumeInfo vol, int oldState, int newState) {
69 "onVolumeMetadataChanged %d %d %s", oldState, newState, vol.toString()));
139 for (VolumeInfo vol : vols) { in showMountedVolumes()
140 File path = vol.getPathForUser(getActivity().getUserId()); in showMountedVolumes()
141 if (vol.getState() == VolumeInfo.STATE_MOUNTED in showMountedVolumes()
142 && vol.getType() == VolumeInfo.TYPE_PUBLIC in showMountedVolumes()

123456