Home
last modified time | relevance | path

Searched refs:timeDiff (Results 1 – 7 of 7) sorted by relevance

/aosp12/packages/apps/Messaging/src/com/android/messaging/util/
H A DDates.java130 final long timeDiff = now - time; in getTimestamp() local
132 if (!minPeriodToday && timeDiff < DateUtils.MINUTE_IN_MILLIS) { in getTimestamp()
134 } else if (!minPeriodToday && timeDiff < DateUtils.HOUR_IN_MILLIS) { in getTimestamp()
135 return getLessThanAnHourOldTimeString(timeDiff, flags); in getTimestamp()
138 } else if (timeDiff < DateUtils.WEEK_IN_MILLIS) { in getTimestamp()
140 } else if (timeDiff < DateUtils.YEAR_IN_MILLIS) { in getTimestamp()
153 private static CharSequence getLessThanAnHourOldTimeString(final long timeDiff, in getLessThanAnHourOldTimeString() argument
155 final long count = (timeDiff / MINUTE_IN_MILLIS); in getLessThanAnHourOldTimeString()
/aosp12/system/media/audio_utils/
H A Decho_reference.c366 int64_t timeDiff; in echo_reference_read() local
373 timeDiff = 0; in echo_reference_read()
382 timeDiff = (((int64_t)tmp.tv_sec * 1000000000 + tmp.tv_nsec)); in echo_reference_read()
384 int64_t expectedDelayNs = er->playback_delay + buffer->delay_ns - timeDiff; in echo_reference_read()
395 expectedDelayNs, er->playback_delay, buffer->delay_ns, timeDiff); in echo_reference_read()
466 expectedDelayNs, er->playback_delay, buffer->delay_ns, timeDiff); in echo_reference_read()
/aosp12/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/playback/
H A DProgressLiveData.java86 long timeDiff = mElapsedRealtime.get() - mPlaybackState.getLastPositionUpdateTime(); in getProgress() local
91 long posDiff = (long) (timeDiff * speed); in getProgress()
/aosp12/frameworks/av/media/libstagefright/rtsp/
H A DARTPConnection.cpp934 int32_t timeDiff = (nowUs - mLastBitrateReportTimeUs) / 1000000ll; in parseBYE() local
935 int32_t bitrate = mCumulativeBytes * 8 / timeDiff; in parseBYE()
1159 int32_t timeDiff = (nowUs - mLastBitrateReportTimeUs) / 1000000ll; in checkRxBitrate() local
1160 int32_t bitrate = mCumulativeBytes * 8 / timeDiff; in checkRxBitrate()
1181 int32_t timeDiff = (nowUs - mLastBitrateReportTimeUs) / 1000000ll; in checkRxBitrate() local
1182 int32_t bitrate = mCumulativeBytes * 8 / timeDiff; in checkRxBitrate()
/aosp12/frameworks/native/services/inputflinger/reader/mapper/
H A DSensorInputMapper.cpp249 uint32_t timeDiff = (mPrevMscTime > static_cast<uint32_t>(mscTime)) in processHardWareTimestamp() local
253 mHardwareTimestamp += timeDiff * 1000LL; in processHardWareTimestamp()
/aosp12/frameworks/opt/telephony/src/java/com/android/internal/telephony/ims/
H A DImsResolver.java980 long timeDiff = System.currentTimeMillis() - startTimeMs; in getConfiguredImsServicePackageName() local
981 if (timeDiff > 50) { in getConfiguredImsServicePackageName()
985 + "], async query complete, took " + timeDiff + " ms with package name: " in getConfiguredImsServicePackageName()
989 + "], async query complete, took " + timeDiff + " ms with package name: " in getConfiguredImsServicePackageName()
/aosp12/hardware/qcom/camera/msm8998/QCamera2/HAL3/
H A DQCamera3HWI.cpp8545 int64_t timeDiff = pendingRequest.timestamp - in translateFromHalMetadata() local
8552 frame_ois_data->ois_sample_timestamp_boottime[i] + timeDiff); in translateFromHalMetadata()