Home
last modified time | relevance | path

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

123

/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.cpp24 std::string SystemErrorCodeToString(int error_code) { in SystemErrorCodeToString() argument
25 return strerror(error_code); in SystemErrorCodeToString()
/system/connectivity/wificond/scanning/
Dscan_utils.cpp249 int* error_code) { in Scan() argument
291 error_code)) { in Scan()
295 if (*error_code != 0) { in Scan()
296 LOG(ERROR) << "NL80211_CMD_TRIGGER_SCAN failed: " << strerror(*error_code); in Scan()
313 int error_code; in StopScheduledScan() local
315 &error_code)) { in StopScheduledScan()
319 if (error_code == ENOENT) { in StopScheduledScan()
322 } else if (error_code != 0) { in StopScheduledScan()
325 << strerror(error_code); in StopScheduledScan()
358 int* error_code) { in StartScheduledScan() argument
[all …]
Doffload_scan_callback_interface_impl.cpp37 OffloadScanCallbackInterface::AsyncErrorReason error_code) { in OnOffloadError() argument
38 scanner_impl_->OnOffloadError(error_code); in OnOffloadError()
Dscanner_impl.cpp221 int error_code = 0; in scan() local
223 &error_code)) { in scan()
224 CHECK(error_code != ENODEV) << "Driver is in a bad state, restarting wificond"; in scan()
323 int error_code = 0; in StartPnoScanDefault() local
332 &error_code)) { in StartPnoScanDefault()
334 CHECK(error_code != ENODEV) << "Driver is in a bad state, restarting wificond"; in StartPnoScanDefault()
518 OffloadScanCallbackInterface::AsyncErrorReason error_code) { in OnOffloadError() argument
525 LOG(ERROR) << "Offload Service Async Failure error_code=" << error_code; in OnOffloadError()
526 switch (error_code) { in OnOffloadError()
Dscan_utils.h90 int* error_code);
118 int* error_code);
/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/payload_consumer/
Dpostinstall_runner_action.cc300 ErrorCode error_code = ErrorCode::kPostinstallRunnerError; in CompletePartitionPostinstall() local
306 error_code = ErrorCode::kPostinstallBootedFromFirmwareB; in CompletePartitionPostinstall()
313 error_code = ErrorCode::kPostinstallFirmwareRONotUpdatable; in CompletePartitionPostinstall()
321 return CompletePostinstall(error_code); in CompletePartitionPostinstall()
331 void PostinstallRunnerAction::CompletePostinstall(ErrorCode error_code) { in CompletePostinstall() argument
334 if (error_code == ErrorCode::kSuccess && in CompletePostinstall()
336 error_code = ErrorCode::kPostinstallRunnerError; in CompletePostinstall()
340 completer.set_code(error_code); in CompletePostinstall()
342 if (error_code != ErrorCode::kSuccess) { in CompletePostinstall()
/system/update_engine/
Dsideload_main.cc104 void SendPayloadApplicationComplete(ErrorCode error_code) override { in SendPayloadApplicationComplete() argument
105 if (error_code != ErrorCode::kSuccess) { in SendPayloadApplicationComplete()
108 error_code, in SendPayloadApplicationComplete()
109 utils::ErrorCodeToString(error_code).c_str())); in SendPayloadApplicationComplete()
111 error_code_ = error_code; in SendPayloadApplicationComplete()
117 ErrorCode error_code() { return error_code_; } in error_code() function in chromeos_update_engine::__anonbdddf6360211::SideloadDaemonState
Domaha_request_action.h81 error_code(ErrorCode::kError) {} in OmahaEvent()
85 error_code(ErrorCode::kSuccess) {} in OmahaEvent()
89 error_code(in_error_code) {} in OmahaEvent()
93 ErrorCode error_code; member
Dupdate_engine_client_android.cc65 Status onPayloadApplicationComplete(int error_code) override;
96 int error_code) { in onPayloadApplicationComplete() argument
97 ErrorCode code = static_cast<ErrorCode>(error_code); in onPayloadApplicationComplete()
99 << " (" << error_code << "))"; in onPayloadApplicationComplete()
Dservice_observer_interface.h41 virtual void SendPayloadApplicationComplete(ErrorCode error_code) = 0;
/system/connectivity/wificond/tests/
Dscan_utils_unittest.cpp59 NL80211Packet CreateControlMessageError(int error_code) { in CreateControlMessageError() argument
69 *error_field = -error_code; in CreateControlMessageError()
155 int error_code; in TEST_F() local
157 &error_code)); in TEST_F()
158 EXPECT_EQ(kFakeErrorCode, error_code); in TEST_F()
186 int error_code; in TEST_F() local
190 kFakeRssiThreshold, kFakeUseRandomMAC, {}, {}, {}, &error_code)); in TEST_F()
191 EXPECT_EQ(kFakeErrorCode, error_code); in TEST_F()
Dmock_scan_utils.h49 int* error_code));
59 int* error_code));
/system/core/libziparchive/include/ziparchive/
Dzip_writer.h84 static const char* ErrorCodeString(int32_t error_code);
163 int32_t HandleError(int32_t error_code);
/system/update_engine/binder_bindings/android/os/
DIUpdateEngineCallback.aidl24 void onPayloadApplicationComplete(int error_code); in onPayloadApplicationComplete() argument
/system/core/base/include/android-base/
Derrors.h41 std::string SystemErrorCodeToString(int error_code);
/system/bt/stack/l2cap/
Dl2cap_client.cc46 uint16_t error_code);
53 uint16_t error_code);
188 uint16_t error_code) { in connect_completed_cb() argument
198 if (error_code != L2CAP_CONN_OK) { in connect_completed_cb()
200 error_code); in connect_completed_cb()
324 UNUSED_ATTR uint16_t error_code) { in disconnect_completed_cb() argument
/system/bt/stack/avdt/
Davdt_api.cc537 uint16_t AVDT_ConfigRsp(uint8_t handle, uint8_t label, uint8_t error_code, in AVDT_ConfigRsp() argument
545 handle, label, error_code, category); in AVDT_ConfigRsp()
560 evt.msg.hdr.err_code = error_code; in AVDT_ConfigRsp()
563 if (error_code == 0) { in AVDT_ConfigRsp()
769 uint16_t AVDT_ReconfigRsp(uint8_t handle, uint8_t label, uint8_t error_code, in AVDT_ReconfigRsp() argument
776 handle, label, error_code, category); in AVDT_ReconfigRsp()
785 evt.msg.hdr.err_code = error_code; in AVDT_ReconfigRsp()
848 uint16_t AVDT_SecurityRsp(uint8_t handle, uint8_t label, uint8_t error_code, in AVDT_SecurityRsp() argument
855 handle, label, error_code, len); in AVDT_SecurityRsp()
864 evt.msg.security_rsp.hdr.err_code = error_code; in AVDT_SecurityRsp()
/system/chre/apps/wifi_offload/include/chre/apps/wifi_offload/
Dutility.h47 const char *GetErrorCodeName(ErrorCode error_code);
/system/security/keystore/
Dkeystore_client_impl.cpp332 auto error_code = keystore_->abort(active_operations_[handle]); in abortOperation() local
333 if (error_code.isOk()) { in abortOperation()
336 return error_code; in abortOperation()
341 auto error_code = keystore_->exist(key_name16, kDefaultUID); in doesKeyExist() local
342 return error_code.isOk(); in doesKeyExist()
349 auto error_code = keystore_->list(prefix16, kDefaultUID, &matches); in listKeys() local
350 if (error_code.isOk()) { in listKeys()
/system/chre/apps/wifi_offload/
Dutility.cc136 const char *GetErrorCodeName(ErrorCode error_code) { in GetErrorCodeName() argument
137 switch (error_code) { in GetErrorCodeName()
/system/core/libziparchive/
Dzip_archive_test.cc681 int32_t error_code = 0; in TEST() local
682 ExtractEntryToMemory(kDataDescriptorZipFile, &entry, &error_code); in TEST()
684 ASSERT_EQ(0, error_code); in TEST()
695 int32_t error_code = 0; in TEST() local
696 ExtractEntryToMemory(invalid_csize, &entry, &error_code); in TEST()
698 ASSERT_EQ(kInconsistentInformation, error_code); in TEST()
703 error_code = 0; in TEST()
705 ExtractEntryToMemory(invalid_csize, &entry, &error_code); in TEST()
707 ASSERT_EQ(kInconsistentInformation, error_code); in TEST()
Dzip_writer.cc73 const char* ZipWriter::ErrorCodeString(int32_t error_code) { in ErrorCodeString() argument
74 if (error_code < 0 && (-error_code) < static_cast<int32_t>(arraysize(sErrorCodes))) { in ErrorCodeString()
75 return sErrorCodes[-error_code]; in ErrorCodeString()
125 int32_t ZipWriter::HandleError(int32_t error_code) { in HandleError() argument
128 return error_code; in HandleError()
/system/core/fastboot/
Dsocket.cpp285 DWORD error_code = WSAGetLastError(); in GetErrorMessage() local
287 int error_code = errno; in GetErrorMessage()
289 return android::base::SystemErrorCodeToString(error_code); in GetErrorMessage()

123