/frameworks/base/services/usage/java/com/android/server/usage/ |
D | UnixCalendar.java | 30 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/ |
D | DataConnectionRealTimeInfo.java | 29 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/ |
D | CountdownConditionProvider.java | 56 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/ |
D | WaveTriggerFilter.java | 33 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/ |
D | AudioTimestamp.h | 27 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/ |
D | Location.java | 82 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/ |
D | NetworkTimeUpdateService.java | 70 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/ |
D | FirstFrameAnimatorHelper.java | 68 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/ |
D | StatusBarHeaderView.java | 66 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/ |
D | TextClock.java | 129 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()
|
D | DateTimeView.java | 60 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/ |
D | DozeTestDream.java | 64 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/ |
D | AudioPolicyService.cpp | 393 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/ |
D | NetworkStatsService.java | 151 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/ |
D | NetworkPolicyManagerServiceTest.java | 119 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 …]
|
D | NetworkStatsServiceTest.java | 113 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/ |
D | IAudioTrack.cpp | 186 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/ |
D | AppOpsManager.java | 860 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/ |
D | drawing.jd | 98 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/ |
D | AudioStreamOutSink.cpp | 88 int ok = mStream->get_presentation_position(mStream, &position64, ×tamp.mTime); in getTimestamp()
|
/frameworks/opt/vcard/java/com/android/vcard/ |
D | VCardParserImpl_V21.java | 49 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/ |
D | RecurrenceProcessor.java | 420 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/ |
D | StateMachine.java | 450 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/ |
D | Tracks.cpp | 918 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()
|
D | FastMixer.cpp | 348 perTrackTimestamp.mTime = timestamp.mTime; in onWork()
|