/frameworks/base/libs/hwui/ |
D | PathParser.cpp | 125 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 …]
|
D | PathParser.h | 43 const char* pathStr, size_t strLength); 45 const char* pathStr, size_t strLength);
|
D | VectorDrawable.cpp | 42 Path::Path(const char* pathStr, size_t strLength) { in Path() argument 45 PathParser::getPathDataFromAsciiString(&data, &result, pathStr, strLength); in Path()
|
/frameworks/base/media/jni/ |
D | android_media_MediaScanner.cpp | 154 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 …]
|
D | android_mtp_MtpServer.cpp | 169 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()
|
D | android_media_MediaMetadataRetriever.cpp | 111 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()
|
D | android_mtp_MtpDatabase.cpp | 241 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()
|
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/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_server_Watchdog.cpp | 55 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()
|
D | android_os_SELinux.cpp | 141 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()
|
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_app_NativeActivity.cpp | 277 ScopedUtfChars pathStr(env, path); in loadNativeCode_native() local 284 pathStr.c_str(), in loadNativeCode_native() 292 pathStr.c_str(), in loadNativeCode_native()
|
D | android_database_SQLiteConnection.cpp | 114 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/ |
D | PackageInstallerSession.java | 1278 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()
|