/packages/modules/Uwb/service/java/com/android/server/uwb/correction/filtering/ |
D | PositionFilterImpl.java | 62 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()
|
D | Sample.java | 28 public long timeMs; field in Sample 42 Sample(float value, long timeMs, double fom) { in Sample() argument 44 this.timeMs = timeMs; in Sample()
|
D | MedAvgFilter.java | 115 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()
|
D | IPositionFilter.java | 36 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
|
D | IFilter.java | 32 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/ |
D | ProgramUtils.java | 79 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()
|
D | ProgramInfo.java | 161 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/ |
D | UwbFilterEngine.java | 78 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/ |
D | TimingsTraceLog.java | 42 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/ |
D | NullPositionFilter.java | 44 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()
|
D | NullFilter.java | 38 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/ |
D | DvrPlayer.java | 428 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/ |
D | TimeShiftManager.java | 488 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 …]
|
D | InputSessionManager.java | 181 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/ |
D | SharedUnitTestCase.java | 39 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/ |
D | IpConnectivityMetricsTest.java | 137 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/ |
D | FovPrimer.java | 69 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/ |
D | AdServicesTestCase.java | 74 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/ |
D | Utils.java | 310 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/ |
D | DppMetricsTest.java | 548 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/ |
D | TunerSession.java | 120 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()
|
D | TunerSessionExoV2.java | 118 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/ |
D | TestUtils.java | 88 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/ |
D | TunerPreferences.java | 93 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/ |
D | MultinetworkPolicyTracker.java | 280 public void setTestAllowBadWifiUntil(long timeMs) { in setTestAllowBadWifiUntil() argument 281 Log.d(TAG, "setTestAllowBadWifiUntil: " + timeMs); in setTestAllowBadWifiUntil() 282 mTestAllowBadWifiUntilMs = timeMs; in setTestAllowBadWifiUntil()
|