/system/core/toolbox/upstream-netbsd/lib/libc/gen/ |
H A D | humanize_number.c | 47 humanize_number(char *buf, size_t len, int64_t bytes, argument 90 if (bytes < 0) { 93 if (-bytes < INT64_MAX / 100) 94 bytes *= -100; 96 bytes = -bytes; 103 if (bytes < INT64_MAX / 100) 104 bytes *= 100; 132 for (i = 0; bytes >= max - 50 && i < maxscale; i++) 133 bytes / [all...] |
/system/core/libutils/ |
H A D | JenkinsHash.cpp | 33 uint32_t JenkinsHashMixBytes(uint32_t hash, const uint8_t* bytes, size_t size) { argument 37 uint32_t data = bytes[i] | (bytes[i+1] << 8) | (bytes[i+2] << 16) | (bytes[i+3] << 24); 41 uint32_t data = bytes[i]; 42 data |= ((size & 3) > 1) ? (bytes[i+1] << 8) : 0; 43 data |= ((size & 3) > 2) ? (bytes[i+2] << 16) : 0;
|
H A D | String8.cpp | 99 const ssize_t bytes = utf16_to_utf8_length(in, len); local 100 if (bytes < 0) { 104 SharedBuffer* buf = SharedBuffer::alloc(bytes+1); 121 const ssize_t bytes = utf32_to_utf8_length(in, len); local 122 if (bytes < 0) { 126 SharedBuffer* buf = SharedBuffer::alloc(bytes+1); 286 const size_t otherLen = other.bytes(); 287 if (bytes() == 0) { 304 if (bytes() == 0) { 351 const size_t myLen = bytes(); [all...] |
H A D | BasicHashtable.cpp | 246 size_t bytes = count * mBucketSize; local 247 SharedBuffer* sb = SharedBuffer::alloc(bytes); 248 LOG_ALWAYS_FATAL_IF(!sb, "Could not allocate %u bytes for hashtable with %u buckets.", 249 uint32_t(bytes), uint32_t(count));
|
H A D | Unicode.cpp | 58 // indexed by number of bytes in the sequence. 76 * Return number of UTF-8 bytes required for the character. If the character 81 // Figure out how many bytes the result will require. 105 static inline void utf32_codepoint_to_utf8(uint8_t* dstP, char32_t srcChar, size_t bytes) argument 107 dstP += bytes; 108 switch (bytes) 113 case 1: *--dstP = (uint8_t)(srcChar | kFirstByteMark[bytes]); 418 // surrogate pairs are always 4 bytes.
|
/system/netd/server/ |
H A 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...] |
H A D | BandwidthController.cpp | 607 ALOGE("Invalid bytes value. 1..max_int64."); 718 ALOGE("Invalid bytes value. 1..max_int64."); 776 int BandwidthController::getInterfaceSharedQuota(int64_t *bytes) { argument 777 return getInterfaceQuota("shared", bytes); 780 int BandwidthController::getInterfaceQuota(const char *costName, int64_t *bytes) { argument 795 scanRes = fscanf(fp, "%" SCNd64, bytes); 796 ALOGV("Read quota res=%d bytes=%" PRId64, scanRes, *bytes); 836 int BandwidthController::updateQuota(const char *quotaName, int64_t bytes) { argument 852 fprintf(fp, "%" PRId64"\n", bytes); 857 runIptablesAlertCmd(IptOp op, const char *alertName, int64_t bytes) argument 889 runIptablesAlertFwdCmd(IptOp op, const char *alertName, int64_t bytes) argument 917 setGlobalAlert(int64_t bytes) argument 1000 setSharedAlert(int64_t bytes) argument 1016 setInterfaceAlert(const char *iface, int64_t bytes) argument 1062 setCostlyAlert(const char *costName, int64_t bytes, int64_t *alertBytes) argument 1141 int64_t packets, bytes; local [all...] |
H A D | CommandListener.cpp | 870 int64_t bytes; local 875 int rc = sBandwidthCtrl->getInterfaceSharedQuota(&bytes); 882 asprintf(&msg, "%" PRId64, bytes); 889 int64_t bytes; local 895 int rc = sBandwidthCtrl->getInterfaceQuota(argv[2], &bytes); 901 asprintf(&msg, "%" PRId64, bytes); 909 sendGenericSyntaxError(cli, "setquota <interface> <bytes>"); 919 sendGenericSyntaxError(cli, "setquotas <bytes> <interface> ..."); 972 sendGenericSyntaxError(cli, "setiquota <interface> <bytes>"); 1039 sendGenericSyntaxError(cli, "setglobalalert <bytes>"); [all...] |
/system/core/include/utils/ |
H A D | JenkinsHash.h | 42 uint32_t JenkinsHashMixBytes(uint32_t hash, const uint8_t* bytes, size_t size);
|
H A D | String8.h | 69 inline size_t bytes() const; 281 inline size_t String8::bytes() const function in class:android::String8
|
/system/extras/tests/suspend_stress/ |
H A D | suspend_stress.cpp | 144 ssize_t bytes = read(fd, &fired, sizeof(fired)); local 145 if (bytes < 0) { 148 } else if (bytes < (ssize_t)sizeof(fired)) { 149 fprintf(stderr, "unexpected read from timer fd: %zd\n", bytes);
|
/system/extras/memtrack/ |
H A D | memtrack.cpp | 70 ssize_t bytes; local 73 bytes = read(fd_, data_ + len_, max_ - len_); 74 if (bytes == 0 || bytes == -1) { 78 len_ += bytes; 137 ssize_t bytes = read(fd, cmd_name_, sizeof(cmd_name_)); local 139 if (bytes == -1 || bytes == 0) {
|
H A D | memtrack.h | 38 // Check if there is at least bytes available in the file data. 39 bool isAvail(size_t bytes);
|
/system/core/toolbox/upstream-netbsd/bin/dd/ |
H A D | misc.c | 134 "%llu bytes transferred in %lu.%03d secs (%llu bytes/sec)\n", 135 (unsigned long long) st.bytes, 138 (unsigned long long) (st.bytes * 1000LL / mS)); 220 (unsigned long long)st.bytes); 225 st.bytes, "B", 227 warnx("humanize_number (bytes transferred)"); 232 (unsigned long long) (st.bytes * 1000LL / mS)); 237 st.bytes * 1000LL / mS, "B", 239 warnx("humanize_number (bytes pe [all...] |
H A D | dd.h | 101 uint64_t bytes; /* # of bytes written */ member in struct:__anon245
|
H A D | dd.c | 542 st.bytes += pending; 548 st.bytes += nw;
|
/system/keymaster/include/keymaster/ |
H A D | authorization_set.h | 170 * If the specified bytes-typed \p tag exists, places its value in \p val and returns 205 * Grow the indirect data array to ensure it can contain \p length bytes. Preserves any 222 bool push_back(TypedTag<KM_BYTES, Tag> tag, const void* bytes, size_t bytes_len) { argument 223 return push_back(keymaster_param_blob(tag, static_cast<const uint8_t*>(bytes), bytes_len)); 227 bool push_back(TypedTag<KM_BIGNUM, Tag> tag, const void* bytes, size_t bytes_len) { argument 228 return push_back(keymaster_param_blob(tag, static_cast<const uint8_t*>(bytes), bytes_len)); 237 bool push_back(TypedTag<Type, Tag> tag, const void* bytes, size_t bytes_len) { argument 238 return push_back(Authorization(tag, bytes, bytes_len));
|
H A D | keymaster_tags.h | 230 inline keymaster_key_param_t Authorization(TypedTag<KM_BYTES, Tag> tag, const void* bytes, argument 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, argument 244 return keymaster_param_blob(tag, reinterpret_cast<const uint8_t*>(bytes), bytes_len);
|
H A D | keymaster_defs.h | 61 KM_TAG_CHUNK_LENGTH = KM_INT | 8, /* AEAD mode minimum decryption chunk size, in bytes. */ 430 inline keymaster_key_param_t keymaster_param_blob(keymaster_tag_t tag, const uint8_t* bytes, argument 436 param.blob.data = bytes;
|
/system/core/libcutils/ |
H A D | debugger.c | 42 ssize_t bytes = read(fd, &ehdr, sizeof(ehdr)); local 44 if (bytes != (ssize_t) sizeof(ehdr) || memcmp(ELFMAG, ehdr, SELFMAG) != 0) {
|