/frameworks/base/libs/hwui/ |
D | PathParser.cpp | 127 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 …]
|
D | PathParser.h | 42 const char* pathStr, size_t strLength); 44 const char* pathStr, size_t strLength);
|
D | VectorDrawable.cpp | 48 Path::Path(const char* pathStr, size_t strLength) { in Path() argument 51 PathParser::getPathDataFromAsciiString(&data, &result, pathStr, strLength); in Path()
|
/frameworks/base/services/core/jni/ |
D | com_android_server_SerialService.cpp | 39 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/ |
D | android_os_SELinux.cpp | 83 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()
|
D | android_app_NativeActivity.cpp | 280 ScopedUtfChars pathStr(env, path); in loadNativeCode_native() local 287 pathStr.c_str(), in loadNativeCode_native() 298 pathStr.c_str(), in loadNativeCode_native()
|
D | android_database_SQLiteConnection.cpp | 112 static jlong nativeOpen(JNIEnv* env, jclass clazz, jstring pathStr, jint openFlags, in nativeOpen() argument 124 const char* pathChars = env->GetStringUTFChars(pathStr, NULL); in nativeOpen() 126 env->ReleaseStringUTFChars(pathStr, pathChars); in nativeOpen()
|
/frameworks/av/media/mtp/ |
D | MtpUtils.cpp | 198 string pathStr(path); in deleteRecursive() local 199 if (pathStr[pathStr.size()-1] != '/') { in deleteRecursive() 200 pathStr += '/'; in deleteRecursive() 217 string childPath = pathStr + name; in deleteRecursive()
|
/frameworks/base/media/jni/ |
D | android_mtp_MtpServer.cpp | 174 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()
|
D | android_media_JetPlayer.cpp | 142 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()
|
D | android_mtp_MtpDatabase.cpp | 245 jstring pathStr = env->NewStringUTF(path); in beginSendObject() local 247 pathStr, (jint)format, (jint)parent, (jint)storage); in beginSendObject() 249 if (pathStr) in beginSendObject() 250 env->DeleteLocalRef(pathStr); in beginSendObject() 265 jstring pathStr = env->NewStringUTF(path); in rescanFile() local 266 env->CallVoidMethod(mDatabase, method_rescanFile, pathStr, in rescanFile() 269 if (pathStr) in rescanFile() 270 env->DeleteLocalRef(pathStr); in rescanFile()
|
D | android_media_MediaPlayer.cpp | 242 String8 pathStr(tmp); in android_media_MediaPlayer_setDataSourceAndHeaders() local 262 pathStr, in android_media_MediaPlayer_setDataSourceAndHeaders()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageInstallerSession.java | 2438 final String pathStr = file.getAbsolutePath(); in getRelativePath() local 2441 if (pathStr.contains("/.") ) { in getRelativePath() 2442 throw new IOException("Invalid path (was relative) : " + pathStr); in getRelativePath() 2445 if (pathStr.startsWith(baseStr)) { in getRelativePath() 2446 return pathStr.substring(baseStr.length()); in getRelativePath() 2449 throw new IOException("File: " + pathStr + " outside base: " + baseStr); in getRelativePath()
|