Home
last modified time | relevance | path

Searched refs:exception (Results 1 - 25 of 31) sorted by relevance

12

/base/hiviewdfx/faultloggerd/frameworks/localhandler/
H A Ddfx_crash_local_handler.cpp131 struct CrashDumpException exception; in ReportToHiview() local
132 (void)memset_s(&exception, sizeof(struct CrashDumpException), 0, sizeof(struct CrashDumpException)); in ReportToHiview()
133 exception.pid = request->pid; in ReportToHiview()
134 exception.uid = request->uid; in ReportToHiview()
135 exception.error = CRASH_DUMP_LOCAL_REPORT; in ReportToHiview()
136 exception.time = static_cast<int64_t>(GetTimeMilliseconds()); in ReportToHiview()
137 if (strncpy_s(exception.message, sizeof(exception.message) - 1, logPath, strlen(logPath)) != 0) { in ReportToHiview()
138 DFXLOGE("strcpy exception msg fail"); in ReportToHiview()
141 ReportException(exception); in ReportToHiview()
[all...]
/base/telephony/core_service/services/sim/include/
H A Dsim_data_type.h50 std::shared_ptr<void> exception = nullptr; member
71 exception = fd->exception; in ControllerToFileMsg()
99 std::shared_ptr<void> exception = nullptr; member
113 std::shared_ptr<void> exception = nullptr; member
138 std::shared_ptr<void> exception = nullptr; member
153 std::shared_ptr<void> exception = nullptr; member
180 std::shared_ptr<void> exception = nullptr; member
H A Dicc_dialling_numbers_handler.h72 void SetException(std::shared_ptr<void> exception) in SetException()
74 this->exception = exception; in SetException()
79 return this->exception; in GetException()
179 std::shared_ptr<void> exception = nullptr; member
/base/hiviewdfx/faultloggerd/interfaces/innerkits/signal_handler/
H A Ddfx_signalhandler_exception.c100 int ReportException(struct CrashDumpException exception) in ReportException() argument
105 request.pid = exception.pid; in ReportException()
106 request.uid = (uint32_t)(exception.uid); in ReportException()
124 if (OHOS_TEMP_FAILURE_RETRY(write(fd, &exception, in ReportException()
125 sizeof(exception))) != (long)sizeof(exception)) { in ReportException()
126 DFXLOGE("Failed to write exception message to socket, errno(%{public}d).", errno); in ReportException()
H A Ddfx_dumprequest.c114 struct CrashDumpException exception; in FillCrashExceptionAndReport() local
115 (void)memset_s(&exception, sizeof(struct CrashDumpException), 0, sizeof(struct CrashDumpException)); in FillCrashExceptionAndReport()
116 exception.pid = g_request->pid; in FillCrashExceptionAndReport()
117 exception.uid = (int32_t)(g_request->uid); in FillCrashExceptionAndReport()
118 exception.error = err; in FillCrashExceptionAndReport()
119 exception.time = (int64_t)(GetTimeMilliseconds()); in FillCrashExceptionAndReport()
120 if (strncpy_s(exception.message, sizeof(exception.message), GetCrashDescription(err), in FillCrashExceptionAndReport()
121 sizeof(exception.message) - 1) != 0) { in FillCrashExceptionAndReport()
122 DFXLOGE("strcpy exception messag in FillCrashExceptionAndReport()
[all...]
H A Ddfx_signal_handler.c273 struct CrashDumpException exception; in FillCrashExceptionAndReport() local
274 memset(&exception, 0, sizeof(struct CrashDumpException)); in FillCrashExceptionAndReport()
275 exception.pid = g_request.pid; in FillCrashExceptionAndReport()
276 exception.uid = (int32_t)(g_request.uid); in FillCrashExceptionAndReport()
277 exception.error = err; in FillCrashExceptionAndReport()
278 exception.time = (int64_t)(GetTimeMilliseconds()); in FillCrashExceptionAndReport()
279 (void)strncpy(exception.message, GetCrashDescription(err), sizeof(exception.message) - 1); in FillCrashExceptionAndReport()
280 ReportException(exception); in FillCrashExceptionAndReport()
/base/hiviewdfx/faultloggerd/tools/process_dump/
H A Ddfx_stack_info_formatter.cpp98 Json::Value exception; in GetNativeCrashInfo() local
99 exception["signal"] = signal; in GetNativeCrashInfo()
100 exception["message"] = process_->GetFatalMessage(); in GetNativeCrashInfo()
101 exception["thread_name"] = process_->keyThread_->threadInfo_.threadName; in GetNativeCrashInfo()
102 exception["tid"] = process_->keyThread_->threadInfo_.tid; in GetNativeCrashInfo()
109 exception["frames"] = frames; in GetNativeCrashInfo()
110 jsonInfo["exception"] = exception; in GetNativeCrashInfo()
/base/hiviewdfx/hiview/plugins/faultlogger/test/common/unittest/
H A Dfreeze_json_generator_unittest.cpp52 FreezeJsonException exception = FreezeJsonException::Builder() in HWTEST_F() local
56 std::string result = exception.JsonStr(); in HWTEST_F()
102 std::string exception = "{}"; in HWTEST_F() local
123 .InitException(exception) in HWTEST_F()
H A Dfaultlogger_unittest.cpp122 auto exception = appEvent["exception"]; in CheckSumarryParseResult() local
123 GTEST_LOG_(INFO) << "========name:" << exception["name"]; in CheckSumarryParseResult()
124 if (exception["name"] == "" || exception["name"] == "none") { in CheckSumarryParseResult()
127 GTEST_LOG_(INFO) << "========message:" << exception["message"]; in CheckSumarryParseResult()
128 if (exception["message"] == "" || exception["message"] == "none") { in CheckSumarryParseResult()
131 GTEST_LOG_(INFO) << "========stack:" << exception["stack"]; in CheckSumarryParseResult()
132 if (exception["stac in CheckSumarryParseResult()
[all...]
/base/hiviewdfx/faultloggerd/interfaces/innerkits/signal_handler/include/
H A Ddfx_signalhandler_exception.h28 * @brief report signal handler exception to faultloggerd
30 int ReportException(struct CrashDumpException exception);
/base/telephony/core_service/services/sim/src/
H A Dsim_file.cpp393 if (fd != nullptr && fd->exception == nullptr) { in ProcessSpnGeneral()
435 if (fd != nullptr && fd->exception == nullptr) { in ProcessSpnCphs()
470 if (fd != nullptr && fd->exception == nullptr) { in ProcessSpnShortCphs()
636 if (fd != nullptr && fd->exception == nullptr) { in ProcessObtainLiLanguage()
657 if (fd != nullptr && fd->exception == nullptr) { in ProcessObtainPlLanguage()
698 if (fd->exception != nullptr) { in ProcessObtainGid1Done()
726 if (fd->exception != nullptr) { in ProcessObtainGid2Done()
751 if (fd->exception != nullptr) { in ProcessGetMsisdnDone()
773 if (fd->exception == nullptr) { in ProcessSetMsisdnDone()
802 if (fd->exception ! in ProcessGetSpdiDone()
[all...]
H A Dicc_dialling_numbers_cache.cpp98 SendBackResult(fd->callerCache->caller, diallingNumberList, fd->exception); in ProcessObtainPbrDetailsDone()
124 SendBackResult(fd->callerCache->caller, diallingNumberList, fd->exception); in ProcessObtainAdnDetailsDone()
140 if (fd->exception == nullptr) { in ProcessChangeDiallingNumbersDone()
144 std::static_pointer_cast<RadioResponseInfo>(fd->exception); in ProcessChangeDiallingNumbersDone()
156 SendUpdateResult(fd->callerCache->caller, fd->exception); in ProcessChangeDiallingNumbersDone()
304 std::shared_ptr<void> exception = static_cast<std::shared_ptr<void>>(responseInfo); in SendExceptionResult() local
305 SendBackResult(caller, diallingNumberList, exception); in SendExceptionResult()
329 data->exception = object; in SendBackResult()
H A Dicc_dialling_numbers_manager.cpp105 if (object->exception == nullptr) { in ProcessLoadDone()
114 TELEPHONY_LOGE("ProcessLoadDone: icc diallingnumbers get exception result"); in ProcessLoadDone()
127 if (object != nullptr && object->exception != nullptr) { in ProcessUpdateDone()
129 std::static_pointer_cast<RadioResponseInfo>(object->exception); in ProcessUpdateDone()
142 if (object != nullptr && object->exception != nullptr) { in ProcessWriteDone()
144 std::static_pointer_cast<RadioResponseInfo>(object->exception); in ProcessWriteDone()
157 if (object != nullptr && object->exception != nullptr) { in ProcessDeleteDone()
159 std::static_pointer_cast<RadioResponseInfo>(object->exception); in ProcessDeleteDone()
H A Dicc_dialling_numbers_handler.cpp159 loadRequest->SetException(fdError->exception); in ProcessLinearSizeDone()
177 if (object->exception == nullptr) { in ProcessLinearSizeDone()
207 loadRequest->SetException(object->exception); in ProcessUpdateRecordDone()
229 loadRequest->SetException(fdError->exception); in ProcessDiallingNumberAllLoadDone()
243 if (object->exception != nullptr) { in ProcessDiallingNumberAllLoadDone()
246 loadRequest->SetException(object->exception); in ProcessDiallingNumberAllLoadDone()
295 if (fd->exception != nullptr) { in ProcessExtensionRecordNumbers()
296 loadRequest->SetException(fd->exception); in ProcessExtensionRecordNumbers()
297 TELEPHONY_LOGE("IccDiallingNumbersHandler::ProcessExtensionRecordNumbers load failed with exception"); in ProcessExtensionRecordNumbers()
321 if (fd->exception ! in ProcessDiallingNumberLoadDone()
[all...]
H A Disim_file.cpp149 if (fd->exception == nullptr) { in ProcessGetIccidDone()
211 if (fd->exception != nullptr) { in ProcessGetImpiDone()
212 TELEPHONY_LOGE("ProcessGetImpiDone get exception"); in ProcessGetImpiDone()
232 if (fd->exception != nullptr) { in ProcessGetIstDone()
233 TELEPHONY_LOGE("ProcessGetIstDone get exception"); in ProcessGetIstDone()
H A Dusim_dialling_numbers_service.cpp37 if (fd->exception != nullptr) { in ProcessEvent()
69 if (object->exception == nullptr) { in ProcessPbrLoadDone()
96 if (object->exception == nullptr) { in ProcessDiallingNumberLoadDone()
101 TELEPHONY_LOGE("ProcessDiallingNumberLoadDone: exception occured"); in ProcessDiallingNumberLoadDone()
H A Dsim_sms_controller.cpp67 if (fd->exception != nullptr) { in ProcessLoadDone()
76 if (object->exception == nullptr) { in ProcessLoadDone()
H A Druim_file.cpp203 if (fd->exception == nullptr) { in ProcessGetIccidDone()
343 if (fd->exception != nullptr) { in ProcessGetSpnDone()
344 TELEPHONY_LOGE("EfCsimSpnFileWanted ProcessParseFile get exception"); in ProcessGetSpnDone()
/base/hiviewdfx/faultloggerd/services/
H A Dfault_logger_daemon.cpp116 static void ReportExceptionToSysEvent(CrashDumpException& exception) in ReportExceptionToSysEvent() argument
120 if (exception.error == CRASH_DUMP_LOCAL_REPORT) { in ReportExceptionToSysEvent()
122 if (strlen(exception.message) == 0) { in ReportExceptionToSysEvent()
125 rfile.open(exception.message, std::ios::binary | std::ios::ate); in ReportExceptionToSysEvent()
135 errMessage = exception.message; in ReportExceptionToSysEvent()
141 "PID", exception.pid, in ReportExceptionToSysEvent()
142 "UID", exception.uid, in ReportExceptionToSysEvent()
143 "HAPPEN_TIME", exception.time, in ReportExceptionToSysEvent()
144 "ERROR_CODE", exception.error, in ReportExceptionToSysEvent()
351 CrashDumpException exception; in HandleExceptionRequest() local
[all...]
/base/hiviewdfx/faultloggerd/test/unittest/signal_handler/
H A Dsignal_handler_test.cpp601 struct CrashDumpException exception; in HWTEST_F() local
602 exception.pid = 1; in HWTEST_F()
603 exception.uid = 1; in HWTEST_F()
604 exception.error = CRASH_SIGNAL_EMASKED; in HWTEST_F()
605 int ret = ReportException(exception); in HWTEST_F()
/base/hiviewdfx/hiview/plugins/faultlogger/service/
H A Dfaultlogger.cpp217 Json::Value exception; in FillJsErrorParams() local
236 exception["name"] = name; in FillJsErrorParams()
237 exception["message"] = message; in FillJsErrorParams()
238 exception["stack"] = stack; in FillJsErrorParams()
239 params["exception"] = exception; in FillJsErrorParams()
1048 FreezeJsonException exception = FreezeJsonException::Builder() in GetFreezeJsonCollector() local
1052 collector.exception = exception.JsonStr(); in GetFreezeJsonCollector()
1108 .InitException(collector.exception) in ReportAppFreezeToAppEvent()
[all...]
H A Dfreeze_json_generator.cpp211 FreezeJsonParams::Builder& FreezeJsonParams::Builder::InitException(const std::string& exception) in InitException() argument
213 exception_ = exception; in InitException()
H A Dfreeze_json_generator.h112 Builder& InitException(const std::string& exception);
161 static constexpr const char* const jsonParamsException = "exception";
/base/location/frameworks/native/locator_sdk/source/
H A Dlocator_impl.cpp179 int exception = reply.ReadInt32(); in GetCachedLocation() local
180 if (exception == ERRCODE_PERMISSION_DENIED) { in GetCachedLocation()
182 } else if (exception != ERRCODE_SUCCESS) { in GetCachedLocation()
183 LBSLOGE(LOCATOR_STANDARD, "cause some exception happened in lower service."); in GetCachedLocation()
351 int exception = reply.ReadInt32(); in IsGeoServiceAvailable() local
352 if (exception == ERRCODE_PERMISSION_DENIED) { in IsGeoServiceAvailable()
354 } else if (exception != ERRCODE_SUCCESS) { in IsGeoServiceAvailable()
355 LBSLOGE(LOCATOR_STANDARD, "cause some exception happened in lower service."); in IsGeoServiceAvailable()
380 int exception = reply.ReadInt32(); in GetAddressByCoordinate() local
381 if (exception in GetAddressByCoordinate()
418 int exception = reply.ReadInt32(); GetAddressByLocationName() local
[all...]
/base/hiviewdfx/hiview/base/utility/include/
H A Dfreeze_json_util.h70 "exception",
92 std::string exception = "{}"; member

Completed in 20 milliseconds

12