HomeSort by relevance Sort by last modified time
    Searched refs:BYTES (Results 1 - 25 of 82) sorted by null

1 2 3 4

  /frameworks/base/core/tests/coretests/src/android/util/
Base64Test.java 57 /** Assert that actual equals the first len bytes of expected. */
65 /** Assert that actual equals the first len bytes of expected. */
73 /** Assert that actual equals the first len bytes of expected. */
123 private static final byte[] BYTES = { (byte) 0xff, (byte) 0xee, (byte) 0xdd,
128 assertEquals(BYTES, 0, Base64.decode("", 0));
129 assertEquals(BYTES, 1, Base64.decode("/w==", 0));
130 assertEquals(BYTES, 2, Base64.decode("/+4=", 0));
131 assertEquals(BYTES, 3, Base64.decode("/+7d", 0));
132 assertEquals(BYTES, 4, Base64.decode("/+7dzA==", 0));
133 assertEquals(BYTES, 5, Base64.decode("/+7dzLs=", 0))
    [all...]
  /external/guava/guava-tests/test/com/google/common/io/
ByteStreamsTest.java 25 import com.google.common.primitives.Bytes;
455 byte[] bytes = newPreFilledByteArray(100);
456 skipHelper(0, 0, new ByteArrayInputStream(bytes));
457 skipHelper(50, 50, new ByteArrayInputStream(bytes));
458 skipHelper(50, 50, new SlowSkipper(new ByteArrayInputStream(bytes), 1));
459 skipHelper(50, 50, new SlowSkipper(new ByteArrayInputStream(bytes), 0));
460 skipHelper(100, -1, new ByteArrayInputStream(bytes));
462 skipHelper(101, 0, new ByteArrayInputStream(bytes));
476 private static final byte[] BYTES = new byte[] {
490 ByteArrayDataInput in = ByteStreams.newDataInput(BYTES);
    [all...]
  /external/guava/guava/src/com/google/common/hash/
MessageDigestHashFunction.java 78 @Override public Hasher putBytes(byte[] bytes) {
80 digest.update(bytes);
84 @Override public Hasher putBytes(byte[] bytes, int off, int len) {
86 checkPositionIndexes(off, off + len, bytes.length);
87 digest.update(bytes, off, len);
94 digest.update(scratch.array(), 0, Shorts.BYTES);
102 digest.update(scratch.array(), 0, Ints.BYTES);
110 digest.update(scratch.array(), 0, Longs.BYTES);
138 digest.update(scratch.array(), 0, Chars.BYTES);
  /external/oprofile/libop/
op_xml_out.h 43 BYTES_TABLE, BYTES,
  /external/nanopb-c/tests/backwards_compatibility/
alltypes_legacy.c 53 PB_FIELD( 15, BYTES , REQUIRED, STATIC, AllTypes, req_bytes, req_string, 0),
70 PB_FIELD( 35, BYTES , REPEATED, STATIC, AllTypes, rep_bytes, rep_string, 0),
87 PB_FIELD( 55, BYTES , OPTIONAL, STATIC, AllTypes, opt_bytes, opt_string, &AllTypes_opt_bytes_default),
  /external/guava/guava/src/com/google/common/primitives/
Chars.java 51 * The number of bytes required to represent a primitive {@code char}
54 public static final int BYTES = Character.SIZE / Byte.SIZE;
289 * stored in the first 2 bytes of {@code bytes}; equivalent to {@code
290 * ByteBuffer.wrap(bytes).getChar()}. For example, the input byte array
296 * @throws IllegalArgumentException if {@code bytes} has fewer than 2
300 public static char fromByteArray(byte[] bytes) {
301 checkArgument(bytes.length >= BYTES,
302 "array too small: %s < %s", bytes.length, BYTES)
    [all...]
Ints.java 51 * The number of bytes required to represent a primitive {@code int}
54 public static final int BYTES = Integer.SIZE / Byte.SIZE;
298 * the first 4 bytes of {@code bytes}; equivalent to {@code
299 * ByteBuffer.wrap(bytes).getInt()}. For example, the input byte array {@code
306 * @throws IllegalArgumentException if {@code bytes} has fewer than 4 elements
309 public static int fromByteArray(byte[] bytes) {
310 checkArgument(bytes.length >= BYTES,
311 "array too small: %s < %s", bytes.length, BYTES)
    [all...]
Longs.java 48 * The number of bytes required to represent a primitive {@code long}
51 public static final int BYTES = Long.SIZE / Byte.SIZE;
272 * stored in the first 8 bytes of {@code bytes}; equivalent to {@code
273 * ByteBuffer.wrap(bytes).getLong()}. For example, the input byte array
280 * @throws IllegalArgumentException if {@code bytes} has fewer than 8
284 public static long fromByteArray(byte[] bytes) {
285 checkArgument(bytes.length >= BYTES,
286 "array too small: %s < %s", bytes.length, BYTES)
    [all...]
Shorts.java 48 * The number of bytes required to represent a primitive {@code short}
51 public static final int BYTES = Short.SIZE / Byte.SIZE;
295 * stored in the first 2 bytes of {@code bytes}; equivalent to {@code
296 * ByteBuffer.wrap(bytes).getShort()}. For example, the input byte array
302 * @throws IllegalArgumentException if {@code bytes} has fewer than 2
306 public static short fromByteArray(byte[] bytes) {
307 checkArgument(bytes.length >= BYTES,
308 "array too small: %s < %s", bytes.length, BYTES)
    [all...]
Doubles.java 49 * The number of bytes required to represent a primitive {@code double}
54 public static final int BYTES = Double.SIZE / Byte.SIZE;
Floats.java 49 * The number of bytes required to represent a primitive {@code float}
54 public static final int BYTES = Float.SIZE / Byte.SIZE;
  /external/chromium_org/third_party/mesa/src/src/mesa/main/
imports.h 52 /** Allocate \p BYTES bytes */
53 #define MALLOC(BYTES) malloc(BYTES)
54 /** Allocate and zero \p BYTES bytes */
55 #define CALLOC(BYTES) calloc(1, BYTES)
71 * Both pointers/offsets are expressed in bytes.
542 _mesa_align_malloc( size_t bytes, unsigned long alignment )
    [all...]
  /external/chromium_org/third_party/protobuf/java/src/main/java/com/google/protobuf/
WireFormat.java 125 BYTES (JavaType.BYTE_STRING, WIRETYPE_LENGTH_DELIMITED) {
FieldSet.java 550 case BYTES : return input.readBytes ();
666 case BYTES : output.writeBytesNoTag ((ByteString ) value); break;
766 * Compute the number of bytes that would be needed to encode a
787 * Compute the number of bytes that would be needed to encode a
811 case BYTES : return CodedOutputStream.computeBytesSizeNoTag ((ByteString )value);
835 * Compute the number of bytes needed to encode a particular field.
  /external/mesa3d/src/mesa/main/
imports.h 52 /** Allocate \p BYTES bytes */
53 #define MALLOC(BYTES) malloc(BYTES)
54 /** Allocate and zero \p BYTES bytes */
55 #define CALLOC(BYTES) calloc(1, BYTES)
71 * Both pointers/offsets are expressed in bytes.
540 _mesa_align_malloc( size_t bytes, unsigned long alignment )
    [all...]
  /external/protobuf/java/src/main/java/com/google/protobuf/
WireFormat.java 125 BYTES (JavaType.BYTE_STRING, WIRETYPE_LENGTH_DELIMITED) {
FieldSet.java 444 case BYTES : return input.readBytes ();
546 case BYTES : output.writeBytesNoTag ((ByteString ) value); break;
623 * Compute the number of bytes that would be needed to encode a
644 * Compute the number of bytes that would be needed to encode a
669 case BYTES : return CodedOutputStream.computeBytesSizeNoTag ((ByteString )value);
686 * Compute the number of bytes needed to encode a particular field.
  /external/guava/guava-tests/test/com/google/common/primitives/
IntsTest.java 236 Ints.fromByteArray(new byte[Ints.BYTES - 1]);
253 byte[] b = new byte[Ints.BYTES];
LongsTest.java 213 Longs.fromByteArray(new byte[Longs.BYTES - 1]);
232 byte[] b = new byte[Longs.BYTES];
  /external/protobuf/src/google/protobuf/
extension_set_heavy.cc 390 HANDLE_TYPE( BYTES, Bytes, string);
419 HANDLE_TYPE( BYTES, Bytes, *string_value);
  /external/guava/guava-gwt/src-super/com/google/common/primitives/super/com/google/common/primitives/
Chars.java 49 * The number of bytes required to represent a primitive {@code char}
52 public static final int BYTES = Character.SIZE / Byte.SIZE;
Ints.java 46 * The number of bytes required to represent a primitive {@code int}
49 public static final int BYTES = Integer.SIZE / Byte.SIZE;
Longs.java 46 * The number of bytes required to represent a primitive {@code long}
49 public static final int BYTES = Long.SIZE / Byte.SIZE;
Shorts.java 46 * The number of bytes required to represent a primitive {@code short}
49 public static final int BYTES = Short.SIZE / Byte.SIZE;
  /external/chromium_org/third_party/protobuf/src/google/protobuf/
extension_set.cc     [all...]

Completed in 672 milliseconds

1 2 3 4