Home
last modified time | relevance | path

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

12

/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/modules/NeuralNetworks/common/cpu_operations/
DMaximumMinimum.cpp42 bool lastIndex = false; in evalGeneric() local
54 NN_CHECK(outputShapeIndexed.nextIndexInplace(&curIndex, &lastIndex)); in evalGeneric()
55 } while (!lastIndex); in evalGeneric()
68 bool lastIndex = false; in evalQuant8() local
82 NN_CHECK(outputShapeIndexed.nextIndexInplace(&curIndex, &lastIndex)); in evalQuant8()
83 } while (!lastIndex); in evalQuant8()
DPow.cpp41 bool lastIndex = false; in evalGeneric() local
53 NN_CHECK(outputShapeIndexed.nextIndexInplace(&curIndex, &lastIndex)); in evalGeneric()
54 } while (!lastIndex); in evalGeneric()
DLogicalAndOr.cpp39 bool lastIndex = false; in compute() local
50 NN_RET_CHECK(outputShapeIndexed.nextIndexInplace(&curIndex, &lastIndex)); in compute()
51 } while (!lastIndex); in compute()
DPRelu.cpp52 bool lastIndex = false; in eval() local
63 NN_RET_CHECK(outputShapeIndexed.nextIndexInplace(&curIndex, &lastIndex)); in eval()
64 } while (!lastIndex); in eval()
DSlice.cpp59 bool lastIndex = false; in evalGeneric() local
70 NN_RET_CHECK(indexedOutput.nextIndexInplace(&outputIndex, &lastIndex)); in evalGeneric()
71 } while (!lastIndex); in evalGeneric()
DComparisons.cpp41 bool lastIndex = false; in compute() local
59 NN_RET_CHECK(outputShapeIndexed.nextIndexInplace(&curIndex, &lastIndex)); in compute()
60 } while (!lastIndex); in compute()
/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/services/Car/libs/vehicle-hal-support-lib/src/com/android/car/hal/test/
DDiagnosticEventBuilder.java174 int lastIndex = 0; in getLastIndex() local
181 if (value > lastIndex) { in getLastIndex()
182 lastIndex = value; in getLastIndex()
189 return lastIndex; in getLastIndex()
/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/Settings/src/com/android/settings/core/
DRoundCornerPreferenceAdapter.java143 int lastIndex = visibleList.size() - 1; in mappingPreferenceGroup() local
144 int newValue = visibleList.get(lastIndex) & ~ROUND_CORNER_BOTTOM; in mappingPreferenceGroup()
145 visibleList.set(lastIndex, newValue); in mappingPreferenceGroup()
/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/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/modules/NeuralNetworks/common/
DIndexedShapeWrapper.cpp36 bool IndexedShapeWrapper::nextIndexInplace(std::vector<uint32_t>* index, bool* lastIndex) const { in nextIndexInplace()
47 *lastIndex = true; in nextIndexInplace()
/packages/services/Car/service/src/com/android/car/hal/
DDiagnosticHalService.java381 int lastIndex = 0; in getLastIndex() local
388 if (value > lastIndex) { in getLastIndex()
389 lastIndex = value; in getLastIndex()
396 return lastIndex; in getLastIndex()
/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()
/packages/apps/Calendar/src/com/android/calendar/
DEventLoader.kt82 val lastIndex: Int = Math.min(lastDay - startDay, 30) in processRequest() constant
83 for (i in firstIndex..lastIndex) { in processRequest()
/packages/modules/NeuralNetworks/common/include/
DIndexedShapeWrapper.h41 bool nextIndexInplace(std::vector<uint32_t>* index, bool* lastIndex) const;
/packages/apps/Gallery/src/com/android/camera/gallery/
DImageListUber.java147 int lastIndex = mSkipListSize - 1; in nextMergeSlot() local
148 ++mSkipList[lastIndex]; in nextMergeSlot()
/packages/apps/Settings/src/com/android/settings/accessibility/
DPaletteListPreference.java176 final int lastIndex = size - 1; in updateFirstAndLastItemsBackground() local
180 (GradientDrawable) rootView.getChildAt(lastIndex).getBackground(); in updateFirstAndLastItemsBackground()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/
DBatteryChartView.java521 final int lastIndex = displayAreas.length - 1; in drawAxisLabels() local
526 drawAxisLabelText(canvas, lastIndex, displayAreas[lastIndex], baselineY); in drawAxisLabels()
527 mLabelDrawnIndexes.add(lastIndex); in drawAxisLabels()
528 drawAxisLabelsBetweenStartIndexAndEndIndex(canvas, displayAreas, 0, lastIndex, baselineY); in drawAxisLabels()
/packages/apps/Launcher3/src/com/android/launcher3/widget/picker/util/
DWidgetPreviewContainerSize.kt77 while (currentIndex <= containerSizes.lastIndex && hasAcceptableSize(currentIndex)) { in findClosestFittingContainer()

12