/cts/tests/tests/media/audio/jni/ |
D | audio-metadata-native.cpp | 66 jobject byteBuffer = env->CallStaticObjectMethod( in Java_android_media_audio_cts_AudioMetadataTest_nativeGetByteBuffer() local 72 if (byteBuffer == nullptr) { in Java_android_media_audio_cts_AudioMetadataTest_nativeGetByteBuffer() 77 uint8_t* byteBufferAddr = (uint8_t*)env->GetDirectBufferAddress(byteBuffer); in Java_android_media_audio_cts_AudioMetadataTest_nativeGetByteBuffer() 79 return byteBuffer; in Java_android_media_audio_cts_AudioMetadataTest_nativeGetByteBuffer()
|
/cts/hostsidetests/packagemanager/deletekeepdata/app/src/com/android/tests/deletekeepdata/app/ |
D | DeleteKeepDataDeviceTest.java | 90 ByteArrayOutputStream byteBuffer = new ByteArrayOutputStream(); in readDataUserFile() local 94 byteBuffer.write(buffer, 0, len); in readDataUserFile() 100 return byteBuffer.toString(StandardCharsets.UTF_8); in readDataUserFile() 105 ByteArrayOutputStream byteBuffer = new ByteArrayOutputStream(); in readExternalDataFile() local 110 byteBuffer.write(buffer, 0, len); in readExternalDataFile() 116 return byteBuffer.toString(StandardCharsets.UTF_8); in readExternalDataFile()
|
/cts/tests/tests/opengl/src/android/opengl/cts/ |
D | RendererTwoShaderTest.java | 56 ByteBuffer byteBuffer = ByteBuffer.allocateDirect(triangleCoords.length * 4); in initShapes() local 57 byteBuffer.order(ByteOrder.nativeOrder()); in initShapes() 58 floatBuffer = byteBuffer.asFloatBuffer(); in initShapes()
|
D | RendererOneShaderTest.java | 80 ByteBuffer byteBuffer = ByteBuffer.allocateDirect(triangleCoords.length * 4); in initShapes() local 81 byteBuffer.order(ByteOrder.nativeOrder()); in initShapes() 82 floatBuffer = byteBuffer.asFloatBuffer(); in initShapes()
|
D | RendererThreeShaderTest.java | 83 ByteBuffer byteBuffer = ByteBuffer.allocateDirect(triangleCoords.length * 4); in initShapes() local 84 byteBuffer.order(ByteOrder.nativeOrder()); in initShapes() 85 floatBuffer = byteBuffer.asFloatBuffer(); in initShapes()
|
D | EglConfigGLSurfaceView.java | 89 ByteBuffer byteBuffer = ByteBuffer.allocateDirect(triangleVertices.length * 4); in onSurfaceCreated() local 90 byteBuffer.order(ByteOrder.nativeOrder()); in onSurfaceCreated()
|
/cts/tests/sensor/src/android/hardware/cts/helpers/ |
D | SensorRatePermissionDirectReportTestHelper.java | 183 ByteBuffer byteBuffer = ByteBuffer.allocate(sharedMemorySize); in readEventsFromHardwareBuffer() local 184 byte[] buffer = byteBuffer.array(); in readEventsFromHardwareBuffer() 185 byteBuffer.order(ByteOrder.nativeOrder()); in readEventsFromHardwareBuffer() 188 SensorDirectReportTest.parseEntireBuffer(token, eventPool, byteBuffer, in readEventsFromHardwareBuffer() 191 byteBuffer.clear(); in readEventsFromHardwareBuffer()
|
/cts/tests/vr/src/android/vr/cts/ |
D | RendererBasicTest.java | 115 ByteBuffer byteBuffer = ByteBuffer.allocateDirect(triangleCoords.length * 4); in initShapes() local 116 byteBuffer.order(ByteOrder.nativeOrder()); in initShapes() 117 floatBuffer = byteBuffer.asFloatBuffer(); in initShapes()
|
/cts/tests/tests/media/misc/src/android/media/misc/cts/ |
D | MediaSyncTest.java | 250 MediaSync sync, ByteBuffer byteBuffer, int bufferIndex) { in runCheckAudioBuffer() 253 decoderAudio.checkReturnedAudioBuffer(byteBuffer, bufferIndex); in runCheckAudioBuffer() 309 MediaSync sync, ByteBuffer byteBuffer, int bufferIndex) { in runFlush() 507 MediaSync sync, ByteBuffer byteBuffer, int bufferIndex) { in runPlayAV() 615 public AudioBuffer(ByteBuffer byteBuffer, int bufferIndex) { in AudioBuffer() argument 616 mByteBuffer = byteBuffer; in AudioBuffer() 813 public void checkReturnedAudioBuffer(ByteBuffer byteBuffer, int bufferIndex) { in checkReturnedAudioBuffer() argument 816 if (audioBuffer.mByteBuffer != byteBuffer in checkReturnedAudioBuffer()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | AnimatedImageDrawableTest.java | 802 ByteBuffer byteBuffer = ByteBuffer.allocateDirect(array.length); in getAsDirectByteBuffer() local 803 byteBuffer.put(array); in getAsDirectByteBuffer() 804 byteBuffer.position(0); in getAsDirectByteBuffer() 805 return byteBuffer; in getAsDirectByteBuffer() 808 private AnimatedImageDrawable createFromByteBuffer(ByteBuffer byteBuffer) { in createFromByteBuffer() argument 809 ImageDecoder.Source src = ImageDecoder.createSource(byteBuffer); in createFromByteBuffer() 823 ByteBuffer byteBuffer = ByteBuffer.wrap(array); in testByteBuffer() local 824 final AnimatedImageDrawable drawable = createFromByteBuffer(byteBuffer); in testByteBuffer() 833 ByteBuffer byteBuffer = ByteBuffer.wrap(array).asReadOnlyBuffer(); in testReadOnlyByteBuffer() local 834 final AnimatedImageDrawable drawable = createFromByteBuffer(byteBuffer); in testReadOnlyByteBuffer() [all …]
|
/cts/tests/tests/virtualdevice/sensor/src/android/virtualdevice/cts/sensor/ |
D | VirtualSensorTest.java | 799 ByteBuffer byteBuffer = ByteBuffer.allocate(SENSOR_EVENT_SIZE); in verifyDirectChannelEvents() local 800 byteBuffer.order(ByteOrder.nativeOrder()); in verifyDirectChannelEvents() 804 assertThat(mMemoryFile.readBytes(byteBuffer.array(), offset, 0, SENSOR_EVENT_SIZE)) in verifyDirectChannelEvents() 807 byteBuffer.position(0); in verifyDirectChannelEvents() 808 int eventSize = byteBuffer.getInt(); in verifyDirectChannelEvents() 809 int actualReportToken = byteBuffer.getInt(); in verifyDirectChannelEvents() 814 int sensorType = byteBuffer.getInt(); in verifyDirectChannelEvents() 815 int eventCounter = byteBuffer.getInt(); in verifyDirectChannelEvents() 827 byteBuffer.getLong(); // timestamp in verifyDirectChannelEvents() 830 assertThat(byteBuffer.getFloat()) in verifyDirectChannelEvents() [all …]
|
/cts/tests/media/src/android/mediav2/cts/ |
D | ExtractorUnitTest.java | 676 ByteBuffer byteBuffer = ByteBuffer.allocate(MAX_SAMPLE_SIZE); in testReadSampleDataBeforeSetDataSource() local 679 extractor.readSampleData(byteBuffer, 0) < 0); in testReadSampleDataBeforeSetDataSource() 691 ByteBuffer byteBuffer = ByteBuffer.allocate(MAX_SAMPLE_SIZE); in testReadSampleDataBeforeSelectTrack() local 696 extractor.readSampleData(byteBuffer, 0) < 0); in testReadSampleDataBeforeSelectTrack() 708 ByteBuffer byteBuffer = ByteBuffer.allocate(MAX_SAMPLE_SIZE); in testIfInvalidOffsetIsRejectedByReadSampleData() local 715 extractor.readSampleData(byteBuffer, -1); in testIfInvalidOffsetIsRejectedByReadSampleData() 724 extractor.readSampleData(byteBuffer, MAX_SAMPLE_SIZE - sampleSize + 1); in testIfInvalidOffsetIsRejectedByReadSampleData() 739 ByteBuffer byteBuffer = ByteBuffer.allocate(MAX_SAMPLE_SIZE); in testReadSampleDataAfterRelease() local 742 extractor.readSampleData(byteBuffer, 0); in testReadSampleDataAfterRelease()
|
/cts/tests/videocodec/src/android/videocodec/cts/ |
D | VideoDecodeEditEncodeTest.java | 291 ByteBuffer byteBuffer = ByteBuffer.allocate(bufferSize); in splitMediaToMuxerParameters() local 302 bufferInfo.size = extractor.readSampleData(byteBuffer, offset); in splitMediaToMuxerParameters() 318 byteBuffer.rewind(); in splitMediaToMuxerParameters() 319 byteBuffer.get(mMemory, 0, byteBuffer.limit()); in splitMediaToMuxerParameters() 320 mMemIndex = byteBuffer.limit(); in splitMediaToMuxerParameters()
|
/cts/tests/sensor/src/android/hardware/cts/ |
D | SensorDirectReportTest.java | 1817 ByteBuffer byteBuffer, int sharedMemorySize) { 1824 parseSensorEvent(offset, e, byteBuffer); 1849 ByteBuffer byteBuffer) { 1850 byteBuffer.position(offset); 1852 ev.size = byteBuffer.getInt(); 1853 ev.token = byteBuffer.getInt(); 1854 ev.type = byteBuffer.getInt(); 1855 ev.serial = ((long) byteBuffer.getInt()) & 0xFFFFFFFFl; // signed=>unsigned 1856 ev.ts = byteBuffer.getLong(); 1858 ev.x = byteBuffer.getFloat(); [all …]
|
/cts/tests/tests/virtualdevice/audio/src/android/virtualdevice/cts/audio/ |
D | VirtualAudioTest.java | 306 ByteBuffer byteBuffer = AudioInjector.createAudioData(); in audioInjection_receivesAudioConfigurationChangeCallback() local 307 try (AudioInjector injector = new AudioInjector(byteBuffer, mVirtualAudioDevice)) { in audioInjection_receivesAudioConfigurationChangeCallback() 346 ByteBuffer byteBuffer = AudioInjector.createAudioData(); in audioInjection_appShouldRecordInjectedFrequency() local 347 try (AudioInjector injector = new AudioInjector(byteBuffer, mVirtualAudioDevice)) { in audioInjection_appShouldRecordInjectedFrequency()
|
/cts/tests/tests/media/decoder/src/android/media/decoder/cts/ |
D | DecodeAccuracyTestBase.java | 1039 private ByteBuffer byteBuffer; field in GLSurfaceViewFactory.GLSurfaceViewThread 1064 byteBuffer = ByteBuffer.allocateDirect(VIEW_WIDTH * VIEW_HEIGHT * 4); in run() 1065 byteBuffer.order(ByteOrder.LITTLE_ENDIAN); in run() 1070 byteBuffer = null; in run() 1228 byteBuffer.clear(); in saveFrame() 1230 GLES20.GL_UNSIGNED_BYTE, byteBuffer); in saveFrame() 1244 return byteBuffer; in getByteBuffer() 1524 final ByteBuffer byteBuffer = glSurfaceViewFactory.getByteBuffer(); in run() local 1529 byteBuffer.rewind(); in run() 1530 bitmap.copyPixelsFromBuffer(byteBuffer); in run() [all …]
|
D | AdaptivePlaybackTest.java | 257 public void bytebuffer() { ex(H264(SW), new EarlyEosTest().byteBuffer()); } in bytebuffer() 1721 public MediaTest byteBuffer() {
|
/cts/tests/tests/media/audio/src/android/media/audio/cts/ |
D | AudioTrackSurroundTest.java | 174 byte[] byteBuffer = loadRawResourceBytes(id); in loadRawResourceShorts() 176 ByteBuffer.wrap(byteBuffer).order(ByteOrder.LITTLE_ENDIAN).asShortBuffer(); in loadRawResourceShorts() 178 short[] mainBuffer = new short[byteBuffer.length / 2]; in loadRawResourceShorts()
|
D | AudioRecordTest.java | 246 ByteBuffer byteBuffer = ByteBuffer.allocateDirect(BUFFER_SIZE); in testAudioRecordOP() local 252 mAudioRecord.read(byteBuffer, BUFFER_SIZE); in testAudioRecordOP() 1185 final ByteBuffer byteBuffer = in doTest() local 1198 byteBuffer.position(lastPosition); in doTest() 1199 byteBuffer.limit(lastLimit); in doTest() 1200 final int ret = blockForData ? record.read(byteBuffer, amount) : in doTest() 1201 record.read(byteBuffer, amount, AudioRecord.READ_NON_BLOCKING); in doTest()
|
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/testcore/ |
D | Helper.java | 149 ByteBuffer byteBuffer = sharedMemory.mapReadWrite(); in createFakeSharedMemoryData() local 150 byteBuffer.put(FAKE_BYTE_ARRAY_DATA); in createFakeSharedMemoryData()
|
/cts/tests/tests/tv/src/android/media/tv/interactive/cts/ |
D | TvInteractiveAppServiceTest.java | 1228 ByteBuffer byteBuffer = sm.mapReadWrite(); in testNotifyAdBufferReady() local 1230 byteBuffer.put(data); in testNotifyAdBufferReady() 1231 byteBuffer.flip(); in testNotifyAdBufferReady() 1232 SharedMemory.unmap(byteBuffer); in testNotifyAdBufferReady() 2085 ByteBuffer byteBuffer = sm.mapReadWrite(); in testTableResponseWithSharedMemory() local 2087 byteBuffer.put(bytes); in testTableResponseWithSharedMemory() 2088 byteBuffer.flip(); in testTableResponseWithSharedMemory() 2089 SharedMemory.unmap(byteBuffer); in testTableResponseWithSharedMemory() 2241 ByteBuffer byteBuffer = sm.mapReadOnly(); in getSharedMemoryData() local 2242 byte[] data = new byte[byteBuffer.remaining()]; in getSharedMemoryData() [all …]
|
/cts/tests/tests/telephony/current/src/android/telephony/cts/ |
D | VisualVoicemailServiceTest.java | 576 ByteBuffer byteBuffer = ByteBuffer.wrap(message.getUserData()); in onReceive() local 578 body = decoder.decode(byteBuffer).toString(); in onReceive()
|
/cts/tests/tests/media/codec/src/android/media/codec/cts/ |
D | VideoCodecTestBase.java | 982 ByteBuffer byteBuffer = mCodec.getInputBuffer(index); 983 byteBuffer.put(encFrame); 984 byteBuffer.rewind();
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | ImageDecoderTest.java | 178 ByteBuffer byteBuffer = ByteBuffer.allocateDirect(buffer.length); in getAsDirectByteBuffer() local 179 byteBuffer.put(buffer); in getAsDirectByteBuffer() 180 byteBuffer.position(0); in getAsDirectByteBuffer() 181 return byteBuffer; in getAsDirectByteBuffer()
|