Home | History | Annotate | Download | only in documentsui

Lines Matching defs:volume

89     // Special directory name representing the full volume
124 final StorageVolume volume = (StorageVolume) storageVolume;
126 volume.getUuid(), directoryName) == PERMISSION_NEVER_ASK) {
135 if (!showFragment(this, userId, volume, directoryName)) {
151 * Validates the given path (volume + directory) and display the appropriate dialog asking the
157 Log.d(TAG, "showFragment() for volume " + storageVolume.dump() + ", directory "
163 if (DEBUG) Log.d(TAG, "root access requested on primary volume");
172 Log.e(TAG, "Could not get canonical file for volume " + storageVolume.dump()
197 // Gets volume label and converted path.
204 for (VolumeInfo volume : volumes) {
205 if (isRightVolume(volume, root, userId)) {
207 internalRoot = volume.getInternalPathForUser(userId);
212 volumeLabel = sm.getBestVolumeDescription(volume);
218 Log.w(TAG, "No volume description for " + volume + "; using " + volumeLabel);
224 // Should not happen on normal circumstances, unless app crafted an invalid volume
226 Log.e(TAG, "Didn't find right volume for '" + storageVolume.dump() + "' on " + volumes);
241 Log.e(TAG, "Could not get volume for " + file);
285 private static boolean isRightVolume(VolumeInfo volume, String root, int userId) {
286 final File userPath = volume.getPathForUser(userId);
287 final String path = userPath == null ? null : volume.getPathForUser(userId).getPath();
288 final boolean isMounted = volume.isMountedReadable();
290 Log.d(TAG, "Volume: " + volume