Home
last modified time | relevance | path

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

12345678910>>...15

/system/connectivity/shill/
Derror_unittest.cc35 Error e; in TEST_F()
36 EXPECT_EQ(Error::kSuccess, e.type()); in TEST_F()
37 EXPECT_EQ(Error::GetDefaultMessage(Error::kSuccess), e.message()); in TEST_F()
41 Error e(Error::kAlreadyExists); in TEST_F()
42 EXPECT_EQ(Error::kAlreadyExists, e.type()); in TEST_F()
43 EXPECT_EQ(Error::GetDefaultMessage(Error::kAlreadyExists), e.message()); in TEST_F()
48 Error e(Error::kInProgress, kMessage); in TEST_F()
49 EXPECT_EQ(Error::kInProgress, e.type()); in TEST_F()
54 Error e(Error::kAlreadyExists); in TEST_F()
56 EXPECT_EQ(Error::kSuccess, e.type()); in TEST_F()
[all …]
Dproperty_accessor.h66 void Clear(Error* error) override { Set(default_value_, error); } in Clear()
67 T Get(Error* /*error*/) override { return *property_; } in Get() argument
68 bool Set(const T& value, Error* /*error*/) override { in Set() argument
90 void Clear(Error* error) override { in Clear()
93 error->Populate(Error::kInvalidArguments, "Property is read-only"); in Clear()
95 T Get(Error* /*error*/) override { return *property_; } in Get() argument
96 bool Set(const T& /*value*/, Error* error) override { in Set()
99 error->Populate(Error::kInvalidArguments, "Property is read-only"); in Set()
117 void Clear(Error* error) override { Set(default_value_, error); } in Clear()
118 T Get(Error* error) override { in Get()
[all …]
Derror.cc35 const Error::Info Error::kInfos[kNumErrors] = {
65 Error::Error() { in Error() function in shill::Error
69 Error::Error(Type type) { in Error() function in shill::Error
73 Error::Error(Type type, const string& message) { in Error() function in shill::Error
77 Error::~Error() {} in ~Error()
79 void Error::Populate(Type type) { in Populate()
83 void Error::Populate(Type type, const string& message) { in Populate()
89 void Error::Populate(Type type, in Populate()
98 void Error::Reset() { in Reset()
102 void Error::CopyFrom(const Error& error) { in CopyFrom()
[all …]
Dresult_aggregator_unittest.cc52 MOCK_METHOD1(ReportResult, void(const Error&));
88 void GenerateResult(const Error::Type error_type) { in GenerateResult()
89 aggregator_->ReportResult(Error(error_type)); in GenerateResult()
98 EXPECT_CALL(*this, ReportResult(ErrorTypeIs(Error::kSuccess))).Times(0); in TEST_F()
102 EXPECT_CALL(*this, ReportResult(ErrorTypeIs(Error::kSuccess))); in TEST_F()
105 first_generator.GenerateResult(Error::kSuccess); in TEST_F()
106 second_generator.GenerateResult(Error::kSuccess); in TEST_F()
110 EXPECT_CALL(*this, ReportResult(ErrorTypeIs(Error::kOperationTimeout))); in TEST_F()
113 first_generator.GenerateResult(Error::kOperationTimeout); in TEST_F()
114 second_generator.GenerateResult(Error::kSuccess); in TEST_F()
[all …]
Dcrypto_util_proxy.cc73 HandleShimError(Error(Error::kOperationAborted)); in ~CryptoUtilProxy()
85 Error* error) { in VerifyDestination()
96 Error::PopulateAndLog(FROM_HERE, error, Error::kOperationFailed, in VerifyDestination()
109 Error::PopulateAndLog(FROM_HERE, error, Error::kOperationFailed, in VerifyDestination()
118 Error::PopulateAndLog(FROM_HERE, error, Error::kOperationFailed, in VerifyDestination()
130 Error* error) { in EncryptData()
133 Error::PopulateAndLog(FROM_HERE, error, Error::kOperationFailed, in EncryptData()
143 Error::PopulateAndLog(FROM_HERE, error, Error::kOperationFailed, in EncryptData()
152 Error::PopulateAndLog(FROM_HERE, error, Error::kOperationFailed, in EncryptData()
218 HandleShimError(Error(Error::kOperationAborted)); in StartShimForCommand()
[all …]
Dmock_property_store.h35 MOCK_METHOD3(SetBoolProperty, bool(const std::string&, bool, Error*));
36 MOCK_METHOD3(SetInt16Property, bool(const std::string&, int16_t, Error*));
37 MOCK_METHOD3(SetInt32Property, bool(const std::string&, int32_t, Error*));
40 Error*));
43 Error*));
46 Error*));
47 MOCK_METHOD3(SetUint8Property, bool(const std::string&, uint8_t, Error*));
48 MOCK_METHOD3(SetUint16Property, bool(const std::string&, uint16_t, Error*));
50 const Uint16s&, Error*));
51 MOCK_METHOD3(SetUint32Property, bool(const std::string&, uint32_t, Error*));
[all …]
Dcallbacks.h30 class Error; variable
32 typedef base::Callback<void(const Error&)> ResultCallback;
33 typedef base::Callback<void(const Error&, bool)> ResultBoolCallback;
34 typedef base::Callback<void(const Error&,
36 typedef base::Callback<void(const Error&)> EnabledStateChangedCallback;
38 const Error&)> KeyValueStoreCallback;
40 const Error&)> KeyValueStoresCallback;
42 const Error&)> RpcIdentifierCallback;
43 typedef base::Callback<void(const std::string&, const Error&)> StringCallback;
47 const Error&)> ResultStringmapsCallback;
Dstatic_ip_parameters.h101 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 …]
Dmanager.h59 class Error; variable
149 Error* error);
174 RpcIdentifiers EnumerateAvailableServices(Error* error);
177 RpcIdentifiers EnumerateCompleteServices(Error* error);
182 ServiceRefPtr GetService(const KeyValueStore& args, Error* error);
183 ServiceRefPtr ConfigureService(const KeyValueStore& args, Error* error);
187 Error* error);
188 ServiceRefPtr FindMatchingService(const KeyValueStore& args, Error* error);
197 void ConnectToBestServices(Error* error);
200 void CreateConnectivityReport(Error* error);
[all …]
Dproperty_accessor_unittest.cc41 Error error; in TEST()
63 Error error; in TEST()
70 EXPECT_EQ(Error::kInvalidArguments, error.type()); in TEST()
77 Error error; in TEST()
83 Error error; in TEST()
87 EXPECT_EQ(Error::kPermissionDenied, error.type()); in TEST()
90 Error error; in TEST()
108 Error error; in TEST()
122 Error error; in TEST()
144 Error error; in TEST()
[all …]
Dmanager.cc307 Error e; in Stop()
360 Error error; in InitializeProfiles()
374 void Manager::CreateProfile(const string& name, string* path, Error* error) { in CreateProfile()
378 Error::PopulateAndLog(FROM_HERE, error, Error::kInvalidArguments, in CreateProfile()
384 Error::PopulateAndLog(FROM_HERE, error, Error::kAlreadyExists, in CreateProfile()
413 Error::PopulateAndLog(FROM_HERE, error, Error::kInternalError, in CreateProfile()
431 const Profile::Identifier& ident, string* path, Error* error) { in PushProfileInternal()
433 Error::PopulateAndLog(FROM_HERE, error, Error::kAlreadyExists, in PushProfileInternal()
445 Error::PopulateAndLog(FROM_HERE, error, Error::kInvalidArguments, in PushProfileInternal()
512 void Manager::PushProfile(const string& name, string* path, Error* error) { in PushProfile()
[all …]
Derror.h27 class Error; variable
31 class Error; variable
32 using ErrorPtr = std::unique_ptr<Error>;
37 class Error {
70 Error(); // Success by default.
71 explicit Error(Type type); // Uses the default message for |type|.
72 Error(Type type, const std::string& message);
73 ~Error();
83 void CopyFrom(const Error& error);
102 Error* error, Type type,
[all …]
/system/connectivity/shill/cellular/
Dcellular_error_unittest.cc63 Error shill_error; in TEST_F()
70 brillo::Error::Create(FROM_HERE, in TEST_F()
75 EXPECT_EQ(Error::kIncorrectPin, shill_error.type()); in TEST_F()
79 brillo::Error::Create(FROM_HERE, in TEST_F()
84 EXPECT_EQ(Error::kPinRequired, shill_error.type()); in TEST_F()
88 brillo::Error::Create(FROM_HERE, in TEST_F()
93 EXPECT_EQ(Error::kPinBlocked, shill_error.type()); in TEST_F()
97 brillo::Error::Create(FROM_HERE, in TEST_F()
102 EXPECT_EQ(Error::kInvalidApn, shill_error.type()); in TEST_F()
106 brillo::Error::Create(FROM_HERE, in TEST_F()
[all …]
Dcellular_error_mm1.cc53 void CellularError::FromMM1ChromeosDBusError(brillo::Error* dbus_error, in FromMM1ChromeosDBusError()
54 Error* error) { in FromMM1ChromeosDBusError()
65 Error::Type type; in FromMM1ChromeosDBusError()
68 type = Error::kIncorrectPin; in FromMM1ChromeosDBusError()
70 type = Error::kPinRequired; in FromMM1ChromeosDBusError()
72 type = Error::kPinBlocked; in FromMM1ChromeosDBusError()
74 type = Error::kInvalidApn; in FromMM1ChromeosDBusError()
76 type = Error::kInvalidApn; in FromMM1ChromeosDBusError()
78 type = Error::kWrongState; in FromMM1ChromeosDBusError()
80 type = Error::kOperationFailed; in FromMM1ChromeosDBusError()
Dmodem_gsm_card_proxy_interface.h26 class Error; variable
28 const Error&)> GSMIdentifierCallback;
37 virtual void GetIMEI(Error* error, const GSMIdentifierCallback& callback,
39 virtual void GetIMSI(Error* error, const GSMIdentifierCallback& callback,
41 virtual void GetSPN(Error* error, const GSMIdentifierCallback& callback,
43 virtual void GetMSISDN(Error* error, const GSMIdentifierCallback& callback,
46 Error* error, const ResultCallback& callback,
49 Error* error, const ResultCallback& callback,
52 Error* error, const ResultCallback& callback,
56 Error* error, const ResultCallback& callback,
Dmm1_modem_proxy_interface.h26 class Error; variable
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,
[all …]
Dcellular_capability.h35 class Error; variable
109 virtual void StartModem(Error* error, const ResultCallback& callback) = 0;
113 virtual void StopModem(Error* error, const ResultCallback& callback) = 0;
118 virtual void Reset(Error* error, const ResultCallback& callback);
141 Error* error, const ResultCallback& callback);
148 virtual void CompleteActivation(Error* error);
158 Error* error,
177 virtual void Scan(Error* error, const ResultStringmapsCallback& callback);
181 Error* error,
233 Error* error,
[all …]
/system/connectivity/shill/wifi/
Dwake_on_wifi.cc147 string WakeOnWiFi::GetWakeOnWiFiFeaturesEnabled(Error* error) { in GetWakeOnWiFiFeaturesEnabled()
152 Error* error) { in SetWakeOnWiFiFeaturesEnabled()
154 error->Populate(Error::kNotSupported, kWakeOnWiFiNotSupported); in SetWakeOnWiFiFeaturesEnabled()
165 Error::PopulateAndLog(FROM_HERE, error, Error::kInvalidArguments, in SetWakeOnWiFiFeaturesEnabled()
174 void WakeOnWiFi::RunAndResetSuspendActionsDoneCallback(const Error& error) { in RunAndResetSuspendActionsDoneCallback()
280 SetWakeOnPacketConnMessage* msg, uint32_t wiphy_index, Error* error) { in ConfigureDisableWakeOnWiFiMessage()
282 Error::PopulateAndLog(FROM_HERE, error, Error::kOperationFailed, in ConfigureDisableWakeOnWiFiMessage()
295 Error* error) { in ConfigureSetWakeOnWiFiSettingsMessage()
300 Error::PopulateAndLog(FROM_HERE, error, Error::kInvalidArguments, in ConfigureSetWakeOnWiFiSettingsMessage()
305 Error::PopulateAndLog(FROM_HERE, error, Error::kInvalidArguments, in ConfigureSetWakeOnWiFiSettingsMessage()
[all …]
/system/connectivity/apmanager/
Derror_unittest.cc40 void PopulateError(Error* error, Error::Type type) { in PopulateError()
44 void PopulateError(Error* error, Error::Type type, string message) { in PopulateError()
49 void VerifyDBusError(Error::Type type, const string& expected_error_code) { in VerifyDBusError()
51 Error e; in VerifyDBusError()
63 Error e; in TEST_F()
64 EXPECT_EQ(Error::kSuccess, e.type()); in TEST_F()
68 Error e; in TEST_F()
69 PopulateError(&e, Error::kInternalError); in TEST_F()
80 EXPECT_FALSE(Error().ToDBusError(&dbus_error)); in TEST_F()
83 VerifyDBusError(Error::kInternalError, kErrorInternalError); in TEST_F()
[all …]
Dconfig.cc123 bool Config::ValidateSsid(Error* error, const string& value) { in ValidateSsid()
125 Error::PopulateAndLog( in ValidateSsid()
127 Error::kInvalidArguments, in ValidateSsid()
136 bool Config::ValidateSecurityMode(Error* error, const string& value) { in ValidateSecurityMode()
138 Error::PopulateAndLog( in ValidateSecurityMode()
140 Error::kInvalidArguments, in ValidateSecurityMode()
149 bool Config::ValidatePassphrase(Error* error, const string& value) { in ValidatePassphrase()
152 Error::PopulateAndLog( in ValidatePassphrase()
154 Error::kInvalidArguments, in ValidatePassphrase()
164 bool Config::ValidateHwMode(Error* error, const string& value) { in ValidateHwMode()
[all …]
Dservice.cc97 bool Service::StartInternal(Error* error) { in StartInternal()
99 Error::PopulateAndLog( in StartInternal()
100 error, Error::kInternalError, "Service already running", FROM_HERE); in StartInternal()
117 Error::PopulateAndLog(error, in StartInternal()
118 Error::kInternalError, in StartInternal()
126 Error::PopulateAndLog(error, in StartInternal()
127 Error::kInternalError, in StartInternal()
135 Error::PopulateAndLog( in StartInternal()
136 error, Error::kInternalError, "Failed to start hostapd", FROM_HERE); in StartInternal()
148 Error::PopulateAndLog(error, in StartInternal()
[all …]
Derror.cc34 Error::Error() : type_(kSuccess) {} in Error() function in apmanager::Error
36 Error::~Error() {} in ~Error()
38 void Error::Populate(Type type, in Populate()
47 void Error::Reset() { in Reset()
53 bool Error::ToDBusError(brillo::ErrorPtr* error) const { in ToDBusError()
65 brillo::Error::AddTo(error, in ToDBusError()
74 void Error::PopulateAndLog(Error* error, in PopulateAndLog()
/system/update_engine/include/debugd/
Ddbus-proxy-mocks.h38 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
47 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
56 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
65 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
73 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
87 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
96 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
106 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
114 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
124 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
[all …]
/system/update_engine/include/shill/
Ddbus-proxy-mocks.h34 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
45 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
53 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
63 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
72 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
82 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
94 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
103 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
110 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
117 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
[all …]
/system/connectivity/shill/dbus/
Dchromeos_mm1_modem_proxy.h41 Error* error,
45 Error* error,
49 Error* error,
52 void Reset(Error* error,
56 Error* error,
60 Error* error,
65 Error* error,
69 Error* error,
74 Error* error,
78 Error* error,
[all …]

12345678910>>...15