/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/internal/ |
D | itoa.h | 39 inline char* u32toa(uint32_t value, char* buffer) { in u32toa() argument 47 *buffer++ = cDigitsLut[d1]; in u32toa() 49 *buffer++ = cDigitsLut[d1 + 1]; in u32toa() 51 *buffer++ = cDigitsLut[d2]; in u32toa() 52 *buffer++ = cDigitsLut[d2 + 1]; in u32toa() 66 *buffer++ = cDigitsLut[d1]; in u32toa() 68 *buffer++ = cDigitsLut[d1 + 1]; in u32toa() 70 *buffer++ = cDigitsLut[d2]; in u32toa() 71 *buffer++ = cDigitsLut[d2 + 1]; in u32toa() 73 *buffer++ = cDigitsLut[d3]; in u32toa() [all …]
|
D | dtoa.h | 34 inline void GrisuRound(char* buffer, int len, uint64_t delta, uint64_t rest, uint64_t ten_kappa, ui… in GrisuRound() argument 38 buffer[len - 1]--; in GrisuRound() 59 inline void DigitGen(const DiyFp& W, const DiyFp& Mp, uint64_t delta, char* buffer, int* len, int* … in DigitGen() argument 83 buffer[(*len)++] = static_cast<char>('0' + static_cast<char>(d)); in DigitGen() 88 … GrisuRound(buffer, *len, delta, tmp, static_cast<uint64_t>(kPow10[kappa]) << -one.e, wp_w.f); in DigitGen() 99 buffer[(*len)++] = static_cast<char>('0' + d); in DigitGen() 104 GrisuRound(buffer, *len, delta, p2, one.f, wp_w.f * kPow10[-static_cast<int>(kappa)]); in DigitGen() 110 inline void Grisu2(double value, char* buffer, int* length, int* K) { in Grisu2() argument 121 DigitGen(W, Wp, Wp.f - Wm.f, buffer, length, K); in Grisu2() 124 inline char* WriteExponent(int K, char* buffer) { in WriteExponent() argument [all …]
|
/packages/modules/StatsD/framework/test/src/android/util/ |
D | StatsEventTest.java | 54 final ByteBuffer buffer = in testNoFields() local 58 .that(buffer.get()).isEqualTo(StatsEvent.TYPE_OBJECT); in testNoFields() 61 .that(buffer.get()).isEqualTo(3); in testNoFields() 64 .that(buffer.get()).isEqualTo(StatsEvent.TYPE_LONG); in testNoFields() 67 .that(buffer.getLong()).isIn(Range.closed(minTimestamp, maxTimestamp)); in testNoFields() 70 .that(buffer.get()).isEqualTo(StatsEvent.TYPE_INT); in testNoFields() 73 .that(buffer.getInt()).isEqualTo(expectedAtomId); in testNoFields() 76 .that(buffer.get()).isEqualTo(StatsEvent.TYPE_ERRORS); in testNoFields() 78 final int errorMask = buffer.getInt(); in testNoFields() 83 assertThat(statsEvent.getNumBytes()).isEqualTo(buffer.position()); in testNoFields() [all …]
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/ |
D | byte_array_utils.h | 36 static AK_FORCE_INLINE void writeUintAndAdvancePosition(uint8_t *const buffer, in writeUintAndAdvancePosition() argument 42 ByteArrayUtils::writeUint8AndAdvancePosition(buffer, data, pos); in writeUintAndAdvancePosition() 45 ByteArrayUtils::writeUint16AndAdvancePosition(buffer, data, pos); in writeUintAndAdvancePosition() 48 ByteArrayUtils::writeUint24AndAdvancePosition(buffer, data, pos); in writeUintAndAdvancePosition() 51 ByteArrayUtils::writeUint32AndAdvancePosition(buffer, data, pos); in writeUintAndAdvancePosition() 63 static AK_FORCE_INLINE uint32_t readUint32(const uint8_t *const buffer, const int pos) { in readUint32() argument 64 return (buffer[pos] << 24) ^ (buffer[pos + 1] << 16) in readUint32() 65 ^ (buffer[pos + 2] << 8) ^ buffer[pos + 3]; in readUint32() 68 static AK_FORCE_INLINE uint32_t readUint24(const uint8_t *const buffer, const int pos) { in readUint24() argument 69 return (buffer[pos] << 16) ^ (buffer[pos + 1] << 8) ^ buffer[pos + 2]; in readUint24() [all …]
|
/packages/modules/StatsD/lib/libstatssocket/tests/ |
D | stats_event_test.cpp | 55 T readNext(uint8_t** buffer) { in readNext() argument 57 if ((reinterpret_cast<uintptr_t>(*buffer) % alignof(T)) == 0) { in readNext() 58 value = *(T*)(*buffer); in readNext() 60 memcpy(&value, *buffer, sizeof(T)); in readNext() 62 *buffer += sizeof(T); in readNext() 66 void checkTypeHeader(uint8_t** buffer, uint8_t typeId, uint8_t numAnnotations = 0) { in checkTypeHeader() argument 68 EXPECT_EQ(readNext<uint8_t>(buffer), typeHeader); in checkTypeHeader() 72 void checkScalar(uint8_t** buffer, T expectedValue) { in checkScalar() argument 73 EXPECT_EQ(readNext<T>(buffer), expectedValue); in checkScalar() 76 void checkString(uint8_t** buffer, const string& expectedString) { in checkString() argument [all …]
|
/packages/modules/Connectivity/tests/unit/java/com/android/internal/util/ |
D | RingBufferTest.java | 40 RingBuffer<String> buffer = new RingBuffer<>(String.class, 100); in testEmptyRingBuffer() local 42 assertArrayEquals(new String[0], buffer.toArray()); in testEmptyRingBuffer() 48 RingBuffer<String> buffer = new RingBuffer<>(String.class, -10); in testIncorrectConstructorArguments() local 54 RingBuffer<String> buffer = new RingBuffer<>(String.class, 0); in testIncorrectConstructorArguments() local 62 RingBuffer<String> buffer = new RingBuffer<>(String.class, 100); in testRingBufferWithNoWrapping() local 64 buffer.append("a"); in testRingBufferWithNoWrapping() 65 buffer.append("b"); in testRingBufferWithNoWrapping() 66 buffer.append("c"); in testRingBufferWithNoWrapping() 67 buffer.append("d"); in testRingBufferWithNoWrapping() 68 buffer.append("e"); in testRingBufferWithNoWrapping() [all …]
|
/packages/inputmethods/LatinIME/native/jni/tests/dictionary/utils/ |
D | format_utils_test.cpp | 34 std::vector<uint8_t> buffer; in getBuffer() local 35 buffer.push_back(magicNumber >> 24); in getBuffer() 36 buffer.push_back(magicNumber >> 16); in getBuffer() 37 buffer.push_back(magicNumber >> 8); in getBuffer() 38 buffer.push_back(magicNumber); in getBuffer() 40 buffer.push_back(version >> 8); in getBuffer() 41 buffer.push_back(version); in getBuffer() 43 buffer.push_back(flags >> 8); in getBuffer() 44 buffer.push_back(flags); in getBuffer() 46 buffer.push_back(headerSize >> 24); in getBuffer() [all …]
|
D | byte_array_utils_test.cpp | 28 const uint8_t buffer[] = { 0x20u, 0x21u, 0x00u, 0x01u, 0x00u }; in TEST() local 31 EXPECT_EQ(0x6f, ByteArrayUtils::readCodePointAndAdvancePosition(buffer, codePointTable, &pos)); in TEST() 33 EXPECT_EQ(0x6b, ByteArrayUtils::readCodePointAndAdvancePosition(buffer, codePointTable, &pos)); in TEST() 36 EXPECT_EQ(0x100, ByteArrayUtils::readCodePointAndAdvancePosition(buffer, codePointTable, &pos)); in TEST() 40 const uint8_t buffer[] = { 0x1u, 0x8Au, 0x0u, 0xAAu }; in TEST() local 42 EXPECT_EQ(0x01u, ByteArrayUtils::readUint8(buffer, 0)); in TEST() 43 EXPECT_EQ(0x8Au, ByteArrayUtils::readUint8(buffer, 1)); in TEST() 44 EXPECT_EQ(0x0u, ByteArrayUtils::readUint8(buffer, 2)); in TEST() 45 EXPECT_EQ(0xAAu, ByteArrayUtils::readUint8(buffer, 3)); in TEST() 47 EXPECT_EQ(0x018Au, ByteArrayUtils::readUint16(buffer, 0)); in TEST() [all …]
|
D | buffer_with_extendable_buffer_test.cpp | 27 BufferWithExtendableBuffer buffer(DEFAULT_MAX_BUFFER_SIZE); in TEST() local 31 EXPECT_TRUE(buffer.writeUint(data_1, 1 /* size */, pos)); in TEST() 32 EXPECT_EQ(data_1, buffer.readUint(1, pos)); in TEST() 36 EXPECT_TRUE(buffer.writeUint(data_2, 2 /* size */, pos)); in TEST() 37 EXPECT_EQ(data_2, buffer.readUint(2, pos)); in TEST() 41 EXPECT_TRUE(buffer.writeUint(data_3, 3 /* size */, pos)); in TEST() 42 EXPECT_EQ(data_3, buffer.readUint(3, pos)); in TEST() 46 EXPECT_TRUE(buffer.writeUint(data_4, 4 /* size */, pos)); in TEST() 47 EXPECT_EQ(data_4, buffer.readUint(4, pos)); in TEST() 51 BufferWithExtendableBuffer buffer(DEFAULT_MAX_BUFFER_SIZE); in TEST() local [all …]
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/util/ |
D | StatusTextUtils.java | 49 StringBuffer buffer = new StringBuffer(); in getStatusWarningInHTML() local 61 buffer.append(String.format(Locale.US, "<font color=%s>", audioPositionColor)); in getStatusWarningInHTML() 62 buffer.append( in getStatusWarningInHTML() 68 buffer.append("</font>\n"); in getStatusWarningInHTML() 69 buffer.append("<font color=" + COLOR_GRAY + ">"); in getStatusWarningInHTML() 70 buffer.append( in getStatusWarningInHTML() 77 buffer.append( in getStatusWarningInHTML() 84 buffer.append("</font>\n"); in getStatusWarningInHTML() 86 appendStatusLine(buffer, "KbytesInQueue", bytesInQueue / 1000, 1, 10); in getStatusWarningInHTML() 87 buffer.append("<br/>"); in getStatusWarningInHTML() [all …]
|
D | ByteArrayBuffer.java | 40 private byte[] buffer; field in ByteArrayBuffer 48 this.buffer = new byte[capacity]; in ByteArrayBuffer() 52 byte newbuffer[] = new byte[Math.max(this.buffer.length << 1, newlen)]; in expand() 53 System.arraycopy(this.buffer, 0, newbuffer, 0, this.len); in expand() 54 this.buffer = newbuffer; in expand() 72 if (newlen > this.buffer.length) { in append() 75 System.arraycopy(b, off, this.buffer, this.len, len); in append() 81 if (newlen > this.buffer.length) { in append() 84 this.buffer[this.len] = (byte) b; in append() 104 if (newlen > this.buffer.length) { in append() [all …]
|
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/ |
D | writertest.cpp | 26 StringBuffer buffer; in TEST() local 27 Writer<StringBuffer> writer(buffer); in TEST() 28 buffer.ShrinkToFit(); in TEST() 31 …d\",\"t\":true,\"f\":false,\"n\":null,\"i\":123,\"pi\":3.1416,\"a\":[1,2,3]}", buffer.GetString()); in TEST() 32 EXPECT_EQ(77u, buffer.GetSize()); in TEST() 40 StringBuffer buffer; \ 41 Writer<StringBuffer> writer(buffer); \ 44 EXPECT_STREQ(json, buffer.GetString()); \ 89 StringBuffer buffer; in TEST() local 90 Writer<StringBuffer> writer(buffer); in TEST() [all …]
|
D | stringbuffertest.cpp | 22 StringBuffer buffer; in TEST() local 23 EXPECT_EQ(0u, buffer.GetSize()); in TEST() 24 EXPECT_STREQ("", buffer.GetString()); in TEST() 28 StringBuffer buffer; in TEST() local 29 buffer.Put('A'); in TEST() 31 EXPECT_EQ(1u, buffer.GetSize()); in TEST() 32 EXPECT_STREQ("A", buffer.GetString()); in TEST() 36 StringBuffer buffer; in TEST() local 37 buffer.Put('A'); in TEST() 38 buffer.Put('B'); in TEST() [all …]
|
/packages/modules/NeuralNetworks/common/ |
D | CpuExecutor.cpp | 131 return getInputInfo(index)->buffer; in getInputBuffer() 147 return getOutputInfo(index)->buffer; in getOutputBuffer() 216 if (info->buffer == nullptr && (info->lifetime == Operand::LifeTime::TEMPORARY_VARIABLE || in setInfoAndAllocateIfNeeded() 225 info->buffer = new uint8_t[length]; in setInfoAndAllocateIfNeeded() 226 if (info->buffer == nullptr) { in setInfoAndAllocateIfNeeded() 339 RunTimePoolInfo RunTimePoolInfo::createFromExistingBuffer(uint8_t* buffer, uint32_t size) { in createFromExistingBuffer() argument 340 auto mapping = Mapping{.pointer = buffer, .size = size}; in createFromExistingBuffer() 448 to.buffer = nullptr; in convertToNhwc() 452 ptr_guard.reset(to.buffer); in convertToNhwc() 455 return convertToNhwcImpl<float>(reinterpret_cast<float*>(to.buffer), in convertToNhwc() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/ |
D | HSWanMetricsElementTest.java | 58 ByteBuffer buffer = ByteBuffer.allocate(HSWanMetricsElement.EXPECTED_BUFFER_SIZE) in getTestBuffer() local 63 buffer.put((byte) wanInfo); in getTestBuffer() 64 buffer.putInt((int) (TEST_DOWNLINK_SPEED & 0xFFFFFFFFL)); in getTestBuffer() 65 buffer.putInt((int) (TEST_UPLINK_SPEED & 0xFFFFFFFFL)); in getTestBuffer() 66 buffer.put((byte) (TEST_DOWNLINK_LOAD & 0xFF)); in getTestBuffer() 67 buffer.put((byte) (TEST_UPLINK_LOAD & 0xFF)); in getTestBuffer() 68 buffer.putShort((short) (TEST_LMD & 0xFFFF)); in getTestBuffer() 69 buffer.position(0); in getTestBuffer() 70 return buffer; in getTestBuffer() 75 ByteBuffer buffer = ByteBuffer.allocate(HSWanMetricsElement.EXPECTED_BUFFER_SIZE) in getUninitializedBuffer() local [all …]
|
D | HSConnectionCapabilityElementTest.java | 50 private void appendProtocolPortTuple(ByteBuffer buffer, ProtocolPortTuple tuple) { in appendProtocolPortTuple() argument 51 buffer.put((byte) tuple.getProtocol()); in appendProtocolPortTuple() 52 buffer.putShort((short) tuple.getPort()); in appendProtocolPortTuple() 53 buffer.put((byte) tuple.getStatus()); in appendProtocolPortTuple() 63 ByteBuffer buffer = ByteBuffer.allocate(tuples.length * ProtocolPortTuple.RAW_BYTE_SIZE) in getTestBuffer() local 66 appendProtocolPortTuple(buffer, tuple); in getTestBuffer() 68 buffer.position(0); in getTestBuffer() 69 return buffer; in getTestBuffer() 93 ByteBuffer buffer = ByteBuffer.allocate(ProtocolPortTuple.RAW_BYTE_SIZE - 1); in parseBufferWithLessThanMinimumSize() local 94 buffer.put(new byte[ProtocolPortTuple.RAW_BYTE_SIZE - 1]); in parseBufferWithLessThanMinimumSize() [all …]
|
D | ANQPParserTest.java | 186 ByteBuffer buffer = ByteBuffer.allocate(HSWanMetricsElement.EXPECTED_BUFFER_SIZE) in getHSWanMetricsPayload() local 191 buffer.put((byte) wanInfo); in getHSWanMetricsPayload() 192 buffer.putInt((int) (downlinkSpeed & 0xFFFFFFFFL)); in getHSWanMetricsPayload() 193 buffer.putInt((int) (uplinkSpeed & 0xFFFFFFFFL)); in getHSWanMetricsPayload() 194 buffer.put((byte) (downlinkLoad & 0xFF)); in getHSWanMetricsPayload() 195 buffer.put((byte) (uplinkLoad & 0xFF)); in getHSWanMetricsPayload() 196 buffer.putShort((short) (lmd & 0xFFFF)); in getHSWanMetricsPayload() 197 buffer.position(0); in getHSWanMetricsPayload() 199 buffer.get(data); in getHSWanMetricsPayload() 281 ByteBuffer buffer = ByteBuffer.wrap(getVenueNamePayload(language, text)); in parseVenueNameElement() local [all …]
|
/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/ |
D | IkeTunUtils.java | 233 ByteBuffer buffer = ByteBuffer.wrap(pkt); in hasNonEspMarker() local 236 if (buffer.remaining() < ikeOffset) return false; in hasNonEspMarker() 238 buffer.get(new byte[ikeOffset]); // Skip IP and UDP header in hasNonEspMarker() 240 if (buffer.remaining() < NON_ESP_MARKER_LEN) return false; in hasNonEspMarker() 242 buffer.get(nonEspMarker); in hasNonEspMarker() 254 ByteBuffer buffer = ByteBuffer.wrap(pkt); in isExpectedSpiAndMsgId() 255 buffer.get(new byte[ikeOffset]); // Skip IP, UDP header (and NON_ESP_MARKER) in isExpectedSpiAndMsgId() 256 buffer.mark(); // Mark this position so that later we can reset back here in isExpectedSpiAndMsgId() 259 buffer.get(new byte[IKE_INIT_SPI_OFFSET]); in isExpectedSpiAndMsgId() 260 long initSpi = buffer.getLong(); in isExpectedSpiAndMsgId() [all …]
|
/packages/apps/Test/connectivity/sl4n/rapidjson/test/perftest/ |
D | misctest.cpp | 376 char buffer[10]; in WriteUint() local 377 char *p = buffer; in WriteUint() 386 } while (p != buffer); in WriteUint() 400 char buffer[20]; in WriteUint64() local 401 char *p = buffer; in WriteUint64() 410 } while (p != buffer); in WriteUint64() 420 char buffer[10]; in WriteUint() local 421 char* p = buffer; in WriteUint() 427 char* d = os_->Push(p - buffer); in WriteUint() 431 } while (p != buffer); in WriteUint() [all …]
|
/packages/modules/StatsD/statsd/tests/e2e/ |
D | ConfigUpdate_e2e_ab_test.cpp | 90 vector<uint8_t> buffer; in TEST_P() local 91 processor->onDumpReport(cfgKey, baseTimeNs + 1001, false, true, ADB_DUMP, FAST, &buffer); in TEST_P() 92 EXPECT_TRUE(reports.ParseFromArray(&buffer[0], buffer.size())); in TEST_P() 131 vector<uint8_t> buffer; in TEST_P() local 132 processor->onDumpReport(cfgKey, baseTimeNs + 1001, false, true, ADB_DUMP, FAST, &buffer); in TEST_P() 133 EXPECT_TRUE(reports.ParseFromArray(&buffer[0], buffer.size())); in TEST_P() 161 vector<uint8_t> buffer; in TEST_P() local 162 processor->onDumpReport(cfgKey, baseTimeNs + 1001, false, true, ADB_DUMP, FAST, &buffer); in TEST_P() 163 EXPECT_TRUE(reports.ParseFromArray(&buffer[0], buffer.size())); in TEST_P() 180 vector<uint8_t> buffer; in TEST_P() local [all …]
|
/packages/modules/IPsec/src/java/com/android/internal/net/eap/message/mschapv2/ |
D | EapMsChapV2TypeData.java | 111 EapMsChapV2ChallengeRequest(ByteBuffer buffer) throws EapMsChapV2ParsingException { in EapMsChapV2ChallengeRequest() argument 114 Byte.toUnsignedInt(buffer.get()), in EapMsChapV2ChallengeRequest() 115 Short.toUnsignedInt(buffer.getShort())); in EapMsChapV2ChallengeRequest() 117 int valueSize = Byte.toUnsignedInt(buffer.get()); in EapMsChapV2ChallengeRequest() 121 buffer.get(challenge); in EapMsChapV2ChallengeRequest() 129 buffer.get(name); in EapMsChapV2ChallengeRequest() 186 ByteBuffer buffer = ByteBuffer.allocate(msLength); in encode() local 187 buffer.put((byte) EAP_MSCHAP_V2_RESPONSE); in encode() 188 buffer.put((byte) msChapV2Id); in encode() 189 buffer.putShort((short) msLength); in encode() [all …]
|
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/ |
D | writer.h | 205 char buffer[11]; in WriteInt() local 206 const char* end = internal::i32toa(i, buffer); in WriteInt() 207 for (const char* p = buffer; p != end; ++p) in WriteInt() 213 char buffer[10]; in WriteUint() local 214 const char* end = internal::u32toa(u, buffer); in WriteUint() 215 for (const char* p = buffer; p != end; ++p) in WriteUint() 221 char buffer[21]; in WriteInt64() local 222 const char* end = internal::i64toa(i64, buffer); in WriteInt64() 223 for (const char* p = buffer; p != end; ++p) in WriteInt64() 229 char buffer[20]; in WriteUint64() local [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | ByteBufferReaderTest.java | 45 ByteBuffer buffer = ByteBuffer.wrap(data).order(ByteOrder.LITTLE_ENDIAN); in readIntegerWithBufferUnderflow() local 46 ByteBufferReader.readInteger(buffer, buffer.order(), 2); in readIntegerWithBufferUnderflow() 59 ByteBuffer buffer = ByteBuffer.wrap(data).order(ByteOrder.LITTLE_ENDIAN); in readIntegerExceedingMaximumLength() local 60 ByteBufferReader.readInteger(buffer, buffer.order(), length); in readIntegerExceedingMaximumLength() 73 ByteBuffer buffer = ByteBuffer.wrap(data).order(ByteOrder.LITTLE_ENDIAN); in readIntegerLessThanMinimumLength() local 74 ByteBufferReader.readInteger(buffer, buffer.order(), length); in readIntegerLessThanMinimumLength() 86 ByteBuffer buffer = ByteBuffer.wrap(data).order(ByteOrder.LITTLE_ENDIAN); in readIntegerWithMinimumSize() local 87 assertEquals(1, ByteBufferReader.readInteger(buffer, buffer.order(), in readIntegerWithMinimumSize() 146 ByteBuffer buffer = ByteBuffer.wrap(expectedValue.getBytes(StandardCharsets.US_ASCII)); in readString() local 148 buffer, buffer.remaining(), StandardCharsets.US_ASCII); in readString() [all …]
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/ |
D | patricia_trie_reading_utils.cpp | 48 const uint8_t *const buffer, int *const pos) { in getPtNodeArraySizeAndAdvancePosition() argument 49 const uint8_t firstByte = ByteArrayUtils::readUint8AndAdvancePosition(buffer, pos); in getPtNodeArraySizeAndAdvancePosition() 54 buffer, pos); in getPtNodeArraySizeAndAdvancePosition() 59 const uint8_t *const buffer, int *const pos) { in getFlagsAndAdvancePosition() argument 60 return ByteArrayUtils::readUint8AndAdvancePosition(buffer, pos); in getFlagsAndAdvancePosition() 63 /* static */ int PtReadingUtils::getCodePointAndAdvancePosition(const uint8_t *const buffer, in getCodePointAndAdvancePosition() argument 65 return ByteArrayUtils::readCodePointAndAdvancePosition(buffer, codePointTable, pos); in getCodePointAndAdvancePosition() 69 /* static */ int PtReadingUtils::getCharsAndAdvancePosition(const uint8_t *const buffer, in getCharsAndAdvancePosition() argument 74 length = ByteArrayUtils::readStringAndAdvancePosition(buffer, maxLength, codePointTable, in getCharsAndAdvancePosition() 77 const int codePoint = getCodePointAndAdvancePosition(buffer, codePointTable, pos); in getCharsAndAdvancePosition() [all …]
|
/packages/modules/Wifi/framework/java/android/net/wifi/rtt/ |
D | ResponderLocation.java | 472 int ieType, byte[] buffer, byte[] expectedLeadBytes) { in parseInformationElementBuffer() argument 474 int bufferLength = buffer.length; in parseInformationElementBuffer() 482 byte[] leadBufferBytes = Arrays.copyOfRange(buffer, bufferPtr, expectedLeadBytes.length); in parseInformationElementBuffer() 491 byte subelement = buffer[bufferPtr++]; in parseInformationElementBuffer() 492 int subelementLength = buffer[bufferPtr++]; in parseInformationElementBuffer() 499 Arrays.copyOfRange(buffer, bufferPtr, bufferPtr + subelementLength); in parseInformationElementBuffer() 559 private boolean parseSubelementLci(byte[] buffer) { in parseSubelementLci() argument 560 if (buffer.length > SUBELEMENT_LCI_LENGTH) { in parseSubelementLci() 563 swapEndianByteByByte(buffer); in parseSubelementLci() 564 long[] subelementLciFields = getFieldData(buffer, SUBELEMENT_LCI_BIT_FIELD_LENGTHS); in parseSubelementLci() [all …]
|