/art/libartbase/base/ |
D | file_utils.h | 46 std::string GetAndroidRoot(); 48 std::string GetAndroidRootSafe(/*out*/ std::string* error_msg); 57 std::string GetArtRoot(); 59 std::string GetArtRootSafe(/*out*/ std::string* error_msg); 62 std::string GetArtBinDir(); 65 std::string GetAndroidData(); 67 std::string GetAndroidDataSafe(/*out*/ std::string* error_msg); 70 std::string GetArtApexData(); 74 std::string GetDefaultBootImageLocation(std::string* error_msg); 77 std::string GetDefaultBootImageLocation(const std::string& android_root, [all …]
|
D | common_art_test.h | 52 const std::string& GetPath() const { in GetPath() 57 std::string path_; 67 explicit ScratchFile(const std::string& filename); 79 const std::string& GetFilename() const { in GetFilename() 93 std::string filename_; 94 std::unique_ptr<File> file_; 115 static std::optional<std::string> GetOldValue(const char* variable) { in GetOldValue() 117 return value != nullptr ? std::optional<std::string>{value} : std::nullopt; in GetOldValue() 121 std::optional<std::string> old_value_; 138 static void SetUpAndroidDataDir(std::string& android_data); [all …]
|
D | transform_array_ref_test.cc | 41 std::vector<ValueHolder> input({ 7, 6, 4, 0 }); in TEST() 42 std::vector<int> output; in TEST() 47 static_assert(std::is_same<int, decltype(taref)::value_type>::value, "value_type"); in TEST() 48 static_assert(std::is_same<TarefIter, decltype(taref)::pointer>::value, "pointer"); in TEST() 49 static_assert(std::is_same<int, decltype(taref)::reference>::value, "reference"); in TEST() 50 static_assert(std::is_same<ConstTarefIter, decltype(taref)::const_pointer>::value, in TEST() 52 static_assert(std::is_same<int, decltype(taref)::const_reference>::value, "const_reference"); in TEST() 54 std::copy(taref.begin(), taref.end(), std::back_inserter(output)); in TEST() 55 ASSERT_EQ(std::vector<int>({ 8, 7, 5, 1 }), output); in TEST() 58 std::copy(taref.cbegin(), taref.cend(), std::back_inserter(output)); in TEST() [all …]
|
D | file_utils.cc | 89 static std::string GetRootContainingLibartbase() { in GetRootContainingLibartbase() 100 std::string tmp = dir2; // Make a copy here so that fname can be released. in GetRootContainingLibartbase() 108 std::string GetAndroidRootSafe(std::string* error_msg) { in GetAndroidRootSafe() 132 std::string root_containing_libartbase = GetRootContainingLibartbase(); in GetAndroidRootSafe() 148 std::string GetAndroidRoot() { in GetAndroidRoot() 149 std::string error_msg; in GetAndroidRoot() 150 std::string ret = GetAndroidRootSafe(&error_msg); in GetAndroidRoot() 162 std::string* error_msg) { in GetAndroidDirSafe() 182 std::string error_msg; in GetAndroidDir() 192 static std::string GetArtRootSafe(bool must_exist, /*out*/ std::string* error_msg) { in GetArtRootSafe() [all …]
|
D | common_art_test.cc | 96 ScratchFile::ScratchFile(const std::string& filename) : filename_(filename) { in ScratchFile() 109 *this = std::move(other); in ScratchFile() 114 std::swap(filename_, other.filename_); in operator =() 115 std::swap(file_, other.file_); in operator =() 146 std::string CommonArtTestImpl::GetAndroidBuildTop() { in GetAndroidBuildTop() 148 std::string android_build_top; in GetAndroidBuildTop() 151 std::string argv; in GetAndroidBuildTop() 154 std::filesystem::path path(argv.substr(0, argv.find('\0'))); in GetAndroidBuildTop() 155 path = std::filesystem::absolute(path); in GetAndroidBuildTop() 159 if (path.filename() == std::filesystem::path("linux-x86")) { in GetAndroidBuildTop() [all …]
|
D | transform_iterator_test.cc | 44 std::vector<ValueHolder> input({ 1, 7, 3, 8 }); in TEST() 45 std::vector<int> output; in TEST() 48 static_assert(std::is_same<std::random_access_iterator_tag, in TEST() 50 static_assert(std::is_same<int, vector_titer::value_type>::value, "value_type"); in TEST() 51 static_assert(std::is_same<vector_titer, vector_titer::pointer>::value, "pointer"); in TEST() 52 static_assert(std::is_same<int, vector_titer::reference>::value, "reference"); in TEST() 55 static_assert(std::is_same<std::random_access_iterator_tag, in TEST() 57 static_assert(std::is_same<int, vector_ctiter::value_type>::value, "value_type"); in TEST() 58 static_assert(std::is_same<vector_ctiter, vector_ctiter::pointer>::value, "pointer"); in TEST() 59 static_assert(std::is_same<int, vector_ctiter::reference>::value, "reference"); in TEST() [all …]
|
D | flags.h | 61 FlagMetaBase(const std::string&& command_line_argument_name, in FlagMetaBase() 62 const std::string&& system_property_name, in FlagMetaBase() 63 const std::string&& server_setting_name, in FlagMetaBase() 79 auto cases = {std::function<void()>([&]() { in AddFlagsToCmdlineParser() 80 if (std::holds_alternative<std::optional<T>*>(location)) { in AddFlagsToCmdlineParser() 83 .IntoLocation(std::get<std::optional<T>*>(location)); in AddFlagsToCmdlineParser() 97 static void ReloadAllFlags(const std::string& caller) { in ReloadAllFlags() 116 static void DumpFlags(std::ostream& oss) { in DumpFlags() 125 using FlagValuePointer = std::variant<std::optional<T>*...>; 131 virtual void Dump(std::ostream& oss) const = 0; [all …]
|
/art/runtime/ |
D | class_loader_context.h | 88 bool OpenDexFiles(const std::string& classpath_dir = "", 89 const std::vector<int>& context_fds = std::vector<int>(), 94 bool RemoveLocationsFromClassPaths(const dchecked_vector<std::string>& compilation_sources); 116 jobject CreateClassLoader(const std::vector<const DexFile*>& compilation_sources) const; 126 std::string EncodeContextForOatFile(const std::string& base_dir, 133 std::string EncodeContextForDex2oat(const std::string& base_dir) const; 152 std::map<std::string, std::string> EncodeClassPathContexts(const std::string& base_dir) const; 156 std::vector<const DexFile*> FlattenOpenedDexFiles() const; 160 std::string FlattenDexPaths() const; 173 VerificationResult VerifyClassLoaderContextMatch(const std::string& context_spec, [all …]
|
D | app_info.h | 59 void RegisterAppInfo(const std::string& package_name, 60 const std::vector<std::string>& code_paths, 61 const std::string& profile_output_filename, 62 const std::string& ref_profile_filename, 66 void RegisterOdexStatus(const std::string& code_path, 67 const std::string& compiler_filter, 68 const std::string& compilation_reason, 69 const std::string& odex_status); 77 void GetPrimaryApkOptimizationStatus(std::string* out_compiler_filter, 78 std::string* out_compilation_reason); [all …]
|
D | oat_file_assistant.h | 165 std::unique_ptr<OatFile> GetBestOatFile(); 169 std::string GetStatusDump(); 184 void GetOptimizationStatus(std::string* out_odex_location, 185 std::string* out_compilation_filter, 186 std::string* out_compilation_reason, 187 std::string* out_odex_status); 189 static void GetOptimizationStatus(const std::string& filename, 191 std::string* out_compilation_filter, 192 std::string* out_compilation_reason); 195 static std::unique_ptr<gc::space::ImageSpace> OpenImageSpace(const OatFile* oat_file); [all …]
|
D | oat_file_manager.h | 56 const OatFile* RegisterOatFile(std::unique_ptr<const OatFile> oat_file) 63 const OatFile* FindOpenedOatFileFromOatLocation(const std::string& oat_location) const 68 const OatFile* FindOpenedOatFileFromDexLocation(const std::string& dex_base_location) const 72 std::vector<const OatFile*> GetBootOatFiles() const; 76 std::vector<const OatFile*> RegisterImageOatFiles( 77 const std::vector<gc::space::ImageSpace*>& spaces) 94 std::vector<std::unique_ptr<const DexFile>> OpenDexFilesFromOat( 99 /*out*/ std::vector<std::string>* error_msgs) 111 std::vector<std::unique_ptr<const DexFile>> OpenDexFilesFromOat( 112 std::vector<MemMap>&& dex_mem_maps, [all …]
|
/art/libdexfile/dex/ |
D | art_dex_file_loader.h | 55 std::vector<uint32_t>* checksums, 56 std::vector<std::string>* dex_locations, 57 std::string* error_msg, 62 std::unique_ptr<const DexFile> Open( 65 const std::string& location, 70 std::string* error_msg, 71 std::unique_ptr<DexFileContainer> container = nullptr) const override; 74 std::unique_ptr<const DexFile> Open(const std::string& location, 79 std::string* error_msg) const; 83 const std::string& location, [all …]
|
D | dex_file_loader.h | 65 static std::string GetMultiDexClassesDexName(size_t index); 69 static std::string GetMultiDexLocation(size_t index, const char* dex_location); 84 static std::string GetDexCanonicalLocation(const char* dex_location); 89 static std::string GetBaseLocation(const char* location) { in GetBaseLocation() 91 return (pos == nullptr) ? location : std::string(location, pos - location); in GetBaseLocation() 94 static std::string GetBaseLocation(const std::string& location) { in GetBaseLocation() 101 static std::string GetMultiDexSuffix(const std::string& location) { in GetMultiDexSuffix() 103 return (pos == std::string::npos) ? std::string() : location.substr(pos); in GetMultiDexSuffix() 122 std::vector<uint32_t>* checksums, 123 std::vector<std::string>* dex_locations, [all …]
|
/art/libnativeloader/ |
D | public_libraries.h | 33 const std::string& preloadable_public_libraries(); 34 const std::string& default_public_libraries(); 35 const std::string& vendor_public_libraries(); 36 const std::string& extended_public_libraries(); 37 const std::string& llndk_libraries_product(); 38 const std::string& llndk_libraries_vendor(); 39 const std::string& vndksp_libraries_product(); 40 const std::string& vndksp_libraries_vendor(); 41 const std::string& apex_jni_libraries(const std::string& apex_name); 47 const std::map<std::string, std::string>& apex_public_libraries(); [all …]
|
D | public_libraries.cpp | 48 using std::literals::string_literals::operator""s; 62 std::string root_dir() { in root_dir() 67 std::string vndk_version_str(bool use_product_vndk) { in vndk_version_str() 69 static std::string product_vndk_version = get_vndk_version(true); in vndk_version_str() 72 static std::string vendor_vndk_version = get_vndk_version(false); in vndk_version_str() 78 void InsertVndkVersionStr(std::string* file_name, bool use_product_vndk) { in InsertVndkVersionStr() 82 while (pos != std::string::npos) { in InsertVndkVersionStr() 88 const std::function<Result<bool>(const struct ConfigEntry&)> always_true = 91 Result<std::vector<std::string>> ReadConfig( in ReadConfig() 92 const std::string& configFile, in ReadConfig() [all …]
|
/art/dexlayout/ |
D | dexlayout_test.cc | 227 static std::vector<std::string> DefaultCompactDexOption() { in DefaultCompactDexOption() 229 std::vector<std::string>{"-x", "fast"} : std::vector<std::string>{"-x", "none"}; in DefaultCompactDexOption() 236 std::unique_ptr<uint8_t[]> bytes(DecodeBase64(base64, &length)); in WriteBase64ToFile() 245 std::unique_ptr<File> file(OS::CreateEmptyFile(location)); in WriteFileBase64() 255 std::string GetDexLayoutPath() { in GetDexLayoutPath() 260 bool FullPlainOutputExec(std::string* error_msg) { in FullPlainOutputExec() 262 const std::string& dexdump_filename = dexdump_output.GetFilename(); in FullPlainOutputExec() 263 std::string dexdump = GetArtBinDir() + "/dexdump"; in FullPlainOutputExec() 267 const std::string& dexlayout_filename = dexlayout_output.GetFilename(); in FullPlainOutputExec() 269 for (const std::string& dex_file : GetLibCoreDexFileNames()) { in FullPlainOutputExec() [all …]
|
D | dexdiag.cc | 56 static_cast<int>(std::numeric_limits<uint32_t>::digits10); 62 std::string name; 66 static const std::map<uint16_t, DexSectionInfo> kDexSectionInfoMap = { 105 std::map<uint16_t, size_t> map_; 115 std::cout << StringPrintf("%-*s %*s %*s %% of %% of", in PrintHeader() 123 << std::endl; in PrintHeader() 124 std::cout << StringPrintf("%-*s %*s %*s sect. total", in PrintHeader() 131 << std::endl; in PrintHeader() 140 std::cout << StringPrintf("%-*s %*zd %*zd %6.2f %6.2f", in PrintOne() 149 << std::endl; in PrintOne() [all …]
|
/art/runtime/gc/space/ |
D | image_space.h | 125 const std::vector<std::string>& boot_class_path, 126 const std::vector<std::string>& boot_class_path_locations, 127 const std::string& image_location, 132 /*out*/std::vector<std::unique_ptr<ImageSpace>>* boot_image_spaces, 137 static std::unique_ptr<ImageSpace> CreateFromAppImage(const char* image, 139 std::string* error_msg) 142 static std::unique_ptr<ImageSpace> CreateFromAppImage( 146 std::string* error_msg) REQUIRES_SHARED(Locks::mutator_lock_); 156 std::unique_ptr<const OatFile> ReleaseOatFile(); 167 const std::string GetImageFilename() const { in GetImageFilename() [all …]
|
/art/compiler/utils/ |
D | assembler_test.h | 62 typedef std::string (*TestFn)(AssemblerTest* assembler_test, Ass* assembler); 64 void DriverFn(TestFn f, const std::string& test_name) { in DriverFn() 69 void DriverStr(const std::string& assembly_string, const std::string& test_name) { in DriverStr() 77 std::string RepeatR(void (Ass::*f)(Reg), const std::string& fmt) { in RepeatR() 84 std::string Repeatr(void (Ass::*f)(Reg), const std::string& fmt) { in Repeatr() 91 std::string RepeatRR(void (Ass::*f)(Reg, Reg), const std::string& fmt) { in RepeatRR() 100 std::string RepeatRRNoDupes(void (Ass::*f)(Reg, Reg), const std::string& fmt) { in RepeatRRNoDupes() 109 std::string Repeatrr(void (Ass::*f)(Reg, Reg), const std::string& fmt) { in Repeatrr() 118 std::string Repeatww(void (Ass::*f)(Reg, Reg), const std::string& fmt) { in Repeatww() 127 std::string Repeatbb(void (Ass::*f)(Reg, Reg), const std::string& fmt) { in Repeatbb() [all …]
|
/art/dex2oat/ |
D | dex2oat_test.cc | 70 int GenerateOdexForTestWithStatus(const std::vector<std::string>& dex_locations, in GenerateOdexForTestWithStatus() 71 const std::string& odex_location, in GenerateOdexForTestWithStatus() 73 std::string* error_msg, in GenerateOdexForTestWithStatus() 74 const std::vector<std::string>& extra_args = {}, in GenerateOdexForTestWithStatus() 76 std::unique_ptr<File> oat_file; 77 std::vector<std::string> args; 79 for (const std::string& dex_location : dex_locations) { 85 args.push_back("--oat-fd=" + std::to_string(oat_file->Fd())); 108 const std::string& dex_location, in GenerateOdexForTest() 109 const std::string& odex_location, in GenerateOdexForTest() [all …]
|
D | dex2oat_vdex_test.cc | 42 bool RunDex2oat(const std::string& dex_location, in RunDex2oat() 43 const std::string& odex_location, in RunDex2oat() 44 const std::string* public_sdk, in RunDex2oat() 46 const std::vector<std::string>& extra_args = {}) { in RunDex2oat() 47 std::vector<std::string> args; 70 std::unique_ptr<VerifierDeps> GetVerifierDeps( in GetVerifierDeps() 71 const std::string& vdex_location, const DexFile* dex_file) { in GetVerifierDeps() 73 std::unique_ptr<VdexFile> vdex(VdexFile::Open(vdex_location.c_str(), in GetVerifierDeps() 89 std::vector<const DexFile*> dex_files; in GetVerifierDeps() 91 std::unique_ptr<VerifierDeps> deps(new VerifierDeps(dex_files, /*output_only=*/ false)); in GetVerifierDeps() [all …]
|
/art/runtime/ti/ |
D | agent.h | 41 explicit AgentSpec(const std::string& arg); 43 const std::string& GetName() const { in GetName() 47 const std::string& GetArgs() const { in GetArgs() 55 std::unique_ptr<Agent> Load(/*out*/jint* call_res, 57 /*out*/std::string* error_msg); 60 std::unique_ptr<Agent> Attach(JNIEnv* env, 64 /*out*/std::string* error_msg); 67 std::unique_ptr<Agent> DoDlOpen(JNIEnv* env, 70 /*out*/std::string* error_msg); 72 std::unique_ptr<Agent> DoLoadHelper(JNIEnv* env, [all …]
|
/art/runtime/interpreter/ |
D | safe_math_test.cc | 28 EXPECT_EQ(SafeAdd(std::numeric_limits<int32_t>::max(), 1), in TEST() 29 std::numeric_limits<int32_t>::min()); in TEST() 30 EXPECT_EQ(SafeAdd(std::numeric_limits<int64_t>::max(), 1), in TEST() 31 std::numeric_limits<int64_t>::min()); in TEST() 34 EXPECT_EQ(SafeAdd(std::numeric_limits<int32_t>::max() - 1, 1), in TEST() 35 std::numeric_limits<int32_t>::max()); in TEST() 36 EXPECT_EQ(SafeAdd(std::numeric_limits<int64_t>::max() - 1, 1), in TEST() 37 std::numeric_limits<int64_t>::max()); in TEST() 39 EXPECT_EQ(SafeAdd(std::numeric_limits<int32_t>::min() + 1, -1), in TEST() 40 std::numeric_limits<int32_t>::min()); in TEST() [all …]
|
/art/tools/veridex/ |
D | hidden_api_finder.h | 43 void Run(const std::vector<std::unique_ptr<VeridexResolver>>& app_resolvers, 46 void Dump(std::ostream& os, HiddenApiStats* stats, bool dump_reflection); 52 void DumpReferences(std::ostream& os, const std::vector<MethodReference>& references); 55 std::set<std::string> classes_; 56 std::set<std::string> strings_; 57 std::map<std::string, std::vector<MethodReference>> reflection_locations_; 58 std::map<std::string, std::vector<MethodReference>> method_locations_; 59 std::map<std::string, std::vector<MethodReference>> field_locations_;
|
/art/runtime/arch/ |
D | instruction_set_features.h | 38 static std::unique_ptr<const InstructionSetFeatures> FromVariant(InstructionSet isa, 39 const std::string& variant, 40 std::string* error_msg); 43 static std::unique_ptr<const InstructionSetFeatures> FromBitmap(InstructionSet isa, 47 static std::unique_ptr<const InstructionSetFeatures> FromCppDefines(); 61 static std::unique_ptr<const InstructionSetFeatures> FromRuntimeDetection(); 64 static std::unique_ptr<const InstructionSetFeatures> FromCpuInfo(); 68 static std::unique_ptr<const InstructionSetFeatures> FromHwcap(); 72 static std::unique_ptr<const InstructionSetFeatures> FromAssembly(); 75 static std::unique_ptr<const InstructionSetFeatures> FromCpuFeatures(); [all …]
|