Home
last modified time | relevance | path

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

12

/cts/tests/tests/car/src/android/car/cts/
DExceptionsTest.java27 CarNotConnectedException exception = new CarNotConnectedException(); in testCarNotConnectedException() local
28 assertNull(exception.getMessage()); in testCarNotConnectedException()
29 assertNull(exception.getCause()); in testCarNotConnectedException()
31 exception = new CarNotConnectedException(MESSAGE); in testCarNotConnectedException()
32 assertEquals(MESSAGE, exception.getMessage()); in testCarNotConnectedException()
33 assertNull(exception.getCause()); in testCarNotConnectedException()
35 exception = new CarNotConnectedException(MESSAGE, CAUSE); in testCarNotConnectedException()
36 assertEquals(MESSAGE, exception.getMessage()); in testCarNotConnectedException()
37 assertEquals(CAUSE, exception.getCause()); in testCarNotConnectedException()
39 exception = new CarNotConnectedException(CAUSE); in testCarNotConnectedException()
[all …]
/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/tests/tests/os/src/android/os/cts/
DAsyncTaskTest.java71 if (mAsyncTask.exception != null) { in doTestAsyncTask()
72 throw mAsyncTask.exception; in doTestAsyncTask()
108 assertNotNull(mAsyncTask.exception); in testCancelWithInterrupt()
109 assertTrue(mAsyncTask.exception instanceof InterruptedException); in testCancelWithInterrupt()
121 assertNull(mAsyncTask.exception); in testCancel()
130 assertNull(mAsyncTask.exception); in testCancelTooLate()
148 public Exception exception; field in AsyncTaskTest.MyAsyncTask
161 exception = e; in doInBackground()
/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/tests/media/src/android/media/cts/
DExtractDecodeEditEncodeMuxTest.java298 Exception exception = null; in extractDecodeEditEncodeMux() local
411 if (exception == null) { in extractDecodeEditEncodeMux()
412 exception = e; in extractDecodeEditEncodeMux()
421 if (exception == null) { in extractDecodeEditEncodeMux()
422 exception = e; in extractDecodeEditEncodeMux()
432 if (exception == null) { in extractDecodeEditEncodeMux()
433 exception = e; in extractDecodeEditEncodeMux()
442 if (exception == null) { in extractDecodeEditEncodeMux()
443 exception = e; in extractDecodeEditEncodeMux()
453 if (exception == null) { in extractDecodeEditEncodeMux()
[all …]
DDecodeAccuracyTestBase.java221 } catch (IllegalStateException exception) { in decodeFramesAndDisplay()
222 Log.e(TAG, "IllegalStateException in decodeFramesAndDisplay " + exception); in decodeFramesAndDisplay()
238 } catch (IOException exception) { in setExtractorDataSource()
239 Log.e(TAG, "IOException in setDataSource", exception); in setExtractorDataSource()
250 } catch (Exception exception) { in configureDecoder()
251 if (exception instanceof IOException) { in configureDecoder()
252 Log.e(TAG, "IOException in createDecoderByType", exception); in configureDecoder()
254 && exception instanceof CodecException) { in configureDecoder()
255 Log.e(TAG, "CodecException in createDecoderByType", exception); in configureDecoder()
258 Log.e(TAG, "Unknown exception in createDecoderByType", exception); in configureDecoder()
[all …]
DMidiSoloTest.java171 IOException exception = null; in testMidiReceiverException() local
180 exception = e; in testMidiReceiverException()
182 assertTrue("We should have caught an IOException", exception != null); in testMidiReceiverException()
/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/net/src/android/net/cts/
DLocalSocketTest.java260 private volatile Exception exception; field in LocalSocketTest.StreamReader
280 exception = e; in run()
290 if (exception != null) { in waitForCompletion()
291 throw new Exception("Read failed", exception); in waitForCompletion()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityWindowReportingTest.java92 } catch (TimeoutException exception) { in testGetAnchorForDropDownForAutoCompleteTextView_returnsTextViewNode()
94 "Failed to get window changed event when showing dropdown", exception); in testGetAnchorForDropDownForAutoCompleteTextView_returnsTextViewNode()
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DDeviceInfo.java133 private void error(String message, Throwable exception) { in error() argument
136 Log.e(LOG_TAG, message, exception); in error()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/move_exception/d/
DT_move_exception_3.d25 move-exception v6
DT_move_exception_1.d39 move-exception v3
DT_move_exception_2.d39 move-exception v3
DT_move_exception_5.d40 move-exception v3
/cts/apps/CtsVerifier/src/com/android/cts/verifier/backup/
DBackupTestActivity.java222 protected void onPostExecute(Exception exception) { in onPostExecute() argument
223 super.onPostExecute(exception); in onPostExecute()
224 if (exception != null) { in onPostExecute()
225 Log.e(TAG, "Couldn't generate test data...", exception); in onPostExecute()
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/sensoroperations/
DParallelSensorOperation.java179 for (Throwable exception : exceptions) { in getSummaryMessage()
180 sb.append(exception.toString()).append(", "); in getSummaryMessage()
/cts/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/targetprep/
DReportLogCollector.java108 } catch (Exception exception) { in tearDown()
109 exception.printStackTrace(); in tearDown()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/monitor_exit/d/
DT_monitor_exit_3.d38 move-exception v1
/cts/tests/app/app/src/android/app/stubs/
DAppStubActivity.java55 } catch (Throwable exception) { in finalize()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/monitor_enter/d/
DT_monitor_enter_1.d57 move-exception v3
DT_monitor_enter_2.d69 move-exception v4
/cts/tests/tests/netsecpolicy/src/android/security/
DNetworkSecurityPolicyTestBase.java297 public void setException(Throwable exception) { in setException() argument
300 mException = exception; in setException()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/
DMtpHostTestActivity.java196 } catch (Exception | AssertionFailedError exception) { in handleMessage()
197 mHandler.sendMessage(mHandler.obtainMessage(MESSAGE_FAIL, exception)); in handleMessage()
/cts/tests/signature/src/android/signature/cts/
DJDiffClassDescription.java1244 private static void loge(String message, Exception exception) { in loge() argument
1245 System.err.println(String.format("%s: %s", message, exception)); in loge()

12