Home
last modified time | relevance | path

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

123456

/tools/acloud/create/
Dcreate_args_test.py21 from acloud import errors
77 self.assertRaises(errors.UnsupportedCreateArgs,
87 self.assertRaises(errors.UnsupportedCreateArgs,
93 self.assertRaises(errors.UnsupportedCreateArgs,
99 self.assertRaises(errors.UnsupportedCreateArgs,
106 self.assertRaises(errors.UnsupportedCreateArgs,
138 self.assertRaises(errors.CheckPathError,
145 self.assertRaises(errors.CheckPathError,
152 self.assertRaises(errors.UnsupportedCreateArgs,
156 self.assertRaises(errors.CheckPathError,
[all …]
Dcreate_args.py23 from acloud import errors
698 raise errors.CheckPathError(
702 raise errors.CheckPathError(
707 raise errors.UnsupportedCreateArgs("%s instance does not support "
713 raise errors.UnsupportedCreateArgs(
722 raise errors.CheckPathError(
727 raise errors.CheckPathError(
742 raise errors.UnsupportedCreateArgs(
746 raise errors.UnsupportedCreateArgs(
750 raise errors.UnsupportedCreateArgs(
[all …]
Dcreate_common.py24 from acloud import errors
58 raise errors.MalformedDictStringError(
89 raise errors.MalformedDictStringError(
93 raise errors.MalformedDictStringError(
130 raise errors.GetCvdLocalHostPackageError(
143 raise errors.GetCvdLocalHostPackageError(
169 raise errors.GetLocalImageError("No image in %s." % path)
172 raise errors.GetLocalImageError("More than one image in %s: %s" %
177 raise errors.GetLocalImageError("%s is not a file." % path)
Dgoldfish_local_image_local_instance.py45 from acloud import errors
108 except errors.CreateError as e:
150 raise errors.CreateError("Instance %d is locked by another "
159 raise errors.CreateError(_INSTANCES_IN_USE_MSG % {"max_id": max_id})
213 except (errors.DeviceBootTimeoutError, errors.SubprocessFail) as e:
261 raise errors.GetSdkRepoPackageError(_MISSING_EMULATOR_MSG)
328 raise errors.CreateError("Cannot kill emulator.")
349 raise errors.GetLocalImageError("No %s in %s." %
412 except errors.GetLocalImageError:
531 create_error = errors.CreateError(_EMU_KILL_TIMEOUT_ERROR %
[all …]
Dcreate_common_test.py24 from acloud import errors
58 with self.assertRaises(errors.MalformedDictStringError):
63 with self.assertRaises(errors.MalformedDictStringError):
99 with self.assertRaises(errors.MalformedDictStringError):
108 errors.GetCvdLocalHostPackageError,
158 with self.assertRaises(errors.GetLocalImageError):
161 with self.assertRaises(errors.GetLocalImageError):
Dlocal_image_local_instance.py61 from acloud import errors
158 except errors.CreateError as e:
197 raise errors.CreateError("Instance %d is locked by another "
205 raise errors.CreateError(_INSTANCES_IN_USE_MSG)
262 except errors.LaunchCVDFail as launch_error:
327 raise errors.GetCvdLocalHostPackageError(
338 raise errors.GetCvdLocalHostPackageError(
364 raise errors.CheckPathError(
387 raise errors.GetLocalImageError(
702 raise errors.LaunchCVDFail(
Davd_spec.py31 from acloud import errors
275 raise errors.InvalidHWPropertyError(
285 raise errors.InvalidHWPropertyError(
289 raise errors.InvalidHWPropertyError(
431 raise errors.GetLocalImageError("%s is not a directory." %
437 raise errors.CreateError(
472 raise errors.ImgDoesNotExist("Could not find any GCE images (%s), you "
498 raise errors.GetLocalImageError("%s does not exist." %
525 raise errors.GetLocalImageError(
544 except errors.GetAndroidBuildEnvVarError:
[all …]
/tools/acloud/internal/lib/
Dutils.py43 from acloud import errors
386 raise errors.DriverError("Failed to create ssh key pair: %s" % str(e))
388 raise errors.DriverError(
400 raise errors.DriverError(
419 raise errors.DriverError(
424 raise errors.DriverError("rsa key is invalid, wrong format: %s" % rsa)
439 raise errors.DriverError("rsa key is invalid: %s" % rsa)
441 raise errors.DriverError(
464 raise errors.UnsupportedCompressionFileType(
587 if (isinstance(exception, errors.HttpError)
[all …]
Dssh.py23 from acloud import errors
136 raise errors.DeviceConnectionError(
144 raise errors.LaunchCVDFail(constants.ERROR_MSG_VNC_NOT_SUPPORT)
146 raise errors.LaunchCVDFail(constants.ERROR_MSG_WEBRTC_NOT_SUPPORT)
208 exception_types=(errors.DeviceConnectionError,
209 errors.LaunchCVDFail,
303 raise errors.UnknownType("Don't support the execute bin %s." % execute_bin)
336 raise errors.DeviceConnectionError(
356 exception_types=errors.DeviceConnectionError,
362 except errors.DeviceConnectionError as ssh_timeout:
[all …]
Demulator_console.py24 from acloud import errors
69 raise errors.DeviceConnectionError(
80 raise errors.DeviceConnectionError(
104 raise errors.DeviceConnectionError(
121 raise errors.DeviceConnectionError(
145 raise errors.DeviceConnectionError(
149 raise errors.DeviceConnectionError(
168 except errors.DeviceConnectionError as e:
Dgcompute_client.py36 from acloud import errors
106 return isinstance(exc, errors.HttpError) and exc.code == 412
177 raise errors.DriverError(
191 timeout_exception = errors.GceOperationTimeoutError(
305 except errors.ResourceNotFoundError:
352 except errors.DriverError:
448 raise errors.DriverError(
475 except errors.DriverError:
525 except errors.ResourceNotFoundError:
674 except errors.GceOperationTimeoutError:
[all …]
Dandroid_compute_client.py40 from acloud import errors
99 raise errors.CheckGCEZonesQuotaError(
157 raise errors.DriverError(
230 raise errors.DriverError(
233 raise errors.DriverError(
258 raise errors.DriverError(
358 except errors.HttpError as e:
375 timeout_exception = errors.DeviceBootTimeoutError(
Dbase_cloud_client.py26 from apiclient import errors as gerrors
30 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(
Demulator_console_test.py24 from acloud import errors
79 with self.assertRaises(errors.DeviceConnectionError):
90 with self.assertRaises(errors.DeviceConnectionError):
101 with self.assertRaises(errors.DeviceConnectionError):
136 with self.assertRaises(errors.DeviceConnectionError):
149 with self.assertRaises(errors.DeviceConnectionError):
152 with self.assertRaises(errors.DeviceConnectionError):
Dota_tools_test.py23 from acloud import errors
118 popen.communicate.side_effect = errors.FunctionTimeoutError(
129 with self.assertRaises(errors.CheckPathError):
157 with self.assertRaises(errors.GetLocalImageError):
160 with self.assertRaises(errors.GetLocalImageError):
219 errors.FunctionTimeoutError)
303 errors.SubprocessFail)
Dgoldfish_compute_client.py45 from acloud import errors
115 raise errors.DownloadArtifactError(
119 raise errors.DownloadArtifactError(
123 raise errors.DeviceBootError(
145 raise errors.DeviceBootError(
/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.py129 self.errors = []
156 self.errors.append(error)
158 def AddErrors(self, errors): argument
164 self.errors.extend(errors)
269 errors=self.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])
141 self.assertEqual(test_report.errors, ["some errors"])
/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/acloud/public/actions/
Dcommon_operations.py26 from acloud import errors
76 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):
345 except (errors.DriverError, errors.CheckGCEZonesQuotaError) as e:
Dcommon_operations_test.py25 from acloud import errors
206 error = errors.CheckGCEZonesQuotaError()
211 error = errors.DownloadArtifactError()
216 error = errors.DeviceConnectionError()
221 error = errors.DriverError()
226 error = errors.DriverError("Quota exceeded for quota read group.")
230 error = errors.DriverError("ZONE_RESOURCE_POOL_EXHAUSTED_WITH_DETAILS")
/tools/metalava/src/test/java/com/android/tools/metalava/
DReporterTest.kt116 fun `Test repeat errors with 1 error`() { in Test repeat errors with 1 error()
144 fun `Test repeat errors with 5 errors`() { in Test repeat errors with 5 errors()
184 fun `Test repeat errors with 6 errors`() { in Test repeat errors with 6 errors()
/tools/acloud/delete/
Ddelete_test.py21 from acloud import errors
132 self.assertTrue(len(delete_report.errors) > 0)
169 self.assertTrue(len(delete_report.errors) > 0)
201 mock_console_obj.Kill.side_effect = errors.DeviceConnectionError
209 self.assertEqual(len(delete_report.errors), 1)
259 self.assertEqual(len(delete_report.errors), 1)
305 self.assertRaises(errors.CommandArgError, delete._ReleaseOxygenDevice, cfg, instances, ip)
316 self.assertEqual(delete_report.errors, ["error_msg"])
376 self.assertRaises(errors.ConfigError,

123456