Home
last modified time | relevance | path

Searched refs:UiDataModel (Results 1 – 25 of 46) sorted by relevance

12

/packages/apps/DeskClock/src/com/android/deskclock/uidata/
DTabModel.kt37 private val mTabScrolledToTop = BooleanArray(UiDataModel.Tab.values().size)
40 private var mSelectedTab: UiDataModel.Tab? = null
68 get() = UiDataModel.Tab.values().size
74 fun getTab(ordinal: Int): UiDataModel.Tab { in getTab()
75 return UiDataModel.Tab.values()[ordinal] in getTab()
82 fun getTabAt(position: Int): UiDataModel.Tab { in getTabAt()
95 val selectedTab: UiDataModel.Tab
106 fun setSelectedTab(tab: UiDataModel.Tab) { in setSelectedTab()
151 fun setTabScrolledToTop(tab: UiDataModel.Tab, scrolledToTop: Boolean) { in setTabScrolledToTop()
166 fun isTabScrolledToTop(tab: UiDataModel.Tab): Boolean { in isTabScrolledToTop()
DTabDAO.kt31 fun getSelectedTab(prefs: SharedPreferences): UiDataModel.Tab { in getSelectedTab()
32 val ordinal = prefs.getInt(KEY_SELECTED_TAB, UiDataModel.Tab.CLOCKS.ordinal) in getSelectedTab()
33 return UiDataModel.Tab.values()[ordinal] in getSelectedTab()
39 fun setSelectedTab(prefs: SharedPreferences, tab: UiDataModel.Tab) { in setSelectedTab()
DUiDataModel.java38 public final class UiDataModel { class
63 private static final UiDataModel sUiDataModel = new UiDataModel();
65 public static UiDataModel getUiDataModel() { in getUiDataModel()
80 private UiDataModel() {} in UiDataModel() method in UiDataModel
/packages/apps/DeskClock/src/com/android/deskclock/
DDeskClock.java53 import com.android.deskclock.uidata.UiDataModel;
166 final int tabCount = UiDataModel.getUiDataModel().getTabCount(); in onCreate()
170 final UiDataModel.Tab tabModel = UiDataModel.getUiDataModel().getTab(i); in onCreate()
225 final long duration = UiDataModel.getUiDataModel().getShortAnimationDuration(); in onCreate()
293 UiDataModel.getUiDataModel().setSelectedTab((UiDataModel.Tab) tab.getTag()); in onCreate()
306 UiDataModel.getUiDataModel().addTabListener(mTabChangeWatcher); in onCreate()
321 mDropShadowController = new DropShadowController(dropShadow, UiDataModel.getUiDataModel(), in onResume()
368 UiDataModel.getUiDataModel().removeTabListener(mTabChangeWatcher); in onDestroy()
470 final UiDataModel.Tab selectedTab = UiDataModel.getUiDataModel().getSelectedTab(); in updateCurrentTab()
501 final UiDataModel.Tab selectedTab = UiDataModel.getUiDataModel().getSelectedTab(); in getSelectedDeskClockFragment()
[all …]
DFragmentTabPagerAdapter.java28 import com.android.deskclock.uidata.UiDataModel;
47 private final Map<UiDataModel.Tab, DeskClockFragment> mFragmentCache;
63 return UiDataModel.getUiDataModel().getTabCount(); in getCount()
72 final UiDataModel.Tab tab = UiDataModel.getUiDataModel().getTabAt(position); in getDeskClockFragment()
112 final UiDataModel.Tab tab = UiDataModel.getUiDataModel().getTabAt(position); in instantiateItem()
DDeskClockFragment.java26 import com.android.deskclock.uidata.UiDataModel;
27 import com.android.deskclock.uidata.UiDataModel.Tab;
101 return UiDataModel.getUiDataModel().getSelectedTab() == mTab; in isTabSelected()
108 UiDataModel.getUiDataModel().setSelectedTab(mTab); in selectTab()
117 UiDataModel.getUiDataModel().setTabScrolledToTop(mTab, scrolledToTop); in setTabScrolledToTop()
DDropShadowController.java27 import com.android.deskclock.uidata.UiDataModel;
28 import com.android.deskclock.uidata.UiDataModel.Tab;
56 private UiDataModel mUiDataModel;
65 public DropShadowController(View dropShadowView, UiDataModel uiDataModel, View hairlineView) { in DropShadowController()
98 .setDuration(UiDataModel.getUiDataModel().getShortAnimationDuration()); in DropShadowController()
DAlarmClockFragment.kt47 import com.android.deskclock.uidata.UiDataModel
59 class AlarmClockFragment : DeskClockFragment(UiDataModel.Tab.ALARMS),
171 UiDataModel.uiDataModel.addMidnightCallback(mMidnightUpdater) in onResume()
177 UiDataModel.uiDataModel.selectedTab = UiDataModel.Tab.ALARMS in onResume()
186 UiDataModel.uiDataModel.selectedTab = UiDataModel.Tab.ALARMS in onResume()
205 UiDataModel.uiDataModel.removePeriodicCallback(mMidnightUpdater) in onPause()
DHandleShortcuts.java25 import com.android.deskclock.uidata.UiDataModel;
27 import static com.android.deskclock.uidata.UiDataModel.Tab.STOPWATCH;
46 UiDataModel.getUiDataModel().setSelectedTab(STOPWATCH); in onCreate()
55 UiDataModel.getUiDataModel().setSelectedTab(STOPWATCH); in onCreate()
DHandleApiCalls.java42 import com.android.deskclock.uidata.UiDataModel;
56 import static com.android.deskclock.uidata.UiDataModel.Tab.ALARMS;
57 import static com.android.deskclock.uidata.UiDataModel.Tab.TIMERS;
118 UiDataModel.getUiDataModel().setSelectedTab(ALARMS); in handleDismissAlarm()
331 UiDataModel.getUiDataModel().setSelectedTab(ALARMS); in handleSetAlarm()
435 UiDataModel.getUiDataModel().setSelectedTab(ALARMS); in handleShowAlarms()
451 UiDataModel.getUiDataModel().setSelectedTab(TIMERS); in handleShowTimers()
459 UiDataModel.getUiDataModel().setSelectedTab(TIMERS); in handleSetTimer()
504 UiDataModel.getUiDataModel().setSelectedTab(TIMERS); in handleSetTimer()
518 UiDataModel.getUiDataModel().setSelectedTab(ALARMS); in setupInstance()
DAlarmClockFragment.java47 import com.android.deskclock.uidata.UiDataModel;
55 import static com.android.deskclock.uidata.UiDataModel.Tab.ALARMS;
199 UiDataModel.getUiDataModel().addMidnightCallback(mMidnightUpdater); in onResume()
208 UiDataModel.getUiDataModel().setSelectedTab(ALARMS); in onResume()
217 UiDataModel.getUiDataModel().setSelectedTab(ALARMS); in onResume()
237 UiDataModel.getUiDataModel().removePeriodicCallback(mMidnightUpdater); in onPause()
DMoveScreensaverRunnable.java27 import com.android.deskclock.uidata.UiDataModel;
81 UiDataModel.getUiDataModel().addMinuteCallback(this, -FADE_TIME); in start()
88 UiDataModel.getUiDataModel().removePeriodicCallback(this); in stop()
DScreensaver.java35 import com.android.deskclock.uidata.UiDataModel;
135 UiDataModel.getUiDataModel().addMidnightCallback(mMidnightUpdater); in onAttachedToWindow()
147 UiDataModel.getUiDataModel().removePeriodicCallback(mMidnightUpdater); in onDetachedFromWindow()
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
DLapsAdapter.java32 import com.android.deskclock.uidata.UiDataModel;
265 sTimeBuilder.append(UiDataModel.getUiDataModel().getFormattedNumber(minutes, 1)); in formatTime()
267 sTimeBuilder.append(UiDataModel.getUiDataModel().getFormattedNumber(minutes, 2)); in formatTime()
269 sTimeBuilder.append(UiDataModel.getUiDataModel().getFormattedNumber(hours, 1)); in formatTime()
271 sTimeBuilder.append(UiDataModel.getUiDataModel().getFormattedNumber(minutes, 2)); in formatTime()
273 sTimeBuilder.append(UiDataModel.getUiDataModel().getFormattedNumber(hours, 2)); in formatTime()
275 sTimeBuilder.append(UiDataModel.getUiDataModel().getFormattedNumber(minutes, 2)); in formatTime()
277 sTimeBuilder.append(UiDataModel.getUiDataModel().getFormattedNumber(hours, 3)); in formatTime()
279 sTimeBuilder.append(UiDataModel.getUiDataModel().getFormattedNumber(minutes, 2)); in formatTime()
284 sTimeBuilder.append(UiDataModel.getUiDataModel().getFormattedNumber(seconds, 2)); in formatTime()
[all …]
DLapsAdapter.kt33 import com.android.deskclock.uidata.UiDataModel
329 sTimeBuilder.append(UiDataModel.uiDataModel.getFormattedNumber(minutes, 1)) in formatTime()
332 sTimeBuilder.append(UiDataModel.uiDataModel.getFormattedNumber(minutes, 2)) in formatTime()
335 sTimeBuilder.append(UiDataModel.uiDataModel.getFormattedNumber(hours, 1)) in formatTime()
337 sTimeBuilder.append(UiDataModel.uiDataModel.getFormattedNumber(minutes, 2)) in formatTime()
340 sTimeBuilder.append(UiDataModel.uiDataModel.getFormattedNumber(hours, 2)) in formatTime()
342 sTimeBuilder.append(UiDataModel.uiDataModel.getFormattedNumber(minutes, 2)) in formatTime()
345 sTimeBuilder.append(UiDataModel.uiDataModel.getFormattedNumber(hours, 3)) in formatTime()
347 sTimeBuilder.append(UiDataModel.uiDataModel.getFormattedNumber(minutes, 2)) in formatTime()
353 sTimeBuilder.append(UiDataModel.uiDataModel.getFormattedNumber(seconds, 2)) in formatTime()
[all …]
DStopwatchService.kt27 import com.android.deskclock.uidata.UiDataModel
48 UiDataModel.uiDataModel.selectedTab = UiDataModel.Tab.STOPWATCH in onBind()
DStopwatchService.java27 import com.android.deskclock.uidata.UiDataModel;
29 import static com.android.deskclock.uidata.UiDataModel.Tab.STOPWATCH;
67 UiDataModel.getUiDataModel().setSelectedTab(STOPWATCH); in onStartCommand()
DStopwatchFragment.kt65 import com.android.deskclock.uidata.UiDataModel in <lambda>()
76 class StopwatchFragment : DeskClockFragment(UiDataModel.Tab.STOPWATCH) { in <lambda>()
193 UiDataModel.uiDataModel.addTabListener(mTabWatcher) in <lambda>()
203 UiDataModel.uiDataModel.removeTabListener(mTabWatcher) in <lambda>()
549 oldSelectedTab: UiDataModel.Tab, in <lambda>()
550 newSelectedTab: UiDataModel.Tab in <lambda>()
/packages/apps/DeskClock/src/com/android/deskclock/timer/
DTimerSetupView.java40 import com.android.deskclock.uidata.UiDataModel;
121 final UiDataModel uidm = UiDataModel.getUiDataModel(); in onFinishInflate()
209 final UiDataModel uidm = UiDataModel.getUiDataModel(); in updateTime()
256 UiDataModel.getUiDataModel().getFormattedNumber(digit))); in append()
280 UiDataModel.getUiDataModel().getFormattedNumber(mInput[0]))); in delete()
DTimerSetupView.kt40 import com.android.deskclock.uidata.UiDataModel
111 val uidm = UiDataModel.uiDataModel in onFinishInflate()
184 val uidm = UiDataModel.uiDataModel in updateTime()
229 UiDataModel.uiDataModel.getFormattedNumber(digit)) in append()
253 UiDataModel.uiDataModel.getFormattedNumber(mInput[0])) in delete()
/packages/apps/DeskClock/src/com/android/deskclock/events/
DShortcutEventTracker.java27 import com.android.deskclock.uidata.UiDataModel;
39 final UiDataModel uidm = UiDataModel.getUiDataModel(); in ShortcutEventTracker()
49 final String shortcutId = UiDataModel.getUiDataModel().getShortcutId(category, action); in sendEvent()
DShortcutEventTracker.kt27 import com.android.deskclock.uidata.UiDataModel
36 val uidm = UiDataModel.uiDataModel
49 val shortcutId = UiDataModel.uiDataModel.getShortcutId(category, action) in sendEvent()
/packages/apps/DeskClock/tests/src/com/android/deskclock/uidata/
DTabModelTest.java30 import static com.android.deskclock.uidata.UiDataModel.Tab.ALARMS;
31 import static com.android.deskclock.uidata.UiDataModel.Tab.CLOCKS;
32 import static com.android.deskclock.uidata.UiDataModel.Tab.STOPWATCH;
33 import static com.android.deskclock.uidata.UiDataModel.Tab.TIMERS;
/packages/apps/DeskClock/src/com/android/deskclock/controller/
DShortcutController.kt44 import com.android.deskclock.uidata.UiDataModel
78 val setAlarmShortcut = UiDataModel.uiDataModel in createNewAlarmShortcut()
95 val setTimerShortcut = UiDataModel.uiDataModel in createNewTimerShortcut()
113 val shortcutId = UiDataModel.uiDataModel in createStopwatchShortcut()
143 val screensaverShortcut = UiDataModel.uiDataModel in createScreensaverShortcut()
DShortcutController.java44 import com.android.deskclock.uidata.UiDataModel;
88 final String setAlarmShortcut = UiDataModel.getUiDataModel() in createNewAlarmShortcut()
105 final String setTimerShortcut = UiDataModel.getUiDataModel() in createNewTimerShortcut()
120 final String shortcutId = UiDataModel.getUiDataModel() in createStopwatchShortcut()
150 final String screensaverShortcut = UiDataModel.getUiDataModel() in createScreensaverShortcut()

12