Home
last modified time | relevance | path

Searched refs:bytes (Results 1 – 16 of 16) sorted by relevance

/system/netd/
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 …]
DBandwidthController.cpp670 int BandwidthController::getInterfaceSharedQuota(int64_t *bytes) { in getInterfaceSharedQuota() argument
671 return getInterfaceQuota("shared", bytes); in getInterfaceSharedQuota()
674 int BandwidthController::getInterfaceQuota(const char *costName, int64_t *bytes) { in getInterfaceQuota() argument
686 scanRes = fscanf(fp, "%lld", bytes); in getInterfaceQuota()
687 ALOGV("Read quota res=%d bytes=%lld", scanRes, *bytes); in getInterfaceQuota()
725 int BandwidthController::updateQuota(const char *quotaName, int64_t bytes) { in updateQuota() argument
736 fprintf(fp, "%lld\n", bytes); in updateQuota()
741 int BandwidthController::runIptablesAlertCmd(IptOp op, const char *alertName, int64_t bytes) { in runIptablesAlertCmd() argument
763 bytes, alertName); in runIptablesAlertCmd()
767 bytes, alertName); in runIptablesAlertCmd()
[all …]
DCommandListener.cpp906 int64_t bytes; in runCommand() local
911 int rc = sBandwidthCtrl->getInterfaceSharedQuota(&bytes); in runCommand()
918 asprintf(&msg, "%lld", bytes); in runCommand()
925 int64_t bytes; in runCommand() local
931 int rc = sBandwidthCtrl->getInterfaceQuota(argv[2], &bytes); in runCommand()
937 asprintf(&msg, "%lld", bytes); in runCommand()
/system/core/fastboot/
Dfastboot_protocol.txt15 * 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/core/libcutils/tests/memset_mips/
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
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)
Dtest_memset.c56 timeone(void (*fn)(), void *d, uint32_t val, uint32_t bytes) in timeone() argument
60 (*fn)(d, val, bytes); in timeone()
/system/core/libcutils/
Dmq.c56 typedef void BytesListener(Credentials credentials, char* bytes, size_t size);
111 Buffer* bytes; member
462 Buffer* buffer = peerProxy->currentPacket->bytes; in peerProxyWriteBytes()
1122 bufferFree(packet->bytes); in outgoingPacketFreeBytes()
1133 int peerSendBytes(pid_t pid, const char* bytes, size_t size) { in peerSendBytes() argument
1151 memcpy(copy->data, bytes, size); in peerSendBytes()
1154 packet->bytes = copy; in peerSendBytes()
1158 bufferPrepareForWrite(packet->bytes); in peerSendBytes()
1200 int peerSendSharedBytes(pid_t pid, char* bytes, size_t size, in peerSendSharedBytes() argument
1211 Buffer* wrapper = bufferWrap(bytes, size, size); in peerSendSharedBytes()
[all …]
/system/core/toolbox/
Ddd.h67 uint64_t bytes; /* # of bytes written */ member
Ddd.c519 st.bytes += pending; in dd_out()
525 st.bytes += nw; in dd_out()
998 (unsigned long long) st.bytes, in summary()
1001 (unsigned long long) (st.bytes * 1000LL / mS)); in summary()
/system/core/libcorkscrew/arch-x86/
Dbacktrace-x86.c131 …bytes(const memory_t* memory, uintptr_t ptr, uint32_t* out_value, uint8_t bytes, uint32_t* cursor)… in try_get_xbytes() argument
133 if (bytes > 4) { in try_get_xbytes()
134 ALOGE("can't read more than 4 bytes, trying to read %d", bytes); in try_get_xbytes()
137 for (int i = 0; i < bytes; i++) { in try_get_xbytes()
/system/core/logcat/
Devent.logtags27 # 2: Number of bytes
32 # Default value for data of type int/long is 2 (bytes).
/system/extras/micro_bench/
Dmicro_bench.cpp42 #define COMPUTE_AVERAGE_KB(avg_kb, bytes, time_ns) \ argument
43 avg_kb = ((bytes) / 1024.0) / ((double)(time_ns) / NS_PER_SEC);
/system/core/sh/
Darith_lex.c295 YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,int len );
1665 YY_BUFFER_STATE yy_scan_bytes (yyconst char * bytes, int len ) in yy_scan_bytes() argument
1679 buf[i] = bytes[i]; in yy_scan_bytes()
/system/core/libnl_2/
DREADME36 * All data structures in this implementation are byte-aligned (Currently 4 bytes).
/system/core/adb/
DSERVICES.TXT214 size: uint32_t: framebuffer size in bytes
223 to send it 'size' bytes of framebuffer data.
243 - reading 'size' bytes from the client and writing them to /tmp/update