/art/runtime/arch/x86/ |
D | instruction_set_features_x86_test.cc | 28 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/compiler/utils/ |
D | atomic_dex_ref_map_test.cc | 39 EXPECT_FALSE(map.Get(MethodReference(dex.get(), 1), &value)); in TEST_F() 40 EXPECT_FALSE(map.HaveDexFile(dex.get())); in TEST_F() 42 EXPECT_TRUE(map.Insert(MethodReference(dex.get(), 1), 0, 1) == Map::kInsertResultInvalidDexFile); in TEST_F() 43 map.AddDexFile(dex.get()); in TEST_F() 44 EXPECT_TRUE(map.HaveDexFile(dex.get())); in TEST_F() 47 EXPECT_TRUE(registered_dex_files[0] == dex.get()); in TEST_F() 50 EXPECT_TRUE(map.Get(MethodReference(dex.get(), 1), &value)); in TEST_F() 54 EXPECT_TRUE(map.Insert(MethodReference(dex.get(), 1), 0, kInsertValue) == in TEST_F() 56 EXPECT_TRUE(map.Get(MethodReference(dex.get(), 1), &value)); in TEST_F() 59 EXPECT_TRUE(map.Insert(MethodReference(dex.get(), 2), 0, kInsertValue2) == in TEST_F() [all …]
|
/art/runtime/arch/arm64/ |
D | instruction_set_features_arm64_test.cc | 28 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/test/testrunner/ |
D | env.py | 33 val = _env.get(var) 54 return _env.get(key) 57 path_to_top = _env.get('ANDROID_BUILD_TOP') 75 ART_TEST_RUN_TEST_BUILD_PATH = _env.get('ART_TEST_RUN_TEST_BUILD_PATH') 90 ART_TEST_CHROOT = _env.get('ART_TEST_CHROOT') 91 ART_TEST_ANDROID_ROOT = _env.get('ART_TEST_ANDROID_ROOT') 92 ART_TEST_ANDROID_ART_ROOT = _env.get('ART_TEST_ANDROID_ART_ROOT') 93 ART_TEST_ANDROID_I18N_ROOT = _env.get('ART_TEST_ANDROID_I18N_ROOT') 94 ART_TEST_ANDROID_TZDATA_ROOT = _env.get('ART_TEST_ANDROID_TZDATA_ROOT') 98 EXTRA_DISABLED_TESTS = set(_env.get("ART_TEST_RUN_TEST_SKIP", "").split()) [all …]
|
/art/runtime/arch/arm/ |
D | instruction_set_features_arm_test.cc | 28 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/libnativeloader/ |
D | native_loader_api_test.cpp | 57 jstring err = CreateClassLoaderNamespace(env.get(), in CallCreateClassLoaderNamespace() 59 env.get()->NewStringUTF(class_loader), in CallCreateClassLoaderNamespace() 61 env.get()->NewStringUTF("/data/app/foo/classes.dex"), in CallCreateClassLoaderNamespace() 62 env.get()->NewStringUTF("/data/app/foo"), in CallCreateClassLoaderNamespace() 65 EXPECT_EQ(err, nullptr) << "Error is: " << std::string(ScopedUtfChars(env.get(), err).c_str()); in CallCreateClassLoaderNamespace() 73 EXPECT_NE(FindNamespaceByClassLoader(env.get(), env.get()->NewStringUTF("my_classloader_1")), in TEST_F() 81 OpenNativeLibrary(env.get(), in TEST_F() 84 env.get()->NewStringUTF("my_classloader"), in TEST_F() 103 env.get(), env.get()->NewStringUTF("my_classloader_2")); in TEST_F() 114 EXPECT_EQ(nullptr, FindNamespaceByClassLoader(env.get(), env.get()->NewStringUTF("namespace"))); in TEST_F() [all …]
|
/art/test/712-varhandle-invocations/src/ |
D | VarHandleTypeConversionTests.java | 41 vh.get(this); in doTest() 74 int i = (int) vh.get(this); in doTest() 81 int i = (int) vh.get(this); in doTest() 88 int i = (int) vh.get(this); in doTest() 93 int i = (int) vh.get(this); in doTest() 744 vh.get(); in doTest() 745 boolean z = (boolean) vh.get(); in doTest() 747 byte b = (byte) vh.get(); in doTest() 752 char c = (char) vh.get(); in doTest() 757 short s = (short) vh.get(); in doTest() [all …]
|
D | VarHandleArrayTests.java | 156 assertThrowsIOOBE(() -> vhShort.get(array, -1)); in testByteArrayViewVarHandle() 157 assertThrowsIOOBE(() -> vhShort.get(array, Integer.MIN_VALUE)); in testByteArrayViewVarHandle() 158 assertThrowsIOOBE(() -> vhShort.get(array, array.length)); in testByteArrayViewVarHandle() 159 assertThrowsIOOBE(() -> vhShort.get(array, array.length - 1)); in testByteArrayViewVarHandle() 160 assertThrowsIOOBE(() -> vhShort.get(array, Integer.MAX_VALUE)); in testByteArrayViewVarHandle() 166 assertEquals(value, (short) vhShort.get(array, i)); in testByteArrayViewVarHandle() 187 assertThrowsIOOBE(() -> vhInt.get(array, -1)); in testByteArrayViewVarHandle() 188 assertThrowsIOOBE(() -> vhInt.get(array, Integer.MIN_VALUE)); in testByteArrayViewVarHandle() 189 assertThrowsIOOBE(() -> vhInt.get(array, array.length)); in testByteArrayViewVarHandle() 190 assertThrowsIOOBE(() -> vhInt.get(array, array.length - 1)); in testByteArrayViewVarHandle() [all …]
|
/art/runtime/arch/ |
D | instruction_set_features_test.cc | 62 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/tools/ahat/src/test/com/android/ahat/ |
D | DiffFieldsTest.java | 144 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 …]
|
/art/runtime/jit/ |
D | jit_memory_region_test.cc | 63 CHECK_NE(fd.get(), -1); in BasicTest() 67 mmap(nullptr, page_size, 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, page_size, PROT_READ | PROT_WRITE, MAP_SHARED, fd.get(), 0)); in BasicTest() 119 CHECK_NE(fd.get(), -1); in TestUnmapWritableAfterFork() 123 mmap(nullptr, page_size, PROT_READ | PROT_WRITE, MAP_SHARED, fd.get(), 0)); in TestUnmapWritableAfterFork() 133 mmap(nullptr, page_size, 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, page_size, PROT_READ | PROT_WRITE, MAP_SHARED, fd2.get(), 0)); in TestUnmapWritableAfterFork() [all …]
|
/art/libartbase/base/unix_file/ |
D | random_access_file_test.h | 78 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/runtime/ |
D | reflection_test.cc | 48 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/461-get-reference-vreg/ |
D | Android.bp | 3 // Build rules for ART run-test `461-get-reference-vreg`. 9 // to get the below license kinds: 16 name: "art-run-test-461-get-reference-vreg", 21 ":art-run-test-461-get-reference-vreg-expected-stdout", 22 ":art-run-test-461-get-reference-vreg-expected-stderr", 28 name: "art-run-test-461-get-reference-vreg-expected-stdout", 29 out: ["art-run-test-461-get-reference-vreg-expected-stdout.txt"], 36 name: "art-run-test-461-get-reference-vreg-expected-stderr", 37 out: ["art-run-test-461-get-reference-vreg-expected-stderr.txt"],
|
/art/test/1901-get-bytecodes/ |
D | Android.bp | 3 // Build rules for ART run-test `1901-get-bytecodes`. 9 // to get the below license kinds: 16 name: "art-run-test-1901-get-bytecodes", 21 ":art-run-test-1901-get-bytecodes-expected-stdout", 22 ":art-run-test-1901-get-bytecodes-expected-stderr", 28 name: "art-run-test-1901-get-bytecodes-expected-stdout", 29 out: ["art-run-test-1901-get-bytecodes-expected-stdout.txt"], 36 name: "art-run-test-1901-get-bytecodes-expected-stderr", 37 out: ["art-run-test-1901-get-bytecodes-expected-stderr.txt"],
|
/art/test/2044-get-stack-traces/ |
D | Android.bp | 3 // Build rules for ART run-test `2044-get-stack-traces`. 9 // to get the below license kinds: 16 name: "art-run-test-2044-get-stack-traces", 21 ":art-run-test-2044-get-stack-traces-expected-stdout", 22 ":art-run-test-2044-get-stack-traces-expected-stderr", 28 name: "art-run-test-2044-get-stack-traces-expected-stdout", 29 out: ["art-run-test-2044-get-stack-traces-expected-stdout.txt"], 36 name: "art-run-test-2044-get-stack-traces-expected-stderr", 37 out: ["art-run-test-2044-get-stack-traces-expected-stderr.txt"],
|
/art/test/1917-get-stack-frame/ |
D | Android.bp | 3 // Build rules for ART run-test `1917-get-stack-frame`. 9 // to get the below license kinds: 16 name: "art-run-test-1917-get-stack-frame", 21 ":art-run-test-1917-get-stack-frame-expected-stdout", 22 ":art-run-test-1917-get-stack-frame-expected-stderr", 28 name: "art-run-test-1917-get-stack-frame-expected-stdout", 29 out: ["art-run-test-1917-get-stack-frame-expected-stdout.txt"], 36 name: "art-run-test-1917-get-stack-frame-expected-stderr", 37 out: ["art-run-test-1917-get-stack-frame-expected-stderr.txt"],
|
/art/test/1914-get-local-instance/ |
D | Android.bp | 3 // Build rules for ART run-test `1914-get-local-instance`. 9 // to get the below license kinds: 16 name: "art-run-test-1914-get-local-instance", 21 ":art-run-test-1914-get-local-instance-expected-stdout", 22 ":art-run-test-1914-get-local-instance-expected-stderr", 28 name: "art-run-test-1914-get-local-instance-expected-stdout", 29 out: ["art-run-test-1914-get-local-instance-expected-stdout.txt"], 36 name: "art-run-test-1914-get-local-instance-expected-stderr", 37 out: ["art-run-test-1914-get-local-instance-expected-stderr.txt"],
|
/art/test/454-get-vreg/ |
D | Android.bp | 3 // Build rules for ART run-test `454-get-vreg`. 9 // to get the below license kinds: 16 name: "art-run-test-454-get-vreg", 21 ":art-run-test-454-get-vreg-expected-stdout", 22 ":art-run-test-454-get-vreg-expected-stderr", 28 name: "art-run-test-454-get-vreg-expected-stdout", 29 out: ["art-run-test-454-get-vreg-expected-stdout.txt"], 36 name: "art-run-test-454-get-vreg-expected-stderr", 37 out: ["art-run-test-454-get-vreg-expected-stderr.txt"],
|
/art/test/911-get-stack-trace/ |
D | Android.bp | 3 // Build rules for ART run-test `911-get-stack-trace`. 9 // to get the below license kinds: 16 name: "art-run-test-911-get-stack-trace", 21 ":art-run-test-911-get-stack-trace-expected-stdout", 22 ":art-run-test-911-get-stack-trace-expected-stderr", 28 name: "art-run-test-911-get-stack-trace-expected-stdout", 29 out: ["art-run-test-911-get-stack-trace-expected-stdout.txt"], 36 name: "art-run-test-911-get-stack-trace-expected-stderr", 37 out: ["art-run-test-911-get-stack-trace-expected-stderr.txt"],
|
/art/test/466-get-live-vreg/ |
D | Android.bp | 3 // Build rules for ART run-test `466-get-live-vreg`. 9 // to get the below license kinds: 16 name: "art-run-test-466-get-live-vreg", 21 ":art-run-test-466-get-live-vreg-expected-stdout", 22 ":art-run-test-466-get-live-vreg-expected-stderr", 28 name: "art-run-test-466-get-live-vreg-expected-stdout", 29 out: ["art-run-test-466-get-live-vreg-expected-stdout.txt"], 36 name: "art-run-test-466-get-live-vreg-expected-stderr", 37 out: ["art-run-test-466-get-live-vreg-expected-stderr.txt"],
|
/art/test/907-get-loaded-classes/ |
D | Android.bp | 3 // Build rules for ART run-test `907-get-loaded-classes`. 9 // to get the below license kinds: 16 name: "art-run-test-907-get-loaded-classes", 21 ":art-run-test-907-get-loaded-classes-expected-stdout", 22 ":art-run-test-907-get-loaded-classes-expected-stderr", 28 name: "art-run-test-907-get-loaded-classes-expected-stdout", 29 out: ["art-run-test-907-get-loaded-classes-expected-stdout.txt"], 36 name: "art-run-test-907-get-loaded-classes-expected-stderr", 37 out: ["art-run-test-907-get-loaded-classes-expected-stderr.txt"],
|
/art/test/647-jni-get-field-id/ |
D | Android.bp | 3 // Build rules for ART run-test `647-jni-get-field-id`. 9 // to get the below license kinds: 16 name: "art-run-test-647-jni-get-field-id", 21 ":art-run-test-647-jni-get-field-id-expected-stdout", 22 ":art-run-test-647-jni-get-field-id-expected-stderr", 28 name: "art-run-test-647-jni-get-field-id-expected-stdout", 29 out: ["art-run-test-647-jni-get-field-id-expected-stdout.txt"], 36 name: "art-run-test-647-jni-get-field-id-expected-stderr", 37 out: ["art-run-test-647-jni-get-field-id-expected-stderr.txt"],
|
/art/test/1935-get-set-current-frame-jit/ |
D | Android.bp | 3 // Build rules for ART run-test `1935-get-set-current-frame-jit`. 9 // to get the below license kinds: 16 name: "art-run-test-1935-get-set-current-frame-jit", 21 ":art-run-test-1935-get-set-current-frame-jit-expected-stdout", 22 ":art-run-test-1935-get-set-current-frame-jit-expected-stderr", 28 name: "art-run-test-1935-get-set-current-frame-jit-expected-stdout", 29 out: ["art-run-test-1935-get-set-current-frame-jit-expected-stdout.txt"], 36 name: "art-run-test-1935-get-set-current-frame-jit-expected-stderr", 37 out: ["art-run-test-1935-get-set-current-frame-jit-expected-stderr.txt"],
|
/art/test/1967-get-set-local-bad-slot/ |
D | Android.bp | 3 // Build rules for ART run-test `1967-get-set-local-bad-slot`. 9 // to get the below license kinds: 16 name: "art-run-test-1967-get-set-local-bad-slot", 21 ":art-run-test-1967-get-set-local-bad-slot-expected-stdout", 22 ":art-run-test-1967-get-set-local-bad-slot-expected-stderr", 28 name: "art-run-test-1967-get-set-local-bad-slot-expected-stdout", 29 out: ["art-run-test-1967-get-set-local-bad-slot-expected-stdout.txt"], 36 name: "art-run-test-1967-get-set-local-bad-slot-expected-stderr", 37 out: ["art-run-test-1967-get-set-local-bad-slot-expected-stderr.txt"],
|