/frameworks/base/services/core/java/com/android/server/tv/ |
D | TvRemoteProviderWatcher.java | 129 int targetIndex = 0; in scanPackages() local 142 mProviderProxies.add(targetIndex++, providerProxy); in scanPackages() 143 } else if (sourceIndex >= targetIndex) { in scanPackages() 147 Collections.swap(mProviderProxies, sourceIndex, targetIndex++); in scanPackages() 151 if (DEBUG) Log.d(TAG, "scanPackages() targetIndex " + targetIndex); in scanPackages() 153 if (targetIndex < mProviderProxies.size()) { in scanPackages() 154 for (int i = mProviderProxies.size() - 1; i >= targetIndex; i--) { in scanPackages()
|
/frameworks/base/services/core/java/com/android/server/media/ |
D | MediaRoute2ProviderWatcher.java | 111 int targetIndex = 0; in scanPackages() local 124 mProxies.add(targetIndex++, proxy); in scanPackages() 126 } else if (sourceIndex >= targetIndex) { in scanPackages() 130 Collections.swap(mProxies, sourceIndex, targetIndex++); in scanPackages() 136 if (targetIndex < mProxies.size()) { in scanPackages() 137 for (int i = mProxies.size() - 1; i >= targetIndex; i--) { in scanPackages()
|
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 | MediaRoute2ProviderServiceProxy.java | 381 int targetIndex = 0; in onSessionsUpdated() local 389 mSessionInfos.add(targetIndex++, session); in onSessionsUpdated() 391 } else if (sourceIndex < targetIndex) { in onSessionsUpdated() 395 Collections.swap(mSessionInfos, sourceIndex, targetIndex++); in onSessionsUpdated() 399 for (int i = mSessionInfos.size() - 1; i >= targetIndex; i--) { in onSessionsUpdated()
|
D | MediaRouterService.java | 1584 int targetIndex = 0; in updateDescriptor() local 1599 mRoutes.add(targetIndex++, route); in updateDescriptor() 1602 } else if (sourceIndex < targetIndex) { in updateDescriptor() 1609 Collections.swap(mRoutes, sourceIndex, targetIndex++); in updateDescriptor() 1620 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/services/core/java/com/android/server/om/ |
D | OverlayReferenceMapper.java | 280 for (int targetIndex = targetsSize - 1; targetIndex >= 0; targetIndex--) { in removeOverlay() 281 final Set<String> overlays = targetToOverlays.valueAt(targetIndex); in removeOverlay()
|
/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()
|
D | TextView.java | 10423 int targetIndex = -1; in applySingleLine() local 10426 targetIndex = i; in applySingleLine() 10430 if (targetIndex == -1) return; // not found. Do nothing. in applySingleLine() 10439 System.arraycopy(prevFilters, 0, newFilters, 0, targetIndex); in applySingleLine() 10442 targetIndex + 1, in applySingleLine() 10444 targetIndex, in applySingleLine() 10445 prevFilters.length - targetIndex - 1); in applySingleLine()
|
/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/pm/ |
D | AppsFilter.java | 1206 final int targetIndex = mShouldFilterCache.indexOfKey(targetUid); 1207 if (targetIndex < 0) { 1212 return mShouldFilterCache.valueAt(callingIndex, targetIndex);
|