Home
last modified time | relevance | path

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

12345678910>>...23

/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/Uwb/service/java/com/android/server/uwb/params/
DTlvUtil.java24 ByteBuffer buffer = ByteBuffer.allocate(Byte.BYTES).put(data); in getBytes() local
29 ByteBuffer buffer = ByteBuffer.allocate(Short.BYTES).order( in getBytes() local
35 ByteBuffer buffer = ByteBuffer.allocate(Short.BYTES).order( in getLeBytes() local
41 ByteBuffer buffer = ByteBuffer.allocate(Integer.BYTES).order( in getBytes() local
47 ByteBuffer buffer = ByteBuffer.allocate(Integer.BYTES).order( in getLeBytes() local
53 ByteBuffer buffer = ByteBuffer.allocate(Long.BYTES).order( in getBytes() local
59 ByteBuffer buffer = ByteBuffer.allocate(Long.BYTES).order( in getLeBytes() local
81 ByteBuffer buffer = ByteBuffer.allocate(size); in getBytesWithLeftPadding() local
89 ByteBuffer buffer = ByteBuffer.allocate(size).put(data); in getBytesWithRightPadding() local
/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
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 …]
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
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
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/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/pbap/
DHandlerForStringBufferTest.java60 HandlerForStringBuffer buffer = new HandlerForStringBuffer(mOperation, ownerVcard); in init_withNonNullOwnerVCard_returnsTrue() local
69 HandlerForStringBuffer buffer = new HandlerForStringBuffer(mOperation, ownerVcard); in init_withNullOwnerVCard_returnsTrue() local
80 HandlerForStringBuffer buffer = new HandlerForStringBuffer(mOperation, ownerVcard); in init_withIOExceptionWhenOpeningOutputStream_returnsFalse() local
88 HandlerForStringBuffer buffer = new HandlerForStringBuffer(mOperation, ownerVcard); in writeVCard_withNonNullOwnerVCard_returnsTrue() local
99 HandlerForStringBuffer buffer = new HandlerForStringBuffer(mOperation, ownerVcard); in writeVCard_withNullOwnerVCard_returnsFalse() local
110 HandlerForStringBuffer buffer = new HandlerForStringBuffer(mOperation, /*ownerVcard=*/null); in writeVCard_withIOExceptionWhenWritingToStream_returnsFalse() local
121 HandlerForStringBuffer buffer = new HandlerForStringBuffer(mOperation, ownerVcard); in terminate() 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/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/modules/StatsD/framework/test/unittests/src/android/util/
DStatsEventTest.java50 final ByteBuffer buffer = in testNoFields() local
97 final ByteBuffer buffer = in testOnlyAtomId() local
144 final ByteBuffer buffer = in testIntBooleanIntInt() local
213 final ByteBuffer buffer = in testStringFloatByteArray() local
277 final ByteBuffer buffer = in testAttributionChainLong() local
347 final ByteBuffer buffer = in testKeyValuePairs() local
443 final ByteBuffer buffer = in testBoolArrayIntArrayLongArray() local
549 final ByteBuffer buffer = in testFloatArrayStringArray() local
639 final ByteBuffer buffer = in testSingleAnnotations() local
723 final ByteBuffer buffer = in testArrayFieldAnnotations() local
[all …]
/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/Bluetooth/system/embdrv/lc3/src/
Dbits.c62 const struct lc3_bits_buffer *buffer = &bits->buffer; in get_bits_left() local
81 enum lc3_bits_mode mode, void *buffer, int len) in lc3_setup_bits()
101 struct lc3_bits_buffer *buffer = &bits->buffer; in lc3_setup_bits() local
140 struct lc3_bits_accu *accu, struct lc3_bits_buffer *buffer) in accu_flush()
159 static inline void ac_put(struct lc3_bits_buffer *buffer, int byte) in ac_put()
171 struct lc3_bits_ac *ac, struct lc3_bits_buffer *buffer) in ac_shift()
197 struct lc3_bits_buffer *buffer) in ac_terminate()
250 struct lc3_bits_buffer *buffer = &bits->buffer; in lc3_flush_bits() local
306 static inline int ac_get(struct lc3_bits_buffer *buffer) in ac_get()
317 struct lc3_bits_buffer *buffer) in accu_load()
[all …]
/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
/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/services/Car/cpp/evs/manager/aidl/wrappers/src/
DHidlCameraStream.cpp34 Return<void> HidlCameraStream::deliverFrame(const hidlevs::V1_0::BufferDesc& buffer) { in deliverFrame()
52 hidlevs::V1_1::BufferDesc buffer = std::move(buffers[i]); in deliverFrame_1_1() local
76 [id](const hidlevs::V1_0::BufferDesc& buffer) { in getHidlBuffer()
90 [id](const hidlevs::V1_1::BufferDesc& buffer) { in getHidlBuffer()
/packages/modules/StatsD/lib/libstatssocket/tests/
Dstats_event_test.cpp56 T readNext(uint8_t** buffer) { in readNext()
67 void checkTypeHeader(uint8_t** buffer, uint8_t typeId, uint8_t numAnnotations = 0) { in checkTypeHeader()
73 void checkScalar(uint8_t** buffer, T expectedValue) { in checkScalar()
77 void checkString(uint8_t** buffer, const string& expectedString) { in checkString()
84 void checkByteArray(uint8_t** buffer, const vector<uint8_t>& expectedByteArray) { in checkByteArray()
91 void checkArrayMetadata(uint8_t** buffer, uint8_t numElements, uint8_t elementTypeId, in checkArrayMetadata()
99 void checkScalarArray(uint8_t** buffer, uint8_t numElements, uint8_t elementTypeId, in checkScalarArray()
109 void checkAnnotation(uint8_t** buffer, uint8_t annotationId, uint8_t typeId, T annotationValue) { in checkAnnotation()
115 void checkMetadata(uint8_t** buffer, uint8_t numElements, int64_t startTime, int64_t endTime, in checkMetadata()
153 uint8_t* buffer = AStatsEvent_getBuffer(event, &bufferSize); in TEST() local
[all …]

12345678910>>...23