/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/apps/CtsVerifier/src/com/android/cts/verifier/audio/audiolib/ |
D | StreamRecorder.java | 62 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/ |
D | native-lib.cpp | 120 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/tests/tests/net/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/apps/CtsVerifier/src/com/android/cts/verifier/wifiaware/testcase/ |
D | DataPathInBandTestCase.java | 254 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/security/src/android/security/cts/ |
D | PackageSignatureTest.java | 141 int numBytes = 0; in getSignature() local 142 while ((numBytes = input.read(buffer)) != -1) { in getSignature() 143 output.write(buffer, 0, numBytes); in getSignature()
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | FileUtils.java | 135 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/ |
D | FileUtils.java | 135 public static void createFile(File file, int numBytes) throws IOException { in createFile() argument 140 byte[] buffer = new byte[numBytes]; in createFile()
|
/cts/libs/testserver/src/android/webkit/cts/ |
D | CtsTestServer.java | 444 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/ |
D | MediaStore_Video_MediaTest.java | 118 int numBytes = 1337; in testStoreVideoMediaExternal() local 120 FileUtils.createFile(videoFile, numBytes); in testStoreVideoMediaExternal() 138 values.put(Media.SIZE, numBytes); in testStoreVideoMediaExternal() 172 assertEquals(numBytes, c.getInt(c.getColumnIndex(Media.SIZE))); in testStoreVideoMediaExternal()
|
D | MediaStore_Images_MediaTest.java | 231 int numBytes = 1337; in testStoreImagesMediaExternal() local 232 FileUtils.createFile(new File(externalPath), numBytes); in testStoreImagesMediaExternal() 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/ |
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/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/src/com/android/cts/verifier/audio/ |
D | MidiActivity.java | 701 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/ |
D | AudioTrackSurroundTest.java | 508 protected int writeBlock(int numBytes) { in writeBlock() argument 510 int bytesToWrite = numBytes; in writeBlock()
|