/tools/tradefederation/core/javatests/com/android/tradefed/presubmit/ |
D | TestMappingsValidation.java | 261 List<String> errors = new ArrayList<>(); in testValidTestConfigForParameterizedMainlineModules() local 283 errors.add(error); in testValidTestConfigForParameterizedMainlineModules() 287 errors.add(String.format("\t%s: %s", configName, e.getMessage())); in testValidTestConfigForParameterizedMainlineModules() 291 if (!errors.isEmpty()) { in testValidTestConfigForParameterizedMainlineModules() 293 Joiner.on("\n").join(errors))); in testValidTestConfigForParameterizedMainlineModules() 304 List<String> errors = new ArrayList<>(); in testValidateTestEntry() local 324 errors.addAll(validateMainlineTest(testInfo)); in testValidateTestEntry() 327 errors.add( in testValidateTestEntry() 340 if (!errors.isEmpty()) { in testValidateTestEntry() 351 Joiner.on("\n").join(errors)); in testValidateTestEntry() [all …]
|
D | HostUnitTestsConfigValidation.java | 93 List<String> errors = new ArrayList<>(); in testConfigsLoad() local 119 errors.add(String.format("\t%s: %s", configName, e.getMessage())); in testConfigsLoad() 124 if (!errors.isEmpty()) { in testConfigsLoad() 126 String.format("Fail configuration check:\n%s", Joiner.on("\n").join(errors))); in testConfigsLoad() 171 List<String> errors = getErrors("presubmit"); in testNotInTestMappingPresubmit() local 172 if (!errors.isEmpty()) { in testNotInTestMappingPresubmit() 174 String.format("Fail configuration check:\n%s", Joiner.on("\n").join(errors)); in testNotInTestMappingPresubmit() 175 assertTrue(message, errors.isEmpty()); in testNotInTestMappingPresubmit() 185 List<String> errors = getErrors("postsubmit"); in testNotInTestMappingPostsubmit() local 186 if (!errors.isEmpty()) { in testNotInTestMappingPostsubmit() [all …]
|
/tools/acloud/create/ |
D | create_args_test.py | 21 from acloud import errors 83 self.assertRaises(errors.UnsupportedCreateArgs, 93 self.assertRaises(errors.UnsupportedCreateArgs, 100 self.assertRaises(errors.UnsupportedCreateArgs, 107 self.assertRaises(errors.UnsupportedCreateArgs, 115 self.assertRaises(errors.UnsupportedCreateArgs, 147 self.assertRaises(errors.CheckPathError, 154 self.assertRaises(errors.CheckPathError, 161 self.assertRaises(errors.UnsupportedCreateArgs, 165 self.assertRaises(errors.CheckPathError, [all …]
|
D | create_args.py | 24 from acloud import errors 851 raise errors.CheckPathError( 855 raise errors.CheckPathError( 860 raise errors.UnsupportedCreateArgs("%s instance does not support " 866 raise errors.UnsupportedCreateArgs( 875 raise errors.CheckPathError( 880 raise errors.CheckPathError( 895 raise errors.UnsupportedCreateArgs( 899 raise errors.UnsupportedCreateArgs( 903 raise errors.UnsupportedCreateArgs( [all …]
|
D | create_common.py | 24 from acloud import errors 76 raise errors.MalformedDictStringError( 107 raise errors.MalformedDictStringError( 111 raise errors.MalformedDictStringError( 148 raise errors.GetCvdLocalHostPackageError( 162 raise errors.GetCvdLocalHostPackageError( 188 raise errors.GetLocalImageError(f"No image in {path}.") 191 raise errors.GetLocalImageError( 196 raise errors.GetLocalImageError(f"{path} is not a file.") 219 raise errors.GetLocalImageError( [all …]
|
D | create_common_test.py | 24 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): 197 with self.assertRaises(errors.GetLocalImageError): [all …]
|
D | goldfish_local_image_local_instance.py | 45 from acloud import errors 106 except errors.CreateError as e: 148 raise errors.CreateError("Instance %d is locked by another " 157 raise errors.CreateError(_INSTANCES_IN_USE_MSG % {"max_id": max_id}) 211 except (errors.DeviceBootTimeoutError, errors.SubprocessFail) as e: 259 raise errors.GetSdkRepoPackageError(_MISSING_EMULATOR_MSG) 326 raise errors.CreateError("Cannot kill emulator.") 347 raise errors.GetLocalImageError("No %s in %s." % 556 create_error = errors.CreateError(_EMU_KILL_TIMEOUT_ERROR % 577 timeout_error = errors.DeviceBootTimeoutError(_EMULATOR_TIMEOUT_ERROR % [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/ |
D | GceAvdInfo.java | 182 String errors, in GceAvdInfo() argument 186 mErrors = errors; in GceAvdInfo() 248 public void setErrors(String errors) { in setErrors() argument 249 mErrors = errors; in setErrors() 354 String errors = data; in parseGceInfoFromString() local 356 errors = parseErrorField(data); in parseGceInfoFromString() 363 if (errors.contains("QUOTA_EXCEED") && errors.contains("GPU")) { in parseGceInfoFromString() 372 errorId = refineOxygenErrorType(errors); in parseGceInfoFromString() 394 errors, in parseGceInfoFromString() 419 String.format("acloud errors: %s", !errors.isEmpty() ? errors : data), in parseGceInfoFromString() [all …]
|
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/instrumentation/device/command/ |
D | instrumentation_command_builder.py | 100 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/internal/lib/ |
D | emulator_console.py | 24 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:
|
D | ssh.py | 23 from acloud import errors 143 raise errors.SshConnectFail(error_msg) 144 raise errors.DeviceConnectionError(error_msg) 147 raise errors.LaunchCVDFail(constants.ERROR_MSG_VNC_NOT_SUPPORT) 149 raise errors.LaunchCVDFail(constants.ERROR_MSG_WEBRTC_NOT_SUPPORT) 215 exception_types=(errors.DeviceConnectionError, 216 errors.LaunchCVDFail, 323 raise errors.UnknownType("Don't support the execute bin %s." % execute_bin) 356 raise errors.DeviceConnectionError( 376 exception_types=errors.DeviceConnectionError, [all …]
|
D | utils.py | 43 from acloud import errors 391 raise errors.DriverError("Failed to create ssh key pair: %s" % str(e)) 393 raise errors.DriverError( 405 raise errors.DriverError( 424 raise errors.DriverError( 429 raise errors.DriverError("rsa key is invalid, wrong format: %s" % rsa) 444 raise errors.DriverError("rsa key is invalid: %s" % rsa) 446 raise errors.DriverError( 469 raise errors.UnsupportedCompressionFileType( 592 if (isinstance(exception, errors.HttpError) [all …]
|
D | base_cloud_client.py | 26 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(
|
D | gcompute_client.py | 36 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 …]
|
D | emulator_console_test.py | 24 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):
|
D | android_compute_client.py | 40 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(
|
D | android_build_client.py | 29 from acloud import errors 116 except (OSError, apiclient.errors.HttpError) as e: 118 raise errors.DriverError(str(e)) 140 exception_types=(ssl.SSLError, errors.DriverError), 154 exception_types=(ssl.SSLError, errors.DriverError), 357 except errors.HttpError as e: 363 raise errors.HttpError(e.code, message=error_msg) 408 raise errors.GetBuildIDError(
|
/tools/tradefederation/core/src/com/android/tradefed/suite/checker/ |
D | UserChecker.java | 104 ArrayList<String> errors = new ArrayList<>(); in postExecutionCheck() local 108 errors.add( in postExecutionCheck() 115 errors.add( in postExecutionCheck() 127 errors.add(String.format("User %d no longer exists after test", preUserId)); in postExecutionCheck() 142 errors.add( in postExecutionCheck() 148 errors.add(String.format("Failed to remove new user %d", postUserId)); in postExecutionCheck() 154 if (errors.size() > 0) { in postExecutionCheck() 155 return statusFail(String.join("\n", errors)); in postExecutionCheck()
|
/tools/tradefederation/core/javatests/com/android/tradefed/result/error/ |
D | ErrorIdentifierTest.java | 37 List<ErrorIdentifier> errors = new ArrayList<>(); in testUniqueErrors() local 38 errors.addAll(Arrays.asList(InfraErrorIdentifier.values())); in testUniqueErrors() 39 errors.addAll(Arrays.asList(DeviceErrorIdentifier.values())); in testUniqueErrors() 40 errors.addAll(Arrays.asList(TestErrorIdentifier.values())); in testUniqueErrors() 42 List<String> names = errors.stream().map(e -> e.name()).collect(Collectors.toList()); in testUniqueErrors() 54 errors.stream().map(e -> Long.toString(e.code())).collect(Collectors.toList()); in testUniqueErrors()
|
/tools/acloud/public/ |
D | report.py | 129 self.errors = [] 156 self.errors.append(error) 158 def AddErrors(self, errors): argument 164 self.errors.extend(errors) 269 errors=self.errors,
|
D | report_test.py | 43 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/metalava/src/main/java/com/android/tools/metalava/ |
D | NullabilityAnnotationsValidator.kt | 79 private val errors: MutableList<Error> = mutableListOf() in <lambda>() constant in com.android.tools.metalava.NullabilityAnnotationsValidator 144 errors.add(Error(method, label, ErrorType.MULTIPLE)) in <lambda>() 169 errors.add(Error(method, label, ErrorType.ON_PRIMITIVE)) in <lambda>() 193 errors.add(Error(method, label, ErrorType.BAD_TYPE_PARAM)) in <lambda>() 201 errors.sortBy { it.toString() } in <lambda>() 209 fatalIssues.addAll(errors) in <lambda>() 211 nonFatalIssues.addAll(errors) in <lambda>()
|
/tools/asuite/aidegen_functional_test/ |
D | aidegen_functional_test_main.py | 38 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/tradefederation/core/invocation_interfaces/com/android/tradefed/result/ |
D | TestResult.java | 223 List<FailureDescription> errors = new ArrayList<>(); in merge() local 245 errors.add(attempt.getFailure()); in merge() 250 errors.add(FailureDescription.create("incomplete test case result.")); in merge() 255 errors.add(attempt.getFailure()); in merge() 318 if (errors.isEmpty()) { in merge() 320 } else if (errors.size() == 1) { in merge() 321 mergedResult.mFailureDescription = errors.get(0); in merge() 323 mergedResult.mFailureDescription = new MultiFailureDescription(errors); in merge()
|
/tools/acloud/public/actions/ |
D | common_operations.py | 21 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): 337 except (errors.DriverError, errors.CheckGCEZonesQuotaError) as e:
|