Home
last modified time | relevance | path

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

/frameworks/base/libs/hwui/
DPathParser.cpp127 const char* pathStr, int start, int end) { in getFloats() argument
128 if (pathStr[start] == 'z' || pathStr[start] == 'Z') { in getFloats()
139 extract(&endPosition, &endWithNegOrDot, pathStr, startPosition, end); in getFloats()
142 float currentValue = parseFloat(result, &pathStr[startPosition], end - startPosition); in getFloats()
219 const char* pathStr, size_t strLen) { in getPathDataFromAsciiString() argument
220 if (pathStr == NULL) { in getPathDataFromAsciiString()
228 while (isspace(pathStr[start]) && start < strLen) { in getPathDataFromAsciiString()
239 end = nextStart(pathStr, strLen, end); in getPathDataFromAsciiString()
241 getFloats(&points, result, pathStr, start, end); in getPathDataFromAsciiString()
242 validateVerbAndPoints(pathStr[start], points.size(), result); in getPathDataFromAsciiString()
[all …]
DPathParser.h42 const char* pathStr, size_t strLength);
44 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.cpp162 const char *pathStr = env->GetStringUTFChars(path, NULL); in android_mtp_MtpServer_add_storage() local
163 if (pathStr != NULL) { in android_mtp_MtpServer_add_storage()
166 MtpStorage* storage = new MtpStorage(storageID, pathStr, descriptionStr, in android_mtp_MtpServer_add_storage()
169 env->ReleaseStringUTFChars(path, pathStr); in android_mtp_MtpServer_add_storage()
172 env->ReleaseStringUTFChars(path, pathStr); in android_mtp_MtpServer_add_storage()
Dandroid_mtp_MtpDatabase.cpp250 jstring pathStr = env->NewStringUTF(path); in beginSendObject() local
252 pathStr, (jint)format, (jint)parent, (jint)storage); in beginSendObject()
254 if (pathStr) in beginSendObject()
255 env->DeleteLocalRef(pathStr); in beginSendObject()
270 jstring pathStr = env->NewStringUTF(path); in rescanFile() local
271 env->CallVoidMethod(mDatabase, method_rescanFile, pathStr, in rescanFile()
274 if (pathStr) in rescanFile()
275 env->DeleteLocalRef(pathStr); in rescanFile()
Dandroid_media_MediaMetadataRetriever.cpp127 String8 pathStr(tmp); in android_media_MediaMetadataRetriever_setDataSourceAndHeaders() local
132 if (strncmp("mem://", pathStr.string(), 6) == 0) { in android_media_MediaMetadataRetriever_setDataSourceAndHeaders()
155 pathStr.string(), in android_media_MediaMetadataRetriever_setDataSourceAndHeaders()
Dandroid_media_MediaPlayer.cpp244 String8 pathStr(tmp); in android_media_MediaPlayer_setDataSourceAndHeaders() local
264 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/av/media/mtp/
DMtpUtils.cpp197 string pathStr(path); in deleteRecursive() local
198 if (pathStr[pathStr.size()-1] != '/') { in deleteRecursive()
199 pathStr += '/'; in deleteRecursive()
216 string childPath = pathStr + name; in deleteRecursive()
/frameworks/base/core/jni/
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.cpp280 ScopedUtfChars pathStr(env, path); in loadNativeCode_native() local
286 pathStr.c_str(), in loadNativeCode_native()
294 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.java1375 final String pathStr = file.getAbsolutePath(); in getRelativePath() local
1378 if (pathStr.contains("/.") ) { in getRelativePath()
1379 throw new IOException("Invalid path (was relative) : " + pathStr); in getRelativePath()
1382 if (pathStr.startsWith(baseStr)) { in getRelativePath()
1383 return pathStr.substring(baseStr.length()); in getRelativePath()
1386 throw new IOException("File: " + pathStr + " outside base: " + baseStr); in getRelativePath()