/aosp14/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
H A D | ColorSpace.java | 18 import java.nio.ByteBuffer; 42 ByteBuffer input, ByteBuffer output, int width, int height) { in convertYuv420pToRgba8888() 61 ByteBuffer input, ByteBuffer output, int width, int height) { in convertArgb8888ToRgba8888() 80 ByteBuffer input, ByteBuffer output, int width, int height) { in convertRgba8888ToHsva8888() 99 ByteBuffer input, ByteBuffer output, int width, int height) { in convertRgba8888ToYcbcra8888() 105 private static void expectInputSize(ByteBuffer input, int expectedSize) { in expectInputSize() 113 private static void expectOutputSize(ByteBuffer output, int expectedSize) { in expectOutputSize() 122 ByteBuffer input, ByteBuffer output, int width, int height); in nativeYuv420pToRgba8888() 125 ByteBuffer input, ByteBuffer output, int width, int height); in nativeArgb8888ToRgba8888() 128 ByteBuffer input, ByteBuffer output, int width, int height); in nativeRgba8888ToHsva8888() [all …]
|
H A D | PixelUtils.java | 18 import java.nio.ByteBuffer; 44 public static void copyPixels(ByteBuffer input, in copyPixels() 45 ByteBuffer output, in copyPixels() 67 private static native void nativeCopyPixels(ByteBuffer input, in nativeCopyPixels() 68 ByteBuffer output, in nativeCopyPixels()
|
H A D | GLToolbox.java | 24 import java.nio.ByteBuffer; 70 public static void readFbo(int fboId, ByteBuffer pixels, int width, int height) { in readFbo() 76 public static void readTarget(RenderTarget target, ByteBuffer pixels, int width, int height) { in readTarget() 104 setTexturePixels(texId, target, (ByteBuffer)null, width, height); in allocateTexturePixels() 114 public static void setTexturePixels(int texId, int target, ByteBuffer pixels, in setTexturePixels() 120 pixels = ByteBuffer.allocateDirect(width * height * 4); in setTexturePixels() 151 public static void setVboData(int vboId, ByteBuffer data) { in setVboData() 159 ByteBuffer buffer = ByteBuffer.allocateDirect(len).order(ByteOrder.nativeOrder()); in setVboFloats()
|
/aosp14/frameworks/base/tests/AccessoryDisplay/common/src/com/android/accessorydisplay/common/ |
H A D | BufferPool.java | 19 import java.nio.ByteBuffer; 28 private final ByteBuffer[] mBuffers; 35 mBuffers = new ByteBuffer[maxBuffers]; in BufferPool() 38 public ByteBuffer acquire(int needed) { in acquire() 48 return ByteBuffer.allocate(chooseCapacity(mInitialBufferSize, needed)); in acquire() 59 public void release(ByteBuffer buffer) { in release() 67 public ByteBuffer grow(ByteBuffer buffer, int needed) { in grow() 70 final ByteBuffer oldBuffer = buffer; in grow() 72 buffer = ByteBuffer.allocate(capacity); in grow()
|
/aosp14/frameworks/base/core/java/android/util/apk/ |
H A D | ZipUtils.java | 23 import java.nio.ByteBuffer; 75 Pair<ByteBuffer, Long> result = findZipEndOfCentralDirectoryRecord(zip, 0); in findZipEndOfCentralDirectoryRecord() 98 private static Pair<ByteBuffer, Long> findZipEndOfCentralDirectoryRecord( in findZipEndOfCentralDirectoryRecord() 123 ByteBuffer buf = ByteBuffer.allocate(ZIP_EOCD_REC_MIN_SIZE + maxCommentSize); in findZipEndOfCentralDirectoryRecord() 135 ByteBuffer eocd = buf.slice(); in findZipEndOfCentralDirectoryRecord() 146 private static int findZipEndOfCentralDirectoryRecord(ByteBuffer zipContents) { in findZipEndOfCentralDirectoryRecord() 224 ByteBuffer zipEndOfCentralDirectory, long offset) { in setZipEocdCentralDirectoryOffset() 244 private static void assertByteOrderLittleEndian(ByteBuffer buffer) { in assertByteOrderLittleEndian() 250 private static int getUnsignedInt16(ByteBuffer buffer, int offset) { in getUnsignedInt16() 254 private static long getUnsignedInt32(ByteBuffer buffer, int offset) { in getUnsignedInt32() [all …]
|
H A D | VerityBuilder.java | 24 import java.nio.ByteBuffer; 56 public final ByteBuffer verityData; 97 ByteBuffer output = bufferFactory.create( in generateVerityTreeInternal() 138 ByteBuffer output = bufferFactory.create( in generateFsVerityRootHash() 188 private final ByteBuffer mOutput; 272 @Nullable byte[] salt, ByteBuffer output) in generateFsVerityDigestAtLeafLevel() 312 ByteBuffer alternativeCentralDirOffset = ByteBuffer.allocate( in generateApkVerityDigestAtLeafLevel() 396 private static ByteBuffer generateApkVerityHeader(ByteBuffer buffer, long fileSize, in generateApkVerityHeader() 426 private static ByteBuffer generateApkVerityExtensions(ByteBuffer buffer, in generateApkVerityExtensions() 529 private static ByteBuffer slice(ByteBuffer buffer, int begin, int end) { in slice() [all …]
|
H A D | ApkSigningBlockUtils.java | 27 import java.nio.ByteBuffer; 352 ByteBuffer buffer = ByteBuffer.wrap(data).order(ByteOrder.LITTLE_ENDIAN); in parseVerityDigestAndVerifySourceLength() 600 static ByteBuffer sliceFromTo(ByteBuffer source, int start, int end) { in sliceFromTo() 617 ByteBuffer result = source.slice(); in sliceFromTo() 636 static ByteBuffer getByteBuffer(ByteBuffer source, int size) in getByteBuffer() 649 ByteBuffer result = source.slice(); in getByteBuffer() 658 static ByteBuffer getLengthPrefixedSlice(ByteBuffer source) throws IOException { in getLengthPrefixedSlice() 716 ByteBuffer footer = ByteBuffer.allocate(24); in findApkSigningBlock() 738 ByteBuffer apkSigBlock = ByteBuffer.allocate(totalSize); in findApkSigningBlock() 751 static ByteBuffer findApkSignatureSchemeBlock(ByteBuffer apkSigningBlock, int blockId) in findApkSignatureSchemeBlock() [all …]
|
H A D | SourceStampVerifier.java | 38 import java.nio.ByteBuffer; 164 ByteBuffer sourceStampBlock = signatureInfo.signatureBlock; in verify() 165 ByteBuffer sourceStampBlockData = in verify() 172 ByteBuffer signedSignatureSchemes = in verify() 176 ByteBuffer signedSignatureScheme = in verify() 373 ByteBuffer signatureBlock) throws IOException { in getApkContentDigestsFromSignatureBlock() 375 ByteBuffer signers = getLengthPrefixedSlice(signatureBlock); in getApkContentDigestsFromSignatureBlock() 377 ByteBuffer signer = getLengthPrefixedSlice(signers); in getApkContentDigestsFromSignatureBlock() 378 ByteBuffer signedData = getLengthPrefixedSlice(signer); in getApkContentDigestsFromSignatureBlock() 437 ByteBuffer result = ByteBuffer.allocate(resultSize); in encodeApkContentDigests() [all …]
|
H A D | SignatureInfo.java | 21 import java.nio.ByteBuffer; 30 public final @NonNull ByteBuffer signatureBlock; 42 public final @NonNull ByteBuffer eocd; 44 SignatureInfo(@NonNull ByteBuffer signatureBlock, long apkSigningBlockOffset, in SignatureInfo() 45 long centralDirOffset, long eocdOffset, @NonNull ByteBuffer eocd) { in SignatureInfo()
|
/aosp14/frameworks/base/opengl/java/android/opengl/ |
H A D | ETC1Util.java | 23 import java.nio.ByteBuffer; 85 ByteBuffer decodedData = ByteBuffer.allocateDirect(stride*height) in loadTexture() 117 public ETC1Texture(int width, int height, ByteBuffer data) { in ETC1Texture() 139 public ByteBuffer getData() { return mData; } in getData() 143 private ByteBuffer mData; 160 ByteBuffer headerBuffer = ByteBuffer.allocateDirect(ETC1.ETC_PKM_HEADER_SIZE) in createTexture() 170 … ByteBuffer dataBuffer = ByteBuffer.allocateDirect(encodedSize).order(ByteOrder.nativeOrder()); in createTexture() 194 ByteBuffer compressedImage = ByteBuffer.allocateDirect(encodedImageSize). in compressTexture() 207 ByteBuffer dataBuffer = texture.getData(); in writeTexture() 212 …ByteBuffer header = ByteBuffer.allocateDirect(ETC1.ETC_PKM_HEADER_SIZE).order(ByteOrder.nativeOrde… in writeTexture()
|
/aosp14/frameworks/base/tests/GamePerformance/src/android/gameperformance/ |
H A D | RenderPatch.java | 18 import java.nio.ByteBuffer; 41 private final ByteBuffer mVertexBuffer; 42 private final ByteBuffer mTextureBuffer; 43 private final ByteBuffer mIndexBuffer; 76 mVertexBuffer = ByteBuffer.allocateDirect(pointCount * VERTEX_STRIDE); in RenderPatch() 79 mTextureBuffer = ByteBuffer.allocateDirect(pointCount * TEXTURE_STRIDE); in RenderPatch() 105 ByteBuffer.allocateDirect( in RenderPatch() 139 public ByteBuffer getVertexBuffer() { in getVertexBuffer() 143 public ByteBuffer getTextureBuffer() { in getTextureBuffer() 147 public ByteBuffer getIndexBuffer() { in getIndexBuffer()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/parser/ |
H A D | RuleBinaryParserTest.java | 46 import java.nio.ByteBuffer; 118 ByteBuffer rule = in testBinaryStream_validCompoundFormula_noIndexing() 157 ByteBuffer rule = in testBinaryString_validCompoundFormula_notConnector_noIndexing() 202 ByteBuffer rule = in testBinaryString_validCompoundFormula_andConnector_noIndexing() 250 ByteBuffer rule = in testBinaryString_validCompoundFormula_orConnector_noIndexing() 289 ByteBuffer rule = in testBinaryString_validAtomicFormula_stringValue_noIndexing() 321 ByteBuffer rule = in testBinaryString_validAtomicFormula_hashedValue_noIndexing() 355 ByteBuffer rule = in testBinaryString_validAtomicFormulaWithCertificateLineage() 387 ByteBuffer rule = in testBinaryString_validAtomicFormula_integerValue_noIndexing() 415 ByteBuffer rule = in testBinaryString_validAtomicFormula_booleanValue_noIndexing() [all …]
|
/aosp14/frameworks/base/graphics/java/android/graphics/fonts/ |
H A D | FontFileUtil.java | 25 import java.nio.ByteBuffer; 71 public static final int analyzeStyle(@NonNull ByteBuffer buffer, in analyzeStyle() 150 public static long getRevision(@NonNull ByteBuffer buffer, @IntRange(from = 0) int index) { in getRevision() 164 public static String getPostScriptName(@NonNull ByteBuffer buffer, in getPostScriptName() 181 public static int isPostScriptType1Font(@NonNull ByteBuffer buffer, in isPostScriptType1Font() 190 public static int isCollectionFont(@NonNull ByteBuffer buffer) { in isCollectionFont() 191 ByteBuffer copied = buffer.slice(); in isCollectionFont() 204 private static native long nGetFontRevision(@NonNull ByteBuffer buffer, in nGetFontRevision() 208 private static native String nGetFontPostScriptName(@NonNull ByteBuffer buffer, in nGetFontPostScriptName() 212 private static native int nIsPostScriptType1Font(@NonNull ByteBuffer buffer, in nIsPostScriptType1Font()
|
/aosp14/frameworks/base/core/java/android/hardware/camera2/marshal/impl/ |
H A D | MarshalQueryablePrimitive.java | 26 import java.nio.ByteBuffer; 64 public T unmarshal(ByteBuffer buffer) { in unmarshal() 74 public void marshal(T value, ByteBuffer buffer) { in marshal() 104 private void marshalPrimitive(int value, ByteBuffer buffer) { in marshalPrimitive() 108 private void marshalPrimitive(float value, ByteBuffer buffer) { in marshalPrimitive() 112 private void marshalPrimitive(double value, ByteBuffer buffer) { in marshalPrimitive() 116 private void marshalPrimitive(long value, ByteBuffer buffer) { in marshalPrimitive() 120 private void marshalPrimitive(Rational value, ByteBuffer buffer) { in marshalPrimitive() 125 private void marshalPrimitive(byte value, ByteBuffer buffer) { in marshalPrimitive() 129 private Object unmarshalObject(ByteBuffer buffer) { in unmarshalObject()
|
/aosp14/frameworks/base/keystore/java/android/security/ |
H A D | AuthTokenUtils.java | 23 import java.nio.ByteBuffer; 45 ByteBuffer.wrap(array, 1, 8).order(ByteOrder.nativeOrder()).getLong(); in toHardwareAuthToken() 49 ByteBuffer.wrap(array, 9, 8).order(ByteOrder.nativeOrder()).getLong(); in toHardwareAuthToken() 53 ByteBuffer.wrap(array, 17, 8).order(ByteOrder.nativeOrder()).getLong(); in toHardwareAuthToken() 59 ByteBuffer.wrap(array, 25, 4).order(ByteOrder.BIG_ENDIAN).getInt(); in toHardwareAuthToken() 63 ByteBuffer.wrap(array, 29, 8).order(ByteOrder.BIG_ENDIAN).getLong(); in toHardwareAuthToken()
|
/aosp14/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/presentation/ |
H A D | Cube.java | 19 import java.nio.ByteBuffer; 72 ByteBuffer vbb = ByteBuffer.allocateDirect(vertices.length*4); in Cube() 78 ByteBuffer cbb = ByteBuffer.allocateDirect(colors.length*4); in Cube() 84 mIndexBuffer = ByteBuffer.allocateDirect(indices.length); in Cube() 99 private ByteBuffer mIndexBuffer;
|
/aosp14/frameworks/base/core/java/android/os/incremental/ |
H A D | V4Signature.java | 29 import java.nio.ByteBuffer; 68 ByteBuffer buffer = ByteBuffer.wrap(bytes).order(ByteOrder.LITTLE_ENDIAN); in fromByteArray() 102 return fromByteBuffer(ByteBuffer.wrap(bytes).order(ByteOrder.LITTLE_ENDIAN)); in fromByteArray() 108 public static SigningInfo fromByteBuffer(ByteBuffer buffer) throws IOException { in fromByteBuffer() 132 static SigningInfoBlock fromByteBuffer(ByteBuffer buffer) throws IOException { in fromByteBuffer() 162 ByteBuffer buffer = ByteBuffer.wrap(bytes).order(ByteOrder.LITTLE_ENDIAN); in fromByteArray() 234 ByteBuffer buffer = ByteBuffer.allocate(size).order(ByteOrder.LITTLE_ENDIAN); in getSignedData() 294 return ByteBuffer.wrap(buffer).order(ByteOrder.LITTLE_ENDIAN).getInt(); in readIntLE() 298 final byte[] buffer = ByteBuffer.wrap(new byte[4]).order(ByteOrder.LITTLE_ENDIAN).putInt( in writeIntLE() 318 private static byte[] readBytes(ByteBuffer buffer) throws IOException { in readBytes() [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/am/ |
H A D | LmkdConnection.java | 40 import java.nio.ByteBuffer; 69 public boolean isReplyExpected(ByteBuffer replyBuf, ByteBuffer dataReceived, in isReplyExpected() 101 private final ByteBuffer mInputBuf = 102 ByteBuffer.allocate(LMKD_REPLY_MAX_SIZE); 113 private ByteBuffer mReplyBuf = null; 264 private boolean write(ByteBuffer buf) { in write() 275 private int read(ByteBuffer buf) { in read() 291 public boolean exchange(ByteBuffer req, ByteBuffer repl) { in exchange()
|
/aosp14/frameworks/base/apct-tests/perftests/core/src/android/libcore/regression/ |
H A D | ByteBufferPerfTest.java | 33 import java.nio.ByteBuffer; 84 public static ByteBuffer newBuffer( in newBuffer() 87 ByteBuffer result = null; in newBuffer() 90 result = ByteBuffer.allocateDirect(size); in newBuffer() 93 result = ByteBuffer.allocate(size); in newBuffer() 122 ByteBuffer src = ByteBufferPerfTest.newBuffer(byteOrder, aligned, bufferType); in timeByteBuffer_getByte() 136 ByteBuffer src = ByteBufferPerfTest.newBuffer(byteOrder, aligned, bufferType); in timeByteBuffer_getByteArray() 151 ByteBuffer src = ByteBufferPerfTest.newBuffer(byteOrder, aligned, bufferType); in timeByteBuffer_getByte_indexed() 165 ByteBuffer src = ByteBufferPerfTest.newBuffer(byteOrder, aligned, bufferType); in timeByteBuffer_getChar() 195 ByteBuffer src = ByteBufferPerfTest.newBuffer(byteOrder, aligned, bufferType); in timeByteBuffer_getChar_indexed() [all …]
|
H A D | ByteBufferScalarVersusVectorPerfTest.java | 30 import java.nio.ByteBuffer; 112 ByteBuffer src = ByteBufferPerfTest.newBuffer(byteOrder, aligned, bufferType); in timeManualByteBufferCopy() 113 ByteBuffer dst = ByteBufferPerfTest.newBuffer(byteOrder, aligned, bufferType); in timeManualByteBufferCopy() 127 ByteBuffer src = ByteBuffer.allocate(aligned ? 8192 : 8192 + 1); in timeByteBufferBulkGet() 139 ByteBuffer src = ByteBuffer.allocateDirect(aligned ? 8192 : 8192 + 1); in timeDirectByteBufferBulkGet()
|
/aosp14/frameworks/base/media/java/android/media/ |
H A D | MediaDescrambler.java | 30 import java.nio.ByteBuffer; 54 @NonNull ByteBuffer srcBuf, in descramble() 55 @NonNull ByteBuffer dstBuf, in descramble() 85 @NonNull ByteBuffer src, in descramble() 86 @NonNull ByteBuffer dst, in descramble() 128 @NonNull ByteBuffer srcBuf, in descramble() 129 @NonNull ByteBuffer dstBuf, in descramble() 346 @NonNull ByteBuffer srcBuf, @NonNull ByteBuffer dstBuf, in descramble() 403 @NonNull ByteBuffer srcBuf, int srcOffset, int srcLimit, in native_descramble() 404 ByteBuffer dstBuf, int dstOffset, int dstLimit) throws RemoteException; in native_descramble()
|
/aosp14/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/ |
H A D | CpuVideoTrackDecoder.java | 33 import java.nio.ByteBuffer; 55 private ByteBuffer mDecodedBuffer; 56 private ByteBuffer mUnrotatedBytes; 81 MediaCodec codec, ByteBuffer[] buffers, int bufferIndex, BufferInfo info) { in onDataAvailable() 114 ByteBuffer outBytes = outputVideoFrame.lockBytes(Frame.MODE_WRITE); in copyFrameDataTo() 121 mUnrotatedBytes = ByteBuffer.allocateDirect(mWidth * mHeight * 4); in copyFrameDataTo() 137 private void copyRotate(ByteBuffer input, ByteBuffer output, int rotation) { in copyRotate() 237 ByteBuffer input, ByteBuffer output, int colorFormat, int width, int height) { in convertImage()
|
/aosp14/frameworks/base/core/java/android/hardware/usb/ |
H A D | UsbRequest.java | 29 import java.nio.ByteBuffer; 59 private ByteBuffer mBuffer; 78 private ByteBuffer mTempBuffer; 195 public boolean queue(ByteBuffer buffer, int length) { in queue() 211 /* package */ boolean queueIfConnectionOpen(ByteBuffer buffer, int length) { in queueIfConnectionOpen() 269 public boolean queue(@Nullable ByteBuffer buffer) { in queue() 285 /* package */ boolean queueIfConnectionOpen(@Nullable ByteBuffer buffer) { in queueIfConnectionOpen() 321 mTempBuffer = ByteBuffer.allocateDirect(mBuffer.remaining()); in queueIfConnectionOpen() 444 private native boolean native_queue(ByteBuffer buffer, int offset, int length); in native_queue() 447 private native boolean native_queue_direct(ByteBuffer buffer, int length, boolean out); in native_queue_direct()
|
/aosp14/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
H A D | Frame.java | 23 import java.nio.ByteBuffer; 86 } else if (object instanceof ByteBuffer) { in setObjectValue() 87 setData((ByteBuffer)object); in setObjectValue() 106 public abstract void setData(ByteBuffer buffer, int offset, int length); in setData() 108 public void setData(ByteBuffer buffer) { in setData() 113 setData(ByteBuffer.wrap(bytes, offset, length)); in setData() 116 public abstract ByteBuffer getData(); in getData()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
H A D | FakeGateKeeperService.java | 27 import java.nio.ByteBuffer; 42 ByteBuffer buffer = ByteBuffer.allocate(handle.length); in VerifyHandle() 52 ByteBuffer buffer = ByteBuffer.allocate(1 + Long.BYTES + password.length); in toBytes() 70 ByteBuffer buffer = ByteBuffer.allocate(handle.length); in AuthToken() 79 ByteBuffer buffer = ByteBuffer.allocate(1 + Long.BYTES + Long.BYTES); in toBytes()
|