/art/dexoptanalyzer/ |
D | dexoptanalyzer_test.cc | 97 std::string dex_location = GetScratchDir() + "/DexNoOat.jar"; in TEST_F() local 98 Copy(GetDexSrc1(), dex_location); in TEST_F() 100 Verify(dex_location, CompilerFilter::kSpeed); in TEST_F() 101 Verify(dex_location, CompilerFilter::kExtract); in TEST_F() 102 Verify(dex_location, CompilerFilter::kQuicken); in TEST_F() 103 Verify(dex_location, CompilerFilter::kSpeedProfile); in TEST_F() 108 std::string dex_location = GetScratchDir() + "/OatUpToDate.jar"; in TEST_F() local 109 Copy(GetDexSrc1(), dex_location); in TEST_F() 110 GenerateOatForTest(dex_location.c_str(), CompilerFilter::kSpeed); in TEST_F() 112 Verify(dex_location, CompilerFilter::kSpeed); in TEST_F() [all …]
|
/art/runtime/ |
D | oat_file_test.cc | 34 std::string dex_location; in TEST_F() local 38 &dex_location, in TEST_F() 41 ASSERT_EQ("/data/app/foo/base.apk", dex_location); in TEST_F() 45 std::string dex_location; in TEST_F() local 49 &dex_location, in TEST_F() 52 ASSERT_EQ("/data/app/foo/base.apk!classes2.dex", dex_location); in TEST_F() 56 std::string dex_location; in TEST_F() local 60 &dex_location, in TEST_F() 63 ASSERT_EQ("/system/framework/base.apk", dex_location); in TEST_F() 67 std::string dex_location; in TEST_F() local [all …]
|
D | oat_file_assistant_test.cc | 76 explicit ScopedNonWritable(const std::string& dex_location) { in ScopedNonWritable() argument 78 size_t pos = dex_location.rfind('/'); in ScopedNonWritable() 81 dex_parent_ = dex_location.substr(0, pos); in ScopedNonWritable() 111 std::string dex_location = GetScratchDir() + "/RelativeEncodedDexLocation.jar"; in TEST_F() local 115 Copy(GetMultiDexSrc1(), dex_location); in TEST_F() 119 "--dex-file=" + dex_location, in TEST_F() 129 OatFileAssistant oat_file_assistant(dex_location.c_str(), kRuntimeISA, true); in TEST_F() 135 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str()); in TEST_F() 140 std::string dex_location = GetScratchDir() + "/TestDex.jar"; in TEST_F() local 143 Copy(GetDexSrc1(), dex_location); in TEST_F() [all …]
|
D | dexopt_test.cc | 71 void DexoptTest::GenerateOatForTest(const std::string& dex_location, in GenerateOatForTest() argument 81 args.push_back("--dex-file=" + dex_location); in GenerateOatForTest() 116 dex_location.c_str(), in GenerateOatForTest() 143 void DexoptTest::GenerateOdexForTest(const std::string& dex_location, in GenerateOdexForTest() argument 148 GenerateOatForTest(dex_location, in GenerateOdexForTest() 156 void DexoptTest::GenerateOatForTest(const char* dex_location, in GenerateOatForTest() argument 162 dex_location, kRuntimeISA, &oat_location, &error_msg)) << error_msg; in GenerateOatForTest() 163 GenerateOatForTest(dex_location, in GenerateOatForTest() 169 void DexoptTest::GenerateOatForTest(const char* dex_location, CompilerFilter::Filter filter) { in GenerateOatForTest() argument 170 GenerateOatForTest(dex_location, filter, /*with_alternate_image=*/ false); in GenerateOatForTest()
|
D | dexopt_test.h | 41 void GenerateOatForTest(const std::string& dex_location, 49 void GenerateOdexForTest(const std::string& dex_location, 57 void GenerateOatForTest(const char* dex_location, 62 void GenerateOatForTest(const char* dex_location, CompilerFilter::Filter filter);
|
D | oat_file_assistant.h | 108 OatFileAssistant(const char* dex_location, 116 OatFileAssistant(const char* dex_location, 194 const OatFile& oat_file, const char* dex_location); 200 const std::string& dex_location, 256 /* out */ std::string* dex_location,
|
D | oat_file_manager.cc | 448 const char* dex_location, in OpenDexFilesFromOat() argument 454 CHECK(dex_location != nullptr); in OpenDexFilesFromOat() 474 OatFileAssistant oat_file_assistant(dex_location, in OpenDexFilesFromOat() 481 VLOG(oat) << "OatFileAssistant(" << dex_location << ").GetBestOatFile()=" in OpenDexFilesFromOat() 504 LOG(WARNING) << "Dex location " << dex_location << " does not seem to include dex file. " in OpenDexFilesFromOat() 510 << dex_location; in OpenDexFilesFromOat() 522 " load classes for " << dex_location; in OpenDexFilesFromOat() 571 ScopedTrace trace2(StringPrintf("Adding image space for location %s", dex_location)); in OpenDexFilesFromOat() 575 dex_location, in OpenDexFilesFromOat() 606 dex_files = oat_file_assistant.LoadDexFiles(*source_oat_file, dex_location); in OpenDexFilesFromOat() [all …]
|
D | oat_file_assistant.cc | 76 OatFileAssistant::OatFileAssistant(const char* dex_location, in OatFileAssistant() argument 80 : OatFileAssistant(dex_location, in OatFileAssistant() 89 OatFileAssistant::OatFileAssistant(const char* dex_location, in OatFileAssistant() argument 102 CHECK(dex_location != nullptr) << "OatFileAssistant: null dex location"; in OatFileAssistant() 111 dex_location_.assign(dex_location); in OatFileAssistant() 259 const OatFile &oat_file, const char *dex_location) { in LoadDexFiles() argument 261 if (LoadDexFiles(oat_file, dex_location, &dex_files)) { in LoadDexFiles() 270 const std::string& dex_location, in LoadDexFiles() argument 275 dex_location.c_str(), nullptr, &error_msg); in LoadDexFiles() 290 std::string multidex_dex_location = DexFileLoader::GetMultiDexLocation(i, dex_location.c_str()); in LoadDexFiles() [all …]
|
D | hidden_api.cc | 76 static Domain DetermineDomainFromLocation(const std::string& dex_location, in DetermineDomainFromLocation() argument 82 if (LocationIsOnRuntimeModule(dex_location.c_str()) || in DetermineDomainFromLocation() 83 LocationIsOnConscryptModule(dex_location.c_str())) { in DetermineDomainFromLocation() 87 if (LocationIsOnApex(dex_location.c_str())) { in DetermineDomainFromLocation() 92 if (LocationIsOnSystemFramework(dex_location.c_str())) { in DetermineDomainFromLocation() 97 LOG(WARNING) << "DexFile " << dex_location in DetermineDomainFromLocation()
|
/art/dex2oat/ |
D | dex2oat_test.cc | 81 for (const std::string& dex_location : dex_locations) { local 82 args.push_back("--dex-file=" + dex_location); 110 const std::string& dex_location, in GenerateOdexForTest() argument 116 return GenerateOdexForTest(dex_location, 129 const std::string& dex_location, in GenerateOdexForTest() argument 137 int status = GenerateOdexForTestWithStatus({dex_location}, in GenerateOdexForTest() 156 dex_location.c_str(), in GenerateOdexForTest() 179 dex_location.c_str(), in GenerateOdexForTest() 253 std::string dex_location = GetScratchDir() + "/Dex2OatSwapTest.jar"; local 256 Copy(GetTestDexFileName(), dex_location); [all …]
|
/art/test/164-resolution-trampoline-dex-cache/src/ |
D | Main.java | 29 String dex_location = System.getenv("DEX_LOCATION"); in main() local 31 ClassLoader baseLoader = getClassLoaderFor(dex_location, systemLoader, /* ex */ false); in main() 32 ClassLoader mainLoader = getClassLoaderFor(dex_location, baseLoader, /* ex */ true); in main()
|
/art/libdexfile/dex/ |
D | test_dex_file_builder_test.cc | 31 const char* dex_location = "TestDexFileBuilder/SimpleTest"; in TEST() local 32 std::unique_ptr<const DexFile> dex_file(builder.Build(dex_location)); in TEST() 34 EXPECT_STREQ(dex_location, dex_file->GetLocation().c_str()); in TEST()
|
D | art_dex_file_loader_test.cc | 296 std::string dex_location(dex_location_real.get()); in TEST_F() local 298 ASSERT_EQ(dex_location, DexFileLoader::GetDexCanonicalLocation(dex_location.c_str())); in TEST_F() 299 std::string multidex_location = DexFileLoader::GetMultiDexLocation(1, dex_location.c_str()); in TEST_F() 302 std::string dex_location_sym = dex_location + "symlink"; in TEST_F() 303 ASSERT_EQ(0, symlink(dex_location.c_str(), dex_location_sym.c_str())); in TEST_F() 305 ASSERT_EQ(dex_location, DexFileLoader::GetDexCanonicalLocation(dex_location_sym.c_str())); in TEST_F()
|
D | dex_cache_resolved_classes.h | 31 DexCacheResolvedClasses(const std::string& dex_location, in DexCacheResolvedClasses() argument 35 : dex_location_(dex_location), in DexCacheResolvedClasses()
|
D | dex_file_loader.cc | 179 std::string DexFileLoader::GetMultiDexLocation(size_t index, const char* dex_location) { in GetMultiDexLocation() argument 181 ? dex_location in GetMultiDexLocation() 182 : StringPrintf("%s%cclasses%zu.dex", dex_location, kMultiDexSeparator, index + 1); in GetMultiDexLocation() 185 std::string DexFileLoader::GetDexCanonicalLocation(const char* dex_location) { in GetDexCanonicalLocation() argument 186 CHECK_NE(dex_location, static_cast<const char*>(nullptr)); in GetDexCanonicalLocation() 187 std::string base_location = GetBaseLocation(dex_location); in GetDexCanonicalLocation() 188 const char* suffix = dex_location + base_location.size(); in GetDexCanonicalLocation() 204 return dex_location; in GetDexCanonicalLocation()
|
D | dex_file_loader.h | 69 static std::string GetMultiDexLocation(size_t index, const char* dex_location); 84 static std::string GetDexCanonicalLocation(const char* dex_location);
|
D | dex_file_loader_test.cc | 405 const char* dex_location = dex_location_str.c_str(); in TEST_F() local 406 ASSERT_EQ("/system/app/framework.jar", DexFileLoader::GetMultiDexLocation(0, dex_location)); in TEST_F() 408 DexFileLoader::GetMultiDexLocation(1, dex_location)); in TEST_F() 410 DexFileLoader::GetMultiDexLocation(100, dex_location)); in TEST_F()
|
/art/test/155-java-set-resolved-type/src/ |
D | Main.java | 33 String dex_location = System.getenv("DEX_LOCATION"); in main() local 35 ClassLoader exLoader = getClassLoaderFor(dex_location, systemLoader, /* ex */ true); in main() 36 ClassLoader mainLoader = getClassLoaderFor(dex_location, exLoader, /* ex */ false); in main()
|
/art/libprofile/profile/ |
D | profile_compilation_info.cc | 156 std::string ProfileCompilationInfo::GetProfileDexFileKey(const std::string& dex_location) { in GetProfileDexFileKey() argument 157 DCHECK(!dex_location.empty()); in GetProfileDexFileKey() 158 size_t last_sep_index = dex_location.find_last_of('/'); in GetProfileDexFileKey() 160 return dex_location; in GetProfileDexFileKey() 162 DCHECK(last_sep_index < dex_location.size()); in GetProfileDexFileKey() 163 return dex_location.substr(last_sep_index + 1); in GetProfileDexFileKey() 176 const std::string& dex_location, in AddMethodIndex() argument 180 DexFileData* data = GetOrAddDexFileData(GetProfileDexFileKey(dex_location), in AddMethodIndex() 695 const std::string dex_location = GetProfileDexFileKey(classes.GetDexLocation()); in AddResolvedClasses() local 697 DexFileData* const data = GetOrAddDexFileData(dex_location, checksum, classes.NumMethodIds()); in AddResolvedClasses() [all …]
|
D | profile_compilation_info.h | 91 : dex_location(location), dex_checksum(checksum), num_method_ids(num_methods) {} in DexReference() 95 dex_location == other.dex_location && 101 dex_location == GetProfileDexFileKey(dex_file->GetLocation()); in MatchesDex() 104 std::string dex_location; member 279 const std::string& dex_location, 321 static bool ProfileFilterFnAcceptAll(const std::string& dex_location, uint32_t checksum); 365 MethodHotness GetMethodHotness(const std::string& dex_location, 376 std::unique_ptr<OfflineProfileMethodInfo> GetMethod(const std::string& dex_location, 404 static std::string GetProfileDexFileKey(const std::string& dex_location); 614 bool AddMethod(const std::string& dex_location, [all …]
|
D | profile_compilation_info_test.cc | 44 bool AddMethod(const std::string& dex_location, in AddMethod() argument 49 dex_location, in AddMethod() 55 bool AddMethod(const std::string& dex_location, in AddMethod() argument 61 dex_location, checksum, method_idx, kMaxMethodIds, pmi, Hotness::kFlagPostStartup); in AddMethod() 64 bool AddClass(const std::string& dex_location, in AddClass() argument 68 DexCacheResolvedClasses classes(dex_location, dex_location, checksum, kMaxMethodIds); in AddClass() 614 std::string dex_location = std::to_string(i); in TEST_F() local 615 ASSERT_TRUE(AddMethod(dex_location, /* checksum= */ 1, /* method_idx= */ i, &info)); in TEST_F() 934 [](const std::string& dex_location, uint32_t checksum) -> bool { in TEST_F() argument 935 return (dex_location == "dex_location1" && checksum == 1) in TEST_F() [all …]
|
/art/runtime/jit/ |
D | profiling_info_test.cc | 66 bool AddMethod(const std::string& dex_location, in AddMethod() argument 71 dex_location, in AddMethod() 77 bool AddMethod(const std::string& dex_location, in AddMethod() argument 83 dex_location, checksum, method_index, kMaxMethodIds, pmi, Hotness::kFlagPostStartup); in AddMethod() 86 bool AddClass(const std::string& dex_location, in AddClass() argument 90 DexCacheResolvedClasses classes(dex_location, dex_location, checksum, kMaxMethodIds); in AddClass()
|
/art/oatdump/ |
D | oatdump_test.cc | 97 const std::string dex_location = in TEST_F() local 105 ForkAndExecResult res = ForkAndExec({dexdump2, "-d", dex_location}, post_fork_fn, &output); in TEST_F()
|
/art/test/692-vdex-inmem-loader/ |
D | vdex_inmem_loader.cc | 94 std::string dex_location; in Java_Main_hasVdexFile() local 100 &dex_location, in Java_Main_hasVdexFile()
|
/art/profman/ |
D | profile_assistant_test.cc | 124 std::string dex_location = "location1" + id; in SetupBasicProfile() local 126 info->AddMethodIndex(Hotness::kFlagHot, dex_location, checksum, idx, number_of_methods); in SetupBasicProfile() 129 info->AddMethodIndex(Hotness::kFlagStartup, dex_location, checksum, idx, number_of_methods); in SetupBasicProfile() 133 dex_location, in SetupBasicProfile() 248 const std::string& dex_location) { in CreateProfile() argument 259 argv_str.push_back("--apk=" + dex_location); in CreateProfile() 260 argv_str.push_back("--dex-location=" + dex_location); in CreateProfile() 1225 [&d1, &d2](const std::string& dex_location, uint32_t checksum) -> bool { in TEST_F() argument 1226 return (dex_location == ProfileCompilationInfo::GetProfileDexFileKey(d1.GetLocation()) in TEST_F() 1228 || (dex_location == ProfileCompilationInfo::GetProfileDexFileKey(d2.GetLocation()) in TEST_F()
|