Home
last modified time | relevance | path

Searched refs:error_code (Results 1 – 25 of 120) sorted by relevance

12345

/system/apex/apexd/
Dapexd_rollback_utils.h69 std::error_code error_code; in ReplaceFiles() local
70 fs::remove_all(to_path, error_code); in ReplaceFiles()
71 if (error_code) { in ReplaceFiles()
73 << error_code.message(); in ReplaceFiles()
77 std::error_code error_code; in ReplaceFiles() local
78 fs::remove_all(to_path, error_code); in ReplaceFiles()
79 if (error_code) { in ReplaceFiles()
81 << error_code.message(); in ReplaceFiles()
Dapexd_session.cpp113 std::error_code ec; in GetSessions()
249 std::error_code error_code; in DeleteSession() local
250 std::filesystem::remove_all(path, error_code); in DeleteSession()
251 if (error_code) { in DeleteSession()
253 << error_code.message(); in DeleteSession()
/system/core/fs_mgr/libfiemap/
Dfiemap_status.cpp23 if (error_code() == ErrorCode::ERROR) { in string()
26 return strerror(-static_cast<int>(error_code())); in string()
31 FiemapStatus::ErrorCode FiemapStatus::CastErrorCode(int error_code) { in CastErrorCode() argument
32 switch (error_code) { in CastErrorCode()
35 return static_cast<ErrorCode>(error_code); in CastErrorCode()
/system/core/fs_mgr/libsnapshot/
Dreturn.cpp24 switch (error_code()) { in string()
30 return strerror(-static_cast<int>(error_code())); in string()
34 Return::ErrorCode Return::FromFiemapStatusErrorCode(FiemapStatus::ErrorCode error_code) { in FromFiemapStatusErrorCode() argument
35 switch (error_code) { in FromFiemapStatusErrorCode()
39 return static_cast<ErrorCode>(error_code); in FromFiemapStatusErrorCode()
/system/security/keystore-engine/
Dkeystore_backend_binder.cpp108 int32_t error_code; in sign() local
112 KeymasterBlob(), UID_SELF, &error_code); in sign()
117 if (!KSReturn(error_code).isOk()) { in sign()
118 LOG(ERROR) << AT << "getKeyCharacteristics failed: " << error_code; in sign()
145 std::vector<uint8_t>() /* entropy */, UID_SELF, &error_code); in sign()
151 keystore::KeyStoreNativeReturnCode rc(error_code); in sign()
153 LOG(ERROR) << AT << "Keystore begin returned: " << error_code; in sign()
169 std::vector<uint8_t>(in, in + len), &error_code); in sign()
175 rc = keystore::KeyStoreNativeReturnCode(error_code); in sign()
177 LOG(ERROR) << AT << "Keystore update returned: " << error_code; in sign()
[all …]
/system/core/fs_mgr/libsnapshot/include/libsnapshot/
Dreturn.h35 ErrorCode error_code() const { return error_code_; } in error_code() function
36 bool is_ok() const { return error_code() == ErrorCode::SUCCESS; } in is_ok()
47 : error_code_(FromFiemapStatusErrorCode(status.error_code())), required_size_(0) {} in Return()
52 Return(ErrorCode error_code, uint64_t required_size = 0)
53 : error_code_(error_code), required_size_(required_size) {} in error_code_() argument
56 static ErrorCode FromFiemapStatusErrorCode(FiemapStatus::ErrorCode error_code);
/system/core/base/
Derrors_windows.cpp38 DWORD error_code = int_error_code; in SystemErrorCodeToString() local
40 DWORD len = FormatMessageW(flags, nullptr, error_code, 0, msgbuf, in SystemErrorCodeToString()
45 error_code); in SystemErrorCodeToString()
53 GetLastError(), error_code); in SystemErrorCodeToString()
63 android::base::StringAppendF(&msg, " (%lu)", error_code); in SystemErrorCodeToString()
Derrors_unix.cpp25 std::string SystemErrorCodeToString(int error_code) { in SystemErrorCodeToString() argument
26 return strerror(error_code); in SystemErrorCodeToString()
/system/core/fs_mgr/libfiemap/include/libfiemap/
Dfiemap_status.h42 static FiemapStatus FromErrorCode(int32_t error_code) { in FromErrorCode() argument
43 return FiemapStatus(CastErrorCode(error_code)); in FromErrorCode()
52 ErrorCode error_code() const { return error_code_; } in error_code() function
53 bool is_ok() const { return error_code() == ErrorCode::SUCCESS; } in is_ok()
/system/hardware/interfaces/wifi/keystore/1.0/default/
Dkeystore.cpp149 int32_t error_code; in getPublicKey() local
154 KeymasterBlob() /* clientId */, KeymasterBlob() /* appData */, UID_SELF, &error_code); in getPublicKey()
161 KSReturn rc(error_code); in getPublicKey()
163 LOG(ERROR) << AT << "exportKey failed: " << error_code; in getPublicKey()
192 int32_t error_code; in sign() local
196 KeymasterBlob(), UID_SELF, &error_code); in sign()
202 KSReturn rc(error_code); in sign()
204 LOG(ERROR) << AT << "getKeyCharacteristics failed: " << error_code; in sign()
234 std::vector<uint8_t>() /* entropy */, UID_SELF, &error_code); in sign()
241 rc = KSReturn(error_code); in sign()
[all …]
/system/update_engine/payload_consumer/
Dpostinstall_runner_action.cc308 ErrorCode error_code = ErrorCode::kPostinstallRunnerError; in CompletePartitionPostinstall() local
314 error_code = ErrorCode::kPostinstallBootedFromFirmwareB; in CompletePartitionPostinstall()
321 error_code = ErrorCode::kPostinstallFirmwareRONotUpdatable; in CompletePartitionPostinstall()
329 return CompletePostinstall(error_code); in CompletePartitionPostinstall()
339 void PostinstallRunnerAction::CompletePostinstall(ErrorCode error_code) { in CompletePostinstall() argument
342 if (error_code == ErrorCode::kSuccess) { in CompletePostinstall()
347 error_code = ErrorCode::kPostinstallRunnerError; in CompletePostinstall()
353 error_code = ErrorCode::kUpdatedButNotActive; in CompletePostinstall()
358 completer.set_code(error_code); in CompletePostinstall()
360 if (error_code != ErrorCode::kSuccess && in CompletePostinstall()
[all …]
/system/core/libbacktrace/
DBacktraceCurrent.cpp70 error_.error_code = BACKTRACE_UNWIND_ERROR_MAP_MISSING; in Unwind()
74 error_.error_code = BACKTRACE_UNWIND_NO_ERROR; in Unwind()
167 error_.error_code = BACKTRACE_UNWIND_ERROR_INTERNAL; in UnwindThread()
175 error_.error_code = BACKTRACE_UNWIND_ERROR_THREAD_DOESNT_EXIST; in UnwindThread()
177 error_.error_code = BACKTRACE_UNWIND_ERROR_INTERNAL; in UnwindThread()
222 error_.error_code = BACKTRACE_UNWIND_ERROR_THREAD_DOESNT_EXIST; in UnwindThread()
224 error_.error_code = BACKTRACE_UNWIND_ERROR_THREAD_TIMEOUT; in UnwindThread()
DUnwindStack.cpp66 error->error_code = BACKTRACE_UNWIND_NO_ERROR; in Unwind()
70 error->error_code = BACKTRACE_UNWIND_ERROR_ACCESS_MEM_FAILED; in Unwind()
75 error->error_code = BACKTRACE_UNWIND_ERROR_UNWIND_INFO; in Unwind()
79 error->error_code = BACKTRACE_UNWIND_ERROR_UNSUPPORTED_OPERATION; in Unwind()
83 error->error_code = BACKTRACE_UNWIND_ERROR_MAP_MISSING; in Unwind()
87 error->error_code = BACKTRACE_UNWIND_ERROR_EXCEED_MAX_FRAMES_LIMIT; in Unwind()
91 error->error_code = BACKTRACE_UNWIND_ERROR_REPEATED_FRAME; in Unwind()
95 error->error_code = BACKTRACE_UNWIND_ERROR_INVALID_ELF; in Unwind()
/system/security/keystore/
Dkeystore_client_impl.cpp181 int32_t error_code; in addRandomNumberGeneratorEntropy() local
187 keystore_->addRngEntropy(promise, blob2hidlVec(entropy), flags, &error_code); in addRandomNumberGeneratorEntropy()
190 KeyStoreNativeReturnCode rc(error_code); in addRandomNumberGeneratorEntropy()
203 int32_t error_code; in generateKey() local
209 hidl_vec<uint8_t>() /* entropy */, kDefaultUID, flags, &error_code); in generateKey()
212 KeyStoreNativeReturnCode rc(error_code); in generateKey()
230 int32_t error_code; in getKeyCharacteristics() local
235 android::security::keymaster::KeymasterBlob(), kDefaultUID, &error_code); in getKeyCharacteristics()
238 KeyStoreNativeReturnCode rc(error_code); in getKeyCharacteristics()
258 int32_t error_code; in importKey() local
[all …]
/system/update_engine/
Dsideload_main.cc87 void SendPayloadApplicationComplete(ErrorCode error_code) override { in SendPayloadApplicationComplete() argument
88 if (error_code != ErrorCode::kSuccess) { in SendPayloadApplicationComplete()
91 error_code, in SendPayloadApplicationComplete()
92 utils::ErrorCodeToString(error_code).c_str())); in SendPayloadApplicationComplete()
94 error_code_ = error_code; in SendPayloadApplicationComplete()
100 ErrorCode error_code() { return error_code_; } in error_code() function in chromeos_update_engine::__anon61e456420111::SideloadDaemonState
Dcleanup_previous_update_action.cc92 void CleanupPreviousUpdateAction::ActionCompleted(ErrorCode error_code) { in ActionCompleted() argument
231 ErrorCode error_code = ErrorCode::kSuccess; in WaitForMergeOrSchedule() local
233 error_code = ErrorCode::kError; in WaitForMergeOrSchedule()
236 processor_->ActionComplete(this, error_code); in WaitForMergeOrSchedule()
278 ErrorCode error_code = in WaitForMergeOrSchedule() local
280 processor_->ActionComplete(this, error_code); in WaitForMergeOrSchedule()
Domaha_request_action.h85 error_code(ErrorCode::kError) {} in OmahaEvent()
89 error_code(ErrorCode::kSuccess) {} in OmahaEvent()
91 : type(in_type), result(in_result), error_code(in_error_code) {} in OmahaEvent()
95 ErrorCode error_code; member
Dmetrics_reporter_omaha_unittest.cc73 metrics::DownloadErrorCode error_code = in TEST_F() local
86 static_cast<int>(error_code))) in TEST_F()
108 &fake_system_state, result, reaction, error_code); in TEST_F()
115 &fake_system_state, result, reaction, error_code); in TEST_F()
128 metrics::DownloadErrorCode error_code = in TEST_F() local
142 &fake_system_state, result, reaction, error_code); in TEST_F()
155 metrics::DownloadErrorCode error_code = in TEST_F() local
170 &fake_system_state, result, reaction, error_code); in TEST_F()
/system/chre/host/common/include/chre_host/
Dlog.h61 #define LOG_ERROR(message, error_code) \ argument
64 strerror_r(error_code, error_string, sizeof(error_string)); \
65 LOGE("%s: %s (%d)\n", message, error_string, error_code); \
/system/connectivity/wificond/scanning/
Dscan_utils.cpp283 int* error_code) { in Scan() argument
344 error_code)) { in Scan()
348 if (*error_code != 0) { in Scan()
349 LOG(ERROR) << "NL80211_CMD_TRIGGER_SCAN failed: " << strerror(*error_code); in Scan()
366 int error_code; in StopScheduledScan() local
368 &error_code)) { in StopScheduledScan()
372 if (error_code == ENOENT) { in StopScheduledScan()
375 } else if (error_code != 0) { in StopScheduledScan()
378 << strerror(error_code); in StopScheduledScan()
413 int* error_code) { in StartScheduledScan() argument
[all …]
Dscanner_impl.cpp175 int error_code = 0; in scan() local
177 ssids, freqs, &error_code)) { in scan()
178 if (error_code == ENODEV) { in scan()
182 CHECK(error_code != ENODEV || nodev_counter_ <= 3) in scan()
275 int error_code = 0; in StartPnoScanDefault() local
289 &error_code)) { in StartPnoScanDefault()
290 if (error_code == ENODEV) { in StartPnoScanDefault()
295 CHECK(error_code != ENODEV || nodev_counter_ <= 3) in StartPnoScanDefault()
/system/connectivity/wificond/tests/
Dscan_utils_unittest.cpp66 NL80211Packet CreateControlMessageError(int error_code) { in CreateControlMessageError() argument
76 *error_field = -error_code; in CreateControlMessageError()
263 int error_code; in TEST_F() local
265 kFakeScanType, {}, {}, &error_code)); in TEST_F()
266 EXPECT_EQ(kFakeErrorCode, error_code); in TEST_F()
302 int error_code; in TEST_F() local
307 req_flags, {}, {}, {}, &error_code)); in TEST_F()
308 EXPECT_EQ(kFakeErrorCode, error_code); in TEST_F()
Dmock_scan_utils.h50 int* error_code));
62 int* error_code));
/system/bt/gd/hci/
Dacl_manager.cc509 std::string error_code = ErrorCodeText(status); in on_disconnection_complete() local
510 …LOG_ERROR("Received disconnection complete with error code %s, handle 0x%02hx", error_code.c_str()… in on_disconnection_complete()
521 std::string error_code = ErrorCodeText(status); in on_connection_packet_type_changed() local
522 … LOG_ERROR("Received on_connection_packet_type_changed with error code %s", error_code.c_str()); in on_connection_packet_type_changed()
542 std::string error_code = ErrorCodeText(status); in on_master_link_key_complete() local
543 LOG_ERROR("Received on_master_link_key_complete with error code %s", error_code.c_str()); in on_master_link_key_complete()
562 std::string error_code = ErrorCodeText(status); in on_authentication_complete() local
563 LOG_ERROR("Received on_authentication_complete with error code %s", error_code.c_str()); in on_authentication_complete()
582 std::string error_code = ErrorCodeText(status); in on_encryption_change() local
583 …LOG_ERROR("Received on_change_connection_link_key_complete with error code %s", error_code.c_str()… in on_encryption_change()
[all …]
/system/iorap/src/inode2filename/
Dout_of_process_inode_resolver.cc63 std::error_code ErrorCodeFromErrno() { in ErrorCodeFromErrno()
65 return std::error_code(err, std::system_category()); in ErrorCodeFromErrno()
69 std::error_code ec = ErrorCodeFromErrno(); in IosBaseFailureWithErrno()
162 int error_code; in ParseFromLine() local
163 ss >> error_code; in ParseFromLine()
169 return InodeResult::makeFailure(inode, error_code); in ParseFromLine()

12345