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()
218 const char* pathStr, size_t strLen) { in getPathDataFromAsciiString() argument
219 if (pathStr == NULL) { in getPathDataFromAsciiString()
227 while (isspace(pathStr[start]) && start < strLen) { in getPathDataFromAsciiString()
238 end = nextStart(pathStr, strLen, end); in getPathDataFromAsciiString()
240 getFloats(&points, result, pathStr, start, end); in getPathDataFromAsciiString()
241 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.cpp156 jstring pathStr; in scanFile() local
157 if ((pathStr = mEnv->NewStringUTF(path)) == NULL) { in scanFile()
162 mEnv->CallVoidMethod(mClient, mScanFileMethodID, pathStr, lastModified, in scanFile()
165 mEnv->DeleteLocalRef(pathStr); in scanFile()
256 const char *pathStr = env->GetStringUTFChars(path, NULL); in android_media_MediaScanner_processDirectory() local
257 if (pathStr == NULL) { // Out of memory in android_media_MediaScanner_processDirectory()
262 MediaScanResult result = mp->processDirectory(pathStr, myClient); in android_media_MediaScanner_processDirectory()
264 ALOGE("An error occurred while scanning directory '%s'.", pathStr); in android_media_MediaScanner_processDirectory()
266 env->ReleaseStringUTFChars(path, pathStr); in android_media_MediaScanner_processDirectory()
288 const char *pathStr = env->GetStringUTFChars(path, NULL); in android_media_MediaScanner_processFile() local
[all …]
Dandroid_mtp_MtpServer.cpp174 const char *pathStr = env->GetStringUTFChars(path, NULL); in android_mtp_MtpServer_add_storage() local
175 if (pathStr != NULL) { in android_mtp_MtpServer_add_storage()
178 MtpStorage* storage = new MtpStorage(storageID, pathStr, descriptionStr, in android_mtp_MtpServer_add_storage()
181 env->ReleaseStringUTFChars(path, pathStr); in android_mtp_MtpServer_add_storage()
184 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.cpp128 String8 pathStr(tmp); in android_media_MediaMetadataRetriever_setDataSourceAndHeaders() local
133 if (strncmp("mem://", pathStr.string(), 6) == 0) { in android_media_MediaMetadataRetriever_setDataSourceAndHeaders()
156 pathStr.string(), in android_media_MediaMetadataRetriever_setDataSourceAndHeaders()
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_os_SELinux.cpp83 static jstring fileSelabelLookup(JNIEnv* env, jobject, jstring pathStr) { in fileSelabelLookup() argument
89 if (pathStr == NULL) { in fileSelabelLookup()
96 ScopedUtfChars path(env, pathStr); in fileSelabelLookup()
220 static jboolean setFileCon(JNIEnv *env, jobject, jstring pathStr, jstring contextStr) { in setFileCon() argument
225 ScopedUtfChars path(env, pathStr); in setFileCon()
253 static jstring getFileCon(JNIEnv *env, jobject, jstring pathStr) { in getFileCon() argument
258 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
287 pathStr.c_str(), in loadNativeCode_native()
298 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/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/services/core/java/com/android/server/pm/
DPackageInstallerSession.java1912 final String pathStr = file.getAbsolutePath(); in getRelativePath() local
1915 if (pathStr.contains("/.") ) { in getRelativePath()
1916 throw new IOException("Invalid path (was relative) : " + pathStr); in getRelativePath()
1919 if (pathStr.startsWith(baseStr)) { in getRelativePath()
1920 return pathStr.substring(baseStr.length()); in getRelativePath()
1923 throw new IOException("File: " + pathStr + " outside base: " + baseStr); in getRelativePath()