Home
last modified time | relevance | path

Searched refs:timeMs (Results 1 – 25 of 64) sorted by relevance

123

/packages/modules/Uwb/service/java/com/android/server/uwb/correction/filtering/
DPositionFilterImpl.java62 public void add(@NonNull SphericalVector.Annotated value, long timeMs) { in add() argument
65 mAzimuthFilter.add(value.azimuth, timeMs, value.azimuthFom); in add()
68 mElevationFilter.add(value.elevation, timeMs, value.elevationFom); in add()
71 mDistanceFilter.add(value.distance, timeMs, value.distanceFom); in add()
81 public SphericalVector.Annotated compute(long timeMs) { in compute() argument
86 Sample azimuth = mAzimuthFilter.getResult(timeMs); in compute()
87 Sample elevation = mElevationFilter.getResult(timeMs); in compute()
88 Sample distance = mDistanceFilter.getResult(timeMs); in compute()
108 public void updatePose(@Nullable IPoseSource poseSource, long timeMs) { in updatePose() argument
115 updatePoseFromDelta(deltaPose, compute(timeMs)); in updatePose()
DSample.java28 public long timeMs; field in Sample
42 Sample(float value, long timeMs, double fom) { in Sample() argument
44 this.timeMs = timeMs; in Sample()
DMedAvgFilter.java115 public void add(float value, long timeMs, double fom) { in add() argument
116 mWindow.addLast(new Sample(value, timeMs, fom)); in add()
129 mResult = new Sample(selector.run(mResult.value), mResult.timeMs, mResult.fom); in remap()
203 long instantEpoch = samples.stream().findFirst().get().timeMs; in averageSamples()
216 instantSum += (long) ((s.timeMs - instantEpoch) * s.fom); in averageSamples()
DIPositionFilter.java36 void add(@NonNull Annotated value, long timeMs); in add() argument
42 Annotated compute(long timeMs); in compute() argument
48 void updatePose(@Nullable IPoseSource poseSource, long timeMs); in updatePose() argument
DIFilter.java32 void add(float value, long timeMs, double fom); in add() argument
62 default Sample getResult(long timeMs) { in getResult() argument
/packages/apps/TV/tests/common/src/com/android/tv/testing/data/
DProgramUtils.java79 long timeMs = getLastProgramEndTimeMs(context, channelUri, currentTimeMs, targetEndTimeMs); in populatePrograms() local
80 if (timeMs <= 0) { in populatePrograms()
81 timeMs = currentTimeMs; in populatePrograms()
83 int index = program.getIndex(timeMs, channelId); in populatePrograms()
84 timeMs = program.getStartTimeMs(index, channelId); in populatePrograms()
87 while (timeMs < targetEndTimeMs) { in populatePrograms()
98 values.put(Programs.COLUMN_START_TIME_UTC_MILLIS, timeMs); in populatePrograms()
99 values.put(Programs.COLUMN_END_TIME_UTC_MILLIS, timeMs + programAt.durationMs); in populatePrograms()
103 timeMs += programAt.durationMs; in populatePrograms()
105 if (list.size() >= MAX_DB_INSERT_COUNT_AT_ONCE || timeMs >= targetEndTimeMs) { in populatePrograms()
DProgramInfo.java161 public int getIndex(long timeMs, long channelId) { in getIndex() argument
163 return Math.max((int) (timeMs / durationMs), 0); in getIndex()
166 int index = (int) ((timeMs - startTimeMs) / durationsSumMs) * DURATIONS_MS.length; in getIndex()
168 while (startTimeMs + DURATIONS_MS[index % DURATIONS_MS.length] < timeMs) { in getIndex()
/packages/modules/Uwb/service/java/com/android/server/uwb/correction/
DUwbFilterEngine.java78 public void add(@NonNull SphericalVector.Annotated position, long timeMs) { in add() argument
82 SphericalVector prediction = compute(timeMs); in add()
91 position = primer.prime(position, prediction, mPoseSource, timeMs); in add()
111 mFilter.updatePose(mPoseSource, timeMs); in add()
112 mFilter.add(mLastInputState, timeMs); in add()
115 .append(mFilter.compute(timeMs)); in add()
129 public SphericalVector.Annotated compute(long timeMs) { in compute() argument
131 mFilter.updatePose(mPoseSource, timeMs); in compute()
132 return mFilter.compute(timeMs); in compute()
/packages/services/Car/car-builtin-lib/src/android/car/builtin/util/
DTimingsTraceLog.java42 public void logDuration(String name, long timeMs) { in logDuration() argument
43 if (timeMs >= mMinDurationMs) { in logDuration()
44 super.logDuration(name, timeMs); in logDuration()
70 public void logDuration(@NonNull String name, long timeMs) { in logDuration() argument
71 mTimingsTraceLog.logDuration(name, timeMs); in logDuration()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/correction/filtering/
DNullPositionFilter.java44 public void add(@NonNull SphericalVector.Annotated value, long timeMs) { in add() argument
57 public SphericalVector.Annotated compute(long timeMs) { in compute() argument
67 public void updatePose(@Nullable IPoseSource poseSource, long timeMs) { in updatePose() argument
79 Vector3 vecFromOldCam = compute(timeMs).toCartesian(); in updatePose()
DNullFilter.java38 public void add(float value, long timeMs, double fom) { in add() argument
39 mWhen = timeMs; in add()
/packages/apps/TV/src/com/android/tv/dvr/ui/playback/
DDvrPlayer.java428 public void onTimeShiftStartPositionChanged(String inputId, long timeMs) { in setTvViewCallbacks()
429 if (DEBUG) Log.d(TAG, "onTimeShiftStartPositionChanged:" + timeMs); in setTvViewCallbacks()
430 mStartPositionMs = timeMs; in setTvViewCallbacks()
437 public void onTimeShiftCurrentPositionChanged(String inputId, long timeMs) { in setTvViewCallbacks()
438 if (DEBUG) Log.d(TAG, "onTimeShiftCurrentPositionChanged: " + timeMs); in setTvViewCallbacks()
453 timeMs -= mStartPositionMs; in setTvViewCallbacks()
459 && timeMs <= REWIND_POSITION_MARGIN_MS) in setTvViewCallbacks()
461 && timeMs > bufferedTimeMs)) { in setTvViewCallbacks()
465 mTimeShiftCurrentPositionMs = getRealSeekPosition(timeMs, 0); in setTvViewCallbacks()
467 if (timeMs >= mProgram.getDurationMillis()) { in setTvViewCallbacks()
/packages/apps/TV/src/com/android/tv/
DTimeShiftManager.java488 public Program getProgramAt(long timeMs) { in getProgramAt() argument
489 Program program = mProgramManager.getProgramAt(timeMs); in getProgramAt()
492 mProgramManager.addPlaceholderProgramsAt(timeMs); in getProgramAt()
493 program = mProgramManager.getProgramAt(timeMs); in getProgramAt()
806 void seekTo(long timeMs) { in seekTo() argument
812 Math.max(mRecordStartTimeMs, timeMs))); in seekTo()
986 void addPlaceholderProgramsAt(long timeMs) { in addPlaceholderProgramsAt() argument
987 addPlaceholderPrograms(timeMs, timeMs + PREFETCH_DURATION_FOR_NEXT); in addPlaceholderProgramsAt()
1124 Program getProgramAt(long timeMs) { in getProgramAt() argument
1125 return getProgramAt(timeMs, 0, mPrograms.size() - 1); in getProgramAt()
[all …]
DInputSessionManager.java181 long timeMs = Long.MAX_VALUE; in getEarliestRecordingSessionEndTimeMs() local
185 if (session.mEndTimeMs < timeMs) { in getEarliestRecordingSessionEndTimeMs()
186 timeMs = session.mEndTimeMs; in getEarliestRecordingSessionEndTimeMs()
191 return timeMs == Long.MAX_VALUE ? null : timeMs; in getEarliestRecordingSessionEndTimeMs()
/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/
DSharedUnitTestCase.java39 int timeMs, @FormatString String reasonFmt, @Nullable Object... reasonArgs) { in sleep() argument
43 getTestName(), timeMs, Thread.currentThread().getName(), reason); in sleep()
44 SystemClock.sleep(timeMs); in sleep()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DIpConnectivityMetricsTest.java137 private void logDefaultNetworkEvent(long timeMs, NetworkAgentInfo nai, in logDefaultNetworkEvent() argument
148 mService.mDefaultNetworkMetrics.logDefaultNetworkEvent(timeMs, network, 0 /* legacyScore */, in logDefaultNetworkEvent()
169 long timeMs = mService.mDefaultNetworkMetrics.creationTimeMs; in testDefaultNetworkEvents() local
172 timeMs += durationMs; in testDefaultNetworkEvents()
174 logDefaultNetworkEvent(timeMs, pair[1], pair[0]); in testDefaultNetworkEvents()
345 long timeMs = mService.mDefaultNetworkMetrics.creationTimeMs; in testEndToEndLogging() local
350 logDefaultNetworkEvent(timeMs + 200L, cellNai, null); in testEndToEndLogging()
351 logDefaultNetworkEvent(timeMs + 300L, wifiNai, cellNai); in testEndToEndLogging()
/packages/modules/Uwb/service/java/com/android/server/uwb/correction/primers/
DFovPrimer.java69 long timeMs) { in prime() argument
91 double elapsedMs = timeMs - mLastGoodReferenceTimeMs; in prime()
97 mLastGoodReferenceTimeMs = timeMs; in prime()
/packages/modules/AdServices/adservices/tests/test-util/java/com/android/adservices/common/
DAdServicesTestCase.java74 int timeMs, @FormatString String reasonFmt, @Nullable Object... reasonArgs) { in sleep() argument
80 + timeMs in sleep()
85 SystemClock.sleep(timeMs); in sleep()
/packages/apps/TV/src/com/android/tv/util/
DUtils.java310 public static Program getProgramAt(Context context, long channelId, long timeMs) { in getProgramAt() argument
326 TvContract.buildChannelUri(channelId), timeMs, timeMs); in getProgramAt()
681 public static long floorTime(long timeMs, long timeUnit) { in floorTime() argument
682 return timeMs - (timeMs % timeUnit); in floorTime()
689 public static long ceilTime(long timeMs, long timeUnit) { in ceilTime() argument
690 return timeMs + timeUnit - (timeMs % timeUnit); in ceilTime()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DDppMetricsTest.java548 int timeMs; in testUpdateHistogramDppOperationTime() local
551 timeMs = DPP_OPERATION_TIME[i] - 1; in testUpdateHistogramDppOperationTime()
553 timeMs = DPP_OPERATION_TIME[i - 1]; in testUpdateHistogramDppOperationTime()
557 timeMs *= 1000; in testUpdateHistogramDppOperationTime()
561 mDppMetrics.updateDppOperationTime(timeMs); in testUpdateHistogramDppOperationTime()
/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/
DTunerSession.java120 public void onTimeShiftSeekTo(long timeMs) { in onTimeShiftSeekTo() argument
121 if (DEBUG) Log.d(TAG, "Timeshift seekTo requested position: " + timeMs / 1000); in onTimeShiftSeekTo()
123 TunerSessionWorker.MSG_TIMESHIFT_SEEK_TO, mPlayPaused ? 1 : 0, 0, timeMs); in onTimeShiftSeekTo()
DTunerSessionExoV2.java118 public void onTimeShiftSeekTo(long timeMs) { in onTimeShiftSeekTo() argument
119 if (DEBUG) Log.d(TAG, "Timeshift seekTo requested position: " + timeMs / 1000); in onTimeShiftSeekTo()
121 TunerSessionWorkerExoV2.MSG_TIMESHIFT_SEEK_TO, mPlayPaused ? 1 : 0, 0, timeMs); in onTimeShiftSeekTo()
/packages/apps/Settings/tests/anomaly-tester/src/com/android/settings/anomaly/tests/
DTestUtils.java88 public static void wait(UiDevice uiDevice, long timeMs) throws InterruptedException { in wait() argument
90 Thread.sleep(timeMs); in wait()
/packages/apps/TV/tuner/src/com/android/tv/tuner/prefs/
DTunerPreferences.java93 public static synchronized void setTrickplayExpiredMs(Context context, long timeMs) { in setTrickplayExpiredMs() argument
97 .putLong(TunerPreferences.PREFS_KEY_TRICKPLAY_EXPIRED_MS, timeMs) in setTrickplayExpiredMs()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DMultinetworkPolicyTracker.java280 public void setTestAllowBadWifiUntil(long timeMs) { in setTestAllowBadWifiUntil() argument
281 Log.d(TAG, "setTestAllowBadWifiUntil: " + timeMs); in setTestAllowBadWifiUntil()
282 mTestAllowBadWifiUntilMs = timeMs; in setTestAllowBadWifiUntil()

123