Lines Matching refs:Error
50 #include "shill/error.h"
307 Error e;
360 Error error;
365 PushProfileInternal(default_profile_id, &path, &error);
370 PushProfileInternal(profile_id, &path, &error);
374 void Manager::CreateProfile(const string& name, string* path, Error* error) {
378 Error::PopulateAndLog(FROM_HERE, error, Error::kInvalidArguments,
384 Error::PopulateAndLog(FROM_HERE, error, Error::kAlreadyExists,
406 if (!profile->InitStorage(Profile::kCreateNew, error)) {
407 // |error| will have been populated by InitStorage().
413 Error::PopulateAndLog(FROM_HERE, error, Error::kInternalError,
431 const Profile::Identifier& ident, string* path, Error* error) {
433 Error::PopulateAndLog(FROM_HERE, error, Error::kAlreadyExists,
445 Error::PopulateAndLog(FROM_HERE, error, Error::kInvalidArguments,
460 LOG(ERROR) << "Failed to open default profile.";
475 if (!profile->InitStorage(Profile::kOpenExisting, error)) {
476 // |error| will have been populated by InitStorage().
512 void Manager::PushProfile(const string& name, string* path, Error* error) {
516 Error::PopulateAndLog(FROM_HERE, error, Error::kInvalidArguments,
520 PushProfileInternal(ident, path, error);
526 Error* error) {
531 Error::PopulateAndLog(FROM_HERE, error, Error::kInvalidArguments,
536 PushProfileInternal(ident, path, error);
583 Error unused_error;
590 void Manager::PopProfile(const string& name, Error* error) {
594 Error::PopulateAndLog(
595 FROM_HERE, error, Error::kNotFound, "Profile stack is empty");
600 Error::PopulateAndLog(FROM_HERE, error, Error::kInvalidArguments,
605 Error::PopulateAndLog(FROM_HERE, error, Error::kNotSupported,
612 void Manager::PopAnyProfile(Error* error) {
616 Error::PopulateAndLog(
617 FROM_HERE, error, Error::kNotFound, "Profile stack is empty");
623 void Manager::PopAllUserProfiles(Error* /*error*/) {
630 void Manager::RemoveProfile(const string& name, Error* error) {
633 Error::PopulateAndLog(FROM_HERE, error, Error::kInvalidArguments,
639 Error::PopulateAndLog(FROM_HERE, error, Error::kInvalidArguments,
663 // |error| will have been populated if RemoveStorage fails.
664 profile->RemoveStorage(error);
689 Error* error) {
694 Error::PopulateAndLog(FROM_HERE, error, Error::kInvalidArguments,
700 Error::PopulateAndLog(FROM_HERE, error, Error::kInvalidArguments,
708 Error::PopulateAndLog(FROM_HERE, error, Error::kInvalidArguments,
723 Error::PopulateAndLog(FROM_HERE, error, Error::kInvalidArguments,
730 // Error will be populated by the claimer if failed to claim the device.
731 if (!device_claimer_->Claim(device_name, error)) {
742 Error* error) {
748 Error::PopulateAndLog(FROM_HERE, error, Error::kInvalidArguments,
754 Error::PopulateAndLog(FROM_HERE, error, Error::kInvalidArguments,
761 Error::PopulateAndLog(FROM_HERE, error, Error::kInvalidArguments,
768 // Release the device from the claimer. Error should be populated by the
770 device_claimer_->Release(device_name, error);
782 bool Manager::SetupApModeInterface(string* out_interface_name, Error* error) {
785 Error::PopulateAndLog(FROM_HERE, error, Error::kOperationFailed,
794 Error* error) {
797 Error::PopulateAndLog(FROM_HERE, error, Error::kOperationFailed,
809 LOG(ERROR) << "Failed to restore station mode interface";
868 const ProfileRefPtr& profile, const std::string& entry_name, Error* error) {
882 const ProfileRefPtr& profile, const std::string& entry_name, Error* error) {
886 Error::PopulateAndLog(
887 FROM_HERE, error, Error::kInternalError,
905 profile, entry_name, error);
909 Error::PopulateAndLog(FROM_HERE, error, Error::kNotSupported,
919 const std::string& guid, Error* error) {
929 if (error) {
930 error->Populate(Error
945 RpcIdentifier Manager::GetDefaultServiceRpcIdentifier(Error* /*error*/) {
956 Error error;
960 &error) &&
1071 Error* error) {
1074 Error::PopulateAndLog(FROM_HERE, error, Error::kInvalidArguments,
1087 Error::PopulateAndLog(FROM_HERE, error, Error::kInvalidArguments,
1090 Error::PopulateAndLog(FROM_HERE, error, Error::kInternalError,
1098 Error* error,
1100 CHECK(error);
1101 DCHECK(error->IsOngoing());
1104 error->Populate(Error::kInvalidArguments, "Unknown technology");
1108 error->Populate(Error::kPermissionDenied,
1118 Error device_error(Error::kOperationInitiated);
1130 } else if (!error->IsFailure()) { // Report first failure.
1131 error->CopyFrom(device_error);
1135 // Some device is handling this change asynchronously. Clobber any error
1138 error->Populate(Error::kOperationInitiated);
1139 } else if (error->IsOngoing()) {
1140 // |error| IsOngoing at entry to this method, but no device
1141 // |deferred|. Reset |error|, to indicate we're done.
1142 error->Reset();
1147 Error error;
1149 EnabledTechnologies(&error));
1153 Error error;
1155 UninitializedTechnologies(&error));
1228 Error error;
1229 device_claimer_->Claim(to_manage->link_name(), &error);
1243 Error unused_error;
1284 vector<string> Manager::ClaimedDevices(Error* error) {
1306 Error error;
1307 vector<string> device_paths = EnumerateDevices(&error);
1311 AvailableTechnologies(&error));
1313 EnabledTechnologies(&error));
1315 UninitializedTechnologies(&error));
1328 bool Manager::SetDisableWiFiVHT(const bool& disable_wifi_vht, Error* error) {
1336 bool Manager::GetDisableWiFiVHT(Error* error) {
1342 Error* error) {
1346 error)) {
1350 Error unused_error(Error::kOperationInitiated);
1366 const Error& error) {
1371 string Manager::GetProhibitedTechnologies(Error* error) {
1486 LOG(ERROR) << "Cannot assign profile to service: no profiles exist!";
1549 Error* error) {
1551 error->Populate(Error::kOperationFailed,
1578 error->Populate(Error::kOperationFailed,
1585 ssid, bssid, cb, error);
1591 const Error& error,
1593 if (!success || !error.IsSuccess()) {
1594 CHECK(error.IsFailure()) << "Return code from CryptoUtilProxy "
1595 << "inconsistent with error code.";
1596 cb.Run(error, "");
1599 Error encrypt_error;
1616 Error* error) {
1621 on_verification_success, error);
1633 Error* error) {
1635 error->Populate(Error::kNotImplemented, "Not implemented");
1677 OnSuspendActionsComplete(Error(Error::kSuccess));
1709 OnDarkResumeActionsComplete(Error(Error::kSuccess));
1722 void Manager::OnSuspendActionsComplete(const Error& error) {
1723 LOG(INFO) << "Finished suspend actions. Result: " << error;
1724 metrics_->NotifySuspendActionsCompleted(error.IsSuccess());
1728 void Manager::OnDarkResumeActionsComplete(const Error& error) {
1729 LOG(INFO) << "Finished dark resume actions. Result: " << error;
1730 metrics_->NotifyDarkResumeActionsCompleted(error.IsSuccess());
1755 RpcIdentifier(Manager::*get)(Error* error)) {
1764 RpcIdentifiers(Manager::*get)(Error* error)) {
1773 string(Manager::*get)(Error* error),
1774 bool(Manager::*set)(const string&, Error*)) {
1782 Strings(Manager::*get)(Error*)) {
1790 bool(Manager::*get)(Error* error),
1791 bool(Manager::*set)(const bool&, Error*)) {
1841 Error error;
1849 ConnectedTechnologies(&error));
1851 DefaultTechnology(&error));
1884 Error error;
1885 vector<string> available_technologies = AvailableTechnologies(&error);
1978 void Manager::ConnectToBestServices(Error* /*error*/) {
2016 Error error;
2017 service->Connect(&error, __func__);
2018 if (error.IsFailure()) {
2019 LOG(ERROR) << "Connection failed: " << error.message();
2062 void Manager::CreateConnectivityReport(Error* /*error*/) {
2100 string Manager::CalculateState(Error* /*error*/) {
2125 vector<string> Manager::AvailableTechnologies(Error* /*error*/) {
2134 vector<string> Manager::ConnectedTechnologies(Error* /*error*/) {
2152 string Manager::DefaultTechnology(Error* /*error*/) {
2157 vector<string> Manager::EnabledTechnologies(Error* /*error*/) {
2167 vector<string> Manager::UninitializedTechnologies(Error* /*error*/) {
2171 RpcIdentifiers Manager::EnumerateDevices(Error* /*error*/) {
2185 RpcIdentifiers Manager::EnumerateProfiles(Error* /*error*/) {
2193 RpcIdentifiers Manager::EnumerateAvailableServices(Error* /*error*/) {
2203 RpcIdentifiers Manager::EnumerateCompleteServices(Error* /*error*/) {
2211 RpcIdentifiers Manager::EnumerateWatchedServices(Error* /*error*/) {
2223 string Manager::GetActiveProfileRpcIdentifier(Error* /*error*/) {
2227 string Manager::GetCheckPortalList(Error* /*error*/) {
2232 bool Manager::SetCheckPortalList(const string& portal_list, Error* error) {
2241 string Manager::GetIgnoredDNSSearchPaths(Error* /*error*/) {
2246 Error* /*error*/) {
2261 ServiceRefPtr Manager::GetService(const KeyValueStore& args, Error* error) {
2267 return ConfigureService(args, error);
2270 ServiceRefPtr service = GetServiceInner(args, error);
2273 service->Configure(args, error);
2280 Error* error) {
2291 Error::PopulateAndLog(
2292 FROM_HERE, error, Error::kInvalidArguments, kErrorTypeRequired);
2299 Error::PopulateAndLog(FROM_HERE, error, Error::kNotSupported,
2305 return providers_[technology]->GetService(args, error);
2310 Error* error) {
2317 Error::PopulateAndLog(FROM_HERE, error, Error::kInvalidArguments,
2323 ServiceRefPtr service = GetServiceInner(args, error);
2324 if (error->IsFailure() || !service) {
2325 LOG(ERROR) << "GetService failed; returning upstream error.";
2348 service->Configure(args, error);
2352 Error::PopulateAndLog(FROM_HERE, error, Error::kInternalError,
2366 Error::PopulateAndLog(FROM_HERE, error, Error::kInternalError,
2380 const string& profile_rpcid, const KeyValueStore& args, Error* error) {
2382 Error::PopulateAndLog(
2383 FROM_HERE, error, Error::kInvalidArguments, kErrorTypeRequired);
2391 Error::PopulateAndLog(FROM_HERE, error, Error::kNotSupported,
2400 Error::PopulateAndLog(FROM_HERE, error, Error::kNotFound,
2405 Error::PopulateAndLog(FROM_HERE, error, Error::kInvalidArguments,
2416 Error::PopulateAndLog(FROM_HERE, error, Error::kNotSupported,
2424 Error find_error;
2434 return ConfigureService(configure_args, error);
2447 SetupServiceInProfile(service, profile, args, error);
2456 service = provider->CreateTemporaryService(args, error);
2457 if (!service || !error->IsSuccess()) {
2458 // Service::CreateTemporaryService() failed, and has set the error
2466 SetupServiceInProfile(service, profile, args, error);
2477 Error* error) {
2479 service->Configure(args, error);
2484 Error* error) {
2490 error->Populate(Error::kNotFound, "Matching service was not found");
2521 void Manager::RecheckPortal(Error* /*error*/) {
2545 const string& technology, Error* error) {
2549 wifi_device->Scan(scan_type, error, __func__);
2553 Error::PopulateAndLog(FROM_HERE, error, Error::kInvalidArguments,
2558 void Manager::SetSchedScan(bool enable, Error* error) {
2560 wifi_device->SetSchedScan(enable, error);
2573 void Manager::SetTechnologyOrder(const string& order, Error* error) {
2576 if (!Technology::GetTechnologyVectorFromString(order, &new_order, error)) {