Home
last modified time | relevance | path

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

1234

/tools/acloud/internal/lib/
Dbase_cloud_client.py99 def _ShouldRetry(exception, retry_http_codes, argument
113 if isinstance(exception, other_retriable_errors):
116 if isinstance(exception, errors.HttpError):
117 if exception.code in retry_http_codes:
121 exception.code, retry_http_codes, str(exception))
124 type(exception),
126 str(exception))
130 def _TranslateError(exception): argument
143 if isinstance(exception, gerrors.HttpError):
144 exception = errors.HttpError.CreateFromHttpError(exception)
[all …]
Dutils.py585 def _ShoudRetry(self, exception): argument
591 if isinstance(exception, self._other_retriable_errors):
594 if (isinstance(exception, errors.HttpError)
595 and exception.code in self._retry_http_codes):
611 exception = result[1]
612 if exception is not None and self._ShoudRetry(exception):
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/
DInvocationExecutionTest.java302 Throwable exception = new Throwable("Original error"); in testDoTearDown() local
303 mExec.doTeardown(mContext, mConfig, null, exception); in testDoTearDown()
309 inOrder.verify(stub4).tearDown(mContext, exception); in testDoTearDown()
311 inOrder.verify(stub3).tearDown(mContext, exception); in testDoTearDown()
316 inOrder.verify(stub2).tearDown(mContext, exception); in testDoTearDown()
318 inOrder.verify(stub1).tearDown(mContext, exception); in testDoTearDown()
341 Throwable exception = new Throwable("Original error"); in testDoTearDown_logger() local
343 mExec.doTeardown(mContext, mConfig, logger, exception); in testDoTearDown_logger()
349 inOrder.verify(stub4).tearDown(mContext, exception); in testDoTearDown_logger()
351 inOrder.verify(stub3).tearDown(mContext, exception); in testDoTearDown_logger()
[all …]
DTestInvocationTest.java347 BuildRetrievalError exception = in testInvoke_buildFailed() local
349 EasyMock.expect(mMockBuildProvider.getBuild()).andThrow(exception); in testInvoke_buildFailed()
352 setupMockFailureListeners(exception); in testInvoke_buildFailed()
464 IllegalArgumentException exception = new IllegalArgumentException("testInvoke_testFail"); in testInvoke_testFail() local
467 EasyMock.expectLastCall().andThrow(exception); in testInvoke_testFail()
468 setupMockFailureListeners(exception); in testInvoke_testFail()
489 FatalHostError exception = new FatalHostError("testInvoke_fatalError"); in testInvoke_fatalError() local
492 EasyMock.expectLastCall().andThrow(exception); in testInvoke_fatalError()
493 setupMockFailureListeners(exception); in testInvoke_fatalError()
514 DeviceNotAvailableException exception = new DeviceNotAvailableException("ERROR", SERIAL); in testInvoke_deviceNotAvail() local
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/gnssinst_lib/
Dabstract_inst.py86 self._logger.exception(errmsg)
91 self._logger.exception(errmsg)
111 self._logger.exception(errmsg)
117 self._logger.exception(errmsg)
123 self._logger.exception(errmsg)
145 self._logger.exception(errmsg)
150 self._logger.exception(errmsg)
156 self._logger.exception(errmsg)
180 self._logger.exception(errmsg)
/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/repohooks/rh/
Dutils.py57 def __init__(self, msg, result, exception=None): argument
58 self.msg, self.result, self.exception = msg, result, exception
59 if exception is not None and not isinstance(exception, Exception):
61 % (exception,))
63 self.args = (msg, result, exception)
450 raise RunCommandError(estr, CommandResult(cmd=cmd), exception=e)
/tools/tradefederation/core/src/com/android/tradefed/invoker/
DTestInvocation.java215 Throwable exception = null; in performInvocation() local
232 exception = e; in performInvocation()
246 exception = e; in performInvocation()
253 exception = e; in performInvocation()
279 exception = e; in performInvocation()
284 exception = t; in performInvocation()
318 invocationPath.doTeardown(context, config, listener, exception); in performInvocation()
323 if (exception == null) { in performInvocation()
337 invocationPath.doCleanUp(context, config, exception); in performInvocation()
440 Throwable exception, in reportFailure() argument
[all …]
DInvocationExecution.java337 Throwable exception) in doTeardown() argument
347 exception, in doTeardown()
375 cleaner.tearDown(device, context.getBuildInfo(deviceName), exception); in doTeardown()
402 exception, in doTeardown()
414 public void doCleanUp(IInvocationContext context, IConfiguration config, Throwable exception) { in doCleanUp() argument
427 cleaner.cleanUp(context.getBuildInfo(deviceName), exception); in doCleanUp() local
507 Throwable exception, in resetBuildAndReschedule() argument
511 if (!(exception instanceof BuildError) && !(exception.getCause() instanceof BuildError)) { in resetBuildAndReschedule()
DIInvocationExecution.java120 Throwable exception) in doTeardown() argument
132 IInvocationContext context, IConfiguration config, Throwable exception) {} in doCleanUp() argument
174 Throwable exception, in resetBuildAndReschedule() argument
/tools/test/connectivity/acts/framework/tests/libs/logging/
Dlog_stream_test.py90 'has been set multiple' in catch.exception.args[0],
107 'More than one of' in catch.exception.args[0],
116 'More than one of' in catch.exception.args[0],
126 'More than one of' in catch.exception.args[0],
141 'log level' in catch.exception.args[0],
156 'log location' in catch.exception.args[0],
176 'log type' in catch.exception.args[0],
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DXml.kt62 override fun warning(exception: SAXParseException) { in parseDocument()
66 override fun error(exception: SAXParseException) { in parseDocument()
70 override fun fatalError(exception: SAXParseException) { in parseDocument()
71 error(exception) in parseDocument()
/tools/test/connectivity/acts/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/metalava/src/main/java/com/android/tools/metalava/
DKotlinInteropChecks.kt92 for (exception in exceptions.sortedBy { it.qualifiedName() }) { in ensureExceptionsDocumented() constant
93 val checked = !(exception.extends("java.lang.RuntimeException") || in ensureExceptionsDocumented()
94 exception.extends("java.lang.Error")) in ensureExceptionsDocumented()
102 if (source.endsWith(exception.simpleName() + "::class")) { in ensureExceptionsDocumented()
113 if (!doc.contains(exception.simpleName())) { in ensureExceptionsDocumented()
/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/tradefederation/core/src/com/android/tradefed/invoker/sandbox/
DParentSandboxInvocationExecution.java82 Throwable exception) in doTeardown() argument
92 super.doTeardown(context, mParentPreparerConfig, logger, exception); in doTeardown()
96 public void doCleanUp(IInvocationContext context, IConfiguration config, Throwable exception) { in doCleanUp() argument
102 super.doCleanUp(context, mParentPreparerConfig, exception); in doCleanUp()
/tools/asuite/aidegen/lib/
Dcommon_util_unittest.py81 self.assertEqual(expected, str(ctx.exception))
87 self.assertEqual(expected, str(ctx.exception))
93 self.assertEqual(expected, str(ctx.exception))
101 self.assertEqual(expected, str(ctx.exception))
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DSubprocessTfLauncher.java217 protected void postRun(ITestInvocationListener listener, boolean exception, long elapsedTime) {} in postRun() argument
253 boolean exception = false; in run()
292 exception = true; in run()
305 exception = true; in run()
318 postRun(listener, exception, elapsedTime); in run()
/tools/test/connectivity/acts/framework/acts/
Dbase_test.py399 self.log.exception('Unable to write controller info records to'
556 self.log.exception(record.details)
589 self.log.exception("Exception happened when executing %s for %s.",
646 self.log.exception(e)
770 self.log.exception(("Failed to get test name from "
812 self.log.exception("Exception happened when executing %s in %s.",
955 self.log.exception("Failed to setup %s.", self.TAG)
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/
DManagedRemoteDevice.java144 TargetSetupError exception = null; in launchGce() local
153 exception = tse; in launchGce()
157 throw exception; in launchGce()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DModuleDefinition.java510 Throwable exception = (runException != null) ? runException : preparationException; in run() local
512 runTearDown(exception); in run()
797 private void runTearDown(Throwable exception) throws DeviceNotAvailableException { in runTearDown() argument
807 multiCleaner.tearDown(mModuleInvocationContext, exception); in runTearDown()
844 if (exception != null && exception instanceof DeviceNotAvailableException) { in runTearDown()
851 exception); in runTearDown()
/tools/test/connectivity/acts/tests/google/tel/live/
DTelLiveStressTest.py329 self.log.exception(e)
494 self.log.exception(e)
544 self.log.exception(e)
576 self.log.exception(e)
634 self.log.exception(e)
654 self.log.exception("Exception error %s", str(e))
674 self.log.exception("Exception error %s", str(e))
723 self.log.exception(e)
742 self.log.exception(e)
/tools/loganalysis/src/com/android/loganalysis/item/
DJavaCrashItem.java55 public void setException(String exception) { in setException() argument
56 setAttribute(EXCEPTION, exception); in setException()
/tools/tradefederation/core/atest/
Dtest_mapping_unittest.py46 'Each option can only have one key.', str(context.exception))
53 'host can only have boolean value.', str(context.exception))
/tools/dexter/testdata/expected/
Dtry_catch.asm123 18| move-exception v3
141 32| move-exception v3
166 57| move-exception v3

1234