Home
last modified time | relevance | path

Searched refs:bytes (Results 1 – 16 of 16) sorted by relevance

/cts/tools/cfassembler/src/dxconvext/
DClassFileAssembler.java128 private void calcSignature(byte[] bytes) { in calcSignature() argument
137 md.update(bytes, 32, bytes.length - 32); in calcSignature()
140 int amt = md.digest(bytes, 12, 20); in calcSignature()
158 private void calcChecksum(byte[] bytes) { in calcChecksum() argument
161 a32.update(bytes, 12, bytes.length - 12); in calcChecksum()
165 bytes[8] = (byte) sum; in calcChecksum()
166 bytes[9] = (byte) (sum >> 8); in calcChecksum()
167 bytes[10] = (byte) (sum >> 16); in calcChecksum()
168 bytes[11] = (byte) (sum >> 24); in calcChecksum()
DClassFileParser.java79 byte[] bytes = FileUtils.readFile(inFile); in process()
91 ClassFileParser.this.processFileBytes(w, cfName, bytes); in process()
132 public void startParsingMember(ByteArray bytes, int offset, in processFileBytes()
136 + offset + ", len:" + (bytes.size() - offset) in processFileBytes()
152 public void endParsingMember(ByteArray bytes, int offset, in processFileBytes()
154 ByteArray ba = bytes.slice(offset, bytes.size()); in processFileBytes()
170 public void parsed(ByteArray bytes, int offset, int len, in processFileBytes()
176 ByteArray ba = bytes.slice(offset, offset + len); in processFileBytes()
/cts/tests/tests/content/src/android/content/res/cts/
DAssetManager_AssetInputStreamTest.java52 final byte[] bytes = CONTENT_STRING.getBytes(); in testMarkReset()
54 assertEquals(bytes[i], mAssetInputStream.read()); in testMarkReset()
59 assertEquals(bytes[i + readlimit], mAssetInputStream.read()); in testMarkReset()
65 final byte[] bytes = CONTENT_STRING.getBytes(); in testReadMethods()
70 assertEquals(bytes[i], mAssetInputStream.read()); in testReadMethods()
81 assertEquals(bytes[i], data[i]); in testReadMethods()
86 assertEquals(bytes[i + dataLength], data[i]); in testReadMethods()
96 assertEquals(bytes[i], data[offset + i]); in testReadMethods()
103 assertEquals(bytes[i], data[offset + i]); in testReadMethods()
109 assertEquals(bytes[i + dataLength], data[offset + i]); in testReadMethods()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/tech/
DNfcUtils.java49 static CharSequence displayByteArray(byte[] bytes) { in displayByteArray() argument
51 for (int i = 0; i < bytes.length; i++) { in displayByteArray()
52 builder.append(Byte.toString(bytes[i])); in displayByteArray()
53 if (i + 1 < bytes.length) { in displayByteArray()
/cts/tests/src/android/net/cts/
DNetlinkSocket.java29 private static native int sendmsg(FileDescriptor fd, int pid, byte[] bytes); in sendmsg() argument
46 public int sendmsg(int pid, byte[] bytes) throws IOException { in sendmsg() argument
47 int retval = sendmsg(fd, pid, bytes); in sendmsg()
/cts/tests/jni/
Dandroid_net_cts_NetlinkSocket.cpp45 void *bytes = (void *)e->GetByteArrayElements(packet, NULL); in android_net_cts_NetlinkSocket_sendmsg() local
48 struct iovec iov = {bytes, length}; in android_net_cts_NetlinkSocket_sendmsg()
57 e->ReleaseByteArrayElements(packet, (jbyte*)bytes, 0); in android_net_cts_NetlinkSocket_sendmsg()
/cts/tools/dex-tools/src/dex/reader/
DDexBuffer.java44 byte[] bytes = bos.toByteArray(); in DexBuffer()
45 initialize(ByteBuffer.wrap(bytes)); in DexBuffer()
53 public DexBuffer(byte[] bytes) { in DexBuffer() argument
54 initialize(ByteBuffer.wrap(bytes)); in DexBuffer()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/hce/
DHceUtils.java35 public static String getHexBytes(String header, byte[] bytes) { in getHexBytes() argument
40 for (byte b : bytes) { in getHexBytes()
/cts/tests/tests/graphics/src/android/graphics/cts/
DMovieTest.java116 byte[] bytes = inputStreamToBytes(is); in testDecodeByteArray()
117 mMovie = Movie.decodeByteArray(bytes, 0, bytes.length); in testDecodeByteArray()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DBluetoothChatService.java455 int bytes; in run() local
461 bytes = mmInStream.read(buffer); in run()
464 mHandler.obtainMessage(MESSAGE_READ, bytes, -1, buffer) in run()
/cts/suite/cts/deviceTests/browserbench/assets/octane/
Dpdfjs.js859 var data = this.stream.bytes.subarray(0, 100);
937 function bytesToString(bytes) { argument
939 var length = bytes.length;
941 str += String.fromCharCode(bytes[n]);
947 var bytes = new Uint8Array(length);
949 bytes[n] = str.charCodeAt(n) & 0xFF;
950 return bytes;
12284 var bytes = lookup.getBytes(length);
12285 lookupArray.set(bytes);
14954 function int16(bytes) { argument
[all …]
Dgbemu.js232 var bytes = [0, 0, 0];
241bytes = [data.charCodeAt(index++) & 0xFF, data.charCodeAt(index++) & 0xFF, data.charCodeAt(index++…
242 …Base64[bytes[0] >> 2] + toBase64[((bytes[0] & 0x3) << 4) | (bytes[1] >> 4)] + toBase64[((bytes[1] …
249 base64[base64.length - 3] = toBase64[(bytes[0] & 0x3) << 4];
252 base64[base64.length - 2] = toBase64[(bytes[1] & 0xF) << 2];
/cts/tests/tests/net/src/android/net/cts/
DTrafficStatsTest.java78 long tcpPacketToIpBytes(long packetCount, long bytes) { in tcpPacketToIpBytes() argument
81 return packetCount * (20 + 32 + bytes); in tcpPacketToIpBytes()
/cts/libs/testserver/src/android/webkit/cts/
DCtsTestServer.java839 byte[] bytes = Base64.decode(SERVER_KEYS_BKS.getBytes()); in getKeyManagers()
840 InputStream inputStream = new ByteArrayInputStream(bytes); in getKeyManagers()
/cts/tools/dex-tools/dex/
Dclasses0.out.dex11283 java.nio.ByteBuffer bytes
11346 private java.nio.ByteBuffer bytes
17417 private byte[] bytes
19988 private byte[] bytes
29584 java.nio.ByteBuffer bytes
74618 public final byte[] bytes
77227 public byte[] bytes
88411 byte[] bytes
88557 byte[] bytes
Dclasses.out.dex117285 private byte[] bytes
132174 final byte[] val$bytes
132199 final byte[] val$bytes