/system/netd/ |
H A D | BandwidthController.h | 52 int setInterfaceSharedQuota(const char *iface, int64_t bytes); 53 int getInterfaceSharedQuota(int64_t *bytes); 56 int setInterfaceQuota(const char *iface, int64_t bytes); 57 int getInterfaceQuota(const char *iface, int64_t *bytes); 63 int setGlobalAlert(int64_t bytes); 68 int setSharedAlert(int64_t bytes); 71 int setInterfaceAlert(const char *iface, int64_t bytes); 105 int runIptablesAlertCmd(IptOp op, const char *alertName, int64_t bytes); 106 int runIptablesAlertFwdCmd(IptOp op, const char *alertName, int64_t bytes); 117 int updateQuota(const char *alertName, int64_t bytes); [all...] |
H A D | BandwidthController.cpp | 449 LOGE("Invalid bytes value. 1..max_int64."); 553 LOGE("Invalid bytes value. 1..max_int64."); 605 int BandwidthController::getInterfaceSharedQuota(int64_t *bytes) { argument 606 return getInterfaceQuota("shared", bytes); 609 int BandwidthController::getInterfaceQuota(const char *costName, int64_t *bytes) { argument 621 scanRes = fscanf(fp, "%lld", bytes); 622 LOGV("Read quota res=%d bytes=%lld", scanRes, *bytes); 660 int BandwidthController::updateQuota(const char *quotaName, int64_t bytes) { argument 671 fprintf(fp, "%lld\n", bytes); 676 runIptablesAlertCmd(IptOp op, const char *alertName, int64_t bytes) argument 708 runIptablesAlertFwdCmd(IptOp op, const char *alertName, int64_t bytes) argument 735 setGlobalAlert(int64_t bytes) argument 818 setSharedAlert(int64_t bytes) argument 834 setInterfaceAlert(const char *iface, int64_t bytes) argument 870 setCostlyAlert(const char *costName, int64_t bytes, int64_t *alertBytes) argument 936 int64_t packets, bytes; local [all...] |
H A D | CommandListener.cpp | 942 int64_t bytes; local 947 int rc = sBandwidthCtrl->getInterfaceSharedQuota(&bytes); 954 asprintf(&msg, "%lld", bytes); 961 int64_t bytes; local 967 int rc = sBandwidthCtrl->getInterfaceQuota(argv[2], &bytes); 973 asprintf(&msg, "%lld", bytes); 981 sendGenericSyntaxError(cli, "setquota <interface> <bytes>"); 991 sendGenericSyntaxError(cli, "setquotas <bytes> <interface> ..."); 1044 sendGenericSyntaxError(cli, "setiquota <interface> <bytes>"); 1075 sendGenericSyntaxError(cli, "setglobalalert <bytes>"); [all...] |
/system/media/mca/filterfw/java/android/filterfw/core/ |
H A D | VertexFrame.java | 90 byte[] bytes = buffer.array(); 91 if (getFormat().getSize() != bytes.length) { 93 } else if (!setNativeData(bytes, offset, length)) {
|
H A D | Frame.java | 112 public void setData(byte[] bytes, int offset, int length) { argument 113 setData(ByteBuffer.wrap(bytes, offset, length));
|
H A D | NativeFrame.java | 149 byte[] bytes = buffer.array(); 152 (length + offset) + " bytes given, but only " + buffer.limit() + 153 " bytes available!"); 156 "Frame size is " + getFormat().getSize() + " bytes, but " + 157 length + " bytes given!"); 158 } else if (!setNativeData(bytes, offset, length)) {
|
H A D | GLFrame.java | 84 throw new IllegalArgumentException("GL frames must have 4 bytes per sample!"); 210 byte[] bytes = buffer.array(); 211 if (getFormat().getSize() != bytes.length) { 213 } else if (!setNativeData(bytes, offset, length)) {
|
/system/media/mca/filterfw/jni/ |
H A D | jni_vertex_frame.cpp | 76 jbyte* bytes = env->GetByteArrayElements(data, NULL); local 77 if (bytes) { 78 const bool success = frame->WriteData(reinterpret_cast<const uint8_t*>(bytes + offset), 80 env->ReleaseByteArrayElements(data, bytes, JNI_ABORT);
|
H A D | jni_native_frame.cpp | 60 jbyte* bytes = env->GetByteArrayElements(data, NULL); local 61 if (bytes) { 62 const bool success = frame->WriteData(reinterpret_cast<const uint8_t*>(bytes + offset), 65 env->ReleaseByteArrayElements(data, bytes, JNI_ABORT); 207 LOGE("Unsupported bytes-per-pixel %d in setBitmap!", bytes_per_sample); 259 LOGE("Unsupported bytes-per-pixel %d in getBitmap!", bytes_per_sample);
|
H A D | jni_gl_frame.cpp | 119 jbyte* bytes = env->GetByteArrayElements(data, NULL); local 120 if (bytes) { 121 const bool success = frame->WriteData(reinterpret_cast<const uint8_t*>(bytes + offset), length); 122 env->ReleaseByteArrayElements(data, bytes, JNI_ABORT);
|
/system/extras/tests/framebuffer/ |
H A D | mdp_test.c | 233 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 D | dd.h | 67 uint64_t bytes; /* # of bytes written */ member in struct:__anon441
|
H A D | dd.c | 557 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 D | micro_bench.c | 77 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 D | mq.c | 55 /** 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::__anon374 460 /** Writes packet bytes to peer. */ 462 Buffer* buffer = peerProxy->currentPacket->bytes; 580 /** Prepare to read bytes from the peer. */ 582 LOGD("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 D | arith_lex.c | 188 /* 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...] |