| /system/libbase/ |
| D | strings.cpp | 37 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()
|
| D | file_test.cpp | 39 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 …]
|
| D | parsebool_test.cpp | 31 for (const char* s : yes) { in TEST() local 40 for (const char* s : no) { in TEST() local
|
| /system/libvintf/ |
| D | parse_string.cpp | 35 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() 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/ |
| D | sparse.cpp | 31 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 …]
|
| D | sparse_read.cpp | 102 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/unwinding/libunwindstack/include/unwindstack/ |
| D | SharedString.h | 30 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/incremental_delivery/incfs/ |
| D | split.h | 33 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/libbase/include/android-base/ |
| D | strings.h | 61 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/extras/ioshark/ |
| D | compile_ioshark.c | 125 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/ |
| D | metadata_enums.py | 45 s = enum_name.split(".") variable 46 s = [x[0].capitalize() + x[1:] for x in s] variable
|
| /system/core/libutils/ |
| D | Errors_test.cpp | 43 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/core/libutils/include/utils/ |
| D | FastStrcmp.h | 43 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/libufdt/sysdeps/ |
| D | libufdt_sysdeps_posix.c | 44 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/ |
| D | helpers.h | 30 #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/ |
| D | build_id.h | 46 explicit BuildId(const std::string& s) : BuildId() { in BuildId() 66 std::string s = "0x"; in ToString() local
|
| D | cmd_dumprecord.cpp | 61 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 394 SymbolInfo s = in ProcessSampleRecord() local 408 std::string s = event.extract_field_functions[i](field, sr.raw_data); in ProcessSampleRecord() local 418 SymbolInfo s = GetSymbolInfo(cr.pid, cr.tid, cr.ips[i], false); in ProcessCallChainRecord() local 493 std::string s = record_file_reader_->ReadFeatureString(feature); in DumpFeatureSection() local 496 std::string s = record_file_reader_->ReadFeatureString(feature); in DumpFeatureSection() local 564 std::string s = "0b"; in DumpFeatureSection() local
|
| /system/core/trusty/utils/rpmb_dev/ |
| D | rpmb_dev.c | 116 static int rpmb_file_seek(struct rpmb_dev_state* s, uint16_t addr) { in rpmb_file_seek() 127 static uint16_t rpmb_dev_program_key(struct rpmb_dev_state* s) { in rpmb_dev_program_key() 153 static uint16_t rpmb_dev_get_counter(struct rpmb_dev_state* s) { in rpmb_dev_get_counter() 159 static uint16_t rpmb_dev_data_write(struct rpmb_dev_state* s) { in rpmb_dev_data_write() 214 static uint16_t rpmb_dev_data_read(struct rpmb_dev_state* s) { in rpmb_dev_data_read() 287 static void rpmb_dev_process_cmd(struct rpmb_dev_state* s) { in rpmb_dev_process_cmd() 445 int handle_conn(struct rpmb_dev_state* s, int conn_sock) { in handle_conn() 510 struct rpmb_dev_state s; in main() local
|
| /system/timezone/input_tools/android/common/src/testing/java/com/android/libcore/timezone/testing/ |
| D | TestUtils.java | 69 public static void assertAbsent(String s, String... absents) { in assertAbsent() 75 public static void assertContains(String s, String... expecteds) { in assertContains()
|
| /system/core/mkbootfs/ |
| D | mkbootfs.c | 42 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/ |
| D | init_ueventHandler_fuzzer.cpp | 36 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
|
| /system/core/libcutils/ |
| D | socket_local_server_unix.cpp | 55 int socket_local_server_bind(int s, const char *name, int namespaceId) 100 int s; local
|
| /system/media/audio/include/system/ |
| D | audio-hal-enums.h | 288 inline bool audio_channel_mask_from_string(const char* s, audio_channel_mask_t* t) { in audio_channel_mask_from_string() 324 inline bool audio_content_type_from_string(const char* s, audio_content_type_t* t) { in audio_content_type_from_string() 424 inline bool audio_device_from_string(const char* s, audio_devices_t* t) { in audio_device_from_string() 466 inline bool audio_output_flag_from_string(const char* s, audio_output_flags_t* t) { in audio_output_flag_from_string() 499 inline bool audio_input_flag_from_string(const char* s, audio_input_flags_t* t) { in audio_input_flag_from_string() 657 inline bool audio_format_from_string(const char* s, audio_format_t* t) { in audio_format_from_string() 681 inline bool audio_gain_mode_from_string(const char* s, audio_gain_mode_t* t) { in audio_gain_mode_from_string() 724 inline bool audio_source_from_string(const char* s, audio_source_t* t) { in audio_source_from_string() 767 inline bool audio_stream_type_from_string(const char* s, audio_stream_type_t* t) { in audio_stream_type_from_string() 817 inline bool audio_usage_from_string(const char* s, audio_usage_t* t) { in audio_usage_from_string() [all …]
|
| /system/libhidl/base/ |
| D | HidlSupport.cpp | 147 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/libhidl/base/include/hidl/ |
| D | Status.h | 156 return_status(const Status& s) : mStatus(s) {} in return_status() 223 Return(Status s) : details::return_status(s) {} in Return() 250 Return(Status s) : details::return_status(s) {} in Return() 272 Return(const Status& s) : details::return_status(s) {} in Return()
|