Home
last modified time | relevance | path

Searched refs:getTime (Results 1 – 25 of 93) sorted by relevance

1234

/packages/services/Iwlan/test/com/google/android/iwlan/
DIwlanDataServiceTest.java778 Date beforeSetup = Calendar.getInstance().getTime(); in testIwlanTunnelStats()
780 Date tunnelUp = Calendar.getInstance().getTime(); in testIwlanTunnelStats()
782 Date tunnelDown = Calendar.getInstance().getTime(); in testIwlanTunnelStats()
783 tunnelSetupSuccessStats.accept(tunnelUp.getTime() - beforeSetup.getTime()); in testIwlanTunnelStats()
784 tunnelUpStats.accept(tunnelDown.getTime() - tunnelUp.getTime()); in testIwlanTunnelStats()
786 beforeSetup = Calendar.getInstance().getTime(); in testIwlanTunnelStats()
788 tunnelUp = Calendar.getInstance().getTime(); in testIwlanTunnelStats()
790 tunnelDown = Calendar.getInstance().getTime(); in testIwlanTunnelStats()
791 tunnelSetupSuccessStats.accept(tunnelUp.getTime() - beforeSetup.getTime()); in testIwlanTunnelStats()
792 tunnelUpStats.accept(tunnelDown.getTime() - tunnelUp.getTime()); in testIwlanTunnelStats()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/mapclient/
DObexTimeTest.java63 timestamp.getTime()); in createWithValidDateTimeString_TimestampCorrect()
70 timestamp.getTime()); in createWithValidDateTimeStringWithPosOffset_TimestampCorrect()
77 timestamp.getTime()); in createWithValidDateTimeStringWithNegOffset_TimestampCorrect()
84 VALID_DATE_LOCAL_TZ, timestamp.getTime()); in createWithValidDate_TimestampCorrect()
98 timestamp.getTime()); in createWithInvalidDelimiterString_TimestampIsNull()
105 timestamp.getTime()); in createWithInvalidOffsetString_TimestampIsNull()
/packages/apps/Settings/src/com/android/settings/applications/appops/
DAppOpsState.java336 if (pos.getTime() < op.getTime()) { in addOp()
412 if (getTime() > 0) { in getTimeText()
413 return DateUtils.getRelativeTimeSpanString(getTime(), in getTimeText()
425 public long getTime() { in getTime() method in AppOpsState.AppOpEntry
426 return mOps.get(0).getTime(); in getTime()
448 if (object1.getTime() != object2.getTime()) {
450 return object1.getTime() > object2.getTime() ? -1 : 1;
474 boolean lastExe = last.getTime() != 0; in addOp()
475 boolean entryExe = opEntry.getTime() != 0; in addOp()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/bip/
DBipDateTime.java90 mDate = builder.build().getTime(); in BipDateTime()
112 public Date getTime() { in getTime() method in BipDateTime
122 return d.isUtc() == isUtc() && d.getTime() == getTime(); in equals()
127 Date d = getTime(); in toString()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointXmlUtilsTest.java95 config.setSubscriptionCreationTimeInMillis(format.parse("2016-02-01T10:00:00Z").getTime()); in createFullPasspointConfiguration()
97 format.parse("2016-03-01T10:00:00Z").getTime()); in createFullPasspointConfiguration()
100 config.setUsageLimitStartTimeInMillis(format.parse("2016-12-01T10:00:00Z").getTime()); in createFullPasspointConfiguration()
121 credential.setCreationTimeInMillis(format.parse("2016-01-01T10:00:00Z").getTime()); in createFullPasspointConfiguration()
122 credential.setExpirationTimeInMillis(format.parse("2016-02-01T10:00:00Z").getTime()); in createFullPasspointConfiguration()
DPasspointConfigUserStoreDataTest.java128 config.setSubscriptionCreationTimeInMillis(format.parse("2016-02-01T10:00:00Z").getTime()); in createFullPasspointConfiguration()
130 format.parse("2016-03-01T10:00:00Z").getTime()); in createFullPasspointConfiguration()
133 config.setUsageLimitStartTimeInMillis(format.parse("2016-12-01T10:00:00Z").getTime()); in createFullPasspointConfiguration()
154 credential.setCreationTimeInMillis(format.parse("2016-01-01T10:00:00Z").getTime()); in createFullPasspointConfiguration()
155 credential.setExpirationTimeInMillis(format.parse("2016-02-01T10:00:00Z").getTime()); in createFullPasspointConfiguration()
/packages/modules/Wifi/framework/tests/src/android/net/wifi/hotspot2/omadm/
DPpsMoParserTest.java117 config.setSubscriptionCreationTimeInMillis(format.parse("2016-02-01T10:00:00Z").getTime()); in generateConfigurationFromPPSMOTree()
119 format.parse("2016-03-01T10:00:00Z").getTime()); in generateConfigurationFromPPSMOTree()
122 config.setUsageLimitStartTimeInMillis(format.parse("2016-12-01T10:00:00Z").getTime()); in generateConfigurationFromPPSMOTree()
143 credential.setCreationTimeInMillis(format.parse("2016-01-01T10:00:00Z").getTime()); in generateConfigurationFromPPSMOTree()
144 credential.setExpirationTimeInMillis(format.parse("2016-02-01T10:00:00Z").getTime()); in generateConfigurationFromPPSMOTree()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/bip/
DBipAttachmentFormatTest.java42 return builder.build().getTime(); in makeDate()
61 Assert.assertEquals(expectedCreated, attachment.getCreatedDate().getTime()); in testParse()
68 Assert.assertEquals(expectedModified, attachment.getModifiedDate().getTime()); in testParse()
85 Assert.assertEquals(created, attachment.getCreatedDate().getTime()); in testCreate()
92 Assert.assertEquals(modified, attachment.getModifiedDate().getTime()); in testCreate()
DBipDatetimeTest.java43 return builder.build().getTime(); in makeDate()
63 Assert.assertEquals(expectedDate, bipDateTime.getTime()); in testParse()
70 Assert.assertEquals(date, bipDate.getTime()); in testCreate()
/packages/services/Iwlan/src/com/google/android/iwlan/
DIwlanDataService.java268 mBringUpStateTime = Calendar.getInstance().getTime(); in setState()
271 mUpStateTime = Calendar.getInstance().getTime(); in setState()
323 long tunnelUpTime = mUpStateTime.getTime() - mBringUpStateTime.getTime(); in toString()
506 mStartTime = Calendar.getInstance().getTime(); in IwlanDataTunnelStats()
520 long tunnelUpTime = upTime.getTime() - bringUpTime.getTime(); in reportTunnelSetupSuccess()
555 Date currentTime = Calendar.getInstance().getTime(); in reportTunnelDown()
562 stats.accept(currentTime.getTime() - upTime.getTime()); in reportTunnelDown()
604 sb.append("\n\tendTime: " + Calendar.getInstance().getTime()); in toString()
609 mStartTime = Calendar.getInstance().getTime(); in reset()
DErrorPolicyManager.java909 mLastErrorTime = new Date().getTime(); in ErrorInfo()
918 mLastErrorTime = new Date().getTime(); in ErrorInfo()
930 mLastErrorTime = new Date().getTime(); in updateCurrentRetryTime()
949 long currentTime = new Date().getTime(); in getCurrentRetryTime()
963 mLastErrorTime = new Date().getTime(); in setBackOffTime()
978 long currentTime = new Date().getTime(); in canBringUpTunnel()
1049 mStartTime = Calendar.getInstance().getTime(); in ErrorStats()
1072 mStartTime = Calendar.getInstance().getTime(); in reset()
/packages/apps/Settings/src/com/android/settings/datetime/timezone/
DTimeZoneInfoPreferenceController.java104 transitionTime.setTimeInMillis(nextDstTransition.getTime()); in formatInfo()
116 mDate.getTime(), /* inclusive */ false); in findNextDstTransition()
122 transition.getTime(), /*inclusive */ false); in findNextDstTransition()
DTimeZoneInfo.java159 TimeZoneNames.NameType.LONG_GENERIC, mNow.getTime())) in format()
161 TimeZoneNames.NameType.LONG_STANDARD, mNow.getTime())) in format()
163 TimeZoneNames.NameType.LONG_DAYLIGHT, mNow.getTime())) in format()
DRegionZonePicker.java147 int result = Integer.compare(tzi1.getTimeZone().getOffset(mNow.getTime()), in compare()
148 tzi2.getTimeZone().getOffset(mNow.getTime())); in compare()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DDateTimeFragment.java162 Date dummyDate = mDummyDate.getTime(); in updateTimeAndDateDisplay()
165 pref.setSummary(DateFormat.getLongDateFormat(context).format(now.getTime()))); in updateTimeAndDateDisplay()
167 pref.setSummary(DateFormat.getTimeFormat(getActivity()).format(now.getTime()))); in updateTimeAndDateDisplay()
170 now.getTimeZone(), now.getTime()))); in updateTimeAndDateDisplay()
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/
DAdminActionPreferenceControllerTestBase.java71 8 /* hourOfDay */, 7 /* minute */, 6 /* second */).getTime(); in testUpdateState()
75 mContext, date.getTime(), DateUtils.FORMAT_SHOW_TIME | DateUtils.FORMAT_SHOW_DATE)); in testUpdateState()
DEnterprisePrivacyFeatureProviderImplTest.java165 .thenReturn(mDate.getTime()); in testGetLastSecurityLogRetrievalTime()
174 when(mDevicePolicyManager.getLastBugReportRequestTime()).thenReturn(mDate.getTime()); in testGetLastBugReportRequestTime()
183 when(mDevicePolicyManager.getLastNetworkLogRetrievalTime()).thenReturn(mDate.getTime()); in testGetLastNetworkLogRetrievalTime()
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/obex/
DObexTime.java89 mDate = builder.build().getTime(); in ObexTime()
97 public Date getTime() { in getTime() method in ObexTime
/packages/apps/Contacts/src/com/android/contacts/editor/
DEventFieldEditorView.java186 ? null : kind.dateFormatWithYear.format(calendar.getTime()); in onLabelRebuilt()
248 ? null : kind.dateFormatWithoutYear.format(outCalendar.getTime()); in createDatePickerDialog()
251 ? null : kind.dateFormatWithYear.format(outCalendar.getTime()); in createDatePickerDialog()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapAppParams.java869 this.mFilterPeriodBegin = date.getTime(); in setFilterPeriodBegin()
889 this.mFilterPeriodBegin = date.getTime(); in setFilterLastActivityBegin()
913 this.mFilterPeriodEnd = date.getTime(); in setFilterPeriodEnd()
929 this.mFilterPeriodEnd = date.getTime(); in setFilterLastActivityEnd()
1137 this.mLastActivity = date.getTime(); in setLastActivity()
1383 this.mMseTime = date.getTime(); in setMseTime()
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DExifUtils.java117 return datetime.getTime(); in getGpsDateTime()
146 long msecs = datetime.getTime(); in parseDateTime()
/packages/services/Car/service/src/com/android/car/
DCarLocationService.java351 long currentTime = location.getTime(); in storeLocation()
370 logd("Read location from timestamp %s", location.getTime()); in loadLocation()
372 if (location.getTime() + TTL_THIRTY_DAYS_MS < currentTime) { in loadLocation()
/packages/apps/Contacts/src/com/android/contacts/util/
DDateUtils.java179 return outFormat.format(cal.getTime()); in formatDate()
268 return anniversary.getTime(); in getNextAnnualDate()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/
DDiskBasedLogger.java147 String datetime = DATE_FORMAT.format(Calendar.getInstance().getTime()); in e()
238 return sevenDaysAgoCalendar.getTime(); in getSevenDaysAgo()
/packages/services/Mtp/src/com/android/mtp/
DDocumentLoader.java200 (task.mLastNotified.getTime() < in run()
201 new Date().getTime() - NOTIFY_PERIOD_MS || in run()

1234