Home
last modified time | relevance | path

Searched refs:durationMs (Results 1 – 25 of 31) sorted by relevance

12

/packages/apps/Dialer/java/com/android/dialer/animation/
DAnimUtils.java45 public static void fadeOut(final View fadeOut, int durationMs, final AnimationCallback callback) { in fadeOut() argument
71 if (durationMs != DEFAULT_DURATION) { in fadeOut()
72 animator.setDuration(durationMs); in fadeOut()
77 public static void fadeIn(View fadeIn, int durationMs) { in fadeIn() argument
78 fadeIn(fadeIn, durationMs, NO_DELAY, null); in fadeIn()
82 final View fadeIn, int durationMs, int delay, final AnimationCallback callback) { in fadeIn() argument
113 if (durationMs != DEFAULT_DURATION) { in fadeIn()
114 animator.setDuration(durationMs); in fadeIn()
126 public static void scaleIn(final View view, int durationMs, int startDelayMs) { in scaleIn() argument
144 durationMs, in scaleIn()
[all …]
/packages/apps/PhoneCommon/src/com/android/phone/common/animation/
DAnimUtils.java55 public static void fadeOut(final View fadeOut, int durationMs, in fadeOut() argument
78 if (durationMs != DEFAULT_DURATION) { in fadeOut()
79 animator.setDuration(durationMs); in fadeOut()
84 public static void fadeIn(View fadeIn, int durationMs) { in fadeIn() argument
85 fadeIn(fadeIn, durationMs, NO_DELAY, null); in fadeIn()
88 public static void fadeIn(final View fadeIn, int durationMs, int delay, in fadeIn() argument
116 if (durationMs != DEFAULT_DURATION) { in fadeIn()
117 animator.setDuration(durationMs); in fadeIn()
128 public static void scaleIn(final View view, int durationMs, int startDelayMs) { in scaleIn() argument
141 scaleInternal(view, 0 /* startScaleValue */, 1 /* endScaleValue */, durationMs, in scaleIn()
[all …]
/packages/apps/TV/tests/common/src/com/android/tv/testing/data/
DProgramInfo.java101 public final long durationMs; field in ProgramInfo
131 long durationMs, in ProgramInfo() argument
141 this.durationMs = durationMs; in ProgramInfo()
162 if (durationMs != GEN_DURATION) { in getIndex()
163 return Math.max((int) (timeMs / durationMs), 0); in getIndex()
181 if (durationMs != GEN_DURATION) { in getStartTimeMs()
182 return index * durationMs; in getStartTimeMs()
203 && durationMs != GEN_DURATION in build()
217 durationMs == GEN_DURATION ? DURATIONS_MS[index % DURATIONS_MS.length] : durationMs, in build()
230 + durationMs in toString()
[all …]
DProgramUtils.java99 values.put(Programs.COLUMN_END_TIME_UTC_MILLIS, timeMs + programAt.durationMs); in populatePrograms()
103 timeMs += programAt.durationMs; in populatePrograms()
137 Context context, String inputId, Clock clock, long durationMs) { in updateProgramForAllChannelsOf() argument
144 context, TvContract.buildChannelUri(channelId), programInfo, clock, durationMs); in updateProgramForAllChannelsOf()
/packages/apps/TV/tests/unit/src/com/android/tv/recommendation/
DChannelRecordTest.java85 long durationMs = addWatchLog(); in testGetTotalWatchDuration_oneHistory() local
87 assertThat(mChannelRecord.getTotalWatchDurationMs()).isEqualTo(durationMs); in testGetTotalWatchDuration_oneHistory()
94 long durationMs = addWatchLog(); in testGetTotalWatchDuration_maxHistories() local
95 totalWatchTimeMs += durationMs; in testGetTotalWatchDuration_maxHistories()
106 long durationMs = addWatchLog(); in testGetTotalWatchDuration_moreThanMaxHistories() local
107 totalWatchTimeMs += durationMs; in testGetTotalWatchDuration_moreThanMaxHistories()
109 firstDurationMs = durationMs; in testGetTotalWatchDuration_moreThanMaxHistories()
127 long durationMs = TimeUnit.SECONDS.toMillis(mRandom.nextInt(60) + 1); in addWatchLog() local
130 null, mLatestWatchEndTimeMs, mLatestWatchEndTimeMs + durationMs)); in addWatchLog()
131 mLatestWatchEndTimeMs += durationMs; in addWatchLog()
[all …]
DFavoriteChannelEvaluatorTest.java95 long durationMs = 0; in testMultiChannelsWithSimpleWatchLogs() local
98 durationMs += TimeUnit.MINUTES.toMillis(30); in testMultiChannelsWithSimpleWatchLogs()
99 addWatchLog(channelId, latestWatchEndTimeMs, durationMs); in testMultiChannelsWithSimpleWatchLogs()
100 latestWatchEndTimeMs += durationMs; in testMultiChannelsWithSimpleWatchLogs()
DRecentChannelEvaluatorTest.java128 long durationMs = TimeUnit.MINUTES.toMillis(10); in testScoreIncreasesWithNewWatchLog() local
129 addWatchLog(channelId, latestWatchEndTimeMs, durationMs); in testScoreIncreasesWithNewWatchLog()
130 latestWatchEndTimeMs += durationMs; in testScoreIncreasesWithNewWatchLog()
/packages/apps/Settings/tests/anomaly-tester/src/com/android/settings/anomaly/tester/utils/
DAnomalyActions.java43 public static void doAction(Context ctx, String actionCode, long durationMs) { in doAction() argument
50 doUnoptimizedBleScan(ctx, durationMs); in doAction()
53 doHoldWakelock(ctx, durationMs); in doAction()
59 private static void doUnoptimizedBleScan(Context ctx, long durationMs) { in doUnoptimizedBleScan() argument
94 Thread.sleep(durationMs); in doUnoptimizedBleScan()
96 Log.e(TAG, "Thread couldn't sleep for " + durationMs, e); in doUnoptimizedBleScan()
101 private static void doHoldWakelock(Context ctx, long durationMs) { in doHoldWakelock() argument
107 Thread.sleep(durationMs); in doHoldWakelock()
109 Log.e(TAG, "Thread couldn't sleep for " + durationMs, e); in doHoldWakelock()
/packages/apps/TV/src/com/android/tv/analytics/
DTracker.java54 void sendMainStop(long durationMs); in sendMainStop() argument
73 void sendChannelTuneTime(Channel channel, long durationMs); in sendChannelTuneTime() argument
81 void sendChannelViewStop(Channel channel, long durationMs); in sendChannelViewStop() argument
97 void sendHideMenu(long durationMs); in sendHideMenu() argument
128 void sendHideEpg(long durationMs); in sendHideEpg() argument
138 void sendHideChannelSwitch(long durationMs); in sendHideChannelSwitch() argument
192 void sendHideInputSelection(long durationMs); in sendHideInputSelection() argument
216 void sendHideSidePanel(HasTrackerLabel trackerLabel, long durationMs); in sendHideSidePanel() argument
DStubTracker.java36 public void sendMainStop(long durationMs) {} in sendMainStop() argument
45 public void sendChannelTuneTime(Channel channel, long durationMs) {} in sendChannelTuneTime() argument
48 public void sendChannelViewStop(Channel channel, long durationMs) {} in sendChannelViewStop() argument
60 public void sendHideMenu(long durationMs) {} in sendHideMenu() argument
75 public void sendHideEpg(long durationMs) {} in sendHideEpg() argument
81 public void sendHideChannelSwitch(long durationMs) {} in sendHideChannelSwitch() argument
111 public void sendHideInputSelection(long durationMs) {} in sendHideInputSelection() argument
120 public void sendHideSidePanel(HasTrackerLabel trackerLabel, long durationMs) {} in sendHideSidePanel() argument
/packages/apps/Settings/tests/anomaly-tester/src/com/android/settings/anomaly/tests/
DWakelockAnomalyTest.java70 final long durationMs = DateUtils.SECOND_IN_MILLIS * 15; in testWakelockAnomaly_longTimeWhileRunning_report() local
71 TestUtils.setEditTextWithValue(mDevice, RES_WAKELOCK_EDITTEXT, durationMs); in testWakelockAnomaly_longTimeWhileRunning_report()
79 TestUtils.wait(mDevice, durationMs - TIME_OUT); in testWakelockAnomaly_longTimeWhileRunning_report()
92 final long durationMs = DateUtils.SECOND_IN_MILLIS; in testWakelockAnomaly_shortTime_notReport() local
93 TestUtils.setEditTextWithValue(mDevice, RES_WAKELOCK_EDITTEXT, durationMs); in testWakelockAnomaly_shortTime_notReport()
100 TestUtils.wait(mDevice, durationMs); in testWakelockAnomaly_shortTime_notReport()
114 final long durationMs = DateUtils.SECOND_IN_MILLIS * 10; in testWakelockAnomaly_longTimeWhileNotRunning_notReport() local
115 TestUtils.setEditTextWithValue(mDevice, RES_WAKELOCK_EDITTEXT, durationMs); in testWakelockAnomaly_longTimeWhileNotRunning_notReport()
123 TestUtils.wait(mDevice, durationMs + TIME_OUT); in testWakelockAnomaly_longTimeWhileNotRunning_notReport()
DBluetoothAnomalyTest.java70 final long durationMs = DateUtils.SECOND_IN_MILLIS * 15; in testBluetoothAnomaly_longScanningTime_reportAnomaly() local
71 TestUtils.setEditTextWithValue(mDevice, RES_BT_EDITTEXT, durationMs); in testBluetoothAnomaly_longScanningTime_reportAnomaly()
78 TestUtils.wait(mDevice, durationMs); in testBluetoothAnomaly_longScanningTime_reportAnomaly()
91 final long durationMs = DateUtils.SECOND_IN_MILLIS; in testBluetoothAnomaly_shortScanningTime_notReport() local
92 TestUtils.setEditTextWithValue(mDevice, RES_BT_EDITTEXT, durationMs); in testBluetoothAnomaly_shortScanningTime_notReport()
99 TestUtils.wait(mDevice, durationMs); in testBluetoothAnomaly_shortScanningTime_notReport()
/packages/apps/Dialer/java/com/android/dialer/app/voicemail/
DVoicemailPlaybackLayout.java290 public void setClipPosition(int positionMs, int durationMs) { in setClipPosition() argument
292 int seekBarMax = Math.max(seekBarPositionMs, durationMs); in setClipPosition()
300 totalDurationText.setText(formatAsMinutesAndSeconds(durationMs)); in setClipPosition()
385 private int durationMs; field in VoicemailPlaybackLayout.PositionUpdater
402 setClipPosition(currentPositionMs, durationMs);
406 public PositionUpdater(int durationMs, ScheduledExecutorService executorService) { in PositionUpdater() argument
407 this.durationMs = durationMs; in PositionUpdater()
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DSaveVideoFileUtils.java104 int durationMs = retriveVideoDurationMs(mDstFileInfo.mFile.getPath()); in insertContent() local
105 values.put(Video.Media.DURATION, durationMs); in insertContent()
141 int durationMs = 0; in retriveVideoDurationMs() local
148 durationMs = Integer.parseInt(duration); in retriveVideoDurationMs()
151 return durationMs; in retriveVideoDurationMs()
/packages/apps/Gallery/src/com/android/camera/
DImageViewTouchBase.java321 final float centerY, final float durationMs) { in zoomTo() argument
322 final float incrementPerMs = (scale - getScale()) / durationMs; in zoomTo()
329 float currentMs = Math.min(durationMs, now - startTime); in zoomTo()
333 if (currentMs < durationMs) { in zoomTo()
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DCallListAdapter.java108 long durationMs = System.currentTimeMillis() - call.getDetails().getConnectTimeMillis(); in getView() local
109 duration.setText((durationMs / 1000) + " secs"); in getView()
114 + ", " + durationMs); in getView()
/packages/apps/TV/src/com/android/tv/dvr/ui/
DDvrSeriesDeletionFragment.java265 private String getWatchedString(long watchedPositionMs, long durationMs) {
266 if (durationMs > WATCHED_TIME_UNIT_THRESHOLD) {
271 Utils.getRoundOffMinsFromMs(durationMs));
277 TimeUnit.MILLISECONDS.toSeconds(durationMs));
/packages/apps/Settings/tests/anomaly-tester/src/com/android/settings/anomaly/tester/service/
DAnomalyService.java39 final long durationMs = intent.getLongExtra(AnomalyActions.KEY_DURATION_MS, 0); in onHandleIntent() local
43 AnomalyActions.doAction(this, action, durationMs); in onHandleIntent()
/packages/apps/TV/tests/common/src/com/android/tv/testing/testdata/
DTestData.java45 public void init(Context context, Clock clock, long durationMs) { in init() argument
48 ProgramUtils.updateProgramForAllChannelsOf(context, getInputId(), clock, durationMs); in init()
/packages/modules/NetworkStack/src/android/net/ip/
DIpReachabilityMonitor.java148 void acquireWakeLock(long durationMs); in acquireWakeLock() argument
156 public void acquireWakeLock(long durationMs) { in makeDefault()
157 lock.acquire(durationMs); in makeDefault()
/packages/services/Telecomm/src/com/android/server/telecom/
DDtmfLocalTonePlayer.java67 public void startTone(int toneType, int durationMs) { in startTone() argument
69 mToneGenerator.startTone(toneType, durationMs); in startTone()
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpClient.java555 long durationMs = SystemClock.elapsedRealtime() - mEnterTimeMs; in exit() local
556 logState(getName(), (int) durationMs); in exit()
1063 private void logState(String name, int durationMs) { in logState() argument
1066 .setDurationMs(durationMs) in logState()
/packages/apps/TV/tests/common/src/com/android/tv/testing/
DTestSingletonApp.java106 public void loadTestData(TestData testData, long durationMs) { in loadTestData() argument
110 testData.init(this, fakeClock, durationMs); in loadTestData()
/packages/apps/Dialer/java/com/android/dialer/postcall/
DPostCall.java98 int durationMs = in promptUserToSendMessage() local
104 Snackbar.make(rootView, message, durationMs) in promptUserToSendMessage()
/packages/apps/TV/src/com/android/tv/recommendation/
DRoutineWatchEvaluator.java199 private static double calculateWatchDurationScore(Program program, long durationMs) { in calculateWatchDurationScore() argument
200 return (double) durationMs in calculateWatchDurationScore()

12