/system/update_engine/update_manager/ |
H A D | policy_utils.h | 23 // current context and setting the *error description when it is null. The 28 // POLICY_CHECK_VALUE_AND_FAIL(my_value, error); 30 #define POLICY_CHECK_VALUE_AND_FAIL(ptr, error) \ 33 *(error) = #ptr " is required but is null."; \
|
/system/keymaster/ |
H A D | key.cpp | 28 keymaster_error_t* error) { 29 assert(error); 32 *error = KM_ERROR_OK; 34 *error = KM_ERROR_MEMORY_ALLOCATION_FAILED; 27 Key(const AuthorizationSet& hw_enforced, const AuthorizationSet& sw_enforced, keymaster_error_t* error) argument
|
/system/connectivity/shill/ |
H A D | property_accessor_unittest.cc | 28 #include "shill/error.h" 41 Error error; local 44 EXPECT_EQ(int_store, accessor->Get(&error)); 47 EXPECT_TRUE(accessor->Set(expected_int32, &error)); 48 EXPECT_TRUE(error.IsSuccess()); 49 EXPECT_EQ(expected_int32, accessor->Get(&error)); 51 // an error. 52 EXPECT_FALSE(accessor->Set(expected_int32, &error)); 53 EXPECT_TRUE(error.IsSuccess()); 55 accessor->Clear(&error); 63 Error error; local 77 Error error; local 83 Error error; local 90 Error error; local 108 Error error; local 122 Error error; local 144 Error error; local 158 Error error; local 164 Error error; local 172 Error error; local 190 Error error; local 204 Error error; local 226 Error error; local 240 Error error; local 246 Error error; local 253 Error error; local 271 Error error; local 284 Error error; local 307 Error error; local 321 Error error; local 327 Error error; local 334 Error error; local 355 Error error; local 394 Error error; local 419 Error error; local 436 Error error; local 445 Error error; local 461 Error error; local 472 Error error; local 488 Error error; local 504 Error error; local 514 Error error; local 529 Error error; local 547 Error error; local 553 Error error; local 560 Error error; local 567 Error error; local 604 Error error; local 614 Error error; local 631 Error error; local [all...] |
H A D | property_accessor.h | 24 #include "shill/error.h" 66 void Clear(Error* error) override { Set(default_value_, error); } 67 T Get(Error* /*error*/) override { return *property_; } 68 bool Set(const T& value, Error* /*error*/) override { 90 void Clear(Error* error) override { 91 // TODO(quiche): check if this is the right error. 93 error->Populate(Error::kInvalidArguments, "Property is read-only"); 95 T Get(Error* /*error*/) override { return *property_; } 96 bool Set(const T& /*value*/, Error* error) overrid 157 CustomAccessor(C* target, T(C::*getter)(Error* error), bool(C::*setter)(const T& value, Error* error), void(C::*clearer)(Error* error)) argument 173 CustomAccessor(C* target, T(C::*getter)(Error* error), bool(C::*setter)(const T& value, Error* error)) argument 222 CustomWriteOnlyAccessor(C* target, bool(C::*setter)(const T& value, Error* error), void(C::*clearer)(Error* error), const T* default_value) argument 310 CustomMappedAccessor(C* target, void(C::*clearer)(const A& argument, Error* error), T(C::*getter)(const A& argument, Error* error), bool(C::*setter)(const A& argument, const T& value, Error* error), const A& argument) argument [all...] |
H A D | device_claimer_unittest.cc | 23 #include "shill/error.h" 54 Error error; local 56 EXPECT_TRUE(device_claimer_.Claim(kTestDevice1Name, &error)); 57 EXPECT_EQ(Error::kSuccess, error.type()); 62 error.Reset(); 64 EXPECT_TRUE(device_claimer_.Claim(kTestDevice2Name, &error)); 65 EXPECT_EQ(Error::kSuccess, error.type()); 72 error.Reset(); 74 EXPECT_FALSE(device_claimer_.Claim(kTestDevice1Name, &error)); 75 EXPECT_EQ(string(kDuplicateDevice1Error), error [all...] |
H A D | static_ip_parameters.h | 101 void ClearMappedProperty(const size_t& index, Error* error); 102 void ClearMappedSavedProperty(const size_t& index, Error* error); 103 int32_t GetMappedInt32Property(const size_t& index, Error* error); 104 int32_t GetMappedSavedInt32Property(const size_t& index, Error* error); 105 std::string GetMappedStringProperty(const size_t& index, Error* error); 106 std::string GetMappedSavedStringProperty(const size_t& index, Error* error); 107 std::string GetMappedStringsProperty(const size_t& index, Error* error); 108 std::string GetMappedSavedStringsProperty(const size_t& index, Error* error); 110 const size_t& index, const int32_t& value, Error* error); 112 const size_t& index, const int32_t& value, Error* error); [all...] |
/system/connectivity/shill/wimax/ |
H A D | mock_wimax_network_proxy.h | 36 MOCK_METHOD1(Identifier, uint32_t(Error* error)); 37 MOCK_METHOD1(Name, std::string(Error* error)); 38 MOCK_METHOD1(Type, int(Error* error)); 39 MOCK_METHOD1(CINR, int(Error* error)); 40 MOCK_METHOD1(RSSI, int(Error* error)); 41 MOCK_METHOD1(SignalStrength, int(Error* error));
|
H A D | wimax_network_proxy_interface.h | 49 virtual uint32_t Identifier(Error* error) = 0; 50 virtual std::string Name(Error* error) = 0; 51 virtual int Type(Error* error) = 0; 52 virtual int CINR(Error* error) = 0; 53 virtual int RSSI(Error* error) = 0; 54 virtual int SignalStrength(Error* error) = 0;
|
/system/update_engine/ |
H A D | service_delegate_android_interface.h | 25 #include <brillo/errors/error.h> 48 brillo::ErrorPtr* error) = 0; 51 // it was suspended. In case of failure, it returns false and sets |error| 53 virtual bool SuspendUpdate(brillo::ErrorPtr* error) = 0; 58 // that there was a suspended update. In case of error, returns false and sets 59 // |error| accordingly. 60 virtual bool ResumeUpdate(brillo::ErrorPtr* error) = 0; 63 // can't be canceled after it was done. In case of error, returns false and 64 // sets |error| accordingly. 65 virtual bool CancelUpdate(brillo::ErrorPtr* error) [all...] |
H A D | dbus_service.cc | 34 bool DBusUpdateEngineService::AttemptUpdate(ErrorPtr* error, argument 38 error, in_app_version, in_omaha_url, 0 /* no flags */); 42 ErrorPtr* error, 52 error, in_app_version, in_omaha_url, 56 bool DBusUpdateEngineService::AttemptRollback(ErrorPtr* error, argument 58 return common_->AttemptRollback(error, in_powerwash); 61 bool DBusUpdateEngineService::CanRollback(ErrorPtr* error, argument 63 return common_->CanRollback(error, out_can_rollback); 66 bool DBusUpdateEngineService::ResetStatus(ErrorPtr* error) { argument 67 return common_->ResetStatus(error); 41 AttemptUpdateWithFlags( ErrorPtr* error, const string& in_app_version, const string& in_omaha_url, int32_t in_flags_as_int) argument 70 GetStatus(ErrorPtr* error, int64_t* out_last_checked_time, double* out_progress, string* out_current_operation, string* out_new_version, int64_t* out_new_size) argument 84 RebootIfNeeded(ErrorPtr* error) argument 88 SetChannel(ErrorPtr* error, const string& in_target_channel, bool in_is_powerwash_allowed) argument 94 GetChannel(ErrorPtr* error, bool in_get_current_channel, string* out_channel) argument 100 SetP2PUpdatePermission(ErrorPtr* error, bool in_enabled) argument 105 GetP2PUpdatePermission(ErrorPtr* error, bool* out_enabled) argument 110 SetUpdateOverCellularPermission(ErrorPtr* error, bool in_allowed) argument 115 GetUpdateOverCellularPermission( ErrorPtr* error, bool* out_allowed) argument 120 GetDurationSinceUpdate( ErrorPtr* error, int64_t* out_usec_wallclock) argument 125 GetPrevVersion(ErrorPtr* error, string* out_prev_version) argument 130 GetRollbackPartition( ErrorPtr* error, string* out_rollback_partition_name) argument 135 GetLastAttemptError( ErrorPtr* error, int32_t* out_last_attempt_error) argument [all...] |
H A D | common_service.h | 25 #include <brillo/errors/error.h> 41 // Generic service error. 47 bool AttemptUpdate(brillo::ErrorPtr* error, 52 bool AttemptRollback(brillo::ErrorPtr* error, bool in_powerwash); 56 bool CanRollback(brillo::ErrorPtr* error, bool* out_can_rollback); 60 bool ResetStatus(brillo::ErrorPtr* error); 65 bool GetStatus(brillo::ErrorPtr* error, 73 bool RebootIfNeeded(brillo::ErrorPtr* error); 83 bool SetChannel(brillo::ErrorPtr* error, 91 bool GetChannel(brillo::ErrorPtr* error, [all...] |
H A D | dbus_service.h | 25 #include <brillo/errors/error.h> 42 bool AttemptUpdate(brillo::ErrorPtr* error, 46 bool AttemptUpdateWithFlags(brillo::ErrorPtr* error, 51 bool AttemptRollback(brillo::ErrorPtr* error, bool in_powerwash) override; 55 bool CanRollback(brillo::ErrorPtr* error, bool* out_can_rollback) override; 59 bool ResetStatus(brillo::ErrorPtr* error) override; 64 bool GetStatus(brillo::ErrorPtr* error, 72 bool RebootIfNeeded(brillo::ErrorPtr* error) override; 82 bool SetChannel(brillo::ErrorPtr* error, 90 bool GetChannel(brillo::ErrorPtr* error, [all...] |
/system/connectivity/shill/dbus/ |
H A D | chromeos_firewalld_proxy.cc | 45 brillo::ErrorPtr error; local 46 if (!proxy_->RequestVpnSetup(user_names, interface, &success, &error)) { 47 LOG(ERROR) << "Failed to request VPN setup: " << error->GetCode() 48 << " " << error->GetMessage(); 59 brillo::ErrorPtr error; local 61 if (!proxy_->RemoveVpnSetup(user_names_, interface_name_, &success, &error)) { 62 LOG(ERROR) << "Failed to remove VPN setup: " << error->GetCode() 63 << " " << error->GetMessage();
|
H A D | chromeos_dhcpcd_proxy.cc | 44 brillo::ErrorPtr error; local 45 if (!dhcpcd_proxy_->Rebind(interface, &error)) { 46 LogDBusError(error, __func__, interface); 52 brillo::ErrorPtr error; local 53 if (!dhcpcd_proxy_->Release(interface, &error)) { 54 LogDBusError(error, __func__, interface); 58 void ChromeosDHCPCDProxy::LogDBusError(const brillo::ErrorPtr& error, argument 61 if (error->GetCode() == DBUS_ERROR_SERVICE_UNKNOWN || 62 error->GetCode() == DBUS_ERROR_NO_REPLY) { 65 LOG(FATAL) << "DBus error [all...] |
/system/connectivity/shill/shims/ |
H A D | task_proxy.cc | 38 brillo::ErrorPtr error; local 39 if (!proxy_.notify(reason, dict, &error)) { 40 LOG(ERROR) << "DBus error: " << error->GetCode() << ": " 41 << error->GetMessage(); 47 brillo::ErrorPtr error; local 48 if (!proxy_.getsec(username, password, &error)) { 49 LOG(ERROR) << "DBus error: " << error->GetCode() << ": " 50 << error [all...] |
/system/connectivity/shill/cellular/ |
H A D | cellular_capability.cc | 27 #include "shill/error.h" 65 Error* error) { 68 Error::PopulateAndLog(FROM_HERE, error, Error::kNotSupported, message); 74 Error* error, 76 OnUnsupportedOperation(__func__, error); 79 void CellularCapability::CompleteActivation(Error* error) { argument 80 OnUnsupportedOperation(__func__, error); 89 Error* error, 91 OnUnsupportedOperation(__func__, error); 96 Error* error, 64 OnUnsupportedOperation(const char* operation, Error* error) argument 73 Activate(const string& carrier, Error* error, const ResultCallback& callback) argument 87 RegisterOnNetwork( const string& , Error* error, const ResultCallback& ) argument 94 RequirePIN(const std::string& , bool , Error* error, const ResultCallback& ) argument 101 EnterPIN(const string& , Error* error, const ResultCallback& ) argument 107 UnblockPIN(const string& , const string& , Error* error, const ResultCallback& ) argument 114 ChangePIN(const string& , const string& , Error* error, const ResultCallback& ) argument 121 Scan(Error* error, const ResultStringmapsCallback& callback) argument 126 Reset(Error* error, const ResultCallback& ) argument 131 SetCarrier(const std::string& , Error* error, const ResultCallback& ) argument [all...] |
H A D | cellular_error.h | 20 #include <brillo/errors/error.h> 22 #include "shill/error.h" 29 Error* error); 32 Error* error);
|
H A D | mm1_modem_proxy_interface.h | 42 Error* error, 46 Error* error, 50 Error* error, 53 virtual void Reset(Error* error, 57 Error* error, 61 Error* error, 66 Error* error, 70 Error* error, 75 Error* error, 79 Error* error, [all...] |
H A D | mock_mm1_modem_proxy.h | 38 Error* error, 42 Error* error, 46 Error* error, 49 MOCK_METHOD3(Reset, void(Error* error, 53 Error* error, 57 Error* error, 63 Error* error, 67 Error* error, 72 Error* error, 76 Error* error, [all...] |
H A D | mm1_modem_simple_proxy_interface.h | 40 Error* error, 44 Error* error, 47 virtual void GetStatus(Error* error,
|
/system/connectivity/shill/mobile_operator_db/test_protos/ |
H A D | init_test_empty_db_init.h | 21 #error "Must be included only from mobile_operator_info_unittest.cc."
|
/system/connectivity/shill/vpn/ |
H A D | third_party_vpn_driver_unittest.cc | 98 Error error; local 99 driver_->Connect(service_, &error); 100 EXPECT_TRUE(error.IsSuccess()); 128 std::string error; local 130 driver_->SendPacket(ip_packet, &error); 131 EXPECT_EQ(error, "Unexpected call"); 133 error.clear(); 135 driver_->SendPacket(ip_packet, &error); 136 EXPECT_EQ(error, "Device not open"); 139 error 161 std::string error; local 189 std::string error; local [all...] |
/system/connectivity/apmanager/ |
H A D | config_unittest.cc | 32 #include "apmanager/error.h" 149 void VerifyError(const Error& error, argument 152 EXPECT_EQ(expected_type, error.type()); 153 EXPECT_TRUE(base::StartsWith(error.message(), expected_message_start, 188 Error error; local 190 EXPECT_TRUE(config_->ValidateSsid(&error, "s")); 191 EXPECT_TRUE(config_->ValidateSsid(&error, std::string(32, 'c'))); 192 EXPECT_FALSE(config_->ValidateSsid(&error, "")); 193 EXPECT_FALSE(config_->ValidateSsid(&error, std::string(33, 'c'))); 197 Error error; local 204 Error error; local 213 Error error; local 223 Error error; local 230 Error error; local 247 Error error; local 259 Error error; local 289 Error error; local 308 Error error; local 339 Error error; local 360 Error error; local 381 Error error; local 423 Error error; local [all...] |
/system/core/base/ |
H A D | parsenetaddress_test.cpp | 24 std::string canonical, host, error; local 28 ParseNetAddress("www.google.com", &host, &port, &canonical, &error)); 34 ParseNetAddress("www.google.com:666", &host, &port, &canonical, &error)); 41 std::string canonical, host, error; local 44 EXPECT_TRUE(ParseNetAddress("1.2.3.4", &host, &port, &canonical, &error)); 49 EXPECT_TRUE(ParseNetAddress("1.2.3.4:666", &host, &port, &canonical, &error)); 56 std::string canonical, host, error; local 59 EXPECT_TRUE(ParseNetAddress("::1", &host, &port, &canonical, &error)); 65 &canonical, &error)); 70 EXPECT_TRUE(ParseNetAddress("[::1]:666", &host, &port, &canonical, &error)); 113 std::string error; local 121 std::string host, error; local [all...] |
/system/connectivity/apmanager/dbus/ |
H A D | shill_dbus_proxy.cc | 20 #include <brillo/errors/error.h> 62 brillo::ErrorPtr error; local 63 if (!manager_proxy_->ClaimInterface(kServiceName, interface_name, &error)) { 65 << error->GetCode() << " " << error->GetMessage(); 76 brillo::ErrorPtr error; local 77 if (!manager_proxy_->ReleaseInterface(kServiceName, interface_name, &error)) { 79 << error->GetCode() << " " << error->GetMessage(); 91 brillo::ErrorPtr error; local 105 brillo::ErrorPtr error; local [all...] |