Home
last modified time | relevance | path

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

123

/system/core/init/
Dresult.h102 class Error {
104 Error() : errno_(0), append_errno_(false) {} in Error() function
105 Error(int errno_to_append) : errno_(errno_to_append), append_errno_(true) {} in Error() function
108 Error&& operator<<(T&& t) {
113 Error&& operator<<(const ResultError& result_error) {
119 Error&& operator<<(ResultError&& result_error) {
138 Error(const Error&) = delete;
139 Error(Error&&) = delete;
140 Error& operator=(const Error&) = delete;
141 Error& operator=(Error&&) = delete;
[all …]
Dbuiltins.cpp94 return Error() << "Failed to set bootloader message: " << err; in reboot_into_recovery()
126 return Error() << "command 'class_start_post_data' only available in init context"; in do_class_start_post_data()
151 return Error() << "command 'class_reset_post_data' only available in init context"; in do_class_reset_post_data()
167 return Error() << "Unable to write to /proc/sys/kernel/domainname: " << result.error(); in do_domainname()
174 if (!svc) return Error() << "Could not find service"; in do_enable()
177 return Error() << "Could not enable service: " << result.error(); in do_enable()
186 return Error() << "Could not create exec service"; in do_exec()
189 return Error() << "Could not start exec service: " << result.error(); in do_exec()
199 return Error() << "Could not create exec background service"; in do_exec_background()
202 return Error() << "Could not start exec background service: " << result.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()
94 return Error() << "modalias_handling lines take exactly one parameter"; in ParseModaliasHandlingLine()
102 return Error() << "modalias_handling takes either 'enabled' or 'disabled' as a parameter"; in ParseModaliasHandlingLine()
111 return Error() << "uevent_socket_rcvbuf_size lines take exactly one parameter"; in ParseUeventSocketRcvbufSizeLine()
116 return Error() << "could not parse size '" << args[1] << "' for uevent_socket_rcvbuf_line"; in ParseUeventSocketRcvbufSizeLine()
[all …]
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()
Daction_parser.cpp64 return Error() << "property trigger found without matching '='"; in ParsePropertyTrigger()
71 return Error() << "unexported property trigger found: " << prop_name; in ParsePropertyTrigger()
75 return Error() << "multiple property triggers found for same property"; in ParsePropertyTrigger()
86 return Error() << "empty trigger is not valid"; in ParseTriggers()
91 return Error() << "&& is the only symbol allowed to concatenate actions"; in ParseTriggers()
104 return Error() << "multiple event triggers are not allowed"; in ParseTriggers()
120 return Error() << "Actions must have a trigger"; in ParseSection()
138 return Error() << "ParseTriggers() failed: " << result.error(); in ParseSection()
Dkeyword_map.h42 if (args.empty()) return Error() << "Keyword needed, but not provided"; in FindFunction()
49 return Error() << StringPrintf("Invalid keyword '%s'", keyword.c_str()); in FindFunction()
57 return Error() << StringPrintf("%s requires %zu argument%s", keyword.c_str(), min_args, in FindFunction()
63 return Error() << StringPrintf("%s requires at least %zu argument%s", in FindFunction()
66 return Error() << StringPrintf("%s requires between %zu and %zu arguments", in FindFunction()
Dservice.cpp80 return Error() << "Could not get security context"; in ComputeContextFromExecutable()
85 return Error() << "Could not get file context"; in ComputeContextFromExecutable()
97 return Error() << "File " << service_path << "(labeled \"" << filecon.get() in ComputeContextFromExecutable()
104 return Error() << "Could not get process context"; in ComputeContextFromExecutable()
421 return Error() in ParseCapabilities()
434 return Error() << StringPrintf("invalid capability '%s'", arg.c_str()); in ParseCapabilities()
438 return Error() << StringPrintf("capability '%s' not supported by the kernel", in ParseCapabilities()
470 return Error() << "Init only supports entering network namespaces"; in ParseEnterNamespace()
473 return Error() << "Only one network namespace may be entered"; in ParseEnterNamespace()
485 return Error() << "Unable to decode GID for '" << args[1] << "': " << gid.error(); in ParseGroup()
[all …]
Dimport_parser.cpp29 return Error() << "single argument needed for import\n"; in ParseSection()
35 return Error() << "error while expanding import"; in ParseSection()
45 return Error() << "Unexpected line found after import statement"; in ParseLineSection()
Dmodalias_handler.cpp44 return Error() << "dependency lines must start with name followed by ':'"; in ParseDepCallback()
55 if ((end - start) <= 1) return Error() << "malformed dependency line"; in ParseDepCallback()
69 return Error() << "we only handle alias lines, got: " << type; in ParseAliasCallback()
73 return Error() << "alias lines must have 3 entries"; in ParseAliasCallback()
124 return Error() << "Need valid module name"; in InsmodWithDeps()
129 return Error() << "Module '" << module_name << "' not in dependency file"; in InsmodWithDeps()
Dhost_import_parser.cpp29 return Error() << "single argument needed for import\n"; in ParseSection()
36 return Error() << "Unexpected line found after import statement"; in ParseLineSection()
Depoll.cpp43 return Error() << "Must specify events"; in RegisterHandler()
47 return Error() << "Cannot specify two epoll handlers for a given FD"; in RegisterHandler()
67 return Error() << "Attempting to remove epoll handler for FD without an existing handler"; in UnregisterHandler()
Dresult_test.cpp73 Result<Success> result = Error() << "failure" << 1; in TEST()
82 Result<Success> result = Error(); in TEST()
97 auto MakeRvalueErrorResult = []() -> Result<Success> { return Error() << "failure" << 1; }; in TEST()
131 Result<Success> result = Error() << error_text; in TEST()
147 Result<Success> result = Error() << error_text; in TEST()
152 Result<std::string> result2 = Error() << result.error(); in TEST()
172 Result<std::string> result2 = Error() << result.error(); in TEST()
323 Result<std::string> result = Error(); in TEST()
Dsubcontext.cpp66 return Error(); in ReadMessage()
77 return Error() << "Unable to serialize message"; in SendMessage()
81 return Error() << "Serialized message too long to send"; in SendMessage()
127 result = Error() << "Cannot find command: " << map_result.error(); in RunCommand()
290 … return Error() << "Failed to receive result from subcontext: " << subcontext_message.error(); in TransmitMessage()
296 return Error() << "Unable to parse message from subcontext"; in TransmitMessage()
327 return Error() << "Unexpected message type from subcontext: " in Execute()
351 return Error() << "Unexpected message type from subcontext: " in ExpandArgs()
Dsubcontext_test.cpp179 return Error() << getpid() << " " << getppid(); in BuildTestFunctionMap()
197 return Error() << Join(*words, " "); in BuildTestFunctionMap()
203 return Error() << std::string(4097, 'f'); in BuildTestFunctionMap()
207 [](const BuiltinArguments& args) -> Result<Success> { return Error() << "Sane error!"; }); in BuildTestFunctionMap()
212 [](const BuiltinArguments& args) -> Result<Success> { return Error() << args.context; }); in BuildTestFunctionMap()
Dsecurity.cpp72 return Error() << "Failed to read from /dev/hw_random: EOF"; in MixHwrngIntoLinuxRngAction()
180 return Error(); in SetMmapRndBitsAction()
195 return Error(); in SetKptrRestrictAction()
Dpersistent_properties.cpp152 return Error() << "Unable to read persistent property file: " << file_contents.error(); in ReadPersistentPropertyFile()
169 return Error() << "Unable to parse persistent property file: Could not parse protobuf"; in LoadPersistentPropertyFile()
181 return Error() << "Unable to serialize properties"; in WritePersistentPropertyFile()
192 return Error(saved_errno) << "Unable to rename persistent property file"; in WritePersistentPropertyFile()
Daction.cpp40 return Error() << "cannot expand '" << args[i] << "'"; in RunBuiltinFunction()
88 return Error() << "no function map available"; in AddCommand()
92 if (!function) return Error() << function.error(); in AddCommand()
/system/core/adb/client/
Dfile_sync_client.cpp210 Error("failed to get feature set: %s", error.c_str()); in SyncConnection()
215 Error("connect failed: %s", error.c_str()); in SyncConnection()
244 Error("failed to poll: %s", strerror(errno)); in ReceivedError()
287 Error("SendRequest failed: path too long: %zu", path_length); in SendRequest()
383 Error("SendSmallFile failed: path too long: %zu", path_length); in SendSmallFile()
425 Error("failed to send ID_SEND message '%s': %s", path_and_mode, strerror(errno)); in SendLargeFile()
431 Error("cannot stat '%s': %s", lpath, strerror(errno)); in SendLargeFile()
440 Error("opening '%s' locally failed: %s", lpath, strerror(errno)); in SendLargeFile()
449 Error("reading '%s' locally failed: %s", lpath, strerror(errno)); in SendLargeFile()
481 Error("failed to copy '%s' to '%s': couldn't read from device", from, to); in CopyDone()
[all …]
/system/extras/simpleperf/app_api/java/com/android/simpleperf/
DProfileSession.java93 throw new Error("failed to find packageName: " + e.getMessage()); in ProfileSession()
96 throw new Error("failed to find packageName"); in ProfileSession()
187 throw new Error("can't find simpleperf on device. Please run api_profiler.py."); in findSimpleperf()
241 throw new Error("linux perf events aren't enabled on the device." + in checkIfPerfEnabled()
272 throw new Error("failed to create simpleperf process: " + e.getMessage()); in createSimpleperfProcess()
278 throw new Error("failed to receive simpleperf start flag"); in createSimpleperfProcess()
288 throw new Error("failed to send cmd to simpleperf: " + e.getMessage()); in sendCmd()
291 throw new Error("failed to run cmd in simpleperf: " + cmd); in sendCmd()
/system/security/keystore/
Dauth_token_table.h50 enum Error { enum
76 std::tuple<Error, HardwareAuthToken> FindAuthorization(const AuthorizationSet& key_info,
152 std::tuple<Error, HardwareAuthToken>
155 std::tuple<Error, HardwareAuthToken> FindTimedAuthorization(const std::vector<uint64_t>& sids,
/system/apex/apexd/
Dapex_database.cpp175 auto Error = [](auto e) { return StatusOr<MountedApexData>::MakeError(e); }; in resolveMountInfo() local
197 return Error(backingFile.ErrorStatus()); in resolveMountInfo()
205 return Error(name.ErrorStatus()); in resolveMountInfo()
209 return Error("DeviceMapper device with no loop devices"); in resolveMountInfo()
216 return Error(backingFile.ErrorStatus()); in resolveMountInfo()
222 return Error("Can't resolve " + block.DevPath().string()); in resolveMountInfo()
/system/core/adb/
Dtransport_fd.cpp88 if (DispatchWrites() == WriteResult::Error) { in Run()
166 Error, enumerator
181 return WriteResult::Error; in DispatchWrites()
184 return WriteResult::Error; in DispatchWrites()
212 return result != WriteResult::Error; in Write()
/system/keymaster/include/keymaster/
Dlogger.h44 static int Error(const char* fmt, ...);
65 #define LOG_E(fmt, ...) Logger::Error(FILE_LINE fmt, __VA_ARGS__)
/system/security/keystore/tests/
Dauth_token_table_test.cpp99 AuthTokenTable::Error rc; in TEST()
138 AuthTokenTable::Error rc; in TEST()
164 AuthTokenTable::Error rc; in TEST()
277 AuthTokenTable::Error rc; in TEST()
289 AuthTokenTable::Error rc; in TEST()
311 AuthTokenTable::Error rc; in TEST()
323 AuthTokenTable::Error rc; in TEST()
335 AuthTokenTable::Error rc; in TEST()
376 AuthTokenTable::Error rc; in TEST()
/system/core/libcutils/
Dtrace-dev.inc94 ALOGE("Error reading cmdline: %s (%d)", strerror(errno), errno);
98 ALOGE("Error opening /proc/self/cmdline: %s (%d)", strerror(errno),
117 ALOGE("Error parsing trace property: Not a number: %s", value);
120 ALOGE("Error parsing trace property: Number too large: %s", value);

123