Home
last modified time | relevance | path

Searched refs:get (Results 1 – 25 of 562) sorted by relevance

12345678910>>...23

/art/compiler/utils/
Datomic_dex_ref_map_test.cc38 EXPECT_FALSE(map.Get(MethodReference(dex.get(), 1), &value)); in TEST_F()
39 EXPECT_FALSE(map.HaveDexFile(dex.get())); in TEST_F()
41 EXPECT_TRUE(map.Insert(MethodReference(dex.get(), 1), 0, 1) == Map::kInsertResultInvalidDexFile); in TEST_F()
42 map.AddDexFile(dex.get()); in TEST_F()
43 EXPECT_TRUE(map.HaveDexFile(dex.get())); in TEST_F()
46 EXPECT_TRUE(registered_dex_files[0] == dex.get()); in TEST_F()
49 EXPECT_TRUE(map.Get(MethodReference(dex.get(), 1), &value)); in TEST_F()
53 EXPECT_TRUE(map.Insert(MethodReference(dex.get(), 1), 0, kInsertValue) == in TEST_F()
55 EXPECT_TRUE(map.Get(MethodReference(dex.get(), 1), &value)); in TEST_F()
58 EXPECT_TRUE(map.Insert(MethodReference(dex.get(), 2), 0, kInsertValue2) == in TEST_F()
[all …]
/art/runtime/arch/arm64/
Dinstruction_set_features_arm64_test.cc28 ASSERT_TRUE(arm64_features.get() != nullptr) << error_msg; in TEST()
30 EXPECT_TRUE(arm64_features->Equals(arm64_features.get())); in TEST()
36 ASSERT_TRUE(cortex_a57_features.get() != nullptr) << error_msg; in TEST()
38 EXPECT_TRUE(cortex_a57_features->Equals(cortex_a57_features.get())); in TEST()
39 EXPECT_TRUE(cortex_a57_features->HasAtLeast(arm64_features.get())); in TEST()
46 ASSERT_TRUE(cortex_a73_features.get() != nullptr) << error_msg; in TEST()
48 EXPECT_TRUE(cortex_a73_features->Equals(cortex_a73_features.get())); in TEST()
60 ASSERT_TRUE(cortex_a35_features.get() != nullptr) << error_msg; in TEST()
62 EXPECT_TRUE(cortex_a35_features->Equals(cortex_a35_features.get())); in TEST()
69 ASSERT_TRUE(kryo_features.get() != nullptr) << error_msg; in TEST()
[all …]
/art/runtime/arch/arm/
Dinstruction_set_features_arm_test.cc28 ASSERT_TRUE(krait_features.get() != nullptr) << error_msg; in TEST()
31 EXPECT_TRUE(krait_features->Equals(krait_features.get())); in TEST()
40 ASSERT_TRUE(kryo_features.get() != nullptr) << error_msg; in TEST()
43 EXPECT_TRUE(kryo_features->Equals(kryo_features.get())); in TEST()
52 ASSERT_TRUE(generic_features.get() != nullptr) << error_msg; in TEST()
54 EXPECT_TRUE(generic_features->Equals(generic_features.get())); in TEST()
55 EXPECT_FALSE(generic_features->Equals(krait_features.get())); in TEST()
56 EXPECT_FALSE(krait_features->Equals(generic_features.get())); in TEST()
65 EXPECT_TRUE(arm6_features.get() == nullptr); in TEST()
73 ASSERT_TRUE(base_features.get() != nullptr) << error_msg; in TEST()
[all …]
/art/runtime/arch/x86/
Dinstruction_set_features_x86_test.cc28 ASSERT_TRUE(x86_features.get() != nullptr) << error_msg; in TEST()
30 EXPECT_TRUE(x86_features->Equals(x86_features.get())); in TEST()
43 ASSERT_TRUE(x86_features.get() != nullptr) << error_msg; in TEST()
45 EXPECT_TRUE(x86_features->Equals(x86_features.get())); in TEST()
53 ASSERT_TRUE(x86_64_features.get() != nullptr) << error_msg; in TEST()
55 EXPECT_TRUE(x86_64_features->Equals(x86_64_features.get())); in TEST()
60 EXPECT_FALSE(x86_64_features->Equals(x86_features.get())); in TEST()
68 ASSERT_TRUE(x86_features.get() != nullptr) << error_msg; in TEST()
70 EXPECT_TRUE(x86_features->Equals(x86_features.get())); in TEST()
78 ASSERT_TRUE(x86_64_features.get() != nullptr) << error_msg; in TEST()
[all …]
/art/runtime/arch/
Dinstruction_set_features_test.cc62 ASSERT_TRUE(property_features.get() != nullptr) << error_msg;
64 EXPECT_TRUE(property_features->HasAtLeast(instruction_set_features.get()))
65 << "System property features: " << *property_features.get()
66 << "\nFeatures from build: " << *instruction_set_features.get();
101 ASSERT_TRUE(base_features.get() != nullptr) << error_msg;
105 ASSERT_TRUE(property_features.get() != nullptr) << error_msg;
107 EXPECT_TRUE(property_features->HasAtLeast(instruction_set_features.get()))
108 << "System property features: " << *property_features.get()
109 << "\nFeatures from build: " << *instruction_set_features.get();
127 EXPECT_TRUE(cpuinfo_features->HasAtLeast(instruction_set_features.get()))
[all …]
/art/test/712-varhandle-invocations/src/
DVarHandleTypeConversionTests.java41 vh.get(this); in doTest()
696 vh.get(); in doTest()
697 boolean z = (boolean) vh.get(); in doTest()
699 byte b = (byte) vh.get(); in doTest()
704 char c = (char) vh.get(); in doTest()
709 short s = (short) vh.get(); in doTest()
714 int i = (int) vh.get(); in doTest()
719 long j = (long) vh.get(); in doTest()
724 float f = (float) vh.get(); in doTest()
729 double d = (double) vh.get(); in doTest()
[all …]
/art/tools/ahat/src/test/com/android/ahat/
DDiffFieldsTest.java144 expected.add(DiffedFieldValue.matched(a.get(0), b.get(0))); in basicDiff()
145 expected.add(DiffedFieldValue.deleted(b.get(1))); in basicDiff()
146 expected.add(DiffedFieldValue.matched(a.get(1), b.get(2))); in basicDiff()
147 expected.add(DiffedFieldValue.matched(a.get(2), b.get(3))); in basicDiff()
148 expected.add(DiffedFieldValue.added(a.get(3))); in basicDiff()
149 expected.add(DiffedFieldValue.matched(a.get(4), b.get(4))); in basicDiff()
150 expected.add(DiffedFieldValue.matched(a.get(5), b.get(5))); in basicDiff()
151 expected.add(DiffedFieldValue.deleted(b.get(6))); in basicDiff()
182 expected.add(DiffedFieldValue.matched(a.get(0), b.get(3))); in reorderedDiff()
183 expected.add(DiffedFieldValue.matched(a.get(1), b.get(1))); in reorderedDiff()
[all …]
DQueryTest.java30 assertEquals("bar", query.get("foo", "not found")); in simple()
31 assertEquals("42", query.get("answer", "not found")); in simple()
34 assertEquals("not found", query.get("bar", "not found")); in simple()
35 assertEquals("really not found", query.get("bar", "really not found")); in simple()
51 assertEquals("sludge", query.get("foo", "not found")); in multiValue()
54 assertEquals("not found", query.get("bar", "not found")); in multiValue()
66 assertEquals("not found", query.get("foo", "not found")); in empty()
/art/libartbase/base/unix_file/
Drandom_access_file_test.h78 TestReadContent(content, file.get()); in TestRead()
80 CleanUp(file.get()); in TestRead()
87 ASSERT_EQ(-EINVAL, file->Read(buf.get(), 0, -123)); in TestReadContent()
90 ASSERT_EQ(content.size(), static_cast<uint64_t>(file->Read(buf.get(), buf_size, 0))); in TestReadContent()
91 ASSERT_EQ(std::string(buf.get(), content.size()), content); in TestReadContent()
96 ASSERT_EQ(short_request, static_cast<uint64_t>(file->Read(buf.get(), short_request, 0))); in TestReadContent()
97 ASSERT_EQ(std::string(buf.get(), short_request), in TestReadContent()
103 ASSERT_EQ(short_request, static_cast<uint64_t>(file->Read(buf.get(), short_request, in TestReadContent()
105 ASSERT_EQ(std::string(buf.get(), short_request), in TestReadContent()
109 ASSERT_EQ(0, file->Read(buf.get(), buf_size, file->GetLength())); in TestReadContent()
[all …]
/art/test/986-native-method-bind/
Dnative_bind.cc38 jmethodID targetMethod = env->GetStaticMethodID(klass.get(), function, "()V"); in doUpPrintCall()
39 env->CallStaticVoidMethod(klass.get(), targetMethod); in doUpPrintCall()
63 ScopedLocalRef<jobject> method_obj(env, env->ToReflectedMethod(method_class.get(), m, false)); in doJvmtiMethodBind()
67 env->ThrowNew(exception_class.get(), "dladdr failure!"); in doJvmtiMethodBind()
73 klass.get(), in doJvmtiMethodBind()
81 env->CallStaticObjectMethod(klass.get(), in doJvmtiMethodBind()
83 method_obj.get(), in doJvmtiMethodBind()
84 sym_name.get()))); in doJvmtiMethodBind()
85 const char* new_symbol_chars = env->GetStringUTFChars(new_symbol.get(), nullptr); in doJvmtiMethodBind()
90 env->ThrowNew(exception_class.get(), "dlsym failure!"); in doJvmtiMethodBind()
[all …]
/art/test/ti-agent/
Djni_helper.h36 if (obj_class.get() == nullptr) { in CreateObjectArray()
40 ScopedLocalRef<jobjectArray> ret(env, env->NewObjectArray(length, obj_class.get(), nullptr)); in CreateObjectArray()
41 if (ret.get() == nullptr) { in CreateObjectArray()
47 env->SetObjectArrayElement(ret.get(), static_cast<jint>(i), element); in CreateObjectArray()
63 if (exc_class.get() == nullptr) { in JniThrowNullPointerException()
67 return env->ThrowNew(exc_class.get(), msg) == JNI_OK; in JniThrowNullPointerException()
/art/dex2oat/linker/
Delf_writer_test.cc67 ASSERT_TRUE(file.get() != nullptr) << elf_filename; in TEST_F()
70 std::unique_ptr<ElfFile> ef(ElfFile::Open(file.get(), in TEST_F()
75 CHECK(ef.get() != nullptr) << error_msg; in TEST_F()
82 std::unique_ptr<ElfFile> ef(ElfFile::Open(file.get(), in TEST_F()
87 CHECK(ef.get() != nullptr) << error_msg; in TEST_F()
94 std::unique_ptr<ElfFile> ef(ElfFile::Open(file.get(), in TEST_F()
99 CHECK(ef.get() != nullptr) << error_msg; in TEST_F()
111 ef->Load(file.get(), /*executable=*/ false, /*low_4gb=*/ false, &reservation, &error_msg); in TEST_F()
129 ASSERT_TRUE(file.get() != nullptr); in TEST_F()
132 std::unique_ptr<ElfFile> ef(ElfFile::Open(file.get(), in TEST_F()
[all …]
/art/tools/ahat/src/main/com/android/ahat/heapdump/
DAhatArrayInstance.java58 @Override public Value get(int index) { in initialize()
74 @Override public Value get(int index) { in initialize()
89 @Override public Value get(int index) { in initialize()
104 @Override public Value get(int index) { in initialize()
120 @Override public Value get(int index) { in initialize()
135 @Override public Value get(int index) { in initialize()
150 @Override public Value get(int index) { in initialize()
165 @Override public Value get(int index) { in initialize()
180 @Override public Value get(int index) { in initialize()
193 return Value.getType(mValues.get(0)).size(mRefSize) * getLength(); in getExtraJavaSize()
[all …]
/art/runtime/jit/
Djit_memory_region_test.cc63 CHECK_NE(fd.get(), -1); in BasicTest()
67 mmap(nullptr, kPageSize, PROT_READ | PROT_WRITE, MAP_SHARED, fd.get(), 0)); in BasicTest()
76 bool res = JitMemoryRegion::ProtectZygoteMemory(fd.get(), &error_msg); in BasicTest()
85 mmap(nullptr, kPageSize, PROT_READ | PROT_WRITE, MAP_SHARED, fd.get(), 0)); in BasicTest()
119 CHECK_NE(fd.get(), -1); in TestUnmapWritableAfterFork()
123 mmap(nullptr, kPageSize, PROT_READ | PROT_WRITE, MAP_SHARED, fd.get(), 0)); in TestUnmapWritableAfterFork()
133 mmap(nullptr, kPageSize, PROT_READ, MAP_SHARED, fd.get(), 0)); in TestUnmapWritableAfterFork()
137 bool res = JitMemoryRegion::ProtectZygoteMemory(fd.get(), &error_msg); in TestUnmapWritableAfterFork()
145 CHECK_NE(fd2.get(), -1); in TestUnmapWritableAfterFork()
147 mmap(nullptr, kPageSize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2.get(), 0)); in TestUnmapWritableAfterFork()
[all …]
/art/runtime/
Dreflection_test.cc49 CHECK(aioobe.get() != nullptr); in SetUp()
50 aioobe_ = reinterpret_cast<jclass>(env_->NewGlobalRef(aioobe.get())); in SetUp()
53 CHECK(ase.get() != nullptr); in SetUp()
54 ase_ = reinterpret_cast<jclass>(env_->NewGlobalRef(ase.get())); in SetUp()
58 CHECK(sioobe.get() != nullptr); in SetUp()
59 sioobe_ = reinterpret_cast<jclass>(env_->NewGlobalRef(sioobe.get())); in SetUp()
143 InvokeWithJValues(soa, receiver_ref.get(), jni::EncodeArtMethod(method), nullptr); in InvokeNopMethod()
155 JValue result = InvokeWithJValues(soa, receiver_ref.get(), jni::EncodeArtMethod(method), args); in InvokeIdentityByteMethod()
159 result = InvokeWithJValues(soa, receiver_ref.get(), jni::EncodeArtMethod(method), args); in InvokeIdentityByteMethod()
163 result = InvokeWithJValues(soa, receiver_ref.get(), jni::EncodeArtMethod(method), args); in InvokeIdentityByteMethod()
[all …]
/art/test/931-agent-thread/
Dagent_thread.cc96 if (thread_name.get() == nullptr) { in Java_art_Test931_testAgentThread()
101 if (thread_klass.get() == nullptr) { in Java_art_Test931_testAgentThread()
104 ScopedLocalRef<jobject> thread(env, env->AllocObject(thread_klass.get())); in Java_art_Test931_testAgentThread()
105 if (thread.get() == nullptr) { in Java_art_Test931_testAgentThread()
123 jmethodID initID = env->GetMethodID(thread_klass.get(), in Java_art_Test931_testAgentThread()
129 env->CallNonvirtualVoidMethod(thread.get(), in Java_art_Test931_testAgentThread()
130 thread_klass.get(), in Java_art_Test931_testAgentThread()
132 thread_group.get(), in Java_art_Test931_testAgentThread()
133 thread_name.get(), in Java_art_Test931_testAgentThread()
152 jvmtiError result = jvmti_env->RunAgentThread(thread.get(), AgentMain, &data, data.priority); in Java_art_Test931_testAgentThread()
[all …]
/art/test/testrunner/
Denv.py33 val = _env.get(var)
54 return _env.get(key)
57 path_to_top = _env.get('ANDROID_BUILD_TOP')
87 ART_TEST_CHROOT = _env.get('ART_TEST_CHROOT')
88 ART_TEST_ANDROID_ROOT = _env.get('ART_TEST_ANDROID_ROOT')
89 ART_TEST_ANDROID_ART_ROOT = _env.get('ART_TEST_ANDROID_ART_ROOT')
90 ART_TEST_ANDROID_I18N_ROOT = _env.get('ART_TEST_ANDROID_I18N_ROOT')
91 ART_TEST_ANDROID_TZDATA_ROOT = _env.get('ART_TEST_ANDROID_TZDATA_ROOT')
95 EXTRA_DISABLED_TESTS = set(_env.get("ART_TEST_RUN_TEST_SKIP", "").split())
/art/test/1914-get-local-instance/
Dlocal_instance.cc40 jmethodID method = env->GetMethodID(runnable.get(), "run", "()V"); in Java_art_Test1914_00024TargetClass_NativeInstanceMethod()
46 jmethodID report = env->GetStaticMethodID(Test1914.get(), "reportValue", "(Ljava/lang/Object;)V"); in Java_art_Test1914_00024TargetClass_NativeInstanceMethod()
48 env->CallStaticVoidMethod(Test1914.get(), report, thiz); in Java_art_Test1914_00024TargetClass_NativeInstanceMethod()
55 jmethodID method = env->GetMethodID(runnable.get(), "run", "()V"); in Java_art_Test1914_NativeStaticMethod()
61 jmethodID report = env->GetStaticMethodID(Test1914.get(), "reportValue", "(Ljava/lang/Object;)V"); in Java_art_Test1914_NativeStaticMethod()
63 env->CallStaticVoidMethod(Test1914.get(), report, nullptr); in Java_art_Test1914_NativeStaticMethod()
/art/libartbase/base/
Dscoped_flock_test.cc36 ASSERT_TRUE(file_lock.get() != nullptr); in TEST_F()
43 ASSERT_TRUE(second_lock.get() == nullptr); in TEST_F()
52 ASSERT_TRUE(file_lock.get() != nullptr); in TEST_F()
58 ASSERT_TRUE(file_lock.get() == nullptr); in TEST_F()
Dfile_utils_test.cc75 char* dir = dirname(root_dup.get()); in TEST_F()
96 EXPECT_STREQ(real_root.get(), real_root3.get()) << error_msg; in TEST_F()
98 EXPECT_STRNE(real_root3.get(), "") << error_msg; in TEST_F()
122 char* dir = dirname(root_dup.get()); in TEST_F()
150 EXPECT_STREQ(real_root.get(), real_root3.get()) << error_msg; in TEST_F()
152 EXPECT_STRNE(real_root3.get(), "") << error_msg; in TEST_F()
/art/tools/hiddenapi/
Dhiddenapi_test.cc121 if (dex_file.get() == nullptr) { in OpenDex()
274 ASSERT_NE(dex_file.get(), nullptr); in TEST_F()
285 ASSERT_NE(dex_file.get(), nullptr); in TEST_F()
296 ASSERT_NE(dex_file.get(), nullptr); in TEST_F()
307 ASSERT_NE(dex_file.get(), nullptr); in TEST_F()
317 ASSERT_EQ(dex_file.get(), nullptr); in TEST_F()
326 ASSERT_EQ(dex_file.get(), nullptr); in TEST_F()
335 ASSERT_EQ(dex_file.get(), nullptr); in TEST_F()
345 ASSERT_NE(dex_file.get(), nullptr); in TEST_F()
356 ASSERT_NE(dex_file.get(), nullptr); in TEST_F()
[all …]
/art/dex2oat/
Dcommon_compiler_driver_test.cc45 verification_results_.get()); in CompileAll()
48 down_cast<QuickCompilerCallbacks*>(callbacks_.get())->SetVerificationResults( in CompileAll()
50 compiler_options_->verification_results_ = verification_results_.get(); in CompileAll()
53 down_cast<QuickCompilerCallbacks*>(callbacks_.get())->SetVerificationResults( in CompileAll()
54 verification_results_.get()); in CompileAll()
93 compiler_driver_.reset(new CompilerDriver(compiler_options_.get(), in CreateCompilerDriver()
104 callbacks->SetVerificationResults(verification_results_.get()); in SetUpRuntimeOptions()
/art/dalvikvm/
Ddalvikvm.cc34 if (reflected.get() == nullptr) { in IsMethodPublic()
50 int modifiers = env->CallIntMethod(reflected.get(), mid); in IsMethodPublic()
64 if (args.get() == nullptr) { in InvokeMain()
76 if (klass.get() == nullptr) { in InvokeMain()
82 jmethodID method = env->GetStaticMethodID(klass.get(), "main", "([Ljava/lang/String;)V"); in InvokeMain()
91 if (!IsMethodPublic(env, klass.get(), method)) { in InvokeMain()
98 env->CallStaticVoidMethod(klass.get(), method, args.get()); in InvokeMain()
170 init_args.options = options.get(); in dalvikvm()
/art/openjdkjvmti/
Dti_properties.cc114 array_data_ptr.get()[0] = libpath_data.get(); in GetSystemProperties()
124 array_data_ptr.get()[1] = classpath_data.get(); in GetSystemProperties()
134 array_data_ptr.get()[i + 2] = data.get(); in GetSystemProperties()
183 if (input_str.get() == nullptr) { in GetLibraryPath()
191 input_str.get())); in GetLibraryPath()
196 if (prop_res.get() == nullptr) { in GetLibraryPath()
201 ScopedUtfChars chars(jni_env, reinterpret_cast<jstring>(prop_res.get())); in GetLibraryPath()
/art/libprofile/profile/
Dprofile_boot_info_test.cc49 std::vector<const DexFile*> dex_files = { dex.get() }; in TEST_F()
52 saved_info.Add(dex.get(), 0); in TEST_F()
70 dex_files2.push_back(file.get()); in TEST_F()
74 saved_info.Add(dex_files[0].get(), 42); in TEST_F()
75 saved_info.Add(dex_files[1].get(), 108); in TEST_F()
76 saved_info.Add(dex_files[1].get(), 54); in TEST_F()
99 saved_info.Add(dex.get(), 42); in TEST_F()
108 dex_files2.push_back(file.get()); in TEST_F()

12345678910>>...23