Home
last modified time | relevance | path

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

123

/system/timezone/input_tools/android/common/src/test/java/com/android/libcore/timezone/util/
DErrorsTest.java32 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/timezone/input_tools/android/tzlookup_generator/src/main/java/com/android/libcore/timezone/tzlookup/
DTzLookupGenerator.java104 Errors errors = new Errors(); in execute() local
108 parseAndValidateCountryZones(countryZonesFileIn, errors); in execute()
114 throw errors.addFatalAndHalt("Input data (countryzones.txt) is for " in execute()
120 Map<String, List<String>> zoneTabMapping = parseZoneTabFile(zoneTabFileIn, errors); in execute()
128 throw errors.addFatalAndHalt( in execute()
133 throw errors.addFatalAndHalt( in execute()
143 throw errors.addFatalAndHalt(zoneTabFileIn + " contains " in execute()
152 BackwardFile backwardIn = parseAndValidateBackwardFile(backwardFileIn, errors); in execute()
153 errors.throwIfError("Errors accumulated"); in execute()
156 inputIanaVersion, zoneTabMapping, countriesIn, backwardIn, errors); in execute()
[all …]
/system/tools/hidl/lint/test/
Dmain.cpp43 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/core/libstats/socket/
Dstats_event.c46 uint32_t errors; member
63 event->errors = 0; in stats_event_obtain()
94 event->errors |= ERROR_OVERFLOW; in overflows()
145 event->errors |= ERROR_STRING_NOT_NULL_TERMINATED; in append_string()
160 if (event->errors) return; in stats_event_write_int32()
167 if (event->errors) return; in stats_event_write_int64()
174 if (event->errors) return; in stats_event_write_float()
181 if (event->errors) return; in stats_event_write_bool()
188 if (event->errors) return; in stats_event_write_byte_array()
197 if (event->errors) return; in stats_event_write_string8()
[all …]
/system/timezone/input_tools/android/telephonylookup_generator/src/main/java/com/android/libcore/timezone/telephonylookup/
DTelephonyLookupGenerator.java72 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/
Dtest_rs.c39 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/tools/hidl/lint/lints/
Dsafeunion.cpp35 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()
DmethodDocComment.cpp79 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()
DimportTypes.cpp26 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()
DemptyStructs.cpp28 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()
DnamingConventions.cpp33 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()
DunhandledComments.cpp26 static void unhandledComments(const AST& ast, std::vector<Lint>* errors) { in unhandledComments() argument
28 errors->push_back( in unhandledComments()
DmethodVersions.cpp89 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()
Doneway.cpp72 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()
DenumMaxAndAll.cpp33 static void enumValueNames(const AST& ast, std::vector<Lint>* errors) { in enumValueNames() argument
62 errors->push_back(Lint(WARNING, ev->location(), errorString)); in enumValueNames()
/system/tools/sysprop/tests/
DTypeCheckerTest.cpp102 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/
Dfec_process.cpp27 size_t errors; member
38 p->rc = p->func(p->f, p->buf, p->count, p->offset, &p->errors); in __process()
94 info[i].errors = 0; in process()
129 f->errors += p->errors; in process()
Dfec_read.cpp108 bool use_erasures, uint8_t *ecc_data, size_t *errors) in __ecc_read() argument
201 *errors += nerrs; in __ecc_read()
235 uint64_t offset, size_t *errors) in ecc_read() argument
241 check(errors); in ecc_read()
261 ecc_data.get(), errors) == -1) { in ecc_read()
286 uint64_t offset, size_t *errors) in verity_read() argument
293 check(errors); in verity_read()
356 errors) == FEC_BLOCKSIZE && in verity_read()
363 errors) == FEC_BLOCKSIZE && in verity_read()
/system/tools/sysprop/
DTypeCheckerMain.cpp113 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/tools/hidl/lint/
DLintRegistry.cpp26 void LintRegistry::runAllLintFunctions(const AST& ast, std::vector<Lint>* errors) { in runAllLintFunctions() argument
28 lintFunction(ast, errors); in runAllLintFunctions()
/system/core/logd/
DLogBufferTest.cpp53 std::vector<std::string> errors; in CompareLoggerEntries() local
55 errors.emplace_back( in CompareLoggerEntries()
59 errors.emplace_back(StringPrintf("hdr_size: %" PRIu16 " vs %" PRIu16, expected.hdr_size, in CompareLoggerEntries()
63 errors.emplace_back( in CompareLoggerEntries()
67 errors.emplace_back( in CompareLoggerEntries()
71 errors.emplace_back( in CompareLoggerEntries()
75 errors.emplace_back( in CompareLoggerEntries()
79 errors.emplace_back( in CompareLoggerEntries()
83 errors.emplace_back( in CompareLoggerEntries()
86 return errors; in CompareLoggerEntries()
[all …]
/system/core/property_service/libpropertyinfoserializer/
Dproperty_info_file.cpp108 std::vector<std::string>* errors) { in ParsePropertyInfoFile() argument
111 errors->clear(); in ParsePropertyInfoFile()
123 errors->emplace_back(parse_error); in ParsePropertyInfoFile()
/system/core/init/
Dinterface_utils.cpp85 const std::string& errors = error_stream.str(); in CheckInterfaceInheritanceHierarchy() local
86 if (!errors.empty()) { in CheckInterfaceInheritanceHierarchy()
87 return Error() << errors; in CheckInterfaceInheritanceHierarchy()
/system/core/property_service/property_info_checker/
Dproperty_info_checker.cpp155 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()
/system/iorap/
DAndroid.bp86 // errors if we use lite
91 // commented out because it causes compilation errors
129 // linking errors.
185 // XX: Using -O0 seems to completely hide some errors.
231 // Avoids compilation #include errors.
237 // Furthermore, we need this regardless to avoid linking errors when linking
246 // We only put this to avoid linking errors when building iorapd.
278 // XX: Using -O0 seems to completely hide some errors.

123