Home
last modified time | relevance | path

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

12

/frameworks/base/services/usage/java/com/android/server/usage/
DUnixCalendar.java30 private long mTime; field in UnixCalendar
33 mTime = time; in UnixCalendar()
37 mTime -= mTime % DAY_IN_MILLIS; in truncateToDay()
41 mTime -= mTime % WEEK_IN_MILLIS; in truncateToWeek()
45 mTime -= mTime % MONTH_IN_MILLIS; in truncateToMonth()
49 mTime -= mTime % YEAR_IN_MILLIS; in truncateToYear()
53 mTime += val * DAY_IN_MILLIS; in addDays()
57 mTime += val * WEEK_IN_MILLIS; in addWeeks()
61 mTime += val * MONTH_IN_MILLIS; in addMonths()
65 mTime += val * YEAR_IN_MILLIS; in addYears()
[all …]
/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/services/core/java/com/android/server/notification/
DCountdownConditionProvider.java56 private long mTime; field in CountdownConditionProvider
65 pw.print(" mTime="); pw.println(mTime); in dump()
93 mTime = ZenModeConfig.tryParseCountdownConditionId(conditionId); in onSubscribe()
101 if (mTime > 0) { in onSubscribe()
104 DateUtils.getRelativeTimeSpanString(mTime, now, DateUtils.MINUTE_IN_MILLIS); in onSubscribe()
105 if (mTime <= now) { in onSubscribe()
107 notifyCondition(newCondition(mTime, Condition.STATE_FALSE)); in onSubscribe()
110 alarms.setExact(AlarmManager.RTC_WAKEUP, mTime, pendingIntent); in onSubscribe()
114 (mTime <= now ? "Not scheduling" : "Scheduling"), in onSubscribe()
115 ACTION, ts(mTime), mTime - now, span, ts(now))); in onSubscribe()
/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/av/include/media/
DAudioTimestamp.h27 mTime.tv_sec = 0; in AudioTimestamp()
28 mTime.tv_nsec = 0; in AudioTimestamp()
32 struct timespec mTime; // corresponding CLOCK_MONOTONIC when frame is expected to present variable
/frameworks/base/location/java/android/location/
DLocation.java82 private long mTime = 0; field in Location
132 mTime = l.mTime; in set()
153 mTime = 0; in reset()
504 return mTime; in getTime()
514 mTime = time; in setTime()
779 if (mTime == 0) return false; in isComplete()
800 if (mTime == 0) mTime = System.currentTimeMillis(); in makeComplete()
838 if (mTime == 0) { in toString()
869 l.mTime = in.readLong();
900 parcel.writeLong(mTime); in writeToParcel()
/frameworks/base/services/core/java/com/android/server/
DNetworkTimeUpdateService.java70 private TrustedTime mTime; field in NetworkTimeUpdateService
95 mTime = NtpTrustedTime.getInstance(context); in NetworkTimeUpdateService()
168 if (mTime.getCacheAge() >= mPollingIntervalMs) { in onPollNetworkTime()
169 mTime.forceRefresh(); in onPollNetworkTime()
173 if (mTime.getCacheAge() < mPollingIntervalMs) { in onPollNetworkTime()
174 final long ntp = mTime.currentTimeMillis(); in onPollNetworkTime()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recent/
DFirstFrameAnimatorHelper.java68 private long mTime = System.currentTimeMillis(); in initializeDrawListener()
73 Log.d("FirstFrameAnimatorHelper", "TICK " + (newTime - mTime)); in initializeDrawListener()
74 mTime = newTime; in initializeDrawListener()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarHeaderView.java66 private TextView mTime; field in StatusBarHeaderView
137 mTime = (TextView) findViewById(R.id.time_view); in onFinishInflate()
169 mTime.setPivotX(rtl ? mTime.getWidth() : 0); in onFinishInflate()
170 mTime.setPivotY(mTime.getBaseline()); in onFinishInflate()
382 mTime.setTextSize(TypedValue.COMPLEX_UNIT_PX, mExpanded in updateClockScale()
385 mTime.setScaleX(1f); in updateClockScale()
386 mTime.setScaleY(1f); in updateClockScale()
392 mAmPm.setTranslationX((rtl ? 1 : -1) * mTime.getWidth() * (1 - mTime.getScaleX())); in updateAmPmTranslation()
592 mTime.setScaleX(values.timeScale); in applyLayoutValues()
593 mTime.setScaleY(values.timeScale); in applyLayoutValues()
[all …]
/frameworks/base/core/java/android/widget/
DTextClock.java129 private Calendar mTime; field in TextClock
247 mTime = Calendar.getInstance(TimeZone.getTimeZone(timeZone)); in createTime()
249 mTime = Calendar.getInstance(); in createTime()
546 mTime.setTimeInMillis(System.currentTimeMillis()); in onTimeChanged()
547 setText(DateFormat.format(mFormat, mTime)); in onTimeChanged()
DDateTimeView.java60 Date mTime; field in DateTimeView
103 mTime = new Date(t.year-1900, t.month, t.monthDay, t.hour, t.minute, 0); in setTime()
108 if (mTime == null) { in update()
115 Date time = mTime; in update()
168 String text = format.format(mTime); in update()
/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/
DAudioPolicyService.cpp393 if (mAudioCommands[0]->mTime <= curTime) { in threadLoop()
525 waitTime = mAudioCommands[0]->mTime - curTime; in threadLoop()
772 command->mTime = systemTime() + milliseconds(delayMs); in insertCommand_l()
783 if (command2->mTime <= command->mTime) break; in insertCommand_l()
826 command->mTime = command2->mTime; in insertCommand_l()
840 command->mTime = command2->mTime; in insertCommand_l()
884 command->mTime = command2->mTime; in insertCommand_l()
938 (int)ns2s(mTime), in dump()
939 (int)ns2ms(mTime)%1000, in dump()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsService.java151 private final TrustedTime mTime; field in NetworkStatsService
256 mTime = checkNotNull(time, "missing TrustedTime"); in NetworkStatsService()
351 final long currentTime = mTime.hasCache() ? mTime.currentTimeMillis() in shutdownLocked()
641 final long currentTime = mTime.hasCache() ? mTime.currentTimeMillis() in advisePersistThreshold()
863 final long currentTime = mTime.hasCache() ? mTime.currentTimeMillis() in bootstrapStatsLocked()
887 if (mTime.getCacheAge() > mSettings.getTimeCacheMaxAge()) { in performPoll()
888 mTime.forceRefresh(); in performPoll()
917 final long currentTime = mTime.hasCache() ? mTime.currentTimeMillis() in performPollLocked()
979 final long trustedTime = mTime.hasCache() ? mTime.currentTimeMillis() : -1; in performSampleLocked()
/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 …]
DNetworkStatsServiceTest.java113 private TrustedTime mTime; field in NetworkStatsServiceTest
133 mTime = createMock(TrustedTime.class); in setUp()
138 mServiceContext, mNetManager, mAlarmManager, mTime, mStatsDir, mSettings); in setUp()
173 mTime = null; in tearDown()
950 expect(mTime.forceRefresh()).andReturn(false).anyTimes(); in expectCurrentTime()
951 expect(mTime.hasCache()).andReturn(true).anyTimes(); in expectCurrentTime()
952 expect(mTime.currentTimeMillis()).andReturn(currentTimeMillis()).anyTimes(); in expectCurrentTime()
953 expect(mTime.getCacheAge()).andReturn(0L).anyTimes(); in expectCurrentTime()
954 expect(mTime.getCacheCertainty()).andReturn(0L).anyTimes(); in expectCurrentTime()
1050 EasyMock.replay(mNetManager, mAlarmManager, mTime, mSettings, mConnManager); in replay()
[all …]
/frameworks/av/media/libmedia/
DIAudioTrack.cpp186 timestamp.mTime.tv_sec = reply.readInt32(); in getTimestamp()
187 timestamp.mTime.tv_nsec = reply.readInt32(); in getTimestamp()
280 reply->writeInt32(timestamp.mTime.tv_sec); in onTransact()
281 reply->writeInt32(timestamp.mTime.tv_nsec); in onTransact()
/frameworks/base/core/java/android/app/
DAppOpsManager.java860 private final long mTime; field in AppOpsManager.OpEntry
867 mTime = time; in OpEntry()
881 return mTime; in getTime()
893 return mDuration == -1 ? (int)(System.currentTimeMillis()-mTime) : mDuration; in getDuration()
905 dest.writeLong(mTime); in writeToParcel()
913 mTime = source.readLong(); in OpEntry()
/frameworks/base/docs/html/training/wearables/watch-faces/
Ddrawing.jd98 Time mTime;
133 mTime.clear(intent.getStringExtra("time-zone"));
134 mTime.setToNow();
184 mTime = new Time();
245 mTime.clear(TimeZone.getDefault().getID());
246 mTime.setToNow();
447 mTime.setToNow();
468 float secRot = mTime.second / 30f * (float) Math.PI;
469 int minutes = mTime.minute;
471 float hrRot = ((mTime.hour + (minutes / 60f)) / 6f ) * (float) Math.PI;
/frameworks/av/media/libnbaio/
DAudioStreamOutSink.cpp88 int ok = mStream->get_presentation_position(mStream, &position64, &timestamp.mTime); in getTimestamp()
/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.java450 private long mTime; field in StateMachine.LogRec
481 mTime = System.currentTimeMillis(); in update()
493 return mTime; in getTime()
536 c.setTimeInMillis(mTime); in toString()
/frameworks/av/services/audioflinger/
DTracks.cpp918 struct timespec time = playbackThread->mLatchQ.mTimestamp.mTime; in getTimestamp()
920 if (time.tv_sec < mPreviousTimestamp.mTime.tv_sec || in getTimestamp()
921 (time.tv_sec == mPreviousTimestamp.mTime.tv_sec && in getTimestamp()
922 time.tv_nsec < mPreviousTimestamp.mTime.tv_nsec)) { in getTimestamp()
930 time = mPreviousTimestamp.mTime; in getTimestamp()
934 timestamp.mTime = time; in getTimestamp()
DFastMixer.cpp348 perTrackTimestamp.mTime = timestamp.mTime; in onWork()

12