Searched refs:insertionIndex (Results 1 – 4 of 4) sorted by relevance
154 int insertionIndex = Collections.binarySearch(mPreferenceList, preference); in addPreference() local155 if (insertionIndex < 0) { in addPreference()156 insertionIndex = insertionIndex * -1 - 1; in addPreference()164 mPreferenceList.add(insertionIndex, preference); in addPreference()
409 final int insertionIndex = mPrototype.mMediaSizes.size(); in addMediaSize() local413 mPrototype.mDefaults[PROPERTY_MEDIA_SIZE] = insertionIndex; in addMediaSize()437 final int insertionIndex = mPrototype.mResolutions.size(); in addResolution() local441 mPrototype.mDefaults[PROPERTY_RESOLUTION] = insertionIndex; in addResolution()
690 int insertionIndex = mAppWidgetContainer.indexOfChild(addWidget); in getInsertPageIndex() local691 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() local721 addDefaultStatusWidget(insertionIndex); in addWidgetsFromSettings()726 addWidget(widgets[i], insertionIndex, true); in addWidgetsFromSettings()
2003 int insertionIndex = 0; in adjustWallpaperWindowsLocked() local2009 insertionIndex = windows.indexOf(foundW); in adjustWallpaperWindowsLocked()2014 + " from " + oldIndex + " to " + insertionIndex); in adjustWallpaperWindowsLocked()2017 windows.add(insertionIndex, wallpaper); in adjustWallpaperWindowsLocked()