Home
last modified time | relevance | path

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

/frameworks/base/libs/androidfw/tests/
DApkParsing_test.cpp30 auto lastSlash = util::ValidLibraryPathLastSlash(path, false, false); in TEST() local
31 ASSERT_THAT(lastSlash, NotNull()); in TEST()
32 ASSERT_THAT(lastSlash, Eq(path + 13)); in TEST()
37 auto lastSlash = util::ValidLibraryPathLastSlash(path, true, false); in TEST() local
38 ASSERT_THAT(lastSlash, IsNull()); in TEST()
43 auto lastSlash = util::ValidLibraryPathLastSlash(path, false, false); in TEST() local
44 ASSERT_THAT(lastSlash, NotNull()); in TEST()
45 ASSERT_THAT(lastSlash, Eq(path + 15)); in TEST()
50 auto lastSlash = util::ValidLibraryPathLastSlash(path, false, false); in TEST() local
51 ASSERT_THAT(lastSlash, IsNull()); in TEST()
[all …]
/frameworks/base/libs/androidfw/
DApkParsing.cpp44 const char* lastSlash = strrchr(fileName, '/'); in ValidLibraryPathLastSlash() local
45 if (!lastSlash) { in ValidLibraryPathLastSlash()
50 if (*(lastSlash + 1) == 0) { in ValidLibraryPathLastSlash()
55 if (!isFilenameSafe(lastSlash + 1)) { in ValidLibraryPathLastSlash()
65 if (memchr(fileName + APK_LIB_LEN, '/', fileNameLen - APK_LIB_LEN) != lastSlash) { in ValidLibraryPathLastSlash()
72 || strncmp(lastSlash, LIB_PREFIX.data(), LIB_PREFIX_LEN) != 0) { in ValidLibraryPathLastSlash()
79 fileName + APK_LIB_LEN, lastSlash - fileName - APK_LIB_LEN)) != abis.end()) { in ValidLibraryPathLastSlash()
83 return lastSlash; in ValidLibraryPathLastSlash()
DPathUtils.cpp46 const char* lastSlash; in findExtension() local
51 lastSlash = strrchr(str, OS_PATH_SEPARATOR); in findExtension()
52 if (lastSlash == nullptr) in findExtension()
53 lastSlash = str; in findExtension()
55 lastSlash++; in findExtension()
58 lastDot = strrchr(lastSlash, '.'); in findExtension()
/frameworks/base/core/jni/
Dcom_android_internal_content_NativeLibraryHelper.cpp362 const char* lastSlash = util::ValidLibraryPathLastSlash(fileName, false, mDebuggable); in next() local
363 if (lastSlash) { in next()
364 mLastSlash = lastSlash; in next()
376 inline const char* lastSlash() const { in lastSlash() function in android::NativeLibrariesIterator
423 const char* lastSlash = it->lastSlash(); in iterateOverNativeFiles() local
427 const size_t cpuAbiRegionSize = lastSlash - cpuAbiOffset; in iterateOverNativeFiles()
430 install_status_t ret = callFunc(env, callArg, zipFile, entry, lastSlash + 1); in iterateOverNativeFiles()
433 ALOGV("Failure for entry %s", lastSlash + 1); in iterateOverNativeFiles()
482 const char* lastSlash = it->lastSlash(); in findSupportedAbi() local
486 const size_t abiSize = lastSlash - abiOffset; in findSupportedAbi()
[all …]
/frameworks/base/media/java/android/media/
DMediaFile.java321 int lastSlash = path.lastIndexOf('/'); in getFileTitle() local
322 if (lastSlash >= 0) { in getFileTitle()
323 lastSlash++; in getFileTitle()
324 if (lastSlash < path.length()) { in getFileTitle()
325 path = path.substring(lastSlash); in getFileTitle()
/frameworks/base/services/core/java/com/android/server/pm/
DCompilerStats.java104 int lastSlash = codePath.lastIndexOf(File.separatorChar); in getStoredPathFromCodePath() local
105 return codePath.substring(lastSlash + 1); in getStoredPathFromCodePath()
/frameworks/base/telephony/java/android/telephony/mbms/
DMbmsDownloadReceiver.java478 int lastSlash = sourceUriPath.lastIndexOf('/'); in getFileRelativePath() local
479 sourceUriPath = sourceUriPath.substring(0, lastSlash); in getFileRelativePath()