/packages/providers/ContactsProvider/src/com/android/providers/contacts/debug/ |
H A D | DumpFileProvider.java | 67 /** @return the path part of a URI, without the beginning "/". */ 69 final String path = uri.getPath(); 70 return path.startsWith("/") ? path.substring(1) : path; 107 // Just return the requested path as the display name. We don't care if the file
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
H A D | SecureAlbum.java | 56 public SecureAlbum(Path path, GalleryApp application, MediaItem unlock) { argument 57 super(path, nextVersionNumber()); 77 Path path = pathBase.getChild(id); 78 if (!mAllItems.contains(path)) { 79 mAllItems.add(path); 177 Path path = mAllItems.get(i); 179 int id = Integer.parseInt(path.getSuffix()); 181 if (videoIds.contains(id)) mExistingItems.add(path); 183 if (imageIds.contains(id)) mExistingItems.add(path);
|
H A D | LocalAlbum.java | 61 public LocalAlbum(Path path, GalleryApp application, int bucketId, argument 63 super(path, nextVersionNumber()); 89 public LocalAlbum(Path path, GalleryApp application, int bucketId, argument 91 this(path, application, bucketId, isImage, 144 private static MediaItem loadOrUpdateItem(Path path, Cursor cursor, argument 147 LocalMediaItem item = (LocalMediaItem) dataManager.peekMediaObject(path); 150 item = new LocalImage(path, app, cursor); 152 item = new LocalVideo(path, app, cursor); 161 // The pids array are sorted by the (path) id. 164 // get the lower and upper bound of (path) i [all...] |
H A D | ComboAlbumSet.java | 32 public ComboAlbumSet(Path path, GalleryApp application, MediaSet[] mediaSets) { argument 33 super(path, nextVersionNumber());
|
H A D | DownloadEntry.java | 55 public String path; field in class:DownloadEntry 69 .append("_data").append(path)
|
H A D | LocalVideo.java | 75 public LocalVideo(Path path, GalleryApp application, Cursor cursor) { argument 76 super(path, nextVersionNumber()); 81 public LocalVideo(Path path, GalleryApp context, int id) { argument 82 super(path, nextVersionNumber()); 88 throw new RuntimeException("cannot get cursor for: " + path); 94 throw new RuntimeException("cannot find data for: " + path); 162 LocalVideoRequest(GalleryApp application, Path path, long timeModified, argument 164 super(application, path, timeModified, type,
|
H A D | MediaItem.java | 56 public MediaItem(Path path, long version) { argument 57 super(path, version);
|
H A D | SnailItem.java | 34 public SnailItem(Path path) { argument 35 super(path, nextVersionNumber());
|
H A D | MediaSet.java | 57 public MediaSet(Path path, long version) { argument 58 super(path, version); 119 public int getIndexOfItem(Path path, int hint) { argument 126 int index = getIndexOf(path, list); 133 index = getIndexOf(path, list); 141 protected int getIndexOf(Path path, ArrayList<MediaItem> list) { argument 145 if (item != null && item.mPath == path) return i;
|
/packages/apps/UnifiedEmail/tests/src/com/android/mail/browse/ |
H A D | TestProvider.java | 94 String path = uri.getPath(); 95 if (mMockStore.containsKey(path)) { 96 mMockStore.remove(path); 113 Uri newUri = new Uri.Builder().scheme("content").authority(AUTHORITY).path(table) 177 String path = uri.getPath(); 181 String prefix = path + "/"; 189 ContentValues cv = mMockStore.get(path); 218 mMockStore.put(path + "/" + targetValues.getAsLong(ID_COLUMN), targetValues); 221 mMockStore.put(path, targetValues);
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
H A D | MtpService.java | 57 final String path = primary.getPath(); 58 if (path != null) { 61 addStorageLocked(mVolumeMap.get(path)); 63 Log.e(TAG, "Couldn't add primary storage " + path + " in state " + state); 75 public void onStorageStateChanged(String path, String oldState, String newState) { 77 Log.d(TAG, "onStorageStateChanged " + path + " " + oldState + " -> " + newState); 79 volumeMountedLocked(path); 81 StorageVolume volume = mVolumeMap.remove(path); 247 private void volumeMountedLocked(String path) { argument 250 if (volume.getPath().equals(path)) { [all...] |
H A D | MediaScannerService.java | 164 private Uri scanFile(String path, String mimeType) { argument 168 // make sure the file path is in canonical form 169 String canonicalPath = new File(path).getCanonicalPath(); 172 Log.e(TAG, "bad path " + path + " in scanFile()", e); 184 public void requestScanFile(String path, String mimeType, IMediaScannerListener listener) { 186 Log.d(TAG, "IMediaScannerService.scanFile: " + path + " mimeType: " + mimeType); 189 args.putString("filepath", path); 198 public void scanFile(String path, String mimeType) { 199 requestScanFile(path, mimeTyp [all...] |
/packages/apps/Camera2/src/com/android/camera/ |
H A D | MediaSaverImpl.java | 110 public void addVideo(String path, ContentValues values, OnMediaSavedListener l) { argument 113 new VideoSaveTask(path, values, l, mContentResolver).execute(); 205 private String path; field in class:MediaSaverImpl.VideoSaveTask 210 public VideoSaveTask(String path, ContentValues values, OnMediaSavedListener l, argument 212 this.path = path; 230 if (new File(path).renameTo(finalFile)) { 231 path = finalName;
|
/packages/apps/Camera2/src/com/android/camera/data/ |
H A D | VideoRotationMetadataLoader.java | 35 final String path = data.getData().getFilePath(); 38 retriever.setDataSource(path);
|
/packages/apps/Gallery2/src/com/android/gallery3d/provider/ |
H A D | GalleryProvider.java | 73 public static Uri getUriFor(Context context, Path path) { argument 78 .appendEncodedPath(path.toString().substring(1)) // ignore the leading '/' 92 Path path = Path.fromString(uri.getPath()); 93 MediaItem item = (MediaItem) mDataManager.getMediaObject(path); 118 Path path = Path.fromString(uri.getPath()); 119 MediaObject object = mDataManager.getMediaObject(path); 180 Path path = Path.fromString(uri.getPath()); 181 MediaObject object = mDataManager.getMediaObject(path);
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
H A D | CacheStorageUsageInfo.java | 62 String path = cacheDir.getAbsolutePath(); 63 StatFs stat = new StatFs(path);
|
H A D | SelectionManager.java | 49 public void onSelectionChange(Path path, boolean selected); argument 130 public void toggle(Path path) { argument 131 if (mClickedSet.contains(path)) { 132 mClickedSet.remove(path); 135 mClickedSet.add(path); 144 if (mListener != null) mListener.onSelectionChange(path, isItemSelected(path));
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
H A D | CacheManager.java | 49 String path = cacheDir.getAbsolutePath() + "/" + filename; 51 cache = new BlobCache(path, maxEntries, maxBytes, false,
|
/packages/apps/Messaging/tests/src/com/android/messaging/ui/mediapicker/ |
H A D | GalleryGridItemViewTest.java | 80 final String path = (String) cursor.getAt(Media.DATA, 0); 82 verifyContent(view, UriUtil.getUriForResourceFile(path).toString(), 93 final String path = (String) cursor.getAt(Media.DATA, 0); 95 verifyContent(view, UriUtil.getUriForResourceFile(path).toString(), 106 final String path = (String) cursor.getAt(Media.DATA, 0); 108 verifyContent(view, UriUtil.getUriForResourceFile(path).toString(), 135 final String path = (String) cursor.getAt(Media.DATA, 1); 137 verifyContent(view, UriUtil.getUriForResourceFile(path).toString(),
|
/packages/apps/Music/src/com/android/music/ |
H A D | IMediaPlaybackService.aidl | 24 void openFile(String path);
|
/packages/apps/UnifiedEmail/src/org/apache/commons/io/ |
H A D | FilenameUtils.java | 46 * <li>the path - dev\project\</li> 47 * <li>the full path - C:\dev\project\</li> 164 * Normalizes a path, removing double and single dot path steps. 166 * This method normalizes a path to a standard format. 172 * A single dot path segment will be removed. 173 * A double dot will cause that path segment and the one before to be removed. 174 * If the double dot has no parent path segment to work with, <code>null</code> 209 * Normalizes a path, removing double and single dot path step 423 separatorsToUnix(String path) argument 436 separatorsToWindows(String path) argument 449 separatorsToSystem(String path) argument [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/provider/ |
H A D | SharedImageProvider.java | 103 File path = new File(uriPath); 113 columns[i] = path.getName(); 115 columns[i] = path.length(); 132 File path = new File(uriPath); 135 return ParcelFileDescriptor.open(path, imode);
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
H A D | MediaScratchFileProvider.java | 87 File getFile(final String path, final String extension) { argument 88 return getFileWithExtension(path, extension); 91 private static File getFileWithExtension(final String path, final String extension) { argument 94 TextUtils.isEmpty(extension) ? path : path + "." + extension); 99 LogUtil.e(TAG, "getFileWithExtension: path "
|
/packages/apps/Gallery2/src/com/android/gallery3d/onetimeinitializer/ |
H A D | GalleryWidgetMigrator.java | 43 * bucket ID (i.e., directory hash) change in JB and JB MR1 (The external storage path has changed 62 // Migration is only needed when external storage path has changed 86 // path combined with external storage path. Otherwise, iterate through old external 87 // storage paths to find the relative path that matches the old bucket id, and then update 88 // bucket id and relative path 91 Path path = Path.fromString(entry.albumPath); 92 MediaSet mediaSet = (MediaSet) manager.getMediaObject(path); 95 // update entry using relative path + external storage path [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
H A D | BluetoothOppUtility.java | 160 Uri path = Uri.parse(fileName); 162 if (path.getScheme() == null) { 163 path = Uri.fromFile(new File(fileName)); 165 uris.add(path.toString()); 166 if (V) Log.d(TAG, "Uri in this batch: " + path.toString()); 203 Uri path = BluetoothOppFileProvider.getUriForFile( 205 if (path == null) { 210 if (path.getScheme() == null) { 211 path = Uri.fromFile(new File(fileName)); 214 if (isRecognizedFileType(context, path, mimetyp [all...] |