/system/timezone/input_tools/android/common/src/test/java/com/android/libcore/timezone/util/ |
D | ErrorsTest.java | 32 Errors errors = new Errors(); in warnings() local 33 assertTrue(errors.isEmpty()); in warnings() 34 assertFalse(errors.hasError()); in warnings() 35 assertFalse(errors.hasFatal()); in warnings() 37 errors.addWarning("Hello"); in warnings() 38 assertFalse(errors.isEmpty()); in warnings() 39 assertFalse(errors.hasError()); in warnings() 40 assertFalse(errors.hasFatal()); in warnings() 42 TestUtils.assertContains(errors.asString(), "Hello"); in warnings() 47 Errors errors = new Errors(); in error() local [all …]
|
/system/tools/hidl/lint/test/ |
D | main.cpp | 43 void getLintsForHal(const std::string& name, std::vector<Lint>* errors) { in getLintsForHal() argument 66 LintRegistry::get()->runAllLintFunctions(*ast, errors); in getLintsForHal() 73 std::vector<Lint> errors; \ 74 getLintsForHal(interface, &errors); \ 75 EXPECT_EQ(0, errors.size()); \ 80 std::vector<Lint> errors; \ 81 getLintsForHal(interface, &errors); \ 82 EXPECT_EQ(1, errors.size()); \ 83 if (errors.size() != 1) break; \ 84 EXPECT_THAT(errors[0].getMessage(), ContainsRegex(errorMsg)); \ [all …]
|
/system/timezone/input_tools/android/tzlookup_generator/src/main/java/com/android/libcore/timezone/tzlookup/ |
D | TzLookupGenerator.java | 90 private final Errors errors = new Errors(); field in TzLookupGenerator 133 throw errors.addFatalAndHalt("Input data (countryzones.txt) is for " in execute() 153 throw errors.addFatalAndHalt( in execute() 158 throw errors.addFatalAndHalt( in execute() 168 errors.addWarning(zoneTabFileIn + " contains " in execute() 179 errors.throwIfError("Errors accumulated"); in execute() 187 if (!errors.isEmpty()) { in execute() 188 logInfo("Issues:\n" + errors.asString()); in execute() 204 throw errors.addFatalAndHalt( in validateCountryZones() 214 throw errors.addFatalAndHalt("countryzones.txt has IDs not supported by ICU: " in validateCountryZones() [all …]
|
/system/timezone/input_tools/android/telephonylookup_generator/src/main/java/com/android/libcore/timezone/telephonylookup/ |
D | TelephonyLookupGenerator.java | 72 Errors errors = new Errors(); in execute() local 79 throw errors.addFatalAndHalt("Unable to parse " + telephonyLookupProtoFile, e); in execute() 84 validateNetworks(networksIn, errors); in execute() 85 errors.throwIfError("One or more validation errors encountered"); in execute() 93 throw errors.addFatalAndHalt("Unable to write output file", e); in execute() 100 if (!errors.isEmpty()) { in execute() 101 logInfo("Issues:\n" + errors.asString()); in execute() 104 return !errors.hasError(); in execute() 108 Errors errors) { in validateNetworks() argument 109 errors.pushScope("validateNetworks"); in validateNetworks() [all …]
|
/system/extras/libfec/test/ |
D | test_rs.c | 39 int i, rc, neras, errors; in main() local 69 errors = 0; in main() 73 ++errors; in main() 76 printf("\t\t%d errors in output\n", errors); in main() 82 errors = 0; in main() 86 ++errors; in main() 89 printf("\t\t%d errors in output\n", errors); in main()
|
/system/sepolicy/tests/ |
D | apex_sepolicy_tests.py | 113 errors = [] 125 errors.append(f"Error: {path}: {s} can't {perm}. (tcontext={tcontext})") 128 errors.append(f"Error: {path}: tcontext({tcontext}) is unknown") 131 errors.append(f"Error: {path}: can't be labelled as '{tcontext}'") 132 return errors 179 errors = [] 182 errors.extend(check_rule(pol, path, tcontext, rule)) 183 return errors 212 errors = [] 215 errors.extend(check_line(pol, line, rules)) [all …]
|
D | apex_sepolicy_tests_test.py | 46 errors = apex.check_line(self.pol, line, apex.all_rules) 47 self.assertEqual(errors, [], "Should be no errors") 51 errors = apex.check_line(self.pol, line, apex.all_rules) 52 for err in errors:
|
/system/tools/hidl/lint/lints/ |
D | safeunion.cpp | 35 std::vector<Lint>* errors) { in lintUnionRecursively() argument 48 lintUnionRecursively(static_cast<const Scope*>(nextType), visited, errors); in lintUnionRecursively() 54 errors->push_back(Lint(ERROR, compoundType->location()) in lintUnionRecursively() 62 lintUnionRecursively(compoundType, visited, errors); in lintUnionRecursively() 76 errors->push_back(Lint(ERROR, nextRef->location()) in lintUnionRecursively() 102 errors->push_back(Lint(ERROR, nextRef->location()) in lintUnionRecursively() 111 static void safeunionLint(const AST& ast, std::vector<Lint>* errors) { in safeunionLint() argument 115 lintUnionRecursively(&ast.getRootScope(), &visited, errors); in safeunionLint()
|
D | methodDocComment.cpp | 79 static void methodDocComments(const AST& ast, std::vector<Lint>* errors) { in methodDocComments() argument 102 errors->push_back(Lint(WARNING, docComment->location()) in methodDocComments() 109 errors->push_back(Lint(WARNING, docComment->location()) in methodDocComments() 116 errors->push_back( in methodDocComments() 131 errors->push_back(Lint(WARNING, docComment->location()) in methodDocComments() 137 errors->push_back(Lint(WARNING, docComment->location()) in methodDocComments() 144 errors->push_back(Lint(WARNING, docComment->location()) in methodDocComments() 150 errors->push_back( in methodDocComments() 162 errors->push_back(Lint(WARNING, docComment->location()) in methodDocComments() 167 errors->push_back(Lint(WARNING, docComment->location()) in methodDocComments()
|
D | importTypes.cpp | 26 static void importTypes(const AST& ast, std::vector<Lint>* errors) { in importTypes() argument 32 errors->push_back(Lint(ERROR, import.location) in importTypes() 36 errors->push_back(Lint(WARNING, import.location) in importTypes()
|
D | emptyStructs.cpp | 28 static void checkSmallStructs(const AST& ast, std::vector<Lint>* errors) { in checkSmallStructs() argument 45 errors->push_back( in checkSmallStructs() 50 errors->push_back(Lint(ERROR, compoundType->location()) in checkSmallStructs()
|
D | namingConventions.cpp | 33 static void namingConventions(const AST& ast, std::vector<Lint>* errors) { in namingConventions() argument 56 errors->push_back(Lint(WARNING, namedType->location()) in namingConventions() 68 errors->push_back(Lint(WARNING, (*ref).location()) in namingConventions() 80 errors->push_back(Lint(WARNING, ev->location()) in namingConventions()
|
D | unhandledComments.cpp | 26 static void unhandledComments(const AST& ast, std::vector<Lint>* errors) { in unhandledComments() argument 28 errors->push_back( in unhandledComments()
|
D | methodVersions.cpp | 89 static void methodVersions(const AST& ast, std::vector<Lint>* errors) { in methodVersions() argument 99 errors->push_back(Lint(WARNING, method->location(), in methodVersions() 125 errors->push_back(Lint(WARNING, method->location()) in methodVersions() 132 errors->push_back(Lint(WARNING, method->location()) << errorString << "\n"); in methodVersions()
|
D | oneway.cpp | 72 static void onewayLint(const AST& ast, std::vector<Lint>* errors) { in onewayLint() argument 92 errors->push_back(Lint(WARNING, iface->location()) in onewayLint() 108 errors->push_back(Lint(WARNING, iface->location()) in onewayLint()
|
/system/keymint/boringssl/src/ |
D | lib.rs | 53 let errors = errs.errors(); in map_openssl_errstack() localVariable 54 if errors.is_empty() { in map_openssl_errstack() 58 let err = &errors[0]; // safe: length checked above in map_openssl_errstack() 106 let errors = e.errors(); localVariable 107 let errcode = if errors.is_empty() { 110 $crate::map_openssl_err(&errors[0]) // safe: length checked above
|
/system/core/libutils/binder/ |
D | Errors_test.cpp | 35 TEST(errors, unwrap_or_return) { in TEST() argument 53 TEST(errors, unwrap_or_return_result) { in TEST() argument 69 TEST(errors, unwrap_or_return_result_int) { in TEST() argument 85 TEST(errors, unwrap_or_fatal) { in TEST() argument 91 TEST(errors, result_in_status) { in TEST() argument 112 TEST(errors, conversion_promotion) { in TEST() argument 126 TEST(errors, conversion_promotion_bool) { in TEST() argument 140 TEST(errors, conversion_promotion_char) { in TEST() argument 160 TEST(errors, conversion_construct) { in TEST() argument
|
/system/tools/sysprop/tests/ |
D | TypeCheckerTest.cpp | 102 std::vector<std::string> errors; in TEST() local 103 ParsePropertyInfoFile(kContexts, true, &entries, &errors); in TEST() 104 ASSERT_TRUE(errors.empty()); in TEST() 111 ParsePropertyInfoFile(kBadContexts, true, &bad_entries, &errors); in TEST() 112 ASSERT_TRUE(errors.empty()); in TEST()
|
/system/extras/libfec/ |
D | fec_process.cpp | 28 size_t errors; member 35 p->rc = p->func(p->f, p->buf, p->count, p->offset, &p->errors); in __process() 86 info[i].errors = 0; in process() 108 f->errors += p->errors; in process()
|
/system/tools/sysprop/ |
D | TypeCheckerMain.cpp | 113 std::vector<std::string> errors; in main() local 114 ParsePropertyInfoFile(contents, true, &entries, &errors); in main() 115 if (!errors.empty()) { in main() 116 for (const auto& error : errors) { in main()
|
/system/logging/logd/ |
D | LogBufferTest.cpp | 43 std::vector<std::string> errors; in CompareLoggerEntries() local 45 errors.emplace_back( in CompareLoggerEntries() 49 errors.emplace_back(StringPrintf("hdr_size: %" PRIu16 " vs %" PRIu16, expected.hdr_size, in CompareLoggerEntries() 53 errors.emplace_back( in CompareLoggerEntries() 57 errors.emplace_back( in CompareLoggerEntries() 61 errors.emplace_back( in CompareLoggerEntries() 65 errors.emplace_back( in CompareLoggerEntries() 69 errors.emplace_back( in CompareLoggerEntries() 73 errors.emplace_back( in CompareLoggerEntries() 76 return errors; in CompareLoggerEntries() [all …]
|
/system/tools/hidl/lint/ |
D | LintRegistry.cpp | 26 void LintRegistry::runAllLintFunctions(const AST& ast, std::vector<Lint>* errors) { in runAllLintFunctions() argument 28 lintFunction(ast, errors); in runAllLintFunctions()
|
/system/core/init/ |
D | apex_init_util.cpp | 119 std::vector<std::string> errors; in ParseRcScripts() local 124 errors.push_back(result.error().message()); in ParseRcScripts() 127 if (!errors.empty()) { in ParseRcScripts() 128 return Error() << "Unable to parse apex configs: " << base::Join(errors, "|"); in ParseRcScripts()
|
/system/core/property_service/libpropertyinfoserializer/ |
D | property_info_file.cpp | 108 std::vector<std::string>* errors) { in ParsePropertyInfoFile() argument 111 errors->clear(); in ParsePropertyInfoFile() 123 errors->emplace_back(parse_error); in ParsePropertyInfoFile()
|
/system/core/property_service/property_info_checker/ |
D | property_info_checker.cpp | 155 auto errors = std::vector<std::string>{}; in main() 156 ParsePropertyInfoFile(file_contents, true, &property_info_entries, &errors); in main() 157 if (!errors.empty()) { in main() 158 for (const auto& error : errors) { in main()
|