Home
last modified time | relevance | path

Searched refs:lastIndex (Results 1 – 17 of 17) sorted by relevance

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DGestureStrokeRecognitionPoints.java157 final int lastIndex = size - 1; in isStartOfAGesture() local
158 final int deltaTime = mEventTimes.get(lastIndex) - mDetectFastMoveTime; in isStartOfAGesture()
163 mXCoordinates.get(lastIndex), mYCoordinates.get(lastIndex), in isStartOfAGesture()
181 final int lastIndex = getLength() - 1; in duplicateLastPointWith() local
182 if (lastIndex >= 0) { in duplicateLastPointWith()
183 final int x = mXCoordinates.get(lastIndex); in duplicateLastPointWith()
184 final int y = mYCoordinates.get(lastIndex); in duplicateLastPointWith()
207 final int lastIndex = getLength() - 1; in appendPoint() local
211 if (lastIndex >= 0 && mEventTimes.get(lastIndex) > time) { in appendPoint()
213 x, y, time, mXCoordinates.get(lastIndex), mYCoordinates.get(lastIndex), in appendPoint()
[all …]
/packages/inputmethods/LatinIME/tools/make-keyboard-text/src/com/android/inputmethod/keyboard/tools/
DArrayInitializerFormatter.java51 final int lastIndex = mCurrentIndex - 1; in flush() local
52 if (mStartIndexOfBuffer == lastIndex) { in flush()
55 } else if (mStartIndexOfBuffer == lastIndex - 1) { in flush()
62 mIndent, mResourceNames[lastIndex], mLastElement); in flush()
69 mIndent, mResourceNames[lastIndex]); in flush()
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/
DComposedData.java50 final int lastIndex = mTypedWord.length() in copyCodePointsExceptTrailingSingleQuotesAndReturnCodePointCount() local
52 if (lastIndex <= 0) { in copyCodePointsExceptTrailingSingleQuotesAndReturnCodePointCount()
59 final int codePointSize = Character.codePointCount(mTypedWord, 0, lastIndex); in copyCodePointsExceptTrailingSingleQuotesAndReturnCodePointCount()
64 lastIndex, true /* downCase */); in copyCodePointsExceptTrailingSingleQuotesAndReturnCodePointCount()
DStringUtils.java620 final int lastIndex = charSequence.length() - 1; in getTrailingSingleQuotesCount() local
621 int i = lastIndex; in getTrailingSingleQuotesCount()
625 return lastIndex - i; in getTrailingSingleQuotesCount()
/packages/apps/TV/src/com/android/tv/data/
DWatchedHistoryManager.java69 final long lastIndex = mSharedPreferences.getLong(PREF_KEY_LAST_INDEX, -1);
70 if (lastIndex <= mLastIndex) {
78 for (long i = mLastIndex + 1; i <= lastIndex; ++i) {
90 mLastIndex = lastIndex;
235 long lastIndex = mSharedPreferences.getLong(PREF_KEY_LAST_INDEX, -1); in getRecordFromSharedPreferences() local
236 long index = lastIndex - reverseIndex; in getRecordFromSharedPreferences()
/packages/apps/Dialer/java/com/android/dialer/app/calllog/
DGroupingListAdapter.java106 int lastIndex = groupMetadata.size() - 1; in addGroup() local
107 if (lastIndex < 0 || cursorPosition <= groupMetadata.keyAt(lastIndex)) { in addGroup()
/packages/apps/Messaging/src/com/android/messaging/ui/contact/
DContactSectionIndexer.java147 final int lastIndex = sections.size() - 1; in buildIndexerFromDisplayNames() local
148 final String currentSection = lastIndex >= 0 ? sections.get(lastIndex) : null; in buildIndexerFromDisplayNames()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/conditional/
DConditionContextualCardController.java168 final int lastIndex = expandedCards.size() - 1; in getExpandedConditionalCards() local
170 (ConditionalContextualCard) expandedCards.get(lastIndex); in getExpandedConditionalCards()
171 expandedCards.set(lastIndex, card.mutate().setViewType( in getExpandedConditionalCards()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/conditional/
DConditionContextualCardController.java168 final int lastIndex = expandedCards.size() - 1; in getExpandedConditionalCards() local
170 (ConditionalContextualCard) expandedCards.get(lastIndex); in getExpandedConditionalCards()
171 expandedCards.set(lastIndex, card.mutate().setViewType( in getExpandedConditionalCards()
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
DControlBar.java269 final int lastIndex = lastUsedIndex; in updateViewsLayout() local
277 if (lastIndex < (i + 1) * mNumColumns) { in updateViewsLayout()
282 float lastRowX = mSlots[lastIndex].getX(); in updateViewsLayout()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
DFrameLayoutWithShadows.java358 int lastIndex = getChildCount() - 1; in bringViewShadowToTop() local
359 if (lastIndex == index) { in bringViewShadowToTop()
363 View lastShadowView = getChildAt(lastIndex); in bringViewShadowToTop()
DScrollAdapterView.java969 int lastIndex = lastExpandableIndex();
970 View child = getChildAt(lastIndex - 1);
987 int childIndex = lastIndex - 1 - i;
2580 int lastIndex = lastExpandableIndex();
2600 for (int idx = firstIndex; idx < lastIndex; idx += mItemsOnOffAxis) {
2605 if (idx < lastIndex - mItemsOnOffAxis) {
/packages/apps/Calendar/src/com/android/calendar/
DEventLoader.java105 int lastIndex = Math.min(lastDay - startDay, 30); in processRequest() local
107 for(int i = firstIndex; i <= lastIndex; i++) { in processRequest()
/packages/apps/Gallery/src/com/android/camera/gallery/
DImageListUber.java147 int lastIndex = mSkipListSize - 1; in nextMergeSlot() local
148 ++mSkipList[lastIndex]; in nextMergeSlot()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/
DSuggestionStripLayoutHelper.java376 final Integer lastIndex = (Integer)centerWordView.getTag(); in layoutAndReturnStartIndexOfMoreSuggestions() local
377 return (lastIndex == null ? 0 : lastIndex) + 1; in layoutAndReturnStartIndexOfMoreSuggestions()
/packages/services/Telephony/src/com/android/services/telephony/rcs/
DUserCapabilityExchangeImpl.java240 final int lastIndex = mPublishStateCallbacks.getRegisteredCallbackCount() - 1; in clearPublishStateCallbacks() local
241 for (int index = lastIndex; index >= 0; index--) { in clearPublishStateCallbacks()
/packages/apps/Camera2/src/com/android/camera/app/
DCameraAppUI.java1558 int lastIndex = mController.getCurrentModuleIndex(); in onModeSelected() local
1563 if (lastIndex == currentIndex) { in onModeSelected()