Home
last modified time | relevance | path

Searched refs:numBytes (Results 1 – 17 of 17) 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.java62 int numBytes = 0; in calcNumBufferBytes() local
64 numBytes = AudioRecord.getMinBufferSize(sampleRate, AudioFormat.CHANNEL_IN_STEREO, in calcNumBufferBytes()
66 numBytes *= 2; in calcNumBufferBytes()
68 numBytes = AudioRecord.getMinBufferSize(sampleRate, in calcNumBufferBytes()
72 return numBytes; in calcNumBufferBytes()
/cts/tests/tests/nativemidi/jni/
Dnative-lib.cpp120 void incNumBytesSent(int numBytes) { mNumBytesSent += numBytes; } in incNumBytesSent() argument
126 void incNumBytesReceived(int numBytes) { mNumBytesReceived += numBytes; } in incNumBytesReceived() argument
406 jlong ctx, jbyteArray data, jint offset, jint numBytes, jlong timestamp) { in Java_android_nativemidi_cts_NativeMidiEchoTest_writeMidiWithTimestamp() argument
410 context->incNumBytesSent(numBytes); in Java_android_nativemidi_cts_NativeMidiEchoTest_writeMidiWithTimestamp()
418 context->midiInputPort, (uint8_t*)bufferPtr + offset, numBytes, timestamp); in Java_android_nativemidi_cts_NativeMidiEchoTest_writeMidiWithTimestamp()
422 sendRec.numDataBytes = numBytes; in Java_android_nativemidi_cts_NativeMidiEchoTest_writeMidiWithTimestamp()
424 memcpy(sendRec.dataBuff.get(), (uint8_t*)bufferPtr + offset, numBytes); in Java_android_nativemidi_cts_NativeMidiEchoTest_writeMidiWithTimestamp()
436 JNIEnv* env, jobject j_object, jlong ctx, jbyteArray data, jint offset, jint numBytes) { in Java_android_nativemidi_cts_NativeMidiEchoTest_writeMidi() argument
438 env, j_object, ctx, data, offset, numBytes, 0L); in Java_android_nativemidi_cts_NativeMidiEchoTest_writeMidi()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/wifiaware/testcase/
DDataPathInBandTestCase.java254 int numBytes = is.read(buffer, 0, MSG_SERVER_TO_CLIENT.length); in executeTestSubscriber() local
258 new String(buffer, 0, numBytes))); in executeTestSubscriber()
260 if (numBytes != MSG_SERVER_TO_CLIENT.length) { in executeTestSubscriber()
264 + "got -- " + numBytes); in executeTestSubscriber()
322 int numBytes = is.read(buffer, 0, MSG_CLIENT_TO_SERVER.length); in executeTestPublisher()
326 new String(buffer, 0, numBytes))); in executeTestPublisher()
328 if (numBytes != MSG_CLIENT_TO_SERVER.length) { in executeTestPublisher()
332 + "got -- " + numBytes); in executeTestPublisher()
/cts/tests/tests/net/src/android/net/http/cts/
DApacheHttpClientTest.java84 int numBytes = 0; in assertDownloadResponse() local
90 numBytes += bytesRead; in assertDownloadResponse()
93 assertEquals(message, expectedNumBytes, numBytes); in assertDownloadResponse()
/cts/tests/tests/security/src/android/security/cts/
DPackageSignatureTest.java143 int numBytes = 0; in getSignature() local
144 while ((numBytes = input.read(buffer)) != -1) { in getSignature()
145 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/common/device-side/util-axt/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/identity/src/android/security/identity/cts/
DHkdfTest.java71 static byte[] randBytes(int numBytes) { in randBytes() argument
72 byte[] bytes = new byte[numBytes]; in randBytes()
/cts/libs/testserver/src/android/webkit/cts/
DCtsTestServer.java444 public String getTestDownloadUrl(String downloadId, int numBytes) { in getTestDownloadUrl() argument
449 .appendQueryParameter(NUM_BYTES_PARAMETER, Integer.toString(numBytes)) in getTestDownloadUrl()
817 int numBytes = uri.getQueryParameter(NUM_BYTES_PARAMETER) != null in createTestDownloadResponse() local
821 response.setHeader("Content-Length", Integer.toString(numBytes)); in createTestDownloadResponse()
822 response.setEntity(createFileEntity(context, downloadId, numBytes)); in createTestDownloadResponse()
826 private static FileEntity createFileEntity(Context context, String downloadId, int numBytes) in createFileEntity() argument
838 for (int i = 0; i < numBytes / data.length; i++) { in createFileEntity()
841 stream.write(data, 0, numBytes % data.length); in createFileEntity()
/cts/tests/tests/provider/src/android/provider/cts/
DMediaStore_Video_MediaTest.java121 int numBytes = 1337; in testStoreVideoMediaExternal() local
123 FileUtils.createFile(videoFile, numBytes); in testStoreVideoMediaExternal()
141 values.put(Media.SIZE, numBytes); in testStoreVideoMediaExternal()
175 assertEquals(numBytes, c.getInt(c.getColumnIndex(Media.SIZE))); in testStoreVideoMediaExternal()
DMediaStore_Images_MediaTest.java230 final long numBytes = file.length(); in testStoreImagesMediaExternal() local
245 values.put(Media.SIZE, numBytes); in testStoreImagesMediaExternal()
274 assertEquals(numBytes, c.getInt(c.getColumnIndex(Media.SIZE))); in testStoreImagesMediaExternal()
/cts/hostsidetests/securitybulletin/securityPatch/Bug-115739809/
Dpoc.cpp27 static std::string memoryAsHexString(const void* const address, size_t numBytes) { in memoryAsHexString() argument
29 for (size_t i = 0; i < numBytes; i++) { in memoryAsHexString()
/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/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DMidiActivity.java701 int numBytes = mTestMessages[msgIndex].mMsgBytes.length; in setupTestMessages() local
703 mMIDIDataStream, offset, numBytes); in setupTestMessages()
704 offset += numBytes; in setupTestMessages()
/cts/tests/tests/media/src/android/media/cts/
DAudioTrackSurroundTest.java511 protected int writeBlock(int numBytes) { in writeBlock() argument
513 int bytesToWrite = numBytes; in writeBlock()