Home
last modified time | relevance | path

Searched refs:bufferPtr (Results 1 – 6 of 6) sorted by relevance

/aosp12/packages/modules/Wifi/framework/java/android/net/wifi/rtt/
H A DCivicLocation.java125 int bufferPtr = 0; in parseCivicTLVs() local
130 while (bufferPtr < bufferLength) { in parseCivicTLVs()
131 int civicAddressType = civicTLVs[bufferPtr + TLV_TYPE_INDEX] & BYTE_MASK; in parseCivicTLVs()
132 int civicAddressTypeLength = civicTLVs[bufferPtr + TLV_LENGTH_INDEX]; in parseCivicTLVs()
134 if (bufferPtr + TLV_VALUE_INDEX + civicAddressTypeLength > bufferLength) { in parseCivicTLVs()
138 new String(civicTLVs, bufferPtr + TLV_VALUE_INDEX, in parseCivicTLVs()
141 bufferPtr += civicAddressTypeLength + TLV_VALUE_INDEX; in parseCivicTLVs()
H A DResponderLocation.java473 int bufferPtr = 0; in parseInformationElementBuffer() local
482 byte[] leadBufferBytes = Arrays.copyOfRange(buffer, bufferPtr, expectedLeadBytes.length); in parseInformationElementBuffer()
488 bufferPtr += expectedLeadBytes.length; in parseInformationElementBuffer()
490 while (bufferPtr + 1 < bufferLength) { in parseInformationElementBuffer()
491 byte subelement = buffer[bufferPtr++]; in parseInformationElementBuffer()
492 int subelementLength = buffer[bufferPtr++]; in parseInformationElementBuffer()
494 if ((bufferPtr + subelementLength) > bufferLength || subelementLength <= 0) { in parseInformationElementBuffer()
499 Arrays.copyOfRange(buffer, bufferPtr, bufferPtr + subelementLength); in parseInformationElementBuffer()
548 bufferPtr += subelementLength; in parseInformationElementBuffer()
/aosp12/packages/modules/NeuralNetworks/runtime/test/
H A DTestMemory.cpp113 void* bufferPtr = nullptr; in TEST_F() local
114 ASSERT_EQ(AHardwareBuffer_lock(buffer, desc.usage, -1, NULL, &bufferPtr), 0); in TEST_F()
115 memcpy((uint8_t*)bufferPtr + offsetForMatrix2, matrix2, sizeof(matrix2)); in TEST_F()
116 memcpy((uint8_t*)bufferPtr + offsetForMatrix3, matrix3, sizeof(matrix3)); in TEST_F()
H A DTestTrivialModel.cpp165 void* bufferPtr = nullptr; in testAddTwoWithHardwareBufferInput() local
166 ASSERT_EQ(AHardwareBuffer_lock(matrix1Buffer, cpuUsage, -1, NULL, &bufferPtr), 0); in testAddTwoWithHardwareBufferInput()
167 memcpy((uint8_t*)bufferPtr, matrix1, sizeof(matrix1)); in testAddTwoWithHardwareBufferInput()
/aosp12/packages/modules/NeuralNetworks/common/operations/
H A DTransposeConv2D.cpp262 int32_t* bufferPtr = tempBuffer; in transposeConvNhwc() local
265 for (uint32_t d = 0; d < outputDepth; d++, bufferPtr++, outPtr++) { in transposeConvNhwc()
266 int32_t outVal = *bufferPtr + biasData[d]; in transposeConvNhwc()
403 int32_t* bufferPtr = tempBuffer; in transposeConvQuant8PerChannelNhwc() local
406 for (uint32_t d = 0; d < outputDepth; d++, bufferPtr++, outPtr++) { in transposeConvQuant8PerChannelNhwc()
407 int32_t outVal = *bufferPtr + biasData[d]; in transposeConvQuant8PerChannelNhwc()
/aosp12/frameworks/av/media/libmediatranscoding/transcoder/tests/
H A DMediaSampleReaderNDKTests.cpp125 const uint8_t* bufferPtr = buffer.get(); in readSamplesAsync() local
127 bufferPtr); in readSamplesAsync()