Home
last modified time | relevance | path

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

123456

/tools/acloud/create/
Dcreate_args_test.py21 from acloud import errors
82 self.assertRaises(errors.UnsupportedCreateArgs,
92 self.assertRaises(errors.UnsupportedCreateArgs,
99 self.assertRaises(errors.UnsupportedCreateArgs,
106 self.assertRaises(errors.UnsupportedCreateArgs,
114 self.assertRaises(errors.UnsupportedCreateArgs,
146 self.assertRaises(errors.CheckPathError,
153 self.assertRaises(errors.CheckPathError,
160 self.assertRaises(errors.UnsupportedCreateArgs,
164 self.assertRaises(errors.CheckPathError,
[all …]
Dcreate_args.py23 from acloud import errors
796 raise errors.CheckPathError(
800 raise errors.CheckPathError(
805 raise errors.UnsupportedCreateArgs("%s instance does not support "
811 raise errors.UnsupportedCreateArgs(
820 raise errors.CheckPathError(
825 raise errors.CheckPathError(
840 raise errors.UnsupportedCreateArgs(
844 raise errors.UnsupportedCreateArgs(
848 raise errors.UnsupportedCreateArgs(
[all …]
Dcreate_common.py24 from acloud import errors
68 raise errors.MalformedDictStringError(
99 raise errors.MalformedDictStringError(
103 raise errors.MalformedDictStringError(
140 raise errors.GetCvdLocalHostPackageError(
154 raise errors.GetCvdLocalHostPackageError(
180 raise errors.GetLocalImageError(f"No image in {path}.")
183 raise errors.GetLocalImageError(
188 raise errors.GetLocalImageError(f"{path} is not a file.")
211 raise errors.GetLocalImageError(
Dgoldfish_local_image_local_instance.py45 from acloud import errors
104 except errors.CreateError as e:
146 raise errors.CreateError("Instance %d is locked by another "
155 raise errors.CreateError(_INSTANCES_IN_USE_MSG % {"max_id": max_id})
209 except (errors.DeviceBootTimeoutError, errors.SubprocessFail) as e:
257 raise errors.GetSdkRepoPackageError(_MISSING_EMULATOR_MSG)
324 raise errors.CreateError("Cannot kill emulator.")
345 raise errors.GetLocalImageError("No %s in %s." %
522 create_error = errors.CreateError(_EMU_KILL_TIMEOUT_ERROR %
543 timeout_error = errors.DeviceBootTimeoutError(_EMULATOR_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,
165 with self.assertRaises(errors.GetLocalImageError):
168 with self.assertRaises(errors.GetLocalImageError):
174 with self.assertRaises(errors.GetLocalImageError):
179 with self.assertRaises(errors.GetLocalImageError):
/tools/acloud/internal/lib/
Dssh.py23 from acloud import errors
140 raise errors.SshConnectFail(error_msg)
141 raise errors.DeviceConnectionError(error_msg)
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,
312 raise errors.UnknownType("Don't support the execute bin %s." % execute_bin)
345 raise errors.DeviceConnectionError(
365 exception_types=errors.DeviceConnectionError,
[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:
Dutils.py43 from acloud import errors
396 raise errors.DriverError("Failed to create ssh key pair: %s" % str(e))
398 raise errors.DriverError(
410 raise errors.DriverError(
429 raise errors.DriverError(
434 raise errors.DriverError("rsa key is invalid, wrong format: %s" % rsa)
449 raise errors.DriverError("rsa key is invalid: %s" % rsa)
451 raise errors.DriverError(
474 raise errors.UnsupportedCompressionFileType(
597 if (isinstance(exception, errors.HttpError)
[all …]
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 …]
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(
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:
377 timeout_exception = errors.DeviceBootTimeoutError(
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)
Dandroid_build_client.py29 from acloud import errors
113 except (OSError, apiclient.errors.HttpError) as e:
115 raise errors.DriverError(str(e))
133 exception_types=(ssl.SSLError, errors.DriverError),
319 except errors.HttpError as e:
325 raise errors.HttpError(e.code, message=error_msg)
370 raise errors.GetBuildIDError(
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/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"])
Dconfig.py52 from acloud import errors
192 raise errors.ConfigError(
320 raise errors.ConfigError(
324 raise errors.ConfigError(
387 raise errors.ConfigError("Could not load config files: %s" % str(e))
396 raise errors.ConfigError(
420 raise errors.ConfigError("Could not parse config: %s" % str(e))
/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/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/
Dremote_host_gf_device_factory_test.py26 from acloud import errors
102 self._mock_console.Kill.side_effect = errors.DeviceConnectionError
356 self._mock_ssh.Run.side_effect = errors.DeviceConnectionError
364 errors.DeviceConnectionError)
374 errors.DriverError)
382 errors.DriverError)
397 errors.DeviceConnectionError)
405 errors.DeviceBootError)
415 self._mock_poll_and_wait.side_effect = errors.DeviceBootTimeoutError()
424 timeout_exception=errors.DeviceBootTimeoutError,
[all …]
Dcommon_operations.py21 from acloud import errors
71 raise errors.DriverError(
139 except errors.DeviceBootError as e:
198 if isinstance(error, errors.CheckGCEZonesQuotaError):
200 if isinstance(error, errors.DownloadArtifactError):
202 if isinstance(error, errors.DeviceConnectionError):
341 except (errors.DriverError, errors.CheckGCEZonesQuotaError) as e:
/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
131 self.assertTrue(len(delete_report.errors) > 0)
168 self.assertTrue(len(delete_report.errors) > 0)
200 mock_console_obj.Kill.side_effect = errors.DeviceConnectionError
208 self.assertEqual(len(delete_report.errors), 1)
258 self.assertEqual(len(delete_report.errors), 1)
304 self.assertRaises(errors.CommandArgError, delete._ReleaseOxygenDevice, cfg, instances, ip)
315 self.assertEqual(delete_report.errors, ["error_msg"])
375 self.assertRaises(errors.ConfigError,

123456