Home
last modified time | relevance | path

Searched defs:buffer (Results 1 – 25 of 433) sorted by relevance

12345678910>>...18

/packages/inputmethods/LatinIME/native/jni/tests/dictionary/utils/
Dformat_utils_test.cpp34 std::vector<uint8_t> buffer; in getBuffer() local
58 const std::vector<uint8_t> buffer = in TEST() local
64 const std::vector<uint8_t> buffer = in TEST() local
70 const std::vector<uint8_t> buffer = in TEST() local
76 const std::vector<uint8_t> buffer = in TEST() local
83 const std::vector<uint8_t> buffer = in TEST() local
89 const std::vector<uint8_t> buffer = in TEST() local
95 const std::vector<uint8_t> buffer = in TEST() local
Dbyte_array_utils_test.cpp28 const uint8_t buffer[] = { 0x20u, 0x21u, 0x00u, 0x01u, 0x00u }; in TEST() local
40 const uint8_t buffer[] = { 0x1u, 0x8Au, 0x0u, 0xAAu }; in TEST() local
60 uint8_t buffer[4]; in TEST() local
74 const uint8_t buffer[] = { 0x10, 0xFF, 0x00u, 0x20u, 0x41u, 0x1Fu, 0x60 }; in TEST() local
92 uint8_t buffer[10]; in TEST() local
Dbuffer_with_extendable_buffer_test.cpp27 BufferWithExtendableBuffer buffer(DEFAULT_MAX_BUFFER_SIZE); in TEST() local
51 BufferWithExtendableBuffer buffer(DEFAULT_MAX_BUFFER_SIZE); in TEST() local
62 BufferWithExtendableBuffer buffer(DEFAULT_MAX_BUFFER_SIZE); in TEST() local
83 BufferWithExtendableBuffer buffer(DEFAULT_MAX_BUFFER_SIZE); in TEST() local
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
Dbyte_array_utils.h36 static AK_FORCE_INLINE void writeUintAndAdvancePosition(uint8_t *const buffer, in writeUintAndAdvancePosition()
63 static AK_FORCE_INLINE uint32_t readUint32(const uint8_t *const buffer, const int pos) { in readUint32()
68 static AK_FORCE_INLINE uint32_t readUint24(const uint8_t *const buffer, const int pos) { in readUint24()
72 static AK_FORCE_INLINE uint16_t readUint16(const uint8_t *const buffer, const int pos) { in readUint16()
76 static AK_FORCE_INLINE uint8_t readUint8(const uint8_t *const buffer, const int pos) { in readUint8()
81 const uint8_t *const buffer, int *const pos) { in readUint32AndAdvancePosition()
88 const uint8_t *const buffer, int *const pos) { in readSint24AndAdvancePosition()
99 const uint8_t *const buffer, int *const pos) { in readUint24AndAdvancePosition()
106 const uint8_t *const buffer, int *const pos) { in readUint16AndAdvancePosition()
113 const uint8_t *const buffer, int *const pos) { in readUint8AndAdvancePosition()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/
DVenueUrlElementTest.java108 ByteBuffer buffer = ByteBuffer.wrap(getTestData(urlList)); in parseTruncatedBuffer() local
119 ByteBuffer buffer = ByteBuffer.wrap(getTestData(1, new String())); in parseBufferWithEmptyVenueUrl() local
128 ByteBuffer buffer = ByteBuffer.wrap(getTestData(1, TEST_VENUE_URL_INVALID)); in parseBufferWithInvalidVenueUrl() local
154 ByteBuffer buffer = ByteBuffer.wrap(getTestData(0, new String())); in parseBufferWithZeroVenueNumber() local
164 ByteBuffer buffer = ByteBuffer.wrap(getTestData(0, TEST_VENUE_URL1)); in parseBufferWithZeroVenueNumberAndUrlData() local
180 ByteBuffer buffer = ByteBuffer.wrap(getTestData(-7, TEST_VENUE_URL1)); in parseBufferWithNegativeVenueNumberAndUrlData() local
207 ByteBuffer buffer = ByteBuffer.wrap(getTestData(urlList)); in parseBufferWithValidVenueUrls() local
225 ByteBuffer buffer = ByteBuffer.wrap(getTestData(urlList)); in parseBufferWithValidVenueUrlsAndCapsUrls() local
235 ByteBuffer buffer = ByteBuffer.wrap(getTestData(1, TEST_VENUE_URL_INSECURE)); in parseBufferWithInsecureUrlData() local
245 ByteBuffer buffer = ByteBuffer.wrap(getTestData(1, TEST_VENUE_URL_INSECURE_CAPS)); in parseBufferWithInsecureCapsUrlData() local
[all …]
DHSConnectionCapabilityElementTest.java50 private void appendProtocolPortTuple(ByteBuffer buffer, ProtocolPortTuple tuple) { in appendProtocolPortTuple()
63 ByteBuffer buffer = ByteBuffer.allocate(tuples.length * ProtocolPortTuple.RAW_BYTE_SIZE) in getTestBuffer() local
93 ByteBuffer buffer = ByteBuffer.allocate(ProtocolPortTuple.RAW_BYTE_SIZE - 1); in parseBufferWithLessThanMinimumSize() local
108 ByteBuffer buffer = ByteBuffer.allocate(ProtocolPortTuple.RAW_BYTE_SIZE + 1); in parseBufferWithIncompleteTupleBytes() local
123 ByteBuffer buffer = getTestBuffer(new ProtocolPortTuple[] {TEST_TUPLE1, TEST_TUPLE2}); in parseBufferWithTestData() local
DHSWanMetricsElementTest.java58 ByteBuffer buffer = ByteBuffer.allocate(HSWanMetricsElement.EXPECTED_BUFFER_SIZE) in getTestBuffer() local
75 ByteBuffer buffer = ByteBuffer.allocate(HSWanMetricsElement.EXPECTED_BUFFER_SIZE) in getUninitializedBuffer() local
140 ByteBuffer buffer = ByteBuffer.allocate(HSWanMetricsElement.EXPECTED_BUFFER_SIZE - 1); in parseBufferWithLessThanExpectedSize() local
154 ByteBuffer buffer = ByteBuffer.allocate(HSWanMetricsElement.EXPECTED_BUFFER_SIZE + 1); in parseBufferWithMoreThanExpectedSize() local
168 ByteBuffer buffer = getTestBuffer(); in parseBufferWithTestData() local
184 ByteBuffer buffer = getUninitializedBuffer(); in testIsInitialized() local
DNAIRealmDataTest.java54 ByteBuffer buffer = ByteBuffer.wrap(NAIRealmDataTestUtil.TEST_REAML_WITH_UTF8_DATA_BYTES); in parseTruncatedBuffer() local
67 ByteBuffer buffer = ByteBuffer.wrap(NAIRealmDataTestUtil.TEST_REAML_WITH_UTF8_DATA_BYTES); in parseBufferWithUTF8EncodedNAIRealmData() local
79 ByteBuffer buffer = ByteBuffer.wrap( in parseBufferWithNonUTF8EncodedNAIRealmData() local
DVenueNameElementTest.java99 ByteBuffer buffer = ByteBuffer.wrap(getTestData(new String[] {TEST_VENUE_NAME1})); in parseTruncatedBuffer() local
113 ByteBuffer buffer = ByteBuffer.wrap(getTestData(new String[0])); in parseBufferWithEmptyVenueName() local
130 ByteBuffer buffer = ByteBuffer.wrap( in parseBufferWithValidVenueNames() local
147 ByteBuffer buffer = ByteBuffer.wrap(getTestData(new String[] {text})); in parseBufferWithMaxLengthVenueName() local
168 ByteBuffer buffer = ByteBuffer.wrap(getTestData(new String[] {text})); in parseBufferWithVenueNameLengthExceedMax() local
DANQPParserTest.java186 ByteBuffer buffer = ByteBuffer.allocate(HSWanMetricsElement.EXPECTED_BUFFER_SIZE) in getHSWanMetricsPayload() local
281 ByteBuffer buffer = ByteBuffer.wrap(getVenueNamePayload(language, text)); in parseVenueNameElement() local
303 ByteBuffer buffer = ByteBuffer.wrap(new byte[] {(byte) ipAddressAvailability}); in parseIPAddressTypeAvailabilityElement() local
319 ByteBuffer buffer = ByteBuffer.wrap(getDomainNamePayload(testNames)); in parseDomainNameElement() local
336 ByteBuffer buffer = ByteBuffer.wrap(getRoamingConsortiumPayload(ois, oisLength)); in parseRoamingConsortium() local
353 ByteBuffer buffer = ByteBuffer.wrap(getNAIRealmPayload(testBytes)); in parseNAIRealmElement() local
373 ByteBuffer buffer = ByteBuffer.wrap(getThreeGPPNetworkPayload( in parseThreeGPPNetworkElement() local
387 ByteBuffer buffer = ByteBuffer.wrap( in parseNonHS20VendorSpecificElement() local
434 ByteBuffer buffer = ByteBuffer.wrap(getHSFriendlyNamePayload(language, text)); in parseHSFrendlyNameElement() local
461 ByteBuffer buffer = ByteBuffer.wrap(data); in parseHSWANMetricsElement() local
[all …]
DHSIconFileElementTest.java81 ByteBuffer buffer = ByteBuffer.wrap(getTestData(HSIconFileElement.STATUS_CODE_SUCCESS)); in parseTruncatedBuffer() local
94 ByteBuffer buffer = ByteBuffer.wrap(getTestData(HSIconFileElement.STATUS_CODE_SUCCESS)); in parseBufferWithIconData() local
108 ByteBuffer buffer = in parseBufferWithoutIconData() local
DHSOsuProvidersElementTest.java88 ByteBuffer buffer = ByteBuffer.wrap(getTestData(TEST_OSU_SSID_BYTES)); in parseTruncatedBuffer() local
102 ByteBuffer buffer = ByteBuffer.wrap(getTestData(invalidSsidBytes)); in parseBufferWithInvalidLength() local
114 ByteBuffer buffer = ByteBuffer.wrap(getTestData(TEST_OSU_SSID_BYTES)); in parseBufferWithTestData() local
DProtocolPortTupleTest.java49 ByteBuffer buffer = ByteBuffer.allocate(ProtocolPortTuple.RAW_BYTE_SIZE) in getTestBuffer() local
76 ByteBuffer buffer = ByteBuffer.allocate(ProtocolPortTuple.RAW_BYTE_SIZE - 1); in parseBufferWithIncompleteData() local
90 ByteBuffer buffer = getTestBuffer(TEST_PROTOCOL, TEST_PORT, TEST_STATUS); in parseBufferWithTestData() local
DHSFriendlyNameElementTest.java101 ByteBuffer buffer = ByteBuffer.allocate(testData.length - 1); in parseBufferWithTruncatedByte() local
116 ByteBuffer buffer = ByteBuffer.allocate(testData.length); in parseBufferWithDefaultTestData() local
142 ByteBuffer buffer = ByteBuffer.allocate(testData.length); in parseBufferWithMaxLengthOperatoreName() local
166 ByteBuffer buffer = ByteBuffer.allocate(testData.length); in parseBufferWithOperatorNameLengthExceedMax() local
DRoamingConsortiumElementTest.java127 ByteBuffer buffer = ByteBuffer.wrap(getDefaultTestData()); in parseTruncatedBuffer() local
143 ByteBuffer buffer = ByteBuffer.wrap(getDefaultTestData()); in parseBufferWithDefaultTestData() local
155 ByteBuffer buffer = ByteBuffer.allocate(1); in parseBufferWithOILengthLessThanMinimum() local
169 ByteBuffer buffer = ByteBuffer.allocate(1); in parseBufferWithOILengthMoreThanMaximum() local
/packages/modules/Connectivity/tests/unit/java/com/android/internal/util/
DRingBufferTest.java40 RingBuffer<String> buffer = new RingBuffer<>(String.class, 100); in testEmptyRingBuffer() local
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
76 RingBuffer<String> buffer = new RingBuffer<>(String.class, 1); in testRingBufferWithCapacity1() local
97 RingBuffer<String> buffer = new RingBuffer<>(String.class, capacity); in testRingBufferWithWrapping() local
138 RingBuffer<DummyClass1> buffer = new RingBuffer<>(DummyClass1.class, capacity); in testGetNextSlot() local
/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
59 ByteBuffer buffer = ByteBuffer.wrap(data).order(ByteOrder.LITTLE_ENDIAN); in readIntegerExceedingMaximumLength() local
73 ByteBuffer buffer = ByteBuffer.wrap(data).order(ByteOrder.LITTLE_ENDIAN); in readIntegerLessThanMinimumLength() local
86 ByteBuffer buffer = ByteBuffer.wrap(data).order(ByteOrder.LITTLE_ENDIAN); in readIntegerWithMinimumSize() local
146 ByteBuffer buffer = ByteBuffer.wrap(expectedValue.getBytes(StandardCharsets.US_ASCII)); in readString() local
161 ByteBuffer buffer = ByteBuffer.allocate(expectedValue.length() + 1); in readStringWithByteLength() local
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/
Ddynamic_pt_writing_utils.cpp39 BufferWithExtendableBuffer *const buffer, const int rootPos) { in writeEmptyDictionary()
49 BufferWithExtendableBuffer *const buffer, const int forwardLinkPos, in writeForwardLinkPositionAndAdvancePosition()
55 BufferWithExtendableBuffer *const buffer, const size_t arraySize, in writePtNodeArraySizeAndAdvancePosition()
77 BufferWithExtendableBuffer *const buffer, in writeFlagsAndAdvancePosition()
84 BufferWithExtendableBuffer *const buffer, const int parentPos, const int basePos, in writeParentPosOffsetAndAdvancePosition()
90 BufferWithExtendableBuffer *const buffer, const int *const codePoints, in writeCodePointsAndAdvancePosition()
104 BufferWithExtendableBuffer *const buffer, const int childrenPosition, in writeChildrenPositionAndAdvancePosition()
110 /* static */ bool DynamicPtWritingUtils::writeDictOffset(BufferWithExtendableBuffer *const buffer, in writeDictOffset()
Dpatricia_trie_reading_utils.cpp48 const uint8_t *const buffer, int *const pos) { in getPtNodeArraySizeAndAdvancePosition()
59 const uint8_t *const buffer, int *const pos) { in getFlagsAndAdvancePosition()
63 /* static */ int PtReadingUtils::getCodePointAndAdvancePosition(const uint8_t *const buffer, in getCodePointAndAdvancePosition()
69 /* static */ int PtReadingUtils::getCharsAndAdvancePosition(const uint8_t *const buffer, in getCharsAndAdvancePosition()
95 /* static */ int PtReadingUtils::skipCharacters(const uint8_t *const buffer, const NodeFlags flags, in skipCharacters()
109 /* static */ int PtReadingUtils::readProbabilityAndAdvancePosition(const uint8_t *const buffer, in readProbabilityAndAdvancePosition()
115 const uint8_t *const buffer, const NodeFlags flags, int *const pos) { in readChildrenPositionAndAdvancePosition()
/packages/modules/StatsD/framework/test/src/android/util/
DStatsEventTest.java54 final ByteBuffer buffer = in testNoFields() local
101 final ByteBuffer buffer = in testOnlyAtomId() local
148 final ByteBuffer buffer = in testIntBooleanIntInt() local
217 final ByteBuffer buffer = in testStringFloatByteArray() local
281 final ByteBuffer buffer = in testAttributionChainLong() local
351 final ByteBuffer buffer = in testKeyValuePairs() local
445 final ByteBuffer buffer = in testSingleAnnotations() local
529 final ByteBuffer buffer = in testAtomIdAnnotations() local
614 final ByteBuffer buffer = in testSetAtomIdNotCalledImmediately() local
661 final ByteBuffer buffer = in testLargePulledEvent() local
[all …]
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
Dwritertest.cpp26 StringBuffer buffer; in TEST() local
89 StringBuffer buffer; in TEST() local
116 StringBuffer buffer; in TEST() local
126 StringBuffer buffer; in TEST() local
200 StringBuffer buffer; in TEST() local
208 StringBuffer buffer; in TEST() local
216 StringBuffer buffer; in TEST() local
223 StringBuffer buffer; in TEST() local
251 StringBuffer buffer; in TEST() local
273 StringBuffer buffer; in TEST() local
[all …]
Dstringbuffertest.cpp22 StringBuffer buffer; in TEST() local
28 StringBuffer buffer; in TEST() local
36 StringBuffer buffer; in TEST() local
47 StringBuffer buffer; in TEST() local
58 StringBuffer buffer; in TEST() local
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/shortcut/
Dshortcut_list_reading_utils.cpp34 ShortcutListReadingUtils::getFlagsAndForwardPointer(const ReadOnlyByteArrayView buffer, in getFlagsAndForwardPointer()
40 const ReadOnlyByteArrayView buffer, int *const pos) { in getShortcutListSizeAndForwardPointer()
46 /* static */ int ShortcutListReadingUtils::readShortcutTarget(const ReadOnlyByteArrayView buffer, in readShortcutTarget()
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/internal/
Ddtoa.h34 inline void GrisuRound(char* buffer, int len, uint64_t delta, uint64_t rest, uint64_t ten_kappa, ui… in GrisuRound()
59 inline void DigitGen(const DiyFp& W, const DiyFp& Mp, uint64_t delta, char* buffer, int* len, int* … in DigitGen()
110 inline void Grisu2(double value, char* buffer, int* length, int* K) { in Grisu2()
124 inline char* WriteExponent(int K, char* buffer) { in WriteExponent()
148 inline char* Prettify(char* buffer, int length, int k) { in Prettify()
189 inline char* dtoa(double value, char* buffer) { in dtoa()
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/
Dwriter.h205 char buffer[11]; in WriteInt() local
213 char buffer[10]; in WriteUint() local
221 char buffer[21]; in WriteInt64() local
229 char buffer[20]; in WriteUint64() local
237 char buffer[25]; in WriteDouble() local
351 char *buffer = os_->Push(11); in WriteInt() local
359 char *buffer = os_->Push(10); in WriteUint() local
367 char *buffer = os_->Push(21); in WriteInt64() local
375 char *buffer = os_->Push(20); in WriteUint64() local
383 char *buffer = os_->Push(25); in WriteDouble() local

12345678910>>...18