/system/libbase/ |
D | strings.cpp | 31 std::vector<std::string> Split(const std::string& s, in Split() 49 std::string Trim(const std::string& s) { in Trim() 90 bool StartsWith(std::string_view s, std::string_view prefix) { in StartsWith() 94 bool StartsWith(std::string_view s, char prefix) { in StartsWith() 98 bool StartsWithIgnoreCase(std::string_view s, std::string_view prefix) { in StartsWithIgnoreCase() 102 bool EndsWith(std::string_view s, std::string_view suffix) { in EndsWith() 106 bool EndsWith(std::string_view s, char suffix) { in EndsWith() 110 bool EndsWithIgnoreCase(std::string_view s, std::string_view suffix) { in EndsWithIgnoreCase() 119 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 198 std::string s; in TEST() local 349 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 | 34 std::vector<std::string> SplitString(const std::string &s, char c) { in SplitString() 64 bool parse(const std::string &s, std::vector<T> *objs) { in parse() 79 bool parseEnum(const std::string &s, E *e, const Array &strings) { in parseEnum() 119 bool parse(const std::string& s, Level* l) { in parse() 152 bool parseKernelConfigIntHelper(const std::string &s, T *i) { in parseKernelConfigIntHelper() 165 bool parseKernelConfigInt(const std::string &s, int64_t *i) { in parseKernelConfigInt() 169 bool parseKernelConfigInt(const std::string &s, uint64_t *i) { in parseKernelConfigInt() 173 bool parseRange(const std::string &s, KernelConfigRangeValue *range) { in parseRange() 182 bool parse(const std::string &s, KernelConfigKey *key) { in parse() 187 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 | 99 int AddToSparseFile(struct sparse_file* s, int64_t len, unsigned int block) override { in AddToSparseFile() 143 int AddToSparseFile(struct sparse_file* s, int64_t len, unsigned int block) override { in AddToSparseFile() 174 static int process_raw_chunk(struct sparse_file* s, unsigned int chunk_size, in process_raw_chunk() 205 static int process_fill_chunk(struct sparse_file* s, unsigned int chunk_size, in process_fill_chunk() 246 static int process_skip_chunk(struct sparse_file* s, unsigned int chunk_size, in process_skip_chunk() 286 static int process_chunk(struct sparse_file* s, SparseFileSource* source, unsigned int chunk_hdr_sz, in process_chunk() 336 static int sparse_file_read_sparse(struct sparse_file* s, SparseFileSource* source, bool crc) { in sparse_file_read_sparse() 413 static int sparse_file_read_normal(struct sparse_file* s, int fd) { in sparse_file_read_normal() 464 int sparse_file_read(struct sparse_file* s, int fd, bool sparse, bool crc) { in sparse_file_read() 477 int sparse_file_read_buf(struct sparse_file* s, char* buf, bool crc) { in sparse_file_read_buf() [all …]
|
/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/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/bt/gd/packet/parser/fields/ |
D | custom_field_fixed_size.cc | 38 int CustomFieldFixedSize::GenBounds(std::ostream& s, Size start_offset, Size end_offset, Size size)… in GenBounds() 51 void CustomFieldFixedSize::GenExtractor(std::ostream& s, int, bool) const { in GenExtractor() 71 void CustomFieldFixedSize::GenStringRepresentation(std::ostream& s, std::string accessor) const { in GenStringRepresentation() 80 void CustomFieldFixedSize::GenRustGetter(std::ostream& s, Size start_offset, Size end_offset) const… in GenRustGetter() 94 void CustomFieldFixedSize::GenRustWriter(std::ostream& s, Size start_offset, Size end_offset) const… in GenRustWriter()
|
D | fixed_scalar_field.cc | 37 void FixedScalarField::GenStringRepresentation(std::ostream& s, std::string) const { in GenStringRepresentation() 41 void FixedScalarField::GenRustWriter(std::ostream& s, Size start_offset, Size end_offset) const { in GenRustWriter() 46 void FixedScalarField::GenRustGetter(std::ostream& s, Size start_offset, Size end_offset) const { in GenRustGetter()
|
D | struct_field.cc | 42 void StructField::GenExtractor(std::ostream& s, int, bool) const { in GenExtractor() 53 void StructField::GenGetter(std::ostream& s, Size start_offset, Size end_offset) const { in GenGetter() 87 void StructField::GenStringRepresentation(std::ostream& s, std::string accessor) const { in GenStringRepresentation() 99 void StructField::GenRustGetter(std::ostream& s, Size start_offset, Size) const { in GenRustGetter() 105 void StructField::GenRustWriter(std::ostream& s, Size start_offset, Size) const { in GenRustWriter()
|
D | scalar_field.cc | 52 int ScalarField::GenBounds(std::ostream& s, Size start_offset, Size end_offset, Size size) const { in GenBounds() 69 void ScalarField::GenExtractor(std::ostream& s, int num_leading_bits, bool) const { in GenExtractor() 99 void ScalarField::GenGetter(std::ostream& s, Size start_offset, Size end_offset) const { in GenGetter() 135 void ScalarField::GenStringRepresentation(std::ostream& s, std::string accessor) const { in GenStringRepresentation() 163 void ScalarField::GenRustGetter(std::ostream& s, Size start_offset, Size end_offset) const { in GenRustGetter() 214 void ScalarField::GenRustWriter(std::ostream& s, Size start_offset, Size end_offset) const { in GenRustWriter()
|
D | array_field.cc | 86 void ArrayField::GenExtractor(std::ostream& s, int num_leading_bits, bool for_struct) const { in GenExtractor() 115 void ArrayField::GenGetter(std::ostream& s, Size start_offset, Size end_offset) const { in GenGetter() 179 void ArrayField::GenStringRepresentation(std::ostream& s, std::string accessor) const { in GenStringRepresentation() 203 void ArrayField::GenRustGetter(std::ostream& s, Size start_offset, Size) const { in GenRustGetter() 209 void ArrayField::GenRustWriter(std::ostream& s, Size start_offset, Size) const { in GenRustWriter()
|
D | vector_field.cc | 110 void VectorField::GenExtractor(std::ostream& s, int num_leading_bits, bool for_struct) const { in GenExtractor() 153 void VectorField::GenGetter(std::ostream& s, Size start_offset, Size end_offset) const { in GenGetter() 234 void VectorField::GenStringRepresentation(std::ostream& s, std::string accessor) const { in GenStringRepresentation() 257 void VectorField::GenBoundsCheck(std::ostream& s, Size start_offset, Size, std::string context) con… in GenBoundsCheck() 304 void VectorField::GenRustGetter(std::ostream& s, Size start_offset, Size) const { in GenRustGetter() 366 void VectorField::GenRustWriter(std::ostream& s, Size start_offset, Size) const { in GenRustWriter()
|
/system/netd/libnetdutils/include/netdutils/ |
D | Slice.h | 78 inline const Slice makeSlice(const std::string& s) { in makeSlice() 96 inline std::pair<const Slice, const Slice> split(const Slice s, size_t cut) { in split() 102 inline const Slice take(const Slice s, size_t cut) { in take() 107 inline const Slice drop(const Slice s, size_t cut) { in drop() 152 inline const Slice findFirstMatching(const Slice s, uint8_t c) { in findFirstMatching()
|
/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/libbase/include/android-base/ |
D | strings.h | 74 inline bool ConsumePrefix(std::string_view* s, std::string_view prefix) { in ConsumePrefix() 82 inline bool ConsumeSuffix(std::string_view* s, std::string_view suffix) { in ConsumeSuffix()
|
/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/bt/embdrv/g722/ |
D | g722_enc_dec.h | 54 #define NLDECOMPRESS_APPLY_GAIN(s,g) (((s) * (int32_t)(g)) >> 16) argument 56 #define NLDECOMPRESS_APPLY_GAIN_CONVERTED_DAC(s,g) (uint16_t)((uint16_t)(((s) * (int32_t)(g)) >> 20… argument 58 #define NLDECOMPRESS_APPLY_GAIN(s,g) (((int32_t)(s) * (int32_t)(g)) >> 16) argument 62 #define NLDECOMPRESS_PREPROCESS_PCM_SAMPLE_WITH_GAIN(s,g) NLDECOMPRESS_APPLY_GAIN_CONVERTED_DAC((s)… argument 63 #define NLDECOMPRESS_PREPROCESS_SAMPLE_WITH_GAIN(s,g) ((int16_t)NLDECOMPRESS_APPLY_GAIN((s),(g))) argument 66 #define NLDECOMPRESS_PREPROCESS_SAMPLE_WITH_GAIN(s,g) ((int16_t)(NLDECOMPRESS_APPLY_GAIN((s),(g)))) argument 70 int s; member
|
/system/timezone/input_tools/android/common/src/testing/java/com/android/libcore/timezone/testing/ |
D | TestUtils.java | 67 public static void assertAbsent(String s, String... absents) { in assertAbsent() 73 public static void assertContains(String s, String... expecteds) { in assertContains()
|
/system/bt/osi/src/socket_utils/ |
D | socket_local_server.cc | 42 int osi_socket_local_server_bind(int s, const char* name, int namespaceId) { 82 int s; local
|
/system/bt/osi/src/ |
D | compat.cc | 66 const char* s = src; in strlcpy() local 97 const char* s = src; in strlcat() local
|
/system/netd/libnetdutils/ |
D | Slice.cpp | 34 std::string toString(const Slice s) { in toString() 38 std::string toHex(const Slice s, int wrap) { in toHex()
|