Searched defs:bytes (Results 1 - 12 of 12) sorted by path

/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::__anon397
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/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...]
/system/core/toolbox/
H A Ddd.h67 uint64_t bytes; /* # of bytes written */ member in struct:__anon477
/system/extras/atrace/
H A Datrace.c393 size_t bytes = bufSize - zs.avail_out; local
394 result = write(STDOUT_FILENO, out, bytes);
395 if ((size_t)result < bytes) {
/system/extras/micro_bench/
H A Dmicro_bench.c77 static double mb_sec(unsigned long bytes, struct timeval *delta) { argument
79 return (double)bytes * 1000000.0 / 1048576.0 / (double)us;
100 printf("memset %dx%d bytes took %ld.%06ld seconds (%f MB/s)\n",
126 printf("memcpy %dx%d bytes took %ld.%06ld seconds (%f MB/s)\n",
153 printf("read %dx%d bytes took %ld.%06ld seconds (%f MB/s)\n",
/system/extras/tests/framebuffer/
H A Dmdp_test.c233 int bytes; local
247 bytes = read(file_fd, ptr, file_len);
248 if (bytes < 0) {
252 file_len -= bytes;
253 ptr += bytes;
/system/netd/
H A DBandwidthController.cpp513 ALOGE("Invalid bytes value. 1..max_int64.");
617 ALOGE("Invalid bytes value. 1..max_int64.");
669 int BandwidthController::getInterfaceSharedQuota(int64_t *bytes) { argument
670 return getInterfaceQuota("shared", bytes);
673 int BandwidthController::getInterfaceQuota(const char *costName, int64_t *bytes) { argument
685 scanRes = fscanf(fp, "%lld", bytes);
686 ALOGV("Read quota res=%d bytes=%lld", scanRes, *bytes);
724 int BandwidthController::updateQuota(const char *quotaName, int64_t bytes) { argument
735 fprintf(fp, "%lld\n", bytes);
740 runIptablesAlertCmd(IptOp op, const char *alertName, int64_t bytes) argument
772 runIptablesAlertFwdCmd(IptOp op, const char *alertName, int64_t bytes) argument
799 setGlobalAlert(int64_t bytes) argument
882 setSharedAlert(int64_t bytes) argument
898 setInterfaceAlert(const char *iface, int64_t bytes) argument
934 setCostlyAlert(const char *costName, int64_t bytes, int64_t *alertBytes) argument
1000 int64_t packets, bytes; local
[all...]
H A DCommandListener.cpp1033 int64_t bytes; local
1038 int rc = sBandwidthCtrl->getInterfaceSharedQuota(&bytes);
1045 asprintf(&msg, "%lld", bytes);
1052 int64_t bytes; local
1058 int rc = sBandwidthCtrl->getInterfaceQuota(argv[2], &bytes);
1064 asprintf(&msg, "%lld", bytes);
1072 sendGenericSyntaxError(cli, "setquota <interface> <bytes>");
1082 sendGenericSyntaxError(cli, "setquotas <bytes> <interface> ...");
1135 sendGenericSyntaxError(cli, "setiquota <interface> <bytes>");
1166 sendGenericSyntaxError(cli, "setglobalalert <bytes>");
[all...]
/system/security/keystore/
H A Dkeystore.cpp159 * into two bytes. The first byte is one of [+-.] which represents the first
258 * parts must be no more than VALUE_SIZE bytes. The first field is the version,
851 * network order. Thus the maximum length of a message is 65535 bytes. */
858 uint8_t bytes[2]; local
859 if (recv(sock, &bytes[0], 1, 0) != 1 ||
860 recv(sock, &bytes[1], 1, 0) != 1) {
863 int offset = bytes[0] << 8 | bytes[1];
890 uint16_t bytes = htons(length); local
891 send(sock, &bytes,
[all...]
H A Dkeystore_cli.cpp59 uint8_t bytes[65536]; local
62 bytes[0] = length >> 8;
63 bytes[1] = length;
64 send(sock, &bytes, 2, 0);
76 while ((i = recv(sock, &bytes[0], 1, 0)) == 1) {
79 if ((i = recv(sock, &bytes[1], 1, 0)) != 1) {
83 length = bytes[0] << 8 | bytes[1];
85 i = recv(sock, &bytes[offset], length - offset, 0);
91 fwrite(bytes,
[all...]
H A Dkeystore_client.cpp50 uint8_t bytes[2] = { argLen >> 8, argLen }; local
51 if (TEMP_FAILURE_RETRY(send(sock, bytes, 2, MSG_NOSIGNAL)) != 2
73 uint8_t bytes[2]; local
75 if (TEMP_FAILURE_RETRY(recv(sock, &bytes[0], 1, 0)) == 1
76 && TEMP_FAILURE_RETRY(recv(sock, &bytes[1], 1, 0)) == 1) {
78 int length = bytes[0] << 8 | bytes[1];
H A Dkeystore_get.h38 * KEYSTORE_MESSAGE_SIZE bytes. This function returns the length of the value or
42 uint8_t bytes[2] = {length >> 8, length}; local
54 if (send(sock, &code, 1, 0) == 1 && send(sock, bytes, 2, 0) == 2 &&
57 recv(sock, &bytes[0], 1, 0) == 1 && recv(sock, &bytes[1], 1, 0) == 1) {
59 length = bytes[0] << 8 | bytes[1];

Completed in 85 milliseconds