Home
last modified time | relevance | path

Searched refs:tmp (Results 1 – 25 of 40) sorted by relevance

12

/art/runtime/
Ddex_file_verifier_test.cc59 std::vector<uint8_t> tmp; in DecodeBase64() local
80 tmp.push_back((t >> 16) & 255); in DecodeBase64()
82 tmp.push_back((t >> 8) & 255); in DecodeBase64()
85 tmp.push_back(t & 255); in DecodeBase64()
94 std::unique_ptr<uint8_t[]> dst(new uint8_t[tmp.size()]); in DecodeBase64()
96 *dst_size = tmp.size(); in DecodeBase64()
100 std::copy(tmp.begin(), tmp.end(), dst.get()); in DecodeBase64()
126 std::vector<std::unique_ptr<const DexFile>> tmp; in OpenDexFileBase64() local
127 bool success = DexFile::Open(location, location, error_msg, &tmp); in OpenDexFileBase64()
129 EXPECT_EQ(1U, tmp.size()); in OpenDexFileBase64()
[all …]
Dzip_archive_test.cc42 ScratchFile tmp; in TEST_F() local
43 ASSERT_NE(-1, tmp.GetFd()); in TEST_F()
44 std::unique_ptr<File> file(new File(tmp.GetFd(), tmp.GetFilename(), false)); in TEST_F()
52 int fd = open(tmp.GetFilename().c_str(), O_RDONLY); in TEST_F()
Ddex_file_test.cc65 std::vector<uint8_t> tmp; in DecodeBase64() local
86 tmp.push_back((t >> 16) & 255); in DecodeBase64()
88 tmp.push_back((t >> 8) & 255); in DecodeBase64()
91 tmp.push_back(t & 255); in DecodeBase64()
100 std::unique_ptr<uint8_t[]> dst(new uint8_t[tmp.size()]); in DecodeBase64()
102 *dst_size = tmp.size(); in DecodeBase64()
106 std::copy(tmp.begin(), tmp.end(), dst.get()); in DecodeBase64()
158 std::vector<std::unique_ptr<const DexFile>> tmp; in OpenDexFileBase64() local
159 bool success = DexFile::Open(location, location, &error_msg, &tmp); in OpenDexFileBase64()
161 EXPECT_EQ(1U, tmp.size()); in OpenDexFileBase64()
[all …]
Dutils.cc1050 char* tmp = buffer; in RunCommand() local
1052 char* new_line = strchr(tmp, '\n'); in RunCommand()
1055 if (*tmp != 0) { in RunCommand()
1060 *os << tmp; in RunCommand()
1069 *os << tmp; in RunCommand()
1071 tmp = new_line + 1; in RunCommand()
Dcommon_runtime_test.cc537 std::vector<const DexFile*> tmp(GetDexFiles(jclass_loader)); in GetFirstDexFile() local
538 DCHECK(!tmp.empty()); in GetFirstDexFile()
539 const DexFile* ret = tmp[0]; in GetFirstDexFile()
/art/runtime/interpreter/
Dunstarted_runtime_test.cc80 ShadowFrame* tmp = ShadowFrame::CreateDeoptimizedFrame(10, nullptr, nullptr, 0); in TEST_F() local
83 tmp->SetVRegLong(0, static_cast<int64_t>(reinterpret_cast<intptr_t>(base_ptr + i))); in TEST_F()
85 UnstartedMemoryPeekByte(self, tmp, &result, 0); in TEST_F()
90 ShadowFrame::DeleteDeoptimizedFrame(tmp); in TEST_F()
102 ShadowFrame* tmp = ShadowFrame::CreateDeoptimizedFrame(10, nullptr, nullptr, 0); in TEST_F() local
106 tmp->SetVRegLong(0, static_cast<int64_t>(reinterpret_cast<intptr_t>(base_ptr + i))); in TEST_F()
108 UnstartedMemoryPeekShort(self, tmp, &result, 0); in TEST_F()
115 ShadowFrame::DeleteDeoptimizedFrame(tmp); in TEST_F()
127 ShadowFrame* tmp = ShadowFrame::CreateDeoptimizedFrame(10, nullptr, nullptr, 0); in TEST_F() local
131 tmp->SetVRegLong(0, static_cast<int64_t>(reinterpret_cast<intptr_t>(base_ptr + i))); in TEST_F()
[all …]
/art/test/704-multiply-accumulate/src/
DMain.java43 int tmp = 0; in test_int() local
46 tmp = i*c; in test_int()
48 result = i - tmp; in test_int()
70 tmp++; in test_int()
91 tmp = obj.ia; in test_int()
92 result = result + tmp; in test_int()
104 long tmp = 0; in test_long() local
107 tmp = i*c; in test_long()
109 result = i - tmp; in test_long()
131 tmp++; in test_long()
[all …]
/art/compiler/
Doutput_stream_test.cc65 ScratchFile tmp; in TEST_F() local
66 FileOutputStream output_stream(tmp.GetFile()); in TEST_F()
69 std::unique_ptr<File> in(OS::OpenFileForReading(tmp.GetFilename().c_str())); in TEST_F()
78 ScratchFile tmp; in TEST_F() local
80 std::unique_ptr<FileOutputStream> file_output_stream(new FileOutputStream(tmp.GetFile())); in TEST_F()
86 std::unique_ptr<File> in(OS::OpenFileForReading(tmp.GetFilename().c_str())); in TEST_F()
Doat_test.cc104 ScratchFile tmp; in TEST_F() local
119 tmp.GetFile()); in TEST_F()
125 std::unique_ptr<OatFile> oat_file(OatFile::Open(tmp.GetFilename(), tmp.GetFilename(), nullptr, in TEST_F()
/art/test/115-native-bridge/
Dnativebridge.cc197 struct sigaction tmp; in trampoline_Java_Main_testSignal() local
198 sigemptyset(&tmp.sa_mask); in trampoline_Java_Main_testSignal()
199 tmp.sa_sigaction = test_sigaction_handler; in trampoline_Java_Main_testSignal()
201 tmp.sa_restorer = nullptr; in trampoline_Java_Main_testSignal()
203 sigaction(SIGSEGV, &tmp, nullptr); in trampoline_Java_Main_testSignal()
275 char* tmp = new char[len + 10]; in native_bridge_loadLibrary() local
276 strncpy(tmp, libpath, len); in native_bridge_loadLibrary()
277 tmp[len - 3] = '2'; in native_bridge_loadLibrary()
278 tmp[len - 2] = '.'; in native_bridge_loadLibrary()
279 tmp[len - 1] = 's'; in native_bridge_loadLibrary()
[all …]
/art/runtime/base/unix_file/
Dfd_file_test.cc70 art::ScratchFile tmp; in TEST_F() local
72 ASSERT_TRUE(file.Open(tmp.GetFilename(), O_RDONLY)); in TEST_F()
86 art::ScratchFile tmp; in TEST_F() local
88 ASSERT_TRUE(file.Open(tmp.GetFilename(), O_RDWR)); in TEST_F()
/art/compiler/optimizing/
Dcode_generator_utils.cc59 uint64_t tmp = exp + sign_bit; in CalculateMagicAndShiftForDivRem() local
60 uint64_t abs_nc = tmp - 1 - (tmp % abs_d); in CalculateMagicAndShiftForDivRem()
/art/sigchainlib/
Dsigchain.cc340 struct sigaction tmp; in SetSpecialSignalHandlerFn() local
341 tmp.sa_sigaction = sigchainlib_managed_handler_sigaction; in SetSpecialSignalHandlerFn()
342 sigemptyset(&tmp.sa_mask); in SetSpecialSignalHandlerFn()
343 tmp.sa_flags = SA_SIGINFO | SA_ONSTACK; in SetSpecialSignalHandlerFn()
345 tmp.sa_restorer = nullptr; in SetSpecialSignalHandlerFn()
347 user_sigactions[signal].Claim(tmp); in SetSpecialSignalHandlerFn()
/art/tools/
Dsymbolize.sh41 adb pull $1/$2 /tmp || exit 1
43 oatdump --symbolize=/tmp/$2 --output=$OUT/symbols/$1/$2
/art/test/134-nodex2oat-nofallback/
Dexpected.txt3 java.lang.ClassNotFoundException: Didn't find class "Main" on path: DexPathList[[zip file "/tmp/use…
21 …Caused by: java.io.IOException: Failed to open oat file from dex location '/tmp/user/test-12345/13…
23 …Caused by: java.io.IOException: Failed to open oat file from /tmp/user/test-12345/x86/134-nodex2oa…
34 java.lang.ClassNotFoundException: Didn't find class "Main" on path: DexPathList[[zip file "/tmp/use…
52 …Caused by: java.io.IOException: Failed to open oat file from dex location '/tmp/user/test-12345/13…
54 …Caused by: java.io.IOException: Failed to open oat file from /tmp/user/test-12345/x86/134-nodex2oa…
/art/compiler/dex/quick/mips/
Dutility_mips.cc200 int64_t tmp = value; in LoadConstantWideNoClobber() local
202 while ((tmp & 1) == 0) { in LoadConstantWideNoClobber()
203 tmp >>= 1; in LoadConstantWideNoClobber()
207 if (IsUint<16>(tmp)) { in LoadConstantWideNoClobber()
208 res = NewLIR3(kMipsOri, r_dest.GetReg(), rZEROd, tmp); in LoadConstantWideNoClobber()
211 } else if (IsInt<16>(tmp)) { in LoadConstantWideNoClobber()
212 res = NewLIR3(kMips64Daddiu, r_dest.GetReg(), rZEROd, tmp); in LoadConstantWideNoClobber()
215 } else if (IsInt<32>(tmp)) { in LoadConstantWideNoClobber()
217 res = NewLIR2(kMipsLui, r_dest.GetReg(), tmp >> 16); in LoadConstantWideNoClobber()
218 NewLIR3(kMipsOri, r_dest.GetReg(), r_dest.GetReg(), tmp); in LoadConstantWideNoClobber()
[all …]
Dtarget_mips.cc777 RegStorage tmp = AllocTemp(); in CheckSuspendUsingLoad() local
780 LoadWordDisp(TargetPtrReg(kSelf), Thread::ThreadSuspendTriggerOffset<8>().Int32Value(), tmp); in CheckSuspendUsingLoad()
782 LoadWordDisp(TargetPtrReg(kSelf), Thread::ThreadSuspendTriggerOffset<4>().Int32Value(), tmp); in CheckSuspendUsingLoad()
784 LIR *inst = LoadWordDisp(tmp, 0, tmp); in CheckSuspendUsingLoad()
785 FreeTemp(tmp); in CheckSuspendUsingLoad()
/art/compiler/utils/arm/
Dassembler_arm32_test.cc464 size_t tmp; in CountHelper() local
466 tmp = GetRegisters().size(); in CountHelper()
468 tmp--;; // Approximation... in CountHelper()
470 return tmp; in CountHelper()
483 size_t tmp; in CountHelper() local
485 tmp = GetRegisters().size(); in CountHelper()
487 tmp--;; // Approximation... in CountHelper()
490 tmp = GetShiftOperands().size(); in CountHelper()
492 tmp = GetConditions().size(); in CountHelper()
495 tmp = 1; in CountHelper()
[all …]
/art/build/
DAndroid.common.mk27 GCOV_PREFIX := /data/local/tmp/gcov
DAndroid.common_path.mk41 ART_HOST_TEST_DIR := /tmp/test-art-$(shell echo $$PPID)
/art/runtime/native/
Ddalvik_system_DexFile.cc87 jlong* tmp = long_data; in ConvertNativeToJavaArray() local
89 *tmp = reinterpret_cast<uintptr_t>(dex_file.get()); in ConvertNativeToJavaArray()
90 tmp++; in ConvertNativeToJavaArray()
/art/compiler/dex/quick/x86/
Dint_x86.cc466 RegStorage tmp = AllocTypedTempWide(false, kCoreReg); in GenFusedLongCmpImmBranch() local
467 LoadConstantWide(tmp, val); in GenFusedLongCmpImmBranch()
468 OpRegReg(kOpCmp, rl_src1.reg, tmp); in GenFusedLongCmpImmBranch()
469 FreeTemp(tmp); in GenFusedLongCmpImmBranch()
504 RegStorage tmp = AllocTypedTempWide(false, kCoreReg); in GenFusedLongCmpImmBranch() local
505 LoadConstantWide(tmp, val); in GenFusedLongCmpImmBranch()
506 OpRegReg(kOpSub, tmp.GetLow(), low_reg); in GenFusedLongCmpImmBranch()
507 OpRegReg(kOpSbc, tmp.GetHigh(), high_reg); in GenFusedLongCmpImmBranch()
509 FreeTemp(tmp); in GenFusedLongCmpImmBranch()
561 uint64_t tmp = exp + ((is_long) ? static_cast<uint64_t>(divisor) >> 63 : in CalculateMagicAndShift() local
[all …]
/art/compiler/utils/mips64/
Dassembler_mips64.cc675 int64_t tmp = value >> shift_cnt; in LoadConst64() local
676 if (IsUint<16>(tmp)) { in LoadConst64()
677 Ori(rd, ZERO, tmp); in LoadConst64()
682 } else if (IsInt<16>(tmp)) { in LoadConst64()
683 Daddiu(rd, ZERO, tmp); in LoadConst64()
688 } else if (IsInt<32>(tmp)) { in LoadConst64()
690 Lui(rd, tmp >> 16); in LoadConst64()
691 Ori(rd, rd, tmp); in LoadConst64()
698 tmp = value >> shift_cnt; in LoadConst64()
699 if (IsUint<16>(tmp)) { in LoadConst64()
[all …]
/art/cmdline/
Dtoken_range.h376 TokenList tmp(begin(), end()); in Join()
377 return art::Join(tmp, separator); in Join()
/art/test/004-ThreadStress/src/
DMain.java295 Set<Operation> tmp = new HashSet<>(map.keySet()); in normalize() local
296 for (Operation op : tmp) { in normalize()

12