/bionic/libc/bionic/ |
D | libgen.cpp | 39 static int __basename_r(const char* path, char* buffer, size_t buffer_size) { in __basename_r() argument 75 if (buffer == NULL) { in __basename_r() 85 memcpy(buffer, startp, len); in __basename_r() 86 buffer[len] = 0; in __basename_r() 92 __LIBC32_LEGACY_PUBLIC__ int basename_r(const char* path, char* buffer, size_t buffer_size) { in basename_r() argument 93 return __basename_r(path, buffer, buffer_size); in basename_r() 96 static int __dirname_r(const char* path, char* buffer, size_t buffer_size) { in __dirname_r() argument 138 if (buffer == NULL) { in __dirname_r() 149 memcpy(buffer, path, len); in __dirname_r() 150 buffer[len] = 0; in __dirname_r() [all …]
|
D | jemalloc_wrapper.cpp | 74 char buffer[100]; in je_mallopt() local 76 snprintf(buffer, sizeof(buffer), "arena.%d.decay_time", i); in je_mallopt() 77 if (je_mallctl(buffer, nullptr, nullptr, &decay_time, sizeof(decay_time)) != 0) { in je_mallopt()
|
D | libc_logging.cpp | 64 BufferOutputStream(char* buffer, size_t size) : total(0) { in BufferOutputStream() 65 buffer_ = buffer; in BufferOutputStream() 66 end_ = buffer + size - 1; in BufferOutputStream() 248 char buffer[32]; /* temporary buffer used to format numbers */ in out_vformat() local 341 const char* str = buffer; in out_vformat() 351 buffer[0] = static_cast<char>(va_arg(args, int)); in out_vformat() 352 buffer[1] = '\0'; in out_vformat() 355 buffer[0] = '0'; in out_vformat() 356 buffer[1] = 'x'; in out_vformat() 357 format_integer(buffer + 2, sizeof(buffer) - 2, value, 'x'); in out_vformat() [all …]
|
D | grp_pwd.cpp | 281 static void print_app_name_from_uid(const uid_t uid, char* buffer, const int bufferlen) { in print_app_name_from_uid() argument 285 snprintf(buffer, bufferlen, "u%u_i%u", userid, appid - AID_ISOLATED_START); in print_app_name_from_uid() 289 snprintf(buffer, bufferlen, "u%u_%s", userid, android_ids[n].name); in print_app_name_from_uid() 294 snprintf(buffer, bufferlen, "u%u_a%u", userid, appid - AID_APP_START); in print_app_name_from_uid() 298 static void print_app_name_from_gid(const gid_t gid, char* buffer, const int bufferlen) { in print_app_name_from_gid() argument 302 snprintf(buffer, bufferlen, "u%u_i%u", userid, appid - AID_ISOLATED_START); in print_app_name_from_gid() 304 snprintf(buffer, bufferlen, "all_a%u", appid - AID_SHARED_GID_START); in print_app_name_from_gid() 306 snprintf(buffer, bufferlen, "u%u_a%u_cache", userid, appid - AID_CACHE_GID_START); in print_app_name_from_gid() 310 snprintf(buffer, bufferlen, "u%u_%s", userid, android_ids[n].name); in print_app_name_from_gid() 315 snprintf(buffer, bufferlen, "u%u_a%u", userid, appid - AID_APP_START); in print_app_name_from_gid()
|
/bionic/linker/ |
D | linker_sleb128.h | 41 sleb128_decoder(const uint8_t* buffer, size_t count) in sleb128_decoder() argument 42 : current_(buffer), end_(buffer+count) { } in sleb128_decoder()
|
D | dlfcn.cpp | 56 char* buffer = __get_thread()->dlerror_buffer; in __bionic_format_dlerror() local 57 strlcpy(buffer, msg, __BIONIC_DLERROR_BUFFER_SIZE); in __bionic_format_dlerror() 59 strlcat(buffer, ": ", __BIONIC_DLERROR_BUFFER_SIZE); in __bionic_format_dlerror() 60 strlcat(buffer, detail, __BIONIC_DLERROR_BUFFER_SIZE); in __bionic_format_dlerror() 63 __bionic_set_dlerror(buffer); in __bionic_format_dlerror() 71 void __android_get_LD_LIBRARY_PATH(char* buffer, size_t buffer_size) { in __android_get_LD_LIBRARY_PATH() argument 73 do_android_get_LD_LIBRARY_PATH(buffer, buffer_size); in __android_get_LD_LIBRARY_PATH()
|
D | linker_logger.cpp | 70 static void GetAppSpecificProperty(char* buffer) { in GetAppSpecificProperty() argument 83 __system_property_get(property_name.c_str(), buffer); in GetAppSpecificProperty()
|
/bionic/tests/ |
D | buffer_tests.cpp | 208 static void SetFencepost(uint8_t *buffer) { in SetFencepost() argument 210 buffer[i] = 0xde; in SetFencepost() 211 buffer[i+1] = 0xad; in SetFencepost() 215 static void VerifyFencepost(uint8_t *buffer) { in VerifyFencepost() argument 217 if (buffer[i] != 0xde || buffer[i+1] != 0xad) { in VerifyFencepost() 219 if (buffer[i] == 0xde) { in VerifyFencepost() 225 ASSERT_EQ(expected_value, buffer[i]); in VerifyFencepost()
|
D | sys_socket_test.cpp | 219 char buffer[100]; in TestSendMMsg() local 221 static_cast<size_t>(recv(fd_acc, buffer, sizeof(buffer), 0))); in TestSendMMsg() 222 ASSERT_STREQ(g_SendMsgs[i], buffer); in TestSendMMsg()
|
D | string_test.cpp | 800 uint8_t* buffer; in TEST() local 801 ASSERT_EQ(0, posix_memalign(reinterpret_cast<void**>(&buffer), 64, 64)); in TEST() 802 memset(buffer, 10, 64); in TEST() 803 ASSERT_TRUE(NULL == memchr(buffer, 5, 0)); in TEST() 804 ASSERT_TRUE(NULL == memchr(buffer, 10, 0)); in TEST() 968 char* buffer = reinterpret_cast<char*>(malloc(MEMMOVE_DATA_SIZE)); in TEST() local 969 ASSERT_TRUE(buffer != NULL); in TEST() 980 char* src = buffer; in TEST() 982 char* dst = buffer + 256 + i; in TEST() 994 char* dst = buffer + 256; in TEST() [all …]
|
D | stdio_test.cpp | 161 char* buffer = NULL; in TEST() local 171 ASSERT_EQ(getdelim(&buffer, NULL, ' ', fp), -1); in TEST() 177 ASSERT_EQ(getdelim(&buffer, &buffer_length, ' ', fp), -1); in TEST() 237 char* buffer = NULL; in TEST() local 247 ASSERT_EQ(getline(&buffer, NULL, fp), -1); in TEST() 253 ASSERT_EQ(getline(&buffer, &buffer_length, fp), -1); in TEST() 1167 char buffer[8192]; in TEST() local 1170 ASSERT_EQ(100U, fread(buffer, 1, 100, fp)); in TEST() 1171 ASSERT_EQ(memcmp(file_data, buffer, 100), 0); in TEST() 1176 ASSERT_EQ(8192U, fread(buffer, 1, 8192, fp)); in TEST() [all …]
|
/bionic/libc/malloc_debug/ |
D | MapData.cpp | 119 std::vector<char> buffer(1024); in ReadMaps() local 120 while (fgets(buffer.data(), buffer.size(), fp) != nullptr) { in ReadMaps() 121 MapEntry* entry = parse_line(buffer.data()); in ReadMaps()
|
D | README_api.md | 12 *info* is set to a buffer allocated by the call that contains all of 14 *overall\_size* is set to the total size of the buffer returned. If this 23 In order to free the buffer allocated by the function, call:
|
D | README_marshmallow_and_earlier.md | 78 A 32 byte buffer is placed before the returned allocation (known as 79 a front guard). This buffer is filled with the pattern (0xaa). In addition, 80 a 32 byte buffer is placed after the data for the returned allocation (known 81 as a rear guard). This buffer is filled with the pattern (0xbb).
|
/bionic/libc/private/ |
D | libc_logging.h | 79 int __libc_format_buffer_va_list(char* _Nonnull buffer, size_t buffer_size, 82 int __libc_format_buffer_va_list(char* _Nonnull buffer, size_t buffer_size,
|
/bionic/libc/upstream-netbsd/android/include/sys/ |
D | sha1.h | 21 u_char buffer[64]; member
|
/bionic/libdl/ |
D | libdl.c | 57 void __loader_android_get_LD_LIBRARY_PATH(char* buffer, size_t buffer_size); 138 void android_get_LD_LIBRARY_PATH(char* buffer, size_t buffer_size) { in android_get_LD_LIBRARY_PATH() argument 139 __loader_android_get_LD_LIBRARY_PATH(buffer, buffer_size); in android_get_LD_LIBRARY_PATH()
|
/bionic/tools/relocation_packer/src/ |
D | elf_file_unittest.cc | 50 unsigned char buffer[buffer_size]; in OpenRelocsTestFile() local 54 bytes = fread(buffer, 1, sizeof(buffer), testfile); in OpenRelocsTestFile() 55 ASSERT_EQ(bytes, fwrite(buffer, 1, bytes, temporary)); in OpenRelocsTestFile()
|
/bionic/libc/malloc_debug/tests/ |
D | malloc_debug_unit_tests.cpp | 314 std::vector<uint8_t> buffer(32); in TEST_F() local 315 memset(buffer.data(), 0xaa, buffer.size()); in TEST_F() 319 ASSERT_TRUE(memcmp(buffer.data(), &pointer[-buffer.size()], buffer.size()) == 0); in TEST_F() 327 ASSERT_TRUE(memcmp(buffer.data(), &pointer[-buffer.size()], buffer.size()) == 0); in TEST_F() 339 ASSERT_TRUE(memcmp(buffer.data(), &pointer[-buffer.size()], buffer.size()) == 0); in TEST_F() 347 ASSERT_TRUE(memcmp(buffer.data(), &pointer[-buffer.size()], buffer.size()) == 0); in TEST_F() 350 ASSERT_TRUE(memcmp(buffer.data(), &pointer[-buffer.size()], buffer.size()) == 0); in TEST_F() 405 std::vector<uint8_t> buffer(32); in TEST_F() local 406 memset(buffer.data(), 0xbb, buffer.size()); in TEST_F() 411 ASSERT_TRUE(memcmp(buffer.data(), &pointer[100], buffer.size()) == 0); in TEST_F() [all …]
|
/bionic/libc/kernel/uapi/sound/ |
D | compress_offload.h | 32 struct snd_compressed_buffer buffer; member
|
/bionic/libc/upstream-netbsd/common/lib/libc/hash/sha1/ |
D | sha1.c | 150 void SHA1Transform(uint32_t state[5], const uint8_t buffer[64]) in SHA1Transform() 159 _DIAGASSERT(buffer != 0); in SHA1Transform() 164 (void)memcpy(block, buffer, 64); in SHA1Transform() 166 block = (CHAR64LONG16 *)(void *)buffer; in SHA1Transform() 250 (void)memcpy(&context->buffer[j], data, (i = 64-j)); in SHA1Update() 251 SHA1Transform(context->state, context->buffer); in SHA1Update() 258 (void)memcpy(&context->buffer[j], &data[i], len - i); in SHA1Update()
|
/bionic/libc/kernel/uapi/linux/ |
D | usbdevice_fs.h | 89 void __user * buffer; member
|
D | atmdev.h | 106 void __user * buffer; member
|
/bionic/libc/kernel/uapi/linux/dvb/ |
D | frontend.h | 389 __u32 buffer : 1; member 429 } buffer; member
|
/bionic/libc/kernel/uapi/linux/android/ |
D | binder.h | 114 binder_uintptr_t buffer; member
|