Home
last modified time | relevance | path

Searched refs:pathStr (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/libs/hwui/
DPathParser.cpp125 const char* pathStr, int start, int end) { in getFloats() argument
127 if (pathStr[start] == 'z' || pathStr[start] == 'Z') { in getFloats()
138 extract(&endPosition, &endWithNegOrDot, pathStr, startPosition, end); in getFloats()
141 float currentValue = parseFloat(result, &pathStr[startPosition], in getFloats()
166 const char* pathStr, size_t strLen) { in getPathDataFromAsciiString() argument
167 if (pathStr == NULL) { in getPathDataFromAsciiString()
175 while (isspace(pathStr[start]) && start < strLen) { in getPathDataFromAsciiString()
186 end = nextStart(pathStr, strLen, end); in getPathDataFromAsciiString()
188 getFloats(&points, result, pathStr, start, end); in getPathDataFromAsciiString()
189 if (!isVerbValid(pathStr[start])) { in getPathDataFromAsciiString()
[all …]
DPathParser.h43 const char* pathStr, size_t strLength);
45 const char* pathStr, size_t strLength);
DVectorDrawable.cpp96 Path::Path(const char* pathStr, size_t strLength) { in Path() argument
99 PathParser::getPathDataFromAsciiString(&data, &result, pathStr, strLength); in Path()
/frameworks/base/media/jni/
Dandroid_media_MediaScanner.cpp154 jstring pathStr; in scanFile() local
155 if ((pathStr = mEnv->NewStringUTF(path)) == NULL) { in scanFile()
160 mEnv->CallVoidMethod(mClient, mScanFileMethodID, pathStr, lastModified, in scanFile()
163 mEnv->DeleteLocalRef(pathStr); in scanFile()
254 const char *pathStr = env->GetStringUTFChars(path, NULL); in android_media_MediaScanner_processDirectory() local
255 if (pathStr == NULL) { // Out of memory in android_media_MediaScanner_processDirectory()
260 MediaScanResult result = mp->processDirectory(pathStr, myClient); in android_media_MediaScanner_processDirectory()
262 ALOGE("An error occurred while scanning directory '%s'.", pathStr); in android_media_MediaScanner_processDirectory()
264 env->ReleaseStringUTFChars(path, pathStr); in android_media_MediaScanner_processDirectory()
286 const char *pathStr = env->GetStringUTFChars(path, NULL); in android_media_MediaScanner_processFile() local
[all …]
Dandroid_mtp_MtpServer.cpp146 const char *pathStr = env->GetStringUTFChars(path, NULL); in android_mtp_MtpServer_add_storage() local
147 if (pathStr != NULL) { in android_mtp_MtpServer_add_storage()
150 MtpStorage* storage = new MtpStorage(storageID, pathStr, descriptionStr, in android_mtp_MtpServer_add_storage()
153 env->ReleaseStringUTFChars(path, pathStr); in android_mtp_MtpServer_add_storage()
156 env->ReleaseStringUTFChars(path, pathStr); in android_mtp_MtpServer_add_storage()
Dandroid_media_MediaMetadataRetriever.cpp111 String8 pathStr(tmp); in android_media_MediaMetadataRetriever_setDataSourceAndHeaders() local
116 if (strncmp("mem://", pathStr.string(), 6) == 0) { in android_media_MediaMetadataRetriever_setDataSourceAndHeaders()
139 pathStr.string(), in android_media_MediaMetadataRetriever_setDataSourceAndHeaders()
Dandroid_mtp_MtpDatabase.cpp240 jstring pathStr = env->NewStringUTF(path); in beginSendObject() local
242 pathStr, (jint)format, (jint)parent, (jint)storage, in beginSendObject()
245 if (pathStr) in beginSendObject()
246 env->DeleteLocalRef(pathStr); in beginSendObject()
254 jstring pathStr = env->NewStringUTF(path); in endSendObject() local
255 env->CallVoidMethod(mDatabase, method_endSendObject, pathStr, in endSendObject()
258 if (pathStr) in endSendObject()
259 env->DeleteLocalRef(pathStr); in endSendObject()
Dandroid_media_MediaPlayer.cpp217 String8 pathStr(tmp); in android_media_MediaPlayer_setDataSourceAndHeaders() local
237 pathStr, in android_media_MediaPlayer_setDataSourceAndHeaders()
/frameworks/base/services/core/jni/
Dcom_android_server_SerialService.cpp39 const char *pathStr = env->GetStringUTFChars(path, NULL); in android_server_SerialService_open() local
41 int fd = open(pathStr, O_RDWR | O_NOCTTY); in android_server_SerialService_open()
43 ALOGE("could not open %s", pathStr); in android_server_SerialService_open()
44 env->ReleaseStringUTFChars(path, pathStr); in android_server_SerialService_open()
47 env->ReleaseStringUTFChars(path, pathStr); in android_server_SerialService_open()
/frameworks/base/core/jni/
Dandroid_server_Watchdog.cpp55 static void dumpKernelStacks(JNIEnv* env, jobject clazz, jstring pathStr) { in dumpKernelStacks() argument
60 if (!pathStr) { in dumpKernelStacks()
65 const char *path = env->GetStringUTFChars(pathStr, NULL); in dumpKernelStacks()
97 env->ReleaseStringUTFChars(pathStr, path); in dumpKernelStacks()
Dandroid_os_SELinux.cpp141 static jboolean setFileCon(JNIEnv *env, jobject, jstring pathStr, jstring contextStr) { in setFileCon() argument
146 ScopedUtfChars path(env, pathStr); in setFileCon()
174 static jstring getFileCon(JNIEnv *env, jobject, jstring pathStr) { in getFileCon() argument
179 ScopedUtfChars path(env, pathStr); in getFileCon()
Dandroid_media_JetPlayer.cpp142 const char *pathStr = env->GetStringUTFChars(path, NULL); in android_media_JetPlayer_loadFromFile() local
143 if (pathStr == NULL) { // Out of memory in android_media_JetPlayer_loadFromFile()
148 ALOGV("android_media_JetPlayer_openFile(): trying to open %s", pathStr ); in android_media_JetPlayer_loadFromFile()
149 EAS_RESULT result = lpJet->loadFromFile(pathStr); in android_media_JetPlayer_loadFromFile()
150 env->ReleaseStringUTFChars(path, pathStr); in android_media_JetPlayer_loadFromFile()
Dandroid_app_NativeActivity.cpp267 const char* pathStr = env->GetStringUTFChars(path, NULL); in loadNativeCode_native() local
271 void* handle = OpenNativeLibrary(env, sdkVersion, pathStr, classLoader, libraryPath); in loadNativeCode_native()
273 if (NativeBridgeIsSupported(pathStr)) { in loadNativeCode_native()
274 handle = NativeBridgeLoadLibrary(pathStr, RTLD_LAZY); in loadNativeCode_native()
278 env->ReleaseStringUTFChars(path, pathStr); in loadNativeCode_native()
Dandroid_database_SQLiteConnection.cpp114 static jlong nativeOpen(JNIEnv* env, jclass clazz, jstring pathStr, jint openFlags, in nativeOpen() argument
125 const char* pathChars = env->GetStringUTFChars(pathStr, NULL); in nativeOpen()
127 env->ReleaseStringUTFChars(pathStr, pathChars); in nativeOpen()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageInstallerSession.java906 final String pathStr = file.getAbsolutePath(); in getRelativePath() local
909 if (pathStr.contains("/.") ) { in getRelativePath()
910 throw new IOException("Invalid path (was relative) : " + pathStr); in getRelativePath()
913 if (pathStr.startsWith(baseStr)) { in getRelativePath()
914 return pathStr.substring(baseStr.length()); in getRelativePath()
917 throw new IOException("File: " + pathStr + " outside base: " + baseStr); in getRelativePath()