/packages/apps/Dialer/java/com/android/dialer/animation/ |
D | AnimUtils.java | 46 public static void fadeOut(final View fadeOut, int durationMs, final AnimationCallback callback) { in fadeOut() argument 72 if (durationMs != DEFAULT_DURATION) { in fadeOut() 73 animator.setDuration(durationMs); in fadeOut() 78 public static void fadeIn(View fadeIn, int durationMs) { in fadeIn() argument 79 fadeIn(fadeIn, durationMs, NO_DELAY, null); in fadeIn() 83 final View fadeIn, int durationMs, int delay, final AnimationCallback callback) { in fadeIn() argument 114 if (durationMs != DEFAULT_DURATION) { in fadeIn() 115 animator.setDuration(durationMs); in fadeIn() 127 public static void scaleIn(final View view, int durationMs, int startDelayMs) { in scaleIn() argument 145 durationMs, in scaleIn() [all …]
|
/packages/apps/PhoneCommon/src/com/android/phone/common/animation/ |
D | AnimUtils.java | 55 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/ |
D | ProgramInfo.java | 98 public final long durationMs; field in ProgramInfo 122 String posterArtUri, String description, long durationMs, in ProgramInfo() argument 130 this.durationMs = durationMs; in ProgramInfo() 150 if (durationMs != GEN_DURATION) { in getIndex() 151 return Math.max((int) (timeMs / durationMs), 0); in getIndex() 168 if (durationMs != GEN_DURATION) { in getStartTimeMs() 169 return index * durationMs; in getStartTimeMs() 189 && durationMs != GEN_DURATION in build() 203 durationMs == GEN_DURATION ? DURATIONS_MS[index % DURATIONS_MS.length] : durationMs, in build() 213 + ", durationMs=" + durationMs + "}"; in toString() [all …]
|
D | ProgramUtils.java | 78 values.put(Programs.COLUMN_END_TIME_UTC_MILLIS, timeMs + programAt.durationMs); in populatePrograms() 82 timeMs += programAt.durationMs; in populatePrograms()
|
/packages/apps/TV/tests/unit/src/com/android/tv/recommendation/ |
D | ChannelRecordTest.java | 87 long durationMs = addWatchLog(); in testGetTotalWatchDuration_oneHistory() local 89 assertEquals(durationMs, mChannelRecord.getTotalWatchDurationMs()); in testGetTotalWatchDuration_oneHistory() 96 long durationMs = addWatchLog(); in testGetTotalWatchDuration_maxHistories() local 97 totalWatchTimeMs += durationMs; in testGetTotalWatchDuration_maxHistories() 108 long durationMs = addWatchLog(); in testGetTotalWatchDuration_moreThanMaxHistories() local 109 totalWatchTimeMs += durationMs; in testGetTotalWatchDuration_moreThanMaxHistories() 111 firstDurationMs = durationMs; in testGetTotalWatchDuration_moreThanMaxHistories() 128 long durationMs = TimeUnit.SECONDS.toMillis(mRandom.nextInt(60) + 1); in addWatchLog() local 130 mLatestWatchEndTimeMs, mLatestWatchEndTimeMs + durationMs)); in addWatchLog() 131 mLatestWatchEndTimeMs += durationMs; in addWatchLog() [all …]
|
D | FavoriteChannelEvaluatorTest.java | 92 long durationMs = 0; in testMultiChannelsWithSimpleWatchLogs() local 95 durationMs += TimeUnit.MINUTES.toMillis(30); in testMultiChannelsWithSimpleWatchLogs() 96 addWatchLog(channelId, latestWatchEndTimeMs, durationMs); in testMultiChannelsWithSimpleWatchLogs() 97 latestWatchEndTimeMs += durationMs; in testMultiChannelsWithSimpleWatchLogs()
|
D | RecentChannelEvaluatorTest.java | 123 long durationMs = TimeUnit.MINUTES.toMillis(10); in testScoreIncreasesWithNewWatchLog() local 124 addWatchLog(channelId, latestWatchEndTimeMs, durationMs); in testScoreIncreasesWithNewWatchLog() 125 latestWatchEndTimeMs += durationMs; in testScoreIncreasesWithNewWatchLog()
|
/packages/apps/Settings/tests/anomaly-tester/src/com/android/settings/anomaly/tester/utils/ |
D | AnomalyActions.java | 43 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/ |
D | Tracker.java | 58 void sendMainStop( long durationMs); in sendMainStop() argument 79 void sendChannelTuneTime(Channel channel, long durationMs); in sendChannelTuneTime() argument 87 void sendChannelViewStop(Channel channel, long durationMs); in sendChannelViewStop() argument 109 void sendHideMenu(long durationMs); in sendHideMenu() argument 144 void sendHideEpg(long durationMs); in sendHideEpg() argument 156 void sendHideChannelSwitch(long durationMs); in sendHideChannelSwitch() argument 218 void sendHideInputSelection(long durationMs); in sendHideInputSelection() argument 242 void sendHideSidePanel(HasTrackerLabel trackerLabel, long durationMs); in sendHideSidePanel() argument
|
D | StubTracker.java | 39 public void sendMainStop(long durationMs) { } in sendMainStop() argument 48 public void sendChannelTuneTime(Channel channel, long durationMs) { } in sendChannelTuneTime() argument 51 public void sendChannelViewStop(Channel channel, long durationMs) { } in sendChannelViewStop() argument 63 public void sendHideMenu(long durationMs) { } in sendHideMenu() argument 78 public void sendHideEpg(long durationMs) { } in sendHideEpg() argument 84 public void sendHideChannelSwitch(long durationMs) { } in sendHideChannelSwitch() argument 114 public void sendHideInputSelection(long durationMs) { } in sendHideInputSelection() argument 123 public void sendHideSidePanel(HasTrackerLabel trackerLabel, long durationMs) { } in sendHideSidePanel() argument
|
/packages/apps/Settings/tests/anomaly-tester/src/com/android/settings/anomaly/tests/ |
D | WakelockAnomalyTest.java | 69 final long durationMs = DateUtils.SECOND_IN_MILLIS * 15; in testWakelockAnomaly_longTimeWhileRunning_report() local 70 TestUtils.setEditTextWithValue(mDevice, RES_WAKELOCK_EDITTEXT, durationMs); in testWakelockAnomaly_longTimeWhileRunning_report() 78 TestUtils.wait(mDevice, durationMs - TIME_OUT); in testWakelockAnomaly_longTimeWhileRunning_report() 91 final long durationMs = DateUtils.SECOND_IN_MILLIS; in testWakelockAnomaly_shortTime_notReport() local 92 TestUtils.setEditTextWithValue(mDevice, RES_WAKELOCK_EDITTEXT, durationMs); in testWakelockAnomaly_shortTime_notReport() 99 TestUtils.wait(mDevice, durationMs); in testWakelockAnomaly_shortTime_notReport() 113 final long durationMs = DateUtils.SECOND_IN_MILLIS * 10; in testWakelockAnomaly_longTimeWhileNotRunning_notReport() local 114 TestUtils.setEditTextWithValue(mDevice, RES_WAKELOCK_EDITTEXT, durationMs); in testWakelockAnomaly_longTimeWhileNotRunning_notReport() 122 TestUtils.wait(mDevice, durationMs + TIME_OUT); in testWakelockAnomaly_longTimeWhileNotRunning_notReport()
|
D | BluetoothAnomalyTest.java | 69 final long durationMs = DateUtils.SECOND_IN_MILLIS * 15; in testBluetoothAnomaly_longScanningTime_reportAnomaly() local 70 TestUtils.setEditTextWithValue(mDevice, RES_BT_EDITTEXT, durationMs); in testBluetoothAnomaly_longScanningTime_reportAnomaly() 77 TestUtils.wait(mDevice, durationMs); in testBluetoothAnomaly_longScanningTime_reportAnomaly() 90 final long durationMs = DateUtils.SECOND_IN_MILLIS; in testBluetoothAnomaly_shortScanningTime_notReport() local 91 TestUtils.setEditTextWithValue(mDevice, RES_BT_EDITTEXT, durationMs); in testBluetoothAnomaly_shortScanningTime_notReport() 98 TestUtils.wait(mDevice, durationMs); in testBluetoothAnomaly_shortScanningTime_notReport()
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
D | SaveVideoFileUtils.java | 104 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/Dialer/java/com/android/dialer/app/voicemail/ |
D | VoicemailPlaybackLayout.java | 292 public void setClipPosition(int positionMs, int durationMs) { in setClipPosition() argument 294 int seekBarMax = Math.max(seekBarPositionMs, durationMs); in setClipPosition() 302 mTotalDurationText.setText(formatAsMinutesAndSeconds(durationMs)); in setClipPosition() 408 public PositionUpdater(int durationMs, ScheduledExecutorService executorService) { in PositionUpdater() argument 409 mDurationMs = durationMs; in PositionUpdater()
|
/packages/apps/TV/tests/unit/src/com/android/tv/data/ |
D | ProgramDataManagerTest.java | 116 assertTrue(mClock.currentTimeMillis() < startTimeMs + programAt.durationMs); in testProgramUtils() 250 assertEquals("endTime", expectedStartTime + expectedInfo.durationMs, 309 programStartTimeMs += programAt.durationMs; 358 last.startTimeMs + last.programInfo.durationMs, nextProgramInfo); 459 return mCurrentProgram.startTimeMs + mCurrentProgram.programInfo.durationMs; 502 } else if (program.startTimeMs + program.programInfo.durationMs >= mStartTimeMs) {
|
/packages/apps/TV/src/com/android/tv/dvr/ui/ |
D | DvrSeriesDeletionFragment.java | 219 private String getWatchedString(long watchedPositionMs, long durationMs) { 220 if (durationMs > WATCHED_TIME_UNIT_THRESHOLD) { 223 Utils.getRoundOffMinsFromMs(durationMs)); 227 TimeUnit.MILLISECONDS.toSeconds(durationMs));
|
/packages/apps/Gallery/src/com/android/camera/ |
D | ImageViewTouchBase.java | 321 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/ |
D | CallListAdapter.java | 101 long durationMs = System.currentTimeMillis() - call.getDetails().getConnectTimeMillis(); in getView() local 102 duration.setText((durationMs / 1000) + " secs"); in getView() 107 + ", " + durationMs); in getView()
|
/packages/apps/Settings/tests/anomaly-tester/src/com/android/settings/anomaly/tester/service/ |
D | AnomalyService.java | 39 final long durationMs = intent.getLongExtra(AnomalyActions.KEY_DURATION_MS, 0); in onHandleIntent() local 43 AnomalyActions.doAction(this, action, durationMs); in onHandleIntent()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/ |
D | TimedMessageWizardFragment.java | 43 public static TimedMessageWizardFragment newInstance(String title, int durationMs) { in newInstance() argument 46 args.putInt(KEY_TIME_OUT_DURATION, durationMs); in newInstance()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | DtmfLocalTonePlayer.java | 67 public void startTone(int toneType, int durationMs) { in startTone() argument 69 mToneGenerator.startTone(toneType, durationMs); in startTone()
|
/packages/apps/Dialer/java/com/android/dialer/postcall/ |
D | PostCall.java | 96 int durationMs = in promptUserToSendMessage() local 99 Snackbar.make(rootView, message, durationMs) in promptUserToSendMessage()
|
/packages/apps/TV/src/com/android/tv/recommendation/ |
D | RoutineWatchEvaluator.java | 191 private static double calculateWatchDurationScore(Program program, long durationMs) { in calculateWatchDurationScore() argument 192 return (double) durationMs in calculateWatchDurationScore()
|
/packages/apps/TV/src/com/android/tv/ |
D | TimeShiftManager.java | 558 long durationMs = in getPlaybackSpeed() local 563 return TimeShiftUtils.getMaxPlaybackSpeed(durationMs); in getPlaybackSpeed() 566 mPlayController.mDisplayedPlaySpeed - PLAY_SPEED_2X, durationMs); in getPlaybackSpeed()
|
/packages/apps/TV/src/com/android/tv/ui/ |
D | ChannelBannerView.java | 646 long durationMs = program.getDurationMillis(); 650 if (mLockType != LOCK_CHANNEL_INFO && durationMs > 0 && startTimeMs > 0) {
|