Home
last modified time | relevance | path

Searched refs:str (Results 1 – 25 of 700) sorted by relevance

12345678910>>...28

/system/logging/logd/
DPruneList.cpp49 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 …]
DLogAudit.cpp104 static inline bool hasMetadata(char* str, int str_len) { in hasMetadata() argument
111 (str[str_len - 9] == '/' || str[str_len - 39] == '/'); in hasMetadata()
209 char* str = nullptr; in logPrint() local
211 int rc = vasprintf(&str, fmt, args); in logPrint()
221 while ((cp = strchr(str, '\n'))) { in logPrint()
229 char* pidptr = strstr(str, pid_str); in logPrint()
242 bool info = strstr(str, " permissive=1") || strstr(str, " policy loaded "); in logPrint()
250 denial_metadata = auditParse(str, uid); in logPrint()
253 iov[1].iov_base = str; in logPrint()
254 iov[1].iov_len = strlen(str); in logPrint()
[all …]
/system/logging/liblog/tests/
Dliblog_host_test.cpp82 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/
Dsimpleperf_utils.py40 def get_script_dir() -> str:
52 def get_platform() -> str:
60 def str_to_bytes(str_value: str) -> bytes: argument
66 def bytes_to_str(bytes_value: Optional[bytes]) -> str:
72 def get_target_binary_path(arch: str, binary_name: str) -> str: argument
84 def get_host_binary_path(binary_name: str) -> str: argument
105 def is_executable_available(executable: str, option='--help') -> bool: argument
153 def find_ndk_and_sdk_paths(cls, ndk_path: Optional[str] = None argument
154 ) -> Iterator[Tuple[Optional[str], Optional[str]]]:
186 def find_sdk_path(cls, ndk_path: str) -> Optional[str]: argument
[all …]
Dbinary_cache_builder.py45 def get_path_in_cache(self, device_path: str, build_id: str) -> Path: argument
70 def collect_binaries(self, binaries: Dict[str, str], binary_cache: BinaryCache): argument
87 def collect_binaries(self, binaries: Dict[str, str], binary_cache: BinaryCache): argument
94 def collect_binary(self, path: str, build_id: str, binary_cache: BinaryCache): argument
101 def check_and_pull_binary(self, path: str, expected_build_id: str, binary_cache_file: Path): argument
123 def pull_file_from_device(self, device_path: str, host_path: Path) -> bool: argument
124 if self.adb.run(['pull', device_path, str(host_path)]):
153 def collect_binaries(self, binaries: Dict[str, str], binary_cache: BinaryCache): argument
165 def create_filename_map(self, binaries: Dict[str, str]): argument
173 def create_build_id_map(self, binaries: Dict[str, str]): argument
[all …]
Dsimpleperf_report_lib.py40 def _char_pt(s: str) -> bytes: argument
44 def _char_pt_to_str(char_pt: ct.c_char_p) -> str:
48 def _check(cond: bool, failmsg: str): argument
77 def thread_comm(self) -> str:
104 def name(self) -> str:
107 def parse_value(self, data: ct.c_char_p) -> Union[str, bytes, List[bytes]]:
166 def name(self) -> str:
198 def dso_name(self) -> str:
202 def symbol_name(self) -> str:
262 def __init__(self, native_lib_path: Optional[str] = None): argument
[all …]
/system/libvintf/analyze_matrix/
Dhals_for_release.py112 def Analyze(analyze_matrix: str, file: str, args: Sequence[str], argument
113 ignore_errors=False) -> str:
133 def GetLevel(analyze_matrix: str, file: str) -> Optional[int]: argument
152 def GetLevelName(analyze_matrix: str, file: str) -> str: argument
164 def __init__(self, level: str, level_name: str, instances: Sequence[str]): argument
169 def GetInstancesKeyedOnPackage(self) -> dict[str, list[str]]:
188 instances = set(map(str.strip, instances)) - {""}
203 def GetHalFormat(instance: str) -> HalFormat: argument
228 def SplitInstance(instance: str) -> tuple[str, str, str]: argument
260 def GetPackage(instance: str) -> str: argument
[all …]
/system/tools/aidl/
Dcode_writer_unittest.cpp30 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()
Dcode_writer.cpp32 std::string CodeWriter::ApplyIndent(const std::string& str) { in ApplyIndent() argument
34 if (!start_of_line_ || str == "\n") { in ApplyIndent()
35 output = str; in ApplyIndent()
37 output = std::string(indent_level_ * 2, ' ') + str; in ApplyIndent()
43 bool CodeWriter::WriteString(const std::string& str) { in WriteString() argument
47 while (pos < str.size()) { in WriteString()
48 size_t line_end = str.find('\n', pos); in WriteString()
50 lines.push_back(str.substr(pos, (line_end - pos) + 1)); in WriteString()
53 lines.push_back(str.substr(pos)); in WriteString()
90 CodeWriter& CodeWriter::operator<<(const std::string& str) { in operator <<() argument
[all …]
/system/extras/perf2cfg/perf2cfg/
Dparse.py23 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
Danalyze.py55 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/core/libutils/binder/
DString16.cpp91 char16_t* str = (char16_t*)buf->data(); in allocFromUTF16() local
92 memcpy(str, u16str, u16len * sizeof(char16_t)); in allocFromUTF16()
93 str[u16len] = 0; in allocFromUTF16()
94 return str; in allocFromUTF16()
203 char16_t* str = (char16_t*)buf->data(); in setTo() local
204 memmove(str, other, len*sizeof(char16_t)); in setTo()
205 str[len] = 0; in setTo()
206 mString = str; in setTo()
231 char16_t* str = static_cast<char16_t*>(buf->data()); in append() local
232 memcpy(str + myLen, chrs, otherLen * sizeof(char16_t)); in append()
[all …]
DString8.cpp42 char* str = static_cast<char*>(buf->data()); in getEmptyString() local
43 *str = 0; in getEmptyString()
62 char* str = (char*)buf->data(); in allocFromUTF8() local
63 memcpy(str, in, len); in allocFromUTF8()
64 str[len] = 0; in allocFromUTF8()
65 return str; in allocFromUTF8()
332 char* str = (char*)buf->data(); in real_append() local
333 mString = str; in real_append()
334 str += myLen; in real_append()
335 memcpy(str, other, otherLen); in real_append()
[all …]
/system/sepolicy/tests/
Dapex_sepolicy_tests.py44 path: str
50 pattern: str
56 pattern: str
73 tclass: str
74 scontext: set[str]
75 perm: str
87 labels: set[str]
98 def match_path(path: str, matcher: Matcher) -> bool: argument
111 def check_rule(pol, path: str, tcontext: str, rule: Rule) -> List[str]: argument
162 def check_line(pol: policy.Policy, line: str, rules) -> List[str]: argument
/system/extras/simpleperf/scripts/test/
Dtest_utils.py34 INFERNO_SCRIPT = str(Path(__file__).parents[1] / ('inferno.bat' if is_windows() else 'inferno.sh'))
42 cls, test_dir: str, testdata_dir: str, use_browser: bool, ndk_path: Optional[str], argument
43 device_serial_number: Optional[str], argument
73 def log(cls, s: str): argument
79 def testdata_path(cls, testdata_name: str) -> str: argument
81 return str(cls.testdata_dir / testdata_name)
84 def get_test_dir(cls, test_name: str) -> Path: argument
89 def script_path(cls, script_name: str) -> str: argument
91 return str(cls.script_dir / script_name)
119 def write_progress(cls, progress: str): argument
[all …]
Ddo_test.py85 def get_all_tests() -> List[str]:
96 def get_host_tests() -> List[str]:
97 def filter_fn(test: str) -> bool: argument
103 tests: List[str], argument
104 test_from: Optional[str], argument
105 test_pattern: Optional[List[str]]) -> List[str]: argument
119 def get_test_type(test: str) -> Optional[str]: argument
180 def run_tests(tests: List[str]) -> bool: argument
188 def test_process_entry(tests: List[str], test_options: List[str], conn: mp.connection.Connection): argument
204 name: str
[all …]
/system/tools/xsdc/tests/src/com/android/xsdc/tests/
DXmlParserTest.java41 try (InputStream str = this.getClass().getClassLoader().getResourceAsStream( in testPurchaseSimple() argument
43 orderType = purchase.simple.XmlParser.read(str); in testPurchaseSimple()
56 try (InputStream str = this.getClass().getClassLoader().getResourceAsStream( in testPurchaseSimple() argument
58 expectedStr = new String(str.readAllBytes()); in testPurchaseSimple()
74 try (InputStream str = this.getClass().getClassLoader().getResourceAsStream( in testNestedType() argument
76 employee = nested.type.XmlParser.read(str); in testNestedType()
87 try (InputStream str = this.getClass().getClassLoader().getResourceAsStream( in testSimpleComplexContent() argument
89 person = simple.complex.content.XmlParser.readPerson(str); in testSimpleComplexContent()
98 try (InputStream str = this.getClass().getClassLoader().getResourceAsStream( in testSimpleComplexContent() argument
100 expectedStr = new String(str.readAllBytes()); in testSimpleComplexContent()
[all …]
/system/core/fs_mgr/
Dfs_mgr_roots.cpp39 std::string str(path); in GetEntryForPath() local
41 auto entry = GetEntryForMountPoint(fstab, str); in GetEntryForPath()
43 str = android::base::Dirname(str); in GetEntryForPath()
44 if (!str.compare(".") || !str.compare("/")) break; in GetEntryForPath()
53 std::string str(path); in GetEntriesForPath() local
55 entries = GetEntriesForMountPoint(fstab, str); in GetEntriesForPath()
57 str = android::base::Dirname(str); in GetEntriesForPath()
58 if (!str.compare(".") || !str.compare("/")) break; in GetEntriesForPath()
/system/tools/hidl/
Dhidl-gen_l.ll91 std::string str(yytext);
94 yylloc->lines(std::count(str.begin(), str.end(), '\n'));
96 str = StringHelper::LTrim(str, "/");
97 bool isDoc = StringHelper::StartsWith(str, "**");
98 str = StringHelper::LTrimAll(str, "*");
99 str = StringHelper::RTrim(str, "/");
100 str = StringHelper::RTrimAll(str, "*");
102 yylval->str = strdup(str.c_str());
183 {COMPONENT} { yylval->str = strdup(yytext); return token::IDENTIFIER; }
184 {FQNAME} { yylval->str = strdup(yytext); return token::FQNAME; }
[all …]
/system/chre/apps/test/chqts/src/shared/
Dnano_string_test.cc98 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/tools/aidl/tests/golden_output/frozen/aidl_test_loggable_interface-java-source/gen/android/aidl/loggable/
DUnion.java9 public final static int str = 1; // String str; field in Union
50 public static Union str(java.lang.String _value) { in str() method in Union
51 return new Union(str, _value); in str()
55 _assertTag(str); in getStr()
60 _set(str, _value); in setStr()
81 case str: in writeToParcel()
96 case str: { in readFromParcel()
122 case str: return "str"; in _tagString()
133 public static final int str = 1; field
/system/tools/aidl/tests/golden_output/aidl_test_loggable_interface-java-source/gen/android/aidl/loggable/
DUnion.java9 public final static int str = 1; // String str; field in Union
50 public static Union str(java.lang.String _value) { in str() method in Union
51 return new Union(str, _value); in str()
55 _assertTag(str); in getStr()
60 _set(str, _value); in setStr()
81 case str: in writeToParcel()
96 case str: { in readFromParcel()
122 case str: return "str"; in _tagString()
133 public static final int str = 1; field
/system/update_engine/scripts/update_payload/
Dhistogram_unittest.py37 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/
Dsimpleperf_lbr_trace_provider.rs26 static LBR_TRACEFILE_EXTENSION: &str = "lbrtrace";
27 static LBR_PROFILE_EXTENSION: &str = "data";
32 fn get_name(&self) -> &'static str { in get_name() argument
40 fn trace(&self, trace_dir: &Path, tag: &str, sampling_period: &Duration, binary_filter: &str) { in trace() argument
47 let args: Vec<&str> = vec![ in trace()
66 fn process(&self, trace_dir: &Path, profile_dir: &Path, binary_filter: &str) -> Result<()> { in process()
83 let args: Vec<&str> = vec![ in process()
Dsimpleperf_etm_trace_provider.rs27 static ETM_TRACEFILE_EXTENSION: &str = "etmtrace";
28 static ETM_PROFILE_EXTENSION: &str = "data";
33 fn get_name(&self) -> &'static str { in get_name() argument
41 fn trace(&self, trace_dir: &Path, tag: &str, sampling_period: &Duration, binary_filter: &str) { in trace() argument
47 let args: Vec<&str> = vec![ in trace()
66 fn process(&self, trace_dir: &Path, profile_dir: &Path, binary_filter: &str) -> Result<()> { in process()
83 let args: Vec<&str> = vec![ in process()

12345678910>>...28