Home
last modified time | relevance | path

Searched refs:targetIndex (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/services/core/java/com/android/server/tv/
DTvRemoteProviderWatcher.java129 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/
DMediaRoute2ProviderWatcher.java125 int targetIndex = 0; in scanPackages() local
154 mProxies.add(targetIndex++, proxy); in scanPackages()
156 } else if (sourceIndex >= targetIndex) { in scanPackages()
161 Collections.swap(mProxies, sourceIndex, targetIndex++); in scanPackages()
167 if (targetIndex < mProxies.size()) { in scanPackages()
168 for (int i = mProxies.size() - 1; i >= targetIndex; i--) { in scanPackages()
DRemoteDisplayProviderWatcher.java115 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()
DMediaRoute2ProviderServiceProxy.java463 int targetIndex = 0; in onSessionsUpdated() local
470 mSessionInfos.add(targetIndex++, session); in onSessionsUpdated()
472 } else if (sourceIndex < targetIndex) { in onSessionsUpdated()
482 Collections.swap(mSessionInfos, sourceIndex, targetIndex++); in onSessionsUpdated()
486 for (int i = mSessionInfos.size() - 1; i >= targetIndex; i--) { in onSessionsUpdated()
DMediaRouterService.java1686 int targetIndex = 0; in updateDescriptor() local
1701 mRoutes.add(targetIndex++, route); in updateDescriptor()
1704 } else if (sourceIndex < targetIndex) { in updateDescriptor()
1711 Collections.swap(mRoutes, sourceIndex, targetIndex++); in updateDescriptor()
1722 for (int i = mRoutes.size() - 1; i >= targetIndex; i--) { in updateDescriptor()
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/
DListGridLayout.java142 int targetIndex = Math.min(index, getMaxElementCount() - 1); in getParentView() local
143 int row = getParentViewIndex(targetIndex, reverseSublists, swapRowsAndColumns); in getParentView()
/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/surfaceeffects/ripple/
DRippleShader.kt423 val targetIndex = updateTargetIndex(progress) in update() constant
424 val prevIndex = Math.max(targetIndex - 1, 0) in update()
426 val targetSize = sizes[targetIndex] in update()
/frameworks/base/services/core/java/com/android/server/om/
DOverlayReferenceMapper.java280 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/
DFastScroller.java1013 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/av/services/mediaresourcemanager/
DResourceManagerMetrics.cpp466 int32_t targetIndex = -1, in pushReclaimStats() argument
479 targetIndex, in pushReclaimStats()
492 targetIndex, targetClientPid, targetClientUid, targetPriority, result); in pushReclaimStats()
546 int32_t targetIndex = 1; in pushReclaimAtom() local
548 int targetPriority = priorities[targetIndex]; in pushReclaimAtom()
557 targetIndex, in pushReclaimAtom()
561 targetIndex++; in pushReclaimAtom()
/frameworks/base/services/tests/servicestests/src/com/android/server/audio/
DAudioDeviceVolumeManagerTest.java143 final int targetIndex = (int) (preScale[i] * maxIndex); in configurablePreScaleAbsoluteVolume_checkIndex() local
152 AudioManager.STREAM_MUSIC, targetIndex, in configurablePreScaleAbsoluteVolume_checkIndex()
DVolumeHelperTest.java584 final int targetIndex = (int) (preScale[i] * maxIndex); in configurablePreScaleAbsoluteVolume_checkIndex() local
596 STREAM_MUSIC, targetIndex, in configurablePreScaleAbsoluteVolume_checkIndex()
/frameworks/base/graphics/java/android/graphics/drawable/
DAnimatedStateListDrawable.java147 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/core/java/android/view/inputmethod/
DTextBoundsInfo.java510 final int targetIndex; in getCursorHorizontalPosition() local
519 targetIndex = index - 1; in getCursorHorizontalPosition()
526 targetIndex = index; in getCursorHorizontalPosition()
531 final boolean isRtl = (getCharacterBidiLevel(targetIndex) & 1) != 0; in getCursorHorizontalPosition()
532 final int offset = targetIndex - mStart; in getCursorHorizontalPosition()
/frameworks/base/services/core/java/com/android/server/pm/
DAppsFilterBase.java385 final int targetIndex = mShouldFilterCache.indexOfKey(targetUid); in shouldFilterApplicationUsingCache() local
386 if (targetIndex < 0) { in shouldFilterApplicationUsingCache()
391 return mShouldFilterCache.valueAt(callingIndex, targetIndex); in shouldFilterApplicationUsingCache()