/frameworks/base/media/jni/ |
D | android_media_MediaScanner.cpp | 152 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 …]
|
D | android_mtp_MtpServer.cpp | 134 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()
|
D | android_media_MediaMetadataRetriever.cpp | 108 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()
|
D | android_mtp_MtpDatabase.cpp | 227 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()
|
D | android_media_MediaPlayer.cpp | 200 String8 pathStr(tmp); in android_media_MediaPlayer_setDataSourceAndHeaders() local 213 pathStr, in android_media_MediaPlayer_setDataSourceAndHeaders()
|
/frameworks/base/services/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_FileUtils.cpp | 64 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()
|
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_os_SELinux.cpp | 158 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()
|
D | android_app_NativeActivity.cpp | 252 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()
|
D | android_database_SQLiteConnection.cpp | 111 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()
|