Searched refs:targetIndex (Results 1 – 7 of 7) 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 | 2266 int targetIndex = 0; in updateProviderContents() local 2288 provider.mRoutes.add(targetIndex++, route); in updateProviderContents() 2302 } else if (sourceIndex < targetIndex) { in updateProviderContents() 2309 sourceIndex, targetIndex++); in updateProviderContents() 2347 for (int i = provider.mRoutes.size() - 1; i >= targetIndex; i--) { in updateProviderContents() 2363 for (int i = provider.mRoutes.size() - 1; i >= targetIndex; i--) { in updateProviderContents()
|
/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 | 1100 int targetIndex = 0; in updateDescriptor() local 1115 mRoutes.add(targetIndex++, route); in updateDescriptor() 1118 } else if (sourceIndex < targetIndex) { in updateDescriptor() 1125 Collections.swap(mRoutes, sourceIndex, targetIndex++); in updateDescriptor() 1136 for (int i = mRoutes.size() - 1; i >= targetIndex; i--) { in updateDescriptor()
|
/frameworks/base/core/java/android/widget/ |
D | FastScroller.java | 1000 int targetIndex = mSectionIndexer.getPositionForSection(targetSection); in scrollTo() local 1010 int prevIndex = targetIndex; in scrollTo() 1020 if (nextIndex == targetIndex) { in scrollTo() 1025 if (prevIndex != targetIndex) { in scrollTo() 1058 targetIndex = prevIndex; in scrollTo() 1060 targetIndex = prevIndex + (int) ((nextIndex - prevIndex) * (position - prevPosition) in scrollTo() 1065 targetIndex = MathUtils.constrain(targetIndex, 0, count - 1); in scrollTo() 1070 ExpandableListView.getPackedPositionForGroup(targetIndex + mHeaderCount)), in scrollTo() 1073 ((ListView) mList).setSelectionFromTop(targetIndex + mHeaderCount, 0); in scrollTo() 1075 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()
|