Home
last modified time | relevance | path

Searched refs:buffer (Results 1 – 25 of 982) sorted by relevance

12345678910>>...40

/packages/modules/Bluetooth/system/embdrv/sbc/decoder/srce/
Dsynthesis-8-generated.c51 SBC_BUFFER_T const* RESTRICT buffer, in SynthWindow80_generated() argument
55 /* 1 - stage 0 */ pcm_b += (MUL_16S_16S(8235, buffer[12])) >> 3; in SynthWindow80_generated()
56 /* 1 - stage 0 */ pcm_b += (MUL_16S_16S(-23167, buffer[20])) >> 3; in SynthWindow80_generated()
57 /* 1 - stage 0 */ pcm_b += (MUL_16S_16S(26479, buffer[28])) >> 2; in SynthWindow80_generated()
58 /* 1 - stage 0 */ pcm_b += (MUL_16S_16S(-17397, buffer[36])) << 1; in SynthWindow80_generated()
59 /* 1 - stage 0 */ pcm_b += (MUL_16S_16S(9399, buffer[44])) << 3; in SynthWindow80_generated()
60 /* 1 - stage 0 */ pcm_b += (MUL_16S_16S(17397, buffer[52])) << 1; in SynthWindow80_generated()
61 /* 1 - stage 0 */ pcm_b += (MUL_16S_16S(26479, buffer[60])) >> 2; in SynthWindow80_generated()
62 /* 1 - stage 0 */ pcm_b += (MUL_16S_16S(23167, buffer[68])) >> 3; in SynthWindow80_generated()
63 /* 1 - stage 0 */ pcm_b += (MUL_16S_16S(8235, buffer[76])) >> 3; in SynthWindow80_generated()
[all …]
Dsynthesis-sbc.c247 SBC_BUFFER_T const* RESTRICT buffer,
250 SBC_BUFFER_T const* RESTRICT buffer,
432 SBC_BUFFER_T buffer[80], in SynthWindow40_int32_int32_symmetry_with_sum()
439 OI_ASSERT(buffer[2] == 0); in SynthWindow40_int32_int32_symmetry_with_sum()
440 OI_ASSERT(buffer[10] == 0); in SynthWindow40_int32_int32_symmetry_with_sum()
441 OI_ASSERT(buffer[18] == 0); in SynthWindow40_int32_int32_symmetry_with_sum()
442 OI_ASSERT(buffer[26] == 0); in SynthWindow40_int32_int32_symmetry_with_sum()
443 OI_ASSERT(buffer[34] == 0); in SynthWindow40_int32_int32_symmetry_with_sum()
444 OI_ASSERT(buffer[42] == 0); in SynthWindow40_int32_int32_symmetry_with_sum()
445 OI_ASSERT(buffer[50] == 0); in SynthWindow40_int32_int32_symmetry_with_sum()
[all …]
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
Dbyte_array_utils.h36 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/framework/test/unittests/src/android/util/
DStatsEventTest.java50 final ByteBuffer buffer = in testNoFields() local
54 .that(buffer.get()).isEqualTo(StatsEvent.TYPE_OBJECT); in testNoFields()
57 .that(buffer.get()).isEqualTo(3); in testNoFields()
60 .that(buffer.get()).isEqualTo(StatsEvent.TYPE_LONG); in testNoFields()
63 .that(buffer.getLong()).isIn(Range.closed(minTimestamp, maxTimestamp)); in testNoFields()
66 .that(buffer.get()).isEqualTo(StatsEvent.TYPE_INT); in testNoFields()
69 .that(buffer.getInt()).isEqualTo(expectedAtomId); in testNoFields()
72 .that(buffer.get()).isEqualTo(StatsEvent.TYPE_ERRORS); in testNoFields()
74 final int errorMask = buffer.getInt(); in testNoFields()
79 assertThat(statsEvent.getNumBytes()).isEqualTo(buffer.position()); in testNoFields()
[all …]
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DDomainUtilsTest.java42 byte[] buffer = DomainUtils.encode(".google.com"); in testEncodeInvalidDomain()
43 assertNull(buffer); in testEncodeInvalidDomain()
45 buffer = DomainUtils.encode("google.com."); in testEncodeInvalidDomain()
46 assertNull(buffer); in testEncodeInvalidDomain()
48 buffer = DomainUtils.encode("-google.com"); in testEncodeInvalidDomain()
49 assertNull(buffer); in testEncodeInvalidDomain()
51 buffer = DomainUtils.encode("google.com-"); in testEncodeInvalidDomain()
52 assertNull(buffer); in testEncodeInvalidDomain()
54 buffer = DomainUtils.encode("google..com"); in testEncodeInvalidDomain()
55 assertNull(buffer); in testEncodeInvalidDomain()
[all …]
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/async/
DCircularByteBufferTest.java37 CircularByteBuffer buffer = new CircularByteBuffer(capacity); in writeBytes() local
38 assertEquals(0, buffer.size()); in writeBytes()
39 assertEquals(0, buffer.getDirectReadSize()); in writeBytes()
40 assertEquals(capacity, buffer.freeSize()); in writeBytes()
41 assertEquals(capacity, buffer.getDirectWriteSize()); in writeBytes()
44 buffer.writeBytes(writeBuffer, 0, writeBuffer.length); in writeBytes()
46 assertEquals(writeBuffer.length, buffer.size()); in writeBytes()
47 assertEquals(writeBuffer.length, buffer.getDirectReadSize()); in writeBytes()
48 assertEquals(capacity - writeBuffer.length, buffer.freeSize()); in writeBytes()
49 assertEquals(capacity - writeBuffer.length, buffer.getDirectWriteSize()); in writeBytes()
[all …]
/packages/modules/StatsD/lib/libstatssocket/tests/
Dstats_event_test.cpp56 T readNext(uint8_t** buffer) { in readNext() argument
58 if ((reinterpret_cast<uintptr_t>(*buffer) % alignof(T)) == 0) { in readNext()
59 value = *(T*)(*buffer); in readNext()
61 memcpy(&value, *buffer, sizeof(T)); in readNext()
63 *buffer += sizeof(T); in readNext()
67 void checkTypeHeader(uint8_t** buffer, uint8_t typeId, uint8_t numAnnotations = 0) { in checkTypeHeader() argument
69 EXPECT_EQ(readNext<uint8_t>(buffer), typeHeader); in checkTypeHeader()
73 void checkScalar(uint8_t** buffer, T expectedValue) { in checkScalar() argument
74 EXPECT_EQ(readNext<T>(buffer), expectedValue); in checkScalar()
77 void checkString(uint8_t** buffer, const string& expectedString) { in checkString() argument
[all …]
/packages/inputmethods/LatinIME/native/jni/tests/dictionary/utils/
Dformat_utils_test.cpp34 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 …]
Dbyte_array_utils_test.cpp28 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 …]
Dbuffer_with_extendable_buffer_test.cpp27 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/
DStatusTextUtils.java49 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 …]
DByteArrayBuffer.java40 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/modules/Bluetooth/system/bta/hf_client/
Dbta_hf_client_at.cc875 char* buffer) { in bta_hf_client_parse_ok() argument
876 AT_CHECK_EVENT(buffer, "OK"); in bta_hf_client_parse_ok()
877 AT_CHECK_RN(buffer); in bta_hf_client_parse_ok()
881 return buffer; in bta_hf_client_parse_ok()
885 char* buffer) { in bta_hf_client_parse_error() argument
886 AT_CHECK_EVENT(buffer, "ERROR"); in bta_hf_client_parse_error()
887 AT_CHECK_RN(buffer); in bta_hf_client_parse_error()
891 return buffer; in bta_hf_client_parse_error()
895 char* buffer) { in bta_hf_client_parse_ring() argument
896 AT_CHECK_EVENT(buffer, "RING"); in bta_hf_client_parse_ring()
[all …]
/packages/modules/Uwb/service/java/com/android/server/uwb/params/
DTlvUtil.java24 ByteBuffer buffer = ByteBuffer.allocate(Byte.BYTES).put(data); in getBytes() local
25 return buffer.array(); in getBytes()
29 ByteBuffer buffer = ByteBuffer.allocate(Short.BYTES).order( in getBytes() local
31 return buffer.array(); in getBytes()
35 ByteBuffer buffer = ByteBuffer.allocate(Short.BYTES).order( in getLeBytes() local
37 return buffer.array(); in getLeBytes()
41 ByteBuffer buffer = ByteBuffer.allocate(Integer.BYTES).order( in getBytes() local
43 return buffer.array(); in getBytes()
47 ByteBuffer buffer = ByteBuffer.allocate(Integer.BYTES).order( in getLeBytes() local
49 return buffer.array(); in getLeBytes()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/
DHSWanMetricsElementTest.java58 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 …]
DHSConnectionCapabilityElementTest.java50 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 …]
/packages/modules/NeuralNetworks/common/
DCpuExecutor.cpp131 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/Bluetooth/system/gd/common/
Dcircular_buffer_test.cc35 bluetooth::common::TimestampedCircularBuffer<std::string> buffer(10); in TEST() local
37 buffer.Push(std::string("One")); in TEST()
38 buffer.Push(std::string("Two")); in TEST()
39 buffer.Push(std::string("Three")); in TEST()
41 auto vec = buffer.Pull(); in TEST()
47 auto vec2 = buffer.Pull(); in TEST()
53 bluetooth::common::TimestampedCircularBuffer<std::string> buffer(10); in TEST() local
55 buffer.Push(std::string("One")); in TEST()
56 buffer.Push(std::string("Two")); in TEST()
57 buffer.Push(std::string("Three")); in TEST()
[all …]
/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/
DIkeTunUtils.java233 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/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DByteBufferReaderTest.java45 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/
Ddynamic_pt_writing_utils.cpp39 BufferWithExtendableBuffer *const buffer, const int rootPos) { in writeEmptyDictionary() argument
41 if (!writePtNodeArraySizeAndAdvancePosition(buffer, 0 /* arraySize */, &writingPos)) { in writeEmptyDictionary()
44 return writeForwardLinkPositionAndAdvancePosition(buffer, NOT_A_DICT_POS /* forwardLinkPos */, in writeEmptyDictionary()
49 BufferWithExtendableBuffer *const buffer, const int forwardLinkPos, in writeForwardLinkPositionAndAdvancePosition() argument
51 return writeDictOffset(buffer, forwardLinkPos, (*forwardLinkFieldPos), forwardLinkFieldPos); in writeForwardLinkPositionAndAdvancePosition()
55 BufferWithExtendableBuffer *const buffer, const size_t arraySize, in writePtNodeArraySizeAndAdvancePosition() argument
66 return buffer->writeUintAndAdvancePosition(data, LARGE_PTNODE_ARRAY_SIZE_FIELD_SIZE, in writePtNodeArraySizeAndAdvancePosition()
77 BufferWithExtendableBuffer *const buffer, in writeFlagsAndAdvancePosition() argument
79 return buffer->writeUintAndAdvancePosition(nodeFlags, NODE_FLAG_FIELD_SIZE, nodeFlagsFieldPos); in writeFlagsAndAdvancePosition()
84 BufferWithExtendableBuffer *const buffer, const int parentPos, const int basePos, in writeParentPosOffsetAndAdvancePosition() argument
[all …]
Dpatricia_trie_reading_utils.cpp48 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/StatsD/statsd/tests/e2e/
DConfigUpdate_e2e_ab_test.cpp89 vector<uint8_t> buffer; in TEST_P() local
90 processor->onDumpReport(cfgKey, baseTimeNs + 1001, false, true, ADB_DUMP, FAST, &buffer); in TEST_P()
91 EXPECT_TRUE(reports.ParseFromArray(&buffer[0], buffer.size())); in TEST_P()
130 vector<uint8_t> buffer; in TEST_P() local
131 processor->onDumpReport(cfgKey, baseTimeNs + 1001, false, true, ADB_DUMP, FAST, &buffer); in TEST_P()
132 EXPECT_TRUE(reports.ParseFromArray(&buffer[0], buffer.size())); in TEST_P()
160 vector<uint8_t> buffer; in TEST_P() local
161 processor->onDumpReport(cfgKey, baseTimeNs + 1001, false, true, ADB_DUMP, FAST, &buffer); in TEST_P()
162 EXPECT_TRUE(reports.ParseFromArray(&buffer[0], buffer.size())); in TEST_P()
179 vector<uint8_t> buffer; in TEST_P() local
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/pbap/
DHandlerForStringBufferTest.java61 HandlerForStringBuffer buffer = new HandlerForStringBuffer(mOperation, ownerVcard); in init_withNonNullOwnerVCard_returnsTrue() local
63 assertThat(buffer.init()).isTrue(); in init_withNonNullOwnerVCard_returnsTrue()
70 HandlerForStringBuffer buffer = new HandlerForStringBuffer(mOperation, ownerVcard); in init_withNullOwnerVCard_returnsTrue() local
72 assertThat(buffer.init()).isTrue(); in init_withNullOwnerVCard_returnsTrue()
81 HandlerForStringBuffer buffer = new HandlerForStringBuffer(mOperation, ownerVcard); in init_withIOExceptionWhenOpeningOutputStream_returnsFalse() local
83 assertThat(buffer.init()).isFalse(); in init_withIOExceptionWhenOpeningOutputStream_returnsFalse()
89 HandlerForStringBuffer buffer = new HandlerForStringBuffer(mOperation, ownerVcard); in writeVCard_withNonNullOwnerVCard_returnsTrue() local
90 buffer.init(); in writeVCard_withNonNullOwnerVCard_returnsTrue()
94 assertThat(buffer.writeVCard(newVcard)).isTrue(); in writeVCard_withNonNullOwnerVCard_returnsTrue()
100 HandlerForStringBuffer buffer = new HandlerForStringBuffer(mOperation, ownerVcard); in writeVCard_withNullOwnerVCard_returnsFalse() local
[all …]
/packages/modules/IPsec/src/java/com/android/internal/net/eap/message/mschapv2/
DEapMsChapV2TypeData.java111 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 …]

12345678910>>...40