Home
last modified time | relevance | path

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

1234567

/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/src/main/java/com/android/tools/metalava/config/
DConfigParser.kt47 private fun recordParseException(exception: SAXParseException) { in <lambda>()
50 append(exception.systemId) in <lambda>()
52 append(exception.lineNumber) in <lambda>()
54 append(exception.message) in <lambda>()
59 override fun warning(exception: SAXParseException) { in <lambda>()
60 recordParseException(exception) in <lambda>()
63 override fun error(exception: SAXParseException) { in <lambda>()
64 recordParseException(exception) in <lambda>()
/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/metalava/metalava-model-text/src/test/java/com/android/tools/metalava/model/text/
DApiFileTest.kt116 val exception = in <lambda>() constant
118 assertSame(throwable, exception.erasedClass) in <lambda>()
151 val exception = in <lambda>() constant
153 assertSame(error, exception.erasedClass) in <lambda>()
176 val exception = in <lambda>() constant
178 assertSame(throwable, exception.erasedClass) in <lambda>()
211 val exception = in <lambda>() constant
213 assertSame(unknownExceptionClass, exception.erasedClass) in <lambda>()
218 fun `Test unknown custom exception from other codebase`() { in <lambda>()
247 val exception = in <lambda>() constant
[all …]
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/cli/common/
DPreviouslyReleasedApiTest.kt67 val exception = in fakeJar() constant
71 assertThat(exception.message) in fakeJar()
81 val exception = in check multiple jar files() constant
88 assertThat(exception.message) in check multiple jar files()
100 val exception = in check mixture of signature and jar() constant
108 assertThat(exception.message) in check mixture of signature and jar()
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/apilevels/
DPatternNodeTest.kt58 val exception = in Invalid no API placeholder() constant
62 exception.message in Invalid no API placeholder()
73 val exception = in Invalid multiple version placeholders() constant
77 exception.message in Invalid multiple version placeholders()
88 val exception = in Invalid multiple module placeholders() constant
92 exception.message in Invalid multiple module placeholders()
103 val exception = in Unknown placeholder() constant
107 exception.message in Unknown placeholder()
413 val exception = in Check pattern with version extension includes module() constant
417 exception.message in Check pattern with version extension includes module()
[all …]
/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/metalava/metalava/src/test/java/com/android/tools/metalava/cli/compatibility/
DCompatibilityCheckOptionsTest.kt151 val exception = in fakeJar() constant
158 assertThat(exception.message) in fakeJar()
170 val exception = in check compatibility api released mixture of signature and jar() constant
182 assertThat(exception.message) in check compatibility api released mixture of signature and jar()
192 val exception = in check compatibility api removed does not support jar file() constant
198 assertThat(exception.message) in check compatibility api removed does not support jar file()
/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/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/invoker/
DInvocationExecutionTest.java449 Throwable exception = new Throwable("Original error"); in testDoTearDown() local
450 mExec.doTeardown(testInfo, mConfig, mMockLogger, exception); in testDoTearDown()
465 inOrder.verify(stub4).tearDown(testInfo, exception); in testDoTearDown()
467 inOrder.verify(stub3).tearDown(testInfo, exception); in testDoTearDown()
472 inOrder.verify(stub2).tearDown(testInfo, exception); in testDoTearDown()
474 inOrder.verify(stub1).tearDown(testInfo, exception); in testDoTearDown()
520 Throwable exception = new Throwable("Original error"); in testDoTearDown_multiDevice() local
521 mExec.doTeardown(testInfo, mConfig, mMockLogger, exception); in testDoTearDown_multiDevice()
550 Throwable exception = new Throwable("Original error"); in testDoTearDown_logger() local
555 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/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/
DApiLevelsGenerationOptionsTest.kt191 val exception = in Test --api-version-signature-pattern without --current-version() constant
193 assertThat(exception.message) in Test --api-version-signature-pattern without --current-version()
217 val exception = in Test --api-version-signature-pattern with no matching pattern() constant
219 assertThat(cleanupString(exception.message!!)) in Test --api-version-signature-pattern with no matching pattern()
391 val exception = in Test no extension jar files found in forAndroidConfig() constant
396 assertThat(exception.message) in Test no extension jar files found in forAndroidConfig()
421 val exception = in Test do not mix signature and android jar patterns in forAndroidConfig() constant
424 assertThat(exception.message) in Test do not mix signature and android jar patterns in forAndroidConfig()
DPostAnalysisCheckerTest.kt33 val exception = in Test post analysis check test failure fails the check method() constant
51 assertIs<AssertionError>(exception) in Test post analysis check test failure fails the check method()
52 assertEquals("Check failure", exception.message) in Test post analysis check test failure fails the check method()
DApiSelectionOptionsTest.kt95 val exception = assertThrows(MetalavaCliException::class.java) { body() } in assertThrowsCliError() constant
96 assertThat(exception.message).isEqualTo(expectedMessage) in assertThrowsCliError()
128 val exception = assertThrows(IllegalStateException::class.java) { options.apiSurfaces } in Test configuring API surfaces invalid --api-surface option() constant
129 assertThat(exception.message) in Test configuring API surfaces invalid --api-surface option()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DGranularRetriableTestWrapper.java367 DeviceNotAvailableException exception = null; in intraModuleRun() local
441 exception = dnae; in intraModuleRun()
447 return exception; in intraModuleRun()
506 private FailureDescription createFromException(Throwable exception) { in createFromException() argument
508 (exception.getMessage() == null) in createFromException()
511 StreamUtil.getStackTrace(exception)) in createFromException()
512 : exception.getMessage(); in createFromException()
514 CurrentInvocation.createFailure(message, null).setCause(exception); in createFromException()
515 if (exception instanceof IHarnessException) { in createFromException()
516 ErrorIdentifier id = ((IHarnessException) exception).getErrorId(); in createFromException()
[all …]
/tools/metalava/metalava-model/src/test/java/com/android/tools/metalava/model/api/surface/
DApiSurfacesTest.kt61 val exception = in Test with no main() constant
65 assertEquals("No call to createSurface() set isMain to true", exception.message) in Test with no main()
70 val exception = in Test with two mains() constant
79 exception.message in Test with two mains()
/tools/tradefederation/core/src/com/android/tradefed/device/internal/
DDeviceSnapshotHandler.java105 IHarnessException exception = (IHarnessException) o; in deleteSnapshot() local
106 throw new HarnessRuntimeException("Exception while deleting snapshot.", exception); in deleteSnapshot()
157 IHarnessException exception = (IHarnessException) o; in snapshotDevice() local
159 "Exception while snapshotting the device.", exception); in snapshotDevice()
230 IHarnessException exception = (IHarnessException) o; in restoreSnapshotDevice() local
232 "Exception while restoring snapshot of the device.", exception); in restoreSnapshotDevice()
/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/tradefederation/core/src/com/android/tradefed/invoker/
DTestInvocation.java280 Throwable exception = null; in performInvocation() local
296 exception = e; in performInvocation()
311 exception = e; in performInvocation()
323 exception = e; in performInvocation()
346 exception = e; in performInvocation()
355 exception = e; in performInvocation()
360 exception = t; in performInvocation()
392 if (exception == null && !SystemUtil.isLocalMode()) { in performInvocation()
393 exception = mUnavailableMonitor.getUnavailableException(); in performInvocation()
394 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
/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/metalava/metalava/src/main/java/com/android/tools/metalava/
DKotlinInteropChecks.kt78 for (exception in exceptions.sortedBy { it.qualifiedName() }) { in ensureExceptionsDocumented() method
80 !(exception.extends("java.lang.RuntimeException") || in ensureExceptionsDocumented()
81 exception.extends("java.lang.Error")) in ensureExceptionsDocumented()
89 if (source.endsWith(exception.simpleName() + "::class")) { in ensureExceptionsDocumented()
101 if (!doc.contains(exception.simpleName())) { in ensureExceptionsDocumented()

1234567