| /frameworks/base/media/jni/ |
| android_media_MediaMetadataRetriever.cpp | 245 LOGV("Dimension = %dx%d and bytes = %d", 335 jbyte* bytes = env->GetByteArrayElements(array, NULL); local 336 if (bytes != NULL) { 337 memcpy(bytes, data, len); 338 env->ReleaseByteArrayElements(array, bytes, 0);
|
| android_media_MediaScanner.cpp | 295 jbyte* bytes = env->GetByteArrayElements(array, NULL); local 296 memcpy(bytes, data + 4, len); 297 env->ReleaseByteArrayElements(array, bytes, 0);
|
| /hardware/msm7k/liblights/ |
| lights.c | 110 int bytes = sprintf(buffer, "%d\n", value); local 111 int amt = write(fd, buffer, bytes);
|
| /hardware/ril/mock-ril/src/cpp/ |
| ctrl_server.cpp | 78 uint8_t *bytes = (uint8_t *)data; local 82 ret_value = send(s, bytes, length, 0); 89 bytes += ret_value; 98 uint8_t *bytes = (uint8_t *)data; local 102 ret_value = recv(s, bytes, length, 0); 109 bytes += ret_value;
|
| /packages/apps/Browser/tests/src/com/android/browser/ |
| WebStorageSizeManagerUnitTests.java | 77 private long bytes(double megabytes) { method in class:WebStorageSizeManagerUnitTests 88 mDiskInfo.setTotalSizeBytes(bytes(75)); 89 mDiskInfo.setFreeSpaceSizeBytes(bytes(24)); 97 long origin1EstimatedSize = bytes(3.5); 105 long origin2EstimatedSize = bytes(2.5); 128 long origin3EstimatedSize = bytes(5); 146 manager.onExceededDatabaseQuota("4", "4", 0, bytes(1), totalUsedQuota, mQuotaUpdater); 150 mAppCacheInfo.setAppCacheSizeBytes(bytes(2)); 152 manager.onReachedMaxAppCacheSize(bytes(2), totalUsedQuota, mQuotaUpdater); 160 manager.onReachedMaxAppCacheSize(bytes(1.5), totalUsedQuota, mQuotaUpdater) [all...] |
| /packages/apps/Email/emailcommon/src/org/apache/commons/io/ |
| FileSystemUtils.java | 114 * bytes on Windows, 512 byte units on OS X and kilobytes on Unix.
228 // non-empty line (the free space bytes should be in the last element
248 * @return the number of bytes
255 // numeric character inclusive is our free space bytes count
263 // the free space bytes count
273 // beginning of the free space bytes count
285 // remove commas and dots in the bytes count
355 * Parses the bytes from a string.
359 * @return the number of bytes
364 long bytes = Long.parseLong(freeSpace); local [all...] |
| /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/ |
| JavaNetHttpHelper.java | 162 int bytes; local 163 while ((bytes = reader.read(chars)) != -1) { 164 string.append(chars, 0, bytes);
|
| /system/core/toolbox/ |
| dd.h | 67 uint64_t bytes; /* # of bytes written */ member in struct:__anon25853
|
| /bionic/libc/bionic/ |
| malloc_debug_leak.c | 336 size_t offset, bytes; local 340 /* first check the bytes in the sentinel header */ 346 "corrupted %d bytes before allocation", 355 bytes = *(size_t *)(buffer + offset); 357 buf = (char*)mem + bytes; 362 "corrupted %d bytes after allocation", 363 func, buffer, bytes, i+1); 368 *allocated = bytes; 373 void* chk_malloc(size_t bytes) 375 char* buffer = (char*)dlmalloc(bytes + CHK_OVERHEAD_SIZE) 465 size_t bytes = dlmalloc_usable_size(mem); local [all...] |
| /cts/apps/CtsVerifier/src/com/android/cts/verifier/audioquality/ |
| Utils.java | 127 * Convert a sub-array from bytes to shorts. 129 * @param data array of bytes to be converted 131 * @param len number of bytes to convert (should be even) 148 * @param data array of bytes to be converted 164 * to an array of bytes. 167 * @return an array of twice the length, broken out into bytes 216 int bytes = 0; local 341 Log.i(TAG, "Playing " + data.length + " bytes of pre-recorded audio"); 350 * The equivalent of a simplified StringBuilder, but for bytes.
|
| /dalvik/dexgen/src/com/android/dexgen/util/ |
| ByteArrayAnnotatedOutput.java | 60 * {@code >= 8 (if used);} the number of bytes of hex output to use 109 * may be larger than the number of bytes written 122 * bytes at the end). 263 public void write(ByteArray bytes) { 264 int blen = bytes.size(); 275 bytes.getBytes(data, writeAt); 280 public void write(byte[] bytes, int offset, int length) { 286 if (((offset | length | end) < 0) || (bytesEnd > bytes.length)) { 287 throw new IndexOutOfBoundsException("bytes.length " + 288 bytes.length + "; " [all...] |
| /dalvik/dx/src/com/android/dx/cf/direct/ |
| DirectClassFile.java | 82 /** {@code non-null;} the bytes of the file */ 83 private final ByteArray bytes; field in class:DirectClassFile 168 * @param bytes {@code non-null;} the bytes of the file 176 public DirectClassFile(ByteArray bytes, String filePath, 178 if (bytes == null) { 179 throw new NullPointerException("bytes == null"); 187 this.bytes = bytes; 195 * @param bytes {@code non-null;} the bytes of the fil 564 private final ByteArray bytes; field in class:DirectClassFile.DcfTypeList [all...] |
| StdAttributeFactory.java | 217 ByteArray bytes = cf.getBytes(); local 219 int maxStack = bytes.getUnsignedShort(offset); // u2 max_stack 220 int maxLocals = bytes.getUnsignedShort(offset + 2); // u2 max_locals 221 int codeLength = bytes.getInt(offset + 4); // u4 code_length 225 observer.parsed(bytes, offset, 2, 227 observer.parsed(bytes, offset + 2, 2, 229 observer.parsed(bytes, offset + 4, 4, 244 new BytecodeArray(bytes.slice(codeOffset, codeOffset + codeLength), 251 int exceptionTableLength = bytes.getUnsignedShort(offset); 257 observer.parsed(bytes, offset, 2 321 ByteArray bytes = cf.getBytes(); local 355 ByteArray bytes = cf.getBytes(); local 384 ByteArray bytes = cf.getBytes(); local 412 ByteArray bytes = cf.getBytes(); local 469 ByteArray bytes = cf.getBytes(); local 510 ByteArray bytes = cf.getBytes(); local 533 ByteArray bytes = cf.getBytes(); local 682 ByteArray bytes = cf.getBytes(); local 704 ByteArray bytes = cf.getBytes(); local [all...] |
| /dalvik/dx/src/com/android/dx/command/dump/ |
| BlockDumper.java | 75 * @param bytes {@code non-null;} bytes of the (alleged) class file 82 public static void dump(byte[] bytes, PrintStream out, 84 BlockDumper bd = new BlockDumper(bytes, out, filePath, 93 BlockDumper(byte[] bytes, PrintStream out, String filePath, 95 super(bytes, out, filePath, args); 108 byte[] bytes = getBytes(); 109 ByteArray ba = new ByteArray(bytes); 137 public void parsed(ByteArray bytes, int offset, int len, String human) { 139 super.parsed(bytes, offset, len, human) 213 ByteArray bytes = code.getBytes(); local 289 ByteArray bytes = code.getBytes(); local [all...] |
| /dalvik/dx/src/com/android/dx/util/ |
| ByteArrayAnnotatedOutput.java | 60 * {@code >= 8 (if used);} the number of bytes of hex output to use 118 * may be larger than the number of bytes written 131 * bytes at the end). 256 public void write(ByteArray bytes) { 257 int blen = bytes.size(); 268 bytes.getBytes(data, writeAt); 273 public void write(byte[] bytes, int offset, int length) { 279 if (((offset | length | end) < 0) || (bytesEnd > bytes.length)) { 280 throw new IndexOutOfBoundsException("bytes.length " + 281 bytes.length + "; " [all...] |
| /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/ |
| FileOutputStreamTest.java | 43 byte[] bytes; field in class:FileOutputStreamTest 177 assertTrue("Incorrect bytes written", new String(rbytes, 0, fileString 269 fos.write(bytes); 282 fos.write(bytes); 284 fos.write(bytes); 286 fos.write(bytes); 303 fos.write(bytes); 305 fos.write(bytes); 307 fos.write(bytes); 324 fos.write(bytes); [all...] |
| /external/bison/lib/ |
| quotearg.c | 359 be the first bytes of multibyte characters, which means 429 size_t bytes = mbrtowc (&w, &arg[i + m], local 431 if (bytes == 0) 433 else if (bytes == (size_t) -1) 438 else if (bytes == (size_t) -2) 454 for (j = 1; j < bytes; j++) 468 m += bytes;
|
| /external/blktrace/btreplay/ |
| btrecord.c | 66 * @bytes: Number of bytes transferred 72 __u32 bytes; member in struct:io_spec 275 .nbytes = spec->bytes, 514 spec->bytes = t.bytes; 521 spec->bytes = be32_to_cpu(t.bytes); 550 (long long unsigned)spec->bytes / 512LLU,
|
| /external/bluetooth/glib/gio/ |
| gdatainputstream.c | 955 gssize bytes; local 962 bytes = g_input_stream_read (G_INPUT_STREAM (data->stream), 964 g_assert_cmpint (bytes, ==, read_length); 966 bytes = g_input_stream_skip (G_INPUT_STREAM (data->stream), 968 g_assert_cmpint (bytes, ==, skip_length); 993 gssize bytes; local 995 bytes = g_buffered_input_stream_fill_finish (buffer, result, &error); 997 if (bytes <= 0) 999 if (bytes < 0) 1011 /* only proceed if we got more bytes... * [all...] |
| /external/chromium/base/ |
| string_util_unittest.cc | 365 EXPECT_FALSE(IsStringUTF8("\xf8\xa0\xbf\x80\xbf")); // 5 bytes 366 EXPECT_FALSE(IsStringUTF8("\xfc\x9c\xbf\x80\xbf\x80")); // 6 bytes 495 int64 bytes; member in struct:base::__anon2282 510 EXPECT_EQ(cases[i].expected, GetByteDisplayUnits(cases[i].bytes)); 515 int64 bytes; member in struct:base::__anon2283 522 // sense (zero or bytes). 524 // the display of file sizes or bytes consistently around three 553 FormatBytes(cases[i].bytes, cases[i].units, false)); 555 FormatBytes(cases[i].bytes, cases[i].units, true)); [all...] |
| /external/chromium/net/spdy/ |
| spdy_framer_test.cc | 611 const char bytes[] = "this is a test test test test test!"; local 613 send_framer.CreateDataFrame(1, bytes, arraysize(bytes), 625 send_framer.CreateDataFrame(3, bytes, arraysize(bytes), 651 EXPECT_EQ(arraysize(bytes), data_frame->length()); 652 EXPECT_EQ(0, memcmp(data_frame->payload(), bytes, data_frame->length())); 672 EXPECT_EQ(arraysize(bytes), data_frame->length()); 673 EXPECT_EQ(0, memcmp(data_frame->payload(), bytes, data_frame->length())); 701 const char bytes[] = "this is a test test test test test!" local [all...] |
| /external/dbus/dbus/ |
| dbus-sysdeps-util-unix.c | 252 int bytes; local 271 bytes = _dbus_string_get_length (&pid); 272 if (_dbus_pipe_write (print_pid_pipe, &pid, 0, bytes, error) != bytes) 278 "Printing message bus PID: did not write enough bytes\n");
|
| dbus-sysdeps-util-win.c | 192 int bytes; local 210 bytes = _dbus_string_get_length (&pid); 211 if (_dbus_pipe_write (print_pid_pipe, &pid, 0, bytes, error) != bytes) 217 "Printing message bus PID: did not write enough bytes\n"); [all...] |
| dbus-transport.c | 1022 _dbus_verbose (" %d unused bytes sent to message loader\n", 1037 const DBusString *bytes; local 1048 &bytes); 1051 if (!_dbus_string_copy (bytes, 0, buffer, _dbus_string_get_length (buffer))) 1054 _dbus_verbose (" %d unused bytes sent to message loader\n", 1072 _dbus_verbose ("Not enough memory to transfer unused bytes from auth conversation\n"); [all...] |
| /external/dropbear/ |
| keyimport.c | 226 * bytes used out of the source data. 285 * number of bytes consumed. Assumes dest contains enough space. 303 * Identifier is multiple bytes: the first byte is 11111 304 * plus the flags, and subsequent bytes encode the value of 311 continue; /* count the bytes */ 327 * Length is multiple bytes. The first is 0x80 plus the 328 * number of subsequent bytes, and the subsequent bytes 332 continue; /* count the bytes */ 346 struct mpint_pos { void *start; int bytes; }; member in struct:mpint_pos [all...] |