Home
last modified time | relevance | path

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

12345

/tools/acloud/create/
Dcreate_args.py23 from acloud import errors
585 raise errors.CheckPathError(
589 raise errors.CheckPathError(
594 raise errors.UnsupportedCreateArgs("%s instance does not support "
600 raise errors.CheckPathError(
605 raise errors.CheckPathError(
610 raise errors.UnsupportedCreateArgs(
625 raise errors.UnsupportedCreateArgs(
629 raise errors.UnsupportedCreateArgs(
633 raise errors.UnsupportedCreateArgs(
[all …]
Dgoldfish_local_image_local_instance.py45 from acloud import errors
109 except errors.CreateError as e:
151 raise errors.CreateError("Instance %d is locked by another "
160 raise errors.CreateError(_INSTANCES_IN_USE_MSG % {"max_id": max_id})
204 except (errors.DeviceBootTimeoutError, errors.SubprocessFail) as e:
295 raise errors.GetSdkRepoPackageError(_MISSING_EMULATOR_MSG)
336 raise errors.GetLocalImageError("No device image in %s." % image_dir)
368 raise errors.CreateError("Cannot kill emulator.")
389 raise errors.GetLocalImageError("No %s in %s." %
533 create_error = errors.CreateError(_EMU_KILL_TIMEOUT_ERROR %
[all …]
Dcreate_common.py23 from acloud import errors
57 raise errors.MalformedDictStringError(
61 raise errors.MalformedDictStringError(
94 raise errors.GetCvdLocalHostPackageError(
119 raise errors.GetLocalImageError("No image in %s." % path)
121 raise errors.GetLocalImageError("More than one image in %s: %s" %
126 raise errors.GetLocalImageError("%s is not a file." % path)
Dlocal_image_local_instance.py59 from acloud import errors
147 except errors.CreateError as e:
188 raise errors.CreateError("Instance %d is locked by another "
196 raise errors.CreateError(_INSTANCES_IN_USE_MSG)
248 except errors.LaunchCVDFail as launch_error:
306 raise errors.GetCvdLocalHostPackageError(
332 raise errors.CheckPathError(
355 raise errors.GetLocalImageError(
555 raise errors.LaunchCVDFail("Device did not boot within %d secs." %
558 raise errors.LaunchCVDFail("launch_cvd returned %s." %
Davd_spec.py31 from acloud import errors
212 raise errors.UnsupportedInstanceImageType(
248 raise errors.InvalidHWPropertyError(
258 raise errors.InvalidHWPropertyError(
262 raise errors.InvalidHWPropertyError(
389 raise errors.GetLocalImageError("%s is not a directory." %
395 raise errors.CreateError(
438 raise errors.ImgDoesNotExist("Could not find any GCE images (%s), you "
464 raise errors.GetLocalImageError("%s does not exist." %
491 raise errors.GetLocalImageError(
[all …]
Dcreate_common_test.py23 from acloud import errors
54 with self.assertRaises(errors.MalformedDictStringError):
59 with self.assertRaises(errors.MalformedDictStringError):
76 errors.GetCvdLocalHostPackageError,
114 with self.assertRaises(errors.GetLocalImageError):
117 with self.assertRaises(errors.GetLocalImageError):
Dlocal_image_local_instance_test.py25 from acloud import errors
133 mock_lock_instance.side_effect = errors.CreateError("unit test")
136 self.assertEqual(report.errors, ["unit test"])
206 mock_launch_cvd.side_effect = errors.LaunchCVDFail("unit test")
213 self.assertIn("unit test", report.errors[0])
225 with self.assertRaises(errors.GetCvdLocalHostPackageError):
441 with self.assertRaises(errors.LaunchCVDFail):
450 with self.assertRaises(errors.LaunchCVDFail):
/tools/acloud/internal/lib/
Dutils.py44 from acloud import errors
374 raise errors.DriverError("Failed to create ssh key pair: %s" % str(e))
376 raise errors.DriverError(
388 raise errors.DriverError(
407 raise errors.DriverError(
412 raise errors.DriverError("rsa key is invalid, wrong format: %s" % rsa)
427 raise errors.DriverError("rsa key is invalid: %s" % rsa)
429 raise errors.DriverError(
452 raise errors.UnsupportedCompressionFileType(
575 if (isinstance(exception, errors.HttpError)
[all …]
Dgcompute_client.py38 from acloud import errors
108 return isinstance(exc, errors.HttpError) and exc.code == 412
179 raise errors.DriverError(
193 timeout_exception = errors.GceOperationTimeoutError(
307 except errors.ResourceNotFoundError:
354 except errors.DriverError:
450 raise errors.DriverError(
477 except errors.DriverError:
527 except errors.ResourceNotFoundError:
676 except errors.GceOperationTimeoutError:
[all …]
Dbase_cloud_client.py29 from apiclient import errors as gerrors
33 from acloud import errors
118 if isinstance(exception, errors.HttpError):
126 list(other_retriable_errors) + [errors.HttpError],
145 exception = errors.HttpError.CreateFromHttpError(exception)
146 if exception.code == errors.HTTP_NOT_FOUND_CODE:
147 exception = errors.ResourceNotFoundError(
Dandroid_compute_client.py40 from acloud import errors
100 raise errors.CheckGCEZonesQuotaError(
158 raise errors.DriverError(
231 raise errors.DriverError(
234 raise errors.DriverError(
259 raise errors.DriverError(
359 except errors.HttpError as e:
376 timeout_exception = errors.DeviceBootTimeoutError(
Dota_tools_test.py23 from acloud import errors
118 popen.communicate.side_effect = errors.FunctionTimeoutError(
131 with self.assertRaises(errors.CheckPathError):
164 with self.assertRaises(errors.GetLocalImageError):
167 with self.assertRaises(errors.GetLocalImageError):
226 errors.FunctionTimeoutError)
310 errors.SubprocessFail)
Dssh.py22 from acloud import errors
128 raise errors.DeviceConnectionError(
154 exception_types=(errors.DeviceConnectionError, subprocess.CalledProcessError),
247 raise errors.UnknownType("Don't support the execute bin %s." % execute_bin)
280 raise errors.DeviceConnectionError(
299 exception_types=errors.DeviceConnectionError,
Dgoldfish_compute_client.py45 from acloud import errors
115 raise errors.DownloadArtifactError(
119 raise errors.DownloadArtifactError(
123 raise errors.DeviceBootError(
145 raise errors.DeviceBootError(
Dandroid_build_client.py29 from acloud import errors
110 except (OSError, apiclient.errors.HttpError) as e:
112 raise errors.DriverError(str(e))
296 except errors.HttpError as e:
302 raise errors.HttpError(e.code, message=error_msg)
347 raise errors.GetBuildIDError(
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/instrumentation/device/command/
Dinstrumentation_command_builder.py100 errors = []
102 errors.append('manifest package cannot be none')
104 errors.append('instrumentation runner cannot be none')
105 if len(errors) > 0:
107 .format(','.join(errors)))
169 errors = []
171 errors.append('at least one of package, class or test method need '
174 if len(errors) > 0:
176 .format(','.join(errors)))
/tools/asuite/aidegen_functional_test/
Daidegen_functional_test_main.py38 from aidegen.lib import errors
297 raise errors.CommitIDNotExistError(err)
359 except (errors.FakeModuleError,
360 errors.ProjectOutsideAndroidRootError,
361 errors.ProjectPathNotExistError,
362 errors.NoModuleDefinedInModuleInfoError) as err:
614 raise errors.JsonFileNotExistError(
632 except (errors.ProjectOutsideAndroidRootError,
633 errors.ProjectPathNotExistError,
634 errors.NoModuleDefinedInModuleInfoError,
[all …]
/tools/acloud/public/
Dreport.py112 self.errors = []
139 self.errors.append(error)
141 def AddErrors(self, errors): argument
147 self.errors.extend(errors)
241 errors=self.errors,
Dacloud_main.py115 from acloud import errors
293 raise errors.CommandArgError(
298 raise errors.CommandArgError(
302 raise errors.CommandArgError("Must specify --build_target")
306 raise errors.UnsupportedCreateArgs(
315 raise errors.CommandArgError(
482 if reporter and reporter.errors:
483 error_msg = "\n".join(reporter.errors)
Dreport_test.py43 test_report.errors.append("some errors")
44 test_report.errors.append("some errors")
45 self.assertEqual(test_report.errors, ["some errors", "some errors"])
77 self.assertEqual(test_report.errors, [error_msg])
127 self.assertEqual(test_report.errors, ["some errors"])
Dconfig.py54 from acloud import errors
190 raise errors.ConfigError(
316 raise errors.ConfigError(
320 raise errors.ConfigError(
377 raise errors.ConfigError("Could not load config files: %s" % str(e))
385 raise errors.ConfigError("The file doesn't exist: %s" %
414 raise errors.ConfigError("Could not parse config: %s" % str(e))
/tools/acloud/public/actions/
Dcommon_operations.py26 from acloud import errors
79 raise errors.DriverError(
141 except errors.DeviceBootError as e:
200 if isinstance(error, errors.CheckGCEZonesQuotaError):
202 if isinstance(error, errors.DownloadArtifactError):
204 if isinstance(error, errors.DeviceConnectionError):
309 except (errors.DriverError, errors.CheckGCEZonesQuotaError) as e:
Dcommon_operations_test.py26 from acloud import errors
170 error = errors.CheckGCEZonesQuotaError()
175 error = errors.DownloadArtifactError()
180 error = errors.DeviceConnectionError()
185 error = errors.DriverError()
190 error = errors.DriverError("Quota exceeded for quota read group.")
/tools/metalava/src/main/java/com/android/tools/metalava/
DNullabilityAnnotationsValidator.kt73 private val errors: MutableList<Error> = mutableListOf() in <lambda>() constant in com.android.tools.metalava.NullabilityAnnotationsValidator
127 errors.add(Error(method, label, ErrorType.MULTIPLE)) in <lambda>()
152 errors.add(Error(method, label, ErrorType.ON_PRIMITIVE)) in <lambda>()
176 errors.add(Error(method, label, ErrorType.BAD_TYPE_PARAM)) in <lambda>()
186 errors.sortBy { it.toString() } in <lambda>()
194 fatalIssues.addAll(errors) in <lambda>()
196 nonFatalIssues.addAll(errors) in <lambda>()
/tools/metalava/src/test/java/com/android/tools/metalava/
DReporterTest.kt110 fun `Test repeat errors with 1 error`() { in Test repeat errors with 1 error()
136 fun `Test repeat errors with 5 errors`() { in Test repeat errors with 5 errors()
174 fun `Test repeat errors with 6 errors`() { in Test repeat errors with 6 errors()

12345