Home
last modified time | relevance | path

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

123456

/tools/acloud/internal/lib/
Dbase_cloud_client.py101 def _ShouldRetry(exception, retry_http_codes, argument
115 if isinstance(exception, other_retriable_errors):
118 if isinstance(exception, errors.HttpError):
119 if exception.code in retry_http_codes:
122 exception.code, retry_http_codes, str(exception))
125 type(exception),
127 str(exception))
131 def _TranslateError(exception): argument
144 if isinstance(exception, gerrors.HttpError):
145 exception = errors.HttpError.CreateFromHttpError(exception)
[all …]
/tools/metalava/metalava-model-text/src/test/java/com/android/tools/metalava/model/text/
DApiFileTest.kt38 val exception = in <lambda>() constant
68 assertThat(exception.message) in <lambda>()
111 val exception = in <lambda>() constant
113 assertSame(throwable, exception.erasedClass) in <lambda>()
146 val exception = in <lambda>() constant
148 assertSame(error, exception.erasedClass) in <lambda>()
171 val exception = in <lambda>() constant
173 assertSame(throwable, exception.erasedClass) in <lambda>()
205 val exception = in <lambda>() constant
207 assertSame(unknownExceptionClass, exception.erasedClass) in <lambda>()
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/
Dabstract_inst.py83 self._logger.exception(errmsg)
88 self._logger.exception(errmsg)
112 self._logger.exception(errmsg)
118 self._logger.exception(errmsg)
124 self._logger.exception(errmsg)
150 self._logger.exception(errmsg)
155 self._logger.exception(errmsg)
161 self._logger.exception(errmsg)
185 self._logger.exception(errmsg)
/tools/tradefederation/core/javatests/com/android/tradefed/invoker/
DInvocationExecutionTest.java448 Throwable exception = new Throwable("Original error"); in testDoTearDown() local
449 mExec.doTeardown(testInfo, mConfig, mMockLogger, exception); in testDoTearDown()
464 inOrder.verify(stub4).tearDown(testInfo, exception); in testDoTearDown()
466 inOrder.verify(stub3).tearDown(testInfo, exception); in testDoTearDown()
471 inOrder.verify(stub2).tearDown(testInfo, exception); in testDoTearDown()
473 inOrder.verify(stub1).tearDown(testInfo, exception); in testDoTearDown()
519 Throwable exception = new Throwable("Original error"); in testDoTearDown_multiDevice() local
520 mExec.doTeardown(testInfo, mConfig, mMockLogger, exception); in testDoTearDown_multiDevice()
549 Throwable exception = new Throwable("Original error"); in testDoTearDown_logger() local
554 mExec.doTeardown(testInfo, mConfig, logger, exception); in testDoTearDown_logger()
[all …]
DTestInvocationTest.java955 BuildRetrievalError exception = in testInvoke_buildFailed() local
957 when(mMockBuildProvider.getBuild()).thenThrow(exception); in testInvoke_buildFailed()
961 stubMockFailureListeners(exception); in testInvoke_buildFailed()
996 verifyMockFailureListeners(exception); in testInvoke_buildFailed()
1181 IllegalArgumentException exception = new IllegalArgumentException("testInvoke_testFail"); in testInvoke_testFail() local
1186 stubMockFailureListeners(exception); in testInvoke_testFail()
1189 doThrow(exception).when(test).run(Mockito.any(), Mockito.any()); in testInvoke_testFail()
1198 verify(mMockPreparer).tearDown(Mockito.any(), Mockito.eq(exception)); in testInvoke_testFail()
1199 verifyMockFailureListeners(exception); in testInvoke_testFail()
1241 FatalHostError exception = new FatalHostError("testInvoke_fatalError"); in testInvoke_fatalError() local
[all …]
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DGranularRetriableTestWrapper.java349 DeviceNotAvailableException exception = null; in intraModuleRun() local
419 exception = dnae; in intraModuleRun()
425 return exception; in intraModuleRun()
484 private FailureDescription createFromException(Throwable exception) { in createFromException() argument
486 (exception.getMessage() == null) in createFromException()
489 StreamUtil.getStackTrace(exception)) in createFromException()
490 : exception.getMessage(); in createFromException()
492 CurrentInvocation.createFailure(message, null).setCause(exception); in createFromException()
493 if (exception instanceof IHarnessException) { in createFromException()
494 ErrorIdentifier id = ((IHarnessException) exception).getErrorId(); in createFromException()
[all …]
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/cli/compatibility/
DCompatibilityCheckOptionsTest.kt169 val exception = in check compatibility api released mixture of signature and jar() constant
181 assertThat(exception.message) in check compatibility api released mixture of signature and jar()
191 val exception = in check compatibility api removed does not support jar file() constant
197 assertThat(exception.message) in check compatibility api removed does not support jar file()
217 val exception = in check compatibility api released jar is not supported for --revert-annotation() constant
222 assertThat(exception.message) in check compatibility api released jar is not supported for --revert-annotation()
/tools/repohooks/tools/
Dclang-format_unittest.py69 self.assertIn('clang-format failed', e.exception.stderr)
82 self.assertIn('clang-format failed', e.exception.stderr)
89 self.assertIn('clang-format failed', e.exception.stderr)
96 self.assertIn('clang-format failed', e.exception.stderr)
104 e.exception.stderr)
/tools/tradefederation/core/src/com/android/tradefed/invoker/
DTestInvocation.java274 Throwable exception = null; in performInvocation() local
290 exception = e; in performInvocation()
305 exception = e; in performInvocation()
317 exception = e; in performInvocation()
340 exception = e; in performInvocation()
349 exception = e; in performInvocation()
354 exception = t; in performInvocation()
386 if (exception == null && !SystemUtil.isLocalMode()) { in performInvocation()
387 exception = mUnavailableMonitor.getUnavailableException(); in performInvocation()
388 if (exception != null) { in performInvocation()
[all …]
DIInvocationExecution.java103 IInvocationContext context, IConfiguration config, Throwable exception) {} in runDevicePostInvocationTearDown() argument
119 Throwable exception) in doTeardown() argument
131 IInvocationContext context, IConfiguration config, Throwable exception) {} in doCleanUp() argument
DInvocationExecution.java824 IInvocationContext context, IConfiguration config, Throwable exception) { in runDevicePostInvocationTearDown() argument
841 device.postInvocationTearDown(exception); in runDevicePostInvocationTearDown()
940 Throwable exception) in doTeardown() argument
955 exception, in doTeardown()
971 exception, in doTeardown()
981 if (exception == null) { in doTeardown()
982 exception = deferredThrowable; in doTeardown()
1003 exception, in doTeardown()
1013 if (exception == null) { in doTeardown()
1014 exception = deferredThrowable; in doTeardown()
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/
Dapollo_lib.py377 logging.exception('Pair cmd failed')
404 logging.exception('panic cmd failed')
419 logging.exception('{} cmd failed'.format(cmd))
432 logging.exception('{} cmd failed'.format(cmd))
599 logging.exception('LED cmd failed')
631 logging.exception('ButtonSwipe cmd failed')
639 logging.exception('menu cmd failed')
666 logging.exception('OHD cmd failed')
695 logging.exception(logmsg)
745 logging.exception('avrcp cmd failed')
[all …]
/tools/ndkports/buildSrc/src/main/kotlin/com/android/ndkports/
DPrefabSysrootPlugin.kt45 src.copyRecursively(dest) { file, exception -> in <lambda>() method
46 if (exception !is FileAlreadyExistsException) { in <lambda>()
47 throw exception in <lambda>()
50 if (!file.readBytes().contentEquals(exception.file.readBytes())) { in <lambda>()
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/xml/
DXml.kt74 override fun warning(exception: SAXParseException) { in parseDocument()
78 override fun error(exception: SAXParseException) { in parseDocument()
82 override fun fatalError(exception: SAXParseException) { in parseDocument()
83 error(exception) in parseDocument()
/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/
DTargetSetupErrorTest.java47 TargetSetupError exception = new TargetSetupError("reason", new DeviceDescriptor()); in testSerialization() local
48 File s = SerializationUtil.serialize(exception); in testSerialization()
77 TargetSetupError exception = new TargetSetupError("reason", descriptor); in testSerialization_withIDevice() local
78 File s = SerializationUtil.serialize(exception); in testSerialization_withIDevice()
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/cli/common/
DPreviouslyReleasedApiTest.kt76 val exception = in check multiple jar files() constant
83 assertThat(exception.message) in check multiple jar files()
95 val exception = in check mixture of signature and jar() constant
103 assertThat(exception.message) in check mixture of signature and jar()
/tools/trebuchet/core/common/src/test/kotlin/trebuchet/importers/
DDummyImportFeedback.kt22 override fun reportImportException(exception: Throwable) { } in reportImportException()
28 override fun reportImportException(exception: Throwable) { in reportImportException()
29 throw exception in reportImportException()
/tools/test/connectivity/acts/framework/tests/libs/logging/
Dlog_stream_test.py89 'has been set multiple' in catch.exception.args[0],
106 'More than one of' in catch.exception.args[0],
115 'More than one of' in catch.exception.args[0],
125 'More than one of' in catch.exception.args[0],
140 'log level' in catch.exception.args[0],
155 'log location' in catch.exception.args[0],
175 'log type' in catch.exception.args[0],
/tools/tradefederation/core/src/com/android/tradefed/invoker/sandbox/
DParentSandboxInvocationExecution.java165 Throwable exception) in doTeardown() argument
169 super.doTeardown(testInfo, config, logger, exception); in doTeardown()
173 public void doCleanUp(IInvocationContext context, IConfiguration config, Throwable exception) { in doCleanUp() argument
175 super.doCleanUp(context, config, exception); in doCleanUp()
219 IInvocationContext context, IConfiguration config, Throwable exception) { in runDevicePostInvocationTearDown() argument
221 super.runDevicePostInvocationTearDown(context, config, exception); in runDevicePostInvocationTearDown()
/tools/test/connectivity/acts_tests/tests/google/ble/concurrency/
DConcurrentBleScanningTest.py100 self.log.exception("Test failed with Empty error: {}".format(
104 self.log.exception(
197 self.log.exception("Test failed with Empty error: {}".format(
201 self.log.exception("Test failed, filtering callback onSuccess "
328 self.log.exception("Test failed with Empty error: {}".format(
332 self.log.exception(
/tools/dexter/testdata/expected/
Dmethod_handles.asm55 43| move-exception v1
59 45| move-exception v1
1273 515| move-exception v0
1282 528| move-exception v0
1293 541| move-exception v0
1306 554| move-exception v0
1321 567| move-exception v0
1338 580| move-exception v0
1355 593| move-exception v0
1368 606| move-exception v0
[all …]
/tools/test/connectivity/acts/framework/tests/controllers/monsoon_lib/sampling/engine/
Dassembly_line_test.py104 self.assertIn('single source', context.exception.args[0])
142 self.assertIn('source', context.exception.args[0])
154 self.assertIn('built', context.exception.args[0])
197 self.assertIn('already built', context.exception.args[0])
206 self.assertIn('empty', context.exception.args[0])
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/
DKotlinInteropChecks.kt108 for (exception in exceptions.sortedBy { it.qualifiedName() }) { in <lambda>() method
110 !(exception.extends("java.lang.RuntimeException") || in <lambda>()
111 exception.extends("java.lang.Error")) in <lambda>()
119 if (source.endsWith(exception.simpleName() + "::class")) { in <lambda>()
131 if (!doc.contains(exception.simpleName())) { in <lambda>()
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/apilevels/
DApiGeneratorTest.kt284 var exception: IllegalStateException? = null in <lambda>() variable
314 exception = e in <lambda>()
317 assertNotNull(exception) in <lambda>()
318 assertThat(exception?.message ?: "") in <lambda>()
322 assertThat(exception?.message ?: "") in <lambda>()
/tools/tradefederation/core/src/com/android/tradefed/device/internal/
DDeviceSnapshotHandler.java100 IHarnessException exception = (IHarnessException) o; in snapshotDevice() local
102 "Exception while snapshotting the device.", exception); in snapshotDevice()
172 IHarnessException exception = (IHarnessException) o; in restoreSnapshotDevice() local
174 "Exception while restoring snapshot of the device.", exception); in restoreSnapshotDevice()

123456