Home
last modified time | relevance | path

Searched defs:s (Results 1 – 25 of 316) 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()
94 bool StartsWith(std::string_view s, std::string_view prefix) { in StartsWith()
98 bool StartsWith(std::string_view s, char prefix) { in StartsWith()
102 bool StartsWithIgnoreCase(std::string_view s, std::string_view prefix) { in StartsWithIgnoreCase()
106 bool EndsWith(std::string_view s, std::string_view suffix) { in EndsWith()
110 bool EndsWith(std::string_view s, char suffix) { in EndsWith()
114 bool EndsWithIgnoreCase(std::string_view s, std::string_view suffix) { in EndsWithIgnoreCase()
123 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.cpp31 std::vector<std::string> SplitString(const std::string &s, char c) { in SplitString()
61 bool parse(const std::string &s, std::vector<T> *objs) { in parse()
76 bool parseEnum(const std::string &s, E *e, const Array &strings) { in parseEnum()
117 bool parse(const std::string& s, Level* l) { in parse()
153 bool parseKernelConfigIntHelper(const std::string &s, T *i) { in parseKernelConfigIntHelper()
166 bool parseKernelConfigInt(const std::string &s, int64_t *i) { in parseKernelConfigInt()
170 bool parseKernelConfigInt(const std::string &s, uint64_t *i) { in parseKernelConfigInt()
174 bool parseRange(const std::string &s, KernelConfigRangeValue *range) { in parseRange()
183 bool parse(const std::string &s, KernelConfigKey *key) { in parse()
188 bool parseKernelConfigValue(const std::string &s, KernelConfigTypedValue *kctv) { in parseKernelConfigValue()
[all …]
/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/tools/aidl/tests/golden_output/frozen/aidl-test-extras-java-source/gen/android/aidl/tests/immutable/
DBar.java12 public final java.lang.String s; field in Bar
15 private java.lang.String s = "bar"; field in Bar.Builder
16 public Builder setS(java.lang.String s) { in setS()
44 public Bar(java.lang.String s) in Bar()
/system/tools/aidl/tests/golden_output/aidl-test-extras-java-source/gen/android/aidl/tests/immutable/
DBar.java12 public final java.lang.String s; field in Bar
15 private java.lang.String s = "bar"; field in Bar.Builder
16 public Builder setS(java.lang.String s) { in setS()
44 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/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/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/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/libbase/include/android-base/
Dstrings.h65 std::string s; in Trim() local
190 inline bool ConsumePrefix(std::string_view* s, std::string_view prefix) { in ConsumePrefix()
198 inline bool ConsumeSuffix(std::string_view* s, std::string_view suffix) { in ConsumeSuffix()
/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/vold/
DWriteBooster.cpp41 std::string s; in readHexValue() local
151 std::string s = enable ? "1" : "0"; in SetWriteBoosterBufferFlush() local
169 std::string s = enable ? "1" : "0"; in SetWriteBoosterBufferOn() local
/system/libufdt/sysdeps/
Dlibufdt_sysdeps_posix.c48 char *dto_strchr(const char *s, int c) { return strchr(s, c); } in dto_strchr()
54 size_t dto_strlen(const char *s) { return strlen(s); } in dto_strlen()
70 void *dto_memchr(const void *s, int c, size_t n) { return memchr(s, c, n); } in dto_memchr()
72 void *dto_memset(void *s, int c, size_t n) { return memset(s, c, n); } in dto_memset()
/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/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/extras/simpleperf/
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
404 SymbolInfo s = in ProcessSampleRecord() local
431 std::string s = event.extract_field_functions[i](field, sr.raw_data); in ProcessSampleRecord() local
441 SymbolInfo s = GetSymbolInfo(cr.pid, cr.tid, cr.ips[i], false); in ProcessCallChainRecord() local
530 std::string s = record_file_reader_->ReadFeatureString(feature); in DumpFeatureSection() local
533 std::string s = record_file_reader_->ReadFeatureString(feature); in DumpFeatureSection() local
601 std::string s = "0b"; in DumpFeatureSection() local
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()
/system/core/mkbootfs/
Dmkbootfs.cpp45 static void fix_stat(const char *path, struct stat *s) in fix_stat()
81 static void _eject(struct stat *s, const char *out, int olen, char *data, unsigned datasize) in _eject()
133 struct stat s; in _eject_trailer() local
214 struct stat s; in _archive() local
306 struct stat s; in append_devnodes_desc_dir() local
320 struct stat s; in append_devnodes_desc_nod() local
/system/media/audio/include/system/
Daudio-hal-enums.h289 inline bool audio_channel_mask_from_string(const char* s, audio_channel_mask_t* t) { in audio_channel_mask_from_string()
325 inline bool audio_content_type_from_string(const char* s, audio_content_type_t* t) { in audio_content_type_from_string()
426 inline bool audio_device_from_string(const char* s, audio_devices_t* t) { in audio_device_from_string()
468 inline bool audio_output_flag_from_string(const char* s, audio_output_flags_t* t) { in audio_output_flag_from_string()
501 inline bool audio_input_flag_from_string(const char* s, audio_input_flags_t* t) { in audio_input_flag_from_string()
686 inline bool audio_format_from_string(const char* s, audio_format_t* t) { in audio_format_from_string()
710 inline bool audio_gain_mode_from_string(const char* s, audio_gain_mode_t* t) { in audio_gain_mode_from_string()
753 inline bool audio_source_from_string(const char* s, audio_source_t* t) { in audio_source_from_string()
796 inline bool audio_stream_type_from_string(const char* s, audio_stream_type_t* t) { in audio_stream_type_from_string()
847 inline bool audio_usage_from_string(const char* s, audio_usage_t* t) { in audio_usage_from_string()
[all …]
/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/libhidl/base/
DHidlSupport.cpp147 hidl_string::hidl_string(const char *s) : hidl_string() { in hidl_string()
155 hidl_string::hidl_string(const char *s, size_t length) : hidl_string() { in hidl_string()
163 hidl_string::hidl_string(const std::string &s) : hidl_string() { in hidl_string()
188 hidl_string &hidl_string::operator=(const char *s) { in operator =()
199 hidl_string &hidl_string::operator=(const std::string &s) { in operator =()
/system/media/audio_utils/tests/
Daudio_stringutils_tests.cpp159 std::string s(""); in TEST() local
165 std::string s("hello"); in TEST() local
171 std::string s("hello"); in TEST() local

12345678910>>...13