/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
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 …]
|
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()
|
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()
|
/frameworks/base/tests/AccessoryDisplay/common/src/com/android/accessorydisplay/common/ |
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()
|
/frameworks/base/core/java/android/util/apk/ |
D | ZipUtils.java | 23 import java.nio.ByteBuffer; 54 static Pair<ByteBuffer, Long> findZipEndOfCentralDirectoryRecord(RandomAccessFile zip) in findZipEndOfCentralDirectoryRecord() 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() 211 public static long getZipEocdCentralDirectoryOffset(ByteBuffer zipEndOfCentralDirectory) { in getZipEocdCentralDirectoryOffset() 224 ByteBuffer zipEndOfCentralDirectory, long offset) { in setZipEocdCentralDirectoryOffset() 237 public static long getZipEocdCentralDirectorySizeBytes(ByteBuffer zipEndOfCentralDirectory) { in getZipEocdCentralDirectorySizeBytes() [all …]
|
D | VerityBuilder.java | 24 import java.nio.ByteBuffer; 56 public final ByteBuffer verityData; 64 private VerityResult(ByteBuffer verityData, int merkleTreeSize, byte[] rootHash) { in VerityResult() 97 ByteBuffer output = bufferFactory.create( in generateVerityTreeInternal() 101 ByteBuffer tree = slice(output, 0, merkleTreeSize); in generateVerityTreeInternal() 108 @NonNull SignatureInfo signatureInfo, @NonNull ByteBuffer footerOutput) in generateApkVerityFooter() 138 ByteBuffer output = bufferFactory.create( in generateFsVerityRootHash() 142 ByteBuffer tree = slice(output, 0, merkleTreeSize); in generateFsVerityRootHash() 163 ByteBuffer footer = slice(result.verityData, result.merkleTreeSize, in generateApkVerity() 188 private final ByteBuffer mOutput; [all …]
|
D | ApkSigningBlockUtils.java | 27 import java.nio.ByteBuffer; 72 Pair<ByteBuffer, Long> eocdAndOffsetInFile = getEocd(apk); in findSignature() 73 ByteBuffer eocd = eocdAndOffsetInFile.first; in findSignature() 81 Pair<ByteBuffer, Long> apkSigningBlockAndOffsetInFile = in findSignature() 83 ByteBuffer apkSigningBlock = apkSigningBlockAndOffsetInFile.first; in findSignature() 87 ByteBuffer apkSignatureSchemeBlock = findApkSignatureSchemeBlock(apkSigningBlock, in findSignature() 211 ByteBuffer eocdBuf = signatureInfo.eocd.duplicate(); in computeContentDigestsPer1MbChunk() 352 ByteBuffer buffer = ByteBuffer.wrap(data).order(ByteOrder.LITTLE_ENDIAN); in parseVerityDigestAndVerifySourceLength() 375 public ByteBuffer create(int capacity) { in verifyIntegrityForVerityBasedAlgorithm() 376 return ByteBuffer.allocate(capacity); in verifyIntegrityForVerityBasedAlgorithm() [all …]
|
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()
|
D | SourceStampVerifier.java | 38 import java.nio.ByteBuffer; 169 ByteBuffer sourceStampBlock = signatureInfo.signatureBlock; in verify() 170 ByteBuffer sourceStampBlockData = in verify() 177 ByteBuffer signedSignatureSchemes = in verify() 179 Map<Integer, ByteBuffer> signedSignatureSchemeData = new HashMap<>(); in verify() 181 ByteBuffer signedSignatureScheme = in verify() 194 ByteBuffer signatures = ApkSigningBlockUtils.getLengthPrefixedSlice( in verify() 205 ByteBuffer stampAttributeData = getLengthPrefixedSlice(sourceStampBlockData); in verify() 206 ByteBuffer stampAttributeDataSignatures = getLengthPrefixedSlice(sourceStampBlockData); in verify() 235 ByteBuffer sourceStampBlockData, byte[] sourceStampCertificateDigest) in verifySourceStampCertificate() [all …]
|
D | ByteBufferDataSource.java | 20 import java.nio.ByteBuffer; 31 private final ByteBuffer mBuf; 33 ByteBufferDataSource(ByteBuffer buf) { in ByteBufferDataSource() 56 ByteBuffer region; in feedIntoDataDigester()
|
/frameworks/base/tests/GamePerformance/src/android/gameperformance/ |
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()
|
/frameworks/base/opengl/java/android/opengl/ |
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()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/parser/ |
D | RuleBinaryParserTest.java | 46 import java.nio.ByteBuffer; 118 ByteBuffer rule = in testBinaryStream_validCompoundFormula_noIndexing() 119 ByteBuffer.allocate(DEFAULT_FORMAT_VERSION_BYTES.length + ruleBytes.length); in testBinaryStream_validCompoundFormula_noIndexing() 157 ByteBuffer rule = in testBinaryString_validCompoundFormula_notConnector_noIndexing() 158 ByteBuffer.allocate(DEFAULT_FORMAT_VERSION_BYTES.length + ruleBytes.length); in testBinaryString_validCompoundFormula_notConnector_noIndexing() 202 ByteBuffer rule = in testBinaryString_validCompoundFormula_andConnector_noIndexing() 203 ByteBuffer.allocate(DEFAULT_FORMAT_VERSION_BYTES.length + ruleBytes.length); in testBinaryString_validCompoundFormula_andConnector_noIndexing() 250 ByteBuffer rule = in testBinaryString_validCompoundFormula_orConnector_noIndexing() 251 ByteBuffer.allocate(DEFAULT_FORMAT_VERSION_BYTES.length + ruleBytes.length); in testBinaryString_validCompoundFormula_orConnector_noIndexing() 289 ByteBuffer rule = in testBinaryString_validAtomicFormula_stringValue_noIndexing() [all …]
|
/frameworks/base/keystore/java/android/security/ |
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()
|
/frameworks/base/graphics/java/android/graphics/fonts/ |
D | FontFileUtil.java | 26 import java.nio.ByteBuffer; 75 public static final int analyzeStyle(@NonNull ByteBuffer buffer, in analyzeStyle() 154 public static long getRevision(@NonNull ByteBuffer buffer, @IntRange(from = 0) int index) { in getRevision() 168 public static String getPostScriptName(@NonNull ByteBuffer buffer, in getPostScriptName() 185 public static int isPostScriptType1Font(@NonNull ByteBuffer buffer, in isPostScriptType1Font() 194 public static int isCollectionFont(@NonNull ByteBuffer buffer) { in isCollectionFont() 195 ByteBuffer copied = buffer.slice(); in isCollectionFont() 207 private static int getUInt16(ByteBuffer buffer, int offset) { in getUInt16() 218 public static Set<Integer> getSupportedAxes(@NonNull ByteBuffer buffer, int index) { in getSupportedAxes() 275 private static native long nGetFontRevision(@NonNull ByteBuffer buffer, in nGetFontRevision() [all …]
|
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/presentation/ |
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;
|
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/ |
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()
|
/frameworks/ex/camera2/extensions/advancedSample/src/java/androidx/camera/extensions/impl/advanced/ |
D | JpegEncoder.java | 27 import java.nio.ByteBuffer; 92 ByteBuffer yBuf, int yPStride, int yRStride, in compressJpegFromYUV420pNative() 93 ByteBuffer cbBuf, int cbPStride, int cbRStride, in compressJpegFromYUV420pNative() 94 ByteBuffer crBuf, int crPStride, int crRStride, in compressJpegFromYUV420pNative() 95 ByteBuffer outBuf, int outBufCapacity, in compressJpegFromYUV420pNative() 104 ByteBuffer jpegBuffer = jpegImage.getPlanes()[0].getBuffer(); in encodeToJpeg()
|
/frameworks/libs/systemui/toruslib/torus-utils/src/main/java/com/google/android/torus/utils/extensions/ |
D | AssetManagerExt.kt | 20 import java.nio.ByteBuffer in <lambda>() 31 fun AssetManager.readUncompressedAsset(assetPathAndName: String): ByteBuffer { in <lambda>() 35 val dst = ByteBuffer.allocate(fd.length.toInt()) in <lambda>() 51 fun AssetManager.readAsset(assetPathAndName: String): ByteBuffer { in readAsset() 55 val dst = ByteBuffer.allocate(byteArray.size) in readAsset()
|
/frameworks/base/core/java/android/os/incremental/ |
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() 297 return ByteBuffer.wrap(buffer).order(ByteOrder.LITTLE_ENDIAN).getInt(); in readIntLE() 301 final byte[] buffer = ByteBuffer.wrap(new byte[4]).order(ByteOrder.LITTLE_ENDIAN).putInt( in writeIntLE() 321 private static byte[] readBytes(ByteBuffer buffer) throws IOException { in readBytes() [all …]
|
/frameworks/base/services/core/java/com/android/server/am/ |
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()
|
/frameworks/native/opengl/tests/gldual/src/com/android/gldual/ |
D | TriangleRenderer.java | 19 import java.nio.ByteBuffer; 121 ByteBuffer vbb = ByteBuffer.allocateDirect(VERTS * 3 * 4); in Triangle() 125 ByteBuffer tbb = ByteBuffer.allocateDirect(VERTS * 2 * 4); in Triangle() 128 ByteBuffer ibb = ByteBuffer.allocateDirect(VERTS * 2); in Triangle()
|
/frameworks/base/media/java/android/media/ |
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()
|
/frameworks/base/apct-tests/perftests/core/src/android/libcore/regression/ |
D | ByteBufferPerfTest.java | 34 import java.nio.ByteBuffer; 85 public static ByteBuffer newBuffer( in newBuffer() 88 ByteBuffer result = null; in newBuffer() 91 result = ByteBuffer.allocateDirect(size); in newBuffer() 94 result = ByteBuffer.allocate(size); in newBuffer() 123 ByteBuffer src = ByteBufferPerfTest.newBuffer(byteOrder, aligned, bufferType); in timeByteBuffer_getByte() 137 ByteBuffer src = ByteBufferPerfTest.newBuffer(byteOrder, aligned, bufferType); in timeByteBuffer_getByteArray() 152 ByteBuffer src = ByteBufferPerfTest.newBuffer(byteOrder, aligned, bufferType); in timeByteBuffer_getByte_indexed() 166 ByteBuffer src = ByteBufferPerfTest.newBuffer(byteOrder, aligned, bufferType); in timeByteBuffer_getChar() 196 ByteBuffer src = ByteBufferPerfTest.newBuffer(byteOrder, aligned, bufferType); in timeByteBuffer_getChar_indexed() [all …]
|
/frameworks/base/core/java/android/hardware/usb/ |
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()
|