/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 | 125 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()
|
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 | 463 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()
|
D | MediaRouterService.java | 1686 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/ |
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/animation/src/com/android/systemui/surfaceeffects/ripple/ |
D | RippleShader.kt | 423 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/ |
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()
|
/frameworks/av/services/mediaresourcemanager/ |
D | ResourceManagerMetrics.cpp | 466 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/ |
D | AudioDeviceVolumeManagerTest.java | 143 final int targetIndex = (int) (preScale[i] * maxIndex); in configurablePreScaleAbsoluteVolume_checkIndex() local 152 AudioManager.STREAM_MUSIC, targetIndex, in configurablePreScaleAbsoluteVolume_checkIndex()
|
D | VolumeHelperTest.java | 584 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/ |
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/core/java/android/view/inputmethod/ |
D | TextBoundsInfo.java | 510 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/ |
D | AppsFilterBase.java | 385 final int targetIndex = mShouldFilterCache.indexOfKey(targetUid); in shouldFilterApplicationUsingCache() local 386 if (targetIndex < 0) { in shouldFilterApplicationUsingCache() 391 return mShouldFilterCache.valueAt(callingIndex, targetIndex); in shouldFilterApplicationUsingCache()
|