Home
last modified time | relevance | path

Searched refs:date (Results 1 – 25 of 184) sorted by relevance

12345678

/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/
DDateBucket.java12 final SimpleDate date; field in DateBucket
18 public DateBucket(SimpleDate date, int unifiedStartIndex, int unifiedEndIndex, in DateBucket() argument
20 this.date = date; in DateBucket()
29 return date.toString(); in toString()
34 return date.hashCode(); in hashCode()
49 if (date == null) { in equals()
50 if (other.date != null) { in equals()
53 } else if (!date.equals(other.date)) { in equals()
61 return this.date.compareTo(another.date); in compareTo()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/avrcpcontroller/bip/
DBipAttachmentFormatTest.java103 Date date = makeDate(1, 1, 1990, 12, 34, 56); in testParseAttachment() local
108 "19900101T123456", date, false, date, false); in testParseAttachment()
116 "19900101T123456", date, false, date, false); in testParseAttachment()
120 null, date, false, null, false); in testParseAttachment()
124 "19900101T123456", null, false, date, false); in testParseAttachment()
159 Date date = makeDate(1, 1, 1990, 12, 34, 56); in testCreateAttachment() local
162 testCreate("text/plain", "ISO-8859-1", "thisisatextfile.txt", 2048, date, date); in testCreateAttachment()
165 testCreate("text/plain", null, "thisisatextfile.txt", 2048, date, date); in testCreateAttachment()
168 testCreate("text/plain", "ISO-8859-1", "thisisatextfile.txt", -1, date, date); in testCreateAttachment()
188 Date date = makeDate(1, 1, 1990, 12, 34, 56); in testParsedAttachmentToString() local
[all …]
DBipDatetimeTest.java61 private void testParse(String date, Date expectedDate, boolean isUtc, String expectedStr) { in testParse() argument
62 BipDateTime bipDateTime = new BipDateTime(date); in testParse()
68 private void testCreate(Date date, String dateStr) { in testCreate() argument
69 BipDateTime bipDate = new BipDateTime(date); in testCreate()
70 Assert.assertEquals(date, bipDate.getTime()); in testCreate()
205 Date date = makeDate(1, 1, 2000, 6, 1, 15, utc); in testEquals_withSameInfo() local
207 BipDateTime bipDate = new BipDateTime(date); in testEquals_withSameInfo()
208 BipDateTime bipDateEqual = new BipDateTime(date); in testEquals_withSameInfo()
/packages/apps/Car/DebuggingRestrictionController/server/
Dgenkey.sh38 date=$(date +%Y-%m-%d)
40 req="$folder/token_signing-${date}.req"
41 key="$folder/token_signing-${date}.key"
42 signed="$folder/token_signing-${date}.pem"
64 key_out="token_signing_key-$date.pem"
65 cert_chain_out="token_signing_certs-$date.pem"
/packages/apps/Camera2/src/com/android/camera/
DMediaSaverImpl.java69 public void addImage(final byte[] data, String title, long date, Location loc, int width, in addImage() argument
71 addImage(data, title, date, loc, width, height, orientation, exif, l, in addImage()
76 public void addImage(final byte[] data, String title, long date, Location loc, int width, in addImage() argument
83 ImageSaveTask t = new ImageSaveTask(data, title, date, in addImage()
95 public void addImage(final byte[] data, String title, long date, Location loc, int orientation, in addImage() argument
99 addImage(data, title, date, loc, 0, 0, orientation, exif, l, in addImage()
139 private final long date; field in MediaSaverImpl.ImageSaveTask
148 public ImageSaveTask(byte[] data, String title, long date, Location loc, in ImageSaveTask() argument
154 this.date = date; in ImageSaveTask()
182 resolver, title, date, loc, orientation, exif, data, width, height, in doInBackground()
DStorage.java100 public Uri addImage(ContentResolver resolver, String title, long date, in addImage() argument
104 return addImage(resolver, title, date, location, orientation, exif, jpeg, width, height, in addImage()
129 public Uri addImage(ContentResolver resolver, String title, long date, in addImage() argument
135 return addImageToMediaStore(resolver, title, date, location, orientation, data.length, in addImage()
159 public Uri addImageToMediaStore(ContentResolver resolver, String title, long date, in addImageToMediaStore() argument
163 ContentValues values = getContentValuesForData(title, date, location, mimeType, true); in addImageToMediaStore()
200 public ContentValues getContentValuesForData(String title, long date, Location location, in getContentValuesForData() argument
206 values.put(Media.DATE_TAKEN, date); in getContentValuesForData()
292 public Uri updateImage(Uri imageUri, ContentResolver resolver, String title, long date, in updateImage() argument
296 return updateImage(imageUri, resolver, title, date, location, orientation, jpeg.length, in updateImage()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/ui/
DDateTileView.java87 public void setDate(SimpleDate date) { in setDate() argument
88 setDate(date.getDay(), date.getMonth(), date.getYear()); in setDate()
91 public void setDate(int date, int month, int year) { in setDate() argument
92 if (date != mDate) { in setDate()
93 mDate = date; in setDate()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/map/
DBluetoothMapAppParams.java858 Date date = new Date(mFilterPeriodBegin); in getFilterPeriodBeginString() local
859 return format.format(date); // Format to YYYYMMDDTHHMMSS local time in getFilterPeriodBeginString()
868 Date date = format.parse(filterPeriodBegin); in setFilterPeriodBegin() local
869 this.mFilterPeriodBegin = date.getTime(); in setFilterPeriodBegin()
878 Date date = new Date(mFilterPeriodBegin); in getFilterLastActivityBeginString() local
879 return format.format(date); // Format to YYYYMMDDTHHMMSS local time in getFilterLastActivityBeginString()
888 Date date = format.parse(filterPeriodBegin); in setFilterLastActivityBegin() local
889 this.mFilterPeriodBegin = date.getTime(); in setFilterLastActivityBegin()
902 Date date = new Date(mFilterPeriodEnd); in getFilterLastActivityEndString() local
903 return format.format(date); // Format to YYYYMMDDTHHMMSS local time in getFilterLastActivityEndString()
[all …]
DBluetoothMapSmsPdu.java242 public void cdmaChangeToDeliverPdu(long date) { in cdmaChangeToDeliverPdu() argument
384 Date date = new Date(time); in gsmWriteDate() local
385 String timeStr = format.format(date); // Format to YYMMDDTHHMMSS UTC time in gsmWriteDate()
430 public void gsmChangeToDeliverPdu(long date, String originator) { in gsmChangeToDeliverPdu() argument
456 gsmWriteDate(newPdu, date); in gsmChangeToDeliverPdu()
579 String address, long date) { in getDeliverPdus() argument
591 currentPdu.cdmaChangeToDeliverPdu(date); in getDeliverPdus()
593 currentPdu.gsmChangeToDeliverPdu(date, address); in getDeliverPdus()
/packages/apps/Calendar/tests/src/com/android/calendar/
DWeekNumberTest.java33 public Time date; field in WeekNumberTest.DateAndWeekNumber
38 date = new Time(); in DateAndWeekNumber()
41 date.set(0, 0, 0, day, month, year); in DateAndWeekNumber()
42 date.normalize(true /* ignore isDst */); in DateAndWeekNumber()
209 int weekNumber = test.date.getWeekNumber(); in testAll()
211 long millis = test.date.toMillis(false /* use isDst */); in testAll()
223 long millis = test.date.toMillis(false /* use isDst */); in testAll()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/pbapclient/
DPbapParserTest.java159 private boolean verifyCallLog(String number, String date, String type) { in verifyCallLog() argument
164 if (date != null) { in verifyCallLog()
165 date = adjDate(date); in verifyCallLog()
171 if ((number == null || number.equals(foundNumber)) && (date == null || date.equals( in verifyCallLog()
182 private static String adjDate(String date) { in adjDate() argument
184 long dt = Long.valueOf(date) - tz.getRawOffset(); in adjDate()
/packages/apps/Contacts/src/com/android/contacts/util/
DDateUtils.java73 Date date; in parseDate() local
81 date = CommonDateUtils.NO_YEAR_DATE_FORMAT.parse(string, parsePosition); in parseDate()
87 return getUtcDate(date, true); in parseDate()
94 date = f.parse(string, parsePosition); in parseDate()
96 return getUtcDate(date, false); in parseDate()
103 private static final Calendar getUtcDate(Date date, boolean noYear) { in getUtcDate() argument
105 calendar.setTime(date); in getUtcDate()
DContactPhotoUtils.java80 final Date date = new Date(System.currentTimeMillis()); in generateTempPhotoFileName() local
82 return "ContactPhoto-" + dateFormat.format(date) + ".jpg"; in generateTempPhotoFileName()
86 final Date date = new Date(System.currentTimeMillis()); in generateTempCroppedPhotoFileName() local
88 return "ContactPhoto-" + dateFormat.format(date) + "-cropped.jpg"; in generateTempCroppedPhotoFileName()
/packages/apps/TV/tests/robotests/src/com/android/tv/util/
DUtilsTest.java69 private static long getJanOfThisYearInMillis(int date, int hour, int minutes) { in getJanOfThisYearInMillis() argument
70 return new GregorianCalendar(getThisYear(), Calendar.JANUARY, date, hour, minutes) in getJanOfThisYearInMillis()
74 private static long getJanOfThisYearInMillis(int date, int hour) { in getJanOfThisYearInMillis() argument
75 return getJanOfThisYearInMillis(date, hour, 0); in getJanOfThisYearInMillis()
79 private static long getFebOfThisYearInMillis(int date, int hour, int minutes) { in getFebOfThisYearInMillis() argument
80 return new GregorianCalendar(getThisYear(), Calendar.FEBRUARY, date, hour, minutes) in getFebOfThisYearInMillis()
84 private static long getFebOfThisYearInMillis(int date, int hour) { in getFebOfThisYearInMillis() argument
85 return getFebOfThisYearInMillis(date, hour, 0); in getFebOfThisYearInMillis()
/packages/apps/Calendar/src/com/android/calendar/
DCalendarViewAdapter.kt136 val date: TextView = v.findViewById(R.id.top_button_date) as TextView in getView() constant
141 date.setText(buildFullDate()) in getView()
150 date.setText(buildMonthYearDate()) in getView()
154 date.setText(buildMonthYearDate()) in getView()
200 val date: TextView? = v?.findViewById(R.id.button_date) as? TextView in getDropDownView() constant
205 date?.setText(buildMonthDayDate()) in getDropDownView()
211 date?.setText(buildWeekDate()) in getDropDownView()
217 date?.setText(buildMonthDate()) in getDropDownView()
DEventGeometry.kt44 fun computeEventRect(date: Int, left: Int, top: Int, cellWidth: Int, event: Event): Boolean { in computeEventRect()
51 if (startDay > date || endDay < date) { in computeEventRect()
59 if (startDay < date) { in computeEventRect()
65 if (endDay > date) { in computeEventRect()
/packages/apps/Messaging/tools/messagegen/
Dfillsms204date=$(( ( 1000 * $timestamp ) - $half_timestamp_inc * ( 2 * ($sms_per_thread - $j) + ( $i % 2 ) )…
207 …ype,body,read,seen) values ($message_id, $thread_id, '$phone', '$phone', $date, -1, $message_type,…
221date=$(( $timestamp - $half_timestamp_inc * ( 2 * ($mms_per_thread - $j) + ( ($i+1) % 2 ) ) ))
230 …i,rr,tr_id,d_rpt,locked,seen,text_only) values ($message_id, $thread_id, $date, 0, $message_type, …
232 …,m_size,pri,rr,tr_id,d_rpt,locked,seen) values ($message_id, $thread_id, $date, $message_type, 1, …
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/
DAdminActionPreferenceControllerTestBase.java58 public abstract void setDate(Date date); in setDate() argument
70 final Date date = new GregorianCalendar(2011 /* year */, 10 /* month */, 9 /* dayOfMonth */, in testUpdateState() local
72 setDate(date); in testUpdateState()
75 mContext, date.getTime(), DateUtils.FORMAT_SHOW_TIME | DateUtils.FORMAT_SHOW_DATE)); in testUpdateState()
/packages/apps/DeskClock/src/com/android/alarmclock/
DDigitalAppWidgetProvider.kt334 rv.setCharSequence(R.id.date, "setFormat12Hour", dateFormat) in <lambda>()
335 rv.setCharSequence(R.id.date, "setFormat24Hour", dateFormat) in <lambda>()
372 rv.setTextViewTextSize(R.id.date, COMPLEX_UNIT_PX, sizes.mFontSizePx.toFloat()) in <lambda>()
416 val date: TextClock = sizer.findViewById(R.id.date) as TextClock in <lambda>() constant
417 date.setFormat12Hour(dateFormat) in <lambda>()
418 date.setFormat24Hour(dateFormat) in <lambda>()
476 val date: TextClock = sizer.findViewById(R.id.date) as TextClock in <lambda>() constant
485 date.setTextSize(COMPLEX_UNIT_PX, measuredSizes.mFontSizePx.toFloat()) in <lambda>()
/packages/apps/Car/Calendar/src/com/android/car/calendar/
DCarCalendarView.java133 LocalDate date = in updateRecyclerViewItems() local
137 if (!date.equals(currentDate)) { in updateRecyclerViewItems()
139 currentDate == null || !date.isBefore(currentDate), in updateRecyclerViewItems()
141 currentDate = date; in updateRecyclerViewItems()
149 mRecyclerViewItems.add(new TitleCalendarItem(date, mFormatter)); in updateRecyclerViewItems()
/packages/apps/Car/Settings/src/com/android/car/settings/accounts/
DAccountSyncDetailsPreferenceController.java372 Date date = new Date(); in getSummary() local
373 date.setTime(successEndTime); in getSummary()
374 String timeString = formatSyncDate(date); in getSummary()
381 String formatSyncDate(Date date) { in formatSyncDate() argument
382 return DateFormat.getDateFormat(getContext()).format(date) + " " + DateFormat.getTimeFormat( in formatSyncDate()
383 getContext()).format(date); in formatSyncDate()
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DExifUtils.java100 String date = exif.getAttribute(TAG_GPS_DATESTAMP); in getGpsDateTime() local
102 if (date == null || time == null in getGpsDateTime()
103 || (!sNonZeroTimePattern.matcher(date).matches() in getGpsDateTime()
108 String dateTimeString = date + ' ' + time; in getGpsDateTime()
/packages/apps/Camera2/src/com/android/camera/app/
DMediaSaver.java86 void addImage(byte[] data, String title, long date, Location loc, int width, int height, in addImage() argument
108 void addImage(byte[] data, String title, long date, Location loc, int width, int height, in addImage() argument
126 void addImage(byte[] data, String title, long date, Location loc, int orientation, in addImage() argument
/packages/apps/Dialer/java/com/android/dialer/app/calllog/
DPhoneCallDetailsHelper.java518 details.date, in getCallDate()
539 getGranularDate(details.date), in getGranularDateTime()
540 DateUtils.formatDateTime(context, details.date, DateUtils.FORMAT_SHOW_TIME)); in getGranularDateTime()
546 private String getGranularDate(long date) { in getGranularDate() argument
547 if (DateUtils.isToday(date)) { in getGranularDate()
552 date, in getGranularDate()
555 | (shouldShowYear(date) ? DateUtils.FORMAT_SHOW_YEAR : DateUtils.FORMAT_NO_YEAR)); in getGranularDate()
563 private boolean shouldShowYear(long date) { in shouldShowYear() argument
566 calendar.setTimeInMillis(date); in shouldShowYear()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DREADME.txt3 commit date: 2013-12-18 to 2014-01-07
9 commit date: 2013-12-19
15 commit date: 2013-12-11
20 commit date: 2008-10-21

12345678