Home
last modified time | relevance | path

Searched refs:callerPid (Results 1 - 25 of 87) sorted by relevance

1234

/foundation/multimedia/audio_framework/services/audio_policy/server/src/service/session/
H A Daudio_session_service.cpp72 int32_t AudioSessionService::ActivateAudioSession(const int32_t callerPid, const AudioSessionStrategy &strategy) in ActivateAudioSession() argument
74 AUDIO_INFO_LOG("ActivateAudioSession: callerPid %{public}d, concurrencyMode %{public}d", in ActivateAudioSession()
75 callerPid, static_cast<int32_t>(strategy.concurrencyMode)); in ActivateAudioSession()
77 if (sessionMap_.count(callerPid) != 0 && sessionMap_[callerPid] != nullptr) { in ActivateAudioSession()
78 // The audio session of the callerPid is already created. The strategy will be updated. in ActivateAudioSession()
79 AUDIO_INFO_LOG("The audio seesion of pid %{public}d has already been created! Update strategy.", callerPid); in ActivateAudioSession()
80 sessionMap_[callerPid]->SetSessionStrategy(strategy); in ActivateAudioSession()
82 sessionMap_[callerPid] = std::make_shared<AudioSession>(callerPid, strateg in ActivateAudioSession()
93 DeactivateAudioSession(const int32_t callerPid) DeactivateAudioSession() argument
100 DeactivateAudioSessionInternal(const int32_t callerPid, bool isSessionTimeout) DeactivateAudioSessionInternal() argument
118 IsAudioSessionActivated(const int32_t callerPid) IsAudioSessionActivated() argument
142 GetAudioSessionByPid(const int32_t callerPid) GetAudioSessionByPid() argument
154 OnAudioSessionTimeOut(const int32_t callerPid) OnAudioSessionTimeOut() argument
[all...]
H A Daudio_session_timer.cpp40 void AudioSessionTimer::StartTimer(const int32_t callerPid) in StartTimer() argument
42 AUDIO_INFO_LOG("Audio session state change: StartTimer for pid %{public}d", callerPid); in StartTimer()
44 if (timerMap_.count(callerPid) != 0) { in StartTimer()
45 AUDIO_INFO_LOG("StartTimer: timer of callerPid %{public}d is already running", callerPid); in StartTimer()
50 timerMap_[callerPid] = now; in StartTimer()
67 void AudioSessionTimer::StopTimer(const int32_t callerPid) in StopTimer() argument
69 AUDIO_INFO_LOG("Audio session state change: StopTimer for pid %{public}d", callerPid); in StopTimer()
71 if (timerMap_.count(callerPid) == 0) { in StopTimer()
72 AUDIO_WARNING_LOG("StopTimer: timer of callerPid in StopTimer()
88 IsSessionTimerRunning(const int32_t callerPid) IsSessionTimerRunning() argument
141 SendSessionTimeOutCallback(const int32_t callerPid) SendSessionTimeOutCallback() argument
[all...]
H A Daudio_session_service.h39 int32_t ActivateAudioSession(const int32_t callerPid, const AudioSessionStrategy &strategy);
40 int32_t DeactivateAudioSession(const int32_t callerPid);
41 bool IsAudioSessionActivated(const int32_t callerPid);
44 void OnAudioSessionTimeOut(const int32_t callerPid) override;
49 std::shared_ptr<AudioSession> GetAudioSessionByPid(const int32_t callerPid);
54 int32_t DeactivateAudioSessionInternal(const int32_t callerPid, bool isSessionTimeout = false);
H A Daudio_session_timer.h32 virtual void OnAudioSessionTimeOut(const int32_t callerPid) = 0;
47 void StartTimer(const int32_t callerPid);
48 void StopTimer(const int32_t callerPid);
49 bool IsSessionTimerRunning(const int32_t callerPid);
53 void SendSessionTimeOutCallback(const int32_t callerPid);
H A Daudio_session.cpp25 AudioSession::AudioSession(const int32_t callerPid, const AudioSessionStrategy &strategy, in AudioSession() argument
29 callerPid_ = callerPid; in AudioSession()
/foundation/multimedia/audio_framework/services/audio_policy/test/unittest/audio_session_timer_test/src/
H A Daudio_session_timer_test.cpp39 int32_t callerPid = IPCSkeleton::GetCallingPid(); in HWTEST() local
40 audioSession_->StartTimer(callerPid); in HWTEST()
42 audioSession_->StopTimer(callerPid); in HWTEST()
54 int32_t callerPid = IPCSkeleton::GetCallingPid(); in HWTEST() local
58 audioSession_->StartTimer(callerPid); in HWTEST()
60 audioSession_->StopTimer(callerPid); in HWTEST()
72 int32_t callerPid = IPCSkeleton::GetCallingPid(); in HWTEST() local
76 audioSession_->StartTimer(callerPid); in HWTEST()
78 audioSession_->StopTimer(callerPid); in HWTEST()
90 int32_t callerPid in HWTEST() local
107 int32_t callerPid = IPCSkeleton::GetCallingPid(); HWTEST() local
123 int32_t callerPid = IPCSkeleton::GetCallingPid(); HWTEST() local
148 int32_t callerPid = IPCSkeleton::GetCallingPid(); HWTEST() local
163 int32_t callerPid = IPCSkeleton::GetCallingPid(); HWTEST() local
[all...]
/foundation/resourceschedule/memmgr/services/memmgrservice/src/event/
H A Dextension_connection_observer.cpp31 "with type %{public}d", data.callerName.c_str(), data.callerPid, data.callerUid, in OnExtensionConnected()
36 CallerRequest({data.callerPid, data.callerUid, data.callerName}, in OnExtensionConnected()
44 "with type %{public}d", data.callerName.c_str(), data.callerPid, data.callerUid, in OnExtensionDisconnected()
49 CallerRequest({data.callerPid, data.callerUid, data.callerName}, in OnExtensionDisconnected()
57 data.callerName.c_str(), data.callerPid, data.callerUid, data.targetBundleName.c_str(), in OnDlpAbilityOpened()
61 request.callerPid = data.callerPid; in OnDlpAbilityOpened()
69 CallerRequest({data.callerPid, data.callerUid, data.callerName}, in OnDlpAbilityOpened()
77 data.callerName.c_str(), data.callerPid, data.callerUid, data.targetBundleName.c_str(), in OnDlpAbilityClosed()
81 request.callerPid in OnDlpAbilityClosed()
[all...]
/foundation/ability/ability_runtime/services/abilitymgr/src/
H A Dconnection_state_manager.cpp181 if (caller.callerPid == 0) { in CheckDataAbilityConnectionParams()
182 TAG_LOGE(AAFwkTag::CONNECTION, "invalid callerPid"); in CheckDataAbilityConnectionParams()
219 void ConnectionStateManager::HandleDataAbilityCallerDied(int32_t callerPid) in HandleDataAbilityCallerDied() argument
221 if (callerPid <= 0) { in HandleDataAbilityCallerDied()
222 TAG_LOGW(AAFwkTag::CONNECTION, "invalid callerPid"); in HandleDataAbilityCallerDied()
226 HandleCallerDied(callerPid); in HandleDataAbilityCallerDied()
328 auto callerPid = connectionRecord->GetCallerPid(); in AddConnectionInner() local
330 auto it = connectionStates_.find(callerPid); in AddConnectionInner()
334 connectionStates_[callerPid] = targetItem; in AddConnectionInner()
351 auto callerPid in RemoveConnectionInner() local
372 HandleCallerDied(int32_t callerPid) HandleCallerDied() argument
397 RemoveDiedCaller(int32_t callerPid) RemoveDiedCaller() argument
[all...]
H A Drestart_app_manager.cpp53 auto callerPid = IPCSkeleton::GetCallingPid(); in IsForegroundToRestartApp() local
55 DelayedSingleton<AppScheduler>::GetInstance()->GetRunningProcessInfoByPid(callerPid, processInfo); in IsForegroundToRestartApp()
H A Dconnection_state_item.cpp159 return info && info->IsNotHap() && info->GetCallerPid() == caller.callerPid; in AddCaller()
165 callers_.emplace_back(std::make_shared<CallerInfo>(caller.isNotHap, caller.callerPid, caller.callerToken)); in AddCaller()
179 return info && info->IsNotHap() && info->GetCallerPid() == caller.callerPid; in RemoveCaller()
204 CallerInfo(bool isNotHap, int32_t callerPid, const sptr<IRemoteObject> &callerToken) in CallerInfo() argument
205 : isNotHap_(isNotHap), callerPid_(callerPid), callerToken_(callerToken) {} in CallerInfo()
236 ConnectionStateItem::ConnectionStateItem(int32_t callerUid, int32_t callerPid, const std::string &callerName) in ConnectionStateItem() argument
237 : callerUid_(callerUid), callerPid_(callerPid), callerName_(callerName) in ConnectionStateItem()
259 dataCaller.callerPid, dataCaller.callerName); in CreateConnectionStateItem()
470 data.callerPid = callerPid_; in GenerateConnectionData()
481 data.callerPid in GenerateConnectionData()
[all...]
H A Dassert_fault_callback_death_mgr.cpp58 auto callerPid = IPCSkeleton::GetCallingPid(); in AddAssertFaultCallback() local
61 assertFaultSessionDialogs_[assertFaultSessionId] = {callerPid, remote, deathRecipient, callback}; in AddAssertFaultCallback()
/foundation/ability/ability_runtime/test/unittest/connection_state_manager_test/
H A Dconnection_state_manager_test.cpp248 caller.callerPid = 1; in HWTEST_F()
264 caller.callerPid = 1; in HWTEST_F()
312 caller.callerPid = 0; in HWTEST_F()
329 caller.callerPid = 1; in HWTEST_F()
395 int32_t callerPid = 0; in HWTEST_F() local
396 manager_->HandleDataAbilityCallerDied(callerPid); in HWTEST_F()
410 int32_t callerPid = 1; in HWTEST_F() local
411 manager_->HandleDataAbilityCallerDied(callerPid); in HWTEST_F()
656 int32_t callerPid = 0; in HWTEST_F() local
658 manager_->connectionStates_[0] = std::make_shared<ConnectionStateItem>(callerUid, callerPid, callerNam in HWTEST_F()
[all...]
/foundation/communication/ipc/ipc/native/src/napi/src/
H A Dnapi_ipc_skeleton.cpp199 int32_t callerPid; in NAPI_IPCSkeleton_resetCallingIdentity() local
200 napi_get_value_int32(env, napiCallingPid, &callerPid); in NAPI_IPCSkeleton_resetCallingIdentity()
210 int64_t identity = (static_cast<uint64_t>(callerUid) << PID_LEN) | static_cast<uint64_t>(callerPid); in NAPI_IPCSkeleton_resetCallingIdentity()
211 callerPid = getpid(); in NAPI_IPCSkeleton_resetCallingIdentity()
214 napi_create_int32(env, callerPid, &newCallingPid); in NAPI_IPCSkeleton_resetCallingIdentity()
235 | static_cast<uint64_t>(callerPid))); in NAPI_IPCSkeleton_resetCallingIdentity()
241 callerPid = getpid(); in NAPI_IPCSkeleton_resetCallingIdentity()
243 napi_create_int32(env, callerPid, &newCallingPid); in NAPI_IPCSkeleton_resetCallingIdentity()
318 int callerPid = static_cast<int>(token); in NAPI_IPCSkeleton_setCallingIdentity() local
320 napi_create_int32(env, callerPid, in NAPI_IPCSkeleton_setCallingIdentity()
341 int callerPid = static_cast<int>(token); NAPI_IPCSkeleton_setCallingIdentity() local
375 int callerPid = static_cast<int>(token); NAPI_IPCSkeleton_restoreCallingIdentitySetProperty() local
397 int callerPid = static_cast<int>(token); NAPI_IPCSkeleton_restoreCallingIdentitySetProperty() local
[all...]
/foundation/resourceschedule/memmgr/interface/innerkits/include/
H A Dmem_mgr_process_state_info.h41 * @param callerPid Process id of caller process.
47 MemMgrProcessStateInfo(int32_t callerPid, int32_t callerUid, int32_t pid, int32_t uid, in MemMgrProcessStateInfo() argument
49 : callerPid_(callerPid), callerUid_(callerUid), pid_(pid), uid_(uid), reason_(reason) {}; in MemMgrProcessStateInfo()
/foundation/ability/ability_runtime/interfaces/inner_api/connectionobs_manager/src/
H A Ddlp_state_data.cpp49 if (!parcel.WriteInt32(callerPid)) { in Marshalling()
92 if (!parcel.ReadInt32(callerPid)) { in ReadFromParcel()
93 TAG_LOGW(AAFwkTag::CONNECTION, "read callerPid failed"); in ReadFromParcel()
H A Dconnection_data.cpp54 if (!parcel.WriteInt32(callerPid)) { in Marshalling()
102 if (!parcel.ReadInt32(callerPid)) { in ReadFromParcel()
103 TAG_LOGW(AAFwkTag::CONNECTION, "read callerPid failed"); in ReadFromParcel()
/foundation/ability/ability_runtime/services/common/include/
H A Dres_sched_util.h48 const AbilityInfo &abilityInfo, int64_t resSchedType, int32_t callerUid, int32_t callerPid);
50 const int32_t pid = -1, const int32_t callerPid = -1);
/foundation/ability/ability_runtime/test/unittest/connection_observer_test/
H A Dconnection_observer_test.cpp145 connectionData.callerPid = TEST_CALLER_PID; in HWTEST_F()
160 EXPECT_EQ(connectionData.callerPid, readedData->callerPid); in HWTEST_F()
184 dlpData.callerPid = TEST_CALLER_PID; in HWTEST_F()
200 EXPECT_EQ(dlpData.callerPid, readedData->callerPid); in HWTEST_F()
/foundation/ability/ability_runtime/services/appmgr/src/
H A Dapp_mgr_event.cpp107 eventInfo.callerPid = IPCSkeleton::GetCallingPid(); in SendProcessStartEvent()
115 eventInfo.callerPid = GetCallerPid(callerAppRecord); in SendProcessStartEvent()
180 eventInfo.callerPid = IPCSkeleton::GetCallingPid(); in UpdateCallerInfo()
188 eventInfo.callerPid = GetCallerPid(callerAppRecord); in UpdateCallerInfo()
212 eventInfo.callerPid = hostRecord->GetPriorityObject() != nullptr ? hostRecord->GetPriorityObject()->GetPid() : -1; in SendChildProcessStartFailedEvent()
244 eventInfo.callerPid = hostRecord->GetPriorityObject() != nullptr ? hostRecord->GetPriorityObject()->GetPid() : -1; in SendRenderProcessStartFailedEvent()
/foundation/ability/ability_runtime/services/common/src/
H A Dres_sched_util.cpp69 const AbilityInfo &abilityInfo, int64_t resSchedType, int32_t callerUid, int32_t callerPid) in ReportAbilityAssociatedStartInfoToRSS()
76 { "caller_pid", std::to_string(callerPid) }, in ReportAbilityAssociatedStartInfoToRSS()
104 const int32_t pid, const int32_t callerPid) in ReportEventToRSS()
113 payload.emplace("callerPid", callerPid); in ReportEventToRSS()
68 ReportAbilityAssociatedStartInfoToRSS( const AbilityInfo &abilityInfo, int64_t resSchedType, int32_t callerUid, int32_t callerPid) ReportAbilityAssociatedStartInfoToRSS() argument
103 ReportEventToRSS(const int32_t uid, const std::string &bundleName, const std::string &reason, const int32_t pid, const int32_t callerPid) ReportEventToRSS() argument
/foundation/ability/ability_runtime/services/abilitymgr/include/
H A Dconnection_state_item.h36 int32_t callerPid = 0; member
56 ConnectionStateItem(int32_t callerUid, int32_t callerPid, const std::string &callerName);
H A Dconnection_state_manager.h114 * @param callerPid caller pid of data ability.
116 void HandleDataAbilityCallerDied(int32_t callerPid);
206 void HandleCallerDied(int32_t callerPid);
207 std::shared_ptr<ConnectionStateItem> RemoveDiedCaller(int32_t callerPid);
/foundation/resourceschedule/resource_schedule_service/ressched/sched_controller/observer/src/
H A Dconnection_subscriber.cpp33 payload["callerPid"] = data.callerPid; in MarshallingConnectionData()
63 payload["callerPid"] = data.callerPid; in MarshallingDlpStateData()
/foundation/multimedia/audio_framework/services/audio_policy/test/unittest/audio_session_timer_test/include/
H A Daudio_session_timer_test.h26 void OnAudioSessionTimeOut(const int32_t callerPid) override {}
/foundation/ability/ability_runtime/services/abilitymgr/src/interceptor/
H A Dstart_other_app_interceptor.cpp111 int32_t callerPid = IPCSkeleton::GetCallingPid(); in GetApplicationInfo() local
115 appScheduler->GetApplicationInfoByProcessID(callerPid, applicationInfo, debug) == ERR_OK) { in GetApplicationInfo()

Completed in 11 milliseconds

1234