Home
last modified time | relevance | path

Searched refs:callerPid (Results 1 – 25 of 115) sorted by relevance

12345

/ohos5.0/foundation/multimedia/audio_framework/services/audio_policy/server/src/service/session/
H A Daudio_session_service.cpp77 if (sessionMap_.count(callerPid) != 0 && sessionMap_[callerPid] != nullptr) { in ActivateAudioSession()
82 sessionMap_[callerPid] = std::make_shared<AudioSession>(callerPid, strategy, sessionTimer_); in ActivateAudioSession()
83 sessionMap_[callerPid]->Activate(); in ActivateAudioSession()
103 if (sessionMap_.count(callerPid) == 0) { in DeactivateAudioSessionInternal()
108 sessionMap_[callerPid]->Deactivate(); in DeactivateAudioSessionInternal()
109 sessionMap_.erase(callerPid); in DeactivateAudioSessionInternal()
112 sessionTimer_->StopTimer(callerPid); in DeactivateAudioSessionInternal()
121 if (sessionMap_.count(callerPid) == 0) { in IsAudioSessionActivated()
146 if (sessionMap_.count(callerPid) == 0) { in GetAudioSessionByPid()
150 return sessionMap_[callerPid]; in GetAudioSessionByPid()
[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()
50 timerMap_[callerPid] = now; in StartTimer()
67 void AudioSessionTimer::StopTimer(const int32_t callerPid) in StopTimer() argument
71 if (timerMap_.count(callerPid) == 0) { in StopTimer()
74 timerMap_.erase(callerPid); in StopTimer()
89 bool AudioSessionTimer::IsSessionTimerRunning(const int32_t callerPid) in IsSessionTimerRunning() argument
92 bool isRunning = (timerMap_.count(callerPid) > 0); in IsSessionTimerRunning()
135 void AudioSessionTimer::SendSessionTimeOutCallback(const int32_t callerPid) in 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);
/ohos5.0/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 = data.callerPid; in OnDlpAbilityClosed()
89 CallerRequest({data.callerPid, data.callerUid, data.callerName}, in OnDlpAbilityClosed()
/ohos5.0/foundation/ability/ability_runtime/services/abilitymgr/src/
H A Dconnection_state_manager.cpp181 if (caller.callerPid == 0) { in CheckDataAbilityConnectionParams()
221 if (callerPid <= 0) { 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 = connectionRecord->GetCallerPid(); in RemoveConnectionInner() local
353 auto it = connectionStates_.find(callerPid); in RemoveConnectionInner()
400 auto it = connectionStates_.find(callerPid); in RemoveDiedCaller()
416 auto it = connectionStates_.find(caller.callerPid); in AddDataAbilityConnectionInner()
[all …]
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.calle… 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 &c… 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 = callerPid_; in GenerateConnectionData()
H A Drestart_app_manager.cpp53 auto callerPid = IPCSkeleton::GetCallingPid(); in IsForegroundToRestartApp() local
55 … DelayedSingleton<AppScheduler>::GetInstance()->GetRunningProcessInfoByPid(callerPid, processInfo); in IsForegroundToRestartApp()
/ohos5.0/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()
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
341 int callerPid = static_cast<int>(token); in NAPI_IPCSkeleton_setCallingIdentity() local
375 int callerPid = static_cast<int>(token); in NAPI_IPCSkeleton_restoreCallingIdentitySetProperty() local
[all …]
/ohos5.0/foundation/ability/ability_runtime/test/unittest/connection_state_manager_test/
H A Dconnection_state_manager_test.cpp248 caller.callerPid = 1;
264 caller.callerPid = 1;
312 caller.callerPid = 0;
329 caller.callerPid = 1;
395 int32_t callerPid = 0; variable
396 manager_->HandleDataAbilityCallerDied(callerPid);
410 int32_t callerPid = 1; variable
656 int32_t callerPid = 0; variable
659 manager_->HandleCallerDied(callerPid);
674 caller.callerPid = 0;
[all …]
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/data_share/subscriber_managers/
H A Dpublished_data_subscriber_manager.cpp68 void PublishedDataSubscriberManager::Delete(uint32_t callerTokenId, uint32_t callerPid) in Delete() argument
70 …publishedDataCache_.EraseIf([&callerTokenId, &callerPid](const auto &key, std::vector<ObserverNode… in Delete()
72 if (it->callerTokenId == callerTokenId && it->callerPid == callerPid) { in Delete()
74 DistributedData::Anonymous::Change(key.key).c_str(), callerTokenId, callerPid); in Delete()
270 uint32_t firstCallerTokenId, uint32_t callerTokenId, uint32_t callerPid) in ObserverNode() argument
271 …server), firstCallerTokenId(firstCallerTokenId), callerTokenId(callerTokenId), callerPid(callerPid) in ObserverNode()
H A Drdb_subscriber_manager.cpp121 auto callerPid = IPCSkeleton::GetCallingPid(); in Add() local
122 value.emplace_back(observer, context->callerTokenId, callerTokenId, callerPid); in Add()
124 node.emplace_back(observer, context->callerTokenId, callerTokenId, callerPid); in Add()
167 void RdbSubscriberManager::Delete(uint32_t callerTokenId, uint32_t callerPid) in Delete() argument
169 …rdbCache_.EraseIf([&callerTokenId, &callerPid, this](const auto &key, std::vector<ObserverNode> &v… in Delete()
171 if (it->callerTokenId == callerTokenId && it->callerPid == callerPid) { in Delete()
386 uint32_t firstCallerTokenId, uint32_t callerTokenId, uint32_t callerPid) in ObserverNode() argument
387 …server), firstCallerTokenId(firstCallerTokenId), callerTokenId(callerTokenId), callerPid(callerPid) in ObserverNode()
H A Dpublished_data_subscriber_manager.h47 void Delete(uint32_t callerTokenId, uint32_t callerPid);
61 uint32_t callerTokenId = 0, uint32_t callerPid = 0);
65 uint32_t callerPid; member
H A Drdb_subscriber_manager.h61 void Delete(uint32_t callerTokenId, uint32_t callerPid);
75 uint32_t callerTokenId = 0, uint32_t callerPid = 0);
79 uint32_t callerPid; member
/ohos5.0/base/time/time_service/services/dfx/src/
H A Dtime_sysevent.cpp27 void StatisticReporter(int32_t callerPid, int32_t size, std::shared_ptr<TimerInfo> timer) in StatisticReporter() argument
35 HiSysEventNameSpace::EventType::STATISTIC, "CALLER_PID", callerPid, "CALLER_UID", callerUid, in StatisticReporter()
40 …event Statistic failed! pid %{public}d,uid %{public}d,timer type %{public}d", callerPid, callerUid, in StatisticReporter()
/ohos5.0/foundation/ability/ability_runtime/test/unittest/connection_observer_test/
H A Dconnection_observer_test.cpp145 connectionData.callerPid = TEST_CALLER_PID;
160 EXPECT_EQ(connectionData.callerPid, readedData->callerPid);
184 dlpData.callerPid = TEST_CALLER_PID;
200 EXPECT_EQ(dlpData.callerPid, readedData->callerPid);
/ohos5.0/foundation/ability/ability_runtime/services/appmgr/src/
H A Dapp_mgr_event.cpp111 eventInfo.callerPid = IPCSkeleton::GetCallingPid(); in SendProcessStartEvent()
119 eventInfo.callerPid = GetCallerPid(callerAppRecord); in SendProcessStartEvent()
161 eventInfo.callerPid = IPCSkeleton::GetCallingPid(); in SendProcessStartFailedEvent()
169 eventInfo.callerPid = GetCallerPid(callerAppRecord); in SendProcessStartFailedEvent()
205 …eventInfo.callerPid = hostRecord->GetPriorityObject() != nullptr ? hostRecord->GetPriorityObject()… in SendChildProcessStartFailedEvent()
237 …eventInfo.callerPid = hostRecord->GetPriorityObject() != nullptr ? hostRecord->GetPriorityObject()… in SendRenderProcessStartFailedEvent()
/ohos5.0/base/account/os_account/dfx/hisysevent_adapter/
H A Daccount_hisysevent_adapter.cpp44 void ReportPermissionFail(int32_t callerUid, int32_t callerPid, const std::string& permName) in ReportPermissionFail() argument
50 "CALLER_PID", callerPid, in ReportPermissionFail()
54 ret, callerUid, callerPid, permName.c_str()); in ReportPermissionFail()
58 (void)callerPid; in ReportPermissionFail()
/ohos5.0/foundation/resourceschedule/memmgr/interface/innerkits/include/
H A Dmem_mgr_process_state_info.h47 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()
/ohos5.0/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() argument
76 { "caller_pid", std::to_string(callerPid) }, in ReportAbilityAssociatedStartInfoToRSS()
104 const int32_t pid, const int32_t callerPid) in ReportEventToRSS() argument
113 payload.emplace("callerPid", callerPid); in ReportEventToRSS()
/ohos5.0/foundation/ability/ability_runtime/services/abilitymgr/include/
H A Dconnection_state_manager.h116 void HandleDataAbilityCallerDied(int32_t callerPid);
206 void HandleCallerDied(int32_t callerPid);
207 std::shared_ptr<ConnectionStateItem> RemoveDiedCaller(int32_t callerPid);
/ohos5.0/foundation/multimedia/audio_framework/services/audio_policy/server/src/service/interrupt/
H A Daudio_interrupt_service.cpp181 AddActiveInterruptToSession(callerPid); in ActivateAudioSession()
191 if (!sessionService_->IsAudioSessionActivated(callerPid)) { in AddActiveInterruptToSession()
224 RemovePlaceholderInterruptForSession(callerPid); in DeactivateAudioSession()
234 if (sessionService_->IsAudioSessionActivated(callerPid)) { in RemovePlaceholderInterruptForSession()
250 placeholder.sessionId, callerPid); in RemovePlaceholderInterruptForSession()
263 return sessionService_->IsAudioSessionActivated(callerPid); in IsAudioSessionActivated()
481 int32_t callerPid = IPCSkeleton::GetCallingPid(); in SetAudioManagerInterruptCallback() local
484 handler_->AddExternInterruptCbsMap(callerPid, callback); in SetAudioManagerInterruptCallback()
487 AUDIO_DEBUG_LOG("for client id %{public}d done", callerPid); in SetAudioManagerInterruptCallback()
494 int32_t callerPid = IPCSkeleton::GetCallingPid(); in UnsetAudioManagerInterruptCallback() local
[all …]
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/data_share/dfx/
H A Dhiview_adapter.h28 uint64_t callerPid = 0; member
34 : callerTokenId(tokenId), callerUid(uid), callerPid(pid), costTime(time), funcId(id) in CallerInfo()
/ohos5.0/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);
/ohos5.0/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()

12345