Searched defs:string (Results 1 - 25 of 53) sorted by relevance

123

/system/core/adb/
H A Dcommandline.h43 static void OnStream(std::string* string, FILE* stream, const char* buffer, int length) { argument
44 if (string != nullptr) {
45 string->append(buffer, length);
57 // stream or to a string
63 DefaultStandardStreamsCallback(std::string* stdout_str, std::string* stderr_str)
80 std::string* stdout_str_;
81 std::string* stderr_str_;
95 const std::string
[all...]
/system/core/libunwindstack/tests/
H A DMemoryFake.h22 #include <string>
59 void SetMemory(uint64_t addr, std::string string) { argument
60 SetMemory(addr, string.c_str(), string.size() + 1);
/system/core/property_service/libpropertyinfoserializer/
H A Dspace_tokenizer.h25 SpaceTokenizer(const std::string& string) argument
26 : string_(string), it_(string_.begin()), end_(string_.end()) {}
28 std::string GetNext() {
29 auto next = std::string();
39 std::string GetRemaining() { return std::string(it_, end_); }
42 std::string string_;
43 std::string::const_iterator it_;
44 std::string
[all...]
H A Dtrie_builder.cpp26 TrieBuilder::TrieBuilder(const std::string& default_context, const std::string& default_type)
34 bool TrieBuilder::AddToTrie(const std::string& name, const std::string& context,
35 const std::string& type, bool exact, std::string* error) {
41 bool TrieBuilder::AddToTrie(const std::string& name, const std::string* context,
42 const std::string* type, bool exact, std::string* erro
97 StringPointerFromContainer(const std::string& string, std::set<std::string>* container) argument
[all...]
H A Dtrie_node_arena.h20 #include <string>
29 ArenaObjectPointer(std::string& arena_data, uint32_t offset)
35 std::string& arena_data_;
64 uint32_t AllocateAndWriteString(const std::string& string) { argument
66 char* data = static_cast<char*>(AllocateData(string.size() + 1, &offset));
67 strcpy(data, string.c_str());
92 const std::string& data() const { return data_; }
94 std::string truncated_data() const {
101 std::string data
[all...]
/system/core/init/
H A Ddevices_test.cpp32 void TestGetSymlinks(const std::string& platform_device, const Uevent& uevent,
33 const std::vector<std::string> expected_links) {
37 std::string platform_device_dir = fake_sys_root.path + platform_device;
40 std::string platform_bus = fake_sys_root.path + "/bus/platform"s;
46 std::vector<std::string> result;
71 std::vector<std::string> expected_result{"/dev/block/platform/soc.0/f9824900.sdhci/mmcblk0"};
85 std::vector<std::string> expected_result{
101 std::vector<std::string> expected_result{
116 std::vector<std::string> expected_result{
130 std::vector<std::string> expected_resul
204 std::string string = "abc!@#$%^&*()"; local
210 std::string string = "!@#$%^&*()"; local
216 std::string string = ")"; local
[all...]
H A Dresult_test.cpp21 #include <string>
31 Result<std::string> result = "success";
42 ASSERT_TRUE(Result<std::string>("success"));
43 ASSERT_TRUE(Result<std::string>("success").has_value());
45 EXPECT_EQ("success", *Result<std::string>("success"));
46 EXPECT_EQ("success", Result<std::string>("success").value());
48 EXPECT_EQ('s', Result<std::string>("success")->data()[0]);
136 Result<std::string> result2 = result.error();
152 Result<std::string> result2 = Error() << result.error();
172 Result<std::string> result
198 ConstructorTracker(T&& string) argument
221 std::string string; member in struct:android::init::ConstructorTracker
[all...]
H A Ddevices.cpp54 static bool FindPciDevicePrefix(const std::string& path, std::string* result) {
60 std::string::size_type start = 9;
65 if (end == std::string::npos) return false;
68 if (end == std::string::npos) return false;
72 // The minimum string that will get to this check is 'pci/', which is malformed,
85 static bool FindVbdDevicePrefix(const std::string& path, std::string* result) {
91 std::string::size_type start = 13;
96 if (end == std::string
279 SanitizePartitionName(std::string* string) argument
[all...]
/system/extras/boottime_tools/io_analysis/
H A Dcheck_io_trace.py22 import string namespace
109 words = string.split(l)
H A Dcheck_verity.py22 import string namespace
H A Dcheck_file_read.py22 import string namespace
H A Dcheck_io_trace_all.py22 import string namespace
/system/core/include/utils/
H A DString16.h20 #include <string> // for std::string
42 //! This is a string holding UTF-16 characters.
68 inline const char16_t* string() const;
71 static inline std::string std_string(const String16& str);
147 inline const char16_t* String16::string() const function in class:android::String16
152 inline std::string String16::std_string(const String16& str)
154 return std::string(String8(str).string());
H A DString8.h20 #include <string> // for std::string
26 #include <string.h> // for strcmp
35 // DO NOT USE: please use std::string
37 //! This is a string holding UTF-8 characters. Does not allow the value more
69 inline const char* string() const;
72 static inline std::string std_string(const String8& str);
140 // return true if this string contains the specified substring
154 * These methods operate on the string as if it were a path name.
222 String8& appendPath(const String8& leaf) { return appendPath(leaf.string()); }
272 inline const char* String8::string() const function in class:android::String8
[all...]
/system/core/libutils/
H A DPrinter.cpp47 ALOGE("%s: Failed to format string", __FUNCTION__);
75 void LogPrinter::printLine(const char* string) { argument
76 if (string == NULL) {
77 ALOGW("%s: NULL string passed in", __FUNCTION__);
81 if (mIgnoreBlankLines || (*string)) {
83 printRaw(string);
90 void LogPrinter::printRaw(const char* string) { argument
91 __android_log_print(mPriority, mLogTag, "%s%s", mPrefix, string);
109 void FdPrinter::printLine(const char* string) { argument
110 if (string
135 printLine(const char* string) argument
156 printLine(const char* string) argument
[all...]
/system/core/libutils/include/utils/
H A DString16.h20 #include <string> // for std::string
42 //! This is a string holding UTF-16 characters.
68 inline const char16_t* string() const;
71 static inline std::string std_string(const String16& str);
147 inline const char16_t* String16::string() const function in class:android::String16
152 inline std::string String16::std_string(const String16& str)
154 return std::string(String8(str).string());
H A DString8.h20 #include <string> // for std::string
26 #include <string.h> // for strcmp
35 // DO NOT USE: please use std::string
37 //! This is a string holding UTF-8 characters. Does not allow the value more
69 inline const char* string() const;
72 static inline std::string std_string(const String8& str);
140 // return true if this string contains the specified substring
154 * These methods operate on the string as if it were a path name.
222 String8& appendPath(const String8& leaf) { return appendPath(leaf.string()); }
272 inline const char* String8::string() const function in class:android::String8
[all...]
/system/core/logd/
H A DLogWhiteBlackList.cpp39 std::string Prune::format() {
50 return std::string("/");
89 std::string filter;
218 std::string PruneList::format() {
222 std::string string; local
225 string = "~!";
228 string += " ~1000/!";
235 string += android::base::StringPrintf(fmt, (*it).format().c_str());
242 string
[all...]
/system/hwservicemanager/
H A DHidlService.cpp14 const std::string &interfaceName,
15 const std::string &instanceName,
37 const std::string &HidlService::getInterfaceName() const {
40 const std::string &HidlService::getInstanceName() const {
83 std::string HidlService::string() const { function in class:android::hidl::manager::implementation::HidlService
/system/bt/vendor_libs/test_vendor_lib/scripts/
H A Dtest_channel.py43 import string namespace
52 return ''.join(random.SystemRandom().choice(string.ascii_uppercase + \
53 string.digits) for _ in range(DEVICE_NAME_LENGTH))
56 return ''.join(random.SystemRandom().choice(string.digits) for _ in \
135 explicit name or address is not provided, a random string of characters
/system/libhidl/transport/
H A DHidlBinderSupport.cpp92 status_t readEmbeddedFromParcel(const hidl_string &string ,
97 string.size() + 1,
107 // Always safe to access out[string.size()] because we read size+1 bytes
108 if (static_cast<const char *>(out)[string.size()] != '\0') {
116 status_t writeEmbeddedToParcel(const hidl_string &string, argument
119 string.c_str(),
120 string.size() + 1,
/system/tools/hidl/utils/
H A DFqInstance.cpp25 const std::string& FqInstance::getPackage() const {
49 const std::string& FqInstance::getInterface() const {
57 const std::string& FqInstance::getInstance() const {
65 bool FqInstance::setTo(const std::string& s) {
68 mInstance = pos == std::string::npos ? std::string{} : s.substr(pos + 1);
94 bool FqInstance::setTo(const std::string& package, size_t majorVer, size_t minorVer,
95 const std::string& interface, const std::string& instance) {
102 bool FqInstance::setTo(size_t majorVer, size_t minorVer, const std::string
111 std::string FqInstance::string() const { function in class:android::FqInstance
[all...]
/system/core/include/log/
H A Dlog_event_list.h25 #include <string>
71 char* string; member in union:__anon1573::__anon1574
205 android_log_event_list& operator<<(const std::string& value) {
236 * confusion, and adds access to string with length.
266 bool AppendString(const std::string& value) {
273 bool Append(const std::string& value) {
/system/core/include/private/
H A Dandroid_logger.h30 #include <string>
174 operator std::string() {
175 if (ret) return std::string("");
179 if (!cp || (len <= 0)) return std::string("");
180 return std::string(cp, len);
/system/core/liblog/include/log/
H A Dlog_event_list.h25 #include <string>
71 char* string; member in union:__anon1677::__anon1678
205 android_log_event_list& operator<<(const std::string& value) {
236 * confusion, and adds access to string with length.
266 bool AppendString(const std::string& value) {
273 bool Append(const std::string& value) {

Completed in 4526 milliseconds

123