Home
last modified time | relevance | path

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

/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DParallaxEffect.java310 int lastIndex = 0; in calculateFraction() local
327 if (lastIndex == index && lastMarkerValue < markerValue) { in calculateFraction()
339 if (lastIndex == index) { in calculateFraction()
363 lastIndex = index; in calculateFraction()
405 int lastIndex = 0; in calculateFraction() local
421 if (lastIndex == index && lastMarkerValue < markerValue) { in calculateFraction()
433 if (lastIndex == index) { in calculateFraction()
457 lastIndex = index; in calculateFraction()
DStaggeredGrid.java318 int lastIndex = getLastIndex(); in appendVisbleItemsWithCache() local
319 for (; itemIndex < count && itemIndex <= lastIndex; itemIndex++) { in appendVisbleItemsWithCache()
328 mLocations.removeFromEnd(lastIndex - itemIndex); in appendVisbleItemsWithCache()
329 lastIndex = itemIndex; in appendVisbleItemsWithCache()
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/
DVNodeBuilder.java93 int lastIndex = mVNodeList.size() - 1; in onEntryEnded() local
94 mVNodeList.remove(lastIndex--); in onEntryEnded()
95 mCurrentVNode = lastIndex >= 0 ? mVNodeList.get(lastIndex) : null; in onEntryEnded()
/frameworks/base/core/jni/android/graphics/
DGIFMovie.cpp384 int lastIndex = fCurrIndex; in onGetBitmap() local
385 if (lastIndex < 0) { in onGetBitmap()
387 lastIndex = 0; in onGetBitmap()
388 } else if (lastIndex > fGIF->ImageCount - 1) { in onGetBitmap()
390 lastIndex = fGIF->ImageCount - 1; in onGetBitmap()
400 for (int i = startIndex; i <= lastIndex; i++) { in onGetBitmap()
423 if (i == lastIndex || !checkIfWillBeCleared(cur)) { in onGetBitmap()
429 fLastDrawIndex = lastIndex; in onGetBitmap()
/frameworks/base/test-runner/src/junit/textui/
DTestRunner.java164 int lastIndex= arg.lastIndexOf('.'); in start() local
165 testCase= arg.substring(0, lastIndex); in start()
166 method= arg.substring(lastIndex + 1); in start()
/frameworks/support/room/runtime/src/main/java/android/arch/persistence/room/
DRoomDatabase.java510 final int lastIndex; in findUpMigrationPath() local
514 lastIndex = -1; in findUpMigrationPath()
517 lastIndex = size; in findUpMigrationPath()
520 for (int i = firstIndex; i != lastIndex; i += searchDirection) { in findUpMigrationPath()
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/app/wizard/
DGuidedStepAttributesTest.java726 int lastIndex = 0; in setUpActionsForSubActionsTest() local
728 REGULAR_ACTIONS_INDEX[i] = lastIndex; in setUpActionsForSubActionsTest()
729 lastIndex++; in setUpActionsForSubActionsTest()
730 BEGIN_SUBACTION_INDEX_PER_ACTION[i] = lastIndex; in setUpActionsForSubActionsTest()
731 END_SUBACTION_INDEX_PER_ACTION[i] = (lastIndex += NUM_SUBACTIONS_PER_ACTION[i]); in setUpActionsForSubActionsTest()
765 lastIndex = 0; in setUpActionsForSubActionsTest()
768 .id(lastIndex++) in setUpActionsForSubActionsTest()
777 .id(lastIndex++) in setUpActionsForSubActionsTest()
/frameworks/base/core/java/com/android/internal/os/
DKernelUidCpuFreqTimeReader.java93 final int lastIndex = mLastUidCpuFreqTimeMs.indexOfKey(endUid); in removeUidsInRange() local
94 mLastUidCpuFreqTimeMs.removeAtRange(firstIndex, lastIndex - firstIndex + 1); in removeUidsInRange()
DBatteryStatsImpl.java11448 final int lastIndex = mUidStats.indexOfKey(lastUidForUser); in onUserRemovedLocked() local
11449 mUidStats.removeAtRange(firstIndex, lastIndex - firstIndex + 1); in onUserRemovedLocked()
/frameworks/base/libs/hwui/
DProgramCache.cpp894 ssize_t lastIndex = 0; in printLongString() local
897 String8 line(str, index - lastIndex); in printLongString()
901 str += (index - lastIndex); in printLongString()
902 lastIndex = index; in printLongString()
DPathTessellator.cpp272 const int lastIndex = vertices.size() - 1; in getStrokeVerticesFromUnclosedVertices() local
279 - (vertices[lastIndex].x - vertices[lastIndex - 1].x), in getStrokeVerticesFromUnclosedVertices()
280 vertices[lastIndex].y - vertices[lastIndex - 1].y); in getStrokeVerticesFromUnclosedVertices()
302 vertices[lastIndex].x + endRadialOffset.x, in getStrokeVerticesFromUnclosedVertices()
303 vertices[lastIndex].y + endRadialOffset.y); in getStrokeVerticesFromUnclosedVertices()
331 storeBeginEnd(paintInfo, vertices[lastIndex], lastNormal, buffer, currentIndex, false); in getStrokeVerticesFromUnclosedVertices()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DPseudoGridView.java190 int lastIndex = viewGroup.getChildCount() - 1; in refresh() local
191 viewGroup.removeViewAt(lastIndex); in refresh()
/frameworks/base/services/core/java/com/android/server/am/
DProcessStatsService.java643 int lastIndex = 0;
739 lastIndex = Integer.parseInt(args[i]);
903 } else if (lastIndex > 0) {
904 pw.print("LAST STATS AT INDEX "); pw.print(lastIndex); pw.println(":");
906 if (lastIndex >= files.size()) {
910 AtomicFile file = new AtomicFile(new File(files.get(lastIndex)));
915 pw.print("Failure reading "); pw.print(files.get(lastIndex));
DBroadcastQueue.java1647 int lastIndex = mHistoryNext; in dumpLocked() local
1648 int ringIndex = lastIndex; in dumpLocked()
1686 } while (ringIndex != lastIndex); in dumpLocked()
1689 lastIndex = ringIndex = mSummaryHistoryNext; in dumpLocked()
1696 j > 0 && ringIndex != lastIndex;) { in dumpLocked()
1745 } while (ringIndex != lastIndex); in dumpLocked()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DKeyguardUserSwitcher.java223 int lastIndex = mUserSwitcher.getChildCount() - 1; in refresh() local
224 mUserSwitcher.removeViewAt(lastIndex); in refresh()
/frameworks/base/core/java/android/inputmethodservice/
DKeyboard.java430 int lastIndex = 0; in parseCSV() local
433 while ((lastIndex = value.indexOf(",", lastIndex + 1)) > 0) { in parseCSV()
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/
DRadialPickerLayout.java528 int lastIndex = getCurrentItemShowing(); in setCurrentItemShowing() local
531 if (animate && (index != lastIndex)) { in setCurrentItemShowing()
/frameworks/native/libs/binder/
DParcel.cpp476 int firstIndex = -1, lastIndex = -2; in appendFrom() local
502 lastIndex = i; in appendFrom()
505 int numObjects = lastIndex - firstIndex + 1; in appendFrom()
538 for (int i = firstIndex; i <= lastIndex; i++) { in appendFrom()
/frameworks/base/core/java/android/widget/
DListView.java3295 int lastIndex = getChildCount() - 1;
3296 View last = getChildAt(lastIndex);
3302 recycleBin.addScrapView(last, mFirstPosition+lastIndex);
3305 last = getChildAt(--lastIndex);
DEditor.java1718 int lastIndex = numberOfBlocks; in drawHardwareAccelerated() local
1736 lastIndex = Math.max(indexFirstChangedBlock, i + 1); in drawHardwareAccelerated()
1755 dynamicLayout.setIndexFirstChangedBlock(lastIndex); in drawHardwareAccelerated()
/frameworks/native/services/inputflinger/
DInputReader.cpp6256 uint32_t lastIndex = mCurrentRawState.rawPointerData.idToIndex[id]; in dispatchPointerMouse() local
6258 - mLastRawState.rawPointerData.pointers[lastIndex].x) in dispatchPointerMouse()
6261 - mLastRawState.rawPointerData.pointers[lastIndex].y) in dispatchPointerMouse()
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt57078 field protected int lastIndex;