Home
last modified time | relevance | path

Searched refs:std (Results 1 – 25 of 1093) sorted by relevance

12345678910>>...44

/art/runtime/
Dclass_loader_context.h85 const std::string& classpath_dir,
86 const std::vector<int>& context_fds = std::vector<int>());
90 bool RemoveLocationsFromClassPaths(const dchecked_vector<std::string>& compilation_sources);
112 jobject CreateClassLoader(const std::vector<const DexFile*>& compilation_sources) const;
122 std::string EncodeContextForOatFile(const std::string& base_dir,
129 std::string EncodeContextForDex2oat(const std::string& base_dir) const;
148 std::map<std::string, std::string> EncodeClassPathContexts(const std::string& base_dir) const;
152 std::vector<const DexFile*> FlattenOpenedDexFiles() const;
156 std::string FlattenDexPaths() const;
166 VerificationResult VerifyClassLoaderContextMatch(const std::string& context_spec,
[all …]
Doat_file_assistant.h146 const std::vector<int>& context_fds,
160 std::unique_ptr<OatFile> GetBestOatFile();
164 std::string GetStatusDump();
175 static void GetOptimizationStatus(const std::string& filename,
177 std::string* out_compilation_filter,
178 std::string* out_compilation_reason);
181 static std::unique_ptr<gc::space::ImageSpace> OpenImageSpace(const OatFile* oat_file);
191 static std::vector<std::unique_ptr<const DexFile>> LoadDexFiles(
198 const std::string& dex_location,
199 std::vector<std::unique_ptr<const DexFile>>* out_dex_files);
[all …]
Doat_file_manager.h55 const OatFile* RegisterOatFile(std::unique_ptr<const OatFile> oat_file)
62 const OatFile* FindOpenedOatFileFromOatLocation(const std::string& oat_location) const
67 const OatFile* FindOpenedOatFileFromDexLocation(const std::string& dex_base_location) const
71 std::vector<const OatFile*> GetBootOatFiles() const;
78 std::vector<const OatFile*> RegisterImageOatFiles(
79 const std::vector<gc::space::ImageSpace*>& spaces)
96 std::vector<std::unique_ptr<const DexFile>> OpenDexFilesFromOat(
101 /*out*/ std::vector<std::string>* error_msgs)
113 std::vector<std::unique_ptr<const DexFile>> OpenDexFilesFromOat(
114 std::vector<MemMap>&& dex_mem_maps,
[all …]
/art/libnativeloader/
Dpublic_libraries.h33 const std::string& preloadable_public_libraries();
34 const std::string& default_public_libraries();
35 const std::string& art_public_libraries();
36 const std::string& statsd_public_libraries();
37 const std::string& vendor_public_libraries();
38 const std::string& extended_public_libraries();
39 const std::string& i18n_public_libraries();
40 const std::string& neuralnetworks_public_libraries();
41 const std::string& llndk_libraries_product();
42 const std::string& llndk_libraries_vendor();
[all …]
Dpublic_libraries.cpp47 using std::literals::string_literals::operator""s;
59 const std::vector<const std::string> kArtApexPublicLibraries = {
63 const std::vector<const std::string> ki18nApexPublicLibraries = {
75 std::string root_dir() { in root_dir()
85 std::string vndk_version_str(bool use_product_vndk) { in vndk_version_str()
87 static std::string product_vndk_version = get_vndk_version(true); in vndk_version_str()
90 static std::string vendor_vndk_version = get_vndk_version(false); in vndk_version_str()
97 std::string additional_public_libraries() { in additional_public_libraries()
106 void InsertVndkVersionStr(std::string* file_name, bool use_product_vndk) { in InsertVndkVersionStr()
110 while (pos != std::string::npos) { in InsertVndkVersionStr()
[all …]
/art/libdexfile/dex/
Dart_dex_file_loader.h51 std::vector<uint32_t>* checksums,
52 std::string* error_msg,
57 std::unique_ptr<const DexFile> Open(
60 const std::string& location,
65 std::string* error_msg,
66 std::unique_ptr<DexFileContainer> container = nullptr) const override;
69 std::unique_ptr<const DexFile> Open(const std::string& location,
74 std::string* error_msg) const;
78 const std::string& location,
81 std::string* error_msg,
[all …]
Ddex_file_loader.h65 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()
118 std::vector<uint32_t>* checksums,
119 std::string* error_msg,
[all …]
/art/libartbase/base/
Dtransform_array_ref_test.cc41 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 …]
Dfile_utils.h42 std::string GetAndroidRoot();
44 std::string GetAndroidRootSafe(/*out*/ std::string* error_msg);
53 std::string GetArtRoot();
55 std::string GetArtRootSafe(/*out*/ std::string* error_msg);
58 std::string GetArtBinDir();
61 std::string GetAndroidData();
63 std::string GetAndroidDataSafe(/*out*/ std::string* error_msg);
67 std::string GetDefaultBootImageLocation(std::string* error_msg);
70 std::string GetDefaultBootImageLocation(const std::string& android_root);
74 std::string GetDalvikCache(const char* subdir);
[all …]
Dcommon_art_test.h52 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_;
100 static std::unique_ptr<FakeDex> Create( in Create()
101 const std::string& location, in Create()
106 return std::unique_ptr<FakeDex>(fake_dex); in Create()
109 static std::unique_ptr<const DexFile> CreateFakeDex( in CreateFakeDex()
[all …]
Dcommon_art_test.cc95 ScratchFile::ScratchFile(const std::string& filename) : filename_(filename) { in ScratchFile()
108 *this = std::move(other); in ScratchFile()
113 std::swap(filename_, other.filename_); in operator =()
114 std::swap(file_, other.file_); in operator =()
144 std::string CommonArtTestImpl::GetAndroidBuildTop() { in GetAndroidBuildTop()
146 std::string android_build_top; in GetAndroidBuildTop()
149 std::string argv; in GetAndroidBuildTop()
152 std::filesystem::path path(argv.substr(0, argv.find('\0'))); in GetAndroidBuildTop()
153 path = std::filesystem::absolute(path); in GetAndroidBuildTop()
157 if (path.filename() == std::filesystem::path("linux-x86")) { in GetAndroidBuildTop()
[all …]
Dtransform_iterator_test.cc44 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 …]
/art/dexlayout/
Ddexlayout_test.cc227 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 …]
Ddexdiag.cc56 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 …]
Ddexdiag_test.cc41 std::string GetDexDiagFilePath() { in GetDexDiagFilePath()
42 std::string path = GetArtBinDir() + '/' + kDexDiagBinaryName; in GetDexDiagFilePath()
43 std::string path32 = path + "32"; in GetDexDiagFilePath()
53 std::unique_ptr<OatFile> OpenOatAndVdexFiles() { in OpenOatAndVdexFiles()
60 const std::string default_location = GetCoreOatLocation(); in OpenOatAndVdexFiles()
62 std::string oat_location = GetSystemImageFilename(default_location.c_str(), kRuntimeISA); in OpenOatAndVdexFiles()
64 std::cout << "==" << oat_location << std::endl; in OpenOatAndVdexFiles()
65 std::string error_msg; in OpenOatAndVdexFiles()
66 std::unique_ptr<OatFile> oat(OatFile::Open(/*zip_fd=*/ -1, in OpenOatAndVdexFiles()
77 bool Exec(pid_t this_pid, const std::vector<std::string>& args, std::string* error_msg) { in Exec()
[all …]
/art/runtime/gc/space/
Dimage_space.h127 const std::vector<std::string>& boot_class_path,
128 const std::vector<std::string>& boot_class_path_locations,
129 const std::string& image_location,
136 /*out*/std::vector<std::unique_ptr<ImageSpace>>* boot_image_spaces,
141 static std::unique_ptr<ImageSpace> CreateFromAppImage(const char* image,
143 std::string* error_msg)
146 static std::unique_ptr<ImageSpace> CreateFromAppImage(
150 std::string* error_msg) REQUIRES_SHARED(Locks::mutator_lock_);
160 std::unique_ptr<const OatFile> ReleaseOatFile();
171 const std::string GetImageFilename() const { in GetImageFilename()
[all …]
/art/runtime/ti/
Dagent.h41 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/compiler/utils/
Dassembler_test.h62 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 …]
Dassembler_test_base.h73 void Driver(const std::vector<uint8_t>& art_code, in Driver()
74 const std::string& assembly_text, in Driver()
75 const std::string& test_name) { in Driver()
81 std::string ref_asm_file = test_path(".ref.S"); in Driver()
85 std::string ref_obj_file = test_path(".ref.o"); in Driver()
89 std::vector<uint8_t> ref_code; in Driver()
102 std::string art_obj_file = test_path(".art.o"); in Driver()
110 std::string art_disassembly; in Driver()
113 std::string ref_disassembly; in Driver()
133 std::string FindTool(const std::string& tool_name) { in FindTool()
[all …]
/art/runtime/interpreter/
Dsafe_math_test.cc28 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/
Dhidden_api_finder.h43 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/
Dinstruction_set_features.h38 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();
76 std::unique_ptr<const InstructionSetFeatures> AddFeaturesFromString(
[all …]
Dinstruction_set_features_test.cc50 std::unique_ptr<const InstructionSetFeatures> instruction_set_features(
54 std::string key = StringPrintf("dalvik.vm.isa.%s.variant", GetInstructionSetString(kRuntimeISA));
55 std::string dex2oat_isa_variant = android::base::GetProperty(key, "");
59 std::string error_msg;
60 std::unique_ptr<const InstructionSetFeatures> property_features(
83 std::unique_ptr<const InstructionSetFeatures> instruction_set_features(
87 std::string variant_key = StringPrintf("dalvik.vm.isa.%s.variant",
89 std::string dex2oat_isa_variant = android::base::GetProperty(variant_key, "");
92 std::string features_key = StringPrintf("dalvik.vm.isa.%s.features",
94 std::string dex2oat_isa_features = android::base::GetProperty(features_key, "");
[all …]
/art/dex2oat/
Ddex2oat_test.cc73 int GenerateOdexForTestWithStatus(const std::vector<std::string>& dex_locations, in GenerateOdexForTestWithStatus()
74 const std::string& odex_location, in GenerateOdexForTestWithStatus()
76 std::string* error_msg, in GenerateOdexForTestWithStatus()
77 const std::vector<std::string>& extra_args = {}, in GenerateOdexForTestWithStatus()
79 std::unique_ptr<File> oat_file;
80 std::vector<std::string> args;
82 for (const std::string& dex_location : dex_locations) {
88 args.push_back("--oat-fd=" + std::to_string(oat_file->Fd()));
111 const std::string& dex_location, in GenerateOdexForTest()
112 const std::string& odex_location, in GenerateOdexForTest()
[all …]
/art/tools/hiddenapi/
Dhiddenapi_test.cc33 std::string GetHiddenApiCmd() { in GetHiddenApiCmd()
34 std::string file_path = GetArtBinDir() + "/hiddenapi"; in GetHiddenApiCmd()
45 std::unique_ptr<const DexFile> RunHiddenapiEncode(const ScratchFile& flags_csv, in RunHiddenapiEncode()
46 const std::vector<std::string>& extra_args, in RunHiddenapiEncode()
48 std::string error; in RunHiddenapiEncode()
50 std::unique_ptr<ZipArchive> jar( in RunHiddenapiEncode()
56 std::unique_ptr<ZipEntry> jar_classes_dex(jar->Find("classes.dex", &error)); in RunHiddenapiEncode()
67 std::vector<std::string> argv_str; in RunHiddenapiEncode()
85 std::string error; in RunHiddenapiList()
86 std::string boot_jar = GetTestDexFileName("HiddenApi"); in RunHiddenapiList()
[all …]

12345678910>>...44