/cts/tests/tests/os/src/android/os/storage/cts/ |
D | StorageManagerTest.java | 288 final byte[] bytes; field in StorageManagerTest.TestProxyFileDescriptorCallback 298 bytes = new byte[size]; in TestProxyFileDescriptorCallback() 300 bytes[i] = seedBytes[i % seedBytes.length]; in TestProxyFileDescriptorCallback() 310 bytes[(int)(i + offset)] = data[i]; in onWrite() 322 data[i] = bytes[(int)(i + offset)]; in onRead() 332 return bytes.length; in onGetSize() 367 final byte[] bytes = new byte[100]; in testOpenProxyFileDescriptor() 371 Os.read(appleFd.getFileDescriptor(), bytes, 0, 100); in testOpenProxyFileDescriptor() local 373 assertEquals(appleCallback.bytes[i * 100 + j], bytes[j]); in testOpenProxyFileDescriptor() 377 Os.read(orangeFd.getFileDescriptor(), bytes, 0, 100); in testOpenProxyFileDescriptor() local [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/hcef/ |
D | MyHostFelicaService.java | 62 public byte[] processNfcFPacket(byte[] bytes, Bundle bundle) { in processNfcFPacket() argument 64 if (bytes.length < 2 + NFCID2.length) { in processNfcFPacket() 69 if (bytes[2 + i] != NFCID2[i]) { in processNfcFPacket() 74 byte cmd = bytes[1]; in processNfcFPacket() 76 return handleSystemCodeRequest(bytes); in processNfcFPacket() 78 return handleEchoRequest(bytes); in processNfcFPacket() 84 return bytes; in processNfcFPacket()
|
/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/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()
|
D | Asn1Utils.java | 73 public static ASN1Encodable getAsn1EncodableFromBytes(byte[] bytes) in getAsn1EncodableFromBytes() argument 75 try (ASN1InputStream asn1InputStream = new ASN1InputStream(bytes)) { in getAsn1EncodableFromBytes() 82 public static ASN1Sequence getAsn1SequenceFromBytes(byte[] bytes) in getAsn1SequenceFromBytes() argument 84 try (ASN1InputStream asn1InputStream = new ASN1InputStream(bytes)) { in getAsn1SequenceFromBytes()
|
/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/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/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/apps/CtsVerifier/src/com/android/cts/verifier/wifiaware/ |
D | BaseTestCase.java | 162 public static String bytesToHex(byte[] bytes, Character separator) { in bytesToHex() argument 169 char[] hexChars = new char[bytes.length * 2 + (useSeparator ? bytes.length - 1 : 0)]; in bytesToHex() 171 for (int j = 0; j < bytes.length; j++) { in bytesToHex() 175 int v = bytes[j] & 0xFF; in bytesToHex()
|
/cts/tests/backup/app/src/android/backup/app/ |
D | MainActivity.java | 66 byte[] bytes = new byte[DATA_CHUNK_SIZE]; in createFile() 67 new Random().nextBytes(bytes); in createFile() 73 bos.write(bytes, 0, bytesToWrite); in createFile()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | AudioHelper.java | 352 int bytes = super.read(audioBuffer, sizeInBytes); 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() 369 int bytes = super.read(audioBuffer, sizeInBytes, readMode); in read() local 375 copy.position(0).limit(bytes); // read places data at the start of the buffer. in read() 376 Assert.assertEquals(bytes, mTrack.write(copy, bytes, AudioTrack.WRITE_BLOCKING)); in read() 377 mPosition += bytes / in read() 381 return bytes; in read()
|
/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/tests/tests/media/libmediandkjni/ |
D | md5_utils.cpp | 57 ctx->bytes[0] = 0; in MD5Init() 58 ctx->bytes[1] = 0; in MD5Init() 71 t = ctx->bytes[0]; in MD5Update() 73 if ((ctx->bytes[0] = t + len) < t) in MD5Update() 74 ctx->bytes[1]++; /* Carry from low to high */ in MD5Update() 109 int count = ctx->bytes[0] & 0x3f; /* Number of bytes in ctx->in */ in MD5Final() 130 ctx->in[14] = ctx->bytes[0] << 3; in MD5Final() 131 ctx->in[15] = ctx->bytes[1] << 3 | ctx->bytes[0] >> 29; in MD5Final()
|
D | md5_utils.h | 36 UWORD32 bytes[2]; member
|
/cts/hostsidetests/backup/fullbackupapp/src/android/cts/backup/fullbackupapp/ |
D | FullbackupTest.java | 135 byte[] bytes = new byte[FILE_SIZE_BYTES]; in addData() 136 new Random().nextBytes(bytes); in addData() 139 bos.write(bytes, 0, bytes.length); in addData()
|
/cts/hostsidetests/appsecurity/test-apps/StorageApp/src/com/android/cts/storageapp/ |
D | UtilsReceiver.java | 70 final long bytes = (long) (quota * fraction); in doAllocation() local 74 while (allocated < bytes) { in doAllocation() 93 Log.d(TAG, "Quota " + quota + ", target " + bytes + ", allocated " + allocated); in doAllocation()
|
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/ |
D | TestUtils.java | 37 static ScanRecord parseScanRecord(byte[] bytes) { in parseScanRecord() argument 41 return (ScanRecord) method.invoke(null, bytes); in parseScanRecord()
|
/cts/hostsidetests/backup/includeexcludeapp/src/android/cts/backup/includeexcludeapp/ |
D | IncludeExcludeTest.java | 173 byte[] bytes = new byte[FILE_SIZE_BYTES]; in addData() 174 new Random().nextBytes(bytes); in addData() 177 bos.write(bytes, 0, bytes.length); in addData()
|
/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 | 119 byte[] bytes = inputStreamToBytes(is); in testDecodeByteArray() 120 mMovie = Movie.decodeByteArray(bytes, 0, bytes.length); in testDecodeByteArray()
|
/cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/ |
D | DocumentsClientTestCase.java | 112 ByteArrayOutputStream bytes = new ByteArrayOutputStream(); in readFully() local 116 bytes.write(buffer, 0, count); in readFully() 118 return bytes.toByteArray(); in readFully()
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | SmallStructsTest.java | 164 byte[] bytes = new byte[size]; in testSmallStructsOfCharArray() 166 bytes[i] = (byte) (1 + i); in testSmallStructsOfCharArray() 170 set_bytes.invoke(field, elem, bytes, true); in testSmallStructsOfCharArray()
|
D | small_structs.rs | 73 typedef struct char_array_##SIZE { char bytes[SIZE]; } \ 79 in.bytes[i] += i; \ 89 _RS_ASSERT(elem->bytes[j] == 2 * j + 1); \
|