/system/teeui/libteeui/include/teeui/ |
D | error.h | 26 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 …]
|
D | font_rendering.h | 147 Error setCharSize(signed long char_size, unsigned int dpi); 148 Error setCharSizeInPix(pxs size); 150 Error loadGlyph(GlyphIndex index); 151 Error renderGlyph(); 153 Error drawGlyph(const Vec2d<pxs>& pos, const PixelDrawer& drawPixel) { in drawGlyph() 176 return Error::UnsupportedPixelFormat; in drawGlyph() 179 return Error::OutOfBoundsDrawing; in drawGlyph() 184 return Error::OK; in drawGlyph() 196 static std::tuple<Error, TextContext> create(); 199 std::tuple<Error, TextFace> loadFace(const Buffer& data, signed long face_index = 0) { [all …]
|
/system/teeui/libteeui/src/ |
D | font_rendering.cpp | 56 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 …]
|
D | label.cpp | 25 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() 107 if (!boundingBox) return Error::OK; in draw() 136 return Error::OK; in draw() 139 Error LabelImpl::hit(const Event& event, const Box<pxs>& bounds) { in hit() 147 return Error::OK; in hit()
|
/system/libbase/include/android-base/ |
D | result.h | 119 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/ |
D | service_parser.cpp | 57 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 …]
|
D | ueventd_parser.cpp | 37 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 …]
|
D | builtins.cpp | 131 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 …]
|
D | check_builtins.cpp | 57 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()
|
D | action_parser.cpp | 67 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()
|
D | rlimit_parser.cpp | 43 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()
|
D | interface_utils.cpp | 27 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()
|
D | import_parser.cpp | 29 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()
|
D | proto_utils.h | 35 return Error(); in ReadMessage() 46 return Error() << "Unable to serialize message"; in SendMessage() 50 return Error() << "Serialized message too long to send"; in SendMessage()
|
D | util.cpp | 171 return Error() << "Skipping insecure file"; in ReadFile() 318 return Error() << "unexpected end of string in '" << src << "', looking for }"; in ExpandProps() 330 return Error() << "using deprecated syntax for specifying property '" << c in ExpandProps() 340 return Error() << "invalid zero-length property name in '" << src << "'"; in ExpandProps() 346 return Error() << "property '" << prop_name << "' doesn't exist while expanding '" in ExpandProps() 429 return Error() << "Property value too long"; in IsLegalPropertyValue() 433 return Error() << "Value is not a UTF8 encoded string"; in IsLegalPropertyValue() 503 return Error() in ParseMkdir() 510 return Error() in ParseMkdir() 517 return Error() << "Can't parse option: '" << args[i] << "'"; in ParseMkdir() [all …]
|
/system/apex/apexd/ |
D | apex_manifest.cpp | 23 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()
|
D | apexd_verity.cpp | 33 using android::base::Error; 73 return Error() << "Unsupported hash algorithm " in GenerateHashTree() 79 return Error() << "Invalid image size " << image_size; in GenerateHashTree() 90 return Error() << "Failed to read"; in GenerateHashTree() 93 return Error() << "Failed to build hashtree: Update"; in GenerateHashTree() 97 return Error() << "Failed to build hashtree: incomplete data"; in GenerateHashTree() 106 return Error() << "Failed to build hashtree: root digest mismatch"; in GenerateHashTree() 112 return Error() << "Failed to write hashtree to " << hashtree_file; in GenerateHashTree() 133 return Error() << "Unsupported hash algorithm " in CalculateRootDigest() 138 return Error() << "Invalid image size " << image_size; in CalculateRootDigest() [all …]
|
D | apex_preinstalled_data.cpp | 32 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()
|
D | apex_shim.cpp | 34 using android::base::Error; 64 return Error() << "Failed to open " << path; in CalculateSha512() 70 return Error() << "Failed to read " << path; in CalculateSha512() 136 return Error() in ValidateShimApex() 142 return Error() << path << " has illegal permissions"; in ValidateShimApex() 148 return Error() << path << " is an unexpected file inside the shim apex"; in ValidateShimApex() 152 return Error() << "Unexpected file entry in shim apex: " << iter->path(); in ValidateShimApex() 156 return Error() << "Failed to scan " << mount_point << " : " in ValidateShimApex() 178 return Error() << new_apex_path << " has unexpected SHA512 hash " in ValidateUpdate()
|
D | apexd_rollback_utils.h | 30 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()
|
D | apex_file.cpp | 41 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() 171 return Error() << "AVB footer verification failed."; in getAvbFooter() 190 return Error() << "Cannot find prop '" << kApexKeyProp << "' from " in getPublicKeyName() 195 return Error() << "Key mismatch: apex name is '" in getPublicKeyName() 215 return Error() << "Error verifying " << apex.GetPath() << ": " in verifyVbMetaSignature() [all …]
|
D | apexd_checkpoint_vold.cpp | 26 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()
|
/system/teeui/libteeui/example/ |
D | touch_button_example.cpp | 52 Error tapOk(Event e) { in tapOk() 57 return Error::OK; in tapOk() 60 Error tapCancel(Event e) { in tapCancel() 65 return Error::OK; in tapCancel() 130 .setCB(makeCallback<Error, Event>( in setDeviceInfo() 131 [](Event e, void* p) -> Error { return reinterpret_cast<GUIStateTouch*>(p)->tapOk(e); }, in setDeviceInfo() 134 .setCB(makeCallback<Error, Event>( in setDeviceInfo() 135 [](Event e, void* p) -> Error { in setDeviceInfo() 152 return uint32_t(Error::OutOfBoundsDrawing); in renderUIIntoBuffer() 175 [&fb](uint32_t x, uint32_t y, Color color) -> Error { return fb.drawPixel(x, y, color); }); in renderUIIntoBuffer()
|
/system/core/adb/client/ |
D | file_sync_client.cpp | 235 Error("failed to get feature set: %s", error.c_str()); in SyncConnection() 248 Error("connect failed: %s", error.c_str()); in SyncConnection() 336 Error("SendRequest failed: path too long: %zu", path.length()); in SendRequest() 354 Error("SendRequest failed: path too long: %zu", path.length()); in SendSend2() 406 Error("SendRequest failed: path too long: %zu", path.length()); in SendRecv2() 573 Error("SendSmallFile failed: path too long: %zu", path_and_mode.length()); in SendSmallFile() 613 Error("dry-run not supported by the device"); in SendLargeFile() 624 Error("failed to send ID_SEND_V2 message '%s': %s", path.c_str(), strerror(errno)); in SendLargeFile() 630 Error("cannot stat '%s': %s", lpath.c_str(), strerror(errno)); in SendLargeFile() 639 Error("opening '%s' locally failed: %s", lpath.c_str(), strerror(errno)); in SendLargeFile() [all …]
|
/system/security/keystore/ |
D | auth_token_table.h | 48 enum Error { enum 74 std::tuple<Error, HardwareAuthToken> FindAuthorization(const AuthorizationSet& key_info, 77 std::tuple<Error, HardwareAuthToken> 154 std::tuple<Error, HardwareAuthToken> 157 std::tuple<Error, HardwareAuthToken> FindTimedAuthorization(const std::vector<uint64_t>& sids,
|