Home
last modified time | relevance | path

Searched refs:soa (Results 1 – 25 of 238) sorted by relevance

12345678910

/art/benchmark/jobject-benchmark/
Djobject_benchmark.cc28 ScopedObjectAccess soa(env); in Java_JObjectBenchmark_timeAddRemoveLocal() local
29 ObjPtr<mirror::Object> obj = soa.Decode<mirror::Object>(jobj); in Java_JObjectBenchmark_timeAddRemoveLocal()
32 jobject ref = soa.Env()->AddLocalReference<jobject>(obj); in Java_JObjectBenchmark_timeAddRemoveLocal()
33 soa.Env()->DeleteLocalRef(ref); in Java_JObjectBenchmark_timeAddRemoveLocal()
39 ScopedObjectAccess soa(env); in Java_JObjectBenchmark_timeDecodeLocal() local
40 ObjPtr<mirror::Object> obj = soa.Decode<mirror::Object>(jobj); in Java_JObjectBenchmark_timeDecodeLocal()
42 jobject ref = soa.Env()->AddLocalReference<jobject>(obj); in Java_JObjectBenchmark_timeDecodeLocal()
44 CHECK_EQ(soa.Decode<mirror::Object>(ref), obj); in Java_JObjectBenchmark_timeDecodeLocal()
46 soa.Env()->DeleteLocalRef(ref); in Java_JObjectBenchmark_timeDecodeLocal()
51 ScopedObjectAccess soa(env); in Java_JObjectBenchmark_timeAddRemoveGlobal() local
[all …]
/art/runtime/native/
Djava_lang_String.cc37 ScopedFastNativeObjectAccess soa(env); in String_charAt() local
38 return soa.Decode<mirror::String>(java_this)->CharAt(index); in String_charAt()
42 ScopedFastNativeObjectAccess soa(env); in String_compareTo() local
47 return soa.Decode<mirror::String>(java_this)->CompareTo(soa.Decode<mirror::String>(java_rhs)); in String_compareTo()
52 ScopedFastNativeObjectAccess soa(env); in String_concat() local
57 StackHandleScope<2> hs(soa.Self()); in String_concat()
58 Handle<mirror::String> string_this(hs.NewHandle(soa.Decode<mirror::String>(java_this))); in String_concat()
59 Handle<mirror::String> string_arg(hs.NewHandle(soa.Decode<mirror::String>(java_string_arg))); in String_concat()
63 ObjPtr<mirror::String> result = mirror::String::DoConcat(soa.Self(), string_this, string_arg); in String_concat()
64 return soa.AddLocalReference<jstring>(result); in String_concat()
[all …]
Djava_lang_Class.cc78 const ScopedFastNativeObjectAccess& soa, jobject java_class) in DecodeClass() argument
80 ObjPtr<mirror::Class> c = soa.Decode<mirror::Class>(java_class); in DecodeClass()
92 ScopedFastNativeObjectAccess soa(env); in Class_classForName() local
93 StackHandleScope<3> hs(soa.Self()); in Class_classForName()
94 Handle<mirror::String> mirror_name = hs.NewHandle(soa.Decode<mirror::String>(javaName)); in Class_classForName()
96 soa.Self()->ThrowNewWrappedException("Ljava/lang/NullPointerException;", /*msg=*/ nullptr); in Class_classForName()
105 soa.Self()->ThrowNewExceptionF("Ljava/lang/ClassNotFoundException;", in Class_classForName()
112 hs.NewHandle(soa.Decode<mirror::ClassLoader>(javaLoader))); in Class_classForName()
115 hs.NewHandle(class_linker->FindClass(soa.Self(), descriptor.c_str(), class_loader))); in Class_classForName()
117 StackHandleScope<2> hs2(soa.Self()); in Class_classForName()
[all …]
Djava_lang_Object.cc30 ScopedFastNativeObjectAccess soa(env); in Object_internalClone() local
31 StackHandleScope<1u> hs(soa.Self()); in Object_internalClone()
32 Handle<mirror::Object> o = hs.NewHandle(soa.Decode<mirror::Object>(java_this)); in Object_internalClone()
33 return soa.AddLocalReference<jobject>(mirror::Class::Clone(o, soa.Self())); in Object_internalClone()
37 ScopedFastNativeObjectAccess soa(env); in Object_notify() local
38 soa.Decode<mirror::Object>(java_this)->Notify(soa.Self()); in Object_notify()
42 ScopedFastNativeObjectAccess soa(env); in Object_notifyAll() local
43 soa.Decode<mirror::Object>(java_this)->NotifyAll(soa.Self()); in Object_notifyAll()
47 ScopedFastNativeObjectAccess soa(env); in Object_waitJI() local
48 soa.Decode<mirror::Object>(java_this)->Wait(soa.Self(), ms, ns); in Object_waitJI()
[all …]
Ddalvik_system_VMStack.cc40 static ResultT GetThreadStack(const ScopedFastNativeObjectAccess& soa, in GetThreadStack() argument
45 ObjPtr<mirror::Object> decoded_peer = soa.Decode<mirror::Object>(peer); in GetThreadStack()
46 if (decoded_peer == soa.Self()->GetPeer()) { in GetThreadStack()
47 trace = fn(soa.Self(), soa); in GetThreadStack()
58 ScopedThreadSuspension sts(soa.Self(), ThreadState::kNative); in GetThreadStack()
67 ScopedObjectAccess soa2(soa.Self()); in GetThreadStack()
68 trace = fn(thread, soa); in GetThreadStack()
83 ScopedFastNativeObjectAccess soa(env); in VMStack_fillStackTraceElements() local
88 jobject trace = GetThreadStack(soa, javaThread, fn); in VMStack_fillStackTraceElements()
93 Thread::InternalStackTraceToStackTraceElementArray(soa, trace, javaSteArray, &depth); in VMStack_fillStackTraceElements()
[all …]
Djava_lang_reflect_Constructor.cc40 ScopedFastNativeObjectAccess soa(env); in Constructor_getExceptionTypes() local
41 ArtMethod* method = ArtMethod::FromReflectedMethod(soa, javaMethod) in Constructor_getExceptionTypes()
50 mirror::ObjectArray<mirror::Class>::Alloc(soa.Self(), class_array_class, 0); in Constructor_getExceptionTypes()
51 return soa.AddLocalReference<jobjectArray>(empty_array); in Constructor_getExceptionTypes()
53 return soa.AddLocalReference<jobjectArray>(result_array); in Constructor_getExceptionTypes()
63 ScopedFastNativeObjectAccess soa(env); in Constructor_newInstance0() local
64 ObjPtr<mirror::Constructor> m = soa.Decode<mirror::Constructor>(javaMethod); in Constructor_newInstance0()
66 StackHandleScope<1> hs(soa.Self()); in Constructor_newInstance0()
69 soa.Self()->ThrowNewExceptionF("Ljava/lang/InstantiationException;", "Can't instantiate %s %s", in Constructor_newInstance0()
78 ObjPtr<mirror::Class> caller = GetCallingClass(soa.Self(), 2); in Constructor_newInstance0()
[all …]
Djava_lang_reflect_Executable.cc43 ScopedFastNativeObjectAccess soa(env); in Executable_getDeclaredAnnotationsNative() local
44 ArtMethod* method = ArtMethod::FromReflectedMethod(soa, javaMethod); in Executable_getDeclaredAnnotationsNative()
50 mirror::ObjectArray<mirror::Object>::Alloc(soa.Self(), annotation_array_class, 0); in Executable_getDeclaredAnnotationsNative()
51 return soa.AddLocalReference<jobjectArray>(empty_array); in Executable_getDeclaredAnnotationsNative()
53 return soa.AddLocalReference<jobjectArray>(annotations::GetAnnotationsForMethod(method)); in Executable_getDeclaredAnnotationsNative()
59 ScopedFastNativeObjectAccess soa(env); in Executable_getAnnotationNative() local
60 StackHandleScope<1> hs(soa.Self()); in Executable_getAnnotationNative()
61 ArtMethod* method = ArtMethod::FromReflectedMethod(soa, javaMethod); in Executable_getAnnotationNative()
65 Handle<mirror::Class> klass(hs.NewHandle(soa.Decode<mirror::Class>(annotationType))); in Executable_getAnnotationNative()
66 return soa.AddLocalReference<jobject>(annotations::GetAnnotationForMethod(method, klass)); in Executable_getAnnotationNative()
[all …]
Djava_lang_StringFactory.cc35 ScopedFastNativeObjectAccess soa(env); in StringFactory_newStringFromBytes() local
40 StackHandleScope<1> hs(soa.Self()); in StringFactory_newStringFromBytes()
41 Handle<mirror::ByteArray> byte_array(hs.NewHandle(soa.Decode<mirror::ByteArray>(java_data))); in StringFactory_newStringFromBytes()
44 soa.Self()->ThrowNewExceptionF("Ljava/lang/StringIndexOutOfBoundsException;", in StringFactory_newStringFromBytes()
50 ObjPtr<mirror::String> result = mirror::String::AllocFromByteArray(soa.Self(), in StringFactory_newStringFromBytes()
56 return soa.AddLocalReference<jstring>(result); in StringFactory_newStringFromBytes()
61 ScopedFastNativeObjectAccess soa(env); in StringFactory_newStringFromUtf16Bytes() local
66 StackHandleScope<1> hs(soa.Self()); in StringFactory_newStringFromUtf16Bytes()
67 Handle<mirror::ByteArray> byte_array(hs.NewHandle(soa.Decode<mirror::ByteArray>(java_data))); in StringFactory_newStringFromUtf16Bytes()
73 soa.Self()->ThrowNewExceptionF("Ljava/lang/StringIndexOutOfBoundsException;", in StringFactory_newStringFromUtf16Bytes()
[all …]
Djdk_internal_misc_Unsafe.cc57 ScopedFastNativeObjectAccess soa(env); in Unsafe_compareAndSetInt() local
58 ObjPtr<mirror::Object> obj = soa.Decode<mirror::Object>(javaObj); in Unsafe_compareAndSetInt()
78 ScopedFastNativeObjectAccess soa(env); in Unsafe_compareAndSetLong() local
79 ObjPtr<mirror::Object> obj = soa.Decode<mirror::Object>(javaObj); in Unsafe_compareAndSetLong()
101 ScopedFastNativeObjectAccess soa(env); in Unsafe_compareAndSetReference() local
102 ObjPtr<mirror::Object> obj = soa.Decode<mirror::Object>(javaObj); in Unsafe_compareAndSetReference()
103 ObjPtr<mirror::Object> expectedValue = soa.Decode<mirror::Object>(javaExpectedValue); in Unsafe_compareAndSetReference()
104 ObjPtr<mirror::Object> newValue = soa.Decode<mirror::Object>(javaNewValue); in Unsafe_compareAndSetReference()
136 ScopedFastNativeObjectAccess soa(env); in Unsafe_getInt() local
137 ObjPtr<mirror::Object> obj = soa.Decode<mirror::Object>(javaObj); in Unsafe_getInt()
[all …]
Djava_lang_Thread.cc35 ScopedFastNativeObjectAccess soa(env); in Thread_currentThread() local
36 return soa.AddLocalReference<jobject>(soa.Self()->GetPeer()); in Thread_currentThread()
44 ScopedFastNativeObjectAccess soa(env); in Thread_isInterrupted() local
45 MutexLock mu(soa.Self(), *Locks::thread_list_lock_); in Thread_isInterrupted()
46 Thread* thread = Thread::FromManagedThread(soa, java_thread); in Thread_isInterrupted()
73 ScopedObjectAccess soa(env); in Thread_nativeGetStatus() local
76 MutexLock mu(soa.Self(), *Locks::thread_list_lock_); in Thread_nativeGetStatus()
77 Thread* thread = Thread::FromManagedThread(soa, java_thread); in Thread_nativeGetStatus()
118 ScopedObjectAccess soa(env); in Thread_holdsLock() local
119 ObjPtr<mirror::Object> object = soa.Decode<mirror::Object>(java_object); in Thread_holdsLock()
[all …]
Djava_lang_reflect_Method.cc38 ScopedFastNativeObjectAccess soa(env); in Method_getDefaultValue() local
39 ArtMethod* method = ArtMethod::FromReflectedMethod(soa, javaMethod); in Method_getDefaultValue()
43 return soa.AddLocalReference<jobject>(annotations::GetAnnotationDefaultValue(method)); in Method_getDefaultValue()
47 ScopedFastNativeObjectAccess soa(env); in Method_getExceptionTypes() local
48 ArtMethod* method = ArtMethod::FromReflectedMethod(soa, javaMethod); in Method_getExceptionTypes()
61 StackHandleScope<1u> hs(soa.Self()); in Method_getExceptionTypes()
64 return soa.AddLocalReference<jobjectArray>( in Method_getExceptionTypes()
65 mirror::ObjectArray<mirror::Class>::Clone(declared_exceptions, soa.Self())); in Method_getExceptionTypes()
74 mirror::ObjectArray<mirror::Class>::Alloc(soa.Self(), class_array_class, 0); in Method_getExceptionTypes()
75 return soa.AddLocalReference<jobjectArray>(empty_array); in Method_getExceptionTypes()
[all …]
Djava_lang_reflect_Field.cc78 ALWAYS_INLINE inline static bool GetFieldValue(const ScopedFastNativeObjectAccess& soa, in GetFieldValue() argument
119 soa.Self(), o->AsReference())); in GetFieldValue()
138 ALWAYS_INLINE inline static bool CheckReceiver(const ScopedFastNativeObjectAccess& soa, in CheckReceiver() argument
143 soa.Self()->AssertThreadSuspensionIsAllowable(); in CheckReceiver()
147 Thread* self = soa.Self(); in CheckReceiver()
161 *class_or_rcvr = soa.Decode<mirror::Object>(j_rcvr); in CheckReceiver()
163 DCHECK(soa.Self()->IsExceptionPending()); in CheckReceiver()
170 ScopedFastNativeObjectAccess soa(env); in Field_get() local
171 ObjPtr<mirror::Field> f = soa.Decode<mirror::Field>(javaField); in Field_get()
173 if (!CheckReceiver(soa, javaObj, &f, &o)) { in Field_get()
[all …]
Djava_lang_reflect_Array.cc36 ScopedFastNativeObjectAccess soa(env); in Array_createMultiArray() local
38 StackHandleScope<2> hs(soa.Self()); in Array_createMultiArray()
39 Handle<mirror::Class> element_class(hs.NewHandle(soa.Decode<mirror::Class>(javaElementClass))); in Array_createMultiArray()
42 ObjPtr<mirror::Object> dimensions_obj = soa.Decode<mirror::Object>(javaDimArray); in Array_createMultiArray()
49 mirror::Array::CreateMultiArray(soa.Self(), element_class, dimensions_array); in Array_createMultiArray()
50 return soa.AddLocalReference<jobject>(new_array); in Array_createMultiArray()
54 ScopedFastNativeObjectAccess soa(env); in Array_createObjectArray() local
63 class_linker->FindArrayClass(soa.Self(), soa.Decode<mirror::Class>(javaElementClass)); in Array_createObjectArray()
65 CHECK(soa.Self()->IsExceptionPending()); in Array_createObjectArray()
70 soa.Self(), in Array_createObjectArray()
[all …]
Dsun_misc_Unsafe.cc43 ScopedFastNativeObjectAccess soa(env); in Unsafe_compareAndSwapInt() local
44 ObjPtr<mirror::Object> obj = soa.Decode<mirror::Object>(javaObj); in Unsafe_compareAndSwapInt()
56 ScopedFastNativeObjectAccess soa(env); in Unsafe_compareAndSwapLong() local
57 ObjPtr<mirror::Object> obj = soa.Decode<mirror::Object>(javaObj); in Unsafe_compareAndSwapLong()
67 ScopedFastNativeObjectAccess soa(env); in Unsafe_compareAndSwapObject() local
68 ObjPtr<mirror::Object> obj = soa.Decode<mirror::Object>(javaObj); in Unsafe_compareAndSwapObject()
69 ObjPtr<mirror::Object> expectedValue = soa.Decode<mirror::Object>(javaExpectedValue); in Unsafe_compareAndSwapObject()
70 ObjPtr<mirror::Object> newValue = soa.Decode<mirror::Object>(javaNewValue); in Unsafe_compareAndSwapObject()
94 ScopedFastNativeObjectAccess soa(env); in Unsafe_getInt() local
95 ObjPtr<mirror::Object> obj = soa.Decode<mirror::Object>(javaObj); in Unsafe_getInt()
[all …]
/art/runtime/
Dmethod_handles_test.cc86 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
88 StackHandleScope<2> hs(soa.Self()); in TEST_F()
92 ASSERT_TRUE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
94 ASSERT_FALSE(soa.Self()->IsExceptionPending()); in TEST_F()
98 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
100 StackHandleScope<2> hs(soa.Self()); in TEST_F()
105 ASSERT_TRUE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
106 ASSERT_FALSE(soa.Self()->IsExceptionPending()); in TEST_F()
111 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
113 StackHandleScope<2> hs(soa.Self()); in TEST_F()
[all …]
Dproxy_test.h36 inline ObjPtr<mirror::Class> GenerateProxyClass(ScopedObjectAccess& soa, in GenerateProxyClass() argument
42 StackHandleScope<1> hs(soa.Self()); in GenerateProxyClass()
46 jclass javaLangClass = soa.AddLocalReference<jclass>(GetClassRoot<mirror::Class>()); in GenerateProxyClass()
50 soa.Env()->NewObjectArray(interfaces.size(), javaLangClass, /* initialElement= */ nullptr); in GenerateProxyClass()
51 soa.Self()->AssertNoPendingException(); in GenerateProxyClass()
53 soa.Env()->SetObjectArrayElement(proxyClassInterfaces, i, in GenerateProxyClass()
54 soa.AddLocalReference<jclass>(interfaces[i].Get())); in GenerateProxyClass()
62 jobjectArray proxyClassMethods = soa.Env()->NewObjectArray( in GenerateProxyClass()
64 soa.AddLocalReference<jclass>(GetClassRoot<mirror::Method>()), in GenerateProxyClass()
66 soa.Self()->AssertNoPendingException(); in GenerateProxyClass()
[all …]
Dreflection_test.cc82 ScopedObjectAccess soa(env_); in GetPrimitiveClass() local
85 return soa.AddLocalReference<jclass>(c); in GetPrimitiveClass()
137 ScopedObjectAccess soa(env_); in InvokeNopMethod() local
141 ScopedLocalRef<jobject> receiver_ref(soa.Env(), soa.AddLocalReference<jobject>(receiver)); in InvokeNopMethod()
142 InvokeWithJValues(soa, receiver_ref.get(), jni::EncodeArtMethod(method), nullptr); in InvokeNopMethod()
146 ScopedObjectAccess soa(env_); in InvokeIdentityByteMethod() local
150 ScopedLocalRef<jobject> receiver_ref(soa.Env(), soa.AddLocalReference<jobject>(receiver)); in InvokeIdentityByteMethod()
154 JValue result = InvokeWithJValues(soa, receiver_ref.get(), jni::EncodeArtMethod(method), args); in InvokeIdentityByteMethod()
158 result = InvokeWithJValues(soa, receiver_ref.get(), jni::EncodeArtMethod(method), args); in InvokeIdentityByteMethod()
162 result = InvokeWithJValues(soa, receiver_ref.get(), jni::EncodeArtMethod(method), args); in InvokeIdentityByteMethod()
[all …]
Dintern_table_test.cc38 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
40 StackHandleScope<4> hs(soa.Self()); in TEST_F()
44 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "foo"))); in TEST_F()
60 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
64 StackHandleScope<1> hs(soa.Self()); in TEST_F()
66 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "foo"))); in TEST_F()
79 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
83 ObjPtr<mirror::String> str = mirror::String::AllocFromModifiedUtf8(soa.Self(), "00000000"); in TEST_F()
123 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
127 StackHandleScope<5> hs(soa.Self()); in TEST_F()
[all …]
Dtransaction_test.cc38 ScopedObjectAccess soa(Thread::Current()); in testTransactionAbort() local
40 StackHandleScope<2> hs(soa.Self()); in testTransactionAbort()
42 hs.NewHandle(soa.Decode<mirror::ClassLoader>(jclass_loader))); in testTransactionAbort()
49 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), in testTransactionAbort()
52 class_linker_->EnsureInitialized(soa.Self(), h_klass, true, true); in testTransactionAbort()
55 h_klass.Assign(class_linker_->FindSystemClass(soa.Self(), in testTransactionAbort()
58 class_linker_->EnsureInitialized(soa.Self(), h_klass, true, true); in testTransactionAbort()
62 h_klass.Assign(class_linker_->FindClass(soa.Self(), "LTransaction$AbortHelperClass;", in testTransactionAbort()
65 class_linker_->VerifyClass(soa.Self(), /* verifier_deps= */ nullptr, h_klass); in testTransactionAbort()
69 h_klass.Assign(class_linker_->FindClass(soa.Self(), tested_class_signature, class_loader)); in testTransactionAbort()
[all …]
/art/runtime/mirror/
Dobject_test.cc114 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
115 StackHandleScope<2> hs(soa.Self()); in TEST_F()
116 Handle<ObjectArray<Object>> a1(hs.NewHandle(AllocObjectArray<Object>(soa.Self(), 256))); in TEST_F()
118 ObjPtr<Object> clone = Object::Clone(a1, soa.Self()); in TEST_F()
124 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
125 StackHandleScope<3> hs(soa.Self()); in TEST_F()
126 Handle<ObjectArray<Object>> oa(hs.NewHandle(AllocObjectArray<Object>(soa.Self(), 2))); in TEST_F()
138 class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/ArrayIndexOutOfBoundsException;")); in TEST_F()
141 EXPECT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
142 EXPECT_OBJ_PTR_EQ(aioobe.Get(), soa.Self()->GetException()->GetClass()); in TEST_F()
[all …]
Ddex_cache_test.cc48 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
49 StackHandleScope<1> hs(soa.Self()); in TEST_F()
53 soa.Self(), *java_lang_dex_file_, /*class_loader=*/nullptr))); in TEST_F()
65 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
66 StackHandleScope<1> hs(soa.Self()); in TEST_F()
70 soa.Self(), *java_lang_dex_file_, /*class_loader=*/nullptr))); in TEST_F()
76 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
79 StackHandleScope<3> hs(soa.Self()); in TEST_F()
81 soa.Decode<mirror::ClassLoader>(jclass_loader))); in TEST_F()
83 hs.NewHandle(class_linker_->FindClass(soa.Self(), "Lpackage1/Package1;", class_loader)); in TEST_F()
[all …]
/art/runtime/interpreter/
Dinterpreter.cc55 ScopedObjectAccessUnchecked soa(self); in InterpreterJni() local
60 ScopedLocalRef<jclass> klass(soa.Env(), in InterpreterJni()
61 soa.AddLocalReference<jclass>(method->GetDeclaringClass())); in InterpreterJni()
65 jresult = fn(soa.Env(), klass.get()); in InterpreterJni()
67 result->SetL(soa.Decode<mirror::Object>(jresult)); in InterpreterJni()
71 ScopedLocalRef<jclass> klass(soa.Env(), in InterpreterJni()
72 soa.AddLocalReference<jclass>(method->GetDeclaringClass())); in InterpreterJni()
74 fn(soa.Env(), klass.get()); in InterpreterJni()
78 ScopedLocalRef<jclass> klass(soa.Env(), in InterpreterJni()
79 soa.AddLocalReference<jclass>(method->GetDeclaringClass())); in InterpreterJni()
[all …]
/art/runtime/jni/
Djni_internal.cc369 static void ReportInvalidJNINativeMethod(const ScopedObjectAccess& soa, in ReportInvalidJNINativeMethod() argument
378 soa.Self()->ThrowNewExceptionF("Ljava/lang/NoSuchMethodError;", in ReportInvalidJNINativeMethod()
385 static jmethodID FindMethodID(ScopedObjectAccess& soa, jclass jni_class, in FindMethodID() argument
388 return jni::EncodeArtMethod<kEnableIndexIds>(FindMethodJNI(soa, jni_class, name, sig, is_static)); in FindMethodID()
392 static ObjPtr<mirror::ClassLoader> GetClassLoader(const ScopedObjectAccess& soa) in GetClassLoader() argument
394 ArtMethod* method = soa.Self()->GetCurrentMethod(nullptr); in GetClassLoader()
397 return soa.Decode<mirror::ClassLoader>(soa.Self()->GetClassLoaderOverride()); in GetClassLoader()
405 soa.Decode<mirror::ClassLoader>(Runtime::Current()->GetSystemClassLoader()); in GetClassLoader()
410 class_loader = soa.Decode<mirror::ClassLoader>(soa.Self()->GetClassLoaderOverride()); in GetClassLoader()
423 static jfieldID FindFieldID(const ScopedObjectAccess& soa, jclass jni_class, const char* name, in FindFieldID() argument
[all …]
/art/runtime/gc/
Dheap_verification_test.cc51 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
56 VariableSizedHandleScope hs(soa.Self()); in TEST_F()
58 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "test"))); in TEST_F()
76 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
77 VariableSizedHandleScope hs(soa.Self()); in TEST_F()
79 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "test"))); in TEST_F()
95 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
96 VariableSizedHandleScope hs(soa.Self()); in TEST_F()
98 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "test"))); in TEST_F()
107 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
[all …]
/art/test/692-vdex-inmem-loader/
Dvdex_inmem_loader.cc42 ScopedObjectAccess soa(Thread::Current()); in Java_Main_areClassesVerified() local
43 StackHandleScope<2> hs(soa.Self()); in Java_Main_areClassesVerified()
44 Handle<mirror::ClassLoader> h_loader(hs.NewHandle(soa.Decode<mirror::ClassLoader>(loader))); in Java_Main_areClassesVerified()
48 soa.Self(), in Java_Main_areClassesVerified()
63 h_class.Assign(class_linker->FindClass(soa.Self(), desc, h_loader)); in Java_Main_areClassesVerified()
81 ScopedObjectAccess soa(Thread::Current()); in Java_Main_hasVdexFile() local
82 StackHandleScope<1> hs(soa.Self()); in Java_Main_hasVdexFile()
83 Handle<mirror::ClassLoader> h_loader = hs.NewHandle(soa.Decode<mirror::ClassLoader>(loader)); in Java_Main_hasVdexFile()
87 soa.Self(), in Java_Main_hasVdexFile()
111 ScopedObjectAccess soa(Thread::Current()); in Java_Main_isBackedByOatFile() local
[all …]

12345678910