Home
last modified time | relevance | path

Searched refs:insertionIndex (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/core/java/android/preference/
DPreferenceGroup.java154 int insertionIndex = Collections.binarySearch(mPreferenceList, preference); in addPreference() local
155 if (insertionIndex < 0) { in addPreference()
156 insertionIndex = insertionIndex * -1 - 1; in addPreference()
164 mPreferenceList.add(insertionIndex, preference); in addPreference()
/frameworks/base/core/java/android/print/
DPrinterCapabilitiesInfo.java409 final int insertionIndex = mPrototype.mMediaSizes.size(); in addMediaSize() local
413 mPrototype.mDefaults[PROPERTY_MEDIA_SIZE] = insertionIndex; in addMediaSize()
437 final int insertionIndex = mPrototype.mResolutions.size(); in addResolution() local
441 mPrototype.mDefaults[PROPERTY_RESOLUTION] = insertionIndex; in addResolution()
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
DKeyguardHostView.java690 int insertionIndex = mAppWidgetContainer.indexOfChild(addWidget); in getInsertPageIndex() local
691 if (insertionIndex < 0) { in getInsertPageIndex()
692 insertionIndex = 0; // no add widget page found in getInsertPageIndex()
694 insertionIndex++; // place after add widget in getInsertPageIndex()
696 return insertionIndex; in getInsertPageIndex()
711 int insertionIndex = getInsertPageIndex(); in addWidgetsFromSettings() local
721 addDefaultStatusWidget(insertionIndex); in addWidgetsFromSettings()
726 addWidget(widgets[i], insertionIndex, true); in addWidgetsFromSettings()
/frameworks/base/services/core/java/com/android/server/wm/
DWindowManagerService.java2003 int insertionIndex = 0; in adjustWallpaperWindowsLocked() local
2009 insertionIndex = windows.indexOf(foundW); in adjustWallpaperWindowsLocked()
2014 + " from " + oldIndex + " to " + insertionIndex); in adjustWallpaperWindowsLocked()
2017 windows.add(insertionIndex, wallpaper); in adjustWallpaperWindowsLocked()