/external/mockftpserver/MockFtpServer/src/test/groovy/org/mockftpserver/core/util/ |
IoUtilTest.groovy | 33 final byte[] BYTES = "abc 123 %^&".getBytes()
34 InputStream input = new ByteArrayInputStream(BYTES)
35 assert IoUtil.readBytes(input) == BYTES
|
/external/ltp/testcases/network/nfs/nfslock01/ |
nfs_flock.c | 13 #define BYTES 64 36 * else with 0's. Number of charcters in any line are BYTES-1, 39 for (i = 0; i < BYTES - 1; i++) { 45 buf[BYTES - 1] = '\n'; 53 offset += 2 * BYTES; 59 offset = BYTES; 61 offset += 2 * BYTES; 66 if (writeb_lock(fd, offset, SEEK_SET, BYTES) < 0) 72 write(fd, buf, BYTES); 74 if (unb_lock(fd, offset, SEEK_SET, BYTES) < 0 [all...] |
/external/pdfium/fxbarcode/pdf417/ |
BC_PDF417Compaction.h | 11 enum Compaction { AUTO, TEXT, BYTES, NUMERIC };
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/MC/RISCV/ |
compress-rv32i.s | 7 # RUN: | FileCheck -check-prefixes=CHECK-BYTES,CHECK-ALIAS %s 10 # RUN: | FileCheck -check-prefixes=CHECK-BYTES,CHECK-INST %s 18 # RUN: | FileCheck -check-prefixes=CHECK-BYTES,CHECK-ALIAS %s 21 # RUN: | FileCheck -check-prefixes=CHECK-BYTES,CHECK-INST %s 23 # CHECK-BYTES: 2e 85 29 # CHECK-BYTES: e0 1f 35 # CHECK-BYTES: e0 5f 41 # CHECK-BYTES: e0 df 47 # CHECK-BYTES: 01 00 53 # CHECK-BYTES: 81 1 [all...] |
compress-rv64i.s | 7 # RUN: | FileCheck -check-prefixes=CHECK-BYTES,CHECK-ALIAS %s 10 # RUN: | FileCheck -check-prefixes=CHECK-BYTES,CHECK-INST %s 14 # CHECK-BYTES: e0 7f 20 # CHECK-BYTES: a0 e3 26 # CHECK-BYTES: 7d 22 32 # CHECK-BYTES: 1d 9c 38 # CHECK-BYTES: 3d 9c 44 # CHECK-BYTES: 3d 9c 50 # CHECK-BYTES: ee 70 56 # CHECK-BYTES: a2 e [all...] |
option-rvc.s | 7 # RUN: | FileCheck -check-prefixes=CHECK-BYTES,CHECK-ALIAS %s 10 # RUN: | FileCheck -check-prefixes=CHECK-BYTES,CHECK-INST %s 18 # RUN: | FileCheck -check-prefixes=CHECK-BYTES,CHECK-ALIAS %s 21 # RUN: | FileCheck -check-prefixes=CHECK-BYTES,CHECK-INST %s 23 # CHECK-BYTES: 13 85 05 00 29 # CHECK-BYTES: 13 04 c1 3f 38 # CHECK-BYTES: 2e 85 44 # CHECK-BYTES: e0 1f 52 # CHECK-BYTES: 13 85 05 00 58 # CHECK-BYTES: 13 04 c1 3 [all...] |
compress-rv32f.s | 7 # RUN: | FileCheck -check-prefixes=CHECK-BYTES,CHECK-ALIAS %s 10 # RUN: | FileCheck -check-prefixes=CHECK-BYTES,CHECK-INST %s 14 # CHECK-BYTES: 76 70 19 # CHECK-BYTES: 82 fe 24 # CHECK-BYTES: 60 7c 29 # CHECK-BYTES: 60 fc
|
compress-rv32d.s | 7 # RUN: | FileCheck -check-prefixes=CHECK-BYTES,CHECK-ALIAS %s 10 # RUN: | FileCheck -check-prefixes=CHECK-BYTES,CHECK-INST %s 18 # RUN: | FileCheck -check-prefixes=CHECK-BYTES,CHECK-ALIAS %s 21 # RUN: | FileCheck -check-prefixes=CHECK-BYTES,CHECK-INST %s 26 # CHECK-BYTES: 06 20 31 # CHECK-BYTES: 82 a0 36 # CHECK-BYTES: 60 3c 41 # CHECK-BYTES: 60 bc
|
compress-cjal.s | 7 # RUN: | FileCheck -check-prefixes=CHECK-BYTES,CHECK-ALIAS %s 10 # RUN: | FileCheck -check-prefixes=CHECK-BYTES,CHECK-INST %s 14 # CHECK-BYTES: fd 2f
|
/device/google/cuttlefish_common/common/vsoc/shm/ |
graphics.h | 32 // parse bytes per pixel without relying an a exhaustive list of pixel formats. 43 // bytes per pixel. 44 template <uint32_t BYTES, uint32_t SUB_FORMAT> 46 static_assert(BYTES > 0, "Too few bytes"); 47 static_assert(BYTES <= PixelFormatConst::MaxBytesPerPixel, "Too many bytes"); 50 static const uint32_t value = ((BYTES - 1) << PixelFormatConst::SubformatSize) | SUB_FORMAT;
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
ShadowEventLog.java | 98 /** Writes an event log message, returning an approximation of the bytes written. */ 105 return Integer.BYTES + str.length(); 108 /** Writes an event log message, returning an approximation of the bytes written. */ 116 return Integer.BYTES + list.length * Integer.BYTES; 119 /** Writes an event log message, returning an approximation of the bytes written. */ 123 return Integer.BYTES + Integer.BYTES; 126 /** Writes an event log message, returning an approximation of the bytes written. */ 130 return Integer.BYTES + Float.BYTES [all...] |
/external/protobuf/java/core/src/test/java/com/google/protobuf/ |
NioByteStringTest.java | 58 private static final byte[] BYTES = ByteStringTest.getTestBytes(1234, 11337766L); 59 private static final int EXPECTED_HASH = ByteString.wrap(BYTES).hashCode(); 61 private final ByteBuffer backingBuffer = ByteBuffer.wrap(BYTES.clone()); 77 for (int i = 0; stillEqual && i < BYTES.length; ++i) { 78 stillEqual = (BYTES[i] == testString.byteAt(i)); 80 assertTrue(CLASSNAME + " must capture the right bytes", stillEqual); 86 for (int i = 0; stillEqual && i < BYTES.length; ++i) { 87 stillEqual = (iter.hasNext() && BYTES[i] == iter.nextByte()); 89 assertTrue(CLASSNAME + " must capture the right bytes", stillEqual); 104 stillEqual = (BYTES[j] == quantum) [all...] |
/external/guava/guava/src/com/google/common/hash/ |
AbstractByteHasher.java | 31 * Abstract {@link Hasher} that handles converting primitives to bytes using a scratch {@code 32 * ByteBuffer} and streams all bytes to a sink to compute the hash. 46 * Updates this hasher with the given bytes. 53 * Updates this hasher with {@code len} bytes starting at {@code off} in the given buffer. 68 public Hasher putBytes(byte[] bytes) { 69 checkNotNull(bytes); 70 update(bytes); 75 public Hasher putBytes(byte[] bytes, int off, int len) { 76 checkPositionIndexes(off, off + len, bytes.length); 77 update(bytes, off, len) 86 update(scratch.array(), 0, bytes); local [all...] |
Murmur3_32HashFunction.java | 88 return fmix(h1, Ints.BYTES); 101 return fmix(h1, Longs.BYTES); 122 return fmix(h1, Chars.BYTES * input.length());
|
/external/libchrome/mojo/public/cpp/base/ |
big_buffer_mojom_traits.cc | 46 return mojo_base::mojom::BigBufferDataView::Tag::BYTES; 52 return mojo_base::mojom::BigBufferDataView::Tag::BYTES; 57 UnionTraits<mojo_base::mojom::BigBufferDataView, mojo_base::BigBuffer>::bytes( function in class:mojo::UnionTraits 59 return buffer.bytes(); 73 case mojo_base::mojom::BigBufferDataView::Tag::BYTES: { 98 return mojo_base::mojom::BigBufferDataView::Tag::BYTES; 104 return mojo_base::mojom::BigBufferDataView::Tag::BYTES; 110 mojo_base::BigBufferView>::bytes(const mojo_base::BigBufferView& view) { function in class:mojo::UnionTraits 111 return view.bytes(); 127 case mojo_base::mojom::BigBufferDataView::Tag::BYTES: [all...] |
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
ShadowEventLogTest.java | 120 int bytes = EventLog.writeEvent(TEST_TAG, TEST_STRING1); local 121 assertThat(bytes).isEqualTo(Integer.BYTES + TEST_STRING1.length()); 132 int bytes = EventLog.writeEvent(TEST_TAG, (String) null); local 133 assertThat(bytes).isEqualTo(Integer.BYTES + NULL_PLACE_HOLDER.length()); 144 int bytes = EventLog.writeEvent(TEST_TAG, TEST_INT); local 145 assertThat(bytes).isEqualTo(Integer.BYTES + Integer.BYTES); 157 int bytes = EventLog.writeEvent(TEST_TAG, TEST_STRING1, TEST_STRING2); local 172 int bytes = EventLog.writeEvent(TEST_TAG, (Object[]) null); local 185 int bytes = EventLog.writeEvent(TEST_TAG, TEST_FLOAT); local 197 int bytes = EventLog.writeEvent(TEST_TAG, TEST_LONG); local [all...] |
/external/protobuf/js/binary/ |
proto_test.js | 93 var BYTES = new Uint8Array([1, 2, 8, 9]); 95 var BYTES_B64 = goog.crypt.base64.encodeByteArray(BYTES); 119 msg.setOptionalBytes(BYTES); 143 msg.setRepeatedBytesList([BYTES, BYTES]); 169 * Helper: compare a bytes field to an expected value 213 assertEquals(true, bytesCompare(copy.getOptionalBytes(), BYTES)); 214 assertEquals(true, bytesCompare(copy.getOptionalBytes_asU8(), BYTES)); 216 copy.getOptionalBytes_asB64(), goog.crypt.base64.encodeByteArray(BYTES)); 243 assertEquals(true, bytesCompare(copy.getRepeatedBytesList_asU8()[0], BYTES)); [all...] |
/external/python/cpython2/Modules/_ctypes/libffi_msvc/ |
ffi.c | 108 /* On Win64, if a single argument takes more than 8 bytes, 122 if (argp >= stack && (unsigned)(argp - stack) > ecif->cif->bytes) 146 otherwise, put the 4- or 8-bytes integer type. */ 218 return ffi_call_x86(ffi_prep_args, &ecif, cif->bytes, 226 /* If a single argument takes more than 8 bytes, 238 return ffi_call_AMD64(ffi_prep_args, &ecif, cif->bytes, 396 /* On Win64, if a single argument takes more than 8 bytes, 423 short bytes; local 431 bytes = 0; 434 bytes = cif->bytes [all...] |
/external/python/cpython3/Modules/_ctypes/libffi_msvc/ |
ffi.c | 127 /* On Win64, if a single argument takes more than 8 bytes, 141 if (argp >= stack && (unsigned)(argp - stack) > ecif->cif->bytes) 180 otherwise, put the 4- or 8-bytes integer type. */ 252 return ffi_call_x86(ffi_prep_args, &ecif, cif->bytes, 257 /* If a single argument takes more than 8 bytes, 268 return ffi_call_AMD64(ffi_prep_args, &ecif, cif->bytes, 426 /* On Win64, if a single argument takes more than 8 bytes, 453 short bytes; local 461 bytes = 0; 464 bytes = cif->bytes [all...] |
/art/test/712-varhandle-invocations/src/ |
SampleValues.java | 27 public static final Byte[] BYTES = 79 return BYTES[index];
|
/external/protobuf/js/ |
proto3_test.js | 42 var BYTES = new Uint8Array([1, 2, 8, 9]); 43 var BYTES_B64 = goog.crypt.base64.encodeByteArray(BYTES); 47 * Helper: compare a bytes field to an expected value 89 // TODO(b/26173701): when we change bytes fields default getter to return 143 msg.setOptionalBytes(BYTES); 163 msg.setRepeatedBytesList([BYTES]); 188 assertEquals(true, bytesCompare(msg.getOptionalBytes(), BYTES)); 208 assertEquals(true, bytesCompare(msg.getRepeatedBytesList()[0], BYTES)); 290 * Test that base64 string and Uint8Array are interchangeable in bytes fields. 296 assertTrue(bytesCompare(msg.getOptionalBytes_asU8(), BYTES)); [all...] |
/external/grpc-grpc/src/core/tsi/alts/handshaker/ |
handshaker.pb.c | 47 PB_FIELD( 3, BYTES , OPTIONAL, CALLBACK, OTHER, grpc_gcp_StartServerHandshakeReq, in_bytes, handshake_parameters, 0), 61 PB_FIELD( 1, BYTES , OPTIONAL, CALLBACK, FIRST, grpc_gcp_NextHandshakeMessageReq, in_bytes, in_bytes, 0), 75 PB_FIELD( 3, BYTES , OPTIONAL, CALLBACK, OTHER, grpc_gcp_HandshakerResult, key_data, record_protocol, 0), 90 PB_FIELD( 1, BYTES , OPTIONAL, CALLBACK, FIRST, grpc_gcp_HandshakerResp, out_frames, out_frames, 0),
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/ |
TrieMapTest.java | 119 byte bytes[] = new byte[200]; 122 int limit = TrieMap.ByteConverter.getBytes(source, bytes, 0); 123 //logln(source + "\t=> " + Utility.hex(source, " ") + "\t=> " + Utility.hex(bytes, 0, limit, " ")); 124 String recovered = TrieMap.ByteConverter.getChars(bytes, 0, limit); 134 checkGet(unicodeTestMap, TrieMap.Style.BYTES); 162 timeIteration(unicodeTestMap, comparisonTime, Style.BYTES, 5); 216 checkContents(unicodeTestMap, Style.BYTES); 254 checkSearch(Style.BYTES); 292 // logln(bytes + "\tValue <" + value + "> at " 305 timeBuilding(unicodeTestMap, comparisonTime, Style.BYTES, Option.SMALL, 20) [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
TrieMapTest.java | 116 byte bytes[] = new byte[200]; 119 int limit = TrieMap.ByteConverter.getBytes(source, bytes, 0); 120 //logln(source + "\t=> " + Utility.hex(source, " ") + "\t=> " + Utility.hex(bytes, 0, limit, " ")); 121 String recovered = TrieMap.ByteConverter.getChars(bytes, 0, limit); 131 checkGet(unicodeTestMap, TrieMap.Style.BYTES); 159 timeIteration(unicodeTestMap, comparisonTime, Style.BYTES, 5); 213 checkContents(unicodeTestMap, Style.BYTES); 251 checkSearch(Style.BYTES); 289 // logln(bytes + "\tValue <" + value + "> at " 302 timeBuilding(unicodeTestMap, comparisonTime, Style.BYTES, Option.SMALL, 20) [all...] |
/external/protobuf/java/core/src/main/java/com/google/protobuf/ |
WireFormat.java | 133 BYTES (JavaType.BYTE_STRING, WIRETYPE_LENGTH_DELIMITED) { 176 * contain non-UTF8 bytes. 179 /** Eagerly parses to String; silently accepts invalid UTF8 bytes. */ 186 /** Eagerly parses to String; throws an IOException on invalid bytes. */ 232 case BYTES : return input.readBytes ();
|