Home
last modified time | relevance | path

Searched refs:numBytes (Results 1 – 12 of 12) sorted by relevance

/cts/tests/tests/keystore/src/android/keystore/cts/
DCountingSecureRandom.java39 public byte[] generateSeed(int numBytes) { in generateSeed() argument
40 if (numBytes > 0) { in generateSeed()
41 mOutputSizeBytes.addAndGet(numBytes); in generateSeed()
43 return mDelegate.generateSeed(numBytes); in generateSeed()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/audiolib/
DStreamRecorder.java60 int numBytes = 0; in calcNumBufferBytes() local
62 numBytes = AudioRecord.getMinBufferSize(sampleRate, AudioFormat.CHANNEL_IN_STEREO, in calcNumBufferBytes()
64 numBytes *= 2; in calcNumBufferBytes()
66 numBytes = AudioRecord.getMinBufferSize(sampleRate, in calcNumBufferBytes()
70 return numBytes; in calcNumBufferBytes()
/cts/tests/tests/net/src/android/net/http/cts/
DApacheHttpClientTest.java82 int numBytes = 0; in assertDownloadResponse() local
88 numBytes += bytesRead; in assertDownloadResponse()
91 assertEquals(message, expectedNumBytes, numBytes); in assertDownloadResponse()
/cts/tests/tests/security/src/android/security/cts/
DPackageSignatureTest.java135 int numBytes = 0; in getSignature() local
136 while ((numBytes = input.read(buffer)) != -1) { in getSignature()
137 output.write(buffer, 0, numBytes); in getSignature()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DFileUtils.java135 public static void createFile(File file, int numBytes) throws IOException { in createFile() argument
140 byte[] buffer = new byte[numBytes]; in createFile()
/cts/tests/tests/provider/src/android/provider/cts/
DMediaStore_Video_MediaTest.java78 int numBytes = 1337; in testStoreVideoMediaExternal() local
80 FileUtils.createFile(videoFile, numBytes); in testStoreVideoMediaExternal()
100 values.put(Media.SIZE, numBytes); in testStoreVideoMediaExternal()
136 assertEquals(numBytes, c.getInt(c.getColumnIndex(Media.SIZE))); in testStoreVideoMediaExternal()
DMediaStore_Images_MediaTest.java226 int numBytes = 1337; in testStoreImagesMediaExternal() local
227 FileUtils.createFile(new File(externalPath), numBytes); in testStoreImagesMediaExternal()
242 values.put(Media.SIZE, numBytes); in testStoreImagesMediaExternal()
273 assertEquals(numBytes, c.getInt(c.getColumnIndex(Media.SIZE))); in testStoreImagesMediaExternal()
/cts/libs/testserver/src/android/webkit/cts/
DCtsTestServer.java443 public String getTestDownloadUrl(String downloadId, int numBytes) { in getTestDownloadUrl() argument
448 .appendQueryParameter(NUM_BYTES_PARAMETER, Integer.toString(numBytes)) in getTestDownloadUrl()
815 int numBytes = uri.getQueryParameter(NUM_BYTES_PARAMETER) != null in createTestDownloadResponse() local
819 response.setHeader("Content-Length", Integer.toString(numBytes)); in createTestDownloadResponse()
820 response.setEntity(createFileEntity(downloadId, numBytes)); in createTestDownloadResponse()
824 private static FileEntity createFileEntity(String downloadId, int numBytes) throws IOException { in createFileEntity() argument
835 for (int i = 0; i < numBytes / data.length; i++) { in createFileEntity()
838 stream.write(data, 0, numBytes % data.length); in createFileEntity()
/cts/tests/tests/drm/lib/
DTestPlugin.h93 void* buffer, ssize_t numBytes, off64_t offset);
DTestPlugin.cpp179 void* buffer, ssize_t numBytes, off64_t offset) { in onPread() argument
/cts/tests/tests/media/src/android/media/cts/
DAudioTrackSurroundTest.java508 protected int writeBlock(int numBytes) { in writeBlock() argument
510 int bytesToWrite = numBytes; in writeBlock()
/cts/tools/dex-tools/dex/
Dclasses0.out.dex17421 private int numBytes
19990 private int numBytes