Home
last modified time | relevance | path

Searched refs:calendar (Results 1 – 11 of 11) sorted by relevance

/development/samples/browseable/SpeedTracker/Shared/src/com.example.android.wearable.speedtracker.common/
DLocationEntry.java29 public Calendar calendar; field in LocationEntry
32 public LocationEntry(Calendar calendar, double latitude, double longitude) { in LocationEntry() argument
33 this.calendar = calendar; in LocationEntry()
36 this.day = Utils.getHashedDay(calendar); in LocationEntry()
50 if (calendar.getTimeInMillis() != that.calendar.getTimeInMillis()) { in equals()
59 return calendar.hashCode(); in hashCode()
/development/samples/browseable/SpeedTracker/Application/src/com.example.android.wearable.speedtracker/
DPhoneMainActivity.java68 Calendar calendar = Calendar.getInstance(); in onClick() local
69 calendar.setTimeInMillis(System.currentTimeMillis()); in onClick()
71 calendar.get(Calendar.YEAR), in onClick()
72 calendar.get(Calendar.MONTH), calendar.get(Calendar.DAY_OF_MONTH)).show(); in onClick()
80 Calendar calendar = Calendar.getInstance(); in onDateSet() local
81 calendar.setTimeInMillis(System.currentTimeMillis()); in onDateSet()
82 calendar.set(Calendar.YEAR, year); in onDateSet()
83 calendar.set(Calendar.MONTH, monthOfYear); in onDateSet()
84 calendar.set(Calendar.DAY_OF_MONTH, dayOfMonth); in onDateSet()
85 String date = DateUtils.formatDateTime(this, calendar.getTimeInMillis(), in onDateSet()
[all …]
DLocationDataManager.java49 public final List<LocationEntry> getPoints(Calendar calendar) { in getPoints() argument
50 String day = Utils.getHashedDay(calendar); in getPoints()
54 List<LocationEntry> points = mDbHelper.read(calendar); in getPoints()
65 public final int clearPoints(Calendar calendar) { in clearPoints() argument
67 String day = Utils.getHashedDay(calendar); in clearPoints()
79 List<LocationEntry> points = getPoints(entry.calendar); in addPoint()
/development/samples/browseable/DirectBoot/src/com.example.android.directboot/alarms/
DAlarm.java130 Calendar calendar = Calendar.getInstance(); in compareTo() local
131 calendar.set(Calendar.MONTH, month); in compareTo()
132 calendar.set(Calendar.DATE, date); in compareTo()
133 calendar.set(Calendar.HOUR_OF_DAY, hour); in compareTo()
134 calendar.set(Calendar.MINUTE, minute); in compareTo()
141 return calendar.compareTo(otherCal); in compareTo()
/development/samples/ApiDemos/src/com/example/android/apis/app/
DAlarmController.java100 Calendar calendar = Calendar.getInstance();
101 calendar.setTimeInMillis(System.currentTimeMillis());
102 calendar.add(Calendar.SECOND, 30);
109 am.set(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), sender);
113 AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), sender);
/development/samples/browseable/SpeedTracker/Application/src/com.example.android.wearable.speedtracker/db/
DLocationDbHelper.java95 values.put(COLUMN_NAME_TIME, entry.calendar.getTimeInMillis()); in insert()
106 public final List<LocationEntry> read(Calendar calendar) { in read() argument
113 String day = Utils.getHashedDay(calendar); in read()
162 public final int delete(Calendar calendar) { in delete() argument
163 return delete(Utils.getHashedDay(calendar)); in delete()
DUpdateService.java85 Calendar calendar = Calendar.getInstance(); in onDataChanged() local
86 calendar.setTimeInMillis(time); in onDataChanged()
88 new LocationEntry(calendar, latitude, longitude)); in onDataChanged()
/development/samples/browseable/AgendaData/
D_index.jd8 Syncs calendar events to your wearable at the press of a button, using the Wearable
/development/samples/browseable/WatchFace/
D_index.jd10 opengl, calendar, steps, interactive, etc. It also includes a watch-side configuration example.
/development/tools/labpretest/
Dlabpretest.sh569 …mclock -p com.android.browser -p com.android.calculator2 -p com.android.calendar -p com.android.ca…
/development/samples/browseable/SpeedTracker/Wearable/src/com.example.android.wearable.speedtracker/
DWearableMainActivity.java418 .putLong(Constants.KEY_TIME, entry.calendar.getTimeInMillis()); in addLocationEntry()