Home
last modified time | relevance | path

Searched refs:numBytes (Results 1 – 19 of 19) 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/hostsidetests/securitybulletin/securityPatch/CVE-2020-0458/
Dpoc.cpp47 ssize_t writeOutput(const void*, size_t numBytes) override { in writeOutput() argument
48 mOutputSizeBytes = numBytes; in writeOutput()
49 return numBytes; in writeOutput()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2019-2099/
Dpoc.cpp34 static void *(*real_memcpy)(void *to, const void *from, size_t numBytes) = nullptr;
44 void *memcpy(void *to, const void *from, size_t numBytes) { in memcpy() argument
48 if (numBytes == LENGTH) { in memcpy()
51 return real_memcpy(to, from, numBytes); in memcpy()
/cts/tests/tests/apache-http/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/nativemidi/jni/
Dnative-lib.cpp120 void incNumBytesSent(int numBytes) { mNumBytesSent += numBytes; } in incNumBytesSent() argument
126 void incNumBytesReceived(int numBytes) { mNumBytesReceived += numBytes; } in incNumBytesReceived() argument
409 jlong ctx, jbyteArray data, jint offset, jint numBytes, jlong timestamp) { in Java_android_nativemidi_cts_NativeMidiEchoTest_writeMidiWithTimestamp() argument
413 context->incNumBytesSent(numBytes); in Java_android_nativemidi_cts_NativeMidiEchoTest_writeMidiWithTimestamp()
421 context->midiInputPort, (uint8_t*)bufferPtr + offset, numBytes, timestamp); in Java_android_nativemidi_cts_NativeMidiEchoTest_writeMidiWithTimestamp()
425 sendRec.numDataBytes = numBytes; in Java_android_nativemidi_cts_NativeMidiEchoTest_writeMidiWithTimestamp()
427 memcpy(sendRec.dataBuff.get(), (uint8_t*)bufferPtr + offset, numBytes); in Java_android_nativemidi_cts_NativeMidiEchoTest_writeMidiWithTimestamp()
439 JNIEnv* env, jobject j_object, jlong ctx, jbyteArray data, jint offset, jint numBytes) { in Java_android_nativemidi_cts_NativeMidiEchoTest_writeMidi() argument
441 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.java314 int numBytes = is.read(buffer, 0, MSG_SERVER_TO_CLIENT.length); in executeTestSubscriber() local
318 new String(buffer, 0, numBytes))); in executeTestSubscriber()
320 if (numBytes != MSG_SERVER_TO_CLIENT.length) { in executeTestSubscriber()
324 + "got -- " + numBytes); in executeTestSubscriber()
383 int numBytes = is.read(buffer, 0, MSG_CLIENT_TO_SERVER.length); in executeTestPublisher()
387 new String(buffer, 0, numBytes))); in executeTestPublisher()
389 if (numBytes != MSG_CLIENT_TO_SERVER.length) { in executeTestPublisher()
393 + "got -- " + numBytes); in executeTestPublisher()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DFileUtils.java145 public static void createFile(File file, int numBytes) throws IOException { in createFile() argument
150 byte[] buffer = new byte[numBytes]; in createFile()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/
DFileUtils.java149 public static void createFile(File file, int numBytes) throws IOException { in createFile() argument
154 byte[] buffer = new byte[numBytes]; in createFile()
/cts/tests/tests/voiceinteraction/service/src/android/voiceinteraction/service/
DMainHotwordDetectionService.java589 int numBytes = 0; in canReadAudio() local
590 while (numBytes < buffer.length) { in canReadAudio()
592 record.read(buffer, numBytes, Math.min(1024, buffer.length - numBytes)); in canReadAudio()
597 numBytes += bytesRead; in canReadAudio()
/cts/libs/testserver/src/android/webkit/cts/
DCtsTestServer.java544 public String getTestDownloadUrl(String downloadId, int numBytes) { in getTestDownloadUrl() argument
549 .appendQueryParameter(NUM_BYTES_PARAMETER, Integer.toString(numBytes)) in getTestDownloadUrl()
559 public String getCacheableTestDownloadUrl(String downloadId, int numBytes) { in getCacheableTestDownloadUrl() argument
564 .appendQueryParameter(NUM_BYTES_PARAMETER, Integer.toString(numBytes)) in getCacheableTestDownloadUrl()
996 int numBytes = uri.getQueryParameter(NUM_BYTES_PARAMETER) != null in createTestDownloadResponse() local
1000 response.setHeader("Content-Length", Integer.toString(numBytes)); in createTestDownloadResponse()
1001 response.setEntity(createFileEntity(context, downloadId, numBytes)); in createTestDownloadResponse()
1012 private static FileEntity createFileEntity(Context context, String downloadId, int numBytes) in createFileEntity() argument
1024 for (int i = 0; i < numBytes / data.length; i++) { in createFileEntity()
1027 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/apps/CtsVerifier/jni/audio_loopback/
DNativeAudioAnalyzer.cpp94 int32_t numBytes = numFrames * mActualOutputChannelCount * sizeof(float); in dataCallbackProc() local
95 memset(audioData, 0 /* value */, numBytes); in dataCallbackProc()
/cts/tests/tests/security/src/android/security/cts/
DPackageSignatureTest.java254 int numBytes = 0; in getSignature() local
255 while ((numBytes = input.read(buffer)) != -1) { in getSignature()
256 output.write(buffer, 0, numBytes); in getSignature()
/cts/tests/net/src/android/net/cts/
DLocalSocketTest.java370 final int numBytes = sendBytes.length; in sendAndReceiveBytes() local
377 assertEquals(numBytes, is.read(recvBytes, 0, recvBytes.length)); in sendAndReceiveBytes()
379 final byte[] received = Arrays.copyOfRange(recvBytes, 0, numBytes); in sendAndReceiveBytes()
/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/mediaprovider/src/android/provider/cts/media/
DMediaStore_Video_MediaTest.java127 final long numBytes = videoFile.length(); in testStoreVideoMediaExternal() local
147 values.put(Media.SIZE, numBytes); in testStoreVideoMediaExternal()
177 assertEquals(numBytes, c.getInt(c.getColumnIndex(Media.SIZE))); in testStoreVideoMediaExternal()
DMediaStore_Images_MediaTest.java246 final long numBytes = file.length(); in testStoreImagesMediaExternal() local
261 values.put(Media.SIZE, numBytes); in testStoreImagesMediaExternal()
290 assertEquals(numBytes, c.getInt(c.getColumnIndex(Media.SIZE))); in testStoreImagesMediaExternal()
/cts/tests/tests/media/audio/src/android/media/audio/cts/
DAudioTrackSurroundTest.java470 protected int writeBlock(int numBytes) { in writeBlock() argument
472 int bytesToWrite = numBytes; in writeBlock()