Searched refs:targetIndex (Results 1 – 6 of 6) sorted by relevance
/frameworks/support/v7/mediarouter/src/android/support/v7/media/ |
D | RegisteredMediaRouteProviderWatcher.java | 95 int targetIndex = 0; in scanPackages() local 106 mProviders.add(targetIndex++, provider); in scanPackages() 108 } else if (sourceIndex >= targetIndex) { in scanPackages() 112 Collections.swap(mProviders, sourceIndex, targetIndex++); in scanPackages() 118 if (targetIndex < mProviders.size()) { in scanPackages() 119 for (int i = mProviders.size() - 1; i >= targetIndex; i--) { in scanPackages()
|
D | MediaRouter.java | 1926 int targetIndex = 0; in updateProviderContents() local 1941 provider.mRoutes.add(targetIndex++, route); in updateProviderContents() 1950 } else if (sourceIndex < targetIndex) { in updateProviderContents() 1957 sourceIndex, targetIndex++); in updateProviderContents() 1996 for (int i = provider.mRoutes.size() - 1; i >= targetIndex; i--) { in updateProviderContents() 2012 for (int i = provider.mRoutes.size() - 1; i >= targetIndex; i--) { in updateProviderContents()
|
/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 | 1105 int targetIndex = 0; in updateDescriptor() local 1120 mRoutes.add(targetIndex++, route); in updateDescriptor() 1123 } else if (sourceIndex < targetIndex) { in updateDescriptor() 1130 Collections.swap(mRoutes, sourceIndex, targetIndex++); in updateDescriptor() 1141 for (int i = mRoutes.size() - 1; i >= targetIndex; i--) { in updateDescriptor()
|
/frameworks/base/core/java/android/widget/ |
D | FastScroller.java | 998 int targetIndex = mSectionIndexer.getPositionForSection(targetSection); in scrollTo() local 1008 int prevIndex = targetIndex; in scrollTo() 1018 if (nextIndex == targetIndex) { in scrollTo() 1023 if (prevIndex != targetIndex) { in scrollTo() 1056 targetIndex = prevIndex; in scrollTo() 1058 targetIndex = prevIndex + (int) ((nextIndex - prevIndex) * (position - prevPosition) in scrollTo() 1063 targetIndex = MathUtils.constrain(targetIndex, 0, count - 1); in scrollTo() 1068 ExpandableListView.getPackedPositionForGroup(targetIndex + mHeaderCount)), in scrollTo() 1071 ((ListView) mList).setSelectionFromTop(targetIndex + mHeaderCount, 0); in scrollTo() 1073 mList.setSelection(targetIndex + mHeaderCount); in scrollTo()
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | AnimatedStateListDrawable.java | 144 final int targetIndex = mState.indexOfKeyframe(stateSet); in onStateChange() local 145 boolean changed = targetIndex != getCurrentIndex() in onStateChange() 146 && (selectTransition(targetIndex) || selectDrawable(targetIndex)); in onStateChange()
|