/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/ |
D | StorageNotification.java | 97 public void onVolumeStateChanged(VolumeInfo vol, int oldState, int newState) { 98 onVolumeStateChangedInternal(vol); 106 final VolumeInfo vol = mStorageManager.findVolumeByUuid(rec.getFsUuid()); 107 if (vol != null && vol.isMountedReadable()) { 108 onVolumeStateChangedInternal(vol); 205 for (VolumeInfo vol : vols) { in start() 206 onVolumeStateChangedInternal(vol); in start() 304 private void onVolumeStateChangedInternal(VolumeInfo vol) { in onVolumeStateChangedInternal() argument 305 switch (vol.getType()) { in onVolumeStateChangedInternal() 307 onPrivateVolumeStateChangedInternal(vol); in onVolumeStateChangedInternal() [all …]
|
/frameworks/base/services/core/java/com/android/server/storage/ |
D | StorageSessionController.java | 82 public int getConnectionUserIdForVolume(VolumeInfo vol) { in getConnectionUserIdForVolume() argument 84 UserHandle.of(vol.mountUserId), 0); in getConnectionUserIdForVolume() 88 UserInfo userInfo = mUserManager.getUserInfo(vol.mountUserId); in getConnectionUserIdForVolume() 93 return vol.mountUserId; in getConnectionUserIdForVolume() 111 public void onVolumeMount(ParcelFileDescriptor deviceFd, VolumeInfo vol) in onVolumeMount() argument 113 if (!shouldHandle(vol)) { in onVolumeMount() 117 Slog.i(TAG, "On volume mount " + vol); in onVolumeMount() 119 String sessionId = vol.getId(); in onVolumeMount() 120 int userId = getConnectionUserIdForVolume(vol); in onVolumeMount() 132 connection.startSession(sessionId, deviceFd, vol.getPath().getPath(), in onVolumeMount() [all …]
|
D | DeviceStorageMonitorService.java | 182 for (VolumeInfo vol : storage.getWritablePrivateVolumes()) { in checkLow() 183 final File file = vol.getPath(); in checkLow() 194 pm.freeStorage(vol.getFsUuid(), lowBytes * 2, 0); in checkLow() 202 final UUID uuid = StorageManager.convert(vol.getFsUuid()); 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() 477 for (VolumeInfo vol : storage.getWritablePrivateVolumes()) { in dumpImpl() [all …]
|
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()
|
/frameworks/av/media/libaudioprocessing/ |
D | AudioMixerOps.h | 253 void stereoVolumeHelperWithChannelMask(TO*& out, const TI*& in, const TV *vol, F f) { in stereoVolumeHelperWithChannelMask() argument 276 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() 296 proc(*out++, f(inp(), vol[0])); \ in stereoVolumeHelperWithChannelMask() 299 proc(*out++, f(inp(), vol[1])); \ in stereoVolumeHelperWithChannelMask() 361 void stereoVolumeHelper(TO*& out, const TI*& in, const TV *vol, F f) { in stereoVolumeHelper() argument 372 stereoVolumeHelperWithChannelMask<MIXTYPE, MASK, TO, TI, TV, F>(out, in, vol, f); in stereoVolumeHelper() 434 const TI* in, TA* aux, TV *vol, const TV *volinc, TAV *vola, TAV volainc) in volumeRampMulti() argument 445 *out++ += MixMulAux<TO, TI, TV, TA>(*in++, vol[i], &auxaccum); in volumeRampMulti() 446 vol[i] += volinc[i]; in volumeRampMulti() [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | StorageManagerService.java | 500 final VolumeInfo vol = mVolumes.get(id); in findVolumeByIdOrThrow() local 501 if (vol != null) { in findVolumeByIdOrThrow() 502 return vol; in findVolumeByIdOrThrow() 511 final VolumeInfo vol = mVolumes.valueAt(i); in findRecordForPath() local 512 if (vol.path != null && path.startsWith(vol.path)) { in findRecordForPath() 513 return mRecords.get(vol.fsUuid); in findRecordForPath() 759 final VolumeInfo vol = (VolumeInfo) msg.obj; in handleMessage() local 760 if (isMountDisallowed(vol)) { in handleMessage() 761 Slog.i(TAG, "Ignoring mount " + vol.getId() + " due to policy"); in handleMessage() 765 mount(vol); in handleMessage() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | StorageEventHelper.java | 81 public void onVolumeStateChanged(VolumeInfo vol, int oldState, int newState) { in onVolumeStateChanged() argument 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() 97 } else if (vol.state == VolumeInfo.STATE_EJECTING) { in onVolumeStateChanged() 98 unloadPrivatePackages(vol); in onVolumeStateChanged() 132 private void loadPrivatePackages(final VolumeInfo vol) { in loadPrivatePackages() argument 133 mPm.mHandler.post(() -> loadPrivatePackagesInner(vol)); in loadPrivatePackages() 136 private void loadPrivatePackagesInner(VolumeInfo vol) { in loadPrivatePackagesInner() argument [all …]
|
D | UserDataPreparer.java | 76 for (VolumeInfo vol : storage.getWritablePrivateVolumes()) { in prepareUserData() 77 final String volumeUuid = vol.getFsUuid(); in prepareUserData() 166 for (VolumeInfo vol : storage.getWritablePrivateVolumes()) { in destroyUserData() 167 final String volumeUuid = vol.getFsUuid(); in destroyUserData()
|
/frameworks/av/media/module/codecs/m4v_h263/dec/src/ |
D | pvdec_api.cpp | 106 video->vol = (Vol **) IMEM_VOL; in PVInitVideoDecoder() 114 video->vol = (Vol **) oscl_malloc(nLayers * sizeof(Vol *)); in PVInitVideoDecoder() 116 if (video->vol == NULL) status = PV_FALSE; in PVInitVideoDecoder() 187 video->vol[idx] = IMEM_vol[idx]; in PVInitVideoDecoder() 189 if (video->vol[idx] == NULL) status = PV_FALSE; in PVInitVideoDecoder() 190 else oscl_memset(video->vol[idx], 0, sizeof(Vol)); in PVInitVideoDecoder() 193 video->vol[idx] = (Vol *) oscl_malloc(sizeof(Vol)); in PVInitVideoDecoder() 194 if (video->vol[idx] == NULL) in PVInitVideoDecoder() 202 oscl_memset(video->vol[idx], 0, sizeof(Vol)); in PVInitVideoDecoder() 224 video->vol[idx]->bitstream = stream; in PVInitVideoDecoder() [all …]
|
/frameworks/av/media/libaudioprocessing/tests/ |
D | mixerops_benchmark.cpp | 38 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()
|
D | mixerops_objdump.cpp | 38 float vol[2] = {0.f, 0.f}; in checkVolumeRampMulti() local 45 volumeRampMulti<MIXTYPE, NCHAN>(out, FRAME_COUNT, in, aux, vol, volinc, &vola, volainc); in checkVolumeRampMulti()
|
/frameworks/base/core/java/android/os/storage/ |
D | StorageManager.java | 347 public void onVolumeStateChanged(VolumeInfo vol, int oldState, int newState) { in onVolumeStateChanged() argument 349 mListener.onVolumeStateChanged(vol, oldState, newState); in onVolumeStateChanged() 351 final File path = vol.getPathForUser(UserHandle.myUserId()); in onVolumeStateChanged() 824 for (VolumeInfo vol : getVolumes()) { in findVolumeById() 825 if (Objects.equals(vol.id, id)) { in findVolumeById() 826 return vol; in findVolumeById() 837 for (VolumeInfo vol : getVolumes()) { in findVolumeByUuid() 838 if (Objects.equals(vol.fsUuid, fsUuid)) { in findVolumeByUuid() 839 return vol; in findVolumeByUuid() 911 for (VolumeInfo vol : mStorageManager.getVolumes(0)) { in getUuidForPath() [all …]
|
/frameworks/base/media/java/android/media/ |
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
|
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()
|
D | PlayerProxy.java | 98 public void setVolume(float vol) { in setVolume() argument 100 mConf.getIPlayer().setVolume(vol); in setVolume()
|
/frameworks/av/media/module/codecs/m4v_h263/enc/src/ |
D | mp4enc_api.cpp | 882 video->vol = (Vol **)M4VENC_MALLOC(nLayers * sizeof(Vol *)); /* Memory for VOL pointers */ in PVInitVideoEncoder() 885 if (video->vol == NULL) goto CLEAN_UP; in PVInitVideoEncoder() 892 video->vol[idx] = (Vol *)M4VENC_MALLOC(sizeof(Vol)); in PVInitVideoEncoder() 893 if (video->vol[idx] == NULL) goto CLEAN_UP; in PVInitVideoEncoder() 895 pVol = video->vol[idx]; in PVInitVideoEncoder() 898 M4VENC_MEMSET(video->vol[idx], 0, sizeof(Vol)); in PVInitVideoEncoder() 1163 nTotalMB = video->vol[0]->nTotalMB; in PVCleanUpVideoEncoder() 1165 if (video->vol[idx]->nTotalMB > nTotalMB) in PVCleanUpVideoEncoder() 1166 nTotalMB = video->vol[idx]->nTotalMB; in PVCleanUpVideoEncoder() 1258 if (video->vol) in PVCleanUpVideoEncoder() [all …]
|
D | vop.cpp | 44 Vol *currVol = video->vol[currLayer]; in EncodeVop() 127 Vol *currVol = video->vol[video->currLayer]; in EncodeVop_NoME() 196 Vol *currVol = video->vol[currLayer]; in EncodeSlice() 312 Vol *currVol = video->vol[0]; in EncodeVopNotCoded() 510 Vol *currVol = video->vol[video->currLayer]; in EncodeVideoPacketHeader()
|
/frameworks/base/core/java/com/android/internal/content/ |
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()
|
/frameworks/base/core/java/android/speech/tts/ |
D | AudioPlaybackQueueItem.java | 100 final float vol = clip(volume, 0.0f, 1.0f); in setupVolume() local 103 float volLeft = vol, volRight = vol; in setupVolume()
|
D | BlockingAudioTrack.java | 324 final float vol = clip(volume, 0.0f, 1.0f); in setupVolume() local 327 float volLeft = vol; in setupVolume() 328 float volRight = vol; in setupVolume()
|
/frameworks/base/cmds/sm/src/com/android/commands/sm/ |
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()
|
/frameworks/base/core/java/android/service/storage/ |
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()
|
/frameworks/av/media/libaudioclient/ |
D | PlayerBase.cpp | 180 binder::Status PlayerBase::setVolume(float vol) { in setVolume() argument 184 mVolumeMultiplierL = vol; in setVolume() 185 mVolumeMultiplierR = vol; in setVolume()
|
/frameworks/libs/binary_translation/tests/perf_tests/ |
D | perf_test.cc | 155 volatile unsigned vol = 0; in TEST() local 158 i += vol; in TEST()
|
/frameworks/av/media/libaudioclient/aidl/android/media/ |
D | IPlayer.aidl | 29 oneway void setVolume(float vol); in setVolume() argument
|