Home
last modified time | relevance | path

Searched refs:ByteBuffer (Results 1 – 25 of 746) sorted by relevance

12345678910>>...30

/aosp12/art/test/712-varhandle-invocations/src/
H A DVarHandleUnitTestHelpers.java21 import java.nio.ByteBuffer;
61 return getBytesAs_byte(ByteBuffer.wrap(array), index, order); in getBytesAs_byte()
65 return getBytesAs_char(ByteBuffer.wrap(array), index, order); in getBytesAs_char()
73 return getBytesAs_int(ByteBuffer.wrap(array), index, order); in getBytesAs_int()
77 return getBytesAs_long(ByteBuffer.wrap(array), index, order); in getBytesAs_long()
137 setBytesAs_int(ByteBuffer.wrap(array), index, value, order); in setBytesAs_int()
248 return alignedOffset_char(ByteBuffer.wrap(array), start); in alignedOffset_char()
252 return alignedOffset_short(ByteBuffer.wrap(array), start); in alignedOffset_short()
256 return alignedOffset_int(ByteBuffer.wrap(array), start); in alignedOffset_int()
260 return alignedOffset_long(ByteBuffer.wrap(array), start); in alignedOffset_long()
[all …]
/aosp12/frameworks/libs/net/common/device/com/android/net/module/util/
H A DIpv6Utils.java40 import java.nio.ByteBuffer;
52 final ByteBuffer... options) { in buildIcmpv6Packet()
57 for (ByteBuffer option: options) { in buildIcmpv6Packet()
60 final ByteBuffer packet = ByteBuffer.allocate(etherHeaderLen + ipv6HeaderLen in buildIcmpv6Packet()
73 for (ByteBuffer option : options) { in buildIcmpv6Packet()
92 private static ByteBuffer[] buildIcmpv6Payload(final ByteBuffer payloadHeader, in buildIcmpv6Payload()
93 final ByteBuffer... options) { in buildIcmpv6Payload()
94 final ByteBuffer[] payload = new ByteBuffer[options.length + 1]; in buildIcmpv6Payload()
106 final ByteBuffer... options) { in buildRaPacket()
109 final ByteBuffer[] payload = buildIcmpv6Payload( in buildRaPacket()
[all …]
/aosp12/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DColorSpace.java18 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 …]
/aosp12/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
H A DByteBufferReaderTest.java27 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 …]
/aosp12/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/crypto/
H A DTlsSessionTest.java39 import java.nio.ByteBuffer;
75 static final ByteBuffer EMPTY_APPLICATION_BUFFER =
77 static final ByteBuffer EMPTY_PACKET_BUFFER =
80 (ByteBuffer)
85 (ByteBuffer)
92 (ByteBuffer)
198 void setupWrap(ByteBuffer applicationBuffer, ByteBuffer packetBuffer, SSLEngineResult result) in setupWrap()
218 ByteBuffer applicationBuffer, in setupChainedWrap()
219 ByteBuffer packetBuffer, in setupChainedWrap()
240 void setupUnwrap(ByteBuffer applicationBuffer, ByteBuffer packetBuffer, SSLEngineResult result) in setupUnwrap()
[all …]
/aosp12/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/
H A DVenueUrlElementTest.java33 import java.nio.ByteBuffer;
108 ByteBuffer buffer = ByteBuffer.wrap(getTestData(urlList)); in parseTruncatedBuffer()
119 ByteBuffer buffer = ByteBuffer.wrap(getTestData(1, new String())); in parseBufferWithEmptyVenueUrl()
128 ByteBuffer buffer = ByteBuffer.wrap(getTestData(1, TEST_VENUE_URL_INVALID)); in parseBufferWithInvalidVenueUrl()
154 ByteBuffer buffer = ByteBuffer.wrap(getTestData(0, new String())); in parseBufferWithZeroVenueNumber()
164 ByteBuffer buffer = ByteBuffer.wrap(getTestData(0, TEST_VENUE_URL1)); in parseBufferWithZeroVenueNumberAndUrlData()
180 ByteBuffer buffer = ByteBuffer.wrap(getTestData(-7, TEST_VENUE_URL1)); in parseBufferWithNegativeVenueNumberAndUrlData()
207 ByteBuffer buffer = ByteBuffer.wrap(getTestData(urlList)); in parseBufferWithValidVenueUrls()
225 ByteBuffer buffer = ByteBuffer.wrap(getTestData(urlList)); in parseBufferWithValidVenueUrlsAndCapsUrls()
235 ByteBuffer buffer = ByteBuffer.wrap(getTestData(1, TEST_VENUE_URL_INSECURE)); in parseBufferWithInsecureUrlData()
[all …]
H A DHSWanMetricsElementTest.java30 import java.nio.ByteBuffer;
57 private ByteBuffer getTestBuffer() { in getTestBuffer()
58 ByteBuffer buffer = ByteBuffer.allocate(HSWanMetricsElement.EXPECTED_BUFFER_SIZE) in getTestBuffer()
73 private ByteBuffer getUninitializedBuffer() { in getUninitializedBuffer()
75 ByteBuffer buffer = ByteBuffer.allocate(HSWanMetricsElement.EXPECTED_BUFFER_SIZE) in getUninitializedBuffer()
129 HSWanMetricsElement.parse(ByteBuffer.allocate(0)); in parseEmptyBuffer()
140 ByteBuffer buffer = ByteBuffer.allocate(HSWanMetricsElement.EXPECTED_BUFFER_SIZE - 1); in parseBufferWithLessThanExpectedSize()
154 ByteBuffer buffer = ByteBuffer.allocate(HSWanMetricsElement.EXPECTED_BUFFER_SIZE + 1); in parseBufferWithMoreThanExpectedSize()
168 ByteBuffer buffer = getTestBuffer(); in parseBufferWithTestData()
184 ByteBuffer buffer = getUninitializedBuffer(); in testIsInitialized()
H A DANQPParserTest.java32 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()
353 ByteBuffer buffer = ByteBuffer.wrap(getNAIRealmPayload(testBytes)); in parseNAIRealmElement()
373 ByteBuffer buffer = ByteBuffer.wrap(getThreeGPPNetworkPayload( in parseThreeGPPNetworkElement()
387 ByteBuffer buffer = ByteBuffer.wrap( in parseNonHS20VendorSpecificElement()
461 ByteBuffer buffer = ByteBuffer.wrap(data); in parseHSWANMetricsElement()
482 ByteBuffer buffer = ByteBuffer.wrap( in parseHSConnectionCapabilityElement()
[all …]
H A DHSConnectionCapabilityElementTest.java29 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()
H A DVenueNameElementTest.java32 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()
H A DNAIRealmDataTest.java29 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()
/aosp12/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/
H A DPacketUtils.java25 import java.nio.ByteBuffer;
111 public ByteBuffer buildHeader() { in buildHeader()
112 ByteBuffer bb = ByteBuffer.allocate(DATA_BUFFER_LEN); in buildHeader()
174 ByteBuffer bb = ByteBuffer.allocate(DATA_BUFFER_LEN); in getPacketBytes()
220 ByteBuffer bb = ByteBuffer.allocate(DATA_BUFFER_LEN); in getPacketBytes()
256 ByteBuffer bb = ByteBuffer.allocate(DATA_BUFFER_LEN); in getPacketBytes()
271 ByteBuffer payloadBuffer = ByteBuffer.allocate(DATA_BUFFER_LEN); in addPacketBytes()
349 ByteBuffer bb = ByteBuffer.allocate(DATA_BUFFER_LEN); in getPacketBytes()
356 ByteBuffer espPayloadBuffer = ByteBuffer.allocate(DATA_BUFFER_LEN); in addPacketBytes()
380 ByteBuffer paddedPayload = ByteBuffer.allocate(paddedLen); in getCiphertext()
[all …]
/aosp12/frameworks/base/core/java/android/util/apk/
H A DVerityBuilder.java24 import java.nio.ByteBuffer;
56 public final ByteBuffer verityData;
97 ByteBuffer output = bufferFactory.create( in generateVerityTreeInternal()
138 ByteBuffer output = bufferFactory.create( in generateFsVerityRootHash()
156 ByteBuffer footer = ByteBuffer.allocate(CHUNK_SIZE_BYTES).order(ByteOrder.LITTLE_ENDIAN); in generateApkVerityRootHash()
207 private final ByteBuffer mOutput;
331 ByteBuffer alternativeCentralDirOffset = ByteBuffer.allocate( in generateApkVerityDigestAtLeafLevel()
415 private static ByteBuffer generateApkVerityHeader(ByteBuffer buffer, long fileSize, in generateApkVerityHeader()
445 private static ByteBuffer generateApkVerityExtensions(ByteBuffer buffer, in generateApkVerityExtensions()
548 private static ByteBuffer slice(ByteBuffer buffer, int begin, int end) { in slice()
[all …]
H A DZipUtils.java23 import java.nio.ByteBuffer;
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()
222 ByteBuffer zipEndOfCentralDirectory, long offset) { in setZipEocdCentralDirectoryOffset()
242 private static void assertByteOrderLittleEndian(ByteBuffer buffer) { in assertByteOrderLittleEndian()
248 private static int getUnsignedInt16(ByteBuffer buffer, int offset) { in getUnsignedInt16()
252 private static long getUnsignedInt32(ByteBuffer buffer, int offset) { in getUnsignedInt32()
[all …]
H A DApkSigningBlockUtils.java27 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 …]
/aosp12/packages/modules/Connectivity/Tethering/tests/privileged/src/android/net/ip/
H A DDadProxyTest.java55 import java.nio.ByteBuffer;
145 private static ByteBuffer createDadPacket(int type) { in createDadPacket()
150 final ByteBuffer buf = ByteBuffer.allocate(icmpLen + IPV6_HEADER_LEN + ETH_HEADER_LEN); in createDadPacket()
222 final ByteBuffer buffer = ByteBuffer.wrap(p); in waitForPacket()
229 private ByteBuffer copy(ByteBuffer buf) { in copy()
232 return ByteBuffer.wrap(buf.array().clone()); in copy()
246 ByteBuffer in, TapPacketReader inReader, ByteBuffer out, TapPacketReader outReader) in receivePacketAndMaybeExpectForwarded()
284 ByteBuffer out = copy(na); in testNaForwardingFromUpstreamToTether()
296 ByteBuffer out = copy(na); in testNaForwardingFromTetherToUpstream()
307 ByteBuffer out = copy(ns); in testNsForwardingFromTetherToUpstream()
[all …]
/aosp12/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/message/simaka/attributes/
H A DAtIdReqTest.java45 import java.nio.ByteBuffer;
59 ByteBuffer input = ByteBuffer.wrap(AT_PERMANENT_ID_REQ); in testDecodeAtPermanentIdReq()
71 ByteBuffer input = ByteBuffer.wrap(PERMANENT_ID_INVALID_LENGTH); in testDecodeAtPermanentIdReqInvalidLength()
82 ByteBuffer result = ByteBuffer.allocate(EXPECTED_LENGTH); in testEncodeAtPermanentIdReq()
90 ByteBuffer input = ByteBuffer.wrap(AT_ANY_ID_REQ); in testDecodeAtAnyIdReq()
102 ByteBuffer input = ByteBuffer.wrap(ANY_ID_INVALID_LENGTH); in testDecodeAtAnyIdReqInvalidLength()
113 ByteBuffer result = ByteBuffer.allocate(EXPECTED_LENGTH); in testEncodeAtAnyIdReq()
121 ByteBuffer input = ByteBuffer.wrap(AT_FULL_AUTH_ID_REQ); in testDecodeAtFullauthIdReq()
133 ByteBuffer input = ByteBuffer.wrap(FULL_AUTH_ID_INVALID_LENGTH); in testDecodeAtFullauthIdReqInvalidLength()
144 ByteBuffer result = ByteBuffer.allocate(EXPECTED_LENGTH); in testEncodeAtFullauthIdReq()
H A DAtResTest.java40 import java.nio.ByteBuffer;
52 ByteBuffer input = ByteBuffer.wrap(AT_RES); in testDecode()
64 ByteBuffer input = ByteBuffer.wrap(AT_RES_INVALID_RES_LENGTH); in testDecodeInvalidResLength()
74 ByteBuffer input = ByteBuffer.wrap(AT_RES_SHORT_RES); in testDecodeShortResLength()
84 ByteBuffer input = ByteBuffer.wrap(AT_RES_LONG_RES); in testDecodeLongResLength()
96 ByteBuffer result = ByteBuffer.allocate(AT_RES.length); in testEncode()
105 ByteBuffer result = ByteBuffer.allocate(AT_RES.length); in testGetAtRes()
/aosp12/packages/modules/IPsec/src/java/com/android/internal/net/eap/message/simaka/
H A DEapSimAkaAttribute.java27 import java.nio.ByteBuffer;
187 public void encode(ByteBuffer buffer) { in encode()
238 public void encode(ByteBuffer byteBuffer) { in encode()
282 public void encode(ByteBuffer byteBuffer) { in encode()
323 public void encode(ByteBuffer byteBuffer) { in encode()
376 public void encode(ByteBuffer byteBuffer) { in encode()
474 public void encode(ByteBuffer byteBuffer) { in encode()
554 public void encode(ByteBuffer byteBuffer) { in encode()
596 public void encode(ByteBuffer byteBuffer) { in encode()
628 public void encode(ByteBuffer byteBuffer) { in encode()
[all …]
/aosp12/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
H A DPacketUtils.java29 import java.nio.ByteBuffer;
152 ByteBuffer bb = ByteBuffer.allocate(DATA_BUFFER_LEN); in buildHeader()
214 ByteBuffer bb = ByteBuffer.allocate(DATA_BUFFER_LEN); in getPacketBytes()
260 ByteBuffer bb = ByteBuffer.allocate(DATA_BUFFER_LEN); in getPacketBytes()
296 ByteBuffer bb = ByteBuffer.allocate(DATA_BUFFER_LEN); in getPacketBytes()
311 ByteBuffer payloadBuffer = ByteBuffer.allocate(DATA_BUFFER_LEN); in addPacketBytes()
428 ByteBuffer bb = ByteBuffer.allocate(DATA_BUFFER_LEN); in getPacketBytes()
435 ByteBuffer espPayloadBuffer = ByteBuffer.allocate(DATA_BUFFER_LEN); in addPacketBytes()
523 final ByteBuffer paddedPayload = ByteBuffer.allocate(paddedLen); in getPaddedPayload()
640 final ByteBuffer ivParameterBuffer = ByteBuffer.allocate(saltLen + mIv.length); in getCipherText()
[all …]
/aosp12/frameworks/base/tests/AccessoryDisplay/common/src/com/android/accessorydisplay/common/
H A DBufferPool.java19 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()
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/integrity/parser/
H A DRuleBinaryParserTest.java46 import java.nio.ByteBuffer;
116 ByteBuffer rule = in testBinaryStream_validCompoundFormula_noIndexing()
155 ByteBuffer rule = in testBinaryString_validCompoundFormula_notConnector_noIndexing()
200 ByteBuffer rule = in testBinaryString_validCompoundFormula_andConnector_noIndexing()
248 ByteBuffer rule = in testBinaryString_validCompoundFormula_orConnector_noIndexing()
287 ByteBuffer rule = in testBinaryString_validAtomicFormula_stringValue_noIndexing()
319 ByteBuffer rule = in testBinaryString_validAtomicFormula_hashedValue_noIndexing()
351 ByteBuffer rule = in testBinaryString_validAtomicFormula_integerValue_noIndexing()
379 ByteBuffer rule = in testBinaryString_validAtomicFormula_booleanValue_noIndexing()
406 ByteBuffer rule = in testBinaryString_invalidAtomicFormula_noIndexing()
[all …]
/aosp12/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
H A DIkeDeletePayloadTest.java35 import java.nio.ByteBuffer;
55 ByteBuffer inputBuffer = in testDecodeDeleteIkePayload()
56 ByteBuffer.wrap(TestUtils.hexStringToByteArray(DELETE_IKE_PAYLOAD_HEX_STRING)); in testDecodeDeleteIkePayload()
74 ByteBuffer inputBuffer = in testDecodeDeleteChildPayload()
97 ByteBuffer inputBuffer = ByteBuffer.wrap(deletePayloadBytes); in testDecodeWithInvalidProtocol()
112 ByteBuffer inputBuffer = ByteBuffer.wrap(deletePayloadBytes); in testDecodeWithInvalidSpiSize()
127 ByteBuffer inputBuffer = ByteBuffer.wrap(deletePayloadBytes); in testDecodeWithInvalidNumSpi()
143 ByteBuffer inputBuffer = ByteBuffer.wrap(deletePayloadBytes); in testDecodeWithInvalidNumSpiAndSpiSize()
198 ByteBuffer bb = ByteBuffer.allocate(deletePayload.getPayloadLength()); in testEncodeForIke()
210 ByteBuffer bb = ByteBuffer.allocate(deletePayload.getPayloadLength()); in testEncodeWithSingleChildSa()
[all …]
/aosp12/frameworks/base/opengl/java/android/opengl/
H A DETC1Util.java23 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()
170ByteBuffer dataBuffer = ByteBuffer.allocateDirect(encodedSize).order(ByteOrder.nativeOrder()); in createTexture()
194 ByteBuffer compressedImage = ByteBuffer.allocateDirect(encodedImageSize). in compressTexture()
207 ByteBuffer dataBuffer = texture.getData(); in writeTexture()
212ByteBuffer header = ByteBuffer.allocateDirect(ETC1.ETC_PKM_HEADER_SIZE).order(ByteOrder.nativeOrde… in writeTexture()
/aosp12/frameworks/base/tests/GamePerformance/src/android/gameperformance/
H A DRenderPatch.java18 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()

12345678910>>...30