Home
last modified time | relevance | path

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

12345678910>>...20

/art/runtime/arch/mips/
Dinstruction_set_features_mips_test.cc27 ASSERT_TRUE(mips_features.get() != nullptr) << error_msg; in TEST()
29 EXPECT_TRUE(mips_features->Equals(mips_features.get())); in TEST()
38 ASSERT_TRUE(mips32r1_features.get() != nullptr) << error_msg; in TEST()
40 EXPECT_TRUE(mips32r1_features->Equals(mips32r1_features.get())); in TEST()
46 ASSERT_TRUE(mips_default_features.get() != nullptr) << error_msg; in TEST()
47 EXPECT_FALSE(mips32r1_features->Equals(mips_default_features.get())); in TEST()
54 ASSERT_TRUE(mips32r2_features.get() != nullptr) << error_msg; in TEST()
56 EXPECT_TRUE(mips32r2_features->Equals(mips32r2_features.get())); in TEST()
62 ASSERT_TRUE(mips_default_features.get() != nullptr) << error_msg; in TEST()
63 EXPECT_TRUE(mips32r2_features->Equals(mips_default_features.get())); in TEST()
[all …]
/art/runtime/arch/x86/
Dinstruction_set_features_x86_test.cc27 ASSERT_TRUE(x86_features.get() != nullptr) << error_msg; in TEST()
29 EXPECT_TRUE(x86_features->Equals(x86_features.get())); in TEST()
40 ASSERT_TRUE(x86_features.get() != nullptr) << error_msg; in TEST()
42 EXPECT_TRUE(x86_features->Equals(x86_features.get())); in TEST()
50 ASSERT_TRUE(x86_default_features.get() != nullptr) << error_msg; in TEST()
52 EXPECT_TRUE(x86_default_features->Equals(x86_default_features.get())); in TEST()
60 ASSERT_TRUE(x86_64_features.get() != nullptr) << error_msg; in TEST()
62 EXPECT_TRUE(x86_64_features->Equals(x86_64_features.get())); in TEST()
67 EXPECT_FALSE(x86_64_features->Equals(x86_features.get())); in TEST()
68 EXPECT_FALSE(x86_64_features->Equals(x86_default_features.get())); in TEST()
[all …]
/art/runtime/arch/
Dinstruction_set_features_test.cc52 ASSERT_TRUE(property_features.get() != nullptr) << error_msg;
54 EXPECT_TRUE(property_features->HasAtLeast(instruction_set_features.get()))
55 << "System property features: " << *property_features.get()
56 << "\nFeatures from build: " << *instruction_set_features.get();
85 ASSERT_TRUE(base_features.get() != nullptr) << error_msg;
89 ASSERT_TRUE(property_features.get() != nullptr) << error_msg;
91 EXPECT_TRUE(property_features->HasAtLeast(instruction_set_features.get()))
92 << "System property features: " << *property_features.get()
93 << "\nFeatures from build: " << *instruction_set_features.get();
111 EXPECT_TRUE(cpuinfo_features->HasAtLeast(instruction_set_features.get()))
[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(denver_features.get() != nullptr) << error_msg; in TEST()
54 EXPECT_TRUE(denver_features->Equals(denver_features.get())); in TEST()
55 EXPECT_TRUE(denver_features->HasAtLeast(krait_features.get())); in TEST()
56 EXPECT_FALSE(krait_features->Equals(denver_features.get())); in TEST()
57 EXPECT_FALSE(krait_features->HasAtLeast(denver_features.get())); in TEST()
66 ASSERT_TRUE(generic_features.get() != nullptr) << error_msg; in TEST()
[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()
44 ASSERT_TRUE(cortex_a73_features.get() != nullptr) << error_msg; in TEST()
46 EXPECT_TRUE(cortex_a73_features->Equals(cortex_a73_features.get())); in TEST()
52 ASSERT_TRUE(cortex_a35_features.get() != nullptr) << error_msg; in TEST()
54 EXPECT_TRUE(cortex_a35_features->Equals(cortex_a35_features.get())); in TEST()
60 ASSERT_TRUE(kryo_features.get() != nullptr) << error_msg; in TEST()
62 EXPECT_TRUE(kryo_features->Equals(kryo_features.get())); in TEST()
[all …]
/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(map.Get(MethodReference(dex.get(), 1), &value)); in TEST_F()
50 EXPECT_TRUE(map.Insert(MethodReference(dex.get(), 1), 0, kInsertValue) == in TEST_F()
52 EXPECT_TRUE(map.Get(MethodReference(dex.get(), 1), &value)); in TEST_F()
55 EXPECT_TRUE(map.Insert(MethodReference(dex.get(), 2), 0, kInsertValue2) == in TEST_F()
57 EXPECT_TRUE(map.Get(MethodReference(dex.get(), 1), &value)); in TEST_F()
[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()
50 assertEquals("sludge", query.get("foo", "not found")); in multiValue()
53 assertEquals("not found", query.get("bar", "not found")); in multiValue()
64 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/runtime/arch/mips64/
Dinstruction_set_features_mips64_test.cc27 ASSERT_TRUE(mips64_features.get() != nullptr) << error_msg; in TEST()
29 EXPECT_TRUE(mips64_features->Equals(mips64_features.get())); in TEST()
38 ASSERT_TRUE(mips64r6_features.get() != nullptr) << error_msg; in TEST()
40 EXPECT_TRUE(mips64r6_features->Equals(mips64r6_features.get())); in TEST()
46 ASSERT_TRUE(mips64_default_features.get() != nullptr) << error_msg; in TEST()
47 EXPECT_TRUE(mips64r6_features->Equals(mips64_default_features.get())); in TEST()
/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/tools/ahat/src/main/com/android/ahat/heapdump/
DAhatArrayInstance.java56 @Override public Value get(int index) { in initialize()
72 @Override public Value get(int index) { in initialize()
87 @Override public Value get(int index) { in initialize()
102 @Override public Value get(int index) { in initialize()
118 @Override public Value get(int index) { in initialize()
133 @Override public Value get(int index) { in initialize()
148 @Override public Value get(int index) { in initialize()
163 @Override public Value get(int index) { in initialize()
178 @Override public Value get(int index) { in initialize()
191 return Value.getType(mValues.get(0)).size * getLength(); in getExtraJavaSize()
[all …]
/art/runtime/
Dreflection_test.cc48 CHECK(aioobe.get() != nullptr); in SetUp()
49 aioobe_ = reinterpret_cast<jclass>(env_->NewGlobalRef(aioobe.get())); in SetUp()
52 CHECK(ase.get() != nullptr); in SetUp()
53 ase_ = reinterpret_cast<jclass>(env_->NewGlobalRef(ase.get())); in SetUp()
57 CHECK(sioobe.get() != nullptr); in SetUp()
58 sioobe_ = reinterpret_cast<jclass>(env_->NewGlobalRef(sioobe.get())); in SetUp()
142 InvokeWithJValues(soa, receiver_ref.get(), jni::EncodeArtMethod(method), nullptr); in InvokeNopMethod()
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 …]
/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/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/dex2oat/linker/
Delf_writer_test.cc64 ASSERT_TRUE(file.get() != nullptr) << elf_filename; in TEST_F()
67 std::unique_ptr<ElfFile> ef(ElfFile::Open(file.get(), in TEST_F()
72 CHECK(ef.get() != nullptr) << error_msg; in TEST_F()
79 std::unique_ptr<ElfFile> ef(ElfFile::Open(file.get(), in TEST_F()
84 CHECK(ef.get() != nullptr) << error_msg; in TEST_F()
92 std::unique_ptr<ElfFile> ef(ElfFile::Open(file.get(), in TEST_F()
98 CHECK(ef.get() != nullptr) << error_msg; in TEST_F()
99 CHECK(ef->Load(file.get(), false, /*low_4gb*/false, &error_msg)) << error_msg; in TEST_F()
115 ASSERT_TRUE(file.get() != nullptr); in TEST_F()
118 std::unique_ptr<ElfFile> ef(ElfFile::Open(file.get(), in TEST_F()
[all …]
/art/test/1940-ddms-ext/
Dddm_ext.cc68 jfieldID type_field_id = env->GetFieldID(chunk_class.get(), "type", "I"); in Java_art_Test1940_processChunk()
69 jfieldID offset_field_id = env->GetFieldID(chunk_class.get(), "offset", "I"); in Java_art_Test1940_processChunk()
70 jfieldID length_field_id = env->GetFieldID(chunk_class.get(), "length", "I"); in Java_art_Test1940_processChunk()
71 jfieldID data_field_id = env->GetFieldID(chunk_class.get(), "data", "[B"); in Java_art_Test1940_processChunk()
80 ScopedByteArrayRO byte_data(env, chunk_buf.get()); in Java_art_Test1940_processChunk()
94 env->SetByteArrayRegion(chunk_data.get(), 0, out_size, out_data); in Java_art_Test1940_processChunk()
96 ScopedLocalRef<jobject> res(env, env->NewObject(chunk_class.get(), in Java_art_Test1940_processChunk()
97 env->GetMethodID(chunk_class.get(), in Java_art_Test1940_processChunk()
101 chunk_data.get(), in Java_art_Test1940_processChunk()
121 jnienv->SetByteArrayRegion(res.get(), 0, size, bytes); in PublishCB()
[all …]
/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/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()
/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/test/1922-owned-monitors-info/
Downed_monitors.cc46 if (run_class.get() == nullptr) { in doCallRunnable()
49 jmethodID run = env->GetMethodID(run_class.get(), "run", "()V"); in doCallRunnable()
100 if (ret_class.get() == nullptr) { in Java_art_Test1922_getOwnedMonitorStackDepthInfo()
104 jmethodID constructor = env->GetMethodID(ret_class.get(), "<init>", "(ILjava/lang/Object;)V"); in Java_art_Test1922_getOwnedMonitorStackDepthInfo()
110 return env->NewObject(ret_class.get(), in Java_art_Test1922_getOwnedMonitorStackDepthInfo()
126 if (obj_class.get() == nullptr) { in Java_art_Test1922_getOwnedMonitors()
130 jobjectArray ret = env->NewObjectArray(len, obj_class.get(), nullptr); in Java_art_Test1922_getOwnedMonitors()
/art/test/testrunner/
Denv.py23 val = _env.get(var)
91 return _env.get(key)
94 path_to_top = _env.get('ANDROID_BUILD_TOP')
125 DEX2OAT_HOST_INSTRUCTION_SET_FEATURES = _env.get('DEX2OAT_HOST_INSTRUCTION_SET_FEATURES')
131 HOST_2ND_ARCH_PREFIX_DEX2OAT_HOST_INSTRUCTION_SET_FEATURES = _env.get(
134 ART_TEST_ANDROID_ROOT = _env.get('ART_TEST_ANDROID_ROOT')
138 EXTRA_DISABLED_TESTS = set(_env.get("ART_TEST_RUN_TEST_SKIP", "").split())
/art/test/070-nio-buffer/src/
DMain.java139 if (directBuf.put(1, byteValue).get(1) != byteValue) { in storeValues()
142 if (shortBuf.put(1, shortValue).get(1) != shortValue) { in storeValues()
145 if (charBuf.put(2, charValue).get(2) != charValue) { in storeValues()
148 if (intBuf.put(2, intValue).get(2) != intValue) { in storeValues()
151 if (floatBuf.put(3, floatValue).get(3) != floatValue) { in storeValues()
154 if (longBuf.put(2, longValue).get(2) != longValue) { in storeValues()
157 if (doubleBuf.put(3, doubleValue).get(3) != doubleValue) { in storeValues()
164 byte b = directBuf.get(); in storeValues()

12345678910>>...20