Home
last modified time | relevance | path

Searched refs:lastSlash (Results 1 – 3 of 3) sorted by relevance

/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/
DLegacyMediaScannerTest.java71 final int lastSlash = path.lastIndexOf('/'); in isNonMediaFile() local
72 if (lastSlash >= 0 && lastSlash + 2 < path.length()) { in isNonMediaFile()
74 if (path.regionMatches(lastSlash + 1, "._", 0, 2)) { in isNonMediaFile()
82 if (path.regionMatches(true, lastSlash + 1, "AlbumArt_{", 0, 10) || in isNonMediaFile()
83 path.regionMatches(true, lastSlash + 1, "AlbumArt.", 0, 9)) { in isNonMediaFile()
86 int length = path.length() - lastSlash - 1; in isNonMediaFile()
88 true, lastSlash + 1, "AlbumArtSmall", 0, 13)) || in isNonMediaFile()
90 && path.regionMatches(true, lastSlash + 1, "Folder", 0, 6))) { in isNonMediaFile()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DHelpers.java667 final int lastSlash = data.lastIndexOf('/'); in extractRelativePath() local
668 if (lastSlash == -1 || lastSlash < matcher.end()) { in extractRelativePath()
673 return data.substring(matcher.end(), lastSlash + 1); in extractRelativePath()
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DFileUtils.java1094 final int lastSlash = data.lastIndexOf('/');
1095 if (lastSlash == -1 || lastSlash < matcher.end()) {
1100 return data.substring(matcher.end(), lastSlash + 1);
1613 final int lastSlash = expiredFilePath.lastIndexOf('/');
1614 final String newPath = expiredFilePath.substring(0, lastSlash + 1).concat(