Searched refs:pathStr (Results 1 - 11 of 11) sorted by relevance

/frameworks/base/services/jni/
H A Dcom_android_server_SerialService.cpp39 const char *pathStr = env->GetStringUTFChars(path, NULL); local
41 int fd = open(pathStr, O_RDWR | O_NOCTTY);
43 ALOGE("could not open %s", pathStr);
44 env->ReleaseStringUTFChars(path, pathStr);
47 env->ReleaseStringUTFChars(path, pathStr);
/frameworks/base/core/jni/
H A Dandroid_server_Watchdog.cpp55 static void dumpKernelStacks(JNIEnv* env, jobject clazz, jstring pathStr) { argument
60 if (!pathStr) {
65 const char *path = env->GetStringUTFChars(pathStr, NULL);
97 env->ReleaseStringUTFChars(pathStr, path);
H A Dandroid_os_FileUtils.cpp64 const char *pathStr = env->GetStringUTFChars(path, NULL); local
68 int fd = open(pathStr, O_RDONLY);
75 env->ReleaseStringUTFChars(path, pathStr);
H A Dandroid_media_JetPlayer.cpp141 const char *pathStr = env->GetStringUTFChars(path, NULL); local
142 if (pathStr == NULL) { // Out of memory
147 ALOGV("android_media_JetPlayer_openFile(): trying to open %s", pathStr );
148 EAS_RESULT result = lpJet->loadFromFile(pathStr);
149 env->ReleaseStringUTFChars(path, pathStr);
H A Dandroid_app_NativeActivity.cpp609 const char* pathStr = env->GetStringUTFChars(path, NULL); local
612 void* handle = dlopen(pathStr, RTLD_LAZY);
614 env->ReleaseStringUTFChars(path, pathStr);
H A Dandroid_database_SQLiteConnection.cpp111 static jint nativeOpen(JNIEnv* env, jclass clazz, jstring pathStr, jint openFlags, argument
122 const char* pathChars = env->GetStringUTFChars(pathStr, NULL);
124 env->ReleaseStringUTFChars(pathStr, pathChars);
/frameworks/base/media/jni/
H A Dandroid_media_MediaScanner.cpp106 jstring pathStr; local
107 if ((pathStr = mEnv->NewStringUTF(path)) == NULL) {
112 mEnv->CallVoidMethod(mClient, mScanFileMethodID, pathStr, lastModified,
115 mEnv->DeleteLocalRef(pathStr);
209 const char *pathStr = env->GetStringUTFChars(path, NULL); local
210 if (pathStr == NULL) { // Out of memory
215 MediaScanResult result = mp->processDirectory(pathStr, myClient);
217 ALOGE("An error occurred while scanning directory '%s'.", pathStr);
219 env->ReleaseStringUTFChars(path, pathStr);
241 const char *pathStr local
[all...]
H A Dandroid_mtp_MtpServer.cpp134 const char *pathStr = env->GetStringUTFChars(path, NULL); local
135 if (pathStr != NULL) {
138 MtpStorage* storage = new MtpStorage(storageID, pathStr, descriptionStr,
141 env->ReleaseStringUTFChars(path, pathStr);
144 env->ReleaseStringUTFChars(path, pathStr);
H A Dandroid_media_MediaMetadataRetriever.cpp108 String8 pathStr(tmp);
113 if (strncmp("mem://", pathStr.string(), 6) == 0) {
128 pathStr.string(), headersVector.size() > 0 ? &headersVector : NULL),
H A Dandroid_mtp_MtpDatabase.cpp227 jstring pathStr = env->NewStringUTF(path); local
229 pathStr, (jint)format, (jint)parent, (jint)storage,
232 if (pathStr)
233 env->DeleteLocalRef(pathStr);
241 jstring pathStr = env->NewStringUTF(path); local
242 env->CallVoidMethod(mDatabase, method_endSendObject, pathStr,
245 if (pathStr)
246 env->DeleteLocalRef(pathStr);
H A Dandroid_media_MediaPlayer.cpp200 String8 pathStr(tmp);
213 pathStr,

Completed in 116 milliseconds