/packages/apps/Dialer/java/com/android/dialer/animation/ |
D | AnimUtils.java | 45 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/ |
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/data/ |
D | ProgramInfo.java | 101 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 …]
|
D | ProgramUtils.java | 99 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/ |
D | ChannelRecordTest.java | 85 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 …]
|
D | FavoriteChannelEvaluatorTest.java | 95 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()
|
D | RecentChannelEvaluatorTest.java | 128 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/ |
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 | 54 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
|
D | StubTracker.java | 36 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/ |
D | WakelockAnomalyTest.java | 70 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()
|
D | BluetoothAnomalyTest.java | 70 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/ |
D | VoicemailPlaybackLayout.java | 290 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/ |
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/TV/src/com/android/tv/dvr/ui/ |
D | DvrSeriesDeletionFragment.java | 265 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/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/carmodedialer/src/com/android/server/telecom/carmodedialer/ |
D | CallListAdapter.java | 103 long durationMs = System.currentTimeMillis() - call.getDetails().getConnectTimeMillis(); in getView() local 104 duration.setText((durationMs / 1000) + " secs"); in getView() 109 + ", " + durationMs); in getView()
|
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/ |
D | CallListAdapter.java | 108 long durationMs = System.currentTimeMillis() - call.getDetails().getConnectTimeMillis(); in getView() local 109 duration.setText((durationMs / 1000) + " secs"); in getView() 114 + ", " + 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/TV/tests/common/src/com/android/tv/testing/testdata/ |
D | TestData.java | 45 public void init(Context context, Clock clock, long durationMs) { in init() argument 48 ProgramUtils.updateProgramForAllChannelsOf(context, getInputId(), clock, durationMs); in init()
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer2/ |
D | FileSampleExtractor.java | 74 long durationMs); in create() argument 81 long durationMs, in FileSampleExtractor() argument 86 mRecordingDurationMs = durationMs; in FileSampleExtractor()
|
D | MpegTsSampleExtractor.java | 82 long durationMs); in create() argument 121 long durationMs, in MpegTsSampleExtractor() argument 124 fileSampleExtractorFactory.create(bufferManager, bufferListener, durationMs); in MpegTsSampleExtractor()
|
/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/modules/NetworkStack/src/android/net/ip/ |
D | IpReachabilityMonitor.java | 162 void acquireWakeLock(long durationMs); in acquireWakeLock() argument 171 public void acquireWakeLock(long durationMs) { in makeDefault() 172 lock.acquire(durationMs); in makeDefault()
|
/packages/apps/Launcher3/src/com/android/launcher3/anim/ |
D | SpringAnimationBuilder.java | 192 long durationMs = (long) (1000.0 * duration); in build() local 194 animator.setDuration(durationMs).setInterpolator(Interpolators.LINEAR); in build()
|