/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() 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/inputmethods/LatinIME/native/jni/tests/dictionary/utils/ |
D | format_utils_test.cpp | 34 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
|
D | byte_array_utils_test.cpp | 28 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
|
D | buffer_with_extendable_buffer_test.cpp | 27 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/modules/Uwb/service/java/com/android/server/uwb/params/ |
D | TlvUtil.java | 24 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/ |
D | VenueUrlElementTest.java | 108 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 …]
|
D | HSConnectionCapabilityElementTest.java | 50 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
|
D | HSWanMetricsElementTest.java | 58 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
|
D | ANQPParserTest.java | 186 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 …]
|
D | VenueNameElementTest.java | 99 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
|
D | NAIRealmDataTest.java | 54 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
|
D | HSFriendlyNameElementTest.java | 101 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
|
D | RoamingConsortiumElementTest.java | 127 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
|
D | HSOsuProvidersElementTest.java | 88 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
|
D | HSIconFileElementTest.java | 81 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
|
D | ProtocolPortTupleTest.java | 49 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
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/pbap/ |
D | HandlerForStringBufferTest.java | 61 HandlerForStringBuffer buffer = new HandlerForStringBuffer(mOperation, ownerVcard); in init_withNonNullOwnerVCard_returnsTrue() local 70 HandlerForStringBuffer buffer = new HandlerForStringBuffer(mOperation, ownerVcard); in init_withNullOwnerVCard_returnsTrue() local 81 HandlerForStringBuffer buffer = new HandlerForStringBuffer(mOperation, ownerVcard); in init_withIOExceptionWhenOpeningOutputStream_returnsFalse() local 89 HandlerForStringBuffer buffer = new HandlerForStringBuffer(mOperation, ownerVcard); in writeVCard_withNonNullOwnerVCard_returnsTrue() local 100 HandlerForStringBuffer buffer = new HandlerForStringBuffer(mOperation, ownerVcard); in writeVCard_withNullOwnerVCard_returnsFalse() local 111 HandlerForStringBuffer buffer = in writeVCard_withIOExceptionWhenWritingToStream_returnsFalse() local 123 HandlerForStringBuffer buffer = new HandlerForStringBuffer(mOperation, ownerVcard); in terminate() local
|
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/async/ |
D | CircularByteBufferTest.java | 37 CircularByteBuffer buffer = new CircularByteBuffer(capacity); in writeBytes() local 79 CircularByteBuffer buffer = doTestReadWrite(accessor, 20, 5, 4); in doTestReadWriteWithFullBuffer() local 88 CircularByteBuffer buffer = doTestReadWrite(accessor, 31, 13, 7); in doTestReadWriteWithRollover() local 95 CircularByteBuffer buffer = new CircularByteBuffer(capacity); in doTestReadWrite() local 164 CircularByteBuffer buffer = new CircularByteBuffer(23); in readBytes_overflow() local 182 CircularByteBuffer buffer = new CircularByteBuffer(23); in writeBytes_overflow() local 198 private static int fillTestBytes(byte[] buffer, int pos, int len, int startValue) { in fillTestBytes() 207 byte[] buffer, int pos, int len, int startValue, int totalRead) { in checkTestBytes() 229 void writeBytes(CircularByteBuffer buffer, byte[] src, int pos, int len) { in writeBytes() 248 void readBytes(CircularByteBuffer buffer, byte[] dst, int pos, int len) { in readBytes()
|
/packages/modules/StatsD/framework/test/unittests/src/android/util/ |
D | StatsEventTest.java | 50 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/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 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/ |
D | dynamic_pt_writing_utils.cpp | 39 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()
|
D | patricia_trie_reading_utils.cpp | 48 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/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/netlink/ |
D | StructInetDiagSockIdTest.java | 143 final ByteBuffer buffer = ByteBuffer.allocate(StructInetDiagSockId.STRUCT_SIZE); in testPackStructInetDiagSockIdWithIpv4() local 153 final ByteBuffer buffer = ByteBuffer.allocate(StructInetDiagSockId.STRUCT_SIZE); in testPackStructInetDiagSockIdWithIpv6() local 164 final ByteBuffer buffer = ByteBuffer.allocate(StructInetDiagSockId.STRUCT_SIZE); in testPackStructInetDiagSockIdWithIpv4IfIndexCookie() local 175 final ByteBuffer buffer = ByteBuffer.allocate(StructInetDiagSockId.STRUCT_SIZE); in testPackStructInetDiagSockIdWithIpv6IfIndexCookie() local 182 final ByteBuffer buffer = ByteBuffer.wrap(INET_DIAG_SOCKET_ID_IPV4_IF_COOKIE); in testParseStructInetDiagSockIdWithIpv4() local 195 final ByteBuffer buffer = ByteBuffer.wrap(INET_DIAG_SOCKET_ID_IPV6_IF_COOKIE); in testParseStructInetDiagSockIdWithIpv6() local
|
/packages/modules/StatsD/lib/libstatssocket/tests/ |
D | stats_event_test.cpp | 56 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 …]
|
/packages/services/Car/cpp/evs/manager/aidl/wrappers/src/ |
D | HidlCameraStream.cpp | 38 Return<void> HidlCameraStream::deliverFrame(const hidlevs::V1_0::BufferDesc& buffer) { in deliverFrame() 80 hidlevs::V1_1::BufferDesc buffer = std::move(buffers[i]); in deliverFrame_1_1() local 107 [id](const hidlevs::V1_0::BufferDesc& buffer) { in getHidlBuffer() 121 [id](const hidlevs::V1_1::BufferDesc& buffer) { in getHidlBuffer()
|