/art/benchmark/jobject-benchmark/ |
jobject_benchmark.cc | 27 ScopedObjectAccess soa(env); 28 mirror::Object* obj = soa.Decode<mirror::Object*>(jobj); 31 jobject ref = soa.Env()->AddLocalReference<jobject>(obj); 32 soa.Env()->DeleteLocalRef(ref); 38 ScopedObjectAccess soa(env); 39 mirror::Object* obj = soa.Decode<mirror::Object*>(jobj); 41 jobject ref = soa.Env()->AddLocalReference<jobject>(obj); 43 CHECK_EQ(soa.Decode<mirror::Object*>(ref), obj); 45 soa.Env()->DeleteLocalRef(ref); 50 ScopedObjectAccess soa(env) [all...] |
/art/runtime/native/ |
java_lang_Object.cc | 27 ScopedFastNativeObjectAccess soa(env); 28 mirror::Object* o = soa.Decode<mirror::Object*>(java_this); 29 return soa.AddLocalReference<jobject>(o->Clone(soa.Self())); 33 ScopedFastNativeObjectAccess soa(env); 34 mirror::Object* o = soa.Decode<mirror::Object*>(java_this); 35 o->Notify(soa.Self()); 39 ScopedFastNativeObjectAccess soa(env); 40 mirror::Object* o = soa.Decode<mirror::Object*>(java_this); 41 o->NotifyAll(soa.Self()) [all...] |
java_lang_Throwable.cc | 26 ScopedFastNativeObjectAccess soa(env); 27 return soa.Self()->CreateInternalStackTrace<false>(soa); 34 ScopedFastNativeObjectAccess soa(env); 35 return Thread::InternalStackTraceToStackTraceElementArray(soa, javaStackState);
|
java_lang_reflect_AbstractMethod.cc | 31 ScopedFastNativeObjectAccess soa(env); 32 ArtMethod* method = ArtMethod::FromReflectedMethod(soa, javaMethod); 36 soa.Decode<mirror::Class*>(WellKnownClasses::java_lang_annotation_Annotation__array); 38 mirror::ObjectArray<mirror::Object>::Alloc(soa.Self(), annotation_array_class, 0); 39 return soa.AddLocalReference<jobjectArray>(empty_array); 41 return soa.AddLocalReference<jobjectArray>(method->GetDexFile()->GetAnnotationsForMethod(method)); 45 ScopedFastNativeObjectAccess soa(env); 46 ArtMethod* method = ArtMethod::FromReflectedMethod(soa, javaMethod); 50 StackHandleScope<1> hs(soa.Self()); 51 return soa.AddLocalReference<jobjectArray> [all...] |
java_lang_reflect_Constructor.cc | 34 ScopedFastNativeObjectAccess soa(env); 35 StackHandleScope<1> hs(soa.Self()); 36 ArtMethod* method = ArtMethod::FromReflectedMethod(soa, javaMethod); 40 Handle<mirror::Class> klass(hs.NewHandle(soa.Decode<mirror::Class*>(annotationType))); 41 return soa.AddLocalReference<jobject>( 47 ScopedFastNativeObjectAccess soa(env); 48 ArtMethod* method = ArtMethod::FromReflectedMethod(soa, javaMethod); 52 Runtime::Current()->GetClassLinker()->FindArrayClass(soa.Self(), &class_class); 57 mirror::ObjectArray<mirror::Class>::Alloc(soa.Self(), class_array_class, 0); 58 return soa.AddLocalReference<jobjectArray>(empty_array) [all...] |
java_lang_reflect_Array.cc | 32 ScopedFastNativeObjectAccess soa(env); 34 StackHandleScope<2> hs(soa.Self()); 35 Handle<mirror::Class> element_class(hs.NewHandle(soa.Decode<mirror::Class*>(javaElementClass))); 38 mirror::Object* dimensions_obj = soa.Decode<mirror::Object*>(javaDimArray); 44 mirror::Array* new_array = mirror::Array::CreateMultiArray(soa.Self(), element_class, 46 return soa.AddLocalReference<jobject>(new_array); 50 ScopedFastNativeObjectAccess soa(env); 56 mirror::Class* element_class = soa.Decode<mirror::Class*>(javaElementClass); 59 mirror::Class* array_class = class_linker->FindArrayClass(soa.Self(), &element_class); 61 CHECK(soa.Self()->IsExceptionPending()) [all...] |
java_lang_Class.cc | 45 const ScopedFastNativeObjectAccess& soa, jobject java_class) 47 mirror::Class* c = soa.Decode<mirror::Class*>(java_class); 59 ScopedFastNativeObjectAccess soa(env); 69 soa.Self()->ThrowNewExceptionF("Ljava/lang/ClassNotFoundException;", 75 StackHandleScope<2> hs(soa.Self()); 76 Handle<mirror::ClassLoader> class_loader(hs.NewHandle(soa.Decode<mirror::ClassLoader*>(javaLoader))); 79 hs.NewHandle(class_linker->FindClass(soa.Self(), descriptor.c_str(), class_loader))); 93 class_linker->EnsureInitialized(soa.Self(), c, true, true); 95 return soa.AddLocalReference<jclass>(c.Get()); 99 ScopedFastNativeObjectAccess soa(env) [all...] |
java_lang_DexCache.cc | 30 ScopedFastNativeObjectAccess soa(env); 31 mirror::DexCache* dex_cache = soa.Decode<mirror::DexCache*>(javaDexCache); 33 DCHECK_EQ(dex_cache->GetLockOwnerThreadId(), soa.Self()->GetThreadId()); 41 DCHECK(soa.Self()->IsExceptionPending()); 53 ScopedFastNativeObjectAccess soa(env); 54 mirror::DexCache* dex_cache = soa.Decode<mirror::DexCache*>(javaDexCache); 56 return soa.AddLocalReference<jobject>(dex_cache->GetResolvedType(type_index)); 60 ScopedFastNativeObjectAccess soa(env); 61 mirror::DexCache* dex_cache = soa.Decode<mirror::DexCache*>(javaDexCache); 63 return soa.AddLocalReference<jobject>(dex_cache->GetResolvedString(string_index)) [all...] |
java_lang_StringFactory.cc | 32 ScopedFastNativeObjectAccess soa(env); 37 StackHandleScope<1> hs(soa.Self()); 38 Handle<mirror::ByteArray> byte_array(hs.NewHandle(soa.Decode<mirror::ByteArray*>(java_data))); 41 soa.Self()->ThrowNewExceptionF("Ljava/lang/StringIndexOutOfBoundsException;", 47 mirror::String* result = mirror::String::AllocFromByteArray<true>(soa.Self(), byte_count, 50 return soa.AddLocalReference<jstring>(result); 57 ScopedFastNativeObjectAccess soa(env); 58 StackHandleScope<1> hs(soa.Self()); 59 Handle<mirror::CharArray> char_array(hs.NewHandle(soa.Decode<mirror::CharArray*>(java_data))); 61 mirror::String* result = mirror::String::AllocFromCharArray<true>(soa.Self(), char_count [all...] |
java_lang_ref_Reference.cc | 29 ScopedFastNativeObjectAccess soa(env); 30 mirror::Reference* const ref = soa.Decode<mirror::Reference*>(javaThis); 32 Runtime::Current()->GetHeap()->GetReferenceProcessor()->GetReferent(soa.Self(), ref); 33 return soa.AddLocalReference<jobject>(referent);
|
dalvik_system_VMStack.cc | 31 static jobject GetThreadStack(const ScopedFastNativeObjectAccess& soa, jobject peer) 34 if (soa.Decode<mirror::Object*>(peer) == soa.Self()->GetPeer()) { 35 trace = soa.Self()->CreateInternalStackTrace<false>(soa); 38 ScopedThreadSuspension sts(soa.Self(), kNative); 45 ScopedObjectAccess soa2(soa.Self()); 46 trace = thread->CreateInternalStackTrace<false>(soa); 60 ScopedFastNativeObjectAccess soa(env); 61 jobject trace = GetThreadStack(soa, javaThread) [all...] |
java_lang_reflect_Method.cc | 33 ScopedFastNativeObjectAccess soa(env); 34 ArtMethod* method = ArtMethod::FromReflectedMethod(soa, javaMethod); 38 StackHandleScope<1> hs(soa.Self()); 39 Handle<mirror::Class> klass(hs.NewHandle(soa.Decode<mirror::Class*>(annotationType))); 40 return soa.AddLocalReference<jobject>( 45 ScopedFastNativeObjectAccess soa(env); 46 ArtMethod* method = ArtMethod::FromReflectedMethod(soa, javaMethod); 50 return soa.AddLocalReference<jobject>(method->GetDexFile()->GetAnnotationDefaultValue(method)); 54 ScopedFastNativeObjectAccess soa(env); 55 ArtMethod* method = ArtMethod::FromReflectedMethod(soa, javaMethod) [all...] |
java_lang_String.cc | 33 ScopedFastNativeObjectAccess soa(env); 34 return soa.Decode<mirror::String*>(java_this)->CharAt(index); 38 ScopedFastNativeObjectAccess soa(env); 43 return soa.Decode<mirror::String*>(java_this)->CompareTo(soa.Decode<mirror::String*>(java_rhs)); 48 ScopedFastNativeObjectAccess soa(env); 53 StackHandleScope<2> hs(soa.Self()); 54 Handle<mirror::String> string_this(hs.NewHandle(soa.Decode<mirror::String*>(java_this))); 55 Handle<mirror::String> string_arg(hs.NewHandle(soa.Decode<mirror::String*>(java_string_arg))); 59 mirror::String* result = mirror::String::AllocFromStrings(soa.Self(), string_this, string_arg) [all...] |
java_lang_Thread.cc | 33 ScopedFastNativeObjectAccess soa(env); 34 return soa.AddLocalReference<jobject>(soa.Self()->GetPeer()); 42 ScopedFastNativeObjectAccess soa(env); 43 MutexLock mu(soa.Self(), *Locks::thread_list_lock_); 44 Thread* thread = Thread::FromManagedThread(soa, java_thread); 71 ScopedObjectAccess soa(env); 73 MutexLock mu(soa.Self(), *Locks::thread_list_lock_); 74 Thread* thread = Thread::FromManagedThread(soa, java_thread); 111 ScopedObjectAccess soa(env) [all...] |
java_lang_reflect_Proxy.cc | 31 ScopedFastNativeObjectAccess soa(env); 33 return soa.AddLocalReference<jclass>(class_linker->CreateProxyClass( 34 soa, name, interfaces, loader, methods, throws));
|
java_lang_ref_FinalizerReference.cc | 29 ScopedFastNativeObjectAccess soa(env); 30 mirror::FinalizerReference* const ref = soa.Decode<mirror::FinalizerReference*>(javaThis);
|
/art/test/004-UnsafeTest/ |
unsafe_test.cc | 28 ScopedObjectAccess soa(env); 29 mirror::Class* klass = soa.Decode<mirror::Class*>(classObj); 35 ScopedObjectAccess soa(env); 36 mirror::Class* klass = soa.Decode<mirror::Class*>(classObj);
|
/art/runtime/ |
reflection_test.cc | 78 ScopedObjectAccess soa(env_); 81 return soa.AddLocalReference<jclass>(c); 132 ScopedObjectAccess soa(env_); 136 ScopedLocalRef<jobject> receiver_ref(soa.Env(), soa.AddLocalReference<jobject>(receiver)); 137 InvokeWithJValues(soa, receiver_ref.get(), soa.EncodeMethod(method), nullptr); 141 ScopedObjectAccess soa(env_); 145 ScopedLocalRef<jobject> receiver_ref(soa.Env(), soa.AddLocalReference<jobject>(receiver)) [all...] |
proxy_test.cc | 34 mirror::Class* GenerateProxyClass(ScopedObjectAccess& soa, jobject jclass_loader, 38 mirror::Class* javaLangObject = class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/Object;"); 41 jclass javaLangClass = soa.AddLocalReference<jclass>(mirror::Class::GetJavaLangClass()); 44 jobjectArray proxyClassInterfaces = soa.Env()->NewObjectArray(interfaces.size(), javaLangClass, 46 soa.Self()->AssertNoPendingException(); 48 soa.Env()->SetObjectArrayElement(proxyClassInterfaces, i, 49 soa.AddLocalReference<jclass>(interfaces[i])); 57 jobjectArray proxyClassMethods = soa.Env()->NewObjectArray( 58 methods_count, soa.AddLocalReference<jclass>(mirror::Method::StaticClass()), nullptr); 59 soa.Self()->AssertNoPendingException() [all...] |
jni_internal.cc | 90 static void ThrowNoSuchMethodError(ScopedObjectAccess& soa, mirror::Class* c, 94 soa.Self()->ThrowNewExceptionF("Ljava/lang/NoSuchMethodError;", 99 static void ReportInvalidJNINativeMethod(const ScopedObjectAccess& soa, mirror::Class* c, 105 soa.Self()->ThrowNewExceptionF("Ljava/lang/NoSuchMethodError;", 122 static jmethodID FindMethodID(ScopedObjectAccess& soa, jclass jni_class, 125 mirror::Class* c = EnsureInitialized(soa.Self(), soa.Decode<mirror::Class*>(jni_class)); 144 ThrowNoSuchMethodError(soa, c, name, sig, is_static ? "static" : "non-static"); 147 return soa.EncodeMethod(method); 150 static mirror::ClassLoader* GetClassLoader(const ScopedObjectAccess& soa) [all...] |
jobject_comparator.cc | 33 ScopedObjectAccess soa(Thread::Current()); 34 StackHandleScope<2> hs(soa.Self()); 35 Handle<mirror::Object> obj1(hs.NewHandle(soa.Decode<mirror::Object*>(jobj1))); 36 Handle<mirror::Object> obj2(hs.NewHandle(soa.Decode<mirror::Object*>(jobj2)));
|
intern_table_test.cc | 30 ScopedObjectAccess soa(Thread::Current()); 32 StackHandleScope<4> hs(soa.Self()); 36 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "foo"))); 52 ScopedObjectAccess soa(Thread::Current()); 56 StackHandleScope<1> hs(soa.Self()); 58 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "foo"))); 93 ScopedObjectAccess soa(Thread::Current()); 97 StackHandleScope<5> hs(soa.Self()); 99 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "hello"))); 101 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "world"))) [all...] |
/art/benchmark/jni-perf/ |
perf_jni.cc | 30 ScopedObjectAccess soa(env); 34 ScopedObjectAccessUnchecked soa(Thread::Current());
|
/art/runtime/mirror/ |
object_test.cc | 97 ScopedObjectAccess soa(Thread::Current()); 98 StackHandleScope<2> hs(soa.Self()); 100 hs.NewHandle(class_linker_->AllocObjectArray<Object>(soa.Self(), 256))); 102 Object* clone = a1->Clone(soa.Self()); 108 ScopedObjectAccess soa(Thread::Current()); 109 StackHandleScope<2> hs(soa.Self()); 111 hs.NewHandle(class_linker_->AllocObjectArray<Object>(soa.Self(), 2))); 122 Class* aioobe = class_linker_->FindSystemClass(soa.Self(), 126 EXPECT_TRUE(soa.Self()->IsExceptionPending()); 127 EXPECT_EQ(aioobe, soa.Self()->GetException()->GetClass()) [all...] |
dex_cache_test.cc | 34 ScopedObjectAccess soa(Thread::Current()); 35 StackHandleScope<1> hs(soa.Self()); 38 hs.NewHandle(class_linker_->AllocDexCache(soa.Self(), 50 ScopedObjectAccess soa(Thread::Current()); 55 StackHandleScope<1> hs(soa.Self()); 57 soa.Decode<mirror::ClassLoader*>(jclass_loader))); 58 mirror::Class* klass = class_linker->FindClass(soa.Self(), "LMain;", class_loader); 66 ScopedObjectAccess soa(Thread::Current()); 71 StackHandleScope<3> hs(soa.Self()); 73 soa.Decode<mirror::ClassLoader*>(jclass_loader))) [all...] |