Searched refs:bytes (Results 1 - 12 of 12) sorted by relevance

/system/netd/
H A DBandwidthController.h55 int setInterfaceSharedQuota(const char *iface, int64_t bytes);
56 int getInterfaceSharedQuota(int64_t *bytes);
59 int setInterfaceQuota(const char *iface, int64_t bytes);
60 int getInterfaceQuota(const char *iface, int64_t *bytes);
66 int setGlobalAlert(int64_t bytes);
71 int setSharedAlert(int64_t bytes);
74 int setInterfaceAlert(const char *iface, int64_t bytes);
118 int runIptablesAlertCmd(IptOp op, const char *alertName, int64_t bytes);
119 int runIptablesAlertFwdCmd(IptOp op, const char *alertName, int64_t bytes);
133 int updateQuota(const char *alertName, int64_t bytes);
[all...]
H A DBandwidthController.cpp508 ALOGE("Invalid bytes value. 1..max_int64.");
612 ALOGE("Invalid bytes value. 1..max_int64.");
670 int BandwidthController::getInterfaceSharedQuota(int64_t *bytes) { argument
671 return getInterfaceQuota("shared", bytes);
674 int BandwidthController::getInterfaceQuota(const char *costName, int64_t *bytes) { argument
686 scanRes = fscanf(fp, "%lld", bytes);
687 ALOGV("Read quota res=%d bytes=%lld", scanRes, *bytes);
725 int BandwidthController::updateQuota(const char *quotaName, int64_t bytes) { argument
736 fprintf(fp, "%lld\n", bytes);
741 runIptablesAlertCmd(IptOp op, const char *alertName, int64_t bytes) argument
773 runIptablesAlertFwdCmd(IptOp op, const char *alertName, int64_t bytes) argument
801 setGlobalAlert(int64_t bytes) argument
884 setSharedAlert(int64_t bytes) argument
900 setInterfaceAlert(const char *iface, int64_t bytes) argument
936 setCostlyAlert(const char *costName, int64_t bytes, int64_t *alertBytes) argument
1002 int64_t packets, bytes; local
[all...]
H A DCommandListener.cpp906 int64_t bytes; local
911 int rc = sBandwidthCtrl->getInterfaceSharedQuota(&bytes);
918 asprintf(&msg, "%lld", bytes);
925 int64_t bytes; local
931 int rc = sBandwidthCtrl->getInterfaceQuota(argv[2], &bytes);
937 asprintf(&msg, "%lld", bytes);
945 sendGenericSyntaxError(cli, "setquota <interface> <bytes>");
955 sendGenericSyntaxError(cli, "setquotas <bytes> <interface> ...");
1008 sendGenericSyntaxError(cli, "setiquota <interface> <bytes>");
1039 sendGenericSyntaxError(cli, "setglobalalert <bytes>");
[all...]
/system/core/libcutils/tests/memset_mips/
H A Dmemset_cmips.S100 # Here a3 counts bytes in 16w chunks
104 # 96 bytes left. The value "96" is calculated as needed buffer for
115 # Here t5 counts bytes in 16w "safe" chunks
183 # the t7 is the reminder count past 32-bytes
200 subu a3,a2,t8 # a3 is the count of bytes in 1w chunks
H A Dmemset_omips.S62 move a2, t0 # a2 is now # of bytes left after loop
77 blez a2, .Lexit # Handle last 8 bytes (if cnt>0)
H A Dtest_memset.c56 timeone(void (*fn)(), void *d, uint32_t val, uint32_t bytes) argument
60 (*fn)(d, val, bytes);
67 /* define VERIFY to check that memset only touches the bytes it's supposed to */
96 n = minbytes + (rand() % (maxbytes-minbytes)); /* How many bytes to do */
/system/core/toolbox/
H A Ddd.h67 uint64_t bytes; /* # of bytes written */ member in struct:__anon485
H A Ddd.c519 st.bytes += pending;
525 st.bytes += nw;
605 * Read the data. If a pipe, read until satisfy the number of bytes
782 * bytes to output. Records less than cbs are padded with spaces.
997 "%llu bytes transferred in %lu.%03d secs (%llu bytes/sec)\n",
998 (unsigned long long) st.bytes,
1001 (unsigned long long) (st.bytes * 1000LL / mS));
/system/core/libcutils/
H A Dmq.c55 /** Listens for bytes coming from remote peers. */
56 typedef void BytesListener(Credentials credentials, char* bytes, size_t size);
72 /** A generic packet of bytes. */
83 /** Reading bytes. */
110 /** Buffer of bytes. Used with BYTES. */
111 Buffer* bytes; member in union:OutgoingPacket::__anon406
460 /** Writes packet bytes to peer. */
462 Buffer* buffer = peerProxy->currentPacket->bytes;
580 /** Prepare to read bytes from the peer. */
582 ALOGD("Expecting %d bytes
1133 peerSendBytes(pid_t pid, const char* bytes, size_t size) argument
1200 peerSendSharedBytes(pid_t pid, char* bytes, size_t size, void (*free)(void* context), void* context) argument
[all...]
/system/extras/micro_bench/
H A Dmicro_bench.cpp42 #define COMPUTE_AVERAGE_KB(avg_kb, bytes, time_ns) \
43 avg_kb = ((bytes) / 1024.0) / ((double)(time_ns) / NS_PER_SEC);
194 printf("memset %dx%d bytes took %.06f seconds (%f MB/s)\n",
200 printf(" memset %dx%d bytes average %.2f MB/s std dev %.4f\n",
238 printf("memcpy %dx%d bytes took %.06f seconds (%f MB/s)\n",
243 printf(" memcpy %dx%d bytes average %.2f MB/s std dev %.4f\n",
281 printf("read %dx%d bytes took %.06f seconds (%f MB/s)\n",
287 printf(" read %dx%d bytes average %.2f MB/s std dev %.4f\n",
311 printf(" size of data, in bytes, that will be manipulated in each iteration.\n");
/system/core/libcorkscrew/arch-x86/
H A Dbacktrace-x86.c101 /* TODO: x86 instructions are 1-16 bytes, to define exact size of previous instruction
130 /* Getting X bytes. 4 is maximum for now. */
131 static bool try_get_xbytes(const memory_t* memory, uintptr_t ptr, uint32_t* out_value, uint8_t bytes, uint32_t* cursor) { argument
133 if (bytes > 4) {
134 ALOGE("can't read more than 4 bytes, trying to read %d", bytes);
137 for (int i = 0; i < bytes; i++) {
148 /* Reads signed/unsigned LEB128 encoded data. From 1 to 4 bytes. */
161 ALOGE("%s: data exceeds expected 4 bytes maximum", __FUNCTION__);
173 /* Reads signed LEB128 encoded data. From 1 to 4 bytes
[all...]
/system/core/sh/
H A Darith_lex.c188 /* Size of input buffer in bytes, not including room for EOB
295 YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,int len );
1409 * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
1611 * @param size the size in bytes of the character buffer
1649 * @note If you want to scan bytes that may contain NUL values, then use
1658 /** Setup the input buffer state to scan the given bytes. The next call to yylex() will
1659 * scan from a @e copy of @a bytes.
1660 * @param bytes the byte buffer to scan
1661 * @param len the number of bytes in the buffer pointed to by @a bytes
1665 yy_scan_bytes(yyconst char * bytes, int len ) argument
[all...]

Completed in 473 milliseconds