/packages/apps/DeskClock/src/com/android/deskclock/uidata/ |
D | TabModel.kt | 37 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()
|
D | TabDAO.kt | 31 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()
|
D | UiDataModel.java | 38 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/ |
D | DeskClock.java | 53 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 …]
|
D | FragmentTabPagerAdapter.java | 28 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()
|
D | DeskClockFragment.java | 26 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()
|
D | DropShadowController.java | 27 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()
|
D | AlarmClockFragment.kt | 47 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()
|
D | HandleShortcuts.java | 25 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()
|
D | HandleApiCalls.java | 42 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()
|
D | AlarmClockFragment.java | 47 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()
|
D | MoveScreensaverRunnable.java | 27 import com.android.deskclock.uidata.UiDataModel; 81 UiDataModel.getUiDataModel().addMinuteCallback(this, -FADE_TIME); in start() 88 UiDataModel.getUiDataModel().removePeriodicCallback(this); in stop()
|
D | Screensaver.java | 35 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/ |
D | LapsAdapter.java | 32 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 …]
|
D | LapsAdapter.kt | 33 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 …]
|
D | StopwatchService.kt | 27 import com.android.deskclock.uidata.UiDataModel 48 UiDataModel.uiDataModel.selectedTab = UiDataModel.Tab.STOPWATCH in onBind()
|
D | StopwatchService.java | 27 import com.android.deskclock.uidata.UiDataModel; 29 import static com.android.deskclock.uidata.UiDataModel.Tab.STOPWATCH; 67 UiDataModel.getUiDataModel().setSelectedTab(STOPWATCH); in onStartCommand()
|
D | StopwatchFragment.kt | 65 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/ |
D | TimerSetupView.java | 40 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()
|
D | TimerSetupView.kt | 40 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/ |
D | ShortcutEventTracker.java | 27 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()
|
D | ShortcutEventTracker.kt | 27 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/ |
D | TabModelTest.java | 30 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/ |
D | ShortcutController.kt | 44 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()
|
D | ShortcutController.java | 44 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()
|