/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()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | ByteBufferReaderTest.java | 27 import java.nio.ByteBuffer; 45 ByteBuffer buffer = ByteBuffer.wrap(data).order(ByteOrder.LITTLE_ENDIAN); in readIntegerWithBufferUnderflow() 59 ByteBuffer buffer = ByteBuffer.wrap(data).order(ByteOrder.LITTLE_ENDIAN); in readIntegerExceedingMaximumLength() 73 ByteBuffer buffer = ByteBuffer.wrap(data).order(ByteOrder.LITTLE_ENDIAN); in readIntegerLessThanMinimumLength() 86 ByteBuffer buffer = ByteBuffer.wrap(data).order(ByteOrder.LITTLE_ENDIAN); in readIntegerWithMinimumSize() 102 ByteBuffer leBuffer = ByteBuffer.wrap(data).order(ByteOrder.LITTLE_ENDIAN); in readIntegerWithMaximumSize() 108 ByteBuffer beBuffer = ByteBuffer.wrap(data).order(ByteOrder.BIG_ENDIAN); in readIntegerWithMaximumSize() 122 ByteBufferReader.readString(ByteBuffer.wrap(new byte[10]), -1, StandardCharsets.US_ASCII); in readStringWithNegativeSize() 133 ByteBuffer.wrap(new byte[10]), 0, StandardCharsets.US_ASCII); in readStringWithZeroSize() 146 ByteBuffer buffer = ByteBuffer.wrap(expectedValue.getBytes(StandardCharsets.US_ASCII)); in readString() [all …]
|
/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() 74 Pair<ByteBuffer, Long> result = findZipEndOfCentralDirectoryRecord(zip, 0); in findZipEndOfCentralDirectoryRecord() 97 private static Pair<ByteBuffer, Long> findZipEndOfCentralDirectoryRecord( in findZipEndOfCentralDirectoryRecord() 121 ByteBuffer buf = ByteBuffer.allocate(ZIP_EOCD_REC_MIN_SIZE + maxCommentSize); in findZipEndOfCentralDirectoryRecord() 133 ByteBuffer eocd = buf.slice(); in findZipEndOfCentralDirectoryRecord() 144 private static int findZipEndOfCentralDirectoryRecord(ByteBuffer zipContents) { in findZipEndOfCentralDirectoryRecord() 209 public static long getZipEocdCentralDirectoryOffset(ByteBuffer zipEndOfCentralDirectory) { in getZipEocdCentralDirectoryOffset() 222 ByteBuffer zipEndOfCentralDirectory, long offset) { in setZipEocdCentralDirectoryOffset() 235 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() 124 @NonNull ByteBuffer apkDigest, @NonNull SignatureInfo signatureInfo) in generateApkVerityRootHash() 128 ByteBuffer footer = ByteBuffer.allocate(CHUNK_SIZE_BYTES).order(ByteOrder.LITTLE_ENDIAN); in generateApkVerityRootHash() 154 ByteBuffer footer = slice(result.verityData, result.merkleTreeSize, in generateApkVerity() 179 private final ByteBuffer mOutput; [all …]
|
D | ApkSigningBlockUtils.java | 26 import java.nio.ByteBuffer; 61 Pair<ByteBuffer, Long> eocdAndOffsetInFile = getEocd(apk); in findSignature() 62 ByteBuffer eocd = eocdAndOffsetInFile.first; in findSignature() 70 Pair<ByteBuffer, Long> apkSigningBlockAndOffsetInFile = in findSignature() 72 ByteBuffer apkSigningBlock = apkSigningBlockAndOffsetInFile.first; in findSignature() 76 ByteBuffer apkSignatureSchemeBlock = findApkSignatureSchemeBlock(apkSigningBlock, in findSignature() 169 ByteBuffer eocdBuf = signatureInfo.eocd.duplicate(); in verifyIntegrityFor1MbChunkBasedAlgorithm() 333 ByteBuffer buffer = ByteBuffer.wrap(data).order(ByteOrder.LITTLE_ENDIAN); in parseVerityDigestAndVerifySourceLength() 356 public ByteBuffer create(int capacity) { in verifyIntegrityForVerityBasedAlgorithm() 357 return ByteBuffer.allocate(capacity); in verifyIntegrityForVerityBasedAlgorithm() [all …]
|
D | SignatureInfo.java | 19 import java.nio.ByteBuffer; 27 public final ByteBuffer signatureBlock; 39 public final ByteBuffer eocd; 41 SignatureInfo(ByteBuffer signatureBlock, long apkSigningBlockOffset, long centralDirOffset, in SignatureInfo() 42 long eocdOffset, ByteBuffer eocd) { in SignatureInfo()
|
/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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/ |
D | HSConnectionCapabilityElementTest.java | 29 import java.nio.ByteBuffer; 50 private void appendProtocolPortTuple(ByteBuffer buffer, ProtocolPortTuple tuple) { in appendProtocolPortTuple() 62 private ByteBuffer getTestBuffer(ProtocolPortTuple[] tuples) { in getTestBuffer() 63 ByteBuffer buffer = ByteBuffer.allocate(tuples.length * ProtocolPortTuple.RAW_BYTE_SIZE) in getTestBuffer() 81 HSConnectionCapabilityElement.parse(ByteBuffer.allocate(0)); in parseEmptyBuffer() 93 ByteBuffer buffer = ByteBuffer.allocate(ProtocolPortTuple.RAW_BYTE_SIZE - 1); in parseBufferWithLessThanMinimumSize() 108 ByteBuffer buffer = ByteBuffer.allocate(ProtocolPortTuple.RAW_BYTE_SIZE + 1); in parseBufferWithIncompleteTupleBytes() 123 ByteBuffer buffer = getTestBuffer(new ProtocolPortTuple[] {TEST_TUPLE1, TEST_TUPLE2}); in parseBufferWithTestData()
|
D | NAIRealmDataTest.java | 29 import java.nio.ByteBuffer; 43 NAIRealmData.parse(ByteBuffer.wrap(new byte[0])); in parseEmptyBuffer() 54 ByteBuffer buffer = ByteBuffer.wrap(NAIRealmDataTestUtil.TEST_REAML_WITH_UTF8_DATA_BYTES); in parseTruncatedBuffer() 67 ByteBuffer buffer = ByteBuffer.wrap(NAIRealmDataTestUtil.TEST_REAML_WITH_UTF8_DATA_BYTES); in parseBufferWithUTF8EncodedNAIRealmData() 79 ByteBuffer buffer = ByteBuffer.wrap( in parseBufferWithNonUTF8EncodedNAIRealmData()
|
D | ANQPParserTest.java | 32 import java.nio.ByteBuffer; 186 ByteBuffer buffer = ByteBuffer.allocate(HSWanMetricsElement.EXPECTED_BUFFER_SIZE) in getHSWanMetricsPayload() 281 ByteBuffer buffer = ByteBuffer.wrap(getVenueNamePayload(language, text)); in parseVenueNameElement() 303 ByteBuffer buffer = ByteBuffer.wrap(new byte[] {(byte) ipAddressAvailability}); in parseIPAddressTypeAvailabilityElement() 319 ByteBuffer buffer = ByteBuffer.wrap(getDomainNamePayload(testNames)); in parseDomainNameElement() 336 ByteBuffer buffer = ByteBuffer.wrap(getRoamingConsortiumPayload(ois, oisLength)); in parseRoamingConsortium() 353 ByteBuffer buffer = ByteBuffer.wrap(getNAIRealmPayload(testBytes)); in parseNAIRealmElement() 373 ByteBuffer buffer = ByteBuffer.wrap(getThreeGPPNetworkPayload( in parseThreeGPPNetworkElement() 387 ByteBuffer buffer = ByteBuffer.wrap( in parseNonHS20VendorSpecificElement() 414 Constants.ANQPElementType.ANQPVendorSpec, ByteBuffer.wrap(data))); in parseVendorSpecificElementWithHSFriendlyName() [all …]
|
D | VenueNameElementTest.java | 32 import java.nio.ByteBuffer; 88 VenueNameElement.parse(ByteBuffer.allocate(0)); in parseEmptyBuffer() 99 ByteBuffer buffer = ByteBuffer.wrap(getTestData(new String[] {TEST_VENUE_NAME1})); in parseTruncatedBuffer() 113 ByteBuffer buffer = ByteBuffer.wrap(getTestData(new String[0])); in parseBufferWithEmptyVenueName() 130 ByteBuffer buffer = ByteBuffer.wrap( in parseBufferWithValidVenueNames() 147 ByteBuffer buffer = ByteBuffer.wrap(getTestData(new String[] {text})); in parseBufferWithMaxLengthVenueName() 168 ByteBuffer buffer = ByteBuffer.wrap(getTestData(new String[] {text})); in parseBufferWithVenueNameLengthExceedMax()
|
D | ProtocolPortTupleTest.java | 28 import java.nio.ByteBuffer; 48 private ByteBuffer getTestBuffer(int protocol, int port, int status) { in getTestBuffer() 49 ByteBuffer buffer = ByteBuffer.allocate(ProtocolPortTuple.RAW_BYTE_SIZE) in getTestBuffer() 65 ProtocolPortTuple.parse(ByteBuffer.allocate(0)); in parseEmptyBuffer() 76 ByteBuffer buffer = ByteBuffer.allocate(ProtocolPortTuple.RAW_BYTE_SIZE - 1); in parseBufferWithIncompleteData() 90 ByteBuffer buffer = getTestBuffer(TEST_PROTOCOL, TEST_PORT, TEST_STATUS); in parseBufferWithTestData()
|
D | IPAddressTypeAvailabilityElementTest.java | 28 import java.nio.ByteBuffer; 51 IPAddressTypeAvailabilityElement.parse(ByteBuffer.allocate(0)); in parseBufferEmptyBuffer() 62 ByteBuffer buffer = ByteBuffer.allocate( in parseBufferWithExcessData() 67 IPAddressTypeAvailabilityElement.parse(ByteBuffer.allocate(0)); in parseBufferWithExcessData() 78 ByteBuffer buffer = ByteBuffer.allocate( in parseBufferWithTestData()
|
D | HSWanMetricsElementTest.java | 28 import java.nio.ByteBuffer; 55 private ByteBuffer getTestBuffer() { in getTestBuffer() 56 ByteBuffer buffer = ByteBuffer.allocate(HSWanMetricsElement.EXPECTED_BUFFER_SIZE) in getTestBuffer() 118 HSWanMetricsElement.parse(ByteBuffer.allocate(0)); in parseEmptyBuffer() 129 ByteBuffer buffer = ByteBuffer.allocate(HSWanMetricsElement.EXPECTED_BUFFER_SIZE - 1); in parseBufferWithLessThanExpectedSize() 143 ByteBuffer buffer = ByteBuffer.allocate(HSWanMetricsElement.EXPECTED_BUFFER_SIZE + 1); in parseBufferWithMoreThanExpectedSize() 157 ByteBuffer buffer = getTestBuffer(); in parseBufferWithTestData()
|
D | HSOsuProvidersElementTest.java | 33 import java.nio.ByteBuffer; 77 HSOsuProvidersElement.parse(ByteBuffer.allocate(0)); in parseEmptyBuffer() 88 ByteBuffer buffer = ByteBuffer.wrap(getTestData(TEST_OSU_SSID_BYTES)); in parseTruncatedBuffer() 102 ByteBuffer buffer = ByteBuffer.wrap(getTestData(invalidSsidBytes)); in parseBufferWithInvalidLength() 114 ByteBuffer buffer = ByteBuffer.wrap(getTestData(TEST_OSU_SSID_BYTES)); in parseBufferWithTestData()
|
D | HSIconFileElementTest.java | 30 import java.nio.ByteBuffer; 70 HSIconFileElement.parse(ByteBuffer.allocate(0)); in parseEmptyBuffer() 81 ByteBuffer buffer = ByteBuffer.wrap(getTestData(HSIconFileElement.STATUS_CODE_SUCCESS)); in parseTruncatedBuffer() 94 ByteBuffer buffer = ByteBuffer.wrap(getTestData(HSIconFileElement.STATUS_CODE_SUCCESS)); in parseBufferWithIconData() 108 ByteBuffer buffer = in parseBufferWithoutIconData() 109 ByteBuffer.wrap(getTestData(HSIconFileElement.STATUS_CODE_FILE_NOT_FOUND)); in parseBufferWithoutIconData()
|
D | RoamingConsortiumElementTest.java | 34 import java.nio.ByteBuffer; 115 RoamingConsortiumElement element = RoamingConsortiumElement.parse(ByteBuffer.allocate(0)); in parseEmptyBuffer() 127 ByteBuffer buffer = ByteBuffer.wrap(getDefaultTestData()); in parseTruncatedBuffer() 143 ByteBuffer buffer = ByteBuffer.wrap(getDefaultTestData()); in parseBufferWithDefaultTestData() 155 ByteBuffer buffer = ByteBuffer.allocate(1); in parseBufferWithOILengthLessThanMinimum() 169 ByteBuffer buffer = ByteBuffer.allocate(1); in parseBufferWithOILengthMoreThanMaximum()
|
D | HSFriendlyNameElementTest.java | 32 import java.nio.ByteBuffer; 88 assertTrue(HSFriendlyNameElement.parse(ByteBuffer.allocate(0)).getNames().isEmpty()); in parseBufferWithEmptyBuffer() 101 ByteBuffer buffer = ByteBuffer.allocate(testData.length - 1); in parseBufferWithTruncatedByte() 116 ByteBuffer buffer = ByteBuffer.allocate(testData.length); in parseBufferWithDefaultTestData() 142 ByteBuffer buffer = ByteBuffer.allocate(testData.length); in parseBufferWithMaxLengthOperatoreName() 166 ByteBuffer buffer = ByteBuffer.allocate(testData.length); in parseBufferWithOperatorNameLengthExceedMax()
|
/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; 116 ByteBuffer rule = in testBinaryStream_validCompoundFormula_noIndexing() 117 ByteBuffer.allocate(DEFAULT_FORMAT_VERSION_BYTES.length + ruleBytes.length); in testBinaryStream_validCompoundFormula_noIndexing() 155 ByteBuffer rule = in testBinaryString_validCompoundFormula_notConnector_noIndexing() 156 ByteBuffer.allocate(DEFAULT_FORMAT_VERSION_BYTES.length + ruleBytes.length); in testBinaryString_validCompoundFormula_notConnector_noIndexing() 200 ByteBuffer rule = in testBinaryString_validCompoundFormula_andConnector_noIndexing() 201 ByteBuffer.allocate(DEFAULT_FORMAT_VERSION_BYTES.length + ruleBytes.length); in testBinaryString_validCompoundFormula_andConnector_noIndexing() 248 ByteBuffer rule = in testBinaryString_validCompoundFormula_orConnector_noIndexing() 249 ByteBuffer.allocate(DEFAULT_FORMAT_VERSION_BYTES.length + ruleBytes.length); in testBinaryString_validCompoundFormula_orConnector_noIndexing() 287 ByteBuffer rule = in testBinaryString_validAtomicFormula_stringValue_noIndexing() [all …]
|
/frameworks/base/core/java/android/net/util/ |
D | IpUtils.java | 23 import java.nio.ByteBuffer; 46 private static int checksum(ByteBuffer buf, int seed, int start, int end) { in checksum() 83 ByteBuffer buf, int headerOffset, int protocol, int transportLen) { in pseudoChecksumIPv4() 93 ByteBuffer buf, int headerOffset, int protocol, int transportLen) { in pseudoChecksumIPv6() 101 private static byte ipversion(ByteBuffer buf, int headerOffset) { in ipversion() 105 public static short ipChecksum(ByteBuffer buf, int headerOffset) { in ipChecksum() 110 private static short transportChecksum(ByteBuffer buf, int protocol, in transportChecksum() 132 public static short udpChecksum(ByteBuffer buf, int ipOffset, int transportOffset) { in udpChecksum() 137 public static short tcpChecksum(ByteBuffer buf, int ipOffset, int transportOffset, in tcpChecksum()
|
/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/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;
|