Home
last modified time | relevance | path

Searched refs:mTime (Results 1 – 25 of 33) sorted by relevance

12

/frameworks/base/services/usage/java/com/android/server/usage/
DUnixCalendar.java28 private long mTime; field in UnixCalendar
31 mTime = time; in UnixCalendar()
35 mTime += val * DAY_IN_MILLIS; in addDays()
39 mTime += val * WEEK_IN_MILLIS; in addWeeks()
43 mTime += val * MONTH_IN_MILLIS; in addMonths()
47 mTime += val * YEAR_IN_MILLIS; in addYears()
51 mTime = time; in setTimeInMillis()
55 return mTime; in getTimeInMillis()
/frameworks/base/telephony/java/android/telephony/
DDataConnectionRealTimeInfo.java29 private long mTime; // Time the info was collected since boot in nanos; field in DataConnectionRealTimeInfo
44 mTime = time; in DataConnectionRealTimeInfo()
54 mTime = Long.MAX_VALUE; in DataConnectionRealTimeInfo()
62 mTime = in.readLong(); in DataConnectionRealTimeInfo()
70 return mTime; in getTime()
87 out.writeLong(mTime); in writeToParcel()
109 result = (prime * result) + mTime; in hashCode()
126 return (mTime == other.mTime) in equals()
134 sb.append("mTime=").append(mTime); in toString()
/frameworks/base/core/java/android/os/health/
DTimerStat.java32 private long mTime; field in TimerStat
62 mTime = time; in TimerStat()
71 mTime = in.readLong(); in TimerStat()
86 out.writeLong(mTime); in writeToParcel()
107 mTime = time; in setTime()
114 return mTime; in getTime()
/frameworks/base/services/core/java/com/android/server/notification/
DCountdownConditionProvider.java54 private long mTime; field in CountdownConditionProvider
89 pw.print(" mTime="); pw.println(mTime); in dump()
112 mTime = ZenModeConfig.tryParseCountdownConditionId(conditionId); in onSubscribe()
120 if (mTime > 0) { in onSubscribe()
123 DateUtils.getRelativeTimeSpanString(mTime, now, DateUtils.MINUTE_IN_MILLIS); in onSubscribe()
124 if (mTime <= now) { in onSubscribe()
126 notifyCondition(newCondition(mTime, Condition.STATE_FALSE)); in onSubscribe()
129 alarms.setExact(AlarmManager.RTC_WAKEUP, mTime, pendingIntent); in onSubscribe()
133 (mTime <= now ? "Not scheduling" : "Scheduling"), in onSubscribe()
134 ACTION, ts(mTime), mTime - now, span, ts(now))); in onSubscribe()
/frameworks/av/include/media/
DAudioTimestamp.h29 mTime.tv_sec = 0; in AudioTimestamp()
30 mTime.tv_nsec = 0; in AudioTimestamp()
34 struct timespec mTime; // corresponding CLOCK_MONOTONIC when frame is expected to present variable
131 timestamp->mTime.tv_sec = time / 1000000000;
132 timestamp->mTime.tv_nsec = time - timestamp->mTime.tv_sec * 1000000000LL;
DDrmSessionManager.h70 int64_t mTime; member
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
DWaveTriggerFilter.java33 private float mTime = 0f; field in WaveTriggerFilter
64 mTime = 0.5f; in onProcess()
70 value = -Math.abs(mTime - 1f) + 1f; in onProcess()
71 mTime += 0.2f; in onProcess()
72 if (mTime >= 2f) { in onProcess()
/frameworks/base/location/java/android/location/
DLocation.java114 private long mTime = 0; field in Location
151 mTime = l.mTime; in set()
168 mTime = 0; in reset()
520 return mTime; in getTime()
530 mTime = time; in setTime()
795 if (mTime == 0) return false; in isComplete()
816 if (mTime == 0) mTime = System.currentTimeMillis(); in makeComplete()
854 if (mTime == 0) { in toString()
885 l.mTime = in.readLong();
912 parcel.writeLong(mTime); in writeToParcel()
/frameworks/base/core/java/android/widget/
DTextClock.java135 private Calendar mTime; field in TextClock
259 mTime = Calendar.getInstance(TimeZone.getTimeZone(timeZone)); in createTime()
261 mTime = Calendar.getInstance(); in createTime()
597 mTime.setTimeInMillis(System.currentTimeMillis()); in onTimeChanged()
598 setText(DateFormat.format(mFormat, mTime)); in onTimeChanged()
599 setContentDescription(DateFormat.format(mDescFormat, mTime)); in onTimeChanged()
DDateTimeView.java64 Date mTime; field in DateTimeView
123 mTime = new Date(t.year-1900, t.month, t.monthDay, t.hour, t.minute, 0); in setTime()
145 if (mTime == null || getVisibility() == GONE) { in update()
154 Date time = mTime; in update()
207 String text = format.format(mTime); in update()
/frameworks/base/services/core/java/com/android/server/
DNetworkTimeUpdateService.java78 private TrustedTime mTime; field in NetworkTimeUpdateService
104 mTime = NtpTrustedTime.getInstance(context); in NetworkTimeUpdateService()
188 if (mTime.getCacheAge() >= mPollingIntervalMs) { in onPollNetworkTimeUnderWakeLock()
189 mTime.forceRefresh(); in onPollNetworkTimeUnderWakeLock()
193 if (mTime.getCacheAge() < mPollingIntervalMs) { in onPollNetworkTimeUnderWakeLock()
194 final long ntp = mTime.currentTimeMillis(); in onPollNetworkTimeUnderWakeLock()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarHeaderView.java72 private TextView mTime; field in StatusBarHeaderView
146 mTime = (TextView) findViewById(R.id.time_view); in onFinishInflate()
179 mTime.setPivotX(rtl ? mTime.getWidth() : 0); in onFinishInflate()
180 mTime.setPivotY(mTime.getBaseline()); in onFinishInflate()
403 mTime.setTextSize(TypedValue.COMPLEX_UNIT_PX, mExpanded in updateClockScale()
406 mTime.setScaleX(1f); in updateClockScale()
407 mTime.setScaleY(1f); in updateClockScale()
413 mAmPm.setTranslationX((rtl ? 1 : -1) * mTime.getWidth() * (1 - mTime.getScaleX())); in updateAmPmTranslation()
632 mTime.setScaleX(values.timeScale); in applyLayoutValues()
633 mTime.setScaleY(values.timeScale); in applyLayoutValues()
[all …]
/frameworks/av/media/libmedia/
DIAudioTrack.cpp134 timestamp.mTime.tv_sec = reply.readInt32(); in getTimestamp()
135 timestamp.mTime.tv_nsec = reply.readInt32(); in getTimestamp()
199 reply->writeInt32(timestamp.mTime.tv_sec); in onTransact()
200 reply->writeInt32(timestamp.mTime.tv_nsec); in onTransact()
DAudioTrack.cpp2420 clock_gettime(CLOCK_MONOTONIC, &timestamp.mTime); in getTimestamp()
2438 const int64_t timestampTimeUs = convertTimespecToUs(timestamp.mTime); in getTimestamp()
2508 const int64_t previousTimeNanos = TIME_TO_NANOS(mPreviousTimestamp.mTime); in getTimestamp()
2509 const int64_t currentTimeNanos = TIME_TO_NANOS(timestamp.mTime); in getTimestamp()
/frameworks/base/tests/DozeTest/src/com/android/dreams/dozetest/
DDozeTestDream.java64 private final Date mTime = new Date(); field in DozeTestDream
147 mTime.setTime(now); in performTimeUpdate()
148 mAlarmClock.setText(mTimeFormat.format(mTime)); in performTimeUpdate()
/frameworks/av/services/audiopolicy/service/
DAudioPolicyService.cpp468 if (mAudioCommands[0]->mTime <= curTime) { in threadLoop()
633 waitTime = mAudioCommands[0]->mTime - curTime; in threadLoop()
918 command->mTime = systemTime() + milliseconds(delayMs); in insertCommand_l()
929 if (command2->mTime <= command->mTime) break; in insertCommand_l()
972 command->mTime = command2->mTime; in insertCommand_l()
986 command->mTime = command2->mTime; in insertCommand_l()
1031 command->mTime = command2->mTime; in insertCommand_l()
1095 (int)ns2s(mTime), in dump()
1096 (int)ns2ms(mTime)%1000, in dump()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkPolicyManagerServiceTest.java119 private TrustedTime mTime; field in NetworkPolicyManagerServiceTest
192 mTime = createMock(TrustedTime.class); in setUp()
197 mStatsService, mNetworkManager, mTime, mPolicyDir, true); in setUp()
245 mTime = null; in tearDown()
845 expect(mTime.forceRefresh()).andReturn(false).anyTimes(); in expectCurrentTime()
846 expect(mTime.hasCache()).andReturn(true).anyTimes(); in expectCurrentTime()
847 expect(mTime.currentTimeMillis()).andReturn(currentTimeMillis()).anyTimes(); in expectCurrentTime()
848 expect(mTime.getCacheAge()).andReturn(0L).anyTimes(); in expectCurrentTime()
849 expect(mTime.getCacheCertainty()).andReturn(0L).anyTimes(); in expectCurrentTime()
1033 mNetworkManager, mTime, mConnManager, mNotifManager); in replay()
[all …]
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsService.java156 private final TrustedTime mTime; field in NetworkStatsService
287 mTime = checkNotNull(time, "missing TrustedTime"); in NetworkStatsService()
379 final long currentTime = mTime.hasCache() ? mTime.currentTimeMillis() in shutdownLocked()
749 final long currentTime = mTime.hasCache() ? mTime.currentTimeMillis() in advisePersistThreshold()
1036 final long currentTime = mTime.hasCache() ? mTime.currentTimeMillis() in bootstrapStatsLocked()
1050 if (mTime.getCacheAge() > mSettings.getTimeCacheMaxAge()) { in performPoll()
1051 mTime.forceRefresh(); in performPoll()
1080 final long currentTime = mTime.hasCache() ? mTime.currentTimeMillis() in performPollLocked()
1132 final long trustedTime = mTime.hasCache() ? mTime.currentTimeMillis() : -1; in performSampleLocked()
/frameworks/av/drm/libmediadrm/
DDrmSessionManager.cpp59 mTime(0) {} in DrmSessionManager()
63 mTime(0) {} in DrmSessionManager()
177 return mTime++; in getTime_l()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkStatsServiceTest.java141 private TrustedTime mTime; field in NetworkStatsServiceTest
166 mTime = createMock(TrustedTime.class); in setUp()
176 mServiceContext, mNetManager, alarmManager, wakeLock, mTime, in setUp()
216 mTime = null; in tearDown()
1131 expect(mTime.forceRefresh()).andReturn(false).anyTimes(); in expectCurrentTime()
1132 expect(mTime.hasCache()).andReturn(true).anyTimes(); in expectCurrentTime()
1133 expect(mTime.currentTimeMillis()).andReturn(currentTimeMillis()).anyTimes(); in expectCurrentTime()
1134 expect(mTime.getCacheAge()).andReturn(0L).anyTimes(); in expectCurrentTime()
1135 expect(mTime.getCacheCertainty()).andReturn(0L).anyTimes(); in expectCurrentTime()
1253 EasyMock.replay(mNetManager, mTime, mSettings, mConnManager); in replay()
[all …]
/frameworks/base/core/java/android/app/
DAppOpsManager.java1160 private final long mTime; field in AppOpsManager.OpEntry
1170 mTime = time; in OpEntry()
1186 return mTime; in getTime()
1198 return mDuration == -1 ? (int)(System.currentTimeMillis()-mTime) : mDuration; in getDuration()
1218 dest.writeLong(mTime); in writeToParcel()
1228 mTime = source.readLong(); in OpEntry()
/frameworks/opt/vcard/java/com/android/vcard/
DVCardParserImpl_V21.java49 private long mTime; field in VCardParserImpl_V21.CustomBufferedReader
73 mTime += end - start; in readLine()
85 mTime += end - start; in peekLine()
95 return mTime; in getTotalmillisecond()
/frameworks/opt/calendar/src/com/android/calendarcommon2/
DRecurrenceProcessor.java420 mTime = new Time(Time.TIMEZONE_UTC); in DaySet()
445 t = mTime; in get()
465 t = mTime; in get()
614 private Time mTime; field in RecurrenceProcessor.DaySet
/frameworks/base/core/java/com/android/internal/util/
DStateMachine.java451 private long mTime; field in StateMachine.LogRec
482 mTime = System.currentTimeMillis(); in update()
494 return mTime; in getTime()
537 c.setTimeInMillis(mTime); in toString()
/frameworks/av/media/libstagefright/
DMediaSync.cpp490 ts.mTime.tv_sec * 1000000LL + ts.mTime.tv_nsec / 1000; in getPlayedOutAudioDurationMedia_l()

12