/cts/tests/tests/transition/src/android/transition/cts/ |
D | ArcMotionTest.java | 114 float ex = 50 + (50 * ratio); in testMaximumAngle() local 115 float ey = ex; in testMaximumAngle() 117 Path expected = arcWithPoint(0, 100, 100, 0, ex, ey); in testMaximumAngle() 128 float ex = 37.5f; in testMinimumHorizontalAngle() local 130 Path expected = arcWithPoint(0, 0, 100, 50, ex, ey); in testMinimumHorizontalAngle() 135 expected = arcWithPoint(0, 0, 100.001f, 50, ex, ey); in testMinimumHorizontalAngle() 140 expected = arcWithPoint(100, 50, 0, 0, ex, ey); in testMinimumHorizontalAngle() 145 ex = 0; in testMinimumHorizontalAngle() 147 expected = arcWithPoint(0, 0, 50, 100, ex, ey); in testMinimumHorizontalAngle() 152 expected = arcWithPoint(0, 0, 50, 100.001f, ex, ey); in testMinimumHorizontalAngle() [all …]
|
/cts/tests/tests/media/src/android/media/cts/ |
D | AdaptivePlaybackTest.java | 184 public void runEOS() { ex(AllCodecs(), new Test[] { in runEOS() 194 public void runAll() { ex(AllCodecs(), allTests); } in runAll() 195 public void runSW() { ex(SWCodecs(), allTests); } in runSW() 196 public void runHW() { ex(HWCodecs(), allTests); } in runHW() 202 public void runH264() { ex(H264(), allTests); } in runH264() 203 public void runHEVC() { ex(HEVC(), allTests); } in runHEVC() 204 public void runVP8() { ex(VP8(), allTests); } in runVP8() 205 public void runVP9() { ex(VP9(), allTests); } in runVP9() 206 public void runAV1() { ex(AV1(), allTests); } in runAV1() 207 public void runMpeg2() { ex(Mpeg2(), allTests); } in runMpeg2() [all …]
|
D | NativeDecoderTest.java | 196 MediaExtractor ex = new MediaExtractor(); in getSampleSizes() local 198 ex.setDataSource(path); in getSampleSizes() 210 ex.setDataSource(path, headers); in getSampleSizes() 213 return getSampleSizes(ex); in getSampleSizes() 218 MediaExtractor ex = new MediaExtractor(); in getSampleSizes() local 219 ex.setDataSource(fd, offset, size); in getSampleSizes() 220 return getSampleSizes(ex); in getSampleSizes() 223 private static int[] getSampleSizes(MediaExtractor ex) { in getSampleSizes() argument 226 int numtracks = ex.getTrackCount(); in getSampleSizes() 230 MediaFormat format = ex.getTrackFormat(i); in getSampleSizes() [all …]
|
D | AudioFocusTest.java | 53 Exception ex = null; in testInvalidAudioFocusRequestDelayNoListener() local 59 ex = e; in testInvalidAudioFocusRequestDelayNoListener() 61 assertNotNull("No exception was thrown for an invalid build", ex); in testInvalidAudioFocusRequestDelayNoListener() 62 assertEquals("Wrong exception thrown", ex.getClass(), IllegalStateException.class); in testInvalidAudioFocusRequestDelayNoListener() 68 Exception ex = null; in testInvalidAudioFocusRequestPauseOnDuckNoListener() local 74 ex = e; in testInvalidAudioFocusRequestPauseOnDuckNoListener() 76 assertNotNull("No exception was thrown for an invalid build", ex); in testInvalidAudioFocusRequestPauseOnDuckNoListener() 77 assertEquals("Wrong exception thrown", ex.getClass(), IllegalStateException.class); in testInvalidAudioFocusRequestPauseOnDuckNoListener()
|
/cts/tests/tests/media/libmediandkjni/ |
D | native-media-jni.cpp | 263 jobject testExtractor(AMediaExtractor *ex, JNIEnv *env) { in testExtractor() argument 266 int numtracks = AMediaExtractor_getTrackCount(ex); in testExtractor() 269 AMediaFormat *format = AMediaExtractor_getTrackFormat(ex, i); in testExtractor() 300 AMediaExtractor_selectTrack(ex, i); in testExtractor() 305 int n = AMediaExtractor_readSampleData(ex, buf, bufsize); in testExtractor() 306 ssize_t sampleSize = AMediaExtractor_getSampleSize(ex); in testExtractor() 311 sizes.add(AMediaExtractor_getSampleTrackIndex(ex)); in testExtractor() 312 sizes.add(AMediaExtractor_getSampleFlags(ex)); in testExtractor() 313 sizes.add(AMediaExtractor_getSampleTime(ex)); in testExtractor() 315 AMediaExtractor_advance(ex); in testExtractor() [all …]
|
/cts/tests/tests/proto/src/android/util/proto/cts/ |
D | ProtoOutputStreamTagTest.java | 96 } catch (IllegalArgumentException ex) { in checkMessageForType() 100 ex.getMessage()); in checkMessageForType() 107 } catch (IllegalArgumentException ex) { in checkMessageForType() 111 ex.getMessage()); in checkMessageForType() 132 } catch (IllegalArgumentException ex) { in checkMessageForCount() 136 ex.getMessage()); in checkMessageForCount() 143 } catch (IllegalArgumentException ex) { in checkMessageForCount() 151 ex.getMessage()); in checkMessageForCount() 164 } catch (IllegalArgumentException ex) { in assertCheckFieldIdThrows()
|
D | ProtoOutputStreamObjectTest.java | 413 } catch (RuntimeException ex) { in testTooManyEndObjectsWithData() 435 } catch (RuntimeException ex) { in testTooManyEndObjectsWithoutData() 463 } catch (RuntimeException ex) { in testTrailingStartObjectWithData() 485 } catch (RuntimeException ex) { in testTrailingStartObjectWithoutData() 512 } catch (RuntimeException ex) { in testExtraStartObjectInMiddleWithData() 533 } catch (RuntimeException ex) { in testExtraStartObjectInMiddleWithoutData() 567 } catch (RuntimeException ex) { in testSwappedEndObjectWithData() 592 } catch (RuntimeException ex) { in testSwappedEndObjectWithoutData() 617 } catch (RuntimeException ex) { in testEndObjectMismatchError() 623 + " offset=10)", ex.getMessage()); in testEndObjectMismatchError() [all …]
|
D | ProtoOutputStreamBoolTest.java | 266 } catch (IllegalArgumentException ex) { in testBadFieldIds() 275 } catch (IllegalArgumentException ex) { in testBadFieldIds() 286 } catch (IllegalArgumentException ex) { in testBadFieldIds() 295 } catch (IllegalArgumentException ex) { in testBadFieldIds() 307 } catch (IllegalArgumentException ex) { in testBadFieldIds() 317 } catch (IllegalArgumentException ex) { in testBadFieldIds()
|
D | ProtoOutputStreamSInt32Test.java | 322 } catch (IllegalArgumentException ex) { in testBadFieldIds() 331 } catch (IllegalArgumentException ex) { in testBadFieldIds() 342 } catch (IllegalArgumentException ex) { in testBadFieldIds() 351 } catch (IllegalArgumentException ex) { in testBadFieldIds() 363 } catch (IllegalArgumentException ex) { in testBadFieldIds() 373 } catch (IllegalArgumentException ex) { in testBadFieldIds()
|
D | ProtoOutputStreamUInt32Test.java | 323 } catch (IllegalArgumentException ex) { in testBadFieldIds() 332 } catch (IllegalArgumentException ex) { in testBadFieldIds() 343 } catch (IllegalArgumentException ex) { in testBadFieldIds() 352 } catch (IllegalArgumentException ex) { in testBadFieldIds() 364 } catch (IllegalArgumentException ex) { in testBadFieldIds() 374 } catch (IllegalArgumentException ex) { in testBadFieldIds()
|
D | ProtoOutputStreamFixed32Test.java | 322 } catch (IllegalArgumentException ex) { in testBadFieldIds() 331 } catch (IllegalArgumentException ex) { in testBadFieldIds() 342 } catch (IllegalArgumentException ex) { in testBadFieldIds() 351 } catch (IllegalArgumentException ex) { in testBadFieldIds() 363 } catch (IllegalArgumentException ex) { in testBadFieldIds() 373 } catch (IllegalArgumentException ex) { in testBadFieldIds()
|
D | ProtoOutputStreamEnumTest.java | 351 } catch (IllegalArgumentException ex) { in testBadFieldIds() 360 } catch (IllegalArgumentException ex) { in testBadFieldIds() 371 } catch (IllegalArgumentException ex) { in testBadFieldIds() 380 } catch (IllegalArgumentException ex) { in testBadFieldIds() 392 } catch (IllegalArgumentException ex) { in testBadFieldIds() 402 } catch (IllegalArgumentException ex) { in testBadFieldIds()
|
D | ProtoOutputStreamSFixed32Test.java | 323 } catch (IllegalArgumentException ex) { in testBadFieldIds() 332 } catch (IllegalArgumentException ex) { in testBadFieldIds() 343 } catch (IllegalArgumentException ex) { in testBadFieldIds() 352 } catch (IllegalArgumentException ex) { in testBadFieldIds() 364 } catch (IllegalArgumentException ex) { in testBadFieldIds() 374 } catch (IllegalArgumentException ex) { in testBadFieldIds()
|
D | ProtoOutputStreamInt32Test.java | 338 } catch (IllegalArgumentException ex) { in testBadFieldIds() 347 } catch (IllegalArgumentException ex) { in testBadFieldIds() 358 } catch (IllegalArgumentException ex) { in testBadFieldIds() 367 } catch (IllegalArgumentException ex) { in testBadFieldIds() 379 } catch (IllegalArgumentException ex) { in testBadFieldIds() 389 } catch (IllegalArgumentException ex) { in testBadFieldIds()
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | MediaUtils.java | 345 public static boolean hasCodecForTrack(MediaExtractor ex, int track) { in hasCodecForTrack() argument 346 int count = ex.getTrackCount(); in hasCodecForTrack() 350 return canDecode(ex.getTrackFormat(track)); in hasCodecForTrack() 356 public static boolean hasCodecsForMedia(MediaExtractor ex) { in hasCodecsForMedia() argument 357 for (int i = 0; i < ex.getTrackCount(); ++i) { in hasCodecsForMedia() 358 MediaFormat format = ex.getTrackFormat(i); in hasCodecsForMedia() 374 public static boolean hasCodecForMediaAndDomain(MediaExtractor ex, String mimePrefix) { in hasCodecForMediaAndDomain() argument 376 for (int i = 0; i < ex.getTrackCount(); ++i) { in hasCodecForMediaAndDomain() 377 MediaFormat format = ex.getTrackFormat(i); in hasCodecForMediaAndDomain() 393 MediaExtractor ex = null; in hasCodecsForResourceCombo() local [all …]
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | MediaUtils.java | 424 public static boolean hasCodecForTrack(MediaExtractor ex, int track) { in hasCodecForTrack() argument 425 int count = ex.getTrackCount(); in hasCodecForTrack() 429 return canDecode(ex.getTrackFormat(track)); in hasCodecForTrack() 435 public static boolean hasCodecsForMedia(MediaExtractor ex) { in hasCodecsForMedia() argument 436 for (int i = 0; i < ex.getTrackCount(); ++i) { in hasCodecsForMedia() 437 MediaFormat format = ex.getTrackFormat(i); in hasCodecsForMedia() 453 public static boolean hasCodecForMediaAndDomain(MediaExtractor ex, String mimePrefix) { in hasCodecForMediaAndDomain() argument 455 for (int i = 0; i < ex.getTrackCount(); ++i) { in hasCodecForMediaAndDomain() 456 MediaFormat format = ex.getTrackFormat(i); in hasCodecForMediaAndDomain() 472 MediaExtractor ex = null; in hasCodecsForResourceCombo() local [all …]
|
/cts/tests/tests/print/src/android/print/cts/ |
D | PrinterInfoTest.java | 155 } catch (RuntimeException ex) { in createFirstMockPrinterDiscoverySessionCallbacks() 156 e = ex; in createFirstMockPrinterDiscoverySessionCallbacks() 174 } catch (RuntimeException ex) { in createFirstMockPrinterDiscoverySessionCallbacks() 175 e = ex; in createFirstMockPrinterDiscoverySessionCallbacks() 196 } catch (RuntimeException ex) { in createFirstMockPrinterDiscoverySessionCallbacks() 197 e = ex; in createFirstMockPrinterDiscoverySessionCallbacks() 219 } catch (RuntimeException ex) { in createFirstMockPrinterDiscoverySessionCallbacks() 220 e = ex; in createFirstMockPrinterDiscoverySessionCallbacks() 238 } catch (RuntimeException ex) { in createFirstMockPrinterDiscoverySessionCallbacks() 239 e = ex; in createFirstMockPrinterDiscoverySessionCallbacks()
|
/cts/hostsidetests/devicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/ |
D | BindDeviceAdminServiceGoodSetupTest.java | 90 } catch (IllegalArgumentException ex) { in testCannotBind_implicitIntent() 91 MoreAsserts.assertContainsRegex("Service intent must be explicit", ex.getMessage()); in testCannotBind_implicitIntent() 117 } catch (SecurityException ex) { in testCannotBind_unprotectedCrossUserService() 119 "must be protected by BIND_DEVICE_ADMIN", ex.getMessage()); in testCannotBind_unprotectedCrossUserService() 134 } catch (SecurityException ex) { in testCheckCannotBind_nonManagingPackage() 135 MoreAsserts.assertContainsRegex("Only allow to bind service", ex.getMessage()); in testCheckCannotBind_nonManagingPackage() 148 } catch (IllegalArgumentException ex) { in testCannotBind_sameUser() 149 MoreAsserts.assertContainsRegex("target user id must be different", ex.getMessage()); in testCannotBind_sameUser()
|
/cts/tests/signature/lib/android/src/android/signature/cts/ |
D | DexMemberChecker.java | 48 } catch (Exception ex) { in call_VMDebug_allowHiddenApiReflectionFrom() 50 throw new RuntimeException(ex); in call_VMDebug_allowHiddenApiReflectionFrom() 55 } catch (InvocationTargetException ex) { in call_VMDebug_allowHiddenApiReflectionFrom() 57 Throwable cause = ex.getCause(); in call_VMDebug_allowHiddenApiReflectionFrom() 71 } catch (SecurityException ex) { in requestExemptionFromHiddenApiChecks() 156 } catch (ClassNotFoundException ex) { in findClass() 165 } catch (NoSuchFieldException ex) { in hasMatchingField_Reflection()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | MessageQueueTest.java | 143 } catch (InterruptedException ex) { } in testIsIdle() 231 } catch (IllegalArgumentException ex) { in testRegisterFileDescriptorCallbackThrowsWhenFdIsNull() 244 } catch (IllegalArgumentException ex) { in testRegisterFileDescriptorCallbackThrowsWhenCallbackIsNull() 255 } catch (IllegalArgumentException ex) { in testUnregisterFileDescriptorCallbackThrowsWhenFdIsNull() 308 } catch (IOException ex) { in testFileDescriptorCallbacks() 309 throw new RuntimeException(ex); in testFileDescriptorCallbacks() 344 } catch (IOException ex) { in testFileDescriptorCallbacks() 345 throw new RuntimeException(ex); in testFileDescriptorCallbacks() 680 } catch (IOException ex) { in testPathologicalFileDescriptorReuseCallbacks4() 681 throw new RuntimeException(ex); in testPathologicalFileDescriptorReuseCallbacks4() [all …]
|
D | AbiTest.java | 81 } catch (IOException ex) { in checkElfFilesInDirectory() 82 Throwable cause = ex.getCause(); in checkElfFilesInDirectory() 86 throw ex; in checkElfFilesInDirectory()
|
/cts/tests/app/src/android/app/cts/ |
D | PendingIntent_CanceledExceptionTest.java | 41 Exception ex = new Exception(); in testConstructor() local 42 canceledException = new PendingIntent.CanceledException(ex); in testConstructor() 46 assertSame(ex, e.getCause()); in testConstructor()
|
/cts/hostsidetests/media/bitstreams/app/src/android/media/cts/bitstreams/app/ |
D | MediaBitstreamsDeviceSideTest.java | 255 MediaExtractor ex = new MediaExtractor(); in getDecodersForPath() local 257 ex.setDataSource(path); in getDecodersForPath() 258 MediaFormat format = ex.getTrackFormat(0); in getDecodersForPath() 267 ex.release(); in getDecodersForPath() 319 MediaExtractor ex = new MediaExtractor(); in verifyBitstream() local 332 ex.setDataSource(path); in verifyBitstream() 333 ex.selectTrack(0); in verifyBitstream() 334 ex.seekTo(0, MediaExtractor.SEEK_TO_NEXT_SYNC); in verifyBitstream() 335 return MediaUtils.verifyDecoder(decoder, ex, frameChecksums); in verifyBitstream() 342 ex.release(); in verifyBitstream()
|
/cts/tests/app/app/src/android/app/stubs/ |
D | SearchManagerStubActivity.java | 155 private void fail(Exception ex) { in fail() argument 156 Log.e(TAG, "test failed", ex); in fail() 214 } catch (FailException ex) { in handleMessage() 215 fail(ex); in handleMessage()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/ |
D | AsyncUtils.java | 61 Throwable ex = awaitFailure(f, time, timeUnit); in awaitCancellation() local 62 Throwable current = ex; in awaitCancellation() 69 throw new AssertionError("Expected cancellation", ex); in awaitCancellation()
|