Home
last modified time | relevance | path

Searched refs:byteArray (Results 1 – 16 of 16) sorted by relevance

/cts/tests/tests/opengl/src/android/opengl/cts/
DByteBufferTest.java70 private static final byte[] byteArray = {0, 63, 127, 127, 15}; field in ByteBufferTest
100 ByteBuffer texelData = ByteBuffer.wrap(byteArray); in testArrayBackedTexImage2d()
115 ByteBuffer bufferData = ByteBuffer.wrap(byteArray); in testArrayBackedBufferData()
131 ByteBuffer texelData = ByteBuffer.wrap(byteArray); in testArraybackedFBTextureReadPixels()
132 ByteBuffer readBuffer = ByteBuffer.allocate(byteArray.length); in testArraybackedFBTextureReadPixels()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0963/src/android/security/cts/CVE_2021_0963/
DDeviceTest.java67 byte[] byteArray = null; in getByteArrayFromRawRes()
71 byteArray = new byte[1024]; in getByteArrayFromRawRes()
72 int nRead = inStream.read(byteArray, 0, byteArray.length); in getByteArrayFromRawRes()
74 outStream.write(byteArray, 0, nRead); in getByteArrayFromRawRes()
76 return byteArray; in getByteArrayFromRawRes()
/cts/tests/tests/media/audio/src/android/media/audio/cts/
DAudioTrackNative.java93 public int write(@NonNull byte[] byteArray, in write() argument
96 mNativeTrackInJavaObj, byteArray, offsetInSamples, sizeInSamples, writeFlags); in write()
159 private static native int nativeWriteByteArray(long track, @NonNull byte[] byteArray, in nativeWriteByteArray() argument
DAudioRecordNative.java91 public int read(@NonNull byte[] byteArray, in read() argument
94 mNativeRecordInJavaObj, byteArray, offsetInSamples, sizeInSamples, readFlags); in read()
157 private static native int nativeReadByteArray(long record, @NonNull byte[] byteArray, in nativeReadByteArray() argument
/cts/tests/tests/media/drmframework/src/android/media/drmframework/cts/
DCodecDecoderDrmTest.java100 byte[] byteArray = new byte[intArray.length]; in convert()
102 byteArray[i] = (byte) intArray[i]; in convert()
104 return byteArray; in convert()
DMediaDrmCodecBlockModelTest.java100 byte[] byteArray = new byte[intArray.length]; in convert()
102 byteArray[i] = (byte)intArray[i]; in convert()
104 return byteArray; in convert()
DMediaDrmCodecCryptoAsyncTest.java124 byte[] byteArray = new byte[intArray.length]; in convert()
126 byteArray[i] = (byte)intArray[i]; in convert()
128 return byteArray; in convert()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DRVCVXCheckTestActivity.java398 byte[] byteArray;
400 byteArray = new byte[rawStream.available()];
401 rawStream.read(byteArray);
404 byteArray = "Unable to load license text.".getBytes();
406 final String licenseText = new String(byteArray);
/cts/tools/release-parser/src/com/android/cts/releaseparser/
DFileParser.java178 public static int getIntLittleEndian(byte[] byteArray, int start) { in getIntLittleEndian() argument
182 answer = (answer << 8) | (byteArray[i] & 0xff); in getIntLittleEndian()
/cts/tests/tests/os/src/android/os/cts/
DBundleTest.java245 byte[] byteArray = mBundle.getByteArray(KEY1); in testGetByteArray()
246 assertNotNull(byteArray); in testGetByteArray()
247 assertEquals(3, byteArray.length); in testGetByteArray()
248 assertEquals(1, byteArray[0]); in testGetByteArray()
249 assertEquals(2, byteArray[1]); in testGetByteArray()
250 assertEquals(3, byteArray[2]); in testGetByteArray()
252 byteArray = mBundle.getByteArray(KEY1); in testGetByteArray()
253 assertNotNull(byteArray); in testGetByteArray()
254 assertEquals(3, byteArray.length); in testGetByteArray()
255 assertEquals(1, byteArray[0]); in testGetByteArray()
[all …]
DParcelTest.java577 byte[] byteArray = {Byte.MAX_VALUE, (byte) 111, (byte) 11, (byte) 1, (byte) 0, in testReadValue()
579 byte[] byteArray2 = new byte[byteArray.length]; in testReadValue()
581 p.writeValue(byteArray); in testReadValue()
584 for (int i = 0; i < byteArray.length; i++) { in testReadValue()
585 assertEquals(byteArray[i], byteArray2[i]); in testReadValue()
/cts/tests/tests/media/common/src/android/media/cts/
DMediaCodecBlockModelHelper.java320 byte[] byteArray = new byte[intArray.length]; in convert()
322 byteArray[i] = (byte)intArray[i]; in convert()
324 return byteArray; in convert()
/cts/tests/tests/media/audio/jni/
Daudio-track-native.cpp559 jbyteArray byteArray, jint offsetInSamples, jint sizeInSamples, jint writeFlags) in Java_android_media_audio_cts_AudioTrackNative_nativeWriteByteArray() argument
562 byteArray, offsetInSamples, sizeInSamples, writeFlags); in Java_android_media_audio_cts_AudioTrackNative_nativeWriteByteArray()
563 return writeArray(env, clazz, jtrack, byteArray, offsetInSamples, sizeInSamples, writeFlags); in Java_android_media_audio_cts_AudioTrackNative_nativeWriteByteArray()
Daudio-record-native.cpp653 jbyteArray byteArray, jint offsetInSamples, jint sizeInSamples, jint readFlags) in Java_android_media_audio_cts_AudioRecordNative_nativeReadByteArray() argument
655 return readArray(env, clazz, jrecord, byteArray, offsetInSamples, sizeInSamples, readFlags); in Java_android_media_audio_cts_AudioRecordNative_nativeReadByteArray()
/cts/tests/tests/media/drmframework/jni/
Dnative-mediadrm-jni.cpp120 JNIEnv* env, jbyteArray const &byteArray) { in jbyteArrayToVector() argument
122 env->GetByteArrayElements(byteArray, /*is_copy*/NULL)); in jbyteArrayToVector()
124 for (jsize i = 0; i < env->GetArrayLength(byteArray); ++i) { in jbyteArrayToVector()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DDrawableTest.java179 byte[] byteArray = bytes.toByteArray(); in testCreateFromIncomplete()
180 target.write(byteArray, 0, byteArray.length / 2); in testCreateFromIncomplete()