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.cpp42 Path::Path(const char* pathStr, size_t strLength) { in Path() argument
45 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.cpp169 const char *pathStr = env->GetStringUTFChars(path, NULL); in android_mtp_MtpServer_add_storage() local
170 if (pathStr != NULL) { in android_mtp_MtpServer_add_storage()
173 MtpStorage* storage = new MtpStorage(storageID, pathStr, descriptionStr, in android_mtp_MtpServer_add_storage()
176 env->ReleaseStringUTFChars(path, pathStr); in android_mtp_MtpServer_add_storage()
179 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.cpp241 jstring pathStr = env->NewStringUTF(path); in beginSendObject() local
243 pathStr, (jint)format, (jint)parent, (jint)storage, in beginSendObject()
246 if (pathStr) in beginSendObject()
247 env->DeleteLocalRef(pathStr); in beginSendObject()
255 jstring pathStr = env->NewStringUTF(path); in endSendObject() local
256 env->CallVoidMethod(mDatabase, method_endSendObject, pathStr, in endSendObject()
259 if (pathStr) in endSendObject()
260 env->DeleteLocalRef(pathStr); in endSendObject()
Dandroid_media_MediaPlayer.cpp242 String8 pathStr(tmp); in android_media_MediaPlayer_setDataSourceAndHeaders() local
262 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.cpp277 ScopedUtfChars pathStr(env, path); in loadNativeCode_native() local
284 pathStr.c_str(), in loadNativeCode_native()
292 pathStr.c_str(), in loadNativeCode_native()
Dandroid_database_SQLiteConnection.cpp114 static jlong nativeOpen(JNIEnv* env, jclass clazz, jstring pathStr, jint openFlags, in nativeOpen() argument
126 const char* pathChars = env->GetStringUTFChars(pathStr, NULL); in nativeOpen()
128 env->ReleaseStringUTFChars(pathStr, pathChars); in nativeOpen()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageInstallerSession.java1278 final String pathStr = file.getAbsolutePath(); in getRelativePath() local
1281 if (pathStr.contains("/.") ) { in getRelativePath()
1282 throw new IOException("Invalid path (was relative) : " + pathStr); in getRelativePath()
1285 if (pathStr.startsWith(baseStr)) { in getRelativePath()
1286 return pathStr.substring(baseStr.length()); in getRelativePath()
1289 throw new IOException("File: " + pathStr + " outside base: " + baseStr); in getRelativePath()