Home
last modified time | relevance | path

Searched refs:mCalendar (Results 1 – 8 of 8) sorted by relevance

/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/
DSweepWatchFaceService.java68 private Calendar mCalendar; field in SweepWatchFaceService.Engine
102 mCalendar.setTimeZone(TimeZone.getDefault());
176 mCalendar = Calendar.getInstance(); in onCreate()
321 mCalendar.setTimeInMillis(now); in onDraw()
353 (mCalendar.get(Calendar.SECOND) + mCalendar.get(Calendar.MILLISECOND) / 1000f); in onDraw()
356 final float minutesRotation = mCalendar.get(Calendar.MINUTE) * 6f; in onDraw()
358 final float hourHandOffset = mCalendar.get(Calendar.MINUTE) / 2f; in onDraw()
359 final float hoursRotation = (mCalendar.get(Calendar.HOUR) * 30) + hourHandOffset; in onDraw()
423 mCalendar.setTimeZone(TimeZone.getDefault()); in onVisibilityChanged()
DOpenGLWatchFaceService.java113 private Calendar mCalendar = Calendar.getInstance(); field in OpenGLWatchFaceService.Engine
121 mCalendar.setTimeZone(TimeZone.getDefault());
384 mCalendar.setTimeZone(TimeZone.getDefault()); in onVisibilityChanged()
441 mCalendar.setTimeInMillis(System.currentTimeMillis()); in onDraw()
443 mCalendar.get(Calendar.SECOND) + mCalendar.get(Calendar.MILLISECOND) / 1000f; in onDraw()
444 float minutes = mCalendar.get(Calendar.MINUTE) + seconds / 60f; in onDraw()
445 float hours = mCalendar.get(Calendar.HOUR) + minutes / 60f; in onDraw()
DAnalogWatchFaceService.java77 private Calendar mCalendar; field in AnalogWatchFaceService.Engine
111 mCalendar.setTimeZone(TimeZone.getDefault());
204 mCalendar = Calendar.getInstance(); in onCreate()
356 mCalendar.setTimeInMillis(now); in onDraw()
388 (mCalendar.get(Calendar.SECOND) + mCalendar.get(Calendar.MILLISECOND) / 1000f); in onDraw()
391 final float minutesRotation = mCalendar.get(Calendar.MINUTE) * 6f; in onDraw()
393 final float hourHandOffset = mCalendar.get(Calendar.MINUTE) / 2f; in onDraw()
394 final float hoursRotation = (mCalendar.get(Calendar.HOUR) * 30) + hourHandOffset; in onDraw()
453 mCalendar.setTimeZone(TimeZone.getDefault()); in onVisibilityChanged()
DFitStepsWatchFaceService.java132 mCalendar.setTimeZone(TimeZone.getDefault());
152 private Calendar mCalendar; field in FitStepsWatchFaceService.Engine
218 mCalendar = Calendar.getInstance(); in onCreate()
253 mCalendar.setTimeZone(TimeZone.getDefault()); in onVisibilityChanged()
374 mCalendar.setTimeInMillis(now); in onDraw()
384 hourString = formatTwoDigitNumber(mCalendar.get(Calendar.HOUR_OF_DAY)); in onDraw()
386 int hour = mCalendar.get(Calendar.HOUR); in onDraw()
401 String minuteString = formatTwoDigitNumber(mCalendar.get(Calendar.MINUTE)); in onDraw()
412 mCalendar.get(Calendar.SECOND)), x, mYOffset, mSecondPaint); in onDraw()
416 mCalendar.get(Calendar.AM_PM)), x, mYOffset, mAmPmPaint); in onDraw()
DFitDistanceWatchFaceService.java136 mCalendar.setTimeZone(TimeZone.getDefault());
156 private Calendar mCalendar; field in FitDistanceWatchFaceService.Engine
221 mCalendar = Calendar.getInstance(); in onCreate()
255 mCalendar.setTimeZone(TimeZone.getDefault()); in onVisibilityChanged()
373 mCalendar.setTimeInMillis(now); in onDraw()
383 hourString = formatTwoDigitNumber(mCalendar.get(Calendar.HOUR_OF_DAY)); in onDraw()
385 int hour = mCalendar.get(Calendar.HOUR); in onDraw()
400 String minuteString = formatTwoDigitNumber(mCalendar.get(Calendar.MINUTE)); in onDraw()
411 mCalendar.get(Calendar.SECOND)), x, mYOffset, mSecondPaint); in onDraw()
415 mCalendar.get(Calendar.AM_PM)), x, mYOffset, mAmPmPaint); in onDraw()
DDigitalWatchFaceService.java136 mCalendar.setTimeZone(TimeZone.getDefault());
158 Calendar mCalendar; field in DigitalWatchFaceService.Engine
214 mCalendar = Calendar.getInstance(); in onCreate()
250 mCalendar.setTimeZone(TimeZone.getDefault()); in onVisibilityChanged()
268 mDayOfWeekFormat.setCalendar(mCalendar); in initFormats()
270 mDateFormat.setCalendar(mCalendar); in initFormats()
452 mCalendar.setTimeInMillis(now); in onDraw()
467 hourString = formatTwoDigitNumber(mCalendar.get(Calendar.HOUR_OF_DAY)); in onDraw()
469 int hour = mCalendar.get(Calendar.HOUR); in onDraw()
486 String minuteString = formatTwoDigitNumber(mCalendar.get(Calendar.MINUTE)); in onDraw()
[all …]
DComplicationSimpleWatchFaceService.java97 private Calendar mCalendar; field in ComplicationSimpleWatchFaceService.Engine
148 mCalendar.setTimeZone(TimeZone.getDefault());
179 mCalendar = Calendar.getInstance(); in onCreate()
547 mCalendar.setTimeInMillis(now); in onDraw()
652 (mCalendar.get(Calendar.SECOND) + mCalendar.get(Calendar.MILLISECOND) / 1000f); in drawWatchFace()
655 final float minutesRotation = mCalendar.get(Calendar.MINUTE) * 6f; in drawWatchFace()
657 final float hourHandOffset = mCalendar.get(Calendar.MINUTE) / 2f; in drawWatchFace()
658 final float hoursRotation = (mCalendar.get(Calendar.HOUR) * 30) + hourHandOffset; in drawWatchFace()
717 mCalendar.setTimeZone(TimeZone.getDefault()); in onVisibilityChanged()
/development/samples/browseable/SpeedTracker/Wearable/src/com.example.android.wearable.speedtracker/
DWearableMainActivity.java89 private Calendar mCalendar; field in WearableMainActivity
145 mCalendar = Calendar.getInstance(); in onCreate()
411 mCalendar.setTimeInMillis(System.currentTimeMillis()); in addLocationEntry()
412 LocationEntry entry = new LocationEntry(mCalendar, latitude, longitude); in addLocationEntry()
413 String path = Constants.PATH + "/" + mCalendar.getTimeInMillis(); in addLocationEntry()