Home
last modified time | relevance | path

Searched refs:Assertions (Results 1 – 25 of 3722) sorted by relevance

12345678910>>...149

/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/
DPlayerMessage.java21 import com.google.android.exoplayer2.util.Assertions;
116 Assertions.checkState(!isSent); in setType()
134 Assertions.checkState(!isSent); in setPayload()
153 Assertions.checkState(!isSent); in setHandler()
183 Assertions.checkState(!isSent); in setPosition()
201 Assertions.checkState(!isSent); in setPosition()
202 Assertions.checkArgument(positionMs != C.TIME_UNSET); in setPosition()
226 Assertions.checkState(!isSent); in setDeleteAfterDelivery()
245 Assertions.checkState(!isSent); in send()
247 Assertions.checkArgument(deleteAfterDelivery); in send()
[all …]
DExoPlaybackException.java24 import com.google.android.exoplayer2.util.Assertions;
219 Assertions.checkState(type == TYPE_SOURCE); in getSourceException()
220 return (IOException) Assertions.checkNotNull(cause); in getSourceException()
229 Assertions.checkState(type == TYPE_RENDERER); in getRendererException()
230 return (Exception) Assertions.checkNotNull(cause); in getRendererException()
239 Assertions.checkState(type == TYPE_UNEXPECTED); in getUnexpectedException()
240 return (RuntimeException) Assertions.checkNotNull(cause); in getUnexpectedException()
249 Assertions.checkState(type == TYPE_OUT_OF_MEMORY); in getOutOfMemoryError()
250 return (OutOfMemoryError) Assertions.checkNotNull(cause); in getOutOfMemoryError()
DExoPlayer.java41 import com.google.android.exoplayer2.util.Assertions;
215 Assertions.checkArgument(renderers.length > 0); in Builder()
262 Assertions.checkState(!buildCalled); in setTrackSelector()
275 Assertions.checkState(!buildCalled); in setMediaSourceFactory()
288 Assertions.checkState(!buildCalled); in setLoadControl()
301 Assertions.checkState(!buildCalled); in setBandwidthMeter()
315 Assertions.checkState(!buildCalled); in setLooper()
328 Assertions.checkState(!buildCalled); in setAnalyticsCollector()
345 Assertions.checkState(!buildCalled); in setUseLazyPreparation()
360 Assertions.checkState(!buildCalled); in setClock()
[all …]
DNoSampleRenderer.java20 import com.google.android.exoplayer2.util.Assertions;
73 Assertions.checkState(state == STATE_DISABLED); in enable()
83 Assertions.checkState(state == STATE_ENABLED); in start()
91 Assertions.checkState(!streamIsFinal); in replaceStream()
134 Assertions.checkState(state == STATE_STARTED); in stop()
141 Assertions.checkState(state == STATE_ENABLED); in disable()
150 Assertions.checkState(state == STATE_DISABLED); in reset()
/external/mockito/src/test/java/org/mockitousage/stubbing/
DStubbingUsingDoReturnTest.java8 import org.assertj.core.api.Assertions;
23 import static org.assertj.core.api.Assertions.assertThat;
40 Assertions.assertThat(mock.simpleMethod()).isEqualTo("bar"); in should_stub()
48 Assertions.assertThat(mock.simpleMethod("foo")).isEqualTo("foo"); in should_stub_with_args()
49 Assertions.assertThat(mock.simpleMethod("one", 234)).isEqualTo("bar"); in should_stub_with_args()
50 Assertions.assertThat(mock.simpleMethod("xxx", 234)).isEqualTo(null); in should_stub_with_args()
125 Assertions.assertThat(mock.simpleMethod()).isEqualTo("foo"); in should_allow_chained_stubbing()
131 Assertions.assertThat(mock.simpleMethod()).isEqualTo("bar"); in should_allow_chained_stubbing()
132 Assertions.assertThat(mock.simpleMethod()).isEqualTo("bar"); in should_allow_chained_stubbing()
142 Assertions.assertThat(mock.objectReturningMethodNoArgs()).isEqualTo("foo"); in should_allow_consecutive_return_values()
[all …]
/external/mockito/src/test/java/org/mockitousage/customization/
DBDDMockitoTest.java7 import org.assertj.core.api.Assertions;
35 Assertions.assertThat(mock.simpleMethod("foo")).isEqualTo("bar"); in should_stub()
36 Assertions.assertThat(mock.simpleMethod("whatever")).isEqualTo(null); in should_stub()
44 Assertions.assertThat(mock.simpleMethod("foo")).isEqualTo("foo"); in should_stub_with_throwable()
55 Assertions.assertThat(mock.simpleMethod("foo")).isEqualTo("foo"); in should_stub_with_throwable_class()
68 Assertions.assertThat(mock.simpleMethod("foo")).isEqualTo("foo"); in should_stub_with_throwable_classes()
82 Assertions.assertThat(mock.simpleMethod("foo")).isEqualTo("foo"); in should_stub_with_answer()
93 Assertions.assertThat(mock.simpleMethod("foo")).isEqualTo("foo"); in should_stub_with_will_answer_alias()
102 Assertions.assertThat(mock.simpleMethod("whatever")).isEqualTo("foo"); in should_stub_consecutively()
103 Assertions.assertThat(mock.simpleMethod("whatever")).isEqualTo("bar"); in should_stub_consecutively()
[all …]
/external/mockito/src/test/java/org/mockito/internal/exceptions/stacktrace/
DStackTraceFilterTest.java8 import org.assertj.core.api.Assertions;
29 Assertions.assertThat(filtered).has(onlyThoseClasses("MockitoExampleTest")); in shouldFilterOutCglibGarbage()
41 Assertions.assertThat(filtered).has(onlyThoseClasses("MockitoExampleTest")); in shouldFilterOutByteBuddyGarbage()
54 Assertions.assertThat(filtered).has(onlyThoseClasses("org.test.MockitoSampleTest")); in shouldFilterOutMockitoPackage()
69Assertions.assertThat(filtered).has(onlyThoseClasses("org.test.TestSupport", "org.test.TestSupport… in shouldNotFilterOutTracesMiddleGoodTraces()
83Assertions.assertThat(filtered).has(onlyThoseClasses("org.test.MockitoSampleTest", "junit.stuff", … in shouldKeepRunners()
99Assertions.assertThat(filtered).has(onlyThoseClasses("org.test.MockitoSampleTest", "junit.stuff", … in shouldNotFilterElementsAboveMockitoJUnitRule()
111Assertions.assertThat(filtered).has(onlyThoseClasses("org.test.MockitoSampleTest", "org.mockito.in… in shouldKeepInternalRunners()
127Assertions.assertThat(filtered).has(onlyThoseClasses("org.test.MockitoSampleTest", "org.test.Good"… in shouldStartFilteringAndKeepTop()
141 Assertions.assertThat(filtered).has(onlyThoseClasses( in shouldKeepGoodTraceFromTheTopBecauseRealImplementationsOfSpiesSometimesThrowExceptions()
/external/mockito/src/test/java/org/mockitousage/stacktrace/
DStackTraceFilteringTest.java8 import org.assertj.core.api.Assertions;
49 Assertions.assertThat(e).has(firstMethodInStackTrace("shouldFilterStackTraceOnVerify")); in shouldFilterStackTraceOnVerify()
60Assertions.assertThat(e).has(firstMethodInStackTrace("shouldFilterStackTraceOnVerifyNoMoreInteract… in shouldFilterStackTraceOnVerifyNoMoreInteractions()
71Assertions.assertThat(e).has(firstMethodInStackTrace("shouldFilterStackTraceOnVerifyZeroInteractio… in shouldFilterStackTraceOnVerifyZeroInteractions()
83Assertions.assertThat(expected).has(firstMethodInStackTrace("shouldFilterStacktraceOnMockitoExcept… in shouldFilterStacktraceOnMockitoException()
98Assertions.assertThat(e).has(firstMethodInStackTrace("shouldFilterStacktraceWhenVerifyingInOrder")… in shouldFilterStacktraceWhenVerifyingInOrder()
108Assertions.assertThat(expected).has(firstMethodInStackTrace("shouldFilterStacktraceWhenInOrderThro… in shouldFilterStacktraceWhenInOrderThrowsMockitoException()
119Assertions.assertThat(expected).has(firstMethodInStackTrace("shouldFilterStacktraceWhenInOrderVeri… in shouldFilterStacktraceWhenInOrderVerifies()
129Assertions.assertThat(expected).has(firstMethodInStackTrace("shouldFilterStackTraceWhenThrowingExc… in shouldFilterStackTraceWhenThrowingExceptionFromMockHandler()
141Assertions.assertThat(e).has(firstMethodInStackTrace("shouldShowProperExceptionStackTrace")); in shouldShowProperExceptionStackTrace()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/upstream/cache/
DSimpleCacheSpan.java20 import com.google.android.exoplayer2.util.Assertions;
134 int id = Integer.parseInt(Assertions.checkNotNull(matcher.group(1))); in createCacheEntry()
147 long position = Long.parseLong(Assertions.checkNotNull(matcher.group(2))); in createCacheEntry()
149 lastTouchTimestamp = Long.parseLong(Assertions.checkNotNull(matcher.group(3))); in createCacheEntry()
168 key = Util.unescapeFileName(Assertions.checkNotNull(matcher.group(1))); in upgradeFile()
172 key = Assertions.checkNotNull(matcher.group(1)); // Keys were not escaped in version 1. in upgradeFile()
182 Assertions.checkStateNotNull(file.getParentFile()), in upgradeFile()
184 Long.parseLong(Assertions.checkNotNull(matcher.group(2))), in upgradeFile()
185 Long.parseLong(Assertions.checkNotNull(matcher.group(3)))); in upgradeFile()
215 Assertions.checkState(isCached); in copyWithFileAndLastTouchTimestamp()
DSimpleCache.java24 import com.google.android.exoplayer2.util.Assertions;
310 Assertions.checkState(!released); in addListener()
336 Assertions.checkState(!released); in getCachedSpans()
345 Assertions.checkState(!released); in getKeys()
351 Assertions.checkState(!released); in getCacheSpace()
358 Assertions.checkState(!released); in startReadWrite()
380 Assertions.checkState(!released); in startReadWriteNonBlocking()
403 Assertions.checkState(!released); in startFile()
407 Assertions.checkNotNull(cachedContent); in startFile()
408 Assertions.checkState(cachedContent.isLocked()); in startFile()
[all …]
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/
DDoubleLiteralExprTest.java3 import org.junit.jupiter.api.Assertions;
13 Assertions.assertEquals(x, e.asDouble()); in test1()
20 Assertions.assertEquals(x, e.asDouble()); in test2()
27 Assertions.assertEquals(a, e.asDouble()); in test3()
34 Assertions.assertEquals(a, e.asDouble()); in test4()
41 Assertions.assertEquals(x, e.asDouble()); in test5()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/drm/
DDefaultDrmSessionManager.java31 import com.google.android.exoplayer2.util.Assertions;
114 this.uuid = Assertions.checkNotNull(uuid); in setUuidAndExoMediaDrmProvider()
115 this.exoMediaDrmProvider = Assertions.checkNotNull(exoMediaDrmProvider); in setUuidAndExoMediaDrmProvider()
151 Assertions.checkArgument( in setUseDrmSessionsForClearContent()
179 this.loadErrorHandlingPolicy = Assertions.checkNotNull(loadErrorHandlingPolicy); in setLoadErrorHandlingPolicy()
351 Assertions.checkNotNull(uuid); in DefaultDrmSessionManager()
352 Assertions.checkArgument(!C.COMMON_PSSH_UUID.equals(uuid), "Use C.CLEARKEY_UUID instead"); in DefaultDrmSessionManager()
392 Assertions.checkState(sessions.isEmpty()); in setMode()
394 Assertions.checkNotNull(offlineLicenseKeySetId); in setMode()
405 Assertions.checkState(exoMediaDrm == null); in prepare()
[all …]
/external/exoplayer/tree/library/hls/src/main/java/com/google/android/exoplayer2/source/hls/
DFullSegmentEncryptionKeyCache.java20 import com.google.android.exoplayer2.util.Assertions;
63 return backingMap.put(Assertions.checkNotNull(uri), Assertions.checkNotNull(encryptionKey)); in put()
72 return backingMap.containsKey(Assertions.checkNotNull(uri)); in containsUri()
83 return backingMap.remove(Assertions.checkNotNull(uri)); in remove()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/audio/
DAudioTrackPositionTracker.java26 import com.google.android.exoplayer2.util.Assertions;
169 this.listener = Assertions.checkNotNull(listener); in AudioTrackPositionTracker()
213 if (Assertions.checkNotNull(this.audioTrack).getPlayState() == PLAYSTATE_PLAYING) { in getCurrentPositionUs()
220 AudioTimestampPoller audioTimestampPoller = Assertions.checkNotNull(this.audioTimestampPoller); in getCurrentPositionUs()
250 Assertions.checkNotNull(audioTimestampPoller).reset(); in start()
255 return Assertions.checkNotNull(audioTrack).getPlayState() == PLAYSTATE_PLAYING; in isPlaying()
266 @PlayState int playState = Assertions.checkNotNull(audioTrack).getPlayState(); in mayHandleBuffer()
348 Assertions.checkNotNull(audioTimestampPoller).reset(); in pause()
397 AudioTimestampPoller audioTimestampPoller = Assertions.checkNotNull(this.audioTimestampPoller); in maybePollAndCheckTimestamp()
433 castNonNull((Integer) getLatencyMethod.invoke(Assertions.checkNotNull(audioTrack))) in maybeUpdateLatency()
[all …]
/external/mockito/src/test/java/org/mockitoutil/
DConditions.java8 import org.assertj.core.api.Assertions;
26 Assertions.assertThat(trace.length) in onlyThoseClassesInStackTrace()
33 Assertions.assertThat(trace[i].getClassName()).isEqualTo(classes[i]); in onlyThoseClassesInStackTrace()
46 Assertions.assertThat(traceElements.length)
53 Assertions.assertThat(traceElements[i].getClassName()).isEqualTo(classes[i]);
100 Assertions.fail("Bridge method [" + methodName + "]\nnot found in:\n" + o);
115Assertions.assertThat(trace[i].getMethodName()).describedAs("Expected methods[%d] to be in the sta…
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/text/
DSubtitleOutputBuffer.java21 import com.google.android.exoplayer2.util.Assertions;
50 return Assertions.checkNotNull(subtitle).getEventTimeCount(); in getEventTimeCount()
55 return Assertions.checkNotNull(subtitle).getEventTime(index) + subsampleOffsetUs; in getEventTime()
60 return Assertions.checkNotNull(subtitle).getNextEventTimeIndex(timeUs - subsampleOffsetUs); in getNextEventTimeIndex()
65 return Assertions.checkNotNull(subtitle).getCues(timeUs - subsampleOffsetUs); in getCues()
/external/mockito/src/test/java/org/mockito/internal/creation/
DMockSettingsImplTest.java7 import org.assertj.core.api.Assertions;
20 import static org.assertj.core.api.Assertions.assertThat;
112 Assertions.assertThat(mockSettingsImpl.getInvocationListeners()).hasSize(1); in shouldAddVerboseLoggingListenerOnlyOnce()
131Assertions.assertThat(mockSettingsImpl.getInvocationListeners()).contains(invocationListener); in shouldAddInvocationListener()
144Assertions.assertThat(mockSettingsImpl.getInvocationListeners()).containsSequence(invocationListen… in canAddDuplicateInvocationListeners_ItsNotOurBusinessThere()
153 Assertions.assertThat(e.getMessage()).contains("at least one listener"); in shouldReportErrorWhenAddingNoInvocationListeners()
163 Assertions.assertThat(e.getMessage()).contains("does not accept null"); in shouldReportErrorWhenAddingANullInvocationListener()
/external/mockito/src/test/java/org/mockito/internal/stubbing/answers/
DThrowsExceptionTest.java9 import org.assertj.core.api.Assertions;
16 import static org.assertj.core.api.Assertions.assertThat;
25 Assertions.fail("should have raised wanted exception"); in should_raise_wanted_throwable()
35 Assertions.fail("should have raised wanted exception"); in should_throw_mock_exception_without_stacktrace()
52 Assertions.fail("should have raised wanted exception"); in should_fill_in_exception_stacktrace()
66 Assertions.fail("should have raised a MockitoException"); in should_invalidate_null_throwable()
/external/exoplayer/tree/demos/gl/src/main/java/com/google/android/exoplayer2/gldemo/
DMainActivity.java41 import com.google.android.exoplayer2.util.Assertions;
139 ? Assertions.checkNotNull(intent.getData()) in initializePlayer()
144 String drmScheme = Assertions.checkNotNull(intent.getStringExtra(DRM_SCHEME_EXTRA)); in initializePlayer()
145 String drmLicenseUrl = Assertions.checkNotNull(intent.getStringExtra(DRM_LICENSE_URL_EXTRA)); in initializePlayer()
146 UUID drmSchemeUuid = Assertions.checkNotNull(Util.getDrmUuid(drmScheme)); in initializePlayer()
183 Assertions.checkNotNull(this.videoProcessingGLSurfaceView); in initializePlayer()
185 Assertions.checkNotNull(player.getVideoComponent())); in initializePlayer()
186 Assertions.checkNotNull(playerView).setPlayer(player); in initializePlayer()
192 Assertions.checkNotNull(playerView).setPlayer(null); in releasePlayer()
195 Assertions.checkNotNull(videoProcessingGLSurfaceView).setVideoComponent(null); in releasePlayer()
/external/exoplayer/tree/library/common/src/main/java/com/google/android/exoplayer2/metadata/emsg/
DEventMessageDecoder.java21 import com.google.android.exoplayer2.util.Assertions;
31 ByteBuffer buffer = Assertions.checkNotNull(inputBuffer.data); in decode()
32 Assertions.checkArgument( in decode()
38 String schemeIdUri = Assertions.checkNotNull(emsgData.readNullTerminatedString()); in decode()
39 String value = Assertions.checkNotNull(emsgData.readNullTerminatedString()); in decode()
/external/mockito/src/test/java/org/mockito/
DAnnotationsAreCopiedFromMockedTypeTest.java7 import org.assertj.core.api.Assertions;
31 Assertions.assertThat(onClassDefaultValue.value()).isEqualTo("yup"); in mock_should_have_annotations_copied_from_mocked_type_at_class_level()
32 Assertions.assertThat(onClassCustomValue.value()).isEqualTo("yay"); in mock_should_have_annotations_copied_from_mocked_type_at_class_level()
40 Assertions.assertThat(onClassDefaultValue.value()).isEqualTo("yup"); in mock_should_have_annotations_copied_from_mocked_type_on_methods()
41 Assertions.assertThat(onClassCustomValue.value()).isEqualTo("yay"); in mock_should_have_annotations_copied_from_mocked_type_on_methods()
49 Assertions.assertThat(onClassDefaultValue.value()).isEqualTo("yup"); in mock_should_have_annotations_copied_from_mocked_type_on_method_parameters()
50 Assertions.assertThat(onClassCustomValue.value()).isEqualTo("yay"); in mock_should_have_annotations_copied_from_mocked_type_on_method_parameters()
/external/mockito/src/test/java/org/mockito/internal/invocation/
DInvocationsFinderTest.java8 import org.assertj.core.api.Assertions;
53Assertions.assertThat(actual).containsSequence(simpleMethodInvocation, simpleMethodInvocationTwo); in shouldFindActualInvocations()
56 Assertions.assertThat(actual).containsSequence(differentMethodInvocation); in shouldFindActualInvocations()
142Assertions.assertThat(allMatching).containsSequence(simpleMethodInvocation, simpleMethodInvocation… in shouldFindAllMatchingUnverifiedChunks()
146 Assertions.assertThat(allMatching).containsSequence(simpleMethodInvocationTwo); in shouldFindAllMatchingUnverifiedChunks()
156Assertions.assertThat(chunk).containsSequence(simpleMethodInvocation, simpleMethodInvocationTwo); in shouldFindMatchingChunk()
165Assertions.assertThat(chunk).containsSequence(simpleMethodInvocation, simpleMethodInvocationTwo, s… in shouldReturnAllChunksWhenModeIsAtLeastOnce()
174Assertions.assertThat(chunk).containsSequence(simpleMethodInvocation, simpleMethodInvocationTwo, s… in shouldReturnAllChunksWhenWantedCountDoesntMatch()
192Assertions.assertThat(all).contains(simpleMethodInvocation.getLocation(), simpleMethodInvocationTw… in shouldFindAllStackTraces()
197Assertions.assertThat(InvocationsFinder.getAllLocations(Collections.<Invocation>emptyList())).isEm… in shouldNotFindLocationsForEmptyInvocationsList()
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DHostActivity.java34 import com.google.android.exoplayer2.util.Assertions;
119 Assertions.checkArgument(timeoutMs > 0); in runTest()
120 Assertions.checkState(Thread.currentThread() != getMainLooper().getThread()); in runTest()
121 Assertions.checkState(this.hostedTest == null); in runTest()
122 Assertions.checkNotNull(hostedTest); in runTest()
185 Assertions.checkStateNotNull( in onStart()
190 Assertions.checkStateNotNull( in onStart()
249 .onStart(this, surface, Assertions.checkNotNull(overlayFrameLayout)); in maybeStartHostedTest()
/external/mockito/src/test/java/org/mockitousage/verification/
DVerificationWithTimeoutTest.java8 import org.assertj.core.api.Assertions;
67 Assertions.assertThatThrownBy(new ThrowableAssert.ThrowingCallable() { in should_verify_with_timeout_and_fail()
86 Assertions.assertThatThrownBy(new ThrowableAssert.ThrowingCallable() { in should_verify_with_timeout_and_fail_early()
114 Assertions.assertThatThrownBy(new ThrowableAssert.ThrowingCallable() { in should_verify_with_times_x_and_fail()
149 Assertions.assertThatThrownBy(new ThrowableAssert.ThrowingCallable() { in should_verify_with_at_least_and_fail()
174 Assertions.assertThatThrownBy(new ThrowableAssert.ThrowingCallable() { in should_verify_with_only_and_fail()
192 Assertions.assertThatThrownBy(new ThrowableAssert.ThrowingCallable() { in should_verify_with_only_and_fail_early()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/video/spherical/
DProjection.java21 import com.google.android.exoplayer2.util.Assertions;
81 Assertions.checkArgument(radius > 0); in createEquirectangular()
82 Assertions.checkArgument(latitudes >= 1); in createEquirectangular()
83 Assertions.checkArgument(longitudes >= 1); in createEquirectangular()
84 Assertions.checkArgument(verticalFovDegrees > 0 && verticalFovDegrees <= 180); in createEquirectangular()
85 Assertions.checkArgument(horizontalFovDegrees > 0 && horizontalFovDegrees <= 360); in createEquirectangular()
204 Assertions.checkArgument( in SubMesh()

12345678910>>...149