Home
last modified time | relevance | path

Searched refs:callerAppRecord (Results 1 - 5 of 5) sorted by relevance

/foundation/ability/ability_runtime/services/appmgr/src/
H A Dapp_mgr_event.cpp25 int32_t AppMgrEventUtil::GetCallerPid(const std::shared_ptr<AppRunningRecord> &callerAppRecord) in GetCallerPid() argument
27 if (!callerAppRecord) { in GetCallerPid()
28 TAG_LOGW(AAFwkTag::APPMGR, "null callerAppRecord"); in GetCallerPid()
32 if (!callerAppRecord->GetPriorityObject()) { in GetCallerPid()
37 return callerAppRecord->GetPriorityObject()->GetPid(); in GetCallerPid()
55 bool AppMgrEventUtil::SendCreateAtomicServiceProcessEvent(const std::shared_ptr<AppRunningRecord> &callerAppRecord, in SendCreateAtomicServiceProcessEvent() argument
68 if (callerAppRecord == nullptr) { in SendCreateAtomicServiceProcessEvent()
76 eventInfo.callerBundleName = callerAppRecord->GetName(); in SendCreateAtomicServiceProcessEvent()
77 eventInfo.callerProcessName = callerAppRecord->GetProcessName(); in SendCreateAtomicServiceProcessEvent()
84 bool AppMgrEventUtil::SendProcessStartEvent(const std::shared_ptr<AppRunningRecord> &callerAppRecord, in SendProcessStartEvent() argument
130 SendProcessStartFailedEvent(std::shared_ptr<AppRunningRecord> callerAppRecord, std::shared_ptr<AppRunningRecord> appRecord, AAFwk::EventInfo &eventInfo) SendProcessStartFailedEvent() argument
170 UpdateCallerInfo(AAFwk::EventInfo &eventInfo, std::shared_ptr<AppRunningRecord> callerAppRecord, std::shared_ptr<AppRunningRecord> appRecord) UpdateCallerInfo() argument
[all...]
H A Dapp_mgr_service_inner.cpp3555 auto callerAppRecord = GetAppRunningRecordByPid(callerPid); in SendCreateAtomicServiceProcessEvent() local
3556 return AppMgrEventUtil::SendCreateAtomicServiceProcessEvent(callerAppRecord, appRecord, moduleName, abilityName); in SendCreateAtomicServiceProcessEvent()
3567 auto callerAppRecord = GetAppRunningRecordByPid(callerPid); in SendProcessStartEvent() local
3568 AppMgrEventUtil::SendProcessStartEvent(callerAppRecord, appRecord, eventInfo); in SendProcessStartEvent()
3608 auto callerAppRecord = GetAppRunningRecordByPid(callerPid); in SendProcessStartFailedEvent() local
3609 AppMgrEventUtil::SendProcessStartFailedEvent(callerAppRecord, appRecord, eventInfo); in SendProcessStartFailedEvent()
/foundation/ability/ability_runtime/test/unittest/app_mgr_event_test/
H A Dapp_mgr_event_test.cpp55 std::shared_ptr<AppRunningRecord> callerAppRecord = nullptr; in HWTEST_F() local
59 bool ret = AppMgrEventUtil::SendCreateAtomicServiceProcessEvent(callerAppRecord, appRecord, in HWTEST_F()
66 * @tc.desc: Send Create Atomic service process event, callerAppRecord is nullptr
82 std::shared_ptr<AppRunningRecord> callerAppRecord = nullptr; in HWTEST_F() local
85 bool ret = AppMgrEventUtil::SendCreateAtomicServiceProcessEvent(callerAppRecord, appRecord, in HWTEST_F()
92 * @tc.desc: Send Create Atomic service process event, callerAppRecord is not nullptr
114 auto callerAppRecord = std::make_shared<AppRunningRecord>(callerAppInfo, callerRecordId, callerProcessName); in HWTEST_F() local
115 EXPECT_NE(callerAppRecord, nullptr); in HWTEST_F()
119 bool ret = AppMgrEventUtil::SendCreateAtomicServiceProcessEvent(callerAppRecord, appRecord, in HWTEST_F()
131 std::shared_ptr<AppRunningRecord> callerAppRecord in HWTEST_F() local
158 std::shared_ptr<AppRunningRecord> callerAppRecord = nullptr; HWTEST_F() local
189 auto callerAppRecord = std::make_shared<AppRunningRecord>(callerAppInfo, callerRecordId, callerProcessName); HWTEST_F() local
204 std::shared_ptr<AppRunningRecord> callerAppRecord = nullptr; HWTEST_F() local
231 std::shared_ptr<AppRunningRecord> callerAppRecord = nullptr; HWTEST_F() local
262 auto callerAppRecord = std::make_shared<AppRunningRecord>(callerAppInfo, callerRecordId, callerProcessName); HWTEST_F() local
[all...]
/foundation/ability/ability_runtime/services/appmgr/include/
H A Dapp_mgr_event.h37 static bool SendCreateAtomicServiceProcessEvent(const std::shared_ptr<AppRunningRecord> &callerAppRecord,
41 static bool SendProcessStartEvent(const std::shared_ptr<AppRunningRecord> &callerAppRecord,
44 static bool SendProcessStartFailedEvent(std::shared_ptr<AppRunningRecord> callerAppRecord,
56 static int32_t GetCallerPid(const std::shared_ptr<AppRunningRecord> &callerAppRecord);
61 static void UpdateCallerInfo(AAFwk::EventInfo &eventInfo, std::shared_ptr<AppRunningRecord> callerAppRecord,
/foundation/ability/ability_runtime/test/fuzztest/abilityappmgrevent_fuzzer/
H A Dabilityappmgrevent_fuzzer.cpp42 std::shared_ptr<AppRunningRecord> callerAppRecord; in DoSomethingInterestingWithMyAPI() local
45 AppMgrEventUtil::SendCreateAtomicServiceProcessEvent(callerAppRecord, appRecord, in DoSomethingInterestingWithMyAPI()
48 AppMgrEventUtil::SendProcessStartEvent(callerAppRecord, appRecord, eventInfo); in DoSomethingInterestingWithMyAPI()
52 AppMgrEventUtil::GetCallerPid(callerAppRecord); in DoSomethingInterestingWithMyAPI()

Completed in 14 milliseconds