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

/system/security/keystore/
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_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];
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.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,
854 * network order. Thus the maximum length of a message is 65535 bytes. */
861 uint8_t bytes[2]; local
862 if (recv(sock, &bytes[0], 1, 0) != 1 ||
863 recv(sock, &bytes[1], 1, 0) != 1) {
866 int offset = bytes[0] << 8 | bytes[1];
893 uint16_t bytes = htons(length); local
894 send(sock, &bytes,
[all...]
/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);
112 int runIptablesAlertCmd(IptOp op, const char *alertName, int64_t bytes);
113 int runIptablesAlertFwdCmd(IptOp op, const char *alertName, int64_t bytes);
127 int updateQuota(const char *alertName, int64_t bytes);
[all...]
H A DBandwidthController.cpp538 ALOGE("Invalid bytes value. 1..max_int64.");
642 ALOGE("Invalid bytes value. 1..max_int64.");
694 int BandwidthController::getInterfaceSharedQuota(int64_t *bytes) { argument
695 return getInterfaceQuota("shared", bytes);
698 int BandwidthController::getInterfaceQuota(const char *costName, int64_t *bytes) { argument
710 scanRes = fscanf(fp, "%lld", bytes);
711 ALOGV("Read quota res=%d bytes=%lld", scanRes, *bytes);
749 int BandwidthController::updateQuota(const char *quotaName, int64_t bytes) { argument
760 fprintf(fp, "%lld\n", bytes);
765 runIptablesAlertCmd(IptOp op, const char *alertName, int64_t bytes) argument
797 runIptablesAlertFwdCmd(IptOp op, const char *alertName, int64_t bytes) argument
824 setGlobalAlert(int64_t bytes) argument
907 setSharedAlert(int64_t bytes) argument
923 setInterfaceAlert(const char *iface, int64_t bytes) argument
959 setCostlyAlert(const char *costName, int64_t bytes, int64_t *alertBytes) argument
1025 int64_t packets, bytes; local
[all...]
H A DCommandListener.cpp963 int64_t bytes; local
968 int rc = sBandwidthCtrl->getInterfaceSharedQuota(&bytes);
975 asprintf(&msg, "%lld", bytes);
982 int64_t bytes; local
988 int rc = sBandwidthCtrl->getInterfaceQuota(argv[2], &bytes);
994 asprintf(&msg, "%lld", bytes);
1002 sendGenericSyntaxError(cli, "setquota <interface> <bytes>");
1012 sendGenericSyntaxError(cli, "setquotas <bytes> <interface> ...");
1065 sendGenericSyntaxError(cli, "setiquota <interface> <bytes>");
1096 sendGenericSyntaxError(cli, "setglobalalert <bytes>");
[all...]
/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/core/toolbox/
H A Ddd.h67 uint64_t bytes; /* # of bytes written */ member in struct:__anon448
H A Ddd.c557 st.bytes += pending;
563 st.bytes += nw;
643 * Read the data. If a pipe, read until satisfy the number of bytes
817 * bytes to output. Records less than cbs are padded with spaces.
1032 "%llu bytes transferred in %lu.%03d secs (%llu bytes/sec)\n",
1033 (unsigned long long) st.bytes,
1036 (unsigned long long) (st.bytes * 1000LL / mS));
/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/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::__anon387
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/atrace/
H A Datrace.c348 size_t bytes = bufSize - zs.avail_out; local
349 result = write(STDOUT_FILENO, out, bytes);
350 if ((size_t)result < bytes) {
/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 197 milliseconds