/art/compiler/utils/ |
H A D | test_dex_file_builder_test.cc | 32 const char* dex_location = "TestDexFileBuilder/SimpleTest"; local 33 std::unique_ptr<const DexFile> dex_file(builder.Build(dex_location)); 35 EXPECT_STREQ(dex_location, dex_file->GetLocation().c_str());
|
H A D | test_dex_file_builder.h | 82 std::unique_ptr<const DexFile> Build(const std::string& dex_location) { argument 236 dex_location,
|
/art/dexoptanalyzer/ |
H A D | dexoptanalyzer_test.cc | 88 std::string dex_location = GetScratchDir() + "/DexNoOat.jar"; local 89 Copy(GetDexSrc1(), dex_location); local 91 Verify(dex_location, CompilerFilter::kSpeed); 92 Verify(dex_location, CompilerFilter::kExtract); 93 Verify(dex_location, CompilerFilter::kQuicken); 94 Verify(dex_location, CompilerFilter::kSpeedProfile); 99 std::string dex_location = GetScratchDir() + "/OatUpToDate.jar"; local 100 Copy(GetDexSrc1(), dex_location); local 101 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kSpeed); 103 Verify(dex_location, CompilerFilte 111 std::string dex_location = GetScratchDir() + "/ProfileOatUpToDate.jar"; local 112 Copy(GetDexSrc1(), dex_location); local 123 std::string dex_location = GetScratchDir() + "/MultiDexOatUpToDate.jar"; local 124 Copy(GetMultiDexSrc1(), dex_location); local 132 std::string dex_location = GetScratchDir() + "/MultiDexSecondaryOutOfDate.jar"; local 135 Copy(GetMultiDexSrc1(), dex_location); local 140 Copy(GetMultiDexSrc2(), dex_location); local 149 std::string dex_location = GetScratchDir() + "/OatDexOutOfDate.jar"; local 153 Copy(GetDexSrc1(), dex_location); local 155 Copy(GetDexSrc2(), dex_location); local 164 std::string dex_location = GetScratchDir() + "/OatImageOutOfDate.jar"; local 166 Copy(GetDexSrc1(), dex_location); local 183 std::string dex_location = GetScratchDir() + "/OatVerifyAtRuntimeImageOutOfDate.jar"; local 185 Copy(GetDexSrc1(), dex_location); local 198 std::string dex_location = GetScratchDir() + "/DexOdexNoOat.jar"; local 201 Copy(GetDexSrc1(), dex_location); local 210 std::string dex_location = GetScratchDir() + "/StrippedDexOdexNoOat.jar"; local 213 Copy(GetDexSrc1(), dex_location); local 217 Copy(GetStrippedDexSrc1(), dex_location); local 224 std::string dex_location = GetScratchDir() + "/StrippedDexOdexOat.jar"; local 228 Copy(GetDexSrc2(), dex_location); local 232 Copy(GetDexSrc1(), dex_location); local 236 Copy(GetStrippedDexSrc1(), dex_location); local 246 std::string dex_location = GetScratchDir() + "/ResourceOnlyDex.jar"; local 248 Copy(GetStrippedDexSrc1(), dex_location); local 258 std::string dex_location = GetScratchDir() + "/OdexOatOverlap.jar"; local 262 Copy(GetDexSrc1(), dex_location); local 274 std::string dex_location = GetScratchDir() + "/DexPicOdexNoOat.jar"; local 277 Copy(GetDexSrc1(), dex_location); local 286 std::string dex_location = GetScratchDir() + "/DexVerifyAtRuntimeOdexNoOat.jar"; local 289 Copy(GetDexSrc1(), dex_location); local 298 std::string dex_location = GetScratchDir() + "/LongDexExtension.jarx"; local 299 Copy(GetDexSrc1(), dex_location); local 306 std::string dex_location = "/xx"; local [all...] |
/art/runtime/ |
H A D | dex_cache_resolved_classes.h | 31 DexCacheResolvedClasses(const std::string& dex_location, argument 34 : dex_location_(dex_location),
|
H A D | dexopt_test.cc | 47 void DexoptTest::GenerateOatForTest(const std::string& dex_location, argument 68 args.push_back("--dex-file=" + dex_location); 108 dex_location.c_str(), 145 void DexoptTest::GenerateOdexForTest(const std::string& dex_location, argument 148 GenerateOatForTest(dex_location, 156 void DexoptTest::GeneratePicOdexForTest(const std::string& dex_location, argument 159 GenerateOatForTest(dex_location, 167 void DexoptTest::GenerateOatForTest(const char* dex_location, argument 175 dex_location, kRuntimeISA, &oat_location, &error_msg)) << error_msg; 176 GenerateOatForTest(dex_location, 184 GenerateOatForTest(const char* dex_location, CompilerFilter::Filter filter) argument [all...] |
H A D | oat_file_assistant_test.cc | 48 explicit ScopedNonWritable(const std::string& dex_location) { argument 50 size_t pos = dex_location.rfind('/'); 53 dex_parent_ = dex_location.substr(0, pos); 82 std::string dex_location = GetScratchDir() + "/DexNoOat.jar"; local 83 Copy(GetDexSrc1(), dex_location); local 85 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, false); 105 std::string dex_location = GetScratchDir() + "/NoDexNoOat.jar"; local 107 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); 125 std::string dex_location = GetScratchDir() + "/OdexUpToDate.jar"; local 127 Copy(GetDexSrc1(), dex_location); local 153 std::string dex_location = GetScratchDir() + "/OdexUpToDate.jar"; local 156 Copy(GetDexSrc1(), dex_location); local 190 std::string dex_location = GetScratchDir() + "/OatUpToDate.jar"; local 191 Copy(GetDexSrc1(), dex_location); local 230 std::string dex_location = real + "/OatUpToDate.jar"; local 232 Copy(GetDexSrc1(), dex_location); local 267 std::string dex_location = GetScratchDir() + "/VdexUpToDateNoOdex.jar"; local 270 Copy(GetDexSrc1(), dex_location); local 294 std::string dex_location = GetScratchDir() + "/EmptyVdexOdex.jar"; local 298 Copy(GetDexSrc1(), dex_location); local 320 std::string dex_location = GetScratchDir() + "/VdexUpToDateNoOat.jar"; local 326 Copy(GetDexSrc1(), dex_location); local 353 std::string dex_location = GetScratchDir() + "/ProfileOatUpToDate.jar"; local 354 Copy(GetDexSrc1(), dex_location); local 386 std::string dex_location = GetScratchDir() + "/MultiDexOatUpToDate.jar"; local 387 Copy(GetMultiDexSrc1(), dex_location); local 416 std::string dex_location = GetScratchDir() + "/MultiDexNonMainOutOfDate.jar"; local 419 Copy(GetMultiDexSrc1(), dex_location); local 424 Copy(GetMultiDexSrc2(), dex_location); local 438 std::string dex_location = GetScratchDir() + "/StrippedMultiDexNonMainOutOfDate.jar"; local 442 Copy(GetMultiDexSrc1(), dex_location); local 447 Copy(GetMultiDexSrc2(), dex_location); local 451 Copy(GetStrippedDexSrc1(), dex_location); local 470 std::string dex_location = GetScratchDir() + "/RelativeEncodedDexLocation.jar"; local 474 Copy(GetMultiDexSrc1(), dex_location); local 506 std::string dex_location = GetScratchDir() + "/OatDexOutOfDate.jar"; local 510 Copy(GetDexSrc1(), dex_location); local 512 Copy(GetDexSrc2(), dex_location); local 537 std::string dex_location = GetScratchDir() + "/VdexDexOutOfDate.jar"; local 540 Copy(GetDexSrc1(), dex_location); local 543 Copy(GetDexSrc2(), dex_location); local 559 std::string dex_location = GetScratchDir() + "/VdexMultiDexNonMainOutOfDate.jar"; local 562 Copy(GetMultiDexSrc1(), dex_location); local 565 Copy(GetMultiDexSrc2(), dex_location); local 582 std::string dex_location = GetScratchDir() + "/OatImageOutOfDate.jar"; local 584 Copy(GetDexSrc1(), dex_location); local 619 std::string dex_location = GetScratchDir() + "/OatVerifyAtRuntimeImageOutOfDate.jar"; local 621 Copy(GetDexSrc1(), dex_location); local 645 std::string dex_location = GetScratchDir() + "/DexOdexNoOat.jar"; local 649 Copy(GetDexSrc1(), dex_location); local 672 std::string dex_location = GetScratchDir() + "/StrippedDexOdexNoOat.jar"; local 676 Copy(GetDexSrc1(), dex_location); local 680 Copy(GetStrippedDexSrc1(), dex_location); local 704 std::string dex_location = GetScratchDir() + "/StrippedDexOdexOat.jar"; local 708 Copy(GetDexSrc2(), dex_location); local 712 Copy(GetDexSrc1(), dex_location); local 716 Copy(GetStrippedDexSrc1(), dex_location); local 745 std::string dex_location = GetScratchDir() + "/ResourceOnlyDex.jar"; local 747 Copy(GetStrippedDexSrc1(), dex_location); local 783 std::string dex_location = GetScratchDir() + "/OdexOatOverlap.jar"; local 787 Copy(GetDexSrc1(), dex_location); local 822 std::string dex_location = GetScratchDir() + "/DexVerifyAtRuntimeOdexNoOat.jar"; local 826 Copy(GetDexSrc1(), dex_location); local 852 std::string dex_location = GetScratchDir() + "/LoadOatUpToDate.jar"; local 854 Copy(GetDexSrc1(), dex_location); local 880 std::string dex_location = GetScratchDir() + "/LoadExecInterpretOnlyOatUpToDate.jar"; local 882 Copy(GetDexSrc1(), dex_location); local 908 std::string dex_location = GetScratchDir() + "/LoadNoExecOatUpToDate.jar"; local 910 Copy(GetDexSrc1(), dex_location); local 937 std::string dex_location = GetScratchDir() + "/GenNoDex.jar"; local 999 std::string dex_location = MakePathRelative(abs_dex_location); local 1012 std::string dex_location = "/xx"; local 1034 std::string dex_location = GetScratchDir() + "/LongDexExtension.jarx"; local 1035 Copy(GetDexSrc1(), dex_location); local 1050 RaceGenerateTask(const std::string& dex_location, const std::string& oat_location) argument 1089 std::string dex_location = GetScratchDir() + "/RaceToGenerate.jar"; local 1121 std::string dex_location = GetScratchDir() + "/LoadDexOdexNoOat.jar"; local 1125 Copy(GetDexSrc1(), dex_location); local 1143 std::string dex_location = GetScratchDir() + "/LoadMultiDexOdexNoOat.jar"; local 1147 Copy(GetMultiDexSrc1(), dex_location); local 1162 std::string dex_location = GetScratchDir() + "/RuntimeCompilerFilterOptionUsed.jar"; local 1163 Copy(GetDexSrc1(), dex_location); local 1237 std::string dex_location = GetScratchDir() + "/TestDex.jar"; local 1238 Copy(GetDexSrc1(), dex_location); local [all...] |
H A D | dex_file_test.cc | 534 const char* dex_location = dex_location_str.c_str(); local 535 ASSERT_EQ("/system/app/framework.jar", DexFile::GetMultiDexLocation(0, dex_location)); 537 DexFile::GetMultiDexLocation(1, dex_location)); 539 DexFile::GetMultiDexLocation(100, dex_location)); 545 std::string dex_location(dex_location_real.get()); 547 ASSERT_EQ(dex_location, DexFile::GetDexCanonicalLocation(dex_location.c_str())); 548 std::string multidex_location = DexFile::GetMultiDexLocation(1, dex_location.c_str()); 551 std::string dex_location_sym = dex_location + "symlink"; 552 ASSERT_EQ(0, symlink(dex_location [all...] |
H A D | oat_file_manager.cc | 603 const char* dex_location, 609 CHECK(dex_location != nullptr); 618 OatFileAssistant oat_file_assistant(dex_location, 670 LOG(WARNING) << "Dex location " << dex_location << " does not seem to include dex file. " 676 << dex_location; 688 " load classes for " << dex_location; 728 ScopedTrace trace2(StringPrintf("Adding image space for location %s", dex_location)); 732 dex_location, 758 dex_files = oat_file_assistant.LoadDexFiles(*source_oat_file, dex_location); 772 dex_location, dex_locatio 602 OpenDexFilesFromOat( const char* dex_location, jobject class_loader, jobjectArray dex_elements, const OatFile** out_oat_file, std::vector<std::string>* error_msgs) argument [all...] |
H A D | oat_file_assistant.cc | 68 OatFileAssistant::OatFileAssistant(const char* dex_location, argument 75 CHECK(dex_location != nullptr) << "OatFileAssistant: null dex location"; 91 UniqueCPtr<const char[]> dex_location_real(realpath(dex_location, nullptr)); 96 PLOG(ERROR) << "Could not get the realpath of dex_location " << dex_location; 299 const OatFile& oat_file, const char* dex_location) { 305 dex_location, nullptr, &error_msg); 320 std::string multidex_dex_location = DexFile::GetMultiDexLocation(i, dex_location); 523 // The odex file name is formed by replacing the dex_location extension with 594 static bool PrepareOdexDirectories(const std::string& dex_location, argument 298 LoadDexFiles( const OatFile& oat_file, const char* dex_location) argument [all...] |
H A D | dex_file.cc | 1210 std::string DexFile::GetMultiDexLocation(size_t index, const char* dex_location) { argument 1212 return dex_location; 1214 return StringPrintf("%s" kMultiDexSeparatorString "classes%zu.dex", dex_location, index + 1); 1218 std::string DexFile::GetDexCanonicalLocation(const char* dex_location) { argument 1219 CHECK_NE(dex_location, static_cast<const char*>(nullptr)); 1220 std::string base_location = GetBaseLocation(dex_location); 1221 const char* suffix = dex_location + base_location.size(); 1229 return dex_location;
|
H A D | oat_file.cc | 1211 const OatFile::OatDexFile* OatFile::GetOatDexFile(const char* dex_location, argument 1214 // NOTE: We assume here that the canonical location for a given dex_location never 1223 StringPiece key(dex_location); 1231 // This dex_location is not one of the dex locations directly mentioned in the 1239 // We haven't seen this dex_location before, we must check the canonical location. 1240 std::string dex_canonical_location = DexFile::GetDexCanonicalLocation(dex_location); 1241 if (dex_canonical_location != dex_location) { 1258 std::string dex_canonical_location = DexFile::GetDexCanonicalLocation(dex_location); 1259 *error_msg = "Failed to find OatDexFile for DexFile " + std::string(dex_location) 1268 std::string dex_canonical_location = DexFile::GetDexCanonicalLocation(dex_location); [all...] |
H A D | runtime.cc | 982 const char* dex_location = dex_locations[i].c_str(); local 989 if (!DexFile::Open(dex_filename, dex_location, kVerifyChecksum, &error_msg, dex_files)) {
|
H A D | class_linker.cc | 1005 /*dex_location*/nullptr, 1669 const char* dex_location, 1733 std::string dex_location_path = dex_location; 1665 AddImageSpace( gc::space::ImageSpace* space, Handle<mirror::ClassLoader> class_loader, jobjectArray dex_elements, const char* dex_location, std::vector<std::unique_ptr<const DexFile>>* out_dex_files, std::string* error_msg) argument
|
/art/runtime/jit/ |
H A D | profile_compilation_info.h | 93 : dex_location(location), dex_checksum(checksum) {} 96 return dex_checksum == other.dex_checksum && dex_location == other.dex_location; 101 dex_location == GetProfileDexFileKey(dex_file->GetLocation()); 104 std::string dex_location; member in struct:art::ProfileCompilationInfo::DexReference 237 std::unique_ptr<OfflineProfileMethodInfo> GetMethod(const std::string& dex_location, 265 static std::string GetProfileDexFileKey(const std::string& dex_location); 342 bool AddMethodIndex(const std::string& dex_location, uint32_t checksum, uint16_t method_idx); 349 bool AddMethod(const std::string& dex_location, 355 bool AddClassIndex(const std::string& dex_location, uint32_ 381 std::string dex_location; member in struct:art::ProfileCompilationInfo::ProfileLineHeader [all...] |
H A D | profile_compilation_info_test.cc | 59 bool AddMethod(const std::string& dex_location, argument 63 return info->AddMethodIndex(dex_location, checksum, method_index); 66 bool AddMethod(const std::string& dex_location, argument 71 return info->AddMethod(dex_location, checksum, method_index, pmi); 74 bool AddClass(const std::string& dex_location, argument 78 return info->AddMethodIndex(dex_location, checksum, class_index); 357 ASSERT_TRUE(AddMethod("dex_location", /* checksum */ 1, /* method_idx */ 1, &info)); 359 ASSERT_FALSE(AddMethod("dex_location", /* checksum */ 2, /* method_idx */ 2, &info)); 366 ASSERT_TRUE(AddMethod("dex_location", /* checksum */ 1, /* method_idx */ 1, &info1)); 369 ASSERT_TRUE(AddMethod("dex_location", /* checksu 751 std::string dex_location = std::to_string(i); local [all...] |
/art/dex2oat/ |
H A D | dex2oat_test.cc | 54 int GenerateOdexForTestWithStatus(const std::string& dex_location, argument 62 args.push_back("--dex-file=" + dex_location); 84 void GenerateOdexForTest(const std::string& dex_location, argument 91 int status = GenerateOdexForTestWithStatus(dex_location, 108 dex_location.c_str(), 125 dex_location.c_str(), 242 std::string dex_location = GetScratchDir() + "/Dex2OatSwapTest.jar"; local 245 Copy(GetTestDexFileName(), dex_location); local 257 GenerateOdexForTest(dex_location, odex_location, CompilerFilter::kSpeed, copy); 470 std::string dex_location local 473 Copy(GetDexSrc1(), dex_location); local 482 CheckResult(const std::string& dex_location, const std::string& odex_location, CompilerFilter::Filter filter, bool expect_large) argument 602 GenerateProfile(const std::string& test_profile, const std::string& dex_location, size_t num_classes, uint32_t checksum) argument 619 CompileProfileOdex(const std::string& dex_location, const std::string& odex_location, const std::string& app_image_file_name, bool use_fd, size_t num_profile_classes, const std::vector<std::string>& extra_args = {}, bool expect_success = true) argument 672 std::string dex_location = GetScratchDir() + "/DexNoOat.jar"; local 675 Copy(GetDexSrc2(), dex_location); local 709 std::string dex_location = GetScratchDir() + "/DexNoOat.jar"; local 713 Copy(GetDexSrc2(), dex_location); local 747 CheckResult(const std::string& dex_location, const std::string& odex_location, const std::string& app_image_file_name) argument 831 std::string dex_location = GetScratchDir() + "/Dex2OatSwapTest.jar"; local 834 Copy(GetTestDexFileName(), dex_location); local 868 std::string dex_location = GetScratchDir() + "/Dex2OatSwapTest.jar"; local 871 Copy(GetTestDexFileName(), dex_location); local [all...] |
H A D | dex2oat.cc | 1715 std::string dex_location = dex_file->GetLocation(); local 1717 // The filter does not contain the path. Remove the path from dex_location as well. 1720 dex_location = dex_location.substr(last_slash + 1); 1724 if (android::base::StartsWith(dex_location, filter.c_str())) {
|
/art/profman/ |
H A D | profile_assistant_test.cc | 178 const std::string& dex_location) { 189 argv_str.push_back("--apk=" + dex_location); 190 argv_str.push_back("--dex-location=" + dex_location); 176 CreateProfile(std::string profile_file_contents, const std::string& filename, const std::string& dex_location) argument
|
/art/runtime/openjdkjvmti/ |
H A D | ti_stack.cc | 81 jlong dex_location = (dex_pc == art::DexFile::kDexNoIndex) ? -1 : static_cast<jlong>(dex_pc); local 83 jvmtiFrameInfo info = { id, dex_location };
|