/system/logging/logd/ |
D | PruneList.cpp | 49 bool PruneList::Init(const char* str) { in Init() argument 54 if (str && !strcmp(str, "default")) { in Init() 55 str = nullptr; in Init() 57 if (str && !strcmp(str, "disable")) { in Init() 58 str = ""; in Init() 63 if (str) { in Init() 64 filter = str; in Init() 85 for (str = filter.c_str(); *str; ++str) { in Init() 86 if (isspace(*str)) { in Init() 91 if (*str == '~' || *str == '!') { // ~ supported, ! undocumented in Init() [all …]
|
D | LogAudit.cpp | 104 static inline bool hasMetadata(char* str, int str_len) { in hasMetadata() argument 111 (str[str_len - 9] == '/' || str[str_len - 39] == '/'); in hasMetadata() 181 char* str = nullptr; in logPrint() local 183 int rc = vasprintf(&str, fmt, args); in logPrint() 193 while ((cp = strchr(str, '\n'))) { in logPrint() 197 while ((cp = strstr(str, " "))) { in logPrint() 204 char* pidptr = strstr(str, pid_str); in logPrint() 217 bool info = strstr(str, " permissive=1") || strstr(str, " policy loaded "); in logPrint() 225 denial_metadata = auditParse(str, uid); in logPrint() 228 iov[1].iov_base = str; in logPrint() [all …]
|
/system/bt/gd/common/ |
D | strings.cc | 50 bool IsValidHexString(const std::string& str) { in IsValidHexString() argument 51 return std::find_if_not(str.begin(), str.end(), IsHexDigit{}) == str.end(); in IsValidHexString() 54 std::optional<std::vector<uint8_t>> FromHexString(const std::string& str) { in FromHexString() argument 55 if (str.size() % 2 != 0) { in FromHexString() 56 LOG_INFO("str size is not divisible by 2, size is %zu", str.size()); in FromHexString() 59 if (std::find_if_not(str.begin(), str.end(), IsHexDigit{}) != str.end()) { in FromHexString() 64 value.reserve(str.size() / 2); in FromHexString() 65 for (size_t i = 0; i < str.size(); i += 2) { in FromHexString() 67 auto ret = std::from_chars(str.c_str() + i, str.c_str() + i + 2, v, 16); in FromHexString() 77 std::string StringTrim(std::string str) { in StringTrim() argument [all …]
|
D | strings.h | 46 return tmp.str(); in ToHexString() 58 return tmp.str(); 71 return ss.str(); in ToHexString() 77 bool IsValidHexString(const std::string& str); 80 std::optional<std::vector<uint8_t>> FromHexString(const std::string& str); 83 std::string StringTrim(std::string str); 86 std::vector<std::string> StringSplit(const std::string& str, const std::string& delim, size_t max_t… 92 std::optional<int64_t> Int64FromString(const std::string& str); 94 std::optional<uint64_t> Uint64FromString(const std::string& str); 96 std::optional<bool> BoolFromString(const std::string& str); [all …]
|
/system/logging/liblog/tests/ |
D | liblog_host_test.cpp | 82 CheckMessage(false, captured_stderr.str(), ANDROID_LOG_VERBOSE, "tag", "verbose main"); in TEST() 83 CheckMessage(true, captured_stderr.str(), ANDROID_LOG_INFO, "tag", "info main"); in TEST() 84 CheckMessage(true, captured_stderr.str(), ANDROID_LOG_ERROR, "tag", "error main"); in TEST() 86 CheckMessage(false, captured_stderr.str(), ANDROID_LOG_VERBOSE, "tag", "verbose radio"); in TEST() 87 CheckMessage(true, captured_stderr.str(), ANDROID_LOG_INFO, "tag", "info radio"); in TEST() 88 CheckMessage(true, captured_stderr.str(), ANDROID_LOG_ERROR, "tag", "error radio"); in TEST() 90 CheckMessage(false, captured_stderr.str(), ANDROID_LOG_VERBOSE, "tag", "verbose system"); in TEST() 91 CheckMessage(true, captured_stderr.str(), ANDROID_LOG_INFO, "tag", "info system"); in TEST() 92 CheckMessage(true, captured_stderr.str(), ANDROID_LOG_ERROR, "tag", "error system"); in TEST() 94 CheckMessage(false, captured_stderr.str(), ANDROID_LOG_VERBOSE, "tag", "verbose crash"); in TEST() [all …]
|
/system/extras/simpleperf/scripts/ |
D | simpleperf_utils.py | 35 def get_script_dir() -> str: 47 def get_platform() -> str: 55 def is_python3() -> str: 59 def log_debug(msg: str): argument 63 def log_info(msg: str): argument 67 def log_warning(msg: str): argument 71 def log_fatal(msg: str): argument 75 def log_exit(msg: str): argument 83 def set_log_level(level_name: str): argument 95 def str_to_bytes(str_value: str) -> bytes: argument [all …]
|
D | simpleperf_report_lib.py | 38 def _char_pt(s: str) -> bytes: argument 42 def _char_pt_to_str(char_pt: ct.c_char_p) -> str: 46 def _check(cond: bool, failmsg: str): argument 75 def thread_comm(self) -> str: 98 def name(self) -> str: 101 def parse_value(self, data: ct.c_char_p) -> Union[str, bytes, List[bytes]]: 160 def name(self) -> str: 192 def dso_name(self) -> str: 196 def symbol_name(self) -> str: 238 def __init__(self, native_lib_path: Optional[str] = None): argument [all …]
|
/system/core/libutils/ |
D | Unicode_test.cpp | 43 const uint8_t str[] = { }; in TEST_F() local 45 measured = utf8_to_utf16_length(str, 0); in TEST_F() 54 const uint8_t str[] = { 0x30 }; in TEST_F() local 56 measured = utf8_to_utf16_length(str, sizeof(str)); in TEST_F() 65 const uint8_t str[] = { 0xE2, 0x8C, 0xA3 }; in TEST_F() local 67 measured = utf8_to_utf16_length(str, sizeof(str)); in TEST_F() 76 const uint8_t str[] = { 0xF0, 0x90, 0x80, 0x80 }; in TEST_F() local 78 measured = utf8_to_utf16_length(str, sizeof(str)); in TEST_F() 88 const uint8_t str[] = { 0xE2, 0x8C }; in TEST_F() local 90 measured = utf8_to_utf16_length(str, sizeof(str)); in TEST_F() [all …]
|
D | String16.cpp | 78 char16_t* str = (char16_t*)buf->data(); in allocFromUTF16() local 79 memcpy(str, u16str, u16len * sizeof(char16_t)); in allocFromUTF16() 80 str[u16len] = 0; in allocFromUTF16() 81 return str; in allocFromUTF16() 180 char16_t* str = (char16_t*)buf->data(); in setTo() local 181 memmove(str, other, len*sizeof(char16_t)); in setTo() 182 str[len] = 0; in setTo() 183 mString = str; in setTo() 208 char16_t* str = static_cast<char16_t*>(buf->data()); in append() local 209 memcpy(str + myLen, chrs, otherLen * sizeof(char16_t)); in append() [all …]
|
D | String8.cpp | 48 char* str = static_cast<char*>(buf->data()); in getEmptyString() local 49 *str = 0; in getEmptyString() 68 char* str = (char*)buf->data(); in allocFromUTF8() local 69 memcpy(str, in, len); in allocFromUTF8() 70 str[len] = 0; in allocFromUTF8() 71 return str; in allocFromUTF8() 341 char* str = (char*)buf->data(); in real_append() local 342 mString = str; in real_append() 343 str += myLen; in real_append() 344 memcpy(str, other, otherLen); in real_append() [all …]
|
/system/tools/aidl/ |
D | code_writer_unittest.cpp | 30 string str; in TEST() local 31 CodeWriterPtr ptr = CodeWriter::ForString(&str); in TEST() 35 EXPECT_EQ(str, "Write this"); in TEST() 39 string str; in TEST() local 40 CodeWriterPtr ptr = CodeWriter::ForString(&str); in TEST() 44 EXPECT_EQ(str, "Write this and that"); in TEST() 51 std::string str; in TEST() local 52 CodeWriterPtr ptr = CodeWriter::ForString(&str); in TEST() 56 EXPECT_EQ(str, "가"); in TEST()
|
/system/tools/aidl/tests/golden_output/aidl_test_loggable_interface-ndk_platform-source/gen/include/aidl/android/aidl/loggable/ |
D | Data.h | 25 std::string str; variable 33 …return std::tie(num, str, nestedUnion, nestedEnum) != std::tie(rhs.num, rhs.str, rhs.nestedUnion, … 36 …return std::tie(num, str, nestedUnion, nestedEnum) < std::tie(rhs.num, rhs.str, rhs.nestedUnion, r… 39 …return std::tie(num, str, nestedUnion, nestedEnum) <= std::tie(rhs.num, rhs.str, rhs.nestedUnion, … 42 …return std::tie(num, str, nestedUnion, nestedEnum) == std::tie(rhs.num, rhs.str, rhs.nestedUnion, … 45 …return std::tie(num, str, nestedUnion, nestedEnum) > std::tie(rhs.num, rhs.str, rhs.nestedUnion, r… 48 …return std::tie(num, str, nestedUnion, nestedEnum) >= std::tie(rhs.num, rhs.str, rhs.nestedUnion, … 56 os << ", str: " << ::android::internal::ToString(str); in toString() 60 return os.str(); in toString()
|
/system/tools/aidl/tests/golden_output/aidl_test_loggable_interface-ndk-source/gen/include/aidl/android/aidl/loggable/ |
D | Data.h | 25 std::string str; variable 33 …return std::tie(num, str, nestedUnion, nestedEnum) != std::tie(rhs.num, rhs.str, rhs.nestedUnion, … 36 …return std::tie(num, str, nestedUnion, nestedEnum) < std::tie(rhs.num, rhs.str, rhs.nestedUnion, r… 39 …return std::tie(num, str, nestedUnion, nestedEnum) <= std::tie(rhs.num, rhs.str, rhs.nestedUnion, … 42 …return std::tie(num, str, nestedUnion, nestedEnum) == std::tie(rhs.num, rhs.str, rhs.nestedUnion, … 45 …return std::tie(num, str, nestedUnion, nestedEnum) > std::tie(rhs.num, rhs.str, rhs.nestedUnion, r… 48 …return std::tie(num, str, nestedUnion, nestedEnum) >= std::tie(rhs.num, rhs.str, rhs.nestedUnion, … 56 os << ", str: " << ::android::internal::ToString(str); in toString() 60 return os.str(); in toString()
|
/system/bt/osi/test/ |
D | allocator_test.cc | 29 char str[] = "IloveBluetooth"; in TEST_F() local 30 size_t len = strlen(str); in TEST_F() 34 copy_str = osi_strndup(str, 0); in TEST_F() 39 copy_str = osi_strndup(str, len); in TEST_F() 40 EXPECT_EQ(0, strcmp(str, copy_str)); in TEST_F() 44 copy_str = osi_strndup(str, len - 5); in TEST_F() 49 copy_str = osi_strndup(str, len + 5); in TEST_F() 50 EXPECT_EQ(0, strcmp(str, copy_str)); in TEST_F()
|
/system/extras/perf2cfg/perf2cfg/ |
D | parse.py | 23 def build_flags(flags: Iterable[str]) -> str: argument 43 def build_name(name: str) -> str: argument 55 def parse_address(line: str) -> int: argument 80 def parse_flags(line: str) -> List[str]: argument 107 def parse_name(line: str) -> str: argument
|
D | analyze.py | 55 self.event_counts: DefaultDict[str, int] = collections.defaultdict(int) 57 def record_sample(self, event_name: str, event_count: int) -> None: argument 78 def __init__(self, name: str) -> None: argument 86 self.event_counts: DefaultDict[str, int] = collections.defaultdict(int) 89 def record_sample(self, relative_addr: int, event_name: str, argument 128 def __init__(self, event_names: Optional[Iterable[str]] = None) -> None: argument 141 self.event_counts: DefaultDict[str, int] = collections.defaultdict(int) 142 self.methods: Dict[str, Method] = {} 146 def analyze(self, filename: str) -> None: argument 194 def record_sample(self, method_name: str, relative_addr: int, argument [all …]
|
/system/tools/aidl/tests/golden_output/aidl_test_loggable_interface-cpp-source/gen/include/android/aidl/loggable/ |
D | Data.h | 22 …return std::tie(num, str, nestedUnion, nestedEnum) != std::tie(rhs.num, rhs.str, rhs.nestedUnion, … 25 …return std::tie(num, str, nestedUnion, nestedEnum) < std::tie(rhs.num, rhs.str, rhs.nestedUnion, r… 28 …return std::tie(num, str, nestedUnion, nestedEnum) <= std::tie(rhs.num, rhs.str, rhs.nestedUnion, … 31 …return std::tie(num, str, nestedUnion, nestedEnum) == std::tie(rhs.num, rhs.str, rhs.nestedUnion, … 34 …return std::tie(num, str, nestedUnion, nestedEnum) > std::tie(rhs.num, rhs.str, rhs.nestedUnion, r… 37 …return std::tie(num, str, nestedUnion, nestedEnum) >= std::tie(rhs.num, rhs.str, rhs.nestedUnion, … 41 ::std::string str; 54 os << ", str: " << ::android::internal::ToString(str); in toString() 58 return os.str(); in toString()
|
/system/libbase/include/android-base/ |
D | test_utils.h | 30 std::string str(); 56 #define ASSERT_MATCH(str, pattern) \ argument 58 auto __s = (str); \ 64 #define ASSERT_NOT_MATCH(str, pattern) \ argument 66 auto __s = (str); \ 72 #define EXPECT_MATCH(str, pattern) \ argument 74 auto __s = (str); \ 80 #define EXPECT_NOT_MATCH(str, pattern) \ argument 82 auto __s = (str); \
|
/system/update_engine/scripts/update_payload/ |
D | histogram_unittest.py | 37 return '%s (%s)' % (size, fmt) if fmt else str(size) 47 self.CompareToExpectedDefault(str(histogram.Histogram( 51 self.CompareToExpectedDefault(str(histogram.Histogram.FromCountDict( 55 self.CompareToExpectedDefault(str(histogram.Histogram.FromKeyList( 63 actual_str = str(histogram.Histogram([('Yes', 5), ('No', 1)], scale=5)) 71 actual_str = str(histogram.Histogram(
|
/system/extras/profcollectd/libprofcollectd/bindings/libbase/ |
D | lib.rs | 29 fn GetProperty(key: &str, default_value: &str) -> String; in GetProperty() argument 32 fn SetProperty(key: &str, value: &str); in SetProperty() argument
|
/system/tools/hidl/ |
D | hidl-gen_l.ll | 83 std::string str(yytext); 86 yylloc->lines(std::count(str.begin(), str.end(), '\n')); 88 str = StringHelper::LTrim(str, "/"); 89 bool isDoc = StringHelper::StartsWith(str, "**"); 90 str = StringHelper::LTrimAll(str, "*"); 91 str = StringHelper::RTrim(str, "/"); 92 str = StringHelper::RTrimAll(str, "*"); 94 yylval->str = strdup(str.c_str()); 175 {COMPONENT} { yylval->str = strdup(yytext); return token::IDENTIFIER; } 176 {FQNAME} { yylval->str = strdup(yytext); return token::FQNAME; } [all …]
|
/system/chre/apps/test/chqts/src/shared/ |
D | nano_string_test.cc | 98 const char *str = ""; in TEST() local 99 EXPECT_EQ(::strlen(str), nanoapp_testing::strlen(str)); in TEST() 103 const char *str = "random string\n"; in TEST() local 104 EXPECT_EQ(::strlen(str), nanoapp_testing::strlen(str)); in TEST() 112 static void testStrncpy(const char *str, size_t len) { in testStrncpy() argument 119 ::strncpy(expected, str, len); in testStrncpy() 120 nanoapp_testing::strncpy(actual, str, len); in testStrncpy() 148 static void testHexAscii(uint32_t value, const char *str) { in testHexAscii() argument 157 EXPECT_STREQ(str, array); in testHexAscii()
|
/system/chre/java/test/cross_validation/src/com/google/android/chre/test/crossvalidator/ |
D | SensorDatapoint.java | 35 String str = String.format("<SensorDatapoint timestamp: %d, values: [ ", timestamp); in toString() local 37 str += String.format("%f ", val); in toString() 39 str += "]"; in toString() 40 return str; in toString()
|
/system/extras/simpleperf/scripts/test/ |
D | do_test.py | 79 def get_all_tests() -> List[str]: 90 def get_host_tests() -> List[str]: 91 def filter_fn(test: str) -> bool: argument 97 tests: List[str], argument 98 test_from: Optional[str], argument 99 test_pattern: Optional[List[str]]) -> List[str]: argument 113 def get_test_type(test: str) -> Optional[str]: argument 163 def run_tests(tests: List[str]) -> bool: argument 171 def test_process_entry(tests: List[str], test_options: List[str], conn: mp.connection.Connection): argument 187 name: str [all …]
|
D | test_utils.py | 33 INFERNO_SCRIPT = str(Path(__file__).parents[1] / ('inferno.bat' if is_windows() else 'inferno.sh')) 41 cls, test_dir: str, testdata_dir: str, use_browser: bool, ndk_path: Optional[str], argument 42 device_serial_number: Optional[str], argument 72 def log(cls, s: str): argument 78 def testdata_path(cls, testdata_name: str) -> str: argument 80 return str(cls.testdata_dir / testdata_name) 83 def get_test_dir(cls, test_name: str) -> Path: argument 88 def script_path(cls, script_name: str) -> str: argument 90 return str(cls.script_dir / script_name) 111 def write_progress(cls, progress: str): argument [all …]
|