Home
last modified time | relevance | path

Searched refs:currentIndex (Results 1 – 17 of 17) sorted by relevance

/packages/apps/TV/src/com/android/tv/menu/
DChannelsRowAdapter.java191 int currentIndex = 1; in updateItems() local
192 if (updateItem(mShowChannelUpDown, ChannelsRowItem.UP_ITEM, currentIndex)) { in updateItems()
193 ++currentIndex; in updateItems()
195 if (updateItem(mShowChannelUpDown, ChannelsRowItem.DOWN_ITEM, currentIndex)) { in updateItems()
196 ++currentIndex; in updateItems()
198 if (updateItem(needToShowSetupItem(), ChannelsRowItem.SETUP_ITEM, currentIndex)) { in updateItems()
199 ++currentIndex; in updateItems()
201 if (updateItem(needToShowDvrItem(), ChannelsRowItem.DVR_ITEM, currentIndex)) { in updateItems()
202 ++currentIndex; in updateItems()
204 if (updateItem(needToShowAppLinkItem(), ChannelsRowItem.APP_LINK_ITEM, currentIndex)) { in updateItems()
[all …]
/packages/services/Car/obd2-lib/src/com/android/car/obd2/
DObd2FreezeFrameGenerator.java93 int currentIndex = 0; in discoverNewDtcs() local
96 for (; currentIndex < currentDtcs.size(); ++currentIndex) { in discoverNewDtcs()
97 if (currentIndex == mPreviousDtcs.size()) { in discoverNewDtcs()
102 if (!currentDtcs.get(currentIndex).equals(mPreviousDtcs.get(currentIndex))) { in discoverNewDtcs()
111 for (; currentIndex < currentDtcs.size(); ++currentIndex) { in discoverNewDtcs()
112 newDtcs.add(new FreezeFrameIdentity(currentDtcs.get(currentIndex), currentIndex)); in discoverNewDtcs()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DRichInputMethodManager.java149 final int currentIndex = getSubtypeIndexInList(currentSubtype, enabledSubtypes); in switchToNextInputSubtypeInThisIme() local
150 if (currentIndex == INDEX_NOT_FOUND) { in switchToNextInputSubtypeInThisIme()
155 final int nextIndex = (currentIndex + 1) % enabledSubtypes.size(); in switchToNextInputSubtypeInThisIme()
156 if (nextIndex <= currentIndex && !onlyCurrentIme) { in switchToNextInputSubtypeInThisIme()
169 final int currentIndex = getImiIndexInList(getInputMethodInfoOfThisIme(), enabledImis); in switchToNextInputMethodAndSubtype() local
170 if (currentIndex == INDEX_NOT_FOUND) { in switchToNextInputMethodAndSubtype()
175 final InputMethodInfo nextImi = getNextNonAuxiliaryIme(currentIndex, enabledImis); in switchToNextInputMethodAndSubtype()
201 private static InputMethodInfo getNextNonAuxiliaryIme(final int currentIndex, in getNextNonAuxiliaryIme() argument
205 final int nextIndex = (currentIndex + i) % count; in getNextNonAuxiliaryIme()
211 return imiList.get(currentIndex); in getNextNonAuxiliaryIme()
/packages/apps/Dialer/java/com/android/dialer/callcomposer/
DCallComposerActivity.java163 private int currentIndex; field in CallComposerActivity
210 currentIndex = savedInstanceState.getInt(CURRENT_INDEX_KEY); in onCreate()
212 onPageSelected(currentIndex); in onCreate()
225 setMediaIconSelected(currentIndex); in onCreate()
390 (CallComposerFragment) adapter.instantiateItem(pager, currentIndex); in sendAndCall()
515 if (currentIndex == CallComposerPagerAdapter.INDEX_MESSAGE) { in onPageSelected()
518 currentIndex = position; in onPageSelected()
536 outState.putInt(CURRENT_INDEX_KEY, currentIndex); in onSaveInstanceState()
544 ((CallComposerFragment) adapter.instantiateItem(pager, currentIndex)).clearComposer(); in onBackPressed()
562 if (adapter.instantiateItem(pager, currentIndex) != fragment) { in composeCall()
/packages/apps/Messaging/src/com/android/messaging/util/
DUiUtils.java354 int currentIndex = 0; in stripHtml() local
358 if (spanStart > currentIndex) { in stripHtml()
359 result.append(strippedText, currentIndex, spanStart); in stripHtml()
365 currentIndex = spanEnd; in stripHtml()
367 if (strippedText.length() > currentIndex) { in stripHtml()
368 result.append(strippedText, currentIndex, strippedText.length()); in stripHtml()
/packages/apps/Car/Launcher/src/com/android/car/carlauncher/
DAppGridActivity.java227 int currentIndex = 0; in getMostRecentApps() local
231 while (itemsAdded < itemCount && currentIndex < statsSize) { in getMostRecentApps()
232 UsageStats usageStats = stats.get(currentIndex); in getMostRecentApps()
234 currentIndex++; in getMostRecentApps()
/packages/apps/UnifiedEmail/src/com/android/mail/compose/
DFromAddressSpinner.java59 int currentIndex = 0; in selectCurrentAccount() local
63 setSelection(currentIndex, true); in selectCurrentAccount()
66 currentIndex++; in selectCurrentAccount()
/packages/apps/TvSettings/QuickSettings/src/com/android/tv/quicksettings/
DSettingsDialog.java243 int currentIndex = Arrays.asList(presetSettingValues).indexOf( in stringSettingHandleKeyCode() local
247 currentIndex++; in stringSettingHandleKeyCode()
250 currentIndex--; in stringSettingHandleKeyCode()
255 int newIndex = (currentIndex + presetSettingValues.length) % presetSettingValues.length; in stringSettingHandleKeyCode()
/packages/apps/Camera2/src/com/android/camera/
DCameraActivity.java785 int currentIndex = mFilmstripController.getCurrentAdapterIndex();
787 if (index == currentIndex) {
876 int currentIndex = mFilmstripController.getCurrentAdapterIndex(); in onShareTargetSelected() local
877 if (currentIndex < 0) { in onShareTargetSelected()
880 UsageStatistics.instance().mediaInteraction(fileNameFromAdapterAtIndex(currentIndex), in onShareTargetSelected()
882 NavigationChange.InteractionCause.BUTTON, fileAgeFromAdapterAtIndex(currentIndex)); in onShareTargetSelected()
952 int currentIndex = mFilmstripController.getCurrentAdapterIndex();
953 if (currentIndex == -1) {
957 mDataAdapter.getItemAt(currentIndex).getData().getUri())) {
964 int currentIndex = mFilmstripController.getCurrentAdapterIndex();
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/display/
DScreenZoomPreference.java45 final int currentIndex = density.getCurrentIndex(); in ScreenZoomPreference() local
46 setSummary(entries[currentIndex]); in ScreenZoomPreference()
/packages/apps/Settings/src/com/android/settings/display/
DScreenZoomPreference.java45 final int currentIndex = density.getCurrentIndex(); in ScreenZoomPreference() local
46 setSummary(entries[currentIndex]); in ScreenZoomPreference()
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/ui/
DGrantPermissionsActivity.java597 int currentIndex = 0; in showNextPermissionGroupGrantRequest() local
713 mViewHandler.updateUi(groupState.mGroup.getName(), numGrantRequests, currentIndex, in showNextPermissionGroupGrantRequest() local
720 currentIndex++; in showNextPermissionGroupGrantRequest()
/packages/apps/WallpaperPicker/src/com/android/gallery3d/glrenderer/
DGLES20Canvas.java286 int currentIndex = mCurrentMatrixIndex; in save() local
291 System.arraycopy(mMatrices, currentIndex, mMatrices, mCurrentMatrixIndex, MATRIX_SIZE); in save()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DPhotoDataAdapter.java659 int currentIndex = mCurrentIndex; in updateImageRequests() local
660 MediaItem item = mData[currentIndex % DATA_CACHE_SIZE]; in updateImageRequests()
672 task = startTaskIfNeeded(currentIndex + offset, bit); in updateImageRequests()
DPhotoPage.java1024 int currentIndex = mModel.getCurrentIndex(); in onItemSelected() local
1039 data.putInt(SlideshowPage.KEY_PHOTO_INDEX, currentIndex); in onItemSelected()
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
DGLES20Canvas.java455 int currentIndex = mCurrentMatrixIndex; in save() local
460 System.arraycopy(mMatrices, currentIndex, mMatrices, mCurrentMatrixIndex, MATRIX_SIZE); in save()
/packages/apps/Camera2/src/com/android/camera/app/
DCameraAppUI.java1561 int currentIndex = mController.getCurrentModuleIndex(); in onModeSelected() local
1563 if (lastIndex == currentIndex) { in onModeSelected()