Home
last modified time | relevance | path

Searched refs:relativePath (Results 1 – 10 of 10) sorted by relevance

/packages/apps/Gallery2/src/com/android/gallery3d/data/
DLocalAlbum.java299 String relativePath = "/"; in getRelativePath() local
301 relativePath += BucketNames.CAMERA; in getRelativePath()
303 relativePath += BucketNames.DOWNLOAD; in getRelativePath()
305 relativePath += BucketNames.IMPORTED; in getRelativePath()
307 relativePath += BucketNames.SCREENSHOTS; in getRelativePath()
309 relativePath += BucketNames.EDITED_ONLINE_PHOTOS; in getRelativePath()
317 relativePath = null; in getRelativePath()
319 relativePath = path.substring(extStorage.getAbsolutePath().length()); in getRelativePath()
322 return relativePath; in getRelativePath()
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DFileUtils.java1198 final String relativePath = extractRelativePath(path);
1199 if (relativePath == null) {
1203 if (StringUtils.startsWithIgnoreCase(relativePath, "Android/media")) {
1207 return StringUtils.startsWithIgnoreCase(relativePath, crossUserRoot + "/Android/media");
1258 final String relativePath = extractRelativePath(path);
1259 if (relativePath == null) {
1263 return extractTopLevelDir(relativePath.split("/"));
1424 String relativePath = values.getAsString(MediaColumns.RELATIVE_PATH);
1425 if (relativePath == null) {
1426 relativePath = "";
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/
DWidgetDatabaseHelper.java74 public String relativePath; field in WidgetDatabaseHelper.Entry
86 relativePath = cursor.getString(INDEX_RELATIVE_PATH); in Entry()
218 public boolean setWidget(int id, int type, String albumPath, String relativePath) { in setWidget() argument
224 values.put(FIELD_RELATIVE_PATH, relativePath); in setWidget()
290 values.put(FIELD_RELATIVE_PATH, entry.relativePath); in updateEntry()
DWidgetConfigure.java167 String relativePath = null; in setChoosenAlbum() local
176 relativePath = LocalAlbum.getRelativePath(bucketId); in setChoosenAlbum()
178 + ", relative path: " + relativePath); in setChoosenAlbum()
181 WidgetDatabaseHelper.TYPE_ALBUM, albumPath, relativePath); in setChoosenAlbum()
/packages/apps/Gallery2/src/com/android/gallery3d/onetimeinitializer/
DGalleryWidgetMigrator.java94 if (entry.relativePath != null && entry.relativePath.length() > 0) { in migrateGalleryWidgetsInternal()
150 entry.relativePath = path.substring(RELATIVE_PATH_START); in updatePath()
160 String newPath = NEW_EXT_PATH + entry.relativePath; in updateEntryUsingRelativePath()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/db/
DVideoStore.java147 String relativePath = cursor.getString(relativePathColumn); in load() local
149 file = new File(relativePath, displayName); in load()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DMediaProviderTest.java1880 final String relativePath = extractRelativePath(audio.getAbsolutePath()); in testQueryAudioViewsNoItemWithColumn() local
1888 values.put(MediaStore.Audio.Media.RELATIVE_PATH, relativePath); in testQueryAudioViewsNoItemWithColumn()
2024 private static void assertRelativePathForDirectory(String directoryPath, String relativePath) { in assertRelativePathForDirectory() argument
2027 .isEqualTo(relativePath); in assertRelativePathForDirectory()
2054 private static void assertRelativePath(ContentValues values, String relativePath) { in assertRelativePath() argument
2055 assertEquals(relativePath, values.get(ImageColumns.RELATIVE_PATH)); in assertRelativePath()
2075 private String buildFile(Uri uri, String relativePath, String displayName, in buildFile() argument
2078 if (relativePath != null) { in buildFile()
2079 values.put(MediaColumns.RELATIVE_PATH, relativePath); in buildFile()
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaProvider.java2347 String relativePath = "Android/media/" + DatabaseUtils.escapeForLike(packageName) + "/%"; in deleteAndroidMediaEntriesAndInvalidateDentryCache() local
2352 new String[] { relativePath, packageName, "" + userId }, in deleteAndroidMediaEntriesAndInvalidateDentryCache() argument
3178 String relativePath = extractRelativePathWithDisplayName(path); in getFilesInDirectoryForFuse() local
3179 if (relativePath == null) { in getFilesInDirectoryForFuse()
3203 queryArgs.putStringArray(QUERY_ARG_SQL_SELECTION_ARGS, new String[] {relativePath, in getFilesInDirectoryForFuse()
4907 final String[] relativePath = values.getAsString(MediaColumns.RELATIVE_PATH).split("/"); in ensureFileColumns() local
4908 final String primary = extractTopLevelDir(relativePath); in ensureFileColumns()
5033 for (final String relativePath : relativePaths) { in assertPrivatePathNotInValues()
5034 if (!isDataOrObbRelativePath(relativePath)) { in assertPrivatePathNotInValues()
5049 "Inserting private file: " + relativePath + " is not allowed."); in assertPrivatePathNotInValues()
[all …]
DTranscodeHelperImpl.java867 final String relativePath = FileUtils.extractRelativePath(path); in supportsTranscode() local
875 if (supportedRelativePath.equalsIgnoreCase(relativePath)) { in supportsTranscode()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadStorageProvider.java819 final String relativePath = cursor.getString(0); in getRelativePathAndDisplayNameForDownload() local
821 if (relativePath == null || displayName == null) { in getRelativePathAndDisplayNameForDownload()
825 return Pair.create(relativePath, displayName); in getRelativePathAndDisplayNameForDownload()