Searched refs:targetIndex (Results 1 – 8 of 8) sorted by relevance
/frameworks/base/services/core/java/com/android/server/tv/ |
D | TvRemoteProviderWatcher.java | 110 int targetIndex = 0; in scanPackages() local 123 mProviderProxies.add(targetIndex++, providerProxy); in scanPackages() 125 } else if (sourceIndex >= targetIndex) { in scanPackages() 129 Collections.swap(mProviderProxies, sourceIndex, targetIndex++); in scanPackages() 133 if (DEBUG) Log.d(TAG, "scanPackages() targetIndex " + targetIndex); in scanPackages() 135 if (targetIndex < mProviderProxies.size()) { in scanPackages() 136 for (int i = mProviderProxies.size() - 1; i >= targetIndex; i--) { in scanPackages()
|
/frameworks/base/services/core/java/com/android/server/media/ |
D | RemoteDisplayProviderWatcher.java | 115 int targetIndex = 0; in scanPackages() local 128 mProviders.add(targetIndex++, provider); in scanPackages() 130 } else if (sourceIndex >= targetIndex) { in scanPackages() 134 Collections.swap(mProviders, sourceIndex, targetIndex++); in scanPackages() 140 if (targetIndex < mProviders.size()) { in scanPackages() 141 for (int i = mProviders.size() - 1; i >= targetIndex; i--) { in scanPackages()
|
D | MediaRouterService.java | 1380 int targetIndex = 0; in updateDescriptor() local 1395 mRoutes.add(targetIndex++, route); in updateDescriptor() 1398 } else if (sourceIndex < targetIndex) { in updateDescriptor() 1405 Collections.swap(mRoutes, sourceIndex, targetIndex++); in updateDescriptor() 1416 for (int i = mRoutes.size() - 1; i >= targetIndex; i--) { in updateDescriptor()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/ |
D | ListGridLayout.java | 142 int targetIndex = Math.min(index, getMaxElementCount() - 1); in getParentView() local 143 int row = getParentViewIndex(targetIndex, reverseSublists, swapRowsAndColumns); in getParentView()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/ |
D | NotificationSectionsManager.java | 174 int targetIndex = firstGentleNotifIndex; in adjustGentleHeaderVisibilityAndPosition() local 178 targetIndex--; in adjustGentleHeaderVisibilityAndPosition() 181 mParent.changeViewPosition(mGentleHeader, targetIndex); in adjustGentleHeaderVisibilityAndPosition()
|
/frameworks/base/core/java/android/widget/ |
D | FastScroller.java | 1013 int targetIndex = mSectionIndexer.getPositionForSection(targetSection); in scrollTo() local 1023 int prevIndex = targetIndex; in scrollTo() 1033 if (nextIndex == targetIndex) { in scrollTo() 1038 if (prevIndex != targetIndex) { in scrollTo() 1071 targetIndex = prevIndex; in scrollTo() 1073 targetIndex = prevIndex + (int) ((nextIndex - prevIndex) * (position - prevPosition) in scrollTo() 1078 targetIndex = MathUtils.constrain(targetIndex, 0, count - 1); in scrollTo() 1083 ExpandableListView.getPackedPositionForGroup(targetIndex + mHeaderCount)), in scrollTo() 1086 ((ListView) mList).setSelectionFromTop(targetIndex + mHeaderCount, 0); in scrollTo() 1088 mList.setSelection(targetIndex + mHeaderCount); in scrollTo()
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | AnimatedStateListDrawable.java | 147 final int targetIndex = mState.indexOfKeyframe(stateSet); in onStateChange() local 148 boolean changed = targetIndex != getCurrentIndex() in onStateChange() 149 && (selectTransition(targetIndex) || selectDrawable(targetIndex)); in onStateChange()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | ActivityStack.java | 4786 final int targetIndex = mTmpActivities.size() - 1; in removeHistoryRecordsForAppLocked() local 4787 final ActivityRecord r = mTmpActivities.remove(targetIndex); in removeHistoryRecordsForAppLocked() 4789 "Record #" + targetIndex + " " + r + ": app=" + r.app); in removeHistoryRecordsForAppLocked()
|