Home
last modified time | relevance | path

Searched refs:nameStr (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/core/jni/
Dandroid_os_Trace.cpp62 jlong tag, jstring nameStr, jlong value) { in android_os_Trace_nativeTraceCounter() argument
63 withString(env, nameStr, in android_os_Trace_nativeTraceCounter()
68 jlong tag, jstring nameStr) { in android_os_Trace_nativeTraceBegin() argument
69 withString(env, nameStr, [tag](const char* str) { tracing_perfetto::traceBegin(tag, str); }); in android_os_Trace_nativeTraceBegin()
77 jlong tag, jstring nameStr, jint cookie) { in android_os_Trace_nativeAsyncTraceBegin() argument
78 withString(env, nameStr, [tag, cookie](const char* str) { in android_os_Trace_nativeAsyncTraceBegin()
84 jlong tag, jstring nameStr, jint cookie) { in android_os_Trace_nativeAsyncTraceEnd() argument
85 withString(env, nameStr, [tag, cookie](const char* str) { in android_os_Trace_nativeAsyncTraceEnd()
91 jlong tag, jstring trackStr, jstring nameStr, jint cookie) { in android_os_Trace_nativeAsyncTraceForTrackBegin() argument
92 withString(env, trackStr, [env, tag, nameStr, cookie](const char* track) { in android_os_Trace_nativeAsyncTraceForTrackBegin()
[all …]
Dandroid_hardware_UsbDevice.cpp32 const char *nameStr = env->GetStringUTFChars(name, NULL); in android_hardware_UsbDevice_get_device_id() local
33 int id = usb_device_get_unique_id_from_name(nameStr); in android_hardware_UsbDevice_get_device_id()
34 env->ReleaseStringUTFChars(name, nameStr); in android_hardware_UsbDevice_get_device_id()
Dandroid_util_MemoryIntArray.cpp37 const char* nameStr = env->GetStringUTFChars(name, NULL); in android_util_MemoryIntArray_create() local
39 int fd = ashmem_create_region(nameStr, ashmemSize); in android_util_MemoryIntArray_create()
40 env->ReleaseStringUTFChars(name, nameStr); in android_util_MemoryIntArray_create()
Dandroid_database_CursorWindow.cpp91 const char* nameStr = env->GetStringUTFChars(nameObj, NULL); in nativeCreate() local
92 name = nameStr; in nativeCreate()
93 env->ReleaseStringUTFChars(nameObj, nameStr); in nativeCreate()
Dandroid_view_SurfaceControl.cpp478 jstring nameStr, jint w, jint h, jint format, jint flags, jlong parentObject, in nativeCreate() argument
480 ScopedUtfChars name(env, nameStr); in nativeCreate()
/frameworks/base/core/tests/utiltests/jni/
Dandroid_util_MemoryIntArrayTest.cpp37 const char* nameStr = env->GetStringUTFChars(name, NULL); in android_util_MemoryIntArrayTest_createAshmem() local
39 int fd = ashmem_create_region(nameStr, ashmemSize); in android_util_MemoryIntArrayTest_createAshmem()
40 env->ReleaseStringUTFChars(name, nameStr); in android_util_MemoryIntArrayTest_createAshmem()
/frameworks/base/services/core/jni/
Dcom_android_server_power_PowerManagerService.cpp206 static void nativeAcquireSuspendBlocker(JNIEnv *env, jclass /* clazz */, jstring nameStr) { in nativeAcquireSuspendBlocker() argument
207 ScopedUtfChars name(env, nameStr); in nativeAcquireSuspendBlocker()
211 static void nativeReleaseSuspendBlocker(JNIEnv *env, jclass /* clazz */, jstring nameStr) { in nativeReleaseSuspendBlocker() argument
212 ScopedUtfChars name(env, nameStr); in nativeReleaseSuspendBlocker()
Dcom_android_server_tv_TvUinputBridge.cpp363 jstring nameStr, jstring uniqueIdStr, in nativeOpen() argument
365 ScopedUtfChars name(env, nameStr); in nativeOpen()
373 static jlong nativeGamepadOpen(JNIEnv* env, jclass clazz, jstring nameStr, jstring uniqueIdStr) { in nativeGamepadOpen() argument
374 ScopedUtfChars name(env, nameStr); in nativeGamepadOpen()
/frameworks/base/media/jni/
Dandroid_media_MediaCodecList.cpp173 const char *nameStr = env->GetStringUTFChars(name, NULL); in android_media_MediaCodecList_findCodecByName() local
174 if (nameStr == NULL) { in android_media_MediaCodecList_findCodecByName()
182 env->ReleaseStringUTFChars(name, nameStr); in android_media_MediaCodecList_findCodecByName()
186 jint ret = mcl->findCodecByName(nameStr); in android_media_MediaCodecList_findCodecByName()
187 env->ReleaseStringUTFChars(name, nameStr); in android_media_MediaCodecList_findCodecByName()
Dandroid_media_MediaCodec.cpp920 status_t JMediaCodec::getName(JNIEnv *env, jstring *nameStr) const { in getName()
929 *nameStr = env->NewStringUTF(name.c_str()); in getName()
1072 ScopedLocalRef<jstring> nameStr{env, env->NewStringUTF(name.c_str())}; in querySupportedVendorParameters() local
1073 (void)env->CallBooleanMethod(*namesObj, gArrayListInfo.addId, nameStr.get()); in querySupportedVendorParameters()
/frameworks/native/libs/binder/
DIServiceManager.cpp548 std::string nameStr = String8(name).c_str(); in registerForNotifications() local
552 mTheRealServiceManager->registerForNotifications(nameStr, registrationWaiter); in registerForNotifications()
554 ALOGW("Failed to registerForNotifications for %s: %s", nameStr.c_str(), in registerForNotifications()
558 mNameToRegistrationCallback[nameStr].push_back(std::make_pair(cb, registrationWaiter)); in registerForNotifications()
589 std::string nameStr = String8(name).c_str(); in unregisterForNotifications() local
591 auto it = mNameToRegistrationCallback.find(nameStr); in unregisterForNotifications()
596 ALOGE("%s no callback registered for notifications on %s", __FUNCTION__, nameStr.c_str()); in unregisterForNotifications()
/frameworks/base/libs/hwui/jni/
Dandroid_graphics_drawable_VectorDrawable.cpp79 static void setNodeName(JNIEnv* env, jobject, jlong nodePtr, jstring nameStr) { in setNodeName() argument
81 const char* nodeName = env->GetStringUTFChars(nameStr, NULL); in setNodeName()
83 env->ReleaseStringUTFChars(nameStr, nodeName); in setNodeName()
/frameworks/base/tools/aapt/
DResourceTable.cpp2512 String16 nameStr(name, nameLen); in getAttributeEnum() local
2519 if (e->getBag().keyAt(i) == nameStr) { in getAttributeEnum()
2535 String16 nameStr(name, nameLen); in getAttributeFlags() local
2548 String16 nameStr(start, pos-start); in getAttributeFlags() local
2553 if (e->getBag().keyAt(i) == nameStr) { in getAttributeFlags()
DResource.cpp789 const String16& nameStr, ResourceTable* table) { in findEntry() argument
794 return type->getConfigs().valueFor(nameStr); in findEntry()