Home
last modified time | relevance | path

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

1234

/packages/services/Car/cpp/watchdog/server/src/
DOveruseConfigurationXmlHelper.cpp52 using ::android::base::Error;
105 return Error() << "Must specify value for the tag '" << tag << "'"; in readExactlyOneElement()
108 return Error() << "Must specify only one entry for the tag '" << tag << "'"; in readExactlyOneElement()
118 return Error() << "Failed to read tag '" << kTagComponentType << "': " << result.error(); in readComponentType()
122 return Error() << "Must specify non-empty component type"; in readComponentType()
124 return Error() << "Must specify non-empty component type"; in readComponentType()
139 return Error() << "Must specify valid component type. Received " << componentTypeStr; in readComponentType()
152 return Error() << "Must specify non-empty safe-to-kill package name"; in readSafeToKillPackages()
154 return Error() << "Must specify non-empty safe-to-kill package name"; in readSafeToKillPackages()
172 return Error() << "Must specify non-empty vendor package prefix"; in readVendorPackagePrefixes()
[all …]
DWatchdogPerfService.cpp43 using ::android::base::Error;
83 return Error() << "Value not provided"; in parseSecondsFlag()
88 return Error() << "Invalid value " << strValue << ", must be an integer"; in parseSecondsFlag()
149 return Error() << "Must provide a valid data processor"; in registerDataProcessor()
152 return Error() << "Failed to initialize " << processor->name().c_str() << ": " in registerDataProcessor()
167 return Error(INVALID_OPERATION) << "Cannot start " << kServiceName << " more than once"; in start()
199 return Error() << "No data processor is registered"; in start()
300 return Error(BAD_VALUE) << "No custom collection dump arguments"; in onCustomCollection()
305 return Error(BAD_VALUE) << "Number of arguments to start custom performance data " in onCustomCollection()
315 return Error(BAD_VALUE) in onCustomCollection()
[all …]
DProcPidStat.cpp36 using ::android::base::Error;
105 return Error(ERR_FILE_OPEN_READ) << "ReadFileToString failed for " << path; in readPidStatFile()
109 return Error(ERR_INVALID_FILE) << path << " contains " << lines.size() << " lines != 1"; in readPidStatFile()
112 return Error(ERR_INVALID_FILE) << "Failed to parse the contents of " << path; in readPidStatFile()
121 return Error(ERR_FILE_OPEN_READ) << "ReadFileToString failed for " << path; in readKeyValueFile()
131 return Error(ERR_INVALID_FILE) in readKeyValueFile()
138 return Error(ERR_INVALID_FILE) in readKeyValueFile()
158 return Error(ret.error().code()) << ret.error(); in readPidStatusFile()
162 return Error(ERR_INVALID_FILE) << "Empty file " << path; in readPidStatusFile()
166 return Error(ERR_INVALID_FILE) << "Failed to read 'UIDs' from file " << path; in readPidStatusFile()
[all …]
DProcStat.cpp33 using ::android::base::Error;
76 return Error() << "Can not access " << kPath; in collect()
82 return Error() << "Failed to get proc stat contents: " << info.error(); in collect()
95 return Error() << "ReadFileToString failed for " << kPath; in getProcStatLocked()
108 return Error() << "Duplicate `cpu .*` line in " << kPath; in getProcStatLocked()
111 return Error() << "Failed to parse `cpu .*` line in " << kPath; in getProcStatLocked()
116 return Error() << "Duplicate `procs_running .*` line in " << kPath; in getProcStatLocked()
119 return Error() << "Failed to parse `procs_running .*` line in " << kPath; in getProcStatLocked()
125 return Error() << "Duplicate `procs_blocked .*` line in " << kPath; in getProcStatLocked()
128 return Error() << "Failed to parse `procs_blocked .*` line in " << kPath; in getProcStatLocked()
[all …]
DIoOveruseConfigs.cpp47 using ::android::base::Error;
102 return Error() << "Doesn't contain threshold name"; in containsValidThresholds()
106 return Error() << "Zero value thresholds for " << thresholds.name; in containsValidThresholds()
112 return Error() << "Some thresholds are zero: " << toString(thresholds); in containsValidThresholds()
119 return Error() << "Duration must be greater than zero"; in containsValidThreshold()
122 return Error() << "Written bytes/second must be greater than zero"; in containsValidThreshold()
144 return Error() << "Invalid " << toString(componentType) in isValidIoOveruseConfiguration()
148 return Error() << "Invalid component name " in isValidIoOveruseConfiguration()
167 return Error() << "Invalid system-wide alert threshold provided in " << componentTypeStr in isValidIoOveruseConfiguration()
182 return Error() << "Invalid component type: " << static_cast<int32_t>(componentType); in getComponentFilter()
[all …]
DServiceManager.cpp29 using ::android::base::Error;
40 return Error(INVALID_OPERATION) << "Cannot start services more than once"; in startServices()
57 return Error() << "Failed to initialize watchdog service helper: " << result.error(); in startServices()
61 return Error() << "Failed to initialize package name resolver: " << result.error(); in startServices()
89 return Error(result.error().code()) in startProcessAnrMonitor()
100 return Error() << "Failed to register I/O perf collection: " << result.error(); in startPerfService()
103 return Error(result.error().code()) in startPerfService()
115 return Error(result.error().code()) in startBinderMediator()
DProcDiskStats.cpp34 using ::android::base::Error;
85 return Error() << "Failed to parse from line fields: '" << Join(fields, "', '") << "'"; in parseDiskStatsLine()
94 return Error() << "Failed to parse flush stats from line fields: '" << Join(fields, "', '") in parseDiskStatsLine()
103 return Error() << "ReadFileToString failed"; in readDiskStatsFile()
107 return Error() << "File is empty"; in readDiskStatsFile()
121 return Error() << "No valid partition disk stats available"; in readDiskStatsFile()
206 return Error() << "Failed to access " << kPath; in collect()
212 return Error() << "Failed to read per-partition disk stats from '" << kPath in collect()
DIoOveruseMonitor.cpp53 using ::android::base::Error;
131 return Error() << "Cannot initialize " << name() << " more than once"; in init()
137 return Error() << "Periodic monitor buffer size cannot be zero or above " in init()
177 return Error() << "Per-UID I/O stats collector must not be null"; in onPeriodicCollection()
333 return Error() << "Proc disk stats collector must not be null"; in onPeriodicMonitor()
417 return Error(Status::EX_ILLEGAL_STATE) << name() << " is not initialized"; in updateResourceOveruseConfigurations()
444 return Error(Status::EX_ILLEGAL_STATE) << name() << " is not initialized"; in getResourceOveruseConfigurations()
471 return Error(Status::EX_ILLEGAL_STATE) in addIoOveruseListener()
491 return Error(Status::EX_ILLEGAL_ARGUMENT) << "Listener is not previously registered"; in removeIoOveruseListener()
501 return Error(Status::EX_ILLEGAL_STATE) << "I/O overuse monitor is not initialized"; in getIoOveruseStats()
[all …]
/packages/modules/adb/client/openscreen/platform/
Dudp_socket.cpp57 Error ChooseError(decltype(errno) posix_errno, Error::Code hard_error_code) { in ChooseError()
59 return Error(Error::Code::kAgain, strerror(errno)); in ChooseError()
61 return Error(hard_error_code, strerror(errno)); in ChooseError()
105 Error ReceiveMessageInternal(borrowed_fd fd, UdpPacket* packet) { in ReceiveMessageInternal()
122 return ChooseError(errno, Error::Code::kSocketReadFailure); in ReceiveMessageInternal()
139 return Error::Code::kNone; in ReceiveMessageInternal()
150 return Error::Code::kNone; in ReceiveMessageInternal()
267 OnError(Error::Code::kSocketClosedFailure); in SetMulticastOutboundInterface()
293 OnError(Error::Code::kSocketOptionSettingFailure); in SetMulticastOutboundInterface()
315 OnError(Error::Code::kSocketOptionSettingFailure); in SetMulticastOutboundInterface()
[all …]
/packages/modules/DnsResolver/tests/
Dtun_forwarder.cpp38 using android::base::Error;
73 return Error() << "Failed to make v4pair"; in makePair()
91 return Error() << "Failed to make v6pair"; in makePair()
222 return Error() << "Too short for a tun header"; in validatePacket()
227 return Error() << "Unexpected tun flags " << static_cast<int>(tunHeader->flags); in validatePacket()
236 return Error() << "Unsupported packet type 0x" << std::hex << static_cast<int>(proto); in validatePacket()
242 return Error() << "Too short for an ip header"; in validateIpv4Packet()
247 return Error() << "IP header length set to less than 5"; in validateIpv4Packet()
250 return Error() << "IP header length set too large: " << ipHeader->ihl; in validateIpv4Packet()
253 return Error() << "IP header version not 4: " << ipHeader->version; in validateIpv4Packet()
[all …]
/packages/modules/adb/client/
Dfile_sync_client.cpp235 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 …]
/packages/services/Car/cpp/powerpolicy/server/src/
DPolicyManager.cpp37 using android::base::Error;
181 return Error() << StringPrintf("Failed to read |%s| attribute in |%s| tag", kAttrId, in readComponents()
186 return Error() << StringPrintf("XML configuration has invalid value(%s) in |%s| " in readComponents()
191 return Error() << StringPrintf("XML configuration has duplicated component(%s) in |%s| " in readComponents()
202 return Error() << StringPrintf("XML configuration has invalid value(%s) in |%s| tag", in readComponents()
215 return Error() << StringPrintf("Failed to read |%s| attribute in |%s| tag", in readOtherComponents()
236 return Error() << StringPrintf("XML configuration has invalid value(%s) in |%s| attribute " in readOtherComponents()
256 return Error() << StringPrintf("Failed to read |%s| attribute in |%s| tag", kAttrId, in readPolicies()
260 return Error() << "Policy ID should not start with \"system_power_policy_\""; in readPolicies()
289 return Error() << StringPrintf("Failed to read |%s| attribute in |%s| tag", kAttrState, in readPolicyGroup()
[all …]
/packages/services/Car/cpp/watchdog/server/tests/
DProcPidDir.cpp30 using ::android::base::Error;
38 return Error() << "Could not mkdir " << path << ": " << strerror(errno); in makeDir()
54 return Error() << "Failed to create top-level per-process directory: " in populateProcPidDir()
63 return Error() << "Failed to write pid stat file " << path; in populateProcPidDir()
71 return Error() << "Failed to write pid status file " << path; in populateProcPidDir()
78 return Error() << "Failed to create task directory: " << taskDirRes.error(); in populateProcPidDir()
86 return Error() << "Failed to create per-thread directory: " << tidDirRes.error(); in populateProcPidDir()
93 return Error() << "Failed to write thread stat file " << path; in populateProcPidDir()
/packages/modules/Virtualization/authfs/src/
Dfusefs.rs90 self.file_pool.get(&inode).ok_or_else(|| io::Error::from_raw_os_error(libc::ENOENT)) in get_file_config()
98 Err(io::Error::from_raw_os_error(libc::EACCES)) in check_access_mode()
130 .map_err(|_| io::Error::from_raw_os_error(libc::EFBIG))?; in create_stat()
134 .map_err(|_| io::Error::from_raw_os_error(libc::EFBIG))?; in create_stat()
161 return Err(io::Error::from_raw_os_error(libc::ENODATA)); in read_chunks()
168 return Err(io::Error::from_raw_os_error(libc::EIO)); in read_chunks()
204 let num = name.to_str().map_err(|_| io::Error::from_raw_os_error(libc::EINVAL))?; in lookup()
208 let inode = num.parse::<Inode>().map_err(|_| io::Error::from_raw_os_error(libc::ENOENT))?; in lookup()
326 _ => Err(io::Error::from_raw_os_error(libc::EBADF)), in write()
353 return Err(io::Error::from_raw_os_error(libc::ENOSYS)); in setattr()
[all …]
/packages/modules/Virtualization/authfs/src/file/
Dremote_file.rs37 .map_err(|_| io::Error::from_raw_os_error(libc::EOVERFLOW))?; in remote_read_chunk()
43 .map_err(|e| io::Error::new(io::ErrorKind::Other, e.get_description()))?; in remote_read_chunk()
83 .map_err(|_| io::Error::from_raw_os_error(libc::EOVERFLOW))?; in read_chunk()
90 .map_err(|e| io::Error::new(io::ErrorKind::Other, e.get_description()))?; in read_chunk()
112 i64::try_from(offset).map_err(|_| io::Error::from_raw_os_error(libc::EOVERFLOW))?; in write_at()
118 .map_err(|e| io::Error::new(io::ErrorKind::Other, e.get_description()))?; in write_at()
124 i64::try_from(size).map_err(|_| io::Error::from_raw_os_error(libc::EOVERFLOW))?; in resize()
129 .map_err(|e| io::Error::new(io::ErrorKind::Other, e.get_description()))?; in resize()
/packages/services/Car/cpp/watchdog/testclient/src/
Dmain.cpp31 using android::base::Error;
38 return Error() << "Invalid syntax"; in checkArgument()
41 return Error() << "Invalid timeout"; in checkArgument()
46 return Error() << "Invalid inactive after time"; in checkArgument()
50 return Error() << "Invalid terminate after time"; in checkArgument()
60 return Error() << "Invalid option"; in checkArgument()
/packages/modules/adb/
Dcompression_utils.h33 Error, enumerator
40 Error, enumerator
163 return DecodeResult::Error; in Decode()
206 return EncodeResult::Error; in Encode()
257 return DecodeResult::Error; in Decode()
265 return DecodeResult::Error; in Decode()
325 return EncodeResult::Error; in Encode()
338 return EncodeResult::Error; in Encode()
358 return EncodeResult::Error; in Encode()
410 return DecodeResult::Error; in Decode()
[all …]
/packages/services/Car/cpp/evs/manager/1.1/stats/
DStatsCollector.cpp43 using android::base::Error;
116 return Error() << "A collection has been terminated " in handleCollectionEvent()
122 return Error() << "Maximum cache size must be greater than 0"; in handleCollectionEvent()
139 return Error() << toString(event) << " collection failed: " in handleCollectionEvent()
182 return Error(INVALID_OPERATION) in startCollection()
269 return Error(INVALID_OPERATION) in startCustomCollection()
276 return Error(INVALID_OPERATION) in startCustomCollection()
285 return Error(INVALID_OPERATION) in startCustomCollection()
328 return Error() << toString(mCurrentCollectionEvent) << " collection failed: " in stopCustomCollection()
384 return Error(BAD_VALUE) << "Given camera client is invalid"; in registerClientToMonitor()
/packages/services/Car/cpp/computepipe/router/1.0/
DRouterSvc.h35 Error RemoveEntry(const std::string& name) { in RemoveEntry()
42 router::Error initSvc();
43 router::Error parseArgs(int argc, char** argv);
49 router::Error initQueryEngine();
50 router::Error initRegistrationEngine();
DRouterSvc.cpp35 Error RouterSvc::parseArgs(int argc, char** argv) { in parseArgs()
41 Error RouterSvc::initSvc() { in initSvc()
54 Error RouterSvc::initRegistrationEngine() { in initRegistrationEngine()
69 Error RouterSvc::initQueryEngine() { in initQueryEngine()
/packages/modules/Virtualization/microdroid/signature/
Dsignature.cc23 using android::base::Error;
39 return Error() << "Invalid signature: size == " << content.size(); in ReadMicrodroidSignature()
43 return Error() << "Invalid signature: size(" << size << ") mimatches to the content size(" in ReadMicrodroidSignature()
51 return Error() << "Can't parse MicrodroidSignature from " << path; in ReadMicrodroidSignature()
60 return Error() << "Failed to write protobuf."; in WriteMicrodroidSignature()
/packages/services/Car/cpp/powerpolicy/client/src/
DPowerPolicyClientBase.cpp40 using android::base::Error;
116 return Error() << "Failed to get car power policy daemon"; in connectToDaemon()
124 return Error() << "Failed to connect to car power policy daemon"; in connectToDaemon()
128 return Error() << "Failed to get car power policy client binder object"; in connectToDaemon()
133 return Error() << "Linking to death recipient failed"; in connectToDaemon()
148 return Error() << "Register power policy change challback failed"; in connectToDaemon()
/packages/modules/Virtualization/vm/src/
Drun.rs27 use anyhow::{Context, Error};
38 ) -> Result<(), Error> { in command_run() argument
61 fn wait_for_vm(vm: Strong<dyn IVirtualMachine>) -> Result<(), Error> { in wait_for_vm() argument
79 fn wait_for_death(binder: &mut impl IBinder, dead: AtomicFlag) -> Result<DeathRecipient, Error> { in wait_for_death() argument
110 Err(io::Error::last_os_error()) in duplicate_stdout()
Dmain.rs22 use anyhow::{Context, Error};
52 fn main() -> Result<(), Error> { in main()
70 fn command_stop(virt_manager: Strong<dyn IVirtManager>, cid: u32) -> Result<(), Error> { in command_stop() argument
79 fn command_list(virt_manager: Strong<dyn IVirtManager>) -> Result<(), Error> { in command_list() argument
/packages/services/Telephony/src/com/android/phone/
DTimeConsumingPreferenceActivity.java200 if (exception.getCommandError() == CommandException.Error.FDN_CHECK_FAILURE) { in onException()
202 } else if (exception.getCommandError() == CommandException.Error.RADIO_NOT_AVAILABLE) { in onException()
204 } else if (exception.getCommandError() == CommandException.Error.SS_MODIFIED_TO_DIAL) { in onException()
206 } else if (exception.getCommandError() == CommandException.Error in onException()
209 } else if (exception.getCommandError() == CommandException.Error.SS_MODIFIED_TO_USSD) { in onException()
211 } else if (exception.getCommandError() == CommandException.Error.SS_MODIFIED_TO_SS) { in onException()

1234