Home
last modified time | relevance | path

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

/frameworks/base/core/jni/
Dcom_android_internal_content_NativeLibraryHelper.cpp311 const char* lastSlash = strrchr(fileName, '/'); in iterateOverNativeFiles() local
312 ALOG_ASSERT(lastSlash != NULL, "last slash was null somehow for %s\n", fileName); in iterateOverNativeFiles()
316 const size_t cpuAbiRegionSize = lastSlash - cpuAbiOffset; in iterateOverNativeFiles()
345 && !strncmp(lastSlash, LIB_PREFIX, LIB_PREFIX_LEN) in iterateOverNativeFiles()
346 && isFilenameSafe(lastSlash + 1)) in iterateOverNativeFiles()
347 || !strncmp(lastSlash + 1, GDBSERVER, GDBSERVER_LEN)) { in iterateOverNativeFiles()
349 install_status_t ret = callFunc(env, callArg, &zipFile, entry, lastSlash + 1); in iterateOverNativeFiles()
352 ALOGV("Failure for entry %s", lastSlash + 1); in iterateOverNativeFiles()
/frameworks/base/media/java/android/media/
DMediaFile.java294 int lastSlash = path.lastIndexOf('/'); in getFileTitle() local
295 if (lastSlash >= 0) { in getFileTitle()
296 lastSlash++; in getFileTitle()
297 if (lastSlash < path.length()) { in getFileTitle()
298 path = path.substring(lastSlash); in getFileTitle()
DMediaScanner.java832 int lastSlash = album.lastIndexOf('/');
833 if (lastSlash >= 0) {
837 if (idx < 0 || idx >= lastSlash) {
843 album = album.substring(previousSlash + 1, lastSlash);
1376 int lastSlash = path.lastIndexOf('/');
1377 if (lastSlash >= 0 && lastSlash + 2 < path.length()) {
1379 if (path.regionMatches(lastSlash + 1, "._", 0, 2)) {
1387 if (path.regionMatches(true, lastSlash + 1, "AlbumArt_{", 0, 10) ||
1388 path.regionMatches(true, lastSlash + 1, "AlbumArt.", 0, 9)) {
1391 int length = path.length() - lastSlash - 1;
[all …]
/frameworks/native/libs/utils/
DString8.cpp537 const char* lastSlash; in find_extension() local
543 lastSlash = strrchr(str, OS_PATH_SEPARATOR); in find_extension()
544 if (lastSlash == NULL) in find_extension()
545 lastSlash = str; in find_extension()
547 lastSlash++; in find_extension()
550 lastDot = strrchr(lastSlash, '.'); in find_extension()
/frameworks/base/media/java/android/mtp/
DMtpDatabase.java313 int lastSlash = name.lastIndexOf('/'); in endSendObject() local
314 if (lastSlash >= 0) { in endSendObject()
315 name = name.substring(lastSlash + 1); in endSendObject()
732 int lastSlash = path.lastIndexOf('/'); in renameFile() local
733 if (lastSlash <= 1) { in renameFile()
736 String newPath = path.substring(0, lastSlash + 1) + newName; in renameFile()
856 int lastSlash = path.lastIndexOf('/'); in getObjectInfo() local
857 int start = (lastSlash >= 0 ? lastSlash + 1 : 0); in getObjectInfo()
DMtpPropertyGroup.java275 int lastSlash = path.lastIndexOf('/'); in nameFromPath() local
276 if (lastSlash >= 0) { in nameFromPath()
277 start = lastSlash + 1; in nameFromPath()
/frameworks/base/docs/html/distribute/googleplay/promote/
Dbadges.jd174 var lastSlash = $(this).attr('src').lastIndexOf('/');
175 var imgPath = $(this).attr('src').substring(0, lastSlash+1);