/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | CountingSecureRandom.java | 39 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/ |
D | poc.cpp | 47 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/ |
D | poc.cpp | 34 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/ |
D | ApacheHttpClientTest.java | 84 int numBytes = 0; in assertDownloadResponse() local 90 numBytes += bytesRead; in assertDownloadResponse() 93 assertEquals(message, expectedNumBytes, numBytes); in assertDownloadResponse()
|
/cts/tests/tests/nativemidi/jni/ |
D | native-lib.cpp | 120 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/ |
D | DataPathInBandTestCase.java | 314 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/ |
D | FileUtils.java | 145 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/ |
D | FileUtils.java | 149 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/ |
D | MainHotwordDetectionService.java | 589 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/ |
D | CtsTestServer.java | 544 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/ |
D | TestPlugin.h | 93 void* buffer, ssize_t numBytes, off64_t offset);
|
D | TestPlugin.cpp | 179 void* buffer, ssize_t numBytes, off64_t offset) { in onPread() argument
|
/cts/apps/CtsVerifier/jni/audio_loopback/ |
D | NativeAudioAnalyzer.cpp | 94 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/ |
D | PackageSignatureTest.java | 254 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/ |
D | LocalSocketTest.java | 370 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/ |
D | poc.cpp | 27 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/ |
D | MediaStore_Video_MediaTest.java | 127 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()
|
D | MediaStore_Images_MediaTest.java | 246 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/ |
D | AudioTrackSurroundTest.java | 470 protected int writeBlock(int numBytes) { in writeBlock() argument 472 int bytesToWrite = numBytes; in writeBlock()
|