Home
last modified time | relevance | path

Searched refs:Error (Results 1 – 25 of 115) sorted by relevance

12345

/system/teeui/libteeui/include/teeui/
Derror.h26 class Error {
43 constexpr Error() noexcept : v_(OK) {} in Error() function
44 constexpr Error(error_e v) noexcept : v_(v) {} in Error() function
45 constexpr Error(Error&&) noexcept = default;
46 constexpr Error(const Error&) noexcept = default;
48 Error& operator=(error_e v) {
52 Error& operator=(const Error& other) {
64 Error operator||(const Error& rhs) const { return *this ? *this : rhs; }
78 [[maybe_unused]] static std::ostream& operator<<(std::ostream& out, Error e) {
80 case Error::OK:
[all …]
Dfont_rendering.h250 Error setCharSize(signed long char_size, unsigned int dpi);
251 Error setCharSizeInPix(pxs size);
253 Error loadGlyph(GlyphIndex index);
254 Error renderGlyph();
256 Error drawGlyph(const Vec2d<pxs>& pos, const PixelDrawer& drawPixel) { in drawGlyph()
279 return Error::UnsupportedPixelFormat; in drawGlyph()
282 return Error::OutOfBoundsDrawing; in drawGlyph()
287 return Error::OK; in drawGlyph()
299 static std::tuple<Error, TextContext> create();
302 std::tuple<Error, TextFace> loadFace(const Buffer& data, signed long face_index = 0) {
[all …]
/system/teeui/libteeui/src/
Dfont_rendering.cpp56 Error TextFace::setCharSize(signed long char_size, unsigned int dpi) { in setCharSize()
57 if (!face_) return Error::NotInitialized; in setCharSize()
59 if (error) return Error::CharSizeNotSet; in setCharSize()
60 return Error::OK; in setCharSize()
63 Error TextFace::setCharSizeInPix(pxs size) { in setCharSizeInPix()
64 if (!face_) return Error::NotInitialized; in setCharSizeInPix()
66 return Error::CharSizeNotSet; in setCharSizeInPix()
68 return Error::OK; in setCharSizeInPix()
76 Error TextFace::loadGlyph(GlyphIndex index) { in loadGlyph()
77 if (!face_) return Error::NotInitialized; in loadGlyph()
[all …]
Dlabel.cpp25 Error LabelImpl::draw(const PixelDrawer& drawPixel, const Box<pxs>& bounds, LineInfo* lineInfo) { in draw()
26 if (!font_) return Error::NotInitialized; in draw()
28 Error error; in draw()
45 makePixelDrawer([&, this](uint32_t x, uint32_t y, Color color) -> Error { in draw()
48 return Error::OutOfBoundsDrawing; in draw()
72 if (curLine == lineInfo->end()) return Error::OutOfMemory; in draw()
96 if (!boundingBox) return Error::BBoxComputation; in draw()
123 return Error::OK; in draw()
/system/core/base/include/android-base/
Dresult.h119 class Error {
121 Error() : errno_(0), append_errno_(false) {} in Error() function
123 Error(int errno_to_append) : errno_(errno_to_append), append_errno_(true) {} in Error() function
132 Error& operator<<(T&& t) {
155 Error(const Error&) = delete;
156 Error(Error&&) = delete;
157 Error& operator=(const Error&) = delete;
158 Error& operator=(Error&&) = delete;
161 friend Error ErrorfImpl(const T&& fmt, const Args&... args);
164 friend Error ErrnoErrorfImpl(const T&& fmt, const Args&... args);
[all …]
/system/core/init/
Dservice_parser.cpp57 return Error() in ParseCapabilities()
88 return Error() << "'console' and 'stdio_to_kmsg' are mutually exclusive"; in ParseConsole()
108 return Error() << "Init only supports entering network namespaces"; in ParseEnterNamespace()
111 return Error() << "Only one network namespace may be entered"; in ParseEnterNamespace()
123 return Error() << "Unable to decode GID for '" << args[1] << "': " << gid.error(); in ParseGroup()
130 return Error() << "Unable to decode GID for '" << args[n] << "': " << gid.error(); in ParseGroup()
156 return Error() << "Invalid fully-qualified name for interface '" << interface_name in ParseInterface()
161 return Error() << "Interface name not fully-qualified '" << interface_name << "'"; in ParseInterface()
165 return Error() << "Interface name must not be a value name '" << interface_name << "'"; in ParseInterface()
173 return Error() << "Interface '" << fullname << "' redefined in " << service_->name() in ParseInterface()
[all …]
Dbuiltins.cpp131 Error error_;
147 return Error() << "Failed to set bootloader message: " << err; in reboot_into_recovery()
179 return Error() << "command 'class_start_post_data' only available in init context"; in do_class_start_post_data()
211 return Error() << "command 'class_reset_post_data' only available in init context"; in do_class_reset_post_data()
232 return Error() << "Unable to write to /proc/sys/kernel/domainname: " << result.error(); in do_domainname()
239 if (!svc) return Error() << "Could not find service"; in do_enable()
242 return Error() << "Could not enable service: " << result.error(); in do_enable()
251 return Error() << "Could not create exec service: " << service.error(); in do_exec()
254 return Error() << "Could not start exec service: " << result.error(); in do_exec()
264 return Error() << "Could not create exec background service: " << service.error(); in do_exec_background()
[all …]
Dueventd_parser.cpp37 return Error() << "/sys/ lines must have 5 entries"; in ParsePermissionsLine()
41 return Error() << "/dev/ lines must have 4 entries"; in ParsePermissionsLine()
55 return Error() << "invalid mode '" << perm_string << "'"; in ParsePermissionsLine()
61 return Error() << "invalid uid '" << uid_string << "'"; in ParsePermissionsLine()
68 return Error() << "invalid gid '" << gid_string << "'"; in ParsePermissionsLine()
83 return Error() << "firmware_directories must have at least 1 entry"; in ParseFirmwareDirectoriesLine()
95 return Error() << "external_firmware_handler lines must have exactly 3 parameters"; in ParseExternalFirmwareHandlerLine()
101 return Error() << "found a previous external_firmware_handler with the same devpath, '" in ParseExternalFirmwareHandlerLine()
118 return Error() << args[0] << " lines take exactly one parameter"; in ParseEnabledDisabledLine()
126 return Error() << args[0] << " takes either 'enabled' or 'disabled' as a parameter"; in ParseEnabledDisabledLine()
[all …]
Dcheck_builtins.cpp57 return Error() << "Unable to decode UID for '" << args[1] << "': " << uid.error(); in check_chown()
65 return Error() << "Unable to decode GID for '" << args[2] << "': " << gid.error(); in check_chown()
112 return Error() << "'load_system_props' is deprecated"; in check_load_system_props()
121 return Error() << "loglevel must be in the range of 0-7"; in check_loglevel()
165 return Error() << "'" << name << "' is not a legal property name"; in check_setprop()
175 return Error() in check_setprop()
181 return Error() << "Do not set '" << kRestoreconProperty in check_setprop()
190 return Error() << "Property type check failed, value doesn't match expected type '" in check_setprop()
218 return Error() << "Unable to parse mins_west_of_gmt"; in check_sysclktz()
235 return Error() << "failed to parse timeout"; in check_wait()
Daction_parser.cpp67 return Error() << "property trigger found without matching '='"; in ParsePropertyTrigger()
74 return Error() << "unexported property trigger found: " << prop_name; in ParsePropertyTrigger()
78 return Error() << "multiple property triggers found for same property"; in ParsePropertyTrigger()
87 return Error() << "Illegal character '" << c << "' in '" << event_trigger << "'"; in ValidateEventTrigger()
100 return Error() << "empty trigger is not valid"; in ParseTriggers()
105 return Error() << "&& is the only symbol allowed to concatenate actions"; in ParseTriggers()
118 return Error() << "multiple event triggers are not allowed"; in ParseTriggers()
137 return Error() << "Actions must have a trigger"; in ParseSection()
151 return Error() << "ParseTriggers() failed: " << result.error(); in ParseSection()
Drlimit_parser.cpp43 return Error() << "Resource '" << args[1] << "' over the maximum resource value '" in ParseRlimit()
46 return Error() << "Resource '" << args[1] << "' below the minimum resource value '0'"; in ParseRlimit()
61 return Error() << "Could not parse resource '" << args[1] << "'"; in ParseRlimit()
71 return Error() << "Could not parse soft limit '" << args[2] << "'"; in ParseRlimit()
77 return Error() << "Could not parse hard limit '" << args[3] << "'"; in ParseRlimit()
Dinterface_utils.cpp27 using android::base::Error;
56 return Error() << "Unable to parse interface instance '" << instance << "'"; in CheckInterfaceInheritanceHierarchy()
87 return Error() << errors; in CheckInterfaceInheritanceHierarchy()
105 return Error() << "Unable to parse interface instance '" << instance << "'"; in IsKnownInterface()
112 return Error() << "No known interfaces have been loaded."; in IsKnownInterface()
115 return Error() << "Interface is not in the known set of hidl_interfaces: '" << intf.string() in IsKnownInterface()
Dutil.cpp169 return Error() << "Skipping insecure file"; in ReadFile()
316 return Error() << "unexpected end of string in '" << src << "', looking for }"; in ExpandProps()
328 return Error() << "using deprecated syntax for specifying property '" << c in ExpandProps()
338 return Error() << "invalid zero-length property name in '" << src << "'"; in ExpandProps()
344 return Error() << "property '" << prop_name << "' doesn't exist while expanding '" in ExpandProps()
427 return Error() << "Property value too long"; in IsLegalPropertyValue()
431 return Error() << "Value is not a UTF8 encoded string"; in IsLegalPropertyValue()
501 return Error() in ParseMkdir()
508 return Error() in ParseMkdir()
515 return Error() << "Can't parse option: '" << args[i] << "'"; in ParseMkdir()
[all …]
Dproto_utils.h35 return Error(); in ReadMessage()
46 return Error() << "Unable to serialize message"; in SendMessage()
50 return Error() << "Serialized message too long to send"; in SendMessage()
Dimport_parser.cpp29 return Error() << "single argument needed for import\n"; in ParseSection()
34 return Error() << "Could not expand import: " << conf_file.error(); in ParseSection()
44 return Error() << "Unexpected line found after import statement"; in ParseLineSection()
/system/apex/apexd/
Dapex_manifest.cpp23 using android::base::Error;
33 return Error() << "Can't parse APEX manifest."; in ParseManifest()
39 return Error() << "Missing required field \"name\" from APEX manifest."; in ParseManifest()
44 return Error() << "Missing required field \"version\" from APEX manifest."; in ParseManifest()
56 return Error() << "Failed to read manifest file: " << path; in ReadManifest()
Dapexd_verity.cpp33 using android::base::Error;
72 return Error() << "Unsupported hash algorithm " in GenerateHashTree()
78 return Error() << "Invalid image size " << image_size; in GenerateHashTree()
89 return Error() << "Failed to read"; in GenerateHashTree()
92 return Error() << "Failed to build hashtree: Update"; in GenerateHashTree()
96 return Error() << "Failed to build hashtree: incomplete data"; in GenerateHashTree()
105 return Error() << "Failed to build hashtree: root digest mismatch"; in GenerateHashTree()
111 return Error() << "Failed to write hashtree to " << hashtree_file; in GenerateHashTree()
131 return Error() << "Unsupported hash algorithm " in CalculateRootDigest()
136 return Error() << "Invalid image size " << image_size; in CalculateRootDigest()
[all …]
Dapex_preinstalled_data.cpp32 using android::base::Error;
58 return Error() << "Can't scan preinstalled APEX data from " << dir; in collectPreinstalleDataFromDir()
68 return Error() << "Failed to open " << file << " : " << apex_file.error(); in collectPreinstalleDataFromDir()
89 return Error() << "Key for package " << apex.name in updatePreinstalledData()
104 return Error() << "Failed to collect keys from " << dir << " : " in collectPreinstalledData()
117 return Error() << "No preinstalled data found for package " << name; in getApexKey()
124 return Error() << "No preinstalled data found for package " << name; in getApexPreinstalledPath()
Dapex_shim.cpp34 using android::base::Error;
65 return Error() << "Failed to open " << path; in CalculateSha512()
71 return Error() << "Failed to read " << path; in CalculateSha512()
138 return Error() in ValidateShimApex()
144 return Error() << path << " has illegal permissions"; in ValidateShimApex()
150 return Error() << path << " is an unexpected file inside the shim apex"; in ValidateShimApex()
154 return Error() << "Unexpected file entry in shim apex: " << iter->path(); in ValidateShimApex()
158 return Error() << "Failed to scan " << mount_point << " : " in ValidateShimApex()
180 return Error() << new_apex_path << " has unexpected SHA512 hash " in ValidateUpdate()
Dapexd_utils.h43 using android::base::Error;
106 return Error() << "Can't open " << path in WalkDir()
146 return Error() << path << " exists and is not a directory."; in createDirIfNeeded()
162 return Error() << "Failed to delete " << path << " : " << files.error(); in DeleteDirContent()
177 return Error() << "Failed to delete path " << path << " : " << ec.message(); in DeleteDir()
198 return Error() << "Failed to access " << path << " : " << ec.message(); in PathExists()
261 return Error() << second_dir << " is not a directory"; in FindFirstExistingDirectory()
275 return Error() << second_dir << " is not a directory"; in FindFirstExistingDirectory()
288 return Error() << to << " is not a directory"; in MoveDir()
295 return Error() << "Can't read " << from << " : " << ec.message(); in MoveDir()
[all …]
Dapexd_rollback_utils.h30 using android::base::Error;
72 return Error() << "Failed to delete existing files at " << to_path << " : " in ReplaceFiles()
88 return Error() << "Failed to copy from [" << from_path << "] to [" in ReplaceFiles()
98 return Error() << "Failed to restorecon " << path; in RestoreconPath()
Dapexd_checkpoint_vold.cpp26 using android::base::Error;
74 return Error() << status.toString8().c_str(); in NeedsCheckpoint()
87 return Error() << status.toString8().c_str(); in NeedsRollback()
98 return Error() << status.toString8().c_str(); in StartCheckpoint()
Dapex_file.cpp41 using android::base::Error;
68 return Error() << "Failed to open package " << path << ": " in Open()
76 return Error() << "Could not find entry \"" << kImageFilename in Open()
84 return Error() << "Could not find entry \"" << kManifestFilenamePb in Open()
94 return Error() << "Failed to extract manifest from package " << path << ": " in Open()
105 return Error() << "Failed to extract public key from package " << path in Open()
169 return Error() << "AVB footer verification failed."; in getAvbFooter()
195 return Error() << "Error verifying " << apex.GetPath() << ": " in verifyVbMetaSignature()
198 return Error() << "Error verifying " << apex.GetPath() << ": " in verifyVbMetaSignature()
201 return Error() << "Error verifying " << apex.GetPath() << ": " in verifyVbMetaSignature()
[all …]
/system/core/adb/client/
Dfile_sync_client.cpp233 Error("failed to get feature set: %s", error.c_str()); in SyncConnection()
241 Error("connect failed: %s", error.c_str()); in SyncConnection()
310 Error("SendRequest failed: path too long: %zu", path.length()); in SendRequest()
328 Error("SendRequest failed: path too long: %zu", path.length()); in SendSend2()
357 Error("SendRequest failed: path too long: %zu", path.length()); in SendRecv2()
500 Error("SendSmallFile failed: path too long: %zu", path_and_mode.length()); in SendSmallFile()
539 Error("failed to send ID_SEND_V2 message '%s': %s", path.c_str(), strerror(errno)); in SendLargeFileCompressed()
545 Error("cannot stat '%s': %s", lpath.c_str(), strerror(errno)); in SendLargeFileCompressed()
554 Error("opening '%s' locally failed: %s", lpath.c_str(), strerror(errno)); in SendLargeFileCompressed()
567 Error("reading '%s' locally failed: %s", lpath.c_str(), strerror(errno)); in SendLargeFileCompressed()
[all …]
/system/extras/simpleperf/app_api/java/com/android/simpleperf/
DProfileSession.java99 throw new Error("failed to find packageName: " + e.getMessage()); in ProfileSession()
102 throw new Error("failed to find packageName"); in ProfileSession()
225 throw new Error("can't find simpleperf on device. Please run api_profiler.py."); in findSimpleperf()
283 throw new Error("linux perf events aren't enabled on the device." + in checkIfPerfEnabled()
314 throw new Error("failed to create simpleperf process: " + e.getMessage()); in createSimpleperfProcess()
320 throw new Error("failed to receive simpleperf start flag"); in createSimpleperfProcess()
330 throw new Error("failed to send cmd to simpleperf: " + e.getMessage()); in sendCmd()
333 throw new Error("failed to run cmd in simpleperf: " + cmd); in sendCmd()

12345