Home
last modified time | relevance | path

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

/frameworks/base/media/jni/
Dandroid_media_MediaScanner.cpp152 jstring pathStr; in scanFile() local
153 if ((pathStr = mEnv->NewStringUTF(path)) == NULL) { in scanFile()
158 mEnv->CallVoidMethod(mClient, mScanFileMethodID, pathStr, lastModified, in scanFile()
161 mEnv->DeleteLocalRef(pathStr); in scanFile()
252 const char *pathStr = env->GetStringUTFChars(path, NULL); in android_media_MediaScanner_processDirectory() local
253 if (pathStr == NULL) { // Out of memory in android_media_MediaScanner_processDirectory()
258 MediaScanResult result = mp->processDirectory(pathStr, myClient); in android_media_MediaScanner_processDirectory()
260 ALOGE("An error occurred while scanning directory '%s'.", pathStr); in android_media_MediaScanner_processDirectory()
262 env->ReleaseStringUTFChars(path, pathStr); in android_media_MediaScanner_processDirectory()
284 const char *pathStr = env->GetStringUTFChars(path, NULL); in android_media_MediaScanner_processFile() local
[all …]
Dandroid_mtp_MtpServer.cpp134 const char *pathStr = env->GetStringUTFChars(path, NULL); in android_mtp_MtpServer_add_storage() local
135 if (pathStr != NULL) { in android_mtp_MtpServer_add_storage()
138 MtpStorage* storage = new MtpStorage(storageID, pathStr, descriptionStr, in android_mtp_MtpServer_add_storage()
141 env->ReleaseStringUTFChars(path, pathStr); in android_mtp_MtpServer_add_storage()
144 env->ReleaseStringUTFChars(path, pathStr); in android_mtp_MtpServer_add_storage()
Dandroid_media_MediaMetadataRetriever.cpp108 String8 pathStr(tmp); in android_media_MediaMetadataRetriever_setDataSourceAndHeaders() local
113 if (strncmp("mem://", pathStr.string(), 6) == 0) { in android_media_MediaMetadataRetriever_setDataSourceAndHeaders()
128 pathStr.string(), headersVector.size() > 0 ? &headersVector : NULL), in android_media_MediaMetadataRetriever_setDataSourceAndHeaders()
Dandroid_mtp_MtpDatabase.cpp227 jstring pathStr = env->NewStringUTF(path); in beginSendObject() local
229 pathStr, (jint)format, (jint)parent, (jint)storage, in beginSendObject()
232 if (pathStr) in beginSendObject()
233 env->DeleteLocalRef(pathStr); in beginSendObject()
241 jstring pathStr = env->NewStringUTF(path); in endSendObject() local
242 env->CallVoidMethod(mDatabase, method_endSendObject, pathStr, in endSendObject()
245 if (pathStr) in endSendObject()
246 env->DeleteLocalRef(pathStr); in endSendObject()
Dandroid_media_MediaPlayer.cpp200 String8 pathStr(tmp); in android_media_MediaPlayer_setDataSourceAndHeaders() local
213 pathStr, in android_media_MediaPlayer_setDataSourceAndHeaders()
/frameworks/base/services/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_server_Watchdog.cpp55 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()
Dandroid_os_FileUtils.cpp64 const char *pathStr = env->GetStringUTFChars(path, NULL); in android_os_FileUtils_getFatVolumeId() local
68 int fd = open(pathStr, O_RDONLY); in android_os_FileUtils_getFatVolumeId()
75 env->ReleaseStringUTFChars(path, pathStr); in android_os_FileUtils_getFatVolumeId()
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_os_SELinux.cpp158 static jboolean setFileCon(JNIEnv *env, jobject, jstring pathStr, jstring contextStr) { in setFileCon() argument
163 ScopedUtfChars path(env, pathStr); in setFileCon()
191 static jstring getFileCon(JNIEnv *env, jobject, jstring pathStr) { in getFileCon() argument
196 ScopedUtfChars path(env, pathStr); in getFileCon()
Dandroid_app_NativeActivity.cpp252 const char* pathStr = env->GetStringUTFChars(path, NULL); in loadNativeCode_native() local
255 void* handle = dlopen(pathStr, RTLD_LAZY); in loadNativeCode_native()
257 env->ReleaseStringUTFChars(path, pathStr); in loadNativeCode_native()
Dandroid_database_SQLiteConnection.cpp111 static jint nativeOpen(JNIEnv* env, jclass clazz, jstring pathStr, jint openFlags, in nativeOpen() argument
122 const char* pathChars = env->GetStringUTFChars(pathStr, NULL); in nativeOpen()
124 env->ReleaseStringUTFChars(pathStr, pathChars); in nativeOpen()