Home
last modified time | relevance | path

Searched refs:castNonNull (Results 1 – 25 of 83) sorted by relevance

1234

/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/
DMaskingMediaPeriod.java18 import static com.google.android.exoplayer2.util.Util.castNonNull;
161 return castNonNull(mediaPeriod).getTrackGroups(); in getTrackGroups()
175 return castNonNull(mediaPeriod) in selectTracks()
181 castNonNull(mediaPeriod).discardBuffer(positionUs, toKeyframe); in discardBuffer()
186 return castNonNull(mediaPeriod).readDiscontinuity(); in readDiscontinuity()
191 return castNonNull(mediaPeriod).getBufferedPositionUs(); in getBufferedPositionUs()
196 return castNonNull(mediaPeriod).seekToUs(positionUs); in seekToUs()
201 return castNonNull(mediaPeriod).getAdjustedSeekPositionUs(positionUs, seekParameters); in getAdjustedSeekPositionUs()
206 return castNonNull(mediaPeriod).getNextLoadPositionUs(); in getNextLoadPositionUs()
211 castNonNull(mediaPeriod).reevaluateBuffer(positionUs); in reevaluateBuffer()
[all …]
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/video/
DVideoRendererEventListener.java18 import static com.google.android.exoplayer2.util.Util.castNonNull;
154 handler.post(() -> castNonNull(listener).onVideoEnabled(decoderCounters)); in enabled()
164 castNonNull(listener) in decoderInitialized()
173 handler.post(() -> castNonNull(listener).onVideoInputFormatChanged(format)); in inputFormatChanged()
180 handler.post(() -> castNonNull(listener).onDroppedFrames(droppedFrameCount, elapsedMs)); in droppedFrames()
190 castNonNull(listener) in reportVideoFrameProcessingOffset()
204 castNonNull(listener) in videoSizeChanged()
213 handler.post(() -> castNonNull(listener).onRenderedFirstFrame(surface)); in renderedFirstFrame()
224 castNonNull(listener).onVideoDisabled(counters); in disabled()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/audio/
DAudioRendererEventListener.java18 import static com.google.android.exoplayer2.util.Util.castNonNull;
116 handler.post(() -> castNonNull(listener).onAudioEnabled(decoderCounters)); in enabled()
128 castNonNull(listener) in decoderInitialized()
139 handler.post(() -> castNonNull(listener).onAudioInputFormatChanged(format)); in inputFormatChanged()
151 castNonNull(listener) in audioTrackUnderrun()
165 castNonNull(listener).onAudioDisabled(counters); in disabled()
175 handler.post(() -> castNonNull(listener).onAudioSessionId(audioSessionId)); in audioSessionId()
182 handler.post(() -> castNonNull(listener).onSkipSilenceEnabledChanged(skipSilenceEnabled)); in skipSilenceEnabledChanged()
/external/exoplayer/tree/library/common/src/main/java/com/google/android/exoplayer2/metadata/id3/
DGeobFrame.java18 import static com.google.android.exoplayer2.util.Util.castNonNull;
48 mimeType = castNonNull(in.readString()); in GeobFrame()
49 filename = castNonNull(in.readString()); in GeobFrame()
50 description = castNonNull(in.readString()); in GeobFrame()
51 data = castNonNull(in.createByteArray()); in GeobFrame()
DCommentFrame.java18 import static com.google.android.exoplayer2.util.Util.castNonNull;
45 language = castNonNull(in.readString()); in CommentFrame()
46 description = castNonNull(in.readString()); in CommentFrame()
47 text = castNonNull(in.readString()); in CommentFrame()
DInternalFrame.java18 import static com.google.android.exoplayer2.util.Util.castNonNull;
42 domain = castNonNull(in.readString()); in InternalFrame()
43 description = castNonNull(in.readString()); in InternalFrame()
44 text = castNonNull(in.readString()); in InternalFrame()
DBinaryFrame.java18 import static com.google.android.exoplayer2.util.Util.castNonNull;
38 super(castNonNull(in.readString())); in BinaryFrame()
39 data = castNonNull(in.createByteArray()); in BinaryFrame()
DPrivFrame.java18 import static com.google.android.exoplayer2.util.Util.castNonNull;
44 owner = castNonNull(in.readString()); in PrivFrame()
45 privateData = castNonNull(in.createByteArray()); in PrivFrame()
DUrlLinkFrame.java18 import static com.google.android.exoplayer2.util.Util.castNonNull;
40 super(castNonNull(in.readString())); in UrlLinkFrame()
42 url = castNonNull(in.readString()); in UrlLinkFrame()
DTextInformationFrame.java18 import static com.google.android.exoplayer2.util.Util.castNonNull;
40 super(castNonNull(in.readString())); in TextInformationFrame()
42 value = castNonNull(in.readString()); in TextInformationFrame()
DApicFrame.java18 import static com.google.android.exoplayer2.util.Util.castNonNull;
49 mimeType = castNonNull(in.readString()); in ApicFrame()
52 pictureData = castNonNull(in.createByteArray()); in ApicFrame()
DChapterTocFrame.java18 import static com.google.android.exoplayer2.util.Util.castNonNull;
51 this.elementId = castNonNull(in.readString()); in ChapterTocFrame()
54 this.children = castNonNull(in.createStringArray()); in ChapterTocFrame()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/text/cea/
DCeaDecoder.java104 && Util.castNonNull(queuedInputBuffers.peek()).timeUs <= playbackPositionUs) { in dequeueOutputBuffer()
105 CeaInputBuffer inputBuffer = Util.castNonNull(queuedInputBuffers.poll()); in dequeueOutputBuffer()
111 SubtitleOutputBuffer outputBuffer = Util.castNonNull(availableOutputBuffers.pollFirst()); in dequeueOutputBuffer()
126 SubtitleOutputBuffer outputBuffer = Util.castNonNull(availableOutputBuffers.pollFirst()); in dequeueOutputBuffer()
153 releaseInputBuffer(Util.castNonNull(queuedInputBuffers.poll())); in flush()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/upstream/
DByteArrayDataSink.java18 import static com.google.android.exoplayer2.util.Util.castNonNull;
46 castNonNull(stream).close(); in close()
51 castNonNull(stream).write(buffer, offset, length); in write()
DBaseDataSource.java18 import static com.google.android.exoplayer2.util.Util.castNonNull;
86 DataSpec dataSpec = castNonNull(this.dataSpec); in bytesTransferred()
96 DataSpec dataSpec = castNonNull(this.dataSpec); in transferEnded()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/chunk/
DChunkExtractorWrapper.java18 import static com.google.android.exoplayer2.util.Util.castNonNull;
202 castNonNull(trackOutput).format(sampleFormat); in format()
209 return castNonNull(trackOutput).sampleData(input, length, allowEndOfInput); in sampleData()
214 castNonNull(trackOutput).sampleData(data, length); in sampleData()
227 castNonNull(trackOutput).sampleMetadata(timeUs, flags, size, offset, cryptoData); in sampleMetadata()
/external/exoplayer/tree/library/common/src/main/java/com/google/android/exoplayer2/metadata/flac/
DPictureFrame.java18 import static com.google.android.exoplayer2.util.Util.castNonNull;
67 this.mimeType = castNonNull(in.readString()); in PictureFrame()
68 this.description = castNonNull(in.readString()); in PictureFrame()
73 this.pictureData = castNonNull(in.createByteArray()); in PictureFrame()
DVorbisComment.java18 import static com.google.android.exoplayer2.util.Util.castNonNull;
44 this.key = castNonNull(in.readString()); in VorbisComment()
45 this.value = castNonNull(in.readString()); in VorbisComment()
/external/exoplayer/tree/library/common/src/main/java/com/google/android/exoplayer2/metadata/emsg/
DEventMessage.java18 import static com.google.android.exoplayer2.util.Util.castNonNull;
100 schemeIdUri = castNonNull(in.readString()); in EventMessage()
101 value = castNonNull(in.readString()); in EventMessage()
104 messageData = castNonNull(in.createByteArray()); in EventMessage()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/upstream/crypto/
DAesCipherDataSink.java18 import static com.google.android.exoplayer2.util.Util.castNonNull;
80 castNonNull(cipher).updateInPlace(data, offset, length); in write()
87 castNonNull(cipher) in write()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/offline/
DDownloadRequest.java18 import static com.google.android.exoplayer2.util.Util.castNonNull;
93 id = castNonNull(in.readString()); in DownloadRequest()
94 type = castNonNull(in.readString()); in DownloadRequest()
95 uri = Uri.parse(castNonNull(in.readString())); in DownloadRequest()
103 data = castNonNull(in.createByteArray()); in DownloadRequest()
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/
DGaplessInfoHolder.java18 import static com.google.android.exoplayer2.util.Util.castNonNull;
112 int encoderDelay = Integer.parseInt(castNonNull(matcher.group(1)), 16); in setFromComment()
113 int encoderPadding = Integer.parseInt(castNonNull(matcher.group(2)), 16); in setFromComment()
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/trace/internal/
DConcurrentIntrusiveList.java111 CheckerFrameworkUtils.castNonNull(element.getPrev()).setNext(null); in removeElement()
114 CheckerFrameworkUtils.castNonNull(element.getPrev()).setNext(element.getNext()); in removeElement()
115 CheckerFrameworkUtils.castNonNull(element.getNext()).setPrev(element.getPrev()); in removeElement()
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/flac/
DFlacExtractor.java18 import static com.google.android.exoplayer2.util.Util.castNonNull;
217 flacStreamMetadata = castNonNull(metadataHolder.flacStreamMetadata); in readMetadataBlocks()
222 castNonNull(trackOutput) in readMetadataBlocks()
230 castNonNull(extractorOutput) in getFrameStartMarker()
401 / castNonNull(flacStreamMetadata).sampleRate; in outputSampleMetadata()
402 castNonNull(trackOutput) in outputSampleMetadata()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/drm/
DDefaultDrmSession.java207 Util.castNonNull(requestHandler) in provision()
289 Util.castNonNull(responseHandler).removeCallbacksAndMessages(null); in release()
290 Util.castNonNull(requestHandler).removeCallbacksAndMessages(null); in release()
292 Util.castNonNull(requestHandlerThread).quit(); in release()
373 byte[] sessionId = Util.castNonNull(this.sessionId); in doLicense()
440 Util.castNonNull(requestHandler) in postKeyRequest()
462 mediaDrm.provideKeyResponse(Util.castNonNull(offlineLicenseKeySetId), responseData); in onKeyResponse()
483 Util.castNonNull(sessionId); in onKeysRequired()

1234