Home
last modified time | relevance | path

Searched refs:exception (Results 1 – 25 of 49) sorted by relevance

12

/cts/tests/tests/car/src/android/car/cts/
DExceptionsTest.java31 CarNotConnectedException exception = new CarNotConnectedException(); in testCarNotConnectedException() local
32 assertNull(exception.getMessage()); in testCarNotConnectedException()
33 assertNull(exception.getCause()); in testCarNotConnectedException()
35 exception = new CarNotConnectedException(MESSAGE); in testCarNotConnectedException()
36 assertEquals(MESSAGE, exception.getMessage()); in testCarNotConnectedException()
37 assertNull(exception.getCause()); in testCarNotConnectedException()
39 exception = new CarNotConnectedException(MESSAGE, CAUSE); in testCarNotConnectedException()
40 assertEquals(MESSAGE, exception.getMessage()); in testCarNotConnectedException()
41 assertEquals(CAUSE, exception.getCause()); in testCarNotConnectedException()
43 exception = new CarNotConnectedException(CAUSE); in testCarNotConnectedException()
[all …]
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/NormalApp/src/com/android/cts/normalapp/
DExposedService.java33 String exception = null; in onBind() local
37 exception = t.getClass().getName(); in onBind()
44 .setException(exception) in onBind()
54 String exception = null; in onStartCommand() local
58 exception = t.getClass().getName(); in onStartCommand()
65 .setException(exception) in onStartCommand()
DNormalService.java37 String exception = null; in onStartCommand() local
41 exception = t.getClass().getName(); in onStartCommand()
48 .setException(exception) in onStartCommand()
DExposedActivity.java41 String exception = null; in onCreate() local
45 exception = t.getClass().getName(); in onCreate()
52 .setException(exception) in onCreate()
DNormalWebActivity.java43 String exception = null; in onCreate() local
47 exception = t.getClass().getName(); in onCreate()
54 .setException(exception) in onCreate()
DNormalActivity.java50 String exception = null; in onCreate() local
54 exception = t.getClass().getName(); in onCreate()
61 .setException(exception) in onCreate()
DExposedProvider.java55 String exception = null; in query() local
59 exception = t.getClass().getName(); in query()
66 .setException(exception) in query()
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageManager_NameNotFoundExceptionTest.java27 PackageManager.NameNotFoundException exception = new PackageManager.NameNotFoundException(); in testNameNotFoundException() local
29 throw exception; in testNameNotFoundException()
35 exception = new PackageManager.NameNotFoundException(message); in testNameNotFoundException()
37 throw exception; in testNameNotFoundException()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DBroadcastRpcBase.java87 final String exception = responseBundle.get().getString(EXTRA_EXCEPTION); in invoke() local
88 if (exception != null) { in invoke()
90 + "\nException: " + exception); in invoke()
114 Throwable exception = null; in onReceive() local
122 exception = e; in onReceive()
131 if (exception != null) { in onReceive()
133 exception.toString() + "\n" + Log.getStackTraceString(exception)); in onReceive()
/cts/tools/dasm/src/dasm/
DDasmCatchBuilder.java62 UnprocessedCatch(String exception, String from, String to, in UnprocessedCatch() argument
66 add(exception, branch); in UnprocessedCatch()
82 void add(String exception, String branch) { in add() argument
84 if (exception.compareToIgnoreCase("all") == 0) in add()
87 type = CstType.intern(Type.internClassName(exception)); in add()
92 "Bad .catch directive: same exception (" + exception in add()
149 public void add(String exception, String start, String end, String branch) { in add() argument
161 uc.add(exception, branch); in add()
166 unprocessed_catches.add(new UnprocessedCatch(exception, start, end, in add()
/cts/tests/signature/src/android/signature/cts/
DLogHelper.java22 static void loge(String message, Exception exception) { in loge() argument
23 System.err.println(String.format("%s: %s", message, exception)); in loge()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DRetryRuleTest.java43 RetryableStatement(int numberFailures, T exception) { in RetryableStatement() argument
45 mException = exception; in RetryableStatement()
72 final RetryableException exception = new RetryableException(timeout, "Y U NO?"); in testPassOnRetryableExceptionWithTimeout() local
74 rule.apply(new RetryableStatement<RetryableException>(1, exception), mDescription) in testPassOnRetryableExceptionWithTimeout()
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/ImplicitlyExposedApp/src/com/android/cts/implicitapp/
DImplicitActivity.java40 String exception = null; in onCreate() local
44 exception = t.getClass().getName(); in onCreate()
51 .setException(exception) in onCreate()
/cts/tests/tests/os/src/android/os/cts/
DAsyncTaskTest.java75 if (mMyAsyncTask.exception != null) { in doTestAsyncTask()
76 throw mMyAsyncTask.exception; in doTestAsyncTask()
112 assertNotNull(mMyAsyncTask.exception); in testCancelWithInterrupt()
113 assertTrue(mMyAsyncTask.exception instanceof InterruptedException); in testCancelWithInterrupt()
125 assertNull(mMyAsyncTask.exception); in testCancel()
134 assertNull(mMyAsyncTask.exception); in testCancelTooLate()
230 public Exception exception; field in AsyncTaskTest.MyAsyncTask
243 exception = e; in doInBackground()
DCtsRemoteService.java51 } catch (IOException exception) {
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/util/src/com/android/cts/util/
DTestResult.java88 String status, String exception, Intent intent, in TestResult() argument
94 mException = exception; in TestResult()
139 private String exception; field in TestResult.Builder
162 exception = _exception; in setException()
175 status, exception, intent, instantAppPackageInfoExposed); in build()
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DDeviceInfo.java141 private void error(String message, Throwable exception) { in error() argument
144 Log.e(LOG_TAG, message, exception); in error()
147 private void failed(String message, Throwable exception) { in failed() argument
150 Log.e(LOG_TAG, message, exception); in failed()
/cts/tests/tests/media/src/android/media/cts/
DExtractDecodeEditEncodeMuxTest.java300 Exception exception = null; in extractDecodeEditEncodeMux() local
413 if (exception == null) { in extractDecodeEditEncodeMux()
414 exception = e; in extractDecodeEditEncodeMux()
423 if (exception == null) { in extractDecodeEditEncodeMux()
424 exception = e; in extractDecodeEditEncodeMux()
434 if (exception == null) { in extractDecodeEditEncodeMux()
435 exception = e; in extractDecodeEditEncodeMux()
444 if (exception == null) { in extractDecodeEditEncodeMux()
445 exception = e; in extractDecodeEditEncodeMux()
455 if (exception == null) { in extractDecodeEditEncodeMux()
[all …]
DDecodeAccuracyTestBase.java255 } catch (IllegalStateException exception) { in decodeFramesAndPlay()
256 Log.e(TAG, "IllegalStateException in queueDecoderInputBuffer", exception); in decodeFramesAndPlay()
286 } catch (IllegalStateException exception) { in decodeFramesAndPlay()
287 Log.e(TAG, "IllegalStateException in dequeueDecoderOutputBuffer", exception); in decodeFramesAndPlay()
372 } catch (IOException exception) { in setExtractorDataSource()
373 Log.e(TAG, "IOException in setDataSource", exception); in setExtractorDataSource()
406 } catch (Exception exception) { in createDecoder()
407 Log.e(TAG, "Exception during decoder creation", exception); in createDecoder()
417 } catch (Exception exception) { in configureDecoder()
418 Log.e(TAG, "Exception during decoder configuration", exception); in configureDecoder()
[all …]
DMidiSoloTest.java174 IOException exception = null; in testMidiReceiverException() local
183 exception = e; in testMidiReceiverException()
185 assertTrue("We should have caught an IOException", exception != null); in testMidiReceiverException()
/cts/tests/tests/webkit/src/android/webkit/cts/
DTestProcessClient.java106 Throwable exception; in run() local
117 exception = mLastException; in run()
121 throw exception; in run()
/cts/tests/tests/net/src/android/net/cts/
DLocalSocketTest.java216 return Result.exception(e); in testSetSoTimeout_readTimeout()
251 return Result.exception(e); in testSetSoTimeout_writeTimeout()
371 private volatile Exception exception; field in LocalSocketTest.StreamReader
391 exception = e; in run()
401 if (exception != null) { in waitForCompletion()
402 throw new Exception("Read failed", exception); in waitForCompletion()
424 static Result exception(Exception e) { in exception() method in LocalSocketTest.Result
/cts/tools/device-setup/TestDeviceSetup/src/android/tests/getinfo/
DDeviceInfoInstrument.java283 } catch (Exception exception) { in getFeatures()
284 Log.e(TAG, "Error getting features: " + exception.getMessage(), exception); in getFeatures()
330 } catch (Exception exception) { in getProcesses()
331 Log.e(TAG, "Error getting processes: " + exception.getMessage(), exception); in getProcesses()
332 builder.append(exception.getMessage()); in getProcesses()
/cts/tests/tests/secure_element/omapi/src/android/omapi/cts/
DOmapiTest.java358 boolean exception = false; in testNonSelectableAid()
366 exception = true; in testNonSelectableAid()
373 assertTrue(exception); in testNonSelectableAid()
379 boolean exception = false; in testSecurityExceptionInTransmit()
399 exception = false; in testSecurityExceptionInTransmit()
402 exception = true; in testSecurityExceptionInTransmit()
404 assertTrue(exception); in testSecurityExceptionInTransmit()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/move_exception/d/
DT_move_exception_3.d25 move-exception v6

12