/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | CountingSecureRandom.java | 52 public synchronized void nextBytes(byte[] bytes) { in nextBytes() argument 53 if ((bytes != null) && (bytes.length > 0)) { in nextBytes() 54 mOutputSizeBytes.addAndGet(bytes.length); in nextBytes() 56 mDelegate.nextBytes(bytes); in nextBytes()
|
/cts/tools/cfassembler/src/dxconvext/ |
D | ClassFileAssembler.java | 128 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()
|
D | ClassFileParser.java | 79 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/ |
D | AssetManager_AssetInputStreamTest.java | 56 final byte[] bytes = CONTENT_STRING.getBytes(); in testMarkReset() 58 assertEquals(bytes[i], mAssetInputStream.read()); in testMarkReset() 63 assertEquals(bytes[i + readlimit], mAssetInputStream.read()); in testMarkReset() 69 final byte[] bytes = CONTENT_STRING.getBytes(); in testReadMethods() 74 assertEquals(bytes[i], mAssetInputStream.read()); in testReadMethods() 85 assertEquals(bytes[i], data[i]); in testReadMethods() 90 assertEquals(bytes[i + dataLength], data[i]); in testReadMethods() 100 assertEquals(bytes[i], data[offset + i]); in testReadMethods() 107 assertEquals(bytes[i], data[offset + i]); in testReadMethods() 113 assertEquals(bytes[i + dataLength], data[offset + i]); in testReadMethods()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/tech/ |
D | NfcUtils.java | 49 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/tools/utils/ |
D | monsoon.py | 146 bytes = self._ReadPacket() 147 if not bytes: return None 148 if len(bytes) != struct.calcsize(STATUS_FORMAT) or bytes[0] != "\x10": 150 ord(bytes[0]), len(bytes)) 153 status = dict(zip(STATUS_FIELDS, struct.unpack(STATUS_FORMAT, bytes))) 215 bytes = self._ReadPacket() 216 if not bytes: return None 217 if len(bytes) < 4 + 8 + 1 or bytes[0] < "\x20" or bytes[0] > "\x2F": 219 ord(bytes[0]), len(bytes)) 222 seq, type, x, y = struct.unpack("BBBB", bytes[:4]) [all …]
|
/cts/apps/CtsVerifier/assets/scripts/power_monitors/ |
D | monsoon.py | 261 bytes = self._ReadPacket() 262 if not bytes: return None 263 if len(bytes) != struct.calcsize(STATUS_FORMAT) or bytes[0] != "\x10": 265 ord(bytes[0]), len(bytes))) 268 status = dict(zip(STATUS_FIELDS, struct.unpack(STATUS_FORMAT, bytes))) 338 bytes = self._ReadPacket(verbose) 340 if not bytes: return None 341 if len(bytes) < 4 + 8 + 1 or bytes[0] < "\x20" or bytes[0] > "\x2F": 343 ord(bytes[0]), len(bytes)), debug=verbose) 346 seq, type, x, y = struct.unpack("BBBB", bytes[:4]) [all …]
|
/cts/tests/tests/media/src/android/media/cts/ |
D | AudioHelper.java | 335 int bytes = super.read(audioBuffer, sizeInBytes); in read() local 341 copy.position(0).limit(bytes); // read places data at the start of the buffer. in read() 342 Assert.assertEquals(bytes, mTrack.write(copy, bytes, AudioTrack.WRITE_BLOCKING)); in read() 343 mPosition += bytes / in read() 347 return bytes; in read() 352 int bytes = super.read(audioBuffer, sizeInBytes, readMode); in read() local 358 copy.position(0).limit(bytes); // read places data at the start of the buffer. in read() 359 Assert.assertEquals(bytes, mTrack.write(copy, bytes, AudioTrack.WRITE_BLOCKING)); in read() 360 mPosition += bytes / in read() 364 return bytes; in read()
|
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/ |
D | TestUtils.java | 35 static ScanRecord parseScanRecord(byte[] bytes) { in parseScanRecord() argument 39 return (ScanRecord)method.invoke(null, bytes); in parseScanRecord()
|
/cts/tools/dex-tools/src/dex/reader/ |
D | DexBuffer.java | 44 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/ |
D | HceUtils.java | 42 public static String getHexBytes(String header, byte[] bytes) { in getHexBytes() argument 47 for (byte b : bytes) { in getHexBytes()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | MovieTest.java | 114 byte[] bytes = inputStreamToBytes(is); in testDecodeByteArray() 115 mMovie = Movie.decodeByteArray(bytes, 0, bytes.length); in testDecodeByteArray()
|
D | BitmapFactoryTest.java | 559 byte[] bytes = obtainArray(); in testDecodeScaling() 561 verifyUnscaled(BitmapFactory.decodeByteArray(bytes, 0, bytes.length)); in testDecodeScaling() 562 verifyUnscaled(BitmapFactory.decodeByteArray(bytes, 0, bytes.length, null)); in testDecodeScaling() 563 verifyUnscaled(BitmapFactory.decodeByteArray(bytes, 0, bytes.length, unscaledOpt)); in testDecodeScaling() 564 verifyUnscaled(BitmapFactory.decodeByteArray(bytes, 0, bytes.length, defaultOpt)); in testDecodeScaling() 572 verifyScaled(BitmapFactory.decodeByteArray(bytes, 0, bytes.length, scaledOpt)); in testDecodeScaling()
|
/cts/tests/tests/media/libmediandkjni/ |
D | native-media-jni.cpp | 563 void *bytes; in Java_android_media_cts_NativeDecoderTest_testFormatNative() local 565 if(!AMediaFormat_getBuffer(format, "csd-0", &bytes, &bytesize) in Java_android_media_cts_NativeDecoderTest_testFormatNative() 566 || bytesize != sizeof(foo) || *((uint32_t*)bytes) != 0xdeadbeef) { in Java_android_media_cts_NativeDecoderTest_testFormatNative() 632 uint8_t bytes[16]; in Java_android_media_cts_NativeDecoderTest_testCryptoInfoNative() local 633 AMediaCodecCryptoInfo_getKey(ci, bytes); in Java_android_media_cts_NativeDecoderTest_testCryptoInfoNative() 634 if (memcmp(key, bytes, 16) != 0) { in Java_android_media_cts_NativeDecoderTest_testCryptoInfoNative() 638 AMediaCodecCryptoInfo_getIV(ci, bytes); in Java_android_media_cts_NativeDecoderTest_testCryptoInfoNative() 639 if (memcmp(iv, bytes, 16) != 0) { in Java_android_media_cts_NativeDecoderTest_testCryptoInfoNative()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
D | TestListAdapter.java | 437 private static Object deserialize(byte[] bytes) { in deserialize() argument 438 if (bytes == null || bytes.length == 0) { in deserialize() 441 ByteArrayInputStream byteStream = new ByteArrayInputStream(bytes); in deserialize()
|
/cts/hostsidetests/appsecurity/test-apps/DocumentProvider/src/com/android/cts/documentprovider/ |
D | MyDocumentsProvider.java | 284 ByteArrayOutputStream bytes = new ByteArrayOutputStream(); in readFullyNoClose() local 288 bytes.write(buffer, 0, count); in readFullyNoClose() 290 return bytes.toByteArray(); in readFullyNoClose()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/ |
D | BluetoothChatService.java | 455 int bytes; in run() local 461 bytes = mmInStream.read(buffer); in run() 464 mHandler.obtainMessage(MESSAGE_READ, bytes, -1, buffer) in run()
|
/cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/ |
D | DocumentsClientTest.java | 319 ByteArrayOutputStream bytes = new ByteArrayOutputStream(); in readFully() local 323 bytes.write(buffer, 0, count); in readFully() 325 return bytes.toByteArray(); in readFully()
|
/cts/tests/tests/net/src/android/net/cts/ |
D | TrafficStatsTest.java | 78 long tcpPacketToIpBytes(long packetCount, long bytes) { in tcpPacketToIpBytes() argument 81 return packetCount * (20 + 32 + bytes); in tcpPacketToIpBytes()
|
/cts/libs/testserver/src/android/webkit/cts/ |
D | TestWebServer.java | 533 byte[] bytes = Base64.decode(SERVER_KEYS_BKS, Base64.DEFAULT); in getKeyManagers() 534 InputStream inputStream = new ByteArrayInputStream(bytes); in getKeyManagers()
|
D | CtsTestServer.java | 968 byte[] bytes = Base64.decode(SERVER_KEYS_BKS.getBytes(), Base64.DEFAULT); in getKeyManagers() 969 InputStream inputStream = new ByteArrayInputStream(bytes); in getKeyManagers()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
D | RVCVXCheckAnalyzer.java | 1191 private byte[] bytes; field in RVCVXCheckAnalyzer.VideoDecoderForOpenCV.MatBuffer 1205 bytes = new byte[width*height*4]; in MatBuffer() 1228 mat.put(0,0, bytes); in get() 1245 buf.get(bytes); in put()
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | WebViewTest.java | 1304 byte[] bytes = new byte[(int)file.length()]; 1305 stream.read(bytes); 1307 return new String(bytes, encoding);
|
/cts/suite/cts/deviceTests/browserbench/assets/octane/ |
D | gbemu.js | 232 var bytes = [0, 0, 0]; 241 …bytes = [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/tools/dex-tools/dex/ |
D | classes0.out.dex | 11283 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
|