Home
last modified time | relevance | path

Searched refs:cause (Results 1 – 25 of 111) sorted by relevance

12345

/tools/tradefederation/core/src/com/android/tradefed/result/suite/
DFormattedGeneratorReporter.java89 public void invocationFailed(Throwable cause) { in invocationFailed() argument
91 FailureDescription.create(cause.getMessage()).setCause(cause); in invocationFailed()
92 if (cause instanceof IHarnessException) { in invocationFailed()
93 description.setErrorIdentifier(((IHarnessException) cause).getErrorId()); in invocationFailed()
102 Throwable cause = failure.getCause(); in invocationFailed() local
103 if (cause != null in invocationFailed()
104 && (cause instanceof TargetSetupError in invocationFailed()
105 || cause instanceof RuntimeException in invocationFailed()
106 || cause instanceof OutOfMemoryError)) { in invocationFailed()
107 mTestHarnessError = cause; in invocationFailed()
[all …]
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/targetprep/
DTargetSetupError.java86 public TargetSetupError(String reason, Throwable cause) { in TargetSetupError() argument
87 this(reason, cause, null, true, null); in TargetSetupError()
98 public TargetSetupError(String reason, Throwable cause, ErrorIdentifier errorId) { in TargetSetupError() argument
99 this(reason, cause, null, true, errorId); in TargetSetupError()
110 public TargetSetupError(String reason, Throwable cause, DeviceDescriptor descriptor) { in TargetSetupError() argument
111 this(reason, cause, descriptor, true, null); in TargetSetupError()
124 String reason, Throwable cause, DeviceDescriptor descriptor, ErrorIdentifier errorId) { in TargetSetupError() argument
125 this(reason, cause, descriptor, true, errorId); in TargetSetupError()
138 String reason, Throwable cause, DeviceDescriptor descriptor, boolean deviceSide) { in TargetSetupError() argument
139 this(reason, cause, descriptor, deviceSide, null); in TargetSetupError()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/build/
DBuildRetrievalError.java55 public BuildRetrievalError(String reason, Throwable cause) { in BuildRetrievalError() argument
56 this(reason, cause, null, null); in BuildRetrievalError()
66 public BuildRetrievalError(String reason, Throwable cause, ErrorIdentifier errorId) { in BuildRetrievalError() argument
67 this(reason, cause, errorId, null); in BuildRetrievalError()
78 public BuildRetrievalError(String reason, Throwable cause, IBuildInfo build) { in BuildRetrievalError() argument
79 this(reason, cause, null, build); in BuildRetrievalError()
92 String reason, Throwable cause, ErrorIdentifier errorId, IBuildInfo build) { in BuildRetrievalError() argument
93 super(reason, cause, errorId); in BuildRetrievalError()
97 if (cause instanceof IHarnessException) { in BuildRetrievalError()
98 setCallerClass(((IHarnessException) cause).getOrigin()); in BuildRetrievalError()
/tools/tradefederation/core/common_util/com/android/tradefed/error/
DHarnessRuntimeException.java50 public HarnessRuntimeException(String message, IHarnessException cause) { in HarnessRuntimeException() argument
51 super(message, (cause instanceof Throwable) ? (Throwable) cause : null); in HarnessRuntimeException()
52 mErrorId = cause.getErrorId(); in HarnessRuntimeException()
53 mOrigin = cause.getOrigin(); in HarnessRuntimeException()
63 public HarnessRuntimeException(String message, Throwable cause, ErrorIdentifier errorId) { in HarnessRuntimeException() argument
64 super(message, cause); in HarnessRuntimeException()
DHarnessException.java44 public HarnessException(Throwable cause, ErrorIdentifier errorId) { in HarnessException() argument
45 super(cause); in HarnessException()
50 public HarnessException(String message, Throwable cause, ErrorIdentifier errorId) { in HarnessException() argument
51 super(message, cause); in HarnessException()
53 if (mErrorId == null && cause != null) { in HarnessException()
54 if (cause instanceof IHarnessException) { in HarnessException()
55 mErrorId = ((IHarnessException) cause).getErrorId(); in HarnessException()
/tools/metalava/metalava-model-text/src/main/java/com/android/tools/metalava/model/text/
DApiParseException.kt25 cause: Exception? = null,
26 ) : Exception(message, cause) {
31 cause: Exception? = null,
32 ) : this(message, fileLocationTracker.fileLocation(), cause = cause)
/tools/tradefederation/core/src/com/android/tradefed/log/
DTerribleFailureEmailHandler.java159 protected String generateEmailBody(String message, Throwable cause) { in generateEmailBody() argument
170 if (cause != null) { in generateEmailBody()
172 bodyBuilder.append(getStackTraceString(cause)); in generateEmailBody()
187 protected Message generateEmailMessage(String description, Throwable cause) { in generateEmailMessage() argument
191 msg.setBody(generateEmailBody(description, cause)); in generateEmailMessage()
204 public boolean onTerribleFailure(String description, Throwable cause) { in onTerribleFailure() argument
218 Message msg = generateEmailMessage(description, cause); in onTerribleFailure()
/tools/apksig/src/main/java/com/android/apksig/kms/
DKmsException.java28 public KmsException(String kmsType, String message, Throwable cause) { in KmsException() argument
29 super(message, cause); in KmsException()
33 public KmsException(String kmsType, Throwable cause) { in KmsException() argument
34 super(cause); in KmsException()
/tools/tradefederation/core/common_util/com/android/tradefed/command/
DFatalHostError.java37 public FatalHostError(String msg, Throwable cause, ErrorIdentifier errorId) { in FatalHostError() argument
38 super(msg, cause, errorId); in FatalHostError()
49 public FatalHostError(String msg, Throwable cause) { in FatalHostError() argument
50 super(msg, cause, InfraErrorIdentifier.UNDETERMINED); in FatalHostError()
/tools/tradefederation/core/src/com/android/tradefed/config/
DClassNotFoundConfigurationException.java40 Throwable cause, in ClassNotFoundConfigurationException() argument
44 super(msg, cause, error); in ClassNotFoundConfigurationException()
59 Throwable cause, in ClassNotFoundConfigurationException() argument
62 super(msg, cause, error); in ClassNotFoundConfigurationException()
DOptionNotAllowedException.java29 public OptionNotAllowedException(String msg, Throwable cause) { in OptionNotAllowedException() argument
30 super(msg, cause); in OptionNotAllowedException()
/tools/tradefederation/core/common_util/com/android/tradefed/config/
DConfigurationException.java54 public ConfigurationException(String msg, Throwable cause) { in ConfigurationException() argument
55 super(msg, cause, null); in ConfigurationException()
66 public ConfigurationException(String msg, Throwable cause, ErrorIdentifier error) { in ConfigurationException() argument
67 super(msg, cause, error); in ConfigurationException()
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/
DDeviceDisconnectedException.java60 public DeviceDisconnectedException(String msg, Throwable cause, String serial) { in DeviceDisconnectedException() argument
61 this(msg, cause, serial, null); in DeviceDisconnectedException()
74 String msg, Throwable cause, String serial, ErrorIdentifier errorId) { in DeviceDisconnectedException() argument
75 super(msg, cause, serial, errorId); in DeviceDisconnectedException()
DDeviceUnresponsiveException.java60 public DeviceUnresponsiveException(String msg, Throwable cause, String serial) { in DeviceUnresponsiveException() argument
61 this(msg, cause, serial, null); in DeviceUnresponsiveException()
74 String msg, Throwable cause, String serial, ErrorIdentifier errorId) { in DeviceUnresponsiveException() argument
75 super(msg, cause, serial, errorId); in DeviceUnresponsiveException()
DDeviceNotAvailableException.java87 public DeviceNotAvailableException(String msg, Throwable cause, String serial) { in DeviceNotAvailableException() argument
88 this(msg, cause, serial, null); in DeviceNotAvailableException()
101 String msg, Throwable cause, String serial, ErrorIdentifier errorId) { in DeviceNotAvailableException() argument
102 super(msg, cause, errorId); in DeviceNotAvailableException()
/tools/tradefederation/core/common_util/com/android/tradefed/cache/remote/
DRemoteCacheClient.java186 Throwable cause = e.getCause(); in getFromFuture()
187 if (cause instanceof InterruptedException) { in getFromFuture()
189 throw (InterruptedException) cause; in getFromFuture()
191 if (cause instanceof IOException) { in getFromFuture()
192 throw (IOException) cause; in getFromFuture()
194 throw new IOException(cause); in getFromFuture()
/tools/tradefederation/core/src/com/android/tradefed/cluster/
DClusterCommandScheduler.java280 public void invocationFailed(Throwable cause) { in invocationFailed() argument
281 super.invocationFailed(cause); in invocationFailed()
283 mError = StreamUtil.getStackTrace(cause); in invocationFailed()
284 if (cause instanceof SubprocessCommandException && cause.getCause() != null) { in invocationFailed()
286 mSubprocessCommandError = cause.getCause().getMessage(); in invocationFailed()
298 Throwable cause = failure.getCause(); in invocationFailed() local
299 mError = StreamUtil.getStackTrace(cause); in invocationFailed()
300 if (cause instanceof HarnessRuntimeException in invocationFailed()
302 ((HarnessRuntimeException) cause).getErrorId())) { in invocationFailed()
470 String cause = in run() local
[all …]
DSubprocessCommandException.java21 public SubprocessCommandException(String message, Throwable cause) { in SubprocessCommandException() argument
22 super(message, cause); in SubprocessCommandException()
/tools/tradefederation/contrib/src/com/android/regression/tests/
DMetricsXmlParser.java46 public ParseException(Throwable cause) { in ParseException() argument
47 super(cause); in ParseException()
50 public ParseException(String msg, Throwable cause) { in ParseException() argument
51 super(msg, cause); in ParseException()
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/
DPerfettoPreparer.java68 private void fail(String message, Throwable cause, ITestDevice device) throws TargetSetupError { in fail() argument
70 if (cause != null) { in fail()
71 throw new TargetSetupError(message, cause, device.getDeviceDescriptor()); in fail()
/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/
DCreateUserPreparerTest.java176 Exception cause = mockCreateUserFailure("D'OH!"); in testSetUp_maxUsersReached() local
179 assertThat(e).hasCauseThat().isSameInstanceAs(cause); in testSetUp_maxUsersReached()
188 Exception cause = mockCreateUserFailure("D'OH!"); in testSetUp_createUserfailed() local
192 assertThat(e).hasCauseThat().isSameInstanceAs(cause); in testSetUp_createUserfailed()
/tools/test/connectivity/acts/framework/acts/
Dtest_decorators.py187 cause = None
198 cause = ex
199 new_signal = signals.TestError(cause)
217 raise new_signal from cause
/tools/apksig/src/main/java/com/android/apksig/internal/apk/
DSignatureNotFoundException.java27 public SignatureNotFoundException(String message, Throwable cause) { in SignatureNotFoundException() argument
28 super(message, cause); in SignatureNotFoundException()
/tools/apksig/src/main/java/com/android/apksig/apk/
DApkFormatException.java32 public ApkFormatException(String message, Throwable cause) { in ApkFormatException() argument
33 super(message, cause); in ApkFormatException()
DMinSdkVersionException.java37 public MinSdkVersionException(String message, Throwable cause) { in MinSdkVersionException() argument
38 super(message, cause); in MinSdkVersionException()

12345