Home
last modified time | relevance | path

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

/frameworks/base/wifi/java/android/net/wifi/rtt/
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()
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()
/frameworks/ml/nn/runtime/test/
DTestMemory.cpp107 void* bufferPtr = nullptr; in TEST_F() local
108 ASSERT_EQ(AHardwareBuffer_lock(buffer, desc.usage, -1, NULL, &bufferPtr), 0); in TEST_F()
109 memcpy((uint8_t*)bufferPtr + offsetForMatrix2, matrix2, sizeof(matrix2)); in TEST_F()
110 memcpy((uint8_t*)bufferPtr + offsetForMatrix3, matrix3, sizeof(matrix3)); in TEST_F()
DTestTrivialModel.cpp153 void* bufferPtr = nullptr; in TEST_F() local
154 ASSERT_EQ(AHardwareBuffer_lock(matrix1Buffer, desc.usage, -1, NULL, &bufferPtr), 0); in TEST_F()
155 memcpy((uint8_t*)bufferPtr, matrix1, sizeof(matrix1)); in TEST_F()
/frameworks/ml/nn/common/operations/
DTransposeConv2D.cpp261 int32_t* bufferPtr = tempBuffer; in transposeConvNhwc() local
264 for (uint32_t d = 0; d < outputDepth; d++, bufferPtr++, outPtr++) { in transposeConvNhwc()
265 int32_t outVal = *bufferPtr + biasData[d]; in transposeConvNhwc()
402 int32_t* bufferPtr = tempBuffer; in transposeConvQuant8PerChannelNhwc() local
405 for (uint32_t d = 0; d < outputDepth; d++, bufferPtr++, outPtr++) { in transposeConvQuant8PerChannelNhwc()
406 int32_t outVal = *bufferPtr + biasData[d]; in transposeConvQuant8PerChannelNhwc()