/libnativehelper/include/nativehelper/ |
ScopedLocalRef.h | 26 class ScopedLocalRef { 28 ScopedLocalRef(JNIEnv* env, T localRef) : mEnv(env), mLocalRef(localRef) { 31 ~ScopedLocalRef() { 59 ScopedLocalRef(const ScopedLocalRef&); 60 void operator=(const ScopedLocalRef&);
|
toStringArray.h | 21 #include "ScopedLocalRef.h" 36 ScopedLocalRef<jstring> s(env, env->NewStringUTF((*getter)(i))); 58 ScopedLocalRef<jstring> s(env, env->NewString(chars, charCount));
|
/packages/apps/Nfc/nci/jni/ |
NfcJniUtil.cpp | 21 #include <ScopedLocalRef.h> 80 ScopedLocalRef<jclass> cls(e, e->FindClass(className)); 88 ScopedLocalRef<jobject> obj(e, e->NewObject(cls.get(), ctor)); 118 ScopedLocalRef<jclass> c(e, e->GetObjectClass(o)); 137 ScopedLocalRef<jclass> c(e, e->GetObjectClass(o));
|
NativeLlcpConnectionlessSocket.cpp | 22 #include <ScopedLocalRef.h> 64 ScopedLocalRef<jclass> c(e, e->GetObjectClass(o)); 176 ScopedLocalRef<jclass> clsLlcpPacket(e, NULL); 234 ScopedLocalRef<jbyteArray> receivedData(e, e->NewByteArray(sConnlessRecvLen)); 264 ScopedLocalRef<jclass> c(e, e->GetObjectClass(o));
|
NfcTag.cpp | 23 #include <ScopedLocalRef.h> 528 ScopedLocalRef<jclass> tag_cls(e, e->GetObjectClass(mNativeData->cached_NfcTag)); 538 ScopedLocalRef<jobject> tag(e, e->NewObject(tag_cls.get(), ctor)); 592 ScopedLocalRef<jintArray> techList(e, e->NewIntArray(mNumTechList)); 593 ScopedLocalRef<jintArray> handleList(e, e->NewIntArray(mNumTechList)); 594 ScopedLocalRef<jintArray> typeList(e, e->NewIntArray(mNumTechList)); 665 ScopedLocalRef<jbyteArray> pollBytes(e, e->NewByteArray(0)); 666 ScopedLocalRef<jclass> byteArrayClass(e, e->GetObjectClass(pollBytes.get())); 667 ScopedLocalRef<jobjectArray> techPollBytes(e, e->NewObjectArray(mNumTechList, byteArrayClass.get(), 0)); 786 ScopedLocalRef<jbyteArray> actBytes(e, e->NewByteArray(0)) [all...] |
RoutingManager.cpp | 23 #include <ScopedLocalRef.h> 204 ScopedLocalRef<jobject> dataJavaArray(e, e->NewByteArray(dataLen));
|
/frameworks/base/core/jni/ |
android_view_InputDevice.cpp | 23 #include <ScopedLocalRef.h> 38 ScopedLocalRef<jstring> nameObj(env, env->NewStringUTF(deviceInfo.getDisplayName().string())); 43 ScopedLocalRef<jstring> descriptorObj(env, 49 ScopedLocalRef<jobject> kcmObj(env, 58 ScopedLocalRef<jobject> inputDeviceObj(env, env->NewObject(gInputDeviceClassInfo.clazz,
|
android_os_SELinux.cpp | 26 #include <ScopedLocalRef.h> 109 ScopedLocalRef<jstring> contextStr(env, NULL); 205 ScopedLocalRef<jstring> securityString(env, NULL); 231 ScopedLocalRef<jstring> securityString(env, NULL); 258 ScopedLocalRef<jstring> securityString(env, NULL); 289 ScopedLocalRef<jstring> obj(env, env->NewStringUTF(list[i]));
|
com_android_internal_net_NetworkStatsFactory.cpp | 27 #include <ScopedLocalRef.h> 102 ScopedLocalRef<jobjectArray> iface(env, env->NewObjectArray(size, gStringClass, NULL)); 122 ScopedLocalRef<jstring> ifaceString(env, env->NewStringUTF(lines[i].iface)); 149 ScopedLocalRef<jclass> localClass(env, env->FindClass(name));
|
/packages/apps/Nfc/nxp/jni/ |
com_android_nfc.cpp | 23 #include <ScopedLocalRef.h> 132 ScopedLocalRef<jclass> cls(e, e->FindClass(clsname)); 139 ScopedLocalRef<jobject> obj(e, e->NewObject(cls.get(), ctor)); 158 ScopedLocalRef<jclass> c(e, e->GetObjectClass(o)); 232 ScopedLocalRef<jclass> c(e, e->GetObjectClass(o)); 239 ScopedLocalRef<jclass> c(e, e->GetObjectClass(o)); 247 ScopedLocalRef<jclass> c(e, e->GetObjectClass(o)); 278 ScopedLocalRef<jclass> c(e, e->GetObjectClass(o)); 280 ScopedLocalRef<jintArray> libNfcTypes(e, (jintArray) e->GetObjectField(o, f)); 295 ScopedLocalRef<jclass> c(e, e->GetObjectClass(o)) [all...] |
com_android_nfc.h | 25 #include <ScopedLocalRef.h> 246 ScopedLocalRef<jintArray>* techList, 247 ScopedLocalRef<jintArray>* handleList, 248 ScopedLocalRef<jintArray>* typeList);
|
com_android_nfc_NativeNfcTag.cpp | 19 #include <ScopedLocalRef.h> 297 ScopedLocalRef<jclass> tag_cls(e, e->GetObjectClass(tag)); 300 ScopedLocalRef<jobjectArray> existingPollBytes(e, (jobjectArray) e->GetObjectField(tag, f)); 306 ScopedLocalRef<jintArray> techList(e, (jintArray) e->GetObjectField(tag, techListField)); 310 ScopedLocalRef<jbyteArray> pollBytes(e, e->NewByteArray(0)); 311 ScopedLocalRef<jclass> byteArrayClass(e, e->GetObjectClass(pollBytes.get())); 312 ScopedLocalRef<jobjectArray> techPollBytes(e, e->NewObjectArray(techListLength, byteArrayClass.get(), NULL)); 378 ScopedLocalRef<jclass> tag_cls(e, e->GetObjectClass(tag)); 381 ScopedLocalRef<jobjectArray> existingActBytes(e, (jobjectArray) e->GetObjectField(tag, f)); 387 ScopedLocalRef<jintArray> techList(e, (jintArray) e->GetObjectField(tag, techListField)) [all...] |
com_android_nfc_NativeLlcpServiceSocket.cpp | 19 #include <ScopedLocalRef.h> 77 ScopedLocalRef<jclass> clsNativeLlcpSocket(e, NULL);
|
/libcore/luni/src/main/native/ |
ExecStrings.cpp | 24 #include "ScopedLocalRef.h" 36 ScopedLocalRef<jstring> java_string(env_, reinterpret_cast<jstring>(env_->GetObjectArrayElement(java_array_, i))); 56 ScopedLocalRef<jstring> java_string(env_, reinterpret_cast<jstring>(env_->GetObjectArrayElement(java_array_, i)));
|
libcore_icu_TimeZoneNames.cpp | 24 #include "ScopedLocalRef.h" 53 ScopedLocalRef<jstring> javaString(env, env->NewString(s.getBuffer(), s.length())); 74 ScopedLocalRef<jobjectArray> java_row(env, 76 ScopedLocalRef<jstring> java_zone_id(env,
|
IcuUtilities.cpp | 23 #include "ScopedLocalRef.h" 51 ScopedLocalRef<jstring> javaString(env, env->NewString(string->getBuffer(), string->length()));
|
org_apache_harmony_xml_ExpatParser.cpp | 23 #include "ScopedLocalRef.h" 277 ScopedLocalRef<jstring> newString(env, env->NewStringUTF(bytes)); 283 ScopedLocalRef<jstring> interned(env, 832 ScopedLocalRef<jstring> javaInstructionData(env, env->NewStringUTF(instructionData)); 879 ScopedLocalRef<jstring> javaSystemId(env, env->NewStringUTF(systemId)); 883 ScopedLocalRef<jstring> javaPublicId(env, env->NewStringUTF(publicId)); 887 ScopedLocalRef<jstring> javaContext(env, env->NewStringUTF(context)); 920 ScopedLocalRef<jstring> javaName(env, env->NewStringUTF(name)); 922 ScopedLocalRef<jstring> javaPublicId(env, env->NewStringUTF(publicId)); 924 ScopedLocalRef<jstring> javaSystemId(env, env->NewStringUTF(systemId)) [all...] |
NetworkUtilities.cpp | 22 #include "ScopedLocalRef.h" 79 ScopedLocalRef<jbyteArray> byteArray(env, env->NewByteArray(addressLength)); 129 ScopedLocalRef<jbyteArray> addressBytes(env, reinterpret_cast<jbyteArray>(env->GetObjectField(inetAddress, bytesFid)));
|
/frameworks/base/media/jni/ |
android_media_Utils.cpp | 27 #include <nativehelper/ScopedLocalRef.h> 81 ScopedLocalRef<jclass> clazz(env, env->FindClass("java/lang/Integer")); 92 ScopedLocalRef<jclass> clazz(env, env->FindClass("java/lang/Long")); 102 ScopedLocalRef<jclass> clazz(env, env->FindClass("java/lang/Float")); 117 ScopedLocalRef<jclass> clazz(env, env->FindClass("java/nio/ByteBuffer")); 148 ScopedLocalRef<jclass> hashMapClazz( 285 ScopedLocalRef<jclass> stringClass(env, env->FindClass("java/lang/String")); 287 ScopedLocalRef<jclass> integerClass(env, env->FindClass("java/lang/Integer")); 289 ScopedLocalRef<jclass> longClass(env, env->FindClass("java/lang/Long")); 291 ScopedLocalRef<jclass> floatClass(env, env->FindClass("java/lang/Float")) [all...] |
/art/dalvikvm/ |
dalvikvm.cc | 25 #include "ScopedLocalRef.h" 33 ScopedLocalRef<jobject> reflected(env, env->ToReflectedMethod(c, method_id, JNI_FALSE)); 62 ScopedLocalRef<jobjectArray> args(env, toStringArray(env, argv + 1)); 74 ScopedLocalRef<jclass> klass(env, env->FindClass(class_name.c_str()));
|
/art/runtime/ |
well_known_classes.cc | 23 #include "ScopedLocalRef.h" 100 ScopedLocalRef<jclass> c(env, env->FindClass(jni_class_name)); 124 ScopedLocalRef<jclass> boxed_class(env, env->FindClass(boxed_name)); 162 ScopedLocalRef<jclass> java_lang_ref_FinalizerReference(env, env->FindClass("java/lang/ref/FinalizerReference")); 164 ScopedLocalRef<jclass> java_lang_ref_ReferenceQueue(env, env->FindClass("java/lang/ref/ReferenceQueue")); 207 ScopedLocalRef<jclass> java_lang_Runtime(env, env->FindClass("java/lang/Runtime"));
|
/external/chromium_org/third_party/libjingle/source/talk/app/webrtc/java/jni/ |
peerconnection_jni.cc | 382 class ScopedLocalRef { 384 ScopedLocalRef(JNIEnv* jni, T obj) 386 ~ScopedLocalRef() { 421 ScopedLocalRef<jobjectArray> state_values( 508 ScopedLocalRef<jstring> j_mid( 510 ScopedLocalRef<jstring> j_sdp(jni(), JavaStringFromStdString(jni(), sdp)); 511 ScopedLocalRef<jobject> j_candidate(jni(), jni()->NewObject( 531 ScopedLocalRef<jobject> new_state_enum(jni(), JavaEnumFromIndex( 542 ScopedLocalRef<jobject> new_state_enum(jni(), JavaEnumFromIndex( 553 ScopedLocalRef<jobject> new_state_enum(jni(), JavaEnumFromIndex [all...] |
/frameworks/base/drm/jni/ |
android_drm_DrmManagerClient.cpp | 23 #include <ScopedLocalRef.h> 273 ScopedLocalRef<jbyteArray> dataArray(env, env->NewByteArray(strlen(value))); 274 ScopedLocalRef<jstring> keyString(env, env->NewStringUTF(key.string())); 281 ScopedLocalRef<jstring> keyString(env, env->NewStringUTF(key.string())); 282 ScopedLocalRef<jstring> valueString(env, env->NewStringUTF(value.string())); 321 ScopedLocalRef<jstring> keyString(env, env->NewStringUTF(key.string())); 322 ScopedLocalRef<jstring> valueString(env, env->NewStringUTF(value.string())); 448 ScopedLocalRef<jstring> key(env, 450 ScopedLocalRef<jobject> valueObject(env, 452 ScopedLocalRef<jstring> valString(env, NULL) [all...] |
/art/runtime/native/ |
java_lang_Class.cc | 27 #include "ScopedLocalRef.h" 67 ScopedLocalRef<jthrowable> cause(env, env->ExceptionOccurred());
|
/art/runtime/interpreter/ |
interpreter.cc | 39 #include "ScopedLocalRef.h" 237 ScopedLocalRef<jclass> klass(soa.Env(), 248 ScopedLocalRef<jclass> klass(soa.Env(), 255 ScopedLocalRef<jclass> klass(soa.Env(), 262 ScopedLocalRef<jclass> klass(soa.Env(), 269 ScopedLocalRef<jclass> klass(soa.Env(), 276 ScopedLocalRef<jclass> klass(soa.Env(), 278 ScopedLocalRef<jobject> arg0(soa.Env(), 289 ScopedLocalRef<jclass> klass(soa.Env(), 296 ScopedLocalRef<jclass> klass(soa.Env() [all...] |