Home
last modified time | relevance | path

Searched defs:s (Results 1 – 25 of 305) sorted by relevance

12345678910>>...13

/system/libbase/
Dstrings.cpp37 std::vector<std::string> Split(const std::string& s, in Split()
55 std::vector<std::string> Tokenize(const std::string& s, const std::string& delimiters) { in Tokenize()
73 std::string Trim(const std::string& s) { in Trim()
91 bool StartsWith(std::string_view s, std::string_view prefix) { in StartsWith()
95 bool StartsWith(std::string_view s, char prefix) { in StartsWith()
99 bool StartsWithIgnoreCase(std::string_view s, std::string_view prefix) { in StartsWithIgnoreCase()
103 bool EndsWith(std::string_view s, std::string_view suffix) { in EndsWith()
107 bool EndsWith(std::string_view s, char suffix) { in EndsWith()
111 bool EndsWithIgnoreCase(std::string_view s, std::string_view suffix) { in EndsWithIgnoreCase()
120 std::string StringReplace(std::string_view s, std::string_view from, std::string_view to, in StringReplace()
Dfile_test.cpp39 std::string s("hello"); in TEST() local
51 std::string s; in TEST() local
67 std::string s; in TEST() local
89 std::string s; in TEST() local
123 std::string s; in TEST() local
138 std::string s; in TEST() local
153 std::string s; in TEST() local
186 std::string s; in TEST() local
199 std::string s; in TEST() local
212 std::string s; in TEST() local
[all …]
Dparsebool_test.cpp31 for (const char* s : yes) { in TEST() local
40 for (const char* s : no) { in TEST() local
/system/libvintf/
Dparse_string.cpp35 std::vector<std::string> SplitString(const std::string &s, char c) { in SplitString()
65 bool parse(const std::string &s, std::vector<T> *objs) { in parse()
80 bool parseEnum(const std::string &s, E *e, const Array &strings) { in parseEnum()
120 bool parse(const std::string& s, Level* l) { in parse()
156 bool parseKernelConfigIntHelper(const std::string &s, T *i) { in parseKernelConfigIntHelper()
169 bool parseKernelConfigInt(const std::string &s, int64_t *i) { in parseKernelConfigInt()
173 bool parseKernelConfigInt(const std::string &s, uint64_t *i) { in parseKernelConfigInt()
177 bool parseRange(const std::string &s, KernelConfigRangeValue *range) { in parseRange()
186 bool parse(const std::string &s, KernelConfigKey *key) { in parse()
191 bool parseKernelConfigValue(const std::string &s, KernelConfigTypedValue *kctv) { in parseKernelConfigValue()
[all …]
/system/tools/aidl/tests/golden_output/aidl-test-extras-java-source/gen/android/aidl/tests/immutable/
DBar.java8 public final java.lang.String s; field in Bar
11 private java.lang.String s = "bar"; field in Bar.Builder
12 public Builder setS(java.lang.String s) { in setS()
40 public Bar(java.lang.String s) in Bar()
/system/tools/aidl/tests/golden_output/frozen/aidl-test-extras-java-source/gen/android/aidl/tests/immutable/
DBar.java8 public final java.lang.String s; field in Bar
11 private java.lang.String s = "bar"; field in Bar.Builder
12 public Builder setS(java.lang.String s) { in setS()
40 public Bar(java.lang.String s) in Bar()
/system/incremental_delivery/incfs/
Dsplit.h33 void Split(std::string_view s, Separator delimiters, Callback&& onSplitCb) { in Split()
52 void Split(std::string_view s, Separator delimiters, std::vector<std::string_view>* out) { in Split()
58 std::vector<std::string_view> Split(std::string_view s, Separator delimiters) { in Split()
/system/core/libsparse/
Dsparse.cpp31 struct sparse_file* s = reinterpret_cast<sparse_file*>(calloc(sizeof(struct sparse_file), 1)); in sparse_file_new() local
48 void sparse_file_destroy(struct sparse_file* s) { in sparse_file_destroy()
53 int sparse_file_add_data(struct sparse_file* s, void* data, uint64_t len, unsigned int block) { in sparse_file_add_data()
57 int sparse_file_add_fill(struct sparse_file* s, uint32_t fill_val, uint64_t len, in sparse_file_add_fill()
62 int sparse_file_add_file(struct sparse_file* s, const char* filename, int64_t file_offset, in sparse_file_add_file()
67 int sparse_file_add_fd(struct sparse_file* s, int fd, int64_t file_offset, uint64_t len, in sparse_file_add_fd()
71 unsigned int sparse_count_chunks(struct sparse_file* s) { in sparse_count_chunks()
114 static int write_all_blocks(struct sparse_file* s, struct output_file* out) { in write_all_blocks()
145 int sparse_file_write(struct sparse_file* s, int fd, bool gz, bool sparse, bool crc) { in sparse_file_write()
168 int sparse_file_callback(struct sparse_file* s, bool sparse, bool crc, in sparse_file_callback()
[all …]
Dsparse_read.cpp102 int AddToSparseFile(struct sparse_file* s, int64_t len, unsigned int block) override { in AddToSparseFile()
167 int AddToSparseFile(struct sparse_file* s, int64_t len, unsigned int block) override { in AddToSparseFile()
212 static int process_raw_chunk(struct sparse_file* s, unsigned int chunk_size, in process_raw_chunk()
246 static int process_fill_chunk(struct sparse_file* s, unsigned int chunk_size, in process_fill_chunk()
287 static int process_skip_chunk(struct sparse_file* s, unsigned int chunk_size, in process_skip_chunk()
327 static int process_chunk(struct sparse_file* s, SparseFileSource* source, unsigned int chunk_hdr_sz, in process_chunk()
377 static int sparse_file_read_sparse(struct sparse_file* s, SparseFileSource* source, bool crc) { in sparse_file_read_sparse()
460 static int do_sparse_file_read_normal(struct sparse_file* s, int fd, uint32_t* buf, int64_t offset, in do_sparse_file_read_normal()
507 static int sparse_file_read_normal(struct sparse_file* s, int fd) { in sparse_file_read_normal()
520 static int sparse_file_read_hole(struct sparse_file* s, int fd) { in sparse_file_read_hole()
[all …]
/system/libbase/include/android-base/
Dstrings.h61 std::string s; in Trim() local
132 inline bool ConsumePrefix(std::string_view* s, std::string_view prefix) { in ConsumePrefix()
140 inline bool ConsumeSuffix(std::string_view* s, std::string_view suffix) { in ConsumeSuffix()
/system/unwinding/libunwindstack/include/unwindstack/
DSharedString.h30 SharedString(std::string&& s) : data_(std::make_shared<const std::string>(std::move(s))) {} in SharedString()
31 SharedString(const std::string& s) : SharedString(std::string(s)) {} in SharedString()
32 SharedString(const char* s) : SharedString(std::string(s)) {} in SharedString()
/system/extras/ioshark/
Dcompile_ioshark.c125 char *s, *s2; in get_tracetype() local
178 char *s, *s2, save; in get_pathname() local
223 char *s, *s2; in get_syscall() local
246 char *s, *s1; in get_mmap_offset_len_prot() local
296 char *s, *s2; in get_lseek_offset_action() local
405 char *s, *s2, lookfor; in get_openat_flags_mode() local
449 lookup_map(char *s, struct flags_map_s *flags_map, int maplen) in lookup_map()
472 map_open_flags(char *s) in map_open_flags()
491 map_lseek_action(char *s) in map_lseek_action()
527 char *s; in main() local
/system/media/camera/docs/
Dmetadata_enums.py46 s = enum_name.split(".") variable
47 s = [x[0].capitalize() + x[1:] for x in s] variable
/system/core/libutils/include/utils/
DFastStrcmp.h43 static inline int fastcmp(const char* l, const char* r, const size_t s) { in fastcmp()
50 static inline int fasticmp(const char* l, const char* r, const size_t s) { in fasticmp()
57 static inline int fastcmp(const void* lv, const void* rv, const size_t s) { in fastcmp()
/system/core/libutils/binder/
DErrors_test.cpp43 status_t s = f(true, &val); in TEST() local
63 auto s = f(false); in TEST() local
79 auto s = f(false); in TEST() local
118 auto s = f(true); in TEST() local
132 auto s = f(true); in TEST() local
146 auto s = f(true); in TEST() local
166 auto s = f(true); in TEST() local
/system/libufdt/sysdeps/
Dlibufdt_sysdeps_posix.c44 char *dto_strchr(const char *s, int c) { return strchr(s, c); } in dto_strchr()
50 size_t dto_strlen(const char *s) { return strlen(s); } in dto_strlen()
66 void *dto_memchr(const void *s, int c, size_t n) { return memchr(s, c, n); } in dto_memchr()
68 void *dto_memset(void *s, int c, size_t n) { return memset(s, c, n); } in dto_memset()
/system/extras/ext4_utils/
Dhelpers.h30 #define error_errno(s, args...) error(s ": %s", ##args, strerror(errno)) argument
36 #define critical_error_errno(s, args...) critical_error(s ": %s", ##args, strerror(errno)) argument
/system/extras/simpleperf/
DRegEx.cpp29 RegExMatchImpl(std::string_view s, const std::regex& re) in RegExMatchImpl()
56 std::optional<std::string> Replace(const std::string& s, in Replace()
80 bool SearchInRegs(std::string_view s, const std::vector<std::unique_ptr<RegEx>>& regs) { in SearchInRegs()
Dbuild_id.h46 explicit BuildId(const std::string& s) : BuildId() { in BuildId()
66 std::string s = "0x"; in ToString() local
Dcmd_dumprecord.cpp61 std::string s; in ExtractStringField() local
73 std::string s; in ExtractDynamicStringField() local
117 std::string s; in ExtractIntArrayField() local
135 std::string s; in ExtractUnknownField() local
395 SymbolInfo s = in ProcessSampleRecord() local
422 std::string s = event.extract_field_functions[i](field, sr.raw_data); in ProcessSampleRecord() local
432 SymbolInfo s = GetSymbolInfo(cr.pid, cr.tid, cr.ips[i], false); in ProcessCallChainRecord() local
516 std::string s = record_file_reader_->ReadFeatureString(feature); in DumpFeatureSection() local
519 std::string s = record_file_reader_->ReadFeatureString(feature); in DumpFeatureSection() local
587 std::string s = "0b"; in DumpFeatureSection() local
/system/core/trusty/utils/rpmb_dev/
Drpmb_dev.c117 static int rpmb_file_seek(struct rpmb_dev_state* s, uint16_t addr) { in rpmb_file_seek()
128 static uint16_t rpmb_dev_program_key(struct rpmb_dev_state* s) { in rpmb_dev_program_key()
154 static uint16_t rpmb_dev_get_counter(struct rpmb_dev_state* s) { in rpmb_dev_get_counter()
160 static uint16_t rpmb_dev_data_write(struct rpmb_dev_state* s) { in rpmb_dev_data_write()
215 static uint16_t rpmb_dev_data_read(struct rpmb_dev_state* s) { in rpmb_dev_data_read()
288 static void rpmb_dev_process_cmd(struct rpmb_dev_state* s) { in rpmb_dev_process_cmd()
446 int handle_conn(struct rpmb_dev_state* s, int conn_sock) { in handle_conn()
511 struct rpmb_dev_state s; in main() local
/system/timezone/input_tools/android/common/src/testing/java/com/android/libcore/timezone/testing/
DTestUtils.java69 public static void assertAbsent(String s, String... absents) { in assertAbsent()
75 public static void assertContains(String s, String... expecteds) { in assertContains()
/system/core/libcutils/
Dsocket_local_server_unix.cpp55 int socket_local_server_bind(int s, const char *name, int namespaceId)
100 int s; local
/system/core/mkbootfs/
Dmkbootfs.c42 static void fix_stat(const char *path, struct stat *s) in fix_stat()
78 static void _eject(struct stat *s, char *out, int olen, char *data, unsigned datasize) in _eject()
130 struct stat s; in _eject_trailer() local
210 struct stat s; in _archive() local
310 struct stat s; in append_devnodes_desc_dir() local
324 struct stat s; in append_devnodes_desc_nod() local
/system/core/init/fuzzer/
Dinit_ueventHandler_fuzzer.cpp36 void MakeFile(FuzzedDataProvider* fdp, std::string s) { in MakeFile()
53 std::string SelectRandomString(FuzzedDataProvider* fdp, std::string s) { in SelectRandomString()
113 std::string s = uevent.path.substr(kPathPrefix.length()); in LLVMFuzzerTestOneInput() local

12345678910>>...13