Searched refs:string (Results 1 - 25 of 430) sorted by relevance

1234567891011>>

/art/tools/checker/common/
H A Dtesting.py15 def ToUnicode(string):
16 """ Converts a string into Unicode.
19 is not `None`, because `unicode` turns it into an actual "None" string.
21 assert string is not None
22 return unicode(string)
/art/runtime/base/
H A Dstringprintf.h21 #include <string>
25 // Returns a string corresponding to printf-like formatting of the arguments.
26 std::string StringPrintf(const char* fmt, ...)
30 void StringAppendF(std::string* dst, const char* fmt, ...)
34 void StringAppendV(std::string* dst, const char* format, va_list ap);
H A Dscoped_flock.h21 #include <string>
42 bool Init(const char* filename, int flags, bool block, std::string* error_msg);
44 bool Init(const char* filename, std::string* error_msg);
48 bool Init(File* file, std::string* error_msg);
H A Dfile_magic.h21 #include <string>
28 ScopedFd OpenAndReadMagic(const char* filename, uint32_t* magic, std::string* error_msg);
H A Dsystrace.h22 #include <string>
33 explicit ScopedTrace(const std::string& name) : ScopedTrace(name.c_str()) {}
/art/build/
H A DAndroid.common_utils.mk21 # Convert a string into an uppercase string.
23 # $(1): a string which should be made uppercase
24 art-string-to-uppercase = $(shell echo $(1) | tr '[:lower:]' '[:upper:]')
/art/runtime/
H A Dnative_bridge_art_interface.h22 #include <string>
29 bool LoadNativeBridge(std::string& native_bridge_library_filename);
32 void PreInitializeNativeBridge(std::string dir);
H A Doat_file_test.cc19 #include <string>
32 EXPECT_EQ(std::string("/data/app/foo/base.apk"),
36 EXPECT_EQ(std::string("/system/framework/base.apk"),
40 EXPECT_EQ(std::string("/data/app/foo/base.apk"),
44 EXPECT_EQ(std::string("/data/app/foo/base.apk"),
48 EXPECT_EQ(std::string("/data/app/foo/base.apk:classes2.dex"),
52 EXPECT_EQ(std::string("/data/app/foo/base.apk:classes11.dex"),
56 EXPECT_EQ(std::string("base.apk"),
60 EXPECT_EQ(std::string("o/base.apk"),
75 std::string error_ms
[all...]
H A Doat_file_assistant.h23 #include <string>
145 bool Lock(std::string* error_msg);
172 // to a string describing why there was a failure or the update was not
175 std::string* error_msg);
216 const std::string* OdexFileName();
235 const std::string* OatFileName();
246 std::string ArtFileName(const OatFile* oat_file) const;
260 // to a string describing why there was a failure or the update was not
262 ResultOfAttemptToUpdate RelocateOatFile(const std::string* input_file, std::string* error_ms
[all...]
H A Dutils.h26 #include <string>
119 std::string PrintableChar(uint16_t ch);
121 // Returns an ASCII string corresponding to the given UTF-8 string.
123 std::string PrintableString(const char* utf8);
126 bool StartsWith(const std::string& s, const char* prefix);
129 bool EndsWith(const std::string& s, const char* suffix);
136 std::string PrettyDescriptor(mirror::String* descriptor)
138 std::string PrettyDescriptor(const char* descriptor);
139 std::string PrettyDescripto
[all...]
H A Dcommon_runtime_test.h23 #include <string>
37 typedef std::vector<std::pair<std::string, const void*>> RuntimeOptions;
49 const std::string& GetFilename() const {
63 std::string filename_;
75 static void SetUpAndroidData(std::string& android_data);
77 static void TearDownAndroidData(const std::string& android_data, bool fail_on_error);
80 static std::vector<std::string> GetLibCoreDexFileNames();
83 static std::string GetAndroidHostToolsDir();
86 static std::string GetAndroidTargetToolsDir(InstructionSet isa);
103 static std::string GetCoreArtLocatio
[all...]
/art/dexdump/
H A Ddexdump_test.cc17 #include <string>
44 bool Exec(const std::vector<std::string>& args, std::string* error_msg) {
46 std::string file_path = GetTestAndroidRoot() + "/bin/dexdump2";
48 std::vector<std::string> exec_argv = { file_path };
53 std::string dex_file_;
58 std::string error_msg;
63 std::string error_msg;
68 std::string error_msg;
73 std::string error_ms
[all...]
/art/dexlist/
H A Ddexlist_test.cc17 #include <string>
44 bool Exec(const std::vector<std::string>& args, std::string* error_msg) {
45 std::string file_path = GetTestAndroidRoot();
52 std::vector<std::string> exec_argv = { file_path };
57 std::string dex_file_;
62 std::string error_msg;
67 std::string error_msg;
72 std::string error_msg;
77 std::string error_ms
[all...]
/art/imgdiag/
H A Dimgdiag_test.cc17 #include <string>
65 std::string GetImgDiagFilePath() {
66 std::string root = GetTestAndroidRoot();
75 std::string root32 = root + "32";
86 bool Exec(pid_t image_diff_pid, const std::string& boot_image, std::string* error_msg) {
90 std::string file_path = GetImgDiagFilePath();
94 std::string diff_pid_args;
95 std::string zygote_diff_pid_args;
106 std::string boot_image_arg
[all...]
/art/oatdump/
H A Doatdump_test.cc17 #include <string>
45 std::string GetOatDumpFilePath() {
46 std::string root = GetTestAndroidRoot();
61 bool Exec(Mode mode, const std::vector<std::string>& args, std::string* error_msg) {
62 std::string file_path = GetOatDumpFilePath();
66 std::vector<std::string> exec_argv = { file_path };
72 exec_argv.push_back("--instruction-set=" + std::string(GetInstructionSetString(kRuntimeISA)));
84 std::string core_art_location_;
85 std::string core_oat_location
[all...]
/art/compiler/utils/
H A Dassembler_test_base.h37 static std::string tmpnam_;
42 AssemblerTestInfrastructure(std::string architecture,
43 std::string as,
44 std::string as_params,
45 std::string objdump,
46 std::string objdump_params,
47 std::string disasm,
48 std::string disasm_params,
70 std::string asm_tool = FindTool(assembler_cmd_name_);
79 std::string objdump_too
[all...]
H A Dassembler_test.h33 // Helper for a constexpr string length.
52 typedef std::string (*TestFn)(AssemblerTest* assembler_test, Ass* assembler);
54 void DriverFn(TestFn f, std::string test_name) {
59 void DriverStr(std::string assembly_string, std::string test_name) {
63 std::string RepeatR(void (Ass::*f)(Reg), std::string fmt) {
70 std::string Repeatr(void (Ass::*f)(Reg), std::string fmt) {
77 std::string RepeatR
[all...]
/art/runtime/jit/
H A Dprofile_saver.h31 static void Start(const std::string& output_filename,
33 const std::vector<std::string>& code_paths,
34 const std::string& foreign_dex_profile_path,
35 const std::string& app_data_dir)
47 static void NotifyDexUse(const std::string& dex_location);
59 static bool HasSeenMethod(const std::string& profile,
64 ProfileSaver(const std::string& output_filename,
66 const std::vector<std::string>& code_paths,
67 const std::string& foreign_dex_profile_path,
68 const std::string
[all...]
/art/runtime/gc/space/
H A Dimage_space.h49 std::string* error_msg)
55 std::string* error_msg)
68 std::string* error_msg);
86 const std::string GetImageFilename() const {
92 const std::string GetImageLocation() const {
124 std::string* system_location,
126 std::string* data_location,
133 static void CreateMultiImageLocations(const std::string& input_image_file_name,
134 const std::string& boot_classpath,
135 std::vector<std::string>* image_filename
[all...]
/art/runtime/arch/
H A Dinstruction_set_features.h38 // Process a CPU variant string for the given ISA and create an InstructionSetFeatures.
40 const std::string& variant,
41 std::string* error_msg);
60 // Parse a string of the form "div,-atomic_ldrd_strd" adding and removing these features to
62 const InstructionSetFeatures* AddFeaturesFromString(const std::string& feature_list,
63 std::string* error_msg) const WARN_UNUSED;
74 // Return a string of the form "div,lpae" or "none".
75 virtual std::string GetFeatureString() const = 0;
107 const std::string& variant);
111 AddFeaturesFromSplitString(bool smp, const std::vector<std::string>
[all...]
/art/runtime/arch/arm64/
H A Dinstruction_set_features_arm64.h27 // Process a CPU variant string like "krait" or "cortex-a15" and create InstructionSetFeatures.
28 static const Arm64InstructionSetFeatures* FromVariant(const std::string& variant,
29 std::string* error_msg);
56 // Return a string of the form "a53" or "none".
57 std::string GetFeatureString() const OVERRIDE;
74 AddFeaturesFromSplitString(const bool smp, const std::vector<std::string>& features,
75 std::string* error_msg) const OVERRIDE;
/art/runtime/arch/mips64/
H A Dinstruction_set_features_mips64.h27 // Process a CPU variant string like "r4000" and create InstructionSetFeatures.
28 static const Mips64InstructionSetFeatures* FromVariant(const std::string& variant,
29 std::string* error_msg);
56 std::string GetFeatureString() const OVERRIDE;
63 AddFeaturesFromSplitString(const bool smp, const std::vector<std::string>& features,
64 std::string* error_msg) const OVERRIDE;
H A Dinstruction_set_features_mips64.cc28 const std::string& variant, std::string* error_msg ATTRIBUTE_UNUSED) {
55 std::string line;
59 if (line.find("processor") != std::string::npos && line.find(": 1") != std::string::npos) {
92 std::string Mips64InstructionSetFeatures::GetFeatureString() const {
93 std::string result;
103 const bool smp, const std::vector<std::string>& features, std::string* error_msg) const {
107 std::string featur
[all...]
/art/compiler/
H A Dcfi_test.h40 std::vector<std::string> lines;
68 for (const std::string& line : lines) {
75 // Helper - get offset just past the end of given string.
76 static size_t FindEndOf(const std::string& str, const char* substr) {
78 CHECK_NE(std::string::npos, pos);
84 std::vector<std::string>* output) {
85 std::string line;
90 while ((pos = line.find(" ")) != std::string::npos) {
101 static void ReformatCfi(const std::vector<std::string>& lines,
102 std::vector<std::string>* outpu
[all...]
/art/cmdline/
H A Dtoken_range.h22 #include <string>
36 // Short-hand for a vector of strings. A single string and a token is synonymous.
37 using TokenList = std::vector<std::string>;
111 // Create a token range by splitting a string. Each separator gets their own token.
114 static TokenRange Split(const std::string& string, std::initializer_list<char> separators) { argument
117 std::string tok;
118 for (auto&& c : string) {
128 new_token_list.push_back(std::string() + sep);
164 const std::string
[all...]

Completed in 622 milliseconds

1234567891011>>