/cts/tests/tests/media/libaudiojni/ |
D | audio-metadata-native.cpp | 66 jobject byteBuffer = env->CallStaticObjectMethod( in Java_android_media_cts_AudioMetadataTest_nativeGetByteBuffer() local 72 if (byteBuffer == nullptr) { in Java_android_media_cts_AudioMetadataTest_nativeGetByteBuffer() 77 uint8_t* byteBufferAddr = (uint8_t*)env->GetDirectBufferAddress(byteBuffer); in Java_android_media_cts_AudioMetadataTest_nativeGetByteBuffer() 79 return byteBuffer; in Java_android_media_cts_AudioMetadataTest_nativeGetByteBuffer()
|
/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/src/android/media/cts/ |
D | MediaSyncTest.java | 249 MediaSync sync, ByteBuffer byteBuffer, int bufferIndex) { in runCheckAudioBuffer() 252 decoderAudio.checkReturnedAudioBuffer(byteBuffer, bufferIndex); in runCheckAudioBuffer() 308 MediaSync sync, ByteBuffer byteBuffer, int bufferIndex) { in runFlush() 506 MediaSync sync, ByteBuffer byteBuffer, int bufferIndex) { in runPlayAV() 614 public AudioBuffer(ByteBuffer byteBuffer, int bufferIndex) { in AudioBuffer() argument 615 mByteBuffer = byteBuffer; in AudioBuffer() 812 public void checkReturnedAudioBuffer(ByteBuffer byteBuffer, int bufferIndex) { in checkReturnedAudioBuffer() argument 815 if (audioBuffer.mByteBuffer != byteBuffer in checkReturnedAudioBuffer()
|
D | DecodeAccuracyTestBase.java | 1031 private ByteBuffer byteBuffer; field in GLSurfaceViewFactory.GLSurfaceViewThread 1056 byteBuffer = ByteBuffer.allocateDirect(VIEW_WIDTH * VIEW_HEIGHT * 4); in run() 1057 byteBuffer.order(ByteOrder.LITTLE_ENDIAN); in run() 1127 byteBuffer = null; in release() 1214 byteBuffer.clear(); in saveFrame() 1216 GLES20.GL_UNSIGNED_BYTE, byteBuffer); in saveFrame() 1229 return byteBuffer; in getByteBuffer() 1509 final ByteBuffer byteBuffer = glSurfaceViewFactory.getByteBuffer(); in run() local 1511 byteBuffer.rewind(); in run() 1512 bitmap.copyPixelsFromBuffer(byteBuffer); in run() [all …]
|
D | AudioRecordTest.java | 237 ByteBuffer byteBuffer = ByteBuffer.allocateDirect(BUFFER_SIZE); in testAudioRecordOP() local 243 mAudioRecord.read(byteBuffer, BUFFER_SIZE); in testAudioRecordOP() 1123 ByteBuffer byteBuffer = in doTest() local 1136 byteBuffer.position(lastPosition); in doTest() 1137 byteBuffer.limit(lastLimit); in doTest() 1138 int ret = blocking ? record.read(byteBuffer, amount) : in doTest() 1139 record.read(byteBuffer, amount, AudioRecord.READ_NON_BLOCKING); in doTest() 1150 assertEquals(lastPosition, byteBuffer.position()); in doTest() 1151 assertEquals(lastLimit, byteBuffer.limit()); in doTest()
|
D | AudioTrackSurroundTest.java | 189 byte[] byteBuffer = loadRawResourceBytes(res); in loadRawResourceShorts() 191 ByteBuffer.wrap(byteBuffer).order(ByteOrder.LITTLE_ENDIAN).asShortBuffer(); in loadRawResourceShorts() 193 short[] mainBuffer = new short[byteBuffer.length / 2]; in loadRawResourceShorts()
|
D | VideoCodecTestBase.java | 930 ByteBuffer byteBuffer = mCodec.getInputBuffer(index); 931 byteBuffer.put(encFrame); 932 byteBuffer.rewind();
|
D | AdaptivePlaybackTest.java | 222 public void bytebuffer() { ex(H264(SW), new EarlyEosTest().byteBuffer()); } in bytebuffer() 1674 public Test byteBuffer() {
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | AnimatedImageDrawableTest.java | 794 ByteBuffer byteBuffer = ByteBuffer.allocateDirect(array.length); in getAsDirectByteBuffer() local 795 byteBuffer.put(array); in getAsDirectByteBuffer() 796 byteBuffer.position(0); in getAsDirectByteBuffer() 797 return byteBuffer; in getAsDirectByteBuffer() 800 private AnimatedImageDrawable createFromByteBuffer(ByteBuffer byteBuffer) { in createFromByteBuffer() argument 801 ImageDecoder.Source src = ImageDecoder.createSource(byteBuffer); in createFromByteBuffer() 815 ByteBuffer byteBuffer = ByteBuffer.wrap(array); in testByteBuffer() local 816 final AnimatedImageDrawable drawable = createFromByteBuffer(byteBuffer); in testByteBuffer() 825 ByteBuffer byteBuffer = ByteBuffer.wrap(array).asReadOnlyBuffer(); in testReadOnlyByteBuffer() local 826 final AnimatedImageDrawable drawable = createFromByteBuffer(byteBuffer); in testReadOnlyByteBuffer() [all …]
|
/cts/tests/media/src/android/mediav2/cts/ |
D | ExtractorUnitTest.java | 633 ByteBuffer byteBuffer = ByteBuffer.allocate(MAX_SAMPLE_SIZE); in testReadSampleDataBeforeSetDataSource() local 636 extractor.readSampleData(byteBuffer, 0) < 0); in testReadSampleDataBeforeSetDataSource() 647 ByteBuffer byteBuffer = ByteBuffer.allocate(MAX_SAMPLE_SIZE); in testReadSampleDataBeforeSelectTrack() local 652 extractor.readSampleData(byteBuffer, 0) < 0); in testReadSampleDataBeforeSelectTrack() 663 ByteBuffer byteBuffer = ByteBuffer.allocate(MAX_SAMPLE_SIZE); in testIfInvalidOffsetIsRejectedByReadSampleData() local 670 extractor.readSampleData(byteBuffer, -1); in testIfInvalidOffsetIsRejectedByReadSampleData() 679 extractor.readSampleData(byteBuffer, MAX_SAMPLE_SIZE - sampleSize + 1); in testIfInvalidOffsetIsRejectedByReadSampleData() 693 ByteBuffer byteBuffer = ByteBuffer.allocate(MAX_SAMPLE_SIZE); in testReadSampleDataAfterRelease() local 696 extractor.readSampleData(byteBuffer, 0); in testReadSampleDataAfterRelease()
|
/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/voiceinteraction/service/src/android/voiceinteraction/service/ |
D | BasicVoiceInteractionService.java | 314 ByteBuffer byteBuffer = sharedMemory.mapReadWrite(); 315 byteBuffer.put(FAKE_BYTE_ARRAY_DATA);
|
/cts/tests/tests/telephony/current/src/android/telephony/cts/ |
D | VisualVoicemailServiceTest.java | 622 ByteBuffer byteBuffer = ByteBuffer.wrap(message.getUserData()); in onReceive() local 624 messageBody.append(decoder.decode(byteBuffer).toString()); in onReceive()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | ImageDecoderTest.java | 169 ByteBuffer byteBuffer = ByteBuffer.allocateDirect(buffer.length); in getAsDirectByteBuffer() local 170 byteBuffer.put(buffer); in getAsDirectByteBuffer() 171 byteBuffer.position(0); in getAsDirectByteBuffer() 172 return byteBuffer; in getAsDirectByteBuffer()
|