Home
last modified time | relevance | path

Searched refs:dataLength (Results 1 – 14 of 14) sorted by relevance

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DTouchPositionCorrection.java31 final int dataLength = data.length; in load() local
32 if (dataLength % TOUCH_POSITION_CORRECTION_RECORD_SIZE != 0) { in load()
40 final int length = dataLength / TOUCH_POSITION_CORRECTION_RECORD_SIZE; in load()
45 for (int i = 0; i < dataLength; ++i) { in load()
57 mEnabled = dataLength > 0; in load()
/packages/modules/IPsec/src/java/com/android/internal/net/eap/message/ttls/
DEapTtlsAvp.java81 int dataLength = avpLength - AVP_HEADER_LEN_BYTES; in EapTtlsAvp() local
84 dataLength -= AVP_VENDOR_ID_LEN_BYTES; in EapTtlsAvp()
91 if (dataLength < 0) { in EapTtlsAvp()
96 + dataLength); in EapTtlsAvp()
99 data = new byte[dataLength]; in EapTtlsAvp()
/packages/modules/StatsD/tests/src/android/cts/statsd/subscriber/
DShellSubscriberTest.java161 int dataLength = readSizetFromByteArray(output, startIndex); in checkOutput() local
162 if (dataLength == 0) { in checkOutput()
168 assertThat(output.length).isAtLeast(startIndex + sizetBytes + dataLength); in checkOutput()
173 int dataEnd = dataStart + dataLength; in checkOutput()
184 startIndex += sizetBytes + dataLength; in checkOutput()
/packages/apps/TV/tuner/src/com/android/tv/tuner/hdhomerun/
DHdHomeRunUtils.java126 int dataLength = buffer.getShort() & 0xffff; in openFrame() local
128 if (dataLength + 8 > length) { in openFrame()
132 byte[] result = new byte[dataLength]; in openFrame()
134 byte[] calculatedCrc = getCrcFromBytes(Arrays.copyOfRange(data, 0, dataLength + 4)); in openFrame()
/packages/modules/Wifi/framework/java/android/net/wifi/aware/
DTlvBufferUtils.java334 private void checkLength(int dataLength) { in checkLength() argument
335 if (mPosition + mTypeSize + mLengthSize + dataLength > mArrayLength) { in checkLength()
340 private void checkRawLength(int dataLength) { in checkRawLength() argument
341 if (mPosition + dataLength > mArrayLength) { in checkRawLength()
/packages/apps/Dialer/java/com/android/dialer/persistentlog/
DPersistentLogFileHandler.java234 int dataLength = inputStream.readInt(); in readLog() local
235 if (dataLength > fileSizeLimit) { in readLog()
238 byte[] data = new byte[dataLength]; in readLog()
/packages/apps/Bluetooth/src/com/android/bluetooth/sap/
DSapMessage.java735 byte[] dataLength = new byte[4]; in writeLength()
736 dataLength[0] = dataLength[1] = 0; in writeLength()
737 dataLength[2] = (byte) ((length >> 8) & 0xff); in writeLength()
738 dataLength[3] = (byte) ((length) & 0xff); in writeLength()
739 out.writeRawBytes(dataLength); in writeLength()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/
DNAIRealmElementTest.java46 int dataLength = NAIRealmDataTestUtil.TEST_REAML_WITH_UTF8_DATA_BYTES.length * dataCount; in getTestBufferWithNAIRealmData() local
48 ByteBuffer buffer = ByteBuffer.allocate(dataLength + 2).order(ByteOrder.LITTLE_ENDIAN); in getTestBufferWithNAIRealmData()
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/
DPduComposer.java1048 int dataLength = 0; // Just for safety... in makeMessageBody() local
1053 dataLength = partData.length; in makeMessageBody()
1063 dataLength += len; in makeMessageBody()
1082 if (dataLength != (attachment.getLength() - headerLength)) { in makeMessageBody()
1088 appendUintvarInteger(dataLength); in makeMessageBody()
DPduParser.java876 int dataLength = parseUnsignedInt(pduDataStream); in parseParts() local
930 if (dataLength > 0) { in parseParts()
931 byte[] partData = new byte[dataLength]; in parseParts()
933 pduDataStream.read(partData, 0, dataLength); in parseParts()
/packages/apps/Messaging/src/android/support/v7/mms/pdu/
DPduParser.java842 int dataLength = parseUnsignedInt(pduDataStream); in parseParts() local
896 if (dataLength > 0) { in parseParts()
897 byte[] partData = new byte[dataLength]; in parseParts()
899 pduDataStream.read(partData, 0, dataLength); in parseParts()
/packages/modules/NeuralNetworks/runtime/test/
DTestValidation.cpp499 const size_t dataLength = sizeof(data); in TEST_F() local
501 ANeuralNetworksModel_setOperandExtensionData(nullptr, operandIndex, &data, dataLength), in TEST_F()
504 ANeuralNetworksModel_setOperandExtensionData(mModel, operandIndex, nullptr, dataLength), in TEST_F()
509 dataLength), in TEST_F()
511 EXPECT_EQ(ANeuralNetworksModel_setOperandExtensionData(mModel, operandIndex, &data, dataLength), in TEST_F()
525 const size_t dataLength = sizeof(data); in TEST_F() local
526 EXPECT_EQ(ANeuralNetworksModel_setOperandExtensionData(mModel, operandIndex, &data, dataLength), in TEST_F()
/packages/modules/NetworkStack/tests/unit/src/android/net/apf/
DApfTest.java1735 int dport, int seq, int ack, int dataLength) { in ipv4TcpPacket() argument
1736 final int totalLength = dataLength + IPV4_HEADER_LEN + IPV4_TCP_HEADER_LEN; in ipv4TcpPacket()
1828 int dport, int dataLength) { in ipv4UdpPacket() argument
1829 final int totalLength = dataLength + IPV4_HEADER_LEN + UDP_HEADER_LEN; in ipv4UdpPacket()
1830 final int udpLength = UDP_HEADER_LEN + dataLength; in ipv4UdpPacket()
/packages/modules/RuntimeI18n/apex/hiddenapi/
Dhiddenapi-max-target-o-low-priority.txt1154 Landroid/icu/impl/Trie2;->dataLength:I