Home
last modified time | relevance | path

Searched refs:Get (Results 1 – 25 of 213) sorted by relevance

123456789

/art/runtime/
Dclass_table_test.cc85 EXPECT_EQ(table.NumZygoteClasses(class_loader.Get()), 0u); in TEST_F()
86 EXPECT_EQ(table.NumNonZygoteClasses(class_loader.Get()), 0u); in TEST_F()
89 table.Insert(h_X.Get()); in TEST_F()
90 EXPECT_OBJ_PTR_EQ(table.LookupByDescriptor(h_X.Get()), h_X.Get()); in TEST_F()
91 EXPECT_OBJ_PTR_EQ(table.Lookup(descriptor_x, ComputeModifiedUtf8Hash(descriptor_x)), h_X.Get()); in TEST_F()
93 EXPECT_EQ(table.NumZygoteClasses(class_loader.Get()), 0u); in TEST_F()
94 EXPECT_EQ(table.NumNonZygoteClasses(class_loader.Get()), 1u); in TEST_F()
98 EXPECT_EQ(table.NumZygoteClasses(class_loader.Get()), 1u); in TEST_F()
99 EXPECT_EQ(table.NumNonZygoteClasses(class_loader.Get()), 0u); in TEST_F()
102 EXPECT_TRUE(table.LookupByDescriptor(h_Y.Get()) == nullptr); in TEST_F()
[all …]
Dintern_table_test.cc45 EXPECT_EQ(foo_1.Get(), foo_2.Get()); in TEST_F()
49 EXPECT_NE(foo_1.Get(), bar.Get()); in TEST_F()
50 EXPECT_NE(foo_2.Get(), bar.Get()); in TEST_F()
51 EXPECT_NE(foo_3.Get(), bar.Get()); in TEST_F()
62 t.InternWeak(foo.Get()); in TEST_F()
124 Handle<mirror::String> s0(hs.NewHandle(t.InternWeak(hello.Get()))); in TEST_F()
125 Handle<mirror::String> s1(hs.NewHandle(t.InternWeak(world.Get()))); in TEST_F()
131 p.Expect(s0.Get()); in TEST_F()
132 p.Expect(s1.Get()); in TEST_F()
143 t.InternWeak(still_here.Get()); in TEST_F()
[all …]
Dtransaction_test.cc107 ASSERT_OBJ_PTR_EQ(h_obj->GetClass(), h_klass.Get()); in TEST_F()
110 EXPECT_OBJ_PTR_EQ(h_obj->GetClass(), h_klass.Get()); in TEST_F()
122 ASSERT_OBJ_PTR_EQ(h_obj->GetClass(), h_klass.Get()); in TEST_F()
155 h_klass.Get(), in TEST_F()
160 ASSERT_OBJ_PTR_EQ(h_obj->GetClass(), h_klass.Get()); in TEST_F()
187 ASSERT_EQ(booleanField->GetBoolean(h_klass.Get()), false); in TEST_F()
192 ASSERT_EQ(byteField->GetByte(h_klass.Get()), 0); in TEST_F()
197 ASSERT_EQ(charField->GetChar(h_klass.Get()), 0u); in TEST_F()
202 ASSERT_EQ(shortField->GetShort(h_klass.Get()), 0); in TEST_F()
207 ASSERT_EQ(intField->GetInt(h_klass.Get()), 0); in TEST_F()
[all …]
Dindirect_reference_table_test.cc85 iref0 = irt.Add(cookie, obj0.Get(), &error_msg); in TEST_F()
88 IndirectRef iref1 = irt.Add(cookie, obj1.Get(), &error_msg); in TEST_F()
91 IndirectRef iref2 = irt.Add(cookie, obj2.Get(), &error_msg); in TEST_F()
95 EXPECT_OBJ_PTR_EQ(obj0.Get(), irt.Get(iref0)); in TEST_F()
96 EXPECT_OBJ_PTR_EQ(obj1.Get(), irt.Get(iref1)); in TEST_F()
97 EXPECT_OBJ_PTR_EQ(obj2.Get(), irt.Get(iref2)); in TEST_F()
110 EXPECT_TRUE(irt.Get(iref0) == nullptr); in TEST_F()
113 iref0 = irt.Add(cookie, obj0.Get(), &error_msg); in TEST_F()
115 iref1 = irt.Add(cookie, obj1.Get(), &error_msg); in TEST_F()
117 iref2 = irt.Add(cookie, obj2.Get(), &error_msg); in TEST_F()
[all …]
Dmonitor_test.cc71 monitor_test_->object_.Get()->MonitorEnter(self); // Lock the object. This should transition in Run()
72 LockWord lock_after = monitor_test_->object_.Get()->GetLockWord(false); // it to thinLocked. in Run()
77 monitor_test_->object_.Get()->MonitorExit(self); // To appease analysis. in Run()
83 monitor_test_->object_.Get()->IdentityHashCode(); in Run()
84 LockWord lock_after2 = monitor_test_->object_.Get()->GetLockWord(false); in Run()
89 monitor_test_->object_.Get()->MonitorExit(self); // To appease analysis. in Run()
104 Monitor::Wait(self, monitor_test_->object_.Get(), millis_, 0, true, in Run()
118 monitor_test_->object_.Get()->MonitorExit(self); // Release the object. Appeases analysis. in Run()
149 Monitor::Wait(self, monitor_test_->object_.Get(), millis_, 0, true, in Run()
194 Monitor::Wait(self, monitor_test_->object_.Get(), 10, 0, true, in Run()
[all …]
Dclass_linker_test.cc176 ASSERT_EQ(unimplemented, imt->Get(i, pointer_size)); in AssertObjectClass()
191 EXPECT_OBJ_PTR_EQ(loader.Get(), array->GetClassLoader()); in AssertArrayClass()
235 mirror::Class::GetDirectInterface(self, array.Get(), 0); in AssertArrayClass()
239 mirror::Class::GetDirectInterface(self, array.Get(), 1); in AssertArrayClass()
241 EXPECT_OBJ_PTR_EQ(class_linker_->FindArrayClass(self, array->GetComponentType()), array.Get()); in AssertArrayClass()
285 EXPECT_TRUE(klass->IsInSamePackage(klass.Get())); in AssertClass()
327 EXPECT_TRUE(klass->CanAccess(klass.Get())); in AssertClass()
332 EXPECT_OBJ_PTR_EQ(klass.Get(), method.GetDeclaringClass()); in AssertClass()
338 EXPECT_OBJ_PTR_EQ(klass.Get(), method.GetDeclaringClass()); in AssertClass()
347 EXPECT_TRUE(method.GetDeclaringClass()->IsAssignableFrom(klass.Get())) in AssertClass()
[all …]
Dreference_table_test.cc69 args[0] = PointerToLowMemUInt32(h_ref_instance.Get()); in CreateWeakReference()
70 args[1] = PointerToLowMemUInt32(h_referent.Get()); in CreateWeakReference()
75 return h_ref_instance.Get(); in CreateWeakReference()
99 rt.Remove(o1.Get()); in TEST_F()
104 rt.Add(o1.Get()); in TEST_F()
115 rt.Add(o2.Get()); in TEST_F()
134 rt.Remove(o1.Get()); in TEST_F()
143 rt.Remove(o2.Get()); in TEST_F()
201 jobject jobj = soa.Env()->AddLocalReference<jobject>(h_without_trace.Get()); in TEST_F()
219 jobject referent = soa.Env()->AddLocalReference<jobject>(h_with_trace.Get()); in TEST_F()
[all …]
Dmethod_handles.cc102 value->Set ## shorthand(primitive_field->Get ## abbrev(o)); \ in GetUnboxedTypeAndValue()
224 ThrowWrongMethodTypeException(callee_type.Get(), callsite_type.Get()); in ConvertJValueCommon()
239 ThrowClassCastException(h_to.Get(), h_obj->GetClass()); in ConvertJValueCommon()
242 value->SetL(h_obj.Get()); in ConvertJValueCommon()
256 ThrowWrongMethodTypeException(callee_type.Get(), callsite_type.Get()); in ConvertJValueCommon()
262 ThrowWrongMethodTypeException(callee_type.Get(), callsite_type.Get()); in ConvertJValueCommon()
267 ThrowWrongMethodTypeException(callee_type.Get(), callsite_type.Get()); in ConvertJValueCommon()
291 ThrowWrongMethodTypeException(callee_type.Get(), callsite_type.Get()); in ConvertJValueCommon()
302 ThrowWrongMethodTypeException(callee_type.Get(), callsite_type.Get()); in ConvertJValueCommon()
349 ThrowWrongMethodTypeException(callee_type.Get(), callsite_type.Get()); in ConvertAndCopyArgumentsFromCallerFrame()
[all …]
/art/libartbase/base/
Dvariant_map_test.cc52 EXPECT_NULL(fm.Get(FruitMap::Apple)); in TEST()
54 EXPECT_NULL(fm.Get(FruitMap::Orange)); in TEST()
58 EXPECT_NULL(fm.Get(FruitMap::Orange)); in TEST()
59 EXPECT_EQ(1, *fm.Get(FruitMap::Apple)); in TEST()
63 EXPECT_NULL(fm.Get(FruitMap::Orange)); in TEST()
64 EXPECT_EQ(5, *fm.Get(FruitMap::Apple)); in TEST()
68 EXPECT_EQ(5, *fm.Get(FruitMap::Apple)); in TEST()
69 EXPECT_DOUBLE_EQ(555.0, *fm.Get(FruitMap::Orange)); in TEST()
86 auto* ptr = fm.Get(FruitMap::Label); in TEST()
94 auto* new_ptr = fm.Get(FruitMap::Label); in TEST()
[all …]
Dbit_table_test.cc64 EXPECT_EQ(42u, table.Get(0)); in TEST()
65 EXPECT_EQ(kNoValue, table.Get(1)); in TEST()
66 EXPECT_EQ(1000u, table.Get(2)); in TEST()
67 EXPECT_EQ(kNoValue, table.Get(3)); in TEST()
87 EXPECT_EQ(42u, table.Get(0)); in TEST()
108 EXPECT_EQ(42u, table.Get(0, 0)); in TEST()
109 EXPECT_EQ(kNoValue, table.Get(0, 1)); in TEST()
110 EXPECT_EQ(0u, table.Get(0, 2)); in TEST()
111 EXPECT_EQ(static_cast<uint32_t>(-2), table.Get(0, 3)); in TEST()
112 EXPECT_EQ(62u, table.Get(1, 0)); in TEST()
[all …]
Dbit_struct.h118 return Get(); in T()
159 T Get() const { in Get() function
196 return Get(); in T()
200 return static_cast<bool>(Get());
204 *this = Get() + 1u;
209 return Get() + 1u;
213 *this = Get() - 1u;
218 return Get() - 1u;
223 using BaseType::Get;
/art/runtime/mirror/
Dobject_test.cc124 EXPECT_TRUE(oa->Get(0) == nullptr); in TEST_F()
125 EXPECT_TRUE(oa->Get(1) == nullptr); in TEST_F()
126 oa->Set<false>(0, oa.Get()); in TEST_F()
127 EXPECT_TRUE(oa->Get(0) == oa.Get()); in TEST_F()
128 EXPECT_TRUE(oa->Get(1) == nullptr); in TEST_F()
129 oa->Set<false>(1, oa.Get()); in TEST_F()
130 EXPECT_TRUE(oa->Get(0) == oa.Get()); in TEST_F()
131 EXPECT_TRUE(oa->Get(1) == oa.Get()); in TEST_F()
136 EXPECT_TRUE(oa->Get(-1) == nullptr); in TEST_F()
138 EXPECT_OBJ_PTR_EQ(aioobe.Get(), soa.Self()->GetException()->GetClass()); in TEST_F()
[all …]
Dstack_trace_element.cc39 trace->Init<true>(declaring_class.Get(), method_name.Get(), file_name.Get(), line_number); in Alloc()
41 trace->Init<false>(declaring_class.Get(), method_name.Get(), file_name.Get(), line_number); in Alloc()
Demulated_stack_frame.cc110 return references_->Get(reference_idx_++); in GetReference()
113 ALWAYS_INLINE uint32_t Get() REQUIRES_SHARED(Locks::mutator_lock_) { in Get() function in art::mirror::EmulatedStackFrameAccessor
161 ThrowWrongMethodTypeException(callee_type.Get(), caller_type.Get()); in CreateFromShadowFrameAndArgs()
170 CalculateFrameAndReferencesSize(to_types.Get(), r_type.Get(), &frame_size, &refs_size); in CreateFromShadowFrameAndArgs()
199 sf->SetFieldObject<false>(CallsiteTypeOffset(), caller_type.Get()); in CreateFromShadowFrameAndArgs()
200 sf->SetFieldObject<false>(TypeOffset(), callee_type.Get()); in CreateFromShadowFrameAndArgs()
201 sf->SetFieldObject<false>(ReferencesOffset(), references.Get()); in CreateFromShadowFrameAndArgs()
202 sf->SetFieldObject<false>(StackFrameOffset(), stack_frame.Get()); in CreateFromShadowFrameAndArgs()
204 return sf.Get(); in CreateFromShadowFrameAndArgs()
216 ThrowWrongMethodTypeException(callee_type.Get(), GetType()); in WriteToShadowFrame()
/art/test/593-checker-shift-and-simplifier/smali/
DSmaliTests.smali22 ## CHECK-DAG: <<Get:i\d+>> ArrayGet
23 ## CHECK-DAG: <<Not:i\d+>> Not [<<Get>>]
24 ## CHECK-DAG: <<Shl:i\d+>> Shl [<<Get>>,i{{\d+}}]
28 ## CHECK-DAG: <<Get:i\d+>> ArrayGet
29 ## CHECK-DAG: <<Not:i\d+>> Not [<<Get>>]
30 ## CHECK-DAG: DataProcWithShifterOp [<<Not>>,<<Get>>] kind:And+LSL shift:2
33 ## CHECK-DAG: <<Get:i\d+>> ArrayGet
34 ## CHECK-DAG: <<Not:i\d+>> Not [<<Get>>]
35 ## CHECK-DAG: <<Shl:i\d+>> Shl [<<Get>>,i{{\d+}}]
39 ## CHECK-DAG: <<Get:i\d+>> ArrayGet
[all …]
/art/runtime/gc/
Dsystem_weak_test.cc84 GcRoot<mirror::Object> Get() in Get() function
144 cswh.Set(GcRoot<mirror::Object>(s.Get())); in TEST_F()
155 EXPECT_FALSE(cswh.Get().IsNull()); in TEST_F()
156 EXPECT_EQ(cswh.Get().Read(), s.Get()); in TEST_F()
176 EXPECT_TRUE(cswh.Get().IsNull()); in TEST_F()
189 cswh.Set(GcRoot<mirror::Object>(s.Get())); in TEST_F()
200 ASSERT_FALSE(cswh.Get().IsNull()); in TEST_F()
201 ASSERT_EQ(cswh.Get().Read(), s.Get()); in TEST_F()
Dheap_verification_test.cc57 EXPECT_TRUE(v->IsValidHeapObjectAddress(string.Get())); in TEST_F()
60 reinterpret_cast<const void*>(reinterpret_cast<uintptr_t>(string.Get()) + 1); in TEST_F()
83 EXPECT_FALSE(v->IsValidClass(string.Get())); in TEST_F()
131 LOG(INFO) << v->DumpObjectInfo(string.Get(), "test"); in TEST_F()
137 LOG(INFO) << v->DumpObjectInfo(arr.Get(), "arr"); in TEST_F()
158 arr->Set(0, string.Get()); in TEST_F()
160 v->LogHeapCorruption(arr.Get(), ObjArray::DataOffset(kHeapReferenceSize), string.Get(), false); in TEST_F()
161 v->LogHeapCorruption(string.Get(), mirror::Object::ClassOffset(), string->GetClass(), false); in TEST_F()
163 v->LogHeapCorruption(nullptr, MemberOffset(0), string.Get(), false); in TEST_F()
164 v->LogHeapCorruption(nullptr, MemberOffset(0), arr.Get(), false); in TEST_F()
[all …]
Dreference_queue_test.cc47 queue.EnqueueReference(ref1.Get()); in TEST_F()
50 queue.EnqueueReference(ref2.Get()); in TEST_F()
54 std::set<mirror::Reference*> refs = {ref1.Get(), ref2.Get()}; in TEST_F()
87 queue.EnqueueReference(ref1.Get()); in TEST_F()
92 queue.EnqueueReference(ref2.Get()); in TEST_F()
/art/test/1985-structural-redefine-stack-scope/
Dstack_scope.cc54 ArtField* pre_ptr = rf.Get(); in Java_Main_NativeFieldScopeCheck()
70 reinterpret_cast<uintptr_t>(rf.Get()), in Java_Main_NativeFieldScopeCheck()
74 CHECK_EQ(rf.Get(), bf.Get()) << "rf: " << rf->PrettyField() << " bf: " << bf->PrettyField(); in Java_Main_NativeFieldScopeCheck()
76 CHECK_NE(pre_ptr, rf.Get()) << "pre_ptr: " << pre_ptr->PrettyField() in Java_Main_NativeFieldScopeCheck()
79 return soa.AddLocalReference<jobject>(mhi.Get()); in Java_Main_NativeFieldScopeCheck()
/art/compiler/utils/
Datomic_dex_ref_map_test.cc38 EXPECT_FALSE(map.Get(MethodReference(dex.get(), 1), &value)); in TEST_F()
49 EXPECT_TRUE(map.Get(MethodReference(dex.get(), 1), &value)); in TEST_F()
55 EXPECT_TRUE(map.Get(MethodReference(dex.get(), 1), &value)); in TEST_F()
60 EXPECT_TRUE(map.Get(MethodReference(dex.get(), 1), &value)); in TEST_F()
62 EXPECT_TRUE(map.Get(MethodReference(dex.get(), 2), &value)); in TEST_F()
70 EXPECT_TRUE(map.Get(MethodReference(dex.get(), 1), &value)); in TEST_F()
/art/runtime/arch/
Dstub_test.cc473 Invoke3(reinterpret_cast<size_t>(obj.Get()), 0U, 0U, art_quick_lock_object, self); in TEST_F()
481 Invoke3(reinterpret_cast<size_t>(obj.Get()), 0U, 0U, art_quick_lock_object, self); in TEST_F()
497 Invoke3(reinterpret_cast<size_t>(obj2.Get()), 0U, 0U, art_quick_lock_object, self); in TEST_F()
547 test->Invoke3(reinterpret_cast<size_t>(obj.Get()), 0U, 0U, art_quick_unlock_object, self); in TestUnlockObject()
556 test->Invoke3(reinterpret_cast<size_t>(obj.Get()), 0U, 0U, art_quick_lock_object, self); in TestUnlockObject()
562 test->Invoke3(reinterpret_cast<size_t>(obj.Get()), 0U, 0U, art_quick_unlock_object, self); in TestUnlockObject()
616 test->Invoke3(reinterpret_cast<size_t>(objects[index].Get()), 0U, 0U, art_quick_lock_object, in TestUnlockObject()
620 test->Invoke3(reinterpret_cast<size_t>(objects[index].Get()), 0U, 0U, in TestUnlockObject()
633 MonitorInfo info(objects[index].Get()); in TestUnlockObject()
652 test->Invoke3(reinterpret_cast<size_t>(objects[index].Get()), 0U, 0U, art_quick_unlock_object, in TestUnlockObject()
[all …]
/art/runtime/native/
Djava_lang_reflect_Executable.cc101 return soa.AddLocalReference<jobjectArray>(annotations.Get()); in Executable_getParameterAnnotationsNative()
110 return soa.AddLocalReference<jobjectArray>(annotations.Get()); in Executable_getParameterAnnotationsNative()
139 resized_annotations->SetWithoutChecks<kTransactionActive>(i, empty_annotations.Get()); in Executable_getParameterAnnotationsNative()
154 return soa.AddLocalReference<jobjectArray>(resized_annotations.Get()); in Executable_getParameterAnnotationsNative()
163 ArtMethod* art_method = executable.Get()->GetArtMethod(); in Executable_getParameters0()
185 int32_t names_count = names.Get()->GetLength(); in Executable_getParameters0()
186 int32_t access_flags_count = access_flags.Get()->GetLength(); in Executable_getParameters0()
204 parameter_array_class.Get(), in Executable_getParameters0()
223 name.Assign(names.Get()->Get(parameter_index)); in Executable_getParameters0()
224 int32_t modifiers = access_flags.Get()->Get(parameter_index); in Executable_getParameters0()
[all …]
/art/openjdkjvmti/
Dti_class_loader.cc68 if (art::ClassLinker::IsBootClassLoader(soa, loader.Get())) { in AddToClassLoader()
84 UpdateJavaDexFile(java_dex_file_obj.Get(), cookie.Get()); in AddToClassLoader()
112 return internal_cookie_field->GetObject(java_dex_file_obj.Get())->AsLongArray(); in GetDexFileCookie()
133 new_cookie->Memcpy(2, cookie.Get(), 1, cookie->GetLength() - 1); in AllocateNewDexFileCookie()
134 return new_cookie.Get(); in AllocateNewDexFileCookie()
156 if (!loader_class->IsSubClass(base_dex_loader_class.Get())) { in GetDexElementList()
164 hs.NewHandle(path_list_field->GetObject(loader.Get()))); in GetDexElementList()
167 dex_path_list_element_field->GetObject(path_list.Get())->AsObjectArray<art::mirror::Object>(); in GetDexElementList()
/art/compiler/
Dexception_test.cc64 my_klass_ = klass.Get(); in SetUp()
223 ASSERT_TRUE(trace_array->Get(0) != nullptr); in TEST_F()
225 trace_array->Get(0)->GetDeclaringClass()->ToModifiedUtf8().c_str()); in TEST_F()
227 trace_array->Get(0)->GetFileName()->ToModifiedUtf8().c_str()); in TEST_F()
228 EXPECT_STREQ("g", trace_array->Get(0)->GetMethodName()->ToModifiedUtf8().c_str()); in TEST_F()
229 EXPECT_EQ(36, trace_array->Get(0)->GetLineNumber()); in TEST_F()
231 ASSERT_TRUE(trace_array->Get(1) != nullptr); in TEST_F()
233 trace_array->Get(1)->GetDeclaringClass()->ToModifiedUtf8().c_str()); in TEST_F()
235 trace_array->Get(1)->GetFileName()->ToModifiedUtf8().c_str()); in TEST_F()
236 EXPECT_STREQ("f", trace_array->Get(1)->GetMethodName()->ToModifiedUtf8().c_str()); in TEST_F()
[all …]
/art/runtime/interpreter/
Dunstarted_runtime_test.cc135 EXPECT_OBJ_PTR_EQ(data.GetReference(i), array->Get(static_cast<int32_t>(i))) << i; in CheckObjectArray()
181 hs_misc.NewHandle(CreateObjectArray(self, dst_component_handle.Get(), dst_data))); in RunArrayCopy()
186 src_handle.Get(), in RunArrayCopy()
188 dst_handle.Get(), in RunArrayCopy()
191 CheckObjectArray(dst_handle.Get(), expected_result); in RunArrayCopy()
342 tmp->SetVRegReference(0, h_test_string.Get()); in TEST_F()
345 tmp->SetVRegReference(3, h_char_array.Get()); in TEST_F()
419 shadow_frame->SetVRegReference(0, reference_empty_string.Get()); in TEST_F()
420 shadow_frame->SetVRegReference(1, string_arg.Get()); in TEST_F()
468 hs_misc.NewHandle(CreateObjectArray(self, object_class.Get(), hs_data))); in TEST_F()
[all …]

123456789