Home
last modified time | relevance | path

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

12

/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/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()
DGestureTrailDrawingPoints.java79 final int trailSize = mEventTimes.getLength(); in addStrokeLocked()
81 if (mEventTimes.getLength() == trailSize) { in addStrokeLocked()
168 final int trailSize = mEventTimes.getLength(); in drawGestureTrailLocked()
DBatchInputArbiter.java95 final int beforeLength = mRecognitionPoints.getLength(); in addMoveEventPoint()
98 if (mRecognitionPoints.getLength() > beforeLength) { in addMoveEventPoint()
/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/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/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/DeskClock/src/com/android/deskclock/data/
DTimerDAO.java119 editor.putLong(LENGTH + id, timer.getLength()); in addTimer()
130 return new Timer(id, timer.getState(), timer.getLength(), timer.getTotalLength(), in addTimer()
144 editor.putLong(LENGTH + id, timer.getLength()); in updateTimer()
DTimer.java124 public long getLength() { return mLength; } in getLength() method in Timer
424 order = Long.compare(timer1.getLength(), timer2.getLength());
/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()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/
DTestUtils.java113 final int length = Array.getLength(value1); in arrayEquals()
114 if (length != Array.getLength(value2)) { in arrayEquals()
/packages/modules/IPsec/src/java/com/android/internal/net/eap/message/
DEapMessage.java109 this.eapLength = EAP_HEADER_LENGTH + ((eapData == null) ? 0 : eapData.getLength()); in EapMessage()
158 int eapDataLength = (eapData == null) ? 0 : eapData.getLength(); in decode()
/packages/apps/Nfc/src/com/android/nfc/snep/
DSnepServer.java158 } else if (NfcService.sIsDtaMode && ((request.getLength() > SnepMessage.MAL_IUT) || in handleRequest()
159 request.getLength() == SnepMessage.MAL)) { in handleRequest()
/packages/apps/Nfc/src/com/android/nfc/sneptest/
DExtDtaSnepServer.java129 …} else if ((request.getLength() > SnepMessage.MAL_IUT) || request.getLength() == SnepMessage.MAL) { in handleRequest()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeEncryptedPayloadBody.java380 int getLength() { in getLength() method in IkeEncryptedPayloadBody
386 ByteBuffer buffer = ByteBuffer.allocate(getLength()); in encode()
DIkeSkPayload.java195 return GENERIC_HEADER_LENGTH + mIkeEncryptedPayloadBody.getLength(); in getPayloadLength()
/packages/apps/TV/tuner/src/com/android/tv/tuner/hdhomerun/
DHdHomeRunDiscover.java357 if (DEBUG) Log.d(TAG, "Received packet, size: " + packet.getLength()); in receive()
370 HdHomeRunUtils.openFrame(packet.getData(), packet.getLength()); in receive()
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/
DFixedLengthInputStream.java71 public int getLength() { in getLength() method in FixedLengthInputStream
/packages/apps/Messaging/src/com/android/messaging/util/
DMediaUtilImpl.java42 afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in playSound()
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/imap/
DImapMemoryLiteral.java34 data = new byte[in.getLength()]; in ImapMemoryLiteral()
DImapTempFileLiteral.java42 size = stream.getLength(); in ImapTempFileLiteral()
/packages/apps/SecureElement/src/com/android/se/security/
DApduFilter.java115 public int getLength() { in getLength() method in ApduFilter
/packages/apps/Dialer/java/com/android/voicemail/impl/sms/
DSyncMessage.java122 public int getLength() { in getLength() method in SyncMessage
/packages/apps/PhoneCommon/src/com/android/phone/common/compat/
DPathInterpolatorCompat.java46 final float pathLength = pathMeasure.getLength(); in PathInterpolatorBase()

12