Home
last modified time | relevance | path

Searched refs:error_code (Results 1 – 25 of 122) 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.cpp72 std::error_code error_code; in deleteSessionDir() local
73 std::filesystem::remove_all(path, error_code); in deleteSessionDir()
74 if (error_code) { in deleteSessionDir()
76 << error_code.message(); in deleteSessionDir()
121 std::error_code ec; in GetSessions()
/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/libbase/
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.cpp93 int32_t error_code; in getPublicKey() local
98 KeymasterBlob() /* clientId */, KeymasterBlob() /* appData */, UID_SELF, &error_code); in getPublicKey()
105 KSReturn rc(error_code); in getPublicKey()
107 LOG(ERROR) << AT << "exportKey failed: " << error_code; in getPublicKey()
149 int32_t error_code; in sign() local
153 KeymasterBlob(), UID_SELF, &error_code); in sign()
159 KSReturn rc(error_code); in sign()
161 LOG(ERROR) << AT << "getKeyCharacteristics failed: " << error_code; in sign()
191 std::vector<uint8_t>() /* entropy */, UID_SELF, &error_code); in sign()
198 rc = KSReturn(error_code); in sign()
[all …]
/system/bt/gd/hci/acl_manager/
Devent_checkers.h34 std::string error_code = ErrorCodeText(status); in check_command_complete() local
35 …LOG_ERROR("Received command complete with error code %s, opcode 0x%02hx", error_code.c_str(), op_c… in check_command_complete()
51 std::string error_code = ErrorCodeText(status); in check_command_status() local
52 …LOG_ERROR("Received command status with error code %s, opcode 0x%02hx", error_code.c_str(), op_cod… in check_command_status()
Dclassic_acl_connection.cc131 std::string error_code = ErrorCodeText(status); in on_role_discovery_complete() local
132 LOG_ERROR("Received on_role_discovery_complete with error code %s", error_code.c_str()); in on_role_discovery_complete()
145 std::string error_code = ErrorCodeText(status); in on_read_link_policy_settings_complete() local
146 …LOG_ERROR("Received on_read_link_policy_settings_complete with error code %s", error_code.c_str()); in on_read_link_policy_settings_complete()
159 std::string error_code = ErrorCodeText(status); in on_read_automatic_flush_timeout_complete() local
160 …LOG_ERROR("Received on_read_automatic_flush_timeout_complete with error code %s", error_code.c_str… in on_read_automatic_flush_timeout_complete()
173 std::string error_code = ErrorCodeText(status); in on_read_transmit_power_level_complete() local
174 …LOG_ERROR("Received on_read_transmit_power_level_complete with error code %s", error_code.c_str()); in on_read_transmit_power_level_complete()
187 std::string error_code = ErrorCodeText(status); in on_read_link_supervision_timeout_complete() local
188 …LOG_ERROR("Received on_read_link_supervision_timeout_complete with error code %s", error_code.c_st… in on_read_link_supervision_timeout_complete()
[all …]
Dclassic_impl.h245 std::string error_code = ErrorCodeText(status); in on_connection_packet_type_changed() local
246 … LOG_ERROR("Received on_connection_packet_type_changed with error code %s", error_code.c_str()); in on_connection_packet_type_changed()
262 std::string error_code = ErrorCodeText(status); in on_master_link_key_complete() local
263 LOG_ERROR("Received on_master_link_key_complete with error code %s", error_code.c_str()); in on_master_link_key_complete()
279 std::string error_code = ErrorCodeText(status); in on_authentication_complete() local
280 LOG_ERROR("Received on_authentication_complete with error code %s", error_code.c_str()); in on_authentication_complete()
331 std::string error_code = ErrorCodeText(status); in on_change_connection_link_key_complete() local
332 …LOG_ERROR("Received on_change_connection_link_key_complete with error code %s", error_code.c_str()… in on_change_connection_link_key_complete()
347 std::string error_code = ErrorCodeText(status); in on_read_clock_offset_complete() local
348 LOG_ERROR("Received on_read_clock_offset_complete with error code %s", error_code.c_str()); in on_read_clock_offset_complete()
[all …]
/system/update_engine/payload_consumer/
Dpartition_update_generator_android.cc81 if (std::error_code error_code; in GetStaticAbPartitionsOnDevice() local
82 !std::filesystem::exists(block_device_dir_, error_code) || error_code) { in GetStaticAbPartitionsOnDevice()
84 << error_code.message(); in GetStaticAbPartitionsOnDevice()
88 std::error_code error_code; in GetStaticAbPartitionsOnDevice() local
89 auto it = std::filesystem::directory_iterator(block_device_dir_, error_code); in GetStaticAbPartitionsOnDevice()
90 if (error_code) { in GetStaticAbPartitionsOnDevice()
92 << error_code.message(); in GetStaticAbPartitionsOnDevice()
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/chre/host/common/include/chre_host/
Dlog.h59 #define LOG_ERROR(message, error_code) \ argument
62 strerror_r(error_code, error_string, sizeof(error_string)); \
63 LOGE("%s: %s (%d)\n", message, error_string, error_code); \
/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::__anon1f39b2d70111::SideloadDaemonState
Domaha_request_builder_xml.h75 error_code(ErrorCode::kError) {} in OmahaEvent()
79 error_code(ErrorCode::kSuccess) {} in OmahaEvent()
81 : type(in_type), result(in_result), error_code(in_error_code) {} in OmahaEvent()
85 ErrorCode error_code; member
Dcleanup_previous_update_action.cc92 void CleanupPreviousUpdateAction::ActionCompleted(ErrorCode error_code) { in ActionCompleted() argument
232 ErrorCode error_code = ErrorCode::kSuccess; in WaitForMergeOrSchedule() local
234 error_code = ErrorCode::kError; in WaitForMergeOrSchedule()
237 processor_->ActionComplete(this, error_code); in WaitForMergeOrSchedule()
279 ErrorCode error_code = in WaitForMergeOrSchedule() local
281 processor_->ActionComplete(this, error_code); in WaitForMergeOrSchedule()
/system/libziparchive/
Dzip_error.cpp39 const char* ErrorCodeString(int32_t error_code) { in ErrorCodeString() argument
45 const uint32_t idx = -error_code; in ErrorCodeString()
/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()
412 int* error_code) { in StartScheduledScan() argument
[all …]
/system/connectivity/wificond/tests/
Dscan_utils_unittest.cpp65 NL80211Packet CreateControlMessageError(int error_code) { in CreateControlMessageError() argument
75 *error_field = -error_code; in CreateControlMessageError()
262 int error_code; in TEST_F() local
264 kFakeScanType, {}, {}, &error_code)); in TEST_F()
265 EXPECT_EQ(kFakeErrorCode, error_code); in TEST_F()
301 int error_code; in TEST_F() local
306 req_flags, {}, {}, {}, &error_code)); in TEST_F()
307 EXPECT_EQ(kFakeErrorCode, error_code); in TEST_F()

12345