Home
last modified time | relevance | path

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

12345678910>>...13

/system/core/adb/
Dsockets.cpp80 void install_local_socket(asocket* s) { in install_local_socket()
93 void remove_socket(asocket* s) { in remove_socket()
121 static SocketFlushResult local_socket_flush_incoming(asocket* s) { in local_socket_flush_incoming()
152 static bool local_socket_flush_outgoing(asocket* s) { in local_socket_flush_outgoing()
221 static int local_socket_enqueue(asocket* s, apacket::payload_type data) { in local_socket_enqueue()
239 static void local_socket_ready(asocket* s) { in local_socket_ready()
297 static void local_socket_destroy(asocket* s) { in local_socket_destroy()
313 static void local_socket_close(asocket* s) { in local_socket_close()
352 asocket* s = reinterpret_cast<asocket*>(_s); in local_socket_event_func() local
390 asocket* s = new asocket(); in create_local_socket() local
[all …]
Dadb_io_test.cpp100 std::string s; in POSIX_TEST() local
117 std::string s; in POSIX_TEST() local
140 std::string s; in POSIX_TEST() local
153 std::string s; in POSIX_TEST() local
/system/core/base/
Dstrings.cpp31 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()
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
198 std::string s; in TEST() local
349 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()
116 bool parse(const std::string& s, Level* l) { in parse()
149 bool parseKernelConfigIntHelper(const std::string &s, T *i) { in parseKernelConfigIntHelper()
162 bool parseKernelConfigInt(const std::string &s, int64_t *i) { in parseKernelConfigInt()
166 bool parseKernelConfigInt(const std::string &s, uint64_t *i) { in parseKernelConfigInt()
170 bool parseRange(const std::string &s, KernelConfigRangeValue *range) { in parseRange()
179 bool parse(const std::string &s, KernelConfigKey *key) { in parse()
184 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, unsigned int len, unsigned int block) { in sparse_file_add_data()
57 int sparse_file_add_fill(struct sparse_file* s, uint32_t fill_val, unsigned int 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, unsigned int 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.cpp99 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/tools/aidl/tests/
Daidl_test_client_primitives.cpp55 bool ConfirmPrimitiveRepeat(const sp<ITestService>& s) { in ConfirmPrimitiveRepeat()
107 bool ConfirmReverseArrays(const sp<ITestService>& s) { in ConfirmReverseArrays()
133 bool ConfirmReverseLists(const sp<ITestService>& s) { in ConfirmReverseLists()
144 bool ConfirmReverseBinderLists(const sp<ITestService>& s) { in ConfirmReverseBinderLists()
223 bool ConfirmIntfConstantExpressions(const sp<ITestService>& s) { in ConfirmIntfConstantExpressions()
Daidl_test_client_utf8_strings.cpp48 bool ConfirmUtf8InCppStringRepeat(const sp<ITestService>& s) { in ConfirmUtf8InCppStringRepeat()
104 bool ConfirmUtf8InCppStringArrayReverse(const sp<ITestService>& s) { in ConfirmUtf8InCppStringArrayReverse()
116 bool ConfirmUtf8InCppStringCollectionReverse(const sp<ITestService>& s, in ConfirmUtf8InCppStringCollectionReverse()
172 bool ConfirmUtf8InCppStringListReverse(const sp<ITestService>& s) { in ConfirmUtf8InCppStringListReverse()
177 bool ConfirmUtf8InCppNullableStringArrayReverse(const sp<ITestService>& s) { in ConfirmUtf8InCppNullableStringArrayReverse()
Daidl_test_client_nullables.cpp95 bool ConfirmNullableType(const sp<ITestService>& s, const string& type_name, in ConfirmNullableType()
138 bool CheckAppropriateIBinderHandling(const sp<ITestService>& s) { in CheckAppropriateIBinderHandling()
199 bool CheckAppropriateIInterfaceHandling(const sp<ITestService>& s) { in CheckAppropriateIInterfaceHandling()
227 bool ConfirmNullables(const sp<ITestService>& s) { in ConfirmNullables()
Daidl_test_client_parcelables.cpp43 bool ConfirmSimpleParcelables(const sp<ITestService>& s) { in ConfirmSimpleParcelables()
79 bool ConfirmPersistableBundles(const sp<ITestService>& s) { in ConfirmPersistableBundles()
149 bool ConfirmStructuredParcelablesEquality(const sp<ITestService>& s) { in ConfirmStructuredParcelablesEquality()
210 bool ConfirmStructuredParcelables(const sp<ITestService>& s) { in ConfirmStructuredParcelables()
Daidl_test_client_file_descriptors.cpp110 bool ConfirmFileDescriptors(const sp<ITestService>& s) { in ConfirmFileDescriptors()
141 bool ConfirmFileDescriptorArrays(const sp<ITestService>& s) { in ConfirmFileDescriptorArrays()
171 bool ConfirmParcelFileDescriptors(const sp<ITestService>& s) { in ConfirmParcelFileDescriptors()
202 bool ConfirmParcelFileDescriptorArrays(const sp<ITestService>& s) { in ConfirmParcelFileDescriptorArrays()
/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/adb/daemon/
Dfile_sync_service.cpp141 static bool do_lstat_v1(int s, const char* path) { in do_lstat_v1()
153 static bool do_stat_v2(int s, uint32_t id, const char* path) { in do_stat_v2()
185 static bool do_list(int s, const char* path) { in do_list()
245 static bool do_list_v1(int s, const char* path) { in do_list_v1()
249 static bool do_list_v2(int s, const char* path) { in do_list_v2()
269 static bool handle_send_file_compressed(borrowed_fd s, unique_fd fd, uint32_t* timestamp) { in handle_send_file_compressed()
317 static bool handle_send_file_uncompressed(borrowed_fd s, unique_fd fd, uint32_t* timestamp, in handle_send_file_uncompressed()
345 static bool handle_send_file(borrowed_fd s, const char* path, uint32_t* timestamp, uid_t uid, in handle_send_file()
451 static bool handle_send_link(int s, const std::string& path, uint32_t* timestamp, in handle_send_link()
502 static bool send_impl(int s, const std::string& path, mode_t mode, bool compressed, in send_impl()
[all …]
Djdwp_service.cpp278 static void jdwp_socket_close(asocket* s) { in jdwp_socket_close()
292 static int jdwp_socket_enqueue(asocket* s, apacket::payload_type) { in jdwp_socket_enqueue()
299 static void jdwp_socket_ready(asocket* s) { in jdwp_socket_ready()
319 JdwpSocket* s = new JdwpSocket(); in create_jdwp_service_socket() local
360 static void jdwp_tracker_close(asocket* s) { in jdwp_tracker_close()
377 static void jdwp_tracker_ready(asocket* s) { in jdwp_tracker_ready()
389 static int jdwp_tracker_enqueue(asocket* s, apacket::payload_type) { in jdwp_tracker_enqueue()
/system/netd/libnetdutils/include/netdutils/
DSlice.h78 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/
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/core/base/include/android-base/
Dstrings.h74 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/
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/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/bt/embdrv/g722/
Dg722_enc_dec.h54 #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/
DTestUtils.java67 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/
Dsocket_local_server.cc42 int osi_socket_local_server_bind(int s, const char* name, int namespaceId) {
82 int s; local
/system/bt/osi/src/
Dcompat.cc66 const char* s = src; in strlcpy() local
97 const char* s = src; in strlcat() local

12345678910>>...13