Home
last modified time | relevance | path

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

/frameworks/base/core/jni/
Dandroid_net_NetUtils.cpp86 const char *nameStr = env->GetStringUTFChars(ifname, NULL); in android_net_utils_resetConnections() local
89 env, clazz, nameStr, mask); in android_net_utils_resetConnections()
91 result = ::ifc_reset_connections(nameStr, mask); in android_net_utils_resetConnections()
92 env->ReleaseStringUTFChars(ifname, nameStr); in android_net_utils_resetConnections()
114 const char *nameStr = env->GetStringUTFChars(ifname, NULL); in android_net_utils_runDhcpCommon() local
115 if (nameStr == NULL) return (jboolean)false; in android_net_utils_runDhcpCommon()
118 result = ::dhcp_do_request_renew(nameStr, ipaddr, gateway, &prefixLength, in android_net_utils_runDhcpCommon()
121 result = ::dhcp_do_request(nameStr, ipaddr, gateway, &prefixLength, in android_net_utils_runDhcpCommon()
125 ALOGD("dhcp_do_request failed : %s (%s)", nameStr, renew ? "renew" : "new"); in android_net_utils_runDhcpCommon()
128 env->ReleaseStringUTFChars(ifname, nameStr); in android_net_utils_runDhcpCommon()
[all …]
Dandroid_os_Trace.cpp48 jlong tag, jstring nameStr, jint value) { in android_os_Trace_nativeTraceCounter() argument
49 ScopedUtfChars name(env, nameStr); in android_os_Trace_nativeTraceCounter()
56 jlong tag, jstring nameStr) { in android_os_Trace_nativeTraceBegin() argument
58 ScopedStringChars jchars(env, nameStr); in android_os_Trace_nativeTraceBegin()
74 jlong tag, jstring nameStr, jint cookie) { in android_os_Trace_nativeAsyncTraceBegin() argument
76 ScopedStringChars jchars(env, nameStr); in android_os_Trace_nativeAsyncTraceBegin()
85 jlong tag, jstring nameStr, jint cookie) { in android_os_Trace_nativeAsyncTraceEnd() argument
87 ScopedStringChars jchars(env, nameStr); in android_os_Trace_nativeAsyncTraceEnd()
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_os_SELinux.cpp306 static jboolean getBooleanValue(JNIEnv *env, jobject, jstring nameStr) { in getBooleanValue() argument
311 if (nameStr == NULL) { in getBooleanValue()
315 ScopedUtfChars name(env, nameStr); in getBooleanValue()
331 static jboolean setBooleanValue(JNIEnv *env, jobject, jstring nameStr, jboolean value) { in setBooleanValue() argument
336 if (nameStr == NULL) { in setBooleanValue()
340 ScopedUtfChars name(env, nameStr); in setBooleanValue()
Dandroid_database_CursorWindow.cpp64 const char* nameStr = env->GetStringUTFChars(nameObj, NULL); in nativeCreate() local
65 name.setTo(nameStr); in nativeCreate()
66 env->ReleaseStringUTFChars(nameObj, nameStr); in nativeCreate()
Dandroid_database_SQLiteConnection.cpp250 jstring nameStr = jstring(env->GetObjectField( in nativeRegisterCustomFunction() local
256 const char* name = env->GetStringUTFChars(nameStr, NULL); in nativeRegisterCustomFunction()
260 env->ReleaseStringUTFChars(nameStr, name); in nativeRegisterCustomFunction()
Dandroid_view_SurfaceControl.cpp94 jstring nameStr, jint w, jint h, jint format, jint flags) { in nativeCreate() argument
95 ScopedUtfChars name(env, nameStr); in nativeCreate()
/frameworks/base/services/core/jni/
Dcom_android_server_power_PowerManagerService.cpp115 static void nativeAcquireSuspendBlocker(JNIEnv *env, jclass clazz, jstring nameStr) { in nativeAcquireSuspendBlocker() argument
116 ScopedUtfChars name(env, nameStr); in nativeAcquireSuspendBlocker()
120 static void nativeReleaseSuspendBlocker(JNIEnv *env, jclass clazz, jstring nameStr) { in nativeReleaseSuspendBlocker() argument
121 ScopedUtfChars name(env, nameStr); in nativeReleaseSuspendBlocker()
Dcom_android_server_input_InputApplicationHandle.cpp67 const char* nameStr = env->GetStringUTFChars(nameObj, NULL); in updateInfo() local
68 mInfo->name.setTo(nameStr); in updateInfo()
69 env->ReleaseStringUTFChars(nameObj, nameStr); in updateInfo()
Dcom_android_server_input_InputWindowHandle.cpp105 const char* nameStr = env->GetStringUTFChars(nameObj, NULL); in updateInfo() local
106 mInfo->name.setTo(nameStr); in updateInfo()
107 env->ReleaseStringUTFChars(nameObj, nameStr); in updateInfo()
/frameworks/base/media/jni/
Dandroid_media_MediaCodecList.cpp79 const char *nameStr = env->GetStringUTFChars(name, NULL); in android_media_MediaCodecList_findCodecByName() local
80 if (nameStr == NULL) { in android_media_MediaCodecList_findCodecByName()
88 env->ReleaseStringUTFChars(name, nameStr); in android_media_MediaCodecList_findCodecByName()
92 jint ret = mcl->findCodecByName(nameStr); in android_media_MediaCodecList_findCodecByName()
93 env->ReleaseStringUTFChars(name, nameStr); in android_media_MediaCodecList_findCodecByName()
Dandroid_media_MediaScanner.cpp170 jstring nameStr, valueStr; in handleStringTag() local
171 if ((nameStr = mEnv->NewStringUTF(name)) == NULL) { in handleStringTag()
191 mEnv->DeleteLocalRef(nameStr); in handleStringTag()
197 mClient, mHandleStringTagMethodID, nameStr, valueStr); in handleStringTag()
199 mEnv->DeleteLocalRef(nameStr); in handleStringTag()
Dandroid_media_MediaCodec.cpp541 status_t JMediaCodec::getName(JNIEnv *env, jstring *nameStr) const { in getName()
550 *nameStr = env->NewStringUTF(name.c_str()); in getName()
/frameworks/base/tools/aapt/
DResourceTable.cpp2413 String16 nameStr(name, nameLen); in getAttributeEnum() local
2420 if (e->getBag().keyAt(i) == nameStr) { in getAttributeEnum()
2436 String16 nameStr(name, nameLen); in getAttributeFlags() local
2449 String16 nameStr(start, pos-start); in getAttributeFlags() local
2454 if (e->getBag().keyAt(i) == nameStr) { in getAttributeFlags()