/art/runtime/arch/x86/ |
D | instruction_set_features_x86_test.cc | 27 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/mips/ |
D | instruction_set_features_mips_test.cc | 27 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/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/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() 45 ASSERT_TRUE(cortex_a73_features.get() != nullptr) << error_msg; in TEST() 47 EXPECT_TRUE(cortex_a73_features->Equals(cortex_a73_features.get())); in TEST() 57 ASSERT_TRUE(cortex_a35_features.get() != nullptr) << error_msg; in TEST() 59 EXPECT_TRUE(cortex_a35_features->Equals(cortex_a35_features.get())); in TEST() 65 ASSERT_TRUE(kryo_features.get() != nullptr) << error_msg; in TEST() [all …]
|
/art/runtime/arch/ |
D | instruction_set_features_test.cc | 55 ASSERT_TRUE(property_features.get() != nullptr) << error_msg; 57 EXPECT_TRUE(property_features->HasAtLeast(instruction_set_features.get())) 58 << "System property features: " << *property_features.get() 59 << "\nFeatures from build: " << *instruction_set_features.get(); 88 ASSERT_TRUE(base_features.get() != nullptr) << error_msg; 92 ASSERT_TRUE(property_features.get() != nullptr) << error_msg; 94 EXPECT_TRUE(property_features->HasAtLeast(instruction_set_features.get())) 95 << "System property features: " << *property_features.get() 96 << "\nFeatures from build: " << *instruction_set_features.get(); 114 EXPECT_TRUE(cpuinfo_features->HasAtLeast(instruction_set_features.get())) [all …]
|
/art/test/712-varhandle-invocations/src/ |
D | VarHandleTypeConversionTests.java | 41 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/ |
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 …]
|
D | QueryTest.java | 30 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/ |
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/test/testrunner/ |
D | env.py | 33 val = _env.get(var) 54 return _env.get(key) 57 path_to_top = _env.get('ANDROID_BUILD_TOP') 82 DEX2OAT_HOST_INSTRUCTION_SET_FEATURES = _env.get('DEX2OAT_HOST_INSTRUCTION_SET_FEATURES') 88 HOST_2ND_ARCH_PREFIX_DEX2OAT_HOST_INSTRUCTION_SET_FEATURES = _env.get( 91 ART_TEST_CHROOT = _env.get('ART_TEST_CHROOT') 92 ART_TEST_ANDROID_ROOT = _env.get('ART_TEST_ANDROID_ROOT') 93 ART_TEST_ANDROID_RUNTIME_ROOT = _env.get('ART_TEST_ANDROID_RUNTIME_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())
|
/art/test/986-native-method-bind/ |
D | native_bind.cc | 38 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/ |
D | jni_helper.h | 36 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/runtime/arch/mips64/ |
D | instruction_set_features_mips64_test.cc | 27 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/dex2oat/linker/ |
D | elf_writer_test.cc | 67 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/ |
D | AhatArrayInstance.java | 58 @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/ |
D | reflection_test.cc | 49 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 …]
|
D | class_loader_context_test.cc | 246 *info.shared_libraries[shared_library_index].get(); in VerifyClassLoaderInfoSL() 276 VerifyContextSize(context.get(), 1); in TEST_F() 277 VerifyClassLoaderPCL(context.get(), 0, ""); in TEST_F() 283 VerifyContextSize(context.get(), 0); in TEST_F() 288 VerifyContextSize(context.get(), 1); in TEST_F() 289 VerifyClassLoaderPCL(context.get(), 0, "a.dex"); in TEST_F() 294 VerifyContextSize(context.get(), 1); in TEST_F() 295 VerifyClassLoaderDLC(context.get(), 0, "a.dex"); in TEST_F() 320 VerifyContextSize(context.get(), 3); in TEST_F() 321 VerifyClassLoaderPCL(context.get(), 0, "a.dex:b.dex"); in TEST_F() [all …]
|
/art/test/1914-get-local-instance/ |
D | local_instance.cc | 40 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/test/931-agent-thread/ |
D | agent_thread.cc | 96 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/1940-ddms-ext/ |
D | ddm_ext.cc | 68 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/libartbase/base/ |
D | scoped_flock_test.cc | 36 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/tools/hiddenapi/ |
D | hiddenapi_test.cc | 122 if (dex_file.get() == nullptr) { in OpenDex() 275 ASSERT_NE(dex_file.get(), nullptr); in TEST_F() 286 ASSERT_NE(dex_file.get(), nullptr); in TEST_F() 297 ASSERT_NE(dex_file.get(), nullptr); in TEST_F() 308 ASSERT_NE(dex_file.get(), nullptr); in TEST_F() 318 ASSERT_EQ(dex_file.get(), nullptr); in TEST_F() 327 ASSERT_EQ(dex_file.get(), nullptr); in TEST_F() 336 ASSERT_EQ(dex_file.get(), nullptr); in TEST_F() 346 ASSERT_NE(dex_file.get(), nullptr); in TEST_F() 357 ASSERT_NE(dex_file.get(), nullptr); in TEST_F() [all …]
|
/art/dex2oat/ |
D | common_compiler_driver_test.cc | 45 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/ |
D | dalvikvm.cc | 34 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/ |
D | ti_properties.cc | 114 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()
|