Home
last modified time | relevance | path

Searched refs:ordinal (Results 1 – 25 of 60) sorted by relevance

123

/packages/apps/DeskClock/src/com/android/deskclock/uidata/
DTabModel.java83 Tab getTab(int ordinal) { in getTab() argument
84 return Tab.values()[ordinal]; in getTab()
92 final int ordinal; in getTabAt() local
94 ordinal = getTabCount() - position - 1; in getTabAt()
96 ordinal = position; in getTabAt()
98 return getTab(ordinal); in getTabAt()
161 mTabScrolledToTop[tab.ordinal()] = scrolledToTop; in setTabScrolledToTop()
175 return mTabScrolledToTop[tab.ordinal()]; in isTabScrolledToTop()
DTabDAO.java37 final int ordinal = prefs.getInt(KEY_SELECTED_TAB, Tab.CLOCKS.ordinal()); in getSelectedTab() local
38 return Tab.values()[ordinal]; in getSelectedTab()
45 prefs.edit().putInt(KEY_SELECTED_TAB, tab.ordinal()).apply(); in setSelectedTab()
DUiDataModel.java245 public Tab getTab(int ordinal) { in getTab() argument
247 return mTabModel.getTab(ordinal); in getTab()
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/
DAbstractLauncherUiTest.java546 final int ordinal = stableState.ordinal; in checkLauncherIntegrity() local
554 assertTrue(TestProtocol.stateOrdinalToString(ordinal), in checkLauncherIntegrity()
555 ordinal == TestProtocol.NORMAL_STATE_ORDINAL); in checkLauncherIntegrity()
562 assertTrue(TestProtocol.stateOrdinalToString(ordinal), in checkLauncherIntegrity()
563 ordinal == TestProtocol.ALL_APPS_STATE_ORDINAL); in checkLauncherIntegrity()
570 assertTrue(TestProtocol.stateOrdinalToString(ordinal), in checkLauncherIntegrity()
571 ordinal == TestProtocol.OVERVIEW_STATE_ORDINAL); in checkLauncherIntegrity()
577 assertTrue(TestProtocol.stateOrdinalToString(ordinal), in checkLauncherIntegrity()
578 ordinal == TestProtocol.NORMAL_STATE_ORDINAL); in checkLauncherIntegrity()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/fallback/
DRecentsState.java41 public final int ordinal; field in RecentsState
48 this.ordinal = id; in RecentsState()
55 return "Ordinal-" + ordinal; in toString()
/packages/apps/Car/Radio/src/com/android/car/radio/storage/
DRadioStorage.java200 int value = mode.ordinal(); in setSkipMode()
204 SkipMode.DEFAULT_MODE.ordinal()) != value) { in setSkipMode()
215 int value = mPrefs.getInt(PREF_KEY_SKIP_MODE, SkipMode.DEFAULT_MODE.ordinal()); in getSkipMode()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherState.java129 public final int ordinal; field in LauncherState
147 this.ordinal = id; in LauncherState()
273 return TestProtocol.stateOrdinalToString(ordinal);
/packages/apps/Launcher3/src/com/android/launcher3/touch/
DAbstractStateChangeTouchController.java208 + newToState.ordinal + " " + getClass().getSimpleName()); in reinitCurrentAnimation()
529 return mToState.ordinal > mFromState.ordinal ? Direction.UP : Direction.DOWN; in getDirectionForLog()
579 targetState.containerType, mToState.ordinal > mFromState.ordinal in logReachedState()
/packages/apps/Launcher3/src/com/android/launcher3/testing/
DTestProtocol.java41 public static String stateOrdinalToString(int ordinal) { in stateOrdinalToString() argument
42 switch (ordinal) { in stateOrdinalToString()
/packages/apps/DeskClock/src/com/android/deskclock/data/
DStopwatchDAO.java59 final int stateIndex = prefs.getInt(STATE, RESET.ordinal()); in getStopwatch()
86 editor.putInt(STATE, stopwatch.getState().ordinal()) in setStopwatch()
DSettingsDAO.java89 final int defaultSortOrdinal = CitySort.NAME.ordinal(); in getCitySort()
100 prefs.edit().putInt(KEY_SORT_PREFERENCE, newSort.ordinal()).apply(); in toggleCitySort()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/appprediction/
DPredictionUiStateManager.java213 mPredictionServicePredictions[client.ordinal()] = targets; in appPredictorCallback()
241 List<AppTarget> appTargets = mPredictionServicePredictions[mActiveClient.ordinal()]; in parseLastState()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/
DUriType.java26 public int ordinal(); in ordinal() method
DTypedUriMatcherImpl.java49 mUriMatcher.addURI(mAuthority, path, value.ordinal()); in addUriType()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/
DPortraitStatesTouchController.java276 totalShift = Math.signum(mFromState.ordinal - mToState.ordinal) in initCurrentAnimation()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DUserCredentialsSettings.java479 if ((typeBits & (1L << i.ordinal())) != 0L) { in Credential()
491 typeBits |= 1L << i.ordinal(); in writeToParcel()
/packages/apps/Settings/src/com/android/settings/
DUserCredentialsSettings.java479 if ((typeBits & (1L << i.ordinal())) != 0L) { in Credential()
491 typeBits |= 1L << i.ordinal(); in writeToParcel()
/packages/apps/Camera2/src/com/android/camera/data/
DFixedLastProxyAdapter.java134 return mLastData.getItemViewType().ordinal(); in getItemViewType()
DFixedFirstProxyAdapter.java125 return mFirstData.getItemViewType().ordinal(); in getItemViewType()
DSessionItem.java101 imageView.setTag(R.id.mediadata_tag_viewtype, getItemViewType().ordinal()); in getView()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/touchcontrollers/
DNoButtonQuickSwitchTouchController.java441 targetState.ordinal > mStartState.ordinal in onAnimationToStateCompleted()
/packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/
DAllIntentsActivity.java126 public static ContactsIntent get(int ordinal) { in get() argument
127 return values()[ordinal]; in get()
/packages/apps/Settings/src/com/android/settings/wifi/slice/
DContextualWifiSlice.java157 final int index = detailedState.ordinal(); in getSubtitle()
/packages/apps/Car/Calendar/src/com/android/car/calendar/
DCarCalendarView.java201 return mRecyclerViewItems.get(position).getType().ordinal(); in getItemViewType()
/packages/apps/Settings/src/com/android/settings/enterprise/
DEnterpriseSetDefaultAppsListPreferenceController.java154 preference.setOrder(typeOfDefault.ordinal()); in createPreferences()

123