/system/core/toolbox/upstream-netbsd/lib/libc/gen/ |
D | humanize_number.c | 47 humanize_number(char *buf, size_t len, int64_t bytes, in humanize_number() argument 90 if (bytes < 0) { in humanize_number() 93 if (-bytes < INT64_MAX / 100) in humanize_number() 94 bytes *= -100; in humanize_number() 96 bytes = -bytes; in humanize_number() 103 if (bytes < INT64_MAX / 100) in humanize_number() 104 bytes *= 100; in humanize_number() 132 for (i = 0; bytes >= max - 50 && i < maxscale; i++) in humanize_number() 133 bytes /= divisor; in humanize_number() 141 bytes /= divisor; in humanize_number() [all …]
|
/system/core/libutils/ |
D | JenkinsHash.cpp | 33 uint32_t JenkinsHashMixBytes(uint32_t hash, const uint8_t* bytes, size_t size) { in JenkinsHashMixBytes() argument 37 uint32_t data = bytes[i] | (bytes[i+1] << 8) | (bytes[i+2] << 16) | (bytes[i+3] << 24); in JenkinsHashMixBytes() 41 uint32_t data = bytes[i]; in JenkinsHashMixBytes() 42 data |= ((size & 3) > 1) ? (bytes[i+1] << 8) : 0; in JenkinsHashMixBytes() 43 data |= ((size & 3) > 2) ? (bytes[i+2] << 16) : 0; in JenkinsHashMixBytes()
|
D | String8.cpp | 99 const ssize_t bytes = utf16_to_utf8_length(in, len); in allocFromUTF16() local 100 if (bytes < 0) { in allocFromUTF16() 104 SharedBuffer* buf = SharedBuffer::alloc(bytes+1); in allocFromUTF16() 121 const ssize_t bytes = utf32_to_utf8_length(in, len); in allocFromUTF32() local 122 if (bytes < 0) { in allocFromUTF32() 126 SharedBuffer* buf = SharedBuffer::alloc(bytes+1); in allocFromUTF32() 286 const size_t otherLen = other.bytes(); in append() 287 if (bytes() == 0) { in append() 304 if (bytes() == 0) { in append() 351 const size_t myLen = bytes(); in real_append()
|
D | Unicode.cpp | 105 static inline void utf32_codepoint_to_utf8(uint8_t* dstP, char32_t srcChar, size_t bytes) in utf32_codepoint_to_utf8() argument 107 dstP += bytes; in utf32_codepoint_to_utf8() 108 switch (bytes) in utf32_codepoint_to_utf8() 113 case 1: *--dstP = (uint8_t)(srcChar | kFirstByteMark[bytes]); in utf32_codepoint_to_utf8()
|
D | BasicHashtable.cpp | 246 size_t bytes = count * mBucketSize; in allocateBuckets() local 247 SharedBuffer* sb = SharedBuffer::alloc(bytes); in allocateBuckets() 249 uint32_t(bytes), uint32_t(count)); in allocateBuckets()
|
/system/netd/server/ |
D | BandwidthController.h | 59 int setInterfaceSharedQuota(const char *iface, int64_t bytes); 60 int getInterfaceSharedQuota(int64_t *bytes); 63 int setInterfaceQuota(const char *iface, int64_t bytes); 64 int getInterfaceQuota(const char *iface, int64_t *bytes); 74 int setGlobalAlert(int64_t bytes); 79 int setSharedAlert(int64_t bytes); 82 int setInterfaceAlert(const char *iface, int64_t bytes); 136 int runIptablesAlertCmd(IptOp op, const char *alertName, int64_t bytes); 137 int runIptablesAlertFwdCmd(IptOp op, const char *alertName, int64_t bytes); 151 int updateQuota(const char *alertName, int64_t bytes); [all …]
|
D | BandwidthController.cpp | 776 int BandwidthController::getInterfaceSharedQuota(int64_t *bytes) { in getInterfaceSharedQuota() argument 777 return getInterfaceQuota("shared", bytes); in getInterfaceSharedQuota() 780 int BandwidthController::getInterfaceQuota(const char *costName, int64_t *bytes) { in getInterfaceQuota() argument 795 scanRes = fscanf(fp, "%" SCNd64, bytes); in getInterfaceQuota() 796 ALOGV("Read quota res=%d bytes=%" PRId64, scanRes, *bytes); in getInterfaceQuota() 836 int BandwidthController::updateQuota(const char *quotaName, int64_t bytes) { in updateQuota() argument 852 fprintf(fp, "%" PRId64"\n", bytes); in updateQuota() 857 int BandwidthController::runIptablesAlertCmd(IptOp op, const char *alertName, int64_t bytes) { in runIptablesAlertCmd() argument 879 bytes, alertName); in runIptablesAlertCmd() 883 bytes, alertName); in runIptablesAlertCmd() [all …]
|
D | CommandListener.cpp | 893 int64_t bytes; in runCommand() local 898 int rc = sBandwidthCtrl->getInterfaceSharedQuota(&bytes); in runCommand() 905 asprintf(&msg, "%" PRId64, bytes); in runCommand() 912 int64_t bytes; in runCommand() local 918 int rc = sBandwidthCtrl->getInterfaceQuota(argv[2], &bytes); in runCommand() 924 asprintf(&msg, "%" PRId64, bytes); in runCommand()
|
/system/core/fastboot/ |
D | fastboot_protocol.txt | 15 * Max packet size must be 64 bytes for full-speed and 512 bytes for 25 packet no greater than 64 bytes. 27 2. Client response with a single packet no greater than 64 bytes. 28 The first four bytes of the response are "OKAY", "FAIL", "DATA", 29 or "INFO". Additional bytes may contain an (ascii) informative 32 a. INFO -> the remaining 60 bytes are an informative message 36 b. FAIL -> the requested command failed. The remaining 60 bytes 43 A DATA response packet will be 12 bytes long, in the form of 50 until the client has sent or received the number of bytes indicated 53 4. Client responds with a single packet no greater than 64 bytes. [all …]
|
/system/extras/verity/ |
D | verify_boot_signature.c | 225 ssize_t bytes = 0; in hash_image() local 251 bytes = BUFFER_SIZE; in hash_image() 254 bytes = length - total; in hash_image() 257 if ((bytes = read(fd, buffer, bytes)) == -1) { in hash_image() 262 EVP_DigestUpdate(ctx, buffer, bytes); in hash_image() 263 total += bytes; in hash_image() 266 if ((bytes = i2d_AuthAttrs((AuthAttrs *) aa, NULL)) < 0) { in hash_image() 271 if ((attrs = OPENSSL_malloc(bytes)) == NULL) { in hash_image() 283 EVP_DigestUpdate(ctx, attrs, bytes); in hash_image()
|
D | VerityVerifier.java | 48 byte[] bytes = ByteBuffer.allocate(4).putInt(value).array(); in fromle() 49 return ByteBuffer.wrap(bytes).order(ByteOrder.LITTLE_ENDIAN).getInt(); in fromle()
|
/system/core/toolbox/upstream-netbsd/bin/dd/ |
D | misc.c | 135 (unsigned long long) st.bytes, in posix_summary() 138 (unsigned long long) (st.bytes * 1000LL / mS)); in posix_summary() 220 (unsigned long long)st.bytes); in dd_write_msg() 225 st.bytes, "B", in dd_write_msg() 232 (unsigned long long) (st.bytes * 1000LL / mS)); in dd_write_msg() 237 st.bytes * 1000LL / mS, "B", in dd_write_msg()
|
D | dd.h | 101 uint64_t bytes; /* # of bytes written */ member
|
/system/extras/memtrack/ |
D | memtrack.cpp | 70 ssize_t bytes; in isAvail() local 73 bytes = read(fd_, data_ + len_, max_ - len_); in isAvail() 74 if (bytes == 0 || bytes == -1) { in isAvail() 78 len_ += bytes; in isAvail() 137 ssize_t bytes = read(fd, cmd_name_, sizeof(cmd_name_)); in getInformation() local 139 if (bytes == -1 || bytes == 0) { in getInformation()
|
D | memtrack.h | 39 bool isAvail(size_t bytes);
|
/system/extras/tests/suspend_stress/ |
D | suspend_stress.cpp | 144 ssize_t bytes = read(fd, &fired, sizeof(fired)); in main() local 145 if (bytes < 0) { in main() 148 } else if (bytes < (ssize_t)sizeof(fired)) { in main() 149 fprintf(stderr, "unexpected read from timer fd: %zd\n", bytes); in main()
|
/system/keymaster/include/keymaster/ |
D | authorization_set.h | 222 bool push_back(TypedTag<KM_BYTES, Tag> tag, const void* bytes, size_t bytes_len) { in push_back() argument 223 return push_back(keymaster_param_blob(tag, static_cast<const uint8_t*>(bytes), bytes_len)); in push_back() 227 bool push_back(TypedTag<KM_BIGNUM, Tag> tag, const void* bytes, size_t bytes_len) { in push_back() argument 228 return push_back(keymaster_param_blob(tag, static_cast<const uint8_t*>(bytes), bytes_len)); in push_back() 237 bool push_back(TypedTag<Type, Tag> tag, const void* bytes, size_t bytes_len) { in push_back() argument 238 return push_back(Authorization(tag, bytes, bytes_len)); in push_back()
|
D | keymaster_tags.h | 230 inline keymaster_key_param_t Authorization(TypedTag<KM_BYTES, Tag> tag, const void* bytes, 232 return keymaster_param_blob(tag, reinterpret_cast<const uint8_t*>(bytes), bytes_len); 242 inline keymaster_key_param_t Authorization(TypedTag<KM_BIGNUM, Tag> tag, const void* bytes, 244 return keymaster_param_blob(tag, reinterpret_cast<const uint8_t*>(bytes), bytes_len);
|
D | keymaster_defs.h | 430 inline keymaster_key_param_t keymaster_param_blob(keymaster_tag_t tag, const uint8_t* bytes, in keymaster_param_blob() argument 436 param.blob.data = bytes; in keymaster_param_blob()
|
/system/core/adb/ |
D | SYNC.TXT | 19 responses. The first four bytes is an id and specifies sync request is 20 represented by four utf-8 characters. The last four bytes is a Little-Endian 36 bytes containing an utf-8 string with a remote filename. 48 6. length number of bytes containing an utf-8 string representing the file 66 follows chunk size number of bytes. This is repeated until the file is 79 the chuck size. After follows chunk size number of bytes. This is repeated
|
/system/core/include/utils/ |
D | JenkinsHash.h | 42 uint32_t JenkinsHashMixBytes(uint32_t hash, const uint8_t* bytes, size_t size);
|
D | String8.h | 69 inline size_t bytes() const; 281 inline size_t String8::bytes() const in bytes() function
|
/system/core/logd/ |
D | event.logtags | 27 # 2: Number of bytes 32 # Default value for data of type int/long is 2 (bytes).
|
/system/core/libcutils/ |
D | debugger.c | 47 ssize_t bytes = read(fd, &ehdr, sizeof(ehdr)); in is32bit() local 49 if (bytes != (ssize_t) sizeof(ehdr) || memcmp(ELFMAG, ehdr, SELFMAG) != 0) { in is32bit()
|
/system/core/logcat/ |
D | event.logtags | 27 # 2: Number of bytes 32 # Default value for data of type int/long is 2 (bytes).
|