Home
last modified time | relevance | path

Searched refs:days (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/base/core/java/android/text/format/
DFormatter.java125 int days = 0, hours = 0, minutes = 0; in formatShortElapsedTime() local
127 days = (int)(secondsLong / SECONDS_PER_DAY); in formatShortElapsedTime()
128 secondsLong -= days * SECONDS_PER_DAY; in formatShortElapsedTime()
140 if (days >= 2) { in formatShortElapsedTime()
141 days += (hours+12)/24; in formatShortElapsedTime()
142 return context.getString(com.android.internal.R.string.durationDays, days); in formatShortElapsedTime()
143 } else if (days > 0) { in formatShortElapsedTime()
145 … return context.getString(com.android.internal.R.string.durationDayHour, days, hours); in formatShortElapsedTime()
147 return context.getString(com.android.internal.R.string.durationDayHours, days, hours); in formatShortElapsedTime()
DDateUtils.java434 int days = Math.abs(currentDay - startDay); in getRelativeDayString() local
438 if (days == 1) { in getRelativeDayString()
444 } else if (days == 0) { in getRelativeDayString()
455 String format = r.getQuantityString(resId, days); in getRelativeDayString()
456 return String.format(format, days); in getRelativeDayString()
/frameworks/opt/calendar/src/com/android/calendarcommon2/
DDuration.java33 public int days; field in Duration
51 days = 0; in parse()
113 days = n; in parse()
132 cal.add(Calendar.DAY_OF_MONTH, sign*days); in addTo()
145 + (24*60*60*days) in getMillis()
DRecurrenceProcessor.java496 int days = 0; in generateDaysList() local
538 days |= 1 << j; in generateDaysList()
549 days |= 1 << j; in generateDaysList()
565 days |= 1 << j; in generateDaysList()
583 days |= 1 << v; in generateDaysList()
587 days |= 1 << j; in generateDaysList()
596 if ((days&(1<<j)) != 0) { in generateDaysList()
602 days &= ~(1<<j); in generateDaysList()
609 return days; in generateDaysList()
762 DaySet days = mDays; in expand() local
[all …]
/frameworks/support/v4/java/android/support/v4/util/
DTimeUtils.java102 int days = 0, hours = 0, minutes = 0; in formatDurationLocked() local
105 days = seconds / SECONDS_PER_DAY; in formatDurationLocked()
106 seconds -= days * SECONDS_PER_DAY; in formatDurationLocked()
120 int myLen = accumField(days, 1, false, 0); in formatDurationLocked()
137 pos = printField(formatStr, days, 'd', pos, false, 0); in formatDurationLocked()
/frameworks/opt/calendar/tests/src/com/android/calendarcommon2/
DDurationTest.java27 int sign, int weeks, int days, int hours, in verifyDuration() argument
35 assertEquals("Duration days is not equal for " + str, days, duration.days); in verifyDuration()
/frameworks/base/services/core/java/com/android/server/notification/
DDowntimeConditionProvider.java177 final int[] days = ZenModeConfig.tryParseDays(mConfig.sleepMode); in updateDays() local
178 for (int i = 0; days != null && i < days.length; i++) { in updateDays()
179 mDays.add(days[i]); in updateDays()
239 private long addDays(long time, int days) { in addDays() argument
241 mCalendar.add(Calendar.DATE, days); in addDays()
DZenLog.java77 public static void traceDowntime(boolean inDowntime, int day, ArraySet<Integer> days) { in traceDowntime() argument
78 append(TYPE_DOWNTIME, inDowntime + ",day=" + day + ",days=" + days); in traceDowntime()
/frameworks/base/core/java/android/util/
DTimeUtils.java321 int days = 0, hours = 0, minutes = 0; in formatDurationLocked() local
324 days = seconds / SECONDS_PER_DAY; in formatDurationLocked()
325 seconds -= days * SECONDS_PER_DAY; in formatDurationLocked()
339 int myLen = accumField(days, 1, false, 0); in formatDurationLocked()
356 pos = printField(formatStr, days, 'd', pos, false, 0); in formatDurationLocked()
/frameworks/base/cmds/am/src/com/android/commands/am/
DAm.java1752 private List<Configuration> getRecentConfigurations(int days) { in getRecentConfigurations() argument
1756 final long nDaysAgo = now - (days * 24 * 60 * 60 * 1000); in getRecentConfigurations()
1797 int days = 14; in runGetConfig() local
1804 days = Integer.parseInt(nextArgRequired()); in runGetConfig()
1805 if (days <= 0) { in runGetConfig()
1820 final List<Configuration> recentConfigs = getRecentConfigurations(days); in runGetConfig()
/frameworks/base/docs/html/distribute/googleplay/edu/
Dabout.jd76 devices in just minutes or hours, rather than days.
/frameworks/base/docs/html/distribute/googleplay/
Dabout.jd174 Less than 30 days old
183 Less than 30 days old
/frameworks/base/docs/html/google/play/billing/
Dbilling_subscriptions.jd237 by a whole number of days. If you request a deferral period that includes a
238 fractional number of days, the API rounds the period up to the next full day.
278 subscription in your product list, set a valid number of days for the trial
279 (must be 7 days or longer), and publish. You can change the period any time,
Dbilling_testing.jd72 accounts, and automatically canceling the completed orders after 14 days. </p>
127 purchases 14 days after their purchase date. </li>
/frameworks/base/docs/html/training/design-navigation/
Ddescendant-lateral.jd169 …mple if each page represents consecutive calendar days. For infinite collections (again, calendar
/frameworks/base/docs/html/google/play/licensing/
Dlicensing-reference.jd285 or more days. See the section
364 sets a longer validity period &mdash; typically a number of days. </li>
/frameworks/base/docs/html/tools/publishing/
Dapp-signing.jd257 of 365 days from its creation date. When the certificate expires, you will get a build error.</p>
290 <code>my-release-key.keystore</code>. The keystore contains a single key, valid for 10000 days.
/frameworks/base/docs/html/about/dashboards/
Dindex.jd41 Google Play Store in the prior 7 days.</p>
/frameworks/base/docs/html/design/wear/
Dpatterns.jd37 …rd might show the weather for the current location today, with subsequent days listed in an additi…
/frameworks/base/core/java/android/os/
DBatteryStats.java1680 long days = seconds / (60 * 60 * 24); in formatTimeRaw() local
1681 if (days != 0) { in formatTimeRaw()
1682 out.append(days); in formatTimeRaw()
1685 long used = days * 60 * 60 * 24; in formatTimeRaw()
/frameworks/base/docs/html/distribute/stories/
Dlocalization.jd312 days instead of weeks that we were used to with traditional translation
/frameworks/base/docs/html/training/basics/data-storage/
Dfiles.jd49 come from the early days of Android, when most devices offered built-in non-volatile memory
/frameworks/base/docs/html/google/play-services/
Dindex.jd394 few days. This allows you to use the newest APIs in Google Play services and reach most of the
/frameworks/base/docs/html/distribute/tools/
Dlocalization-checklist.jd346 &lt;xliff:g id="time" example="5 days&gt;%1$s&lt;/xliff:g&gt;until holiday
/frameworks/base/docs/html/about/versions/
Dandroid-4.3.jd910 …Contract.DeletedContacts#DAYS_KEPT_MILLISECONDS} containing the number of days (in milliseconds) t…

12