/tools/tradefederation/core/tests/src/com/android/tradefed/presubmit/ |
D | TestMappingsValidation.java | 139 List<String> errors = new ArrayList<>(); in testValidTestMappingForParameterizedMainlineModules() local 159 errors.add(error); in testValidTestMappingForParameterizedMainlineModules() 163 errors.add( in testValidTestMappingForParameterizedMainlineModules() 169 if (!errors.isEmpty()) { in testValidTestMappingForParameterizedMainlineModules() 171 Joiner.on("\n").join(errors))); in testValidTestMappingForParameterizedMainlineModules() 183 List<String> errors = new ArrayList<>(); in testValidTestConfigForParameterizedMainlineModules() local 200 errors.add(error); in testValidTestConfigForParameterizedMainlineModules() 204 errors.add(String.format("\t%s: %s", configName, e.getMessage())); in testValidTestConfigForParameterizedMainlineModules() 208 if (!errors.isEmpty()) { in testValidTestConfigForParameterizedMainlineModules() 210 Joiner.on("\n").join(errors))); in testValidTestConfigForParameterizedMainlineModules() [all …]
|
D | DeviceTestsConfigValidation.java | 59 List<String> errors = new ArrayList<>(); in testConfigsLoad() local 83 errors.add(String.format("\t%s: %s", config.getName(), e.getMessage())); in testConfigsLoad() 88 if (!errors.isEmpty()) { in testConfigsLoad() 90 String.format("Fail configuration check:\n%s", Joiner.on("\n").join(errors))); in testConfigsLoad()
|
/tools/acloud/public/ |
D | report.py | 111 self.errors = [] 129 self.errors.append(error) 131 def AddErrors(self, errors): argument 137 self.errors.extend(errors) 200 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"]) 91 self.assertEqual(test_report.errors, ["some errors"])
|
/tools/test/connectivity/acts/framework/acts/test_utils/instrumentation/device/command/ |
D | instrumentation_command_builder.py | 76 errors = [] 78 errors.append('manifest package cannot be none') 80 errors.append('instrumentation runner cannot be none') 81 if len(errors) > 0: 83 .format(','.join(errors))) 145 errors = [] 147 errors.append('at least one of package, class or test method need ' 150 if len(errors) > 0: 152 .format(','.join(errors)))
|
/tools/acloud/create/ |
D | create_args.py | 22 from acloud import errors 468 raise errors.CheckPathError( 473 raise errors.UnsupportedCreateArgs("%s instance does not support " 479 raise errors.CheckPathError( 483 raise errors.UnsupportedLocalInstanceId("Local instance id can not be " 489 raise errors.CheckPathError( 494 raise errors.UnsupportedCreateArgs( 509 raise errors.UnsupportedCreateArgs( 513 raise errors.UnsupportedCreateArgs( 517 raise errors.UnsupportedCreateArgs( [all …]
|
D | create_common.py | 21 from acloud import errors 55 raise errors.MalformedDictStringError( 59 raise errors.MalformedDictStringError( 88 raise errors.GetCvdLocalHostPackageError(
|
D | goldfish_local_image_local_instance.py | 46 from acloud import errors 110 raise errors.GetLocalImageError( 141 raise errors.GetLocalImageError( 179 raise errors.GetLocalImageError("No system image in %s." % 213 except (errors.DeviceBootTimeoutError, errors.SubprocessFail) as e: 287 raise errors.GetSdkRepoPackageError(_MISSING_EMULATOR_MSG) 316 raise errors.CreateError("Cannot kill emulator.") 337 raise errors.GetLocalImageError("No %s in %s." % 477 create_error = errors.CreateError(_EMU_KILL_TIMEOUT_ERROR % 498 timeout_error = errors.DeviceBootTimeoutError(_EMULATOR_TIMEOUT_ERROR % [all …]
|
/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/tests/src/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() 41 List<String> names = errors.stream().map(e -> e.name()).collect(Collectors.toList()); in testUniqueErrors() 53 errors.stream().map(e -> Long.toString(e.code())).collect(Collectors.toList()); in testUniqueErrors()
|
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/ |
D | GceAvdInfo.java | 77 String instanceName, HostAndPort hostAndPort, String errors, GceStatus status) { in GceAvdInfo() argument 80 mErrors = errors; in GceAvdInfo() 172 String errors = data; in parseGceInfoFromString() local 174 errors = parseErrorField(data); in parseGceInfoFromString() 197 errors, in parseGceInfoFromString() 216 if (errors.isEmpty()) { in parseGceInfoFromString() 219 throw new TargetSetupError(String.format("acloud errors: %s", errors), descriptor); in parseGceInfoFromString() 226 JSONArray errors = response.getJSONArray("errors"); in parseErrorField() local 227 for (int i = 0; i < errors.length(); i++) { in parseErrorField() 228 res += (errors.getString(i) + "\n"); in parseErrorField()
|
/tools/acloud/internal/lib/ |
D | base_cloud_client.py | 28 from apiclient import errors as gerrors 34 from acloud import errors 119 if isinstance(exception, errors.HttpError): 127 list(other_retriable_errors) + [errors.HttpError], 146 exception = errors.HttpError.CreateFromHttpError(exception) 147 if exception.code == errors.HTTP_NOT_FOUND_CODE: 148 exception = errors.ResourceNotFoundError(
|
D | utils.py | 44 from acloud import errors 368 raise errors.DriverError("Failed to create ssh key pair: %s" % str(e)) 370 raise errors.DriverError( 382 raise errors.DriverError( 401 raise errors.DriverError( 406 raise errors.DriverError("rsa key is invalid, wrong format: %s" % rsa) 421 raise errors.DriverError("rsa key is invalid: %s" % rsa) 423 raise errors.DriverError( 446 raise errors.UnsupportedCompressionFileType( 569 if (isinstance(exception, errors.HttpError) [all …]
|
D | android_build_client.py | 25 from acloud import errors 99 except (OSError, apiclient.errors.HttpError) as e: 101 raise errors.DriverError(str(e)) 136 except errors.HttpError as e: 142 raise errors.HttpError(e.code, message=error_msg) 187 raise errors.GetBuildIDError(
|
D | goldfish_compute_client.py | 45 from acloud import errors 114 raise errors.DeviceBootError( 118 raise errors.DeviceBootError( 122 raise errors.DeviceBootError( 133 raise errors.DeviceBootError(
|
D | gstorage_client.py | 23 from acloud import errors 102 raise errors.DriverError(str(e)) 139 except errors.DriverError as e: 159 errors.ResourceNotFoundError,
|
D | auth.py | 50 from acloud import errors 84 raise errors.AuthenticationError( 110 raise errors.AuthenticationError( 165 raise errors.AuthenticationError(
|
D | ssh.py | 22 from acloud import errors 127 raise errors.DeviceConnectionError( 151 exception_types=errors.DeviceConnectionError, 241 raise errors.UnknownType("Don't support the execute bin %s." % execute_bin) 257 raise errors.DeviceConnectionError( 276 exception_types=errors.DeviceConnectionError,
|
D | android_compute_client.py | 40 from acloud import errors 140 raise errors.DriverError( 213 raise errors.DriverError( 216 raise errors.DriverError( 241 raise errors.DriverError( 341 except errors.HttpError as e: 358 timeout_exception = errors.DeviceBootTimeoutError(
|
D | gcompute_client.py | 38 from acloud import errors 97 return isinstance(exc, errors.HttpError) and exc.code == 412 168 raise errors.DriverError( 182 timeout_exception = errors.GceOperationTimeoutError( 232 except errors.ResourceNotFoundError: 279 except errors.DriverError: 375 raise errors.DriverError( 402 except errors.DriverError: 452 except errors.ResourceNotFoundError: 586 except errors.GceOperationTimeoutError: [all …]
|
/tools/tradefederation/core/invocation_interfaces/com/android/tradefed/result/ |
D | TestResult.java | 204 List<FailureDescription> errors = new ArrayList<>(); in merge() local 224 errors.add(attempt.getFailure()); in merge() 229 errors.add(FailureDescription.create("incomplete test case result.")); in merge() 234 errors.add(attempt.getFailure()); in merge() 281 if (errors.isEmpty()) { in merge() 283 } else if (errors.size() == 1) { in merge() 284 mergedResult.mFailureDescription = errors.get(0); in merge() 286 mergedResult.mFailureDescription = new MultiFailureDescription(errors); in merge()
|
/tools/acloud/setup/ |
D | setup_common.py | 23 from acloud import errors 71 raise errors.PackageInstallError( 75 raise errors.PackageInstallError( 109 raise errors.UnableToLocatePkgOnRepositoryError(
|
/tools/metalava/src/main/java/com/android/tools/metalava/ |
D | NullabilityAnnotationsValidator.kt | 74 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/asuite/aidegen_functional_test/ |
D | aidegen_functional_test_main.py | 36 from aidegen.lib import errors 281 raise errors.CommitIDNotExistError(err) 343 except (errors.FakeModuleError, 344 errors.ProjectOutsideAndroidRootError, 345 errors.ProjectPathNotExistError, 346 errors.NoModuleDefinedInModuleInfoError) as err: 596 raise errors.JsonFileNotExistError( 614 except (errors.ProjectOutsideAndroidRootError, 615 errors.ProjectPathNotExistError, 616 errors.NoModuleDefinedInModuleInfoError, [all …]
|
/tools/platform-compat/build/ |
D | process_compat_config.py | 61 self.errors = 0 76 self.errors += 1 82 self.errors += 1 89 if self.errors > 0: 90 raise Exception("Failed due to %d earlier errors" % self.errors)
|