Home
last modified time | relevance | path

Searched refs:getLength (Results 1 – 25 of 114) sorted by relevance

12345

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/common/
DResizableIntArrayTests.java43 assertEquals("new instance length", 0, src.getLength()); in testNewInstance()
57 assertEquals("length after add " + i, i + 1, src.getLength()); in testAdd()
85 assertEquals("length after add at " + i, i + 1, src.getLength()); in testAddAt()
112 assertEquals("legth after add at " + index, index + 1, src.getLength()); in testGet()
116 src.get(src.getLength()); in testGet()
130 assertEquals("length after add " + i, i + 1, src.getLength()); in testReset()
136 assertEquals("length after reset", 0, src.getLength()); in testReset()
143 assertEquals("length after add " + i, i + 1, src.getLength()); in testReset()
162 assertEquals("length after add " + i, i + 1, src.getLength()); in testSetLength()
168 assertEquals("length after larger setLength", largerLength, src.getLength()); in testSetLength()
[all …]
/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/
DExerciseLap.java61 public Length getLength() { in getLength() method in ExerciseLap
98 && Objects.equals(getLength(), that.getLength()); in equals()
103 return Objects.hash(mInterval, getLength()); in hashCode()
113 if (getLength() != null) { in toExerciseLapInternal()
114 internalLap.setLength(getLength().getInMeters()); in toExerciseLapInternal()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DGestureStrokeRecognitionPoints.java107 public int getLength() { in getLength() method in GestureStrokeRecognitionPoints
108 return mEventTimes.getLength(); in getLength()
153 final int size = getLength(); in isStartOfAGesture()
181 final int lastIndex = getLength() - 1; in duplicateLastPointWith()
207 final int lastIndex = getLength() - 1; in appendPoint()
233 final int size = getLength(); in detectFastMove()
274 final int size = getLength(); in addEventPoint()
301 mIncrementalRecognitionSize = getLength(); in updateIncrementalRecognitionSize()
313 appendBatchPoints(out, getLength()); in appendAllBatchPoints()
DGestureStrokeDrawingPoints.java68 final boolean isDownEvent = (mPreviewEventTimes.getLength() == 0); in needsSampling()
96 final int length = mPreviewEventTimes.getLength() - mLastPreviewSize; in appendPreviewStroke()
104 types.fill(GestureTrailDrawingPoints.POINT_TYPE_SAMPLED, types.getLength(), length); in appendPreviewStroke()
106 mLastPreviewSize = mPreviewEventTimes.getLength(); in appendPreviewStroke()
127 final int size = mPreviewEventTimes.getLength(); in interpolateStrokeAndReturnStartIndexOfLastSegment()
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/protocol/rtp/core/
DRtcpXrPacket.cpp70 RtpDt_UInt32 uiXrPktPos = pobjRtcpPktBuf->getLength(); in formRtcpXrPacket()
71 RtpDt_UInt32 uiCurPos = pobjRtcpPktBuf->getLength(); in formRtcpXrPacket()
85 memcpy(pucBuffer, pReportBlk->getBuffer(), pReportBlk->getLength()); in formRtcpXrPacket()
87 uiCurPos = uiCurPos + pReportBlk->getLength(); in formRtcpXrPacket()
99 pucBuffer = pucBuffer + pReportBlk->getLength(); in formRtcpXrPacket()
DRtcpByePacket.cpp121 RtpDt_UInt32 uiCurPos = pobjRtcpPktBuf->getLength(); in formByePacket()
139 *(reinterpret_cast<RtpDt_UChar*>(pucBuffer)) = (RtpDt_UChar)m_pReason->getLength(); in formByePacket()
143 memcpy(pucBuffer, m_pReason->getBuffer(), m_pReason->getLength()); in formByePacket()
144 uiCurPos = uiCurPos + m_pReason->getLength(); in formByePacket()
149 RtpDt_UInt32 uiByePktPos = pobjRtcpPktBuf->getLength(); in formByePacket()
159 pucBuffer = pucBuffer + m_pReason->getLength(); in formByePacket()
DRtcpAppPacket.cpp91 RtpDt_UInt32 uiAppPktPos = pobjRtcpPktBuf->getLength(); in formAppPacket()
93 RtpDt_UInt32 uiCurPos = pobjRtcpPktBuf->getLength(); in formAppPacket()
107 memcpy(pucBuffer, m_pAppData->getBuffer(), m_pAppData->getLength()); in formAppPacket()
108 uiCurPos = uiCurPos + m_pAppData->getLength(); in formAppPacket()
121 pucBuffer = pucBuffer + m_pAppData->getLength(); in formAppPacket()
DRtcpFbPacket.cpp111 RtpDt_UInt32 uiFbPktPos = pobjRtcpPktBuf->getLength(); in formRtcpFbPacket()
112 RtpDt_UInt32 uiCurPos = pobjRtcpPktBuf->getLength(); in formRtcpFbPacket()
132 memcpy(pucBuffer, pFCI->getBuffer(), pFCI->getLength()); in formRtcpFbPacket()
133 uiCurPos = uiCurPos + pFCI->getLength(); in formRtcpFbPacket()
144 pucBuffer = pucBuffer + pFCI->getLength(); in formRtcpFbPacket()
DRtpPacket.cpp83 RtpDt_UInt32 uiRtpBufPos = pobjRtpPktBuf->getLength(); in formPacket()
90 uiRtpUtlBufLen = m_pobjExt->getLength(); in formPacket()
100 uiRtpUtlBufLen = m_pobjRtpPayload->getLength(); in formPacket()
136 uiRtpUtlBufLen = pobjRtpPktBuf->getLength(); in decodePacket()
DRtcpSdesPacket.cpp91 RtpDt_UInt32 uiSdesPktPos = pobjRtcpPktBuf->getLength(); in formSdesPacket()
113 uiCurPos = pobjRtcpPktBuf->getLength(); in formSdesPacket()
135 "formSdesPacket, [SDES packet length] : %d]", m_objRtcpHdr.getLength(), nullptr); in formSdesPacket()
DRtcpRrPacket.cpp119 RtpDt_UInt32 uiRtPktPos = pobjRtcpPktBuf->getLength(); in formRrPacket()
133 RtpDt_UInt32 uiCurPos = pobjRtcpPktBuf->getLength(); in formRrPacket()
138 RtpDt_UInt32 uiExtHdrLen = m_pobjExt->getLength(); in formRrPacket()
DRtcpPacket.cpp180 pobjRtcpPktBuf->getLength() < RTP_WORD_SIZE) in decodeRtcpPacket()
184 if (pobjRtcpPktBuf->getLength() == RTP_WORD_SIZE) in decodeRtcpPacket()
186 m_objHeader.decodeRtcpHeader(pobjRtcpPktBuf->getBuffer(), pobjRtcpPktBuf->getLength()); in decodeRtcpPacket()
191 RtpDt_UInt32 uiCompPktLen = pobjRtcpPktBuf->getLength(); in decodeRtcpPacket()
212 RtpDt_UInt16 usPktLen = m_objHeader.getLength(); in decodeRtcpPacket()
DRtcpHeader.cpp91 RtpDt_UInt32 RtcpHeader::getLength() in getLength() function in RtcpHeader
157 RtpDt_UInt32 uiBufPos = pobjRtcpPktBuf->getLength(); in formRtcpHeader()
174 RtpDt_UInt32 uiBufPos = pobjRtcpPktBuf->getLength(); in formPartialRtcpHeader()
/packages/modules/ImsMedia/tests/native/service/src/com/android/telephony/imsmedia/lib/libimsmedia/protocol/rtp/core/
DRtcpPacketTest.cpp97 EXPECT_EQ(pRtcpHeader->getLength(), 6 * RTP_WORD_SIZE); in TEST_F()
136 EXPECT_EQ(pRtcpHeader->getLength(), 10 * RTP_WORD_SIZE); in TEST_F()
220 EXPECT_EQ(pRtcpHeader->getLength(), 12 * RTP_WORD_SIZE); in TEST_F()
263 EXPECT_EQ(pRtcpHeader->getLength(), 7 * RTP_WORD_SIZE); in TEST_F()
377 EXPECT_EQ(pRtcpHeader->getLength(), 12 * RTP_WORD_SIZE); in TEST_F()
420 EXPECT_EQ(pRtcpHeader->getLength(), 7 * RTP_WORD_SIZE); in TEST_F()
465 EXPECT_EQ(pRtcpHeader->getLength(), 7 * RTP_WORD_SIZE); in TEST_F()
509 EXPECT_EQ(pRtcpHeader->getLength(), 6 * RTP_WORD_SIZE); in TEST_F()
522 EXPECT_EQ(reason->getLength(), strlen(leaveReason)); in TEST_F()
564 EXPECT_EQ(pRtcpHeader->getLength(), 10 * RTP_WORD_SIZE); in TEST_F()
[all …]
DRtcpHeaderTest.cpp100 EXPECT_EQ(rtcpHeader.getLength(), 0); in TEST_F()
103 EXPECT_EQ(rtcpHeader.getLength(), 202); in TEST_F()
128 EXPECT_EQ(rtcpHeader.getLength(), 6 * RTP_WORD_SIZE); in TEST_F()
138 EXPECT_EQ(rtcpHeader.getLength(), 0xFFFF * RTP_WORD_SIZE); in TEST_F()
158 EXPECT_EQ(rtpBuffer.getLength(), sizeof(bExpectedRtcpBuff)); in TEST_F()
DRtpPacketTest.cpp43 EXPECT_EQ(pobjRtpBuffer->getLength(), sizeof(pRtpPayLoad)); in TEST()
53 EXPECT_EQ(pobjRtpExtHdr->getLength(), sizeof(pRtpExtHdr)); in TEST()
96 EXPECT_EQ(pobjRtpExtHdr->getLength(), sizeof(pRtpExtHdr)); in TEST()
105 EXPECT_EQ(pobjRtpBuffer->getLength(), sizeof(pRtpPayLoad)); in TEST()
220 EXPECT_EQ(pobjRtpBuffer->getLength(), sizeof(pRtpPayLoad)); in TEST()
/packages/modules/HealthFitness/tests/unittests/src/android/healthconnect/internal/datatypes/
DExerciseLapInternalTest.java80 assertThat(restored.getLength()).isEqualTo(lap.getLength()); in assertLapsAreEqual()
92 assertThat(converted.getLength()).isEqualTo(externalLap.getLength()); in assertLapsAreEqual()
/packages/modules/ImsMedia/tests/native/service/src/com/android/telephony/imsmedia/lib/libimsmedia/protocol/rtp/utils/
DRtpBufferTest.cpp47 EXPECT_EQ(0, testBuf->getLength()); in TEST_F()
54 EXPECT_EQ(10, testBuf->getLength()); in TEST_F()
63 EXPECT_EQ(7, testBuf->getLength()); in TEST_F()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DMeasureHelper.java48 getLength(widthSpec, mPreferredWidth + p.left + p.right), in measure()
49 getLength(heightSpec, mPreferredHeight + p.top + p.bottom)); in measure()
52 private static int getLength(int measureSpec, int prefered) { in getLength() method in MeasureHelper
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/
DExerciseLapInternal.java98 if (getLength() != 0) { in toExternalRecord()
99 builder.setLength(Length.fromMeters(getLength())); in toExternalRecord()
105 public double getLength() { in getLength() method in ExerciseLapInternal
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/omadm/
DMoSerializerTest.java91 assertEquals(element.getChildNodes().getLength(), 1); in testShouldReturnValidElementForCreateNodeForUrn()
114 assertEquals(element.getChildNodes().getLength(), 1); in testShouldReturnValidElementForCreateNode()
133 assertEquals(element.getChildNodes().getLength(), 2); in testShouldReturnValidElementForCreateNodeForValue()
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/
DInputPointers.java42 final int fromIndex = mTimes.getLength(); in fillWithLastTimeUntil()
107 mPointerIds.fill(pointerId, mPointerIds.getLength(), length); in append()
132 return mXCoordinates.getLength(); in getPointerSize()
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/
DPduComposer.java351 final int len = start.getLength(); in appendEncodedString()
562 final int flen = fstart.getLength(); in appendHeader()
644 final int valueLength = valueStart.getLength(); in appendHeader()
954 final int ctLength = ctStart.getLength(); in makeMessageBody()
1021 final int contentTypeLength = contentTypeBegin.getLength(); in makeMessageBody()
1046 final int headerLength = attachment.getLength(); in makeMessageBody()
1082 if (dataLength != (attachment.getLength() - headerLength)) { in makeMessageBody()
1116 int getLength() { in getLength() method in PduComposer.PositionMarker
/packages/apps/ImsServiceEntitlement/src/com/android/imsserviceentitlement/utils/
DXmlDoc.java142 for (int i = 0; i < nodeList.getLength(); i++) { in parseXmlResponse()
153 if (element.getElementsByTagName(NODE_CHARACTERISTIC).getLength() != 0) { in parseXmlResponse()
177 for (int i = 0; i < nodeList.getLength(); i++) { in parseParams()
182 for (int j = 0; j < map.getLength(); j++) { in parseParams()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/message/
DEapDataTest.java66 assertEquals(EAP_TYPE_DATA.length + 1, eapData.getLength()); in testGetLength()
91 ByteBuffer b = ByteBuffer.allocate(eapData.getLength()); in testEncodeToByteBuffer()

12345