/art/compiler/linker/arm/ |
relative_patcher_thumb2_test.cc | 109 const std::vector<uint8_t> expected_code = CompileMethodCallThunk(); local 110 if (output_.size() < thunk_offset + expected_code.size()) { 112 << "thunk_offset + expected_code.size() == " << (thunk_offset + expected_code.size()); 115 ArrayRef<const uint8_t> linked_code(&output_[thunk_offset], expected_code.size()); 116 if (linked_code == ArrayRef<const uint8_t>(expected_code)) { 120 DumpDiff(ArrayRef<const uint8_t>(expected_code), linked_code); 206 const uint8_t expected_code[] = { local 213 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); 223 static const uint8_t expected_code[] = local 267 auto expected_code = GenNopsAndBl(0u, kBlMinus256 | ((diff >> 1) & 0xffu)); local 296 auto expected_code = GenNopsAndBl(3u, kBlPlus0 | ((diff >> 1) & 0xffu)); local 319 auto expected_code = GenNopsAndBl(3u, kBlPlusMax); local 341 auto expected_code = GenNopsAndBl(2u, kBlMinusMax); local 375 auto expected_code = GenNopsAndBl(2u, 0xf3ffd700 | ((diff >> 1) & 0xffu)); local 403 auto expected_code = GenNopsAndBl(3u, kBlPlus0 | ((diff >> 1) & 0xffu)); local [all...] |
/art/compiler/linker/ |
relative_patcher_test.h | 191 bool CheckLinkedMethod(MethodReference method_ref, const ArrayRef<const uint8_t>& expected_code) { 202 CHECK_EQ(compiled_methods_[idx]->GetQuickCode().size(), expected_code.size()); 208 CHECK_LE(offset + expected_code.size(), output_.size()); 209 ArrayRef<const uint8_t> linked_code(&output_[offset], expected_code.size()); 210 if (linked_code == expected_code) { 214 DumpDiff(expected_code, linked_code); 218 void DumpDiff(const ArrayRef<const uint8_t>& expected_code, 225 for (size_t i = 0; i != expected_code.size(); ++i) { 226 expected_hex << " " << digits[expected_code[i] >> 4] << digits[expected_code[i] & 0xf] [all...] |
/art/compiler/linker/x86/ |
relative_patcher_x86_test.cc | 51 static const uint8_t expected_code[] = { local 54 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); 100 static const uint8_t expected_code[] = { local 107 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); 130 static const uint8_t expected_code[] = { local 139 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); 162 static const uint8_t expected_code[] = { local 171 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code)));
|
/art/compiler/linker/x86_64/ |
relative_patcher_x86_64_test.cc | 71 static const uint8_t expected_code[] = { local 74 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); 120 static const uint8_t expected_code[] = { local 127 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); 143 static const uint8_t expected_code[] = { local 150 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); 167 static const uint8_t expected_code[] = { local 174 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code)));
|
/art/compiler/linker/arm64/ |
relative_patcher_arm64_test.cc | 174 const std::vector<uint8_t> expected_code = CompileMethodCallThunk(); local 175 if (output_.size() < thunk_offset + expected_code.size()) { 177 << "thunk_offset + expected_code.size() == " << (thunk_offset + expected_code.size()); 180 ArrayRef<const uint8_t> linked_code(&output_[thunk_offset], expected_code.size()); 181 if (linked_code == ArrayRef<const uint8_t>(expected_code)) { 185 DumpDiff(ArrayRef<const uint8_t>(expected_code), linked_code); 261 auto expected_code = GenNopsAndAdrpLdr(num_nops, method1_offset, target_offset); local 262 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); 285 auto expected_code = GenNopsAndAdrpAdd(num_nops, method1_offset, string_offset) local 326 auto expected_code = GenNopsAndAdrpAndUse(num_nops, method1_offset, target_offset, use_insn); local 347 auto expected_code = GenNopsAndAdrpAndUse(num_nops, method1_offset, target_offset, use_insn); local 523 const std::vector<uint8_t> expected_code = RawCode({kBlPlus0}); local 563 auto expected_code = GenNopsAndBl(0u, kBlPlus0 | ((diff >> 2) & 0x03ffffffu)); local 594 auto expected_code = GenNopsAndBl(1u, kBlPlus0 | (diff >> 2)); local 623 auto expected_code = GenNopsAndBl(1u, kBlPlusMax); local 647 auto expected_code = GenNopsAndBl(0u, kBlMinusMax); local 683 auto expected_code = GenNopsAndBl(0u, kBlPlus0 | (diff >> 2)); local 713 auto expected_code = GenNopsAndBl(1u, kBlPlus0 | (diff >> 2)); local 926 const std::vector<uint8_t> expected_code = RawCode({cbnz, ldr}); local 1167 const std::vector<uint8_t> expected_code = RawCode({ldr, cbnz}); local [all...] |
/art/compiler/linker/mips/ |
relative_patcher_mips32r6_test.cc | 65 const uint8_t expected_code[] = { local 69 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code)));
|
relative_patcher_mips_test.cc | 73 const uint8_t expected_code[] = { local 79 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code)));
|
/system/bt/vendor_libs/test_vendor_lib/test/ |
packet_stream_unittest.cc | 91 auto expected_code = event->GetEventCode(); local 110 EXPECT_EQ(expected_code, event_header[1]);
|
/art/compiler/linker/mips64/ |
relative_patcher_mips64_test.cc | 72 const uint8_t expected_code[] = { local 76 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code)));
|
/external/valgrind/none/tests/amd64-darwin/ |
bug341419.c | 117 int expected_code = (using_int3 ? 1 : 0); local 118 ASSERT_EQ(si->si_code, expected_code);
|
/external/valgrind/none/tests/x86-darwin/ |
bug341419.c | 118 int expected_code = (using_int3 ? 1 : 0); local 119 ASSERT_EQ(si->si_code, expected_code);
|
/system/update_engine/payload_consumer/ |
download_action_unittest.cc | 67 explicit DownloadActionTestProcessorDelegate(ErrorCode expected_code) 69 expected_code_(expected_code) {} 180 ErrorCode expected_code = ErrorCode::kSuccess; local 182 expected_code = ErrorCode::kDownloadWriteError; 183 DownloadActionTestProcessorDelegate delegate(expected_code);
|
/external/libbrillo/brillo/dbus/ |
dbus_object_unittest.cc | 143 void ExpectError(dbus::Response* response, const std::string& expected_code) { 145 EXPECT_EQ(expected_code, response->GetErrorName());
|
/system/update_engine/ |
omaha_request_action_unittest.cc | 184 ErrorCode expected_code, 306 ErrorCode expected_code, 327 delegate.expected_code_ = expected_code; [all...] |