Home
last modified time | relevance | path

Searched refs:errors (Results 1 – 25 of 95) sorted by relevance

1234

/tools/tradefederation/contrib/src/com/android/tradefed/presubmit/
DTestMappingsValidation.java120 List<String> errors = new ArrayList<>(); in testTestSuiteSetting() local
128 errors.add( in testTestSuiteSetting()
136 if (!errors.isEmpty()) { in testTestSuiteSetting()
137 fail(String.format("Fail test_suite setting check:\n%s", Joiner.on("\n").join(errors))); in testTestSuiteSetting()
147 List<String> errors = new ArrayList<>(); in testFilterOptions() local
150 errors.addAll(validateFilterOption(moduleName, INCLUDE_FILTER, testGroup)); in testFilterOptions()
151 errors.addAll(validateFilterOption(moduleName, EXCLUDE_FILTER, testGroup)); in testFilterOptions()
154 if (!errors.isEmpty()) { in testFilterOptions()
157 Joiner.on("\n").join(errors))); in testFilterOptions()
172 List<String> errors = new ArrayList<>(); in validateFilterOption() local
[all …]
DGeneralTestsConfigValidation.java59 List<String> errors = new ArrayList<>(); in testConfigsLoad() local
77 errors.add(String.format("\t%s: %s", configName, e.getMessage())); in testConfigsLoad()
82 if (!errors.isEmpty()) { in testConfigsLoad()
84 String.format("Fail configuration check:\n%s", Joiner.on("\n").join(errors))); in testConfigsLoad()
DDeviceTestsConfigValidation.java59 List<String> errors = new ArrayList<>(); in testConfigsLoad() local
81 errors.add(String.format("\t%s: %s", config.getName(), e.getMessage())); in testConfigsLoad()
86 if (!errors.isEmpty()) { in testConfigsLoad()
88 String.format("Fail configuration check:\n%s", Joiner.on("\n").join(errors))); in testConfigsLoad()
/tools/acloud/internal/lib/
Dutils.py40 from acloud import errors
336 raise errors.DeviceConnectionError(
393 raise errors.DriverError("Failed to create ssh key pair: %s" % str(e))
395 raise errors.DriverError(
407 raise errors.DriverError(
426 raise errors.DriverError(
431 raise errors.DriverError("rsa key is invalid, wrong format: %s" % rsa)
446 raise errors.DriverError("rsa key is invalid: %s" % rsa)
448 raise errors.DriverError(
471 raise errors.UnsupportedCompressionFileType(
[all …]
Dgcompute_client.py35 from acloud import errors
92 return isinstance(exc, errors.HttpError) and exc.code == 412
162 raise errors.DriverError(
176 timeout_exception = errors.GceOperationTimeoutError(
226 except errors.ResourceNotFoundError:
273 except errors.DriverError:
369 raise errors.DriverError(
396 except errors.DriverError:
446 except errors.ResourceNotFoundError:
580 except errors.GceOperationTimeoutError:
[all …]
Dbase_cloud_client.py26 from apiclient import errors as gerrors
32 from acloud import errors
116 if isinstance(exception, errors.HttpError):
125 list(other_retriable_errors) + [errors.HttpError],
144 exception = errors.HttpError.CreateFromHttpError(exception)
145 if exception.code == errors.HTTP_NOT_FOUND_CODE:
146 exception = errors.ResourceNotFoundError(
Dandroid_build_client.py24 from acloud import errors
88 except (OSError, apiclient.errors.HttpError) as e:
90 raise errors.DriverError(str(e))
125 except errors.HttpError as e:
131 raise errors.HttpError(e.code, message=error_msg)
176 raise errors.GetBuildIDError(
Dandroid_compute_client.py40 from acloud import errors
117 raise errors.DriverError(
190 raise errors.DriverError(
193 raise errors.DriverError(
218 raise errors.DriverError(
332 except errors.HttpError as e:
345 timeout_exception = errors.DeviceBootTimeoutError(
Dauth.py50 from acloud import errors
83 raise errors.AuthenticationError(
109 raise errors.AuthenticationError(
164 raise errors.AuthenticationError(
Dgstorage_client.py23 from acloud import errors
101 raise errors.DriverError(str(e))
138 except errors.DriverError as e:
158 errors.ResourceNotFoundError,
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/
DGceAvdInfo.java74 String instanceName, HostAndPort hostAndPort, String errors, GceStatus status) { in GceAvdInfo() argument
77 mErrors = errors; in GceAvdInfo()
169 String errors = data; in parseGceInfoFromString() local
171 errors = parseErrorField(data); in parseGceInfoFromString()
193 errors, in parseGceInfoFromString()
212 if (errors.isEmpty()) { in parseGceInfoFromString()
215 throw new TargetSetupError(String.format("acloud errors: %s", errors), descriptor); in parseGceInfoFromString()
222 JSONArray errors = response.getJSONArray("errors"); in parseErrorField() local
223 for (int i = 0; i < errors.length(); i++) { in parseErrorField()
224 res += (errors.getString(i) + "\n"); in parseErrorField()
/tools/acloud/public/
Dreport.py108 self.errors = []
126 self.errors.append(error)
128 def AddErrors(self, errors): argument
134 self.errors.extend(errors)
160 errors=self.errors,
Dacloud_main.py86 from acloud import errors
262 raise errors.CommandArgError(
266 raise errors.CommandArgError("Must specify either "
269 raise errors.CommandArgError("Must specify --build_target")
276 raise errors.CommandArgError(
280 raise errors.CommandArgError(
404 if report.errors:
405 msg = "\n".join(report.errors)
Dconfig.py52 from acloud import errors
165 raise errors.ConfigError(
257 raise errors.ConfigError(
261 raise errors.ConfigError(
303 raise errors.ConfigError("Could not load config files: %s" % str(e))
311 raise errors.ConfigError("The file doesn't exist: %s" %
340 raise errors.ConfigError("Could not parse config: %s" % str(e))
/tools/tradefederation/contrib/src/com/android/uicd/tests/
DUiConductorTest.java219 List<String> errors = new ArrayList<>(); in runTest() local
220 errors = parseResult(errors, result); in runTest()
221 if (!errors.isEmpty()) { in runTest()
222 listener.testFailed(testDesc, errors.get(0)); in runTest()
224 for (String error : errors) { in runTest()
255 private List<String> parseResult(List<String> errors, JSONObject result) throws JSONException { in parseResult() argument
261 errors = parseResult(errors, childResults.getJSONObject(i)); in parseResult()
268 errors.add(result.getString(VALIDATIONDETAILS_ATTRIBUTE)); in parseResult()
272 return errors; in parseResult()
/tools/metalava/src/main/java/com/android/tools/metalava/
DNullabilityAnnotationsValidator.kt74 private val errors: MutableList<Error> = mutableListOf() in <lambda>() constant in com.android.tools.metalava.NullabilityAnnotationsValidator
128 errors.add(Error(method, label, ErrorType.MULTIPLE)) in <lambda>()
153 errors.add(Error(method, label, ErrorType.ON_PRIMITIVE)) in <lambda>()
177 errors.add(Error(method, label, ErrorType.BAD_TYPE_PARAM)) in <lambda>()
187 errors.sortBy { it.toString() } in <lambda>()
195 fatalIssues.addAll(errors) in <lambda>()
197 nonFatalIssues.addAll(errors) in <lambda>()
/tools/acloud/create/
Davd_spec.py30 from acloud import errors
206 raise errors.InvalidHWPropertyError(
214 raise errors.InvalidHWPropertyError(
218 raise errors.InvalidHWPropertyError(
303 raise errors.CreateError(
338 raise errors.BootImgDoesNotExist("Could not find any GCE images (%s), "
374 raise errors.GetLocalImageError(
435 raise errors.GetAndroidBuildEnvVarError(
462 raise errors.GetBranchFromRepoInfoError(
Davd_spec_test.py22 from acloud import errors
123 with self.assertRaises(errors.GetBranchFromRepoInfoError):
156 with self.assertRaises(errors.InvalidHWPropertyError):
162 with self.assertRaises(errors.InvalidHWPropertyError):
168 with self.assertRaises(errors.InvalidHWPropertyError):
174 with self.assertRaises(errors.InvalidHWPropertyError):
281 self.assertRaises(errors.BootImgDoesNotExist,
Dremote_image_local_instance.py28 from acloud import errors
81 raise errors.NoCuttlefishCommonInstalled(
92 raise errors.GetCvdLocalHostPackageError(
173 raise errors.BootImgDoesNotExist(
182 raise errors.UnpackBootImageError(
Dcreate_common_test.py22 from acloud import errors
52 with self.assertRaises(errors.MalformedDictStringError):
57 with self.assertRaises(errors.MalformedDictStringError):
74 self.assertRaises(errors.ZipImageError,
Dcreate_common.py27 from acloud import errors
60 raise errors.MalformedDictStringError(
64 raise errors.MalformedDictStringError(
92 raise errors.ZipImageError("This file shouldn't exist, please delete: %s"
/tools/tradefederation/core/src/com/android/tradefed/suite/checker/
DUserChecker.java80 ArrayList<String> errors = new ArrayList<>(); in postExecutionCheck() local
83 errors.add(String.format("User %d no longer exists after test", removedUser)); in postExecutionCheck()
87 errors.add( in postExecutionCheck()
93 errors.add( in postExecutionCheck()
108 if (errors.size() > 0) { in postExecutionCheck()
110 result.setErrorMessage(String.join("\n", errors)); in postExecutionCheck()
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/data_storage/bigquery/
Dbigquery_logger_utils.py439 errors = self.client.create_rows(table, values)
440 if errors:
444 errors = self.client.create_rows(table, values)
445 if not errors:
448 if errors:
449 print(errors)
450 return errors
/tools/acloud/setup/
Dsetup_common.py23 from acloud import errors
70 raise errors.PackageInstallError(
74 raise errors.PackageInstallError(
108 raise errors.UnableToLocatePkgOnRepositoryError(
/tools/asuite/aidegen_functional_test/
Daidegen_functional_test_main.py29 import aidegen.lib.errors
243 except (aidegen.lib.errors.ProjectOutsideAndroidRootError,
244 aidegen.lib.errors.ProjectPathNotExistError,
245 aidegen.lib.errors.NoModuleDefinedInModuleInfoError,
246 aidegen.lib.errors.IDENotExistError) as err:

1234