Home
last modified time | relevance | path

Searched refs:timeUs (Results 1 – 18 of 18) sorted by relevance

/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/buffer/
DSampleQueue.java35 mLastQueuedPositionUs = sample.timeUs; in queueSample()
46 sample.timeUs = sampleFromQueue.timeUs; in dequeueSample()
66 return !mQueue.isEmpty() && mQueue.getLast().timeUs - mQueue.getFirst().timeUs > durationUs; in isDurationGreaterThan()
DSampleChunkIoHelper.java461 mReadChunkPositionUs[index] = sample.timeUs; in doRead()
506 if (sample.timeUs > mBufferDurationUs) { in doWrite()
507 mBufferDurationUs = sample.timeUs; in doWrite()
509 if (sample.timeUs >= mWriteIndexEndPositionUs[index]) { in doWrite()
511 sample.timeUs >= mWriteChunkEndPositionUs[index] in doWrite()
530 ((sample.timeUs / RecordingSampleBuffer.MIN_SEEK_DURATION_US) + 1) in doWrite()
534 ((sample.timeUs / mSampleChunkDurationUs) + 1) in doWrite()
DSimpleSampleBuffer.java130 sampleToQueue.timeUs = sample.timeUs; in writeSample()
DSampleChunk.java373 sample.timeUs = mAccessFile.readLong(); in read()
396 mAccessFile.writeLong(sample.timeUs); in write()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer2/
DExoPlayerSampleExtractor.java330 if (mCurrentPosition < mDecoderInputBuffer.timeUs) { in fetchSample()
331 mCurrentPosition = mDecoderInputBuffer.timeUs; in fetchSample()
339 mLastExtractedPositionUsMap.put(track, mDecoderInputBuffer.timeUs); in fetchSample()
343 Math.max(lastExtractedPositionUs, mDecoderInputBuffer.timeUs)); in fetchSample()
379 sample.timeUs = mDecoderInputBuffer.timeUs; in queueSample()
390 mBaseSamplePts = mDecoderInputBuffer.timeUs - INITIAL_AUDIO_BUFFERING_TIME_US; in queueSample()
392 if (pair.second.timeUs >= mBaseSamplePts) { in queueSample()
398 if (mDecoderInputBuffer.timeUs < mBaseSamplePts && mVideoTrackIndex != index) { in queueSample()
409 mDecoderInputBufferDuplicate.timeUs = mDecoderInputBuffer.timeUs; in queueSample()
DMpegTsSampleExtractor.java195 sampleHolder.timeUs = holder.timeUs; in readSample()
219 mCcParser.mayParseClosedCaption(sampleHolder.data, sampleHolder.timeUs); in readSample()
291 holder.timeUs = presentationTimeUs; in parseClosedCaption()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer2/buffer/
DSampleQueue.java36 mLastQueuedPositionUs = sample.timeUs; in queueSample()
49 sample.timeUs = sampleFromQueue.timeUs; in dequeueSample()
69 return !mQueue.isEmpty() && mQueue.getLast().timeUs - mQueue.getFirst().timeUs > durationUs; in isDurationGreaterThan()
DSampleChunkIoHelper.java506 mReadChunkPositionUs[index] = sample.timeUs; in doRead()
551 if (sample.timeUs > mBufferDurationUs) { in doWrite()
552 mBufferDurationUs = sample.timeUs; in doWrite()
554 if (sample.timeUs >= mWriteIndexEndPositionUs[index]) { in doWrite()
556 sample.timeUs >= mWriteChunkEndPositionUs[index] in doWrite()
575 ((sample.timeUs / RecordingSampleBuffer.MIN_SEEK_DURATION_US) + 1) in doWrite()
579 ((sample.timeUs / mSampleChunkDurationUs) + 1) in doWrite()
DMemorySampleBuffer.java103 sampleToQueue.timeUs = sample.timeUs; in writeSample()
DSampleChunk.java395 sample.timeUs = mAccessFile.readLong(); in read()
434 mAccessFile.writeLong(sample.timeUs); in write()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/
DExoPlayerSampleExtractor.java374 if (mCurrentPosition < mDecoderInputBuffer.timeUs) { in fetchSample()
375 mCurrentPosition = mDecoderInputBuffer.timeUs; in fetchSample()
383 mLastExtractedPositionUsMap.put(track, mDecoderInputBuffer.timeUs); in fetchSample()
387 Math.max(lastExtractedPositionUs, mDecoderInputBuffer.timeUs)); in fetchSample()
429 sample.timeUs = mDecoderInputBuffer.timeUs; in queueSample()
441 mDecoderInputBuffer.timeUs in queueSample()
445 if (pair.second.timeUs >= mBaseSamplePts) { in queueSample()
451 if (mDecoderInputBuffer.timeUs < mBaseSamplePts && mVideoTrackIndex != index) { in queueSample()
465 mSampleHolder.timeUs = mDecoderInputBuffer.timeUs; in queueSample()
DMpegTsSampleExtractor.java209 sampleHolder.timeUs = holder.timeUs; in readSample()
232 mCcParser.mayParseClosedCaption(sampleHolder.data, sampleHolder.timeUs); in readSample()
279 holder.timeUs = presentationTimeUs; in parseClosedCaption()
DCea708TextTrackRenderer.java214 mCea708Parser.parseClosedCaption(mSampleHolder.data, mSampleHolder.timeUs); in feedInputBuffer()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/audio/
DAudioClock.java62 public void setPositionUs(long timeUs) { in setPositionUs() argument
63 this.mPositionUs = timeUs; in setPositionUs()
64 mDeltaUs = elapsedRealtimeMinus(timeUs); in setPositionUs()
DMpegTsDefaultAudioTrackRenderer.java475 mSampleHolder.timeUs, in feedInputBuffer()
481 mSampleHolder.timeUs, in feedInputBuffer()
506 decodeDone(mSampleHolder.data, mSampleHolder.timeUs); in feedInputBuffer()
DMediaCodecAudioDecoder.java163 long presentationTimeUs = sampleHolder.timeUs; in decode()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryUtils.java132 long timeUs = 0; in getScreenUsageTimeMs() local
136 timeUs += localTime; in getScreenUsageTimeMs()
138 Log.v(TAG, "foreground time(us): " + timeUs); in getScreenUsageTimeMs()
143 Math.min(timeUs, getForegroundActivityTotalTimeUs(uid, rawRealTimeUs))); in getScreenUsageTimeMs()
153 final long timeUs = uid.getProcessStateTime( in getProcessBackgroundTimeMs() local
157 Log.v(TAG, "background time(us): " + timeUs); in getProcessBackgroundTimeMs()
158 return PowerUtil.convertUsToMs(timeUs); in getProcessBackgroundTimeMs()
/packages/apps/Messaging/src/com/android/messaging/util/
DMediaMetadataRetrieverWrapper.java70 public Bitmap getFrameAtTime(final long timeUs) { in getFrameAtTime() argument
71 return mRetriever.getFrameAtTime(timeUs); in getFrameAtTime()