/foundation/ability/ability_runtime/test/unittest/resident_process_manager_test/ |
H A D | resident_process_manager_test.cpp | 95 std::string callerName; in HWTEST_F() local 96 EXPECT_EQ(manager->SetResidentProcessEnabled(bundleName, callerName, false), INVALID_PARAMETERS_ERR); in HWTEST_F() 113 std::string callerName = "resident.process.manager.test"; in HWTEST_F() local 114 EXPECT_EQ(manager->SetResidentProcessEnabled(bundleName, callerName, false), ERR_NO_RESIDENT_PERMISSION); in HWTEST_F() 131 std::string callerName = "resident.process.manager.test"; in HWTEST_F() local 132 auto residentId = manager->PutResidentAbility(bundleName, callerName, 0); in HWTEST_F() 134 EXPECT_TRUE(manager->IsResidentAbility(bundleName, callerName, 0)); in HWTEST_F() 153 std::string callerName = "resident.process.manager.test"; in HWTEST_F() local 155 manager->AddFailedResidentAbility(bundleName, callerName, 0); in HWTEST_F() 158 manager->AddFailedResidentAbility(bundleName, callerName, in HWTEST_F() [all...] |
/foundation/resourceschedule/memmgr/services/memmgrservice/src/event/ |
H A D | extension_connection_observer.cpp | 31 "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() 63 request.callerBundleName = data.callerName; 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() 83 request.callerBundleName = data.callerName; in OnDlpAbilityClosed() 89 CallerRequest({data.callerPid, data.callerUid, data.callerName}, in OnDlpAbilityClosed() [all...] |
/foundation/filemanagement/app_file_service/services/backup_sa/src/module_ipc/ |
H A D | sub_service.cpp | 131 string callerName = VerifyCallerAndGetCallerName(); in AppFileReady() local 136 fd = session_->OnBundleExtManageInfo(callerName, move(fd)); in AppFileReady() 138 session_->GetServiceReverseProxy()->BackupOnFileReady(callerName, fileName, move(fd), errCode); in AppFileReady() 140 callerName, GetAnonyPath(fileName) }; in AppFileReady() 142 if (session_->OnBundleFileReady(callerName, fileName)) { in AppFileReady() 143 auto backUpConnection = session_->GetExtConnection(callerName); in AppFileReady() 156 session_->StopFwkTimer(callerName); in AppFileReady() 157 session_->StopExtTimer(callerName); in AppFileReady() 159 session_->GetServiceReverseProxy()->BackupOnBundleFinished(BError(BError::Codes::OK), callerName); in AppFileReady() local 162 ClearSessionAndSchedInfo(callerName); in AppFileReady() 185 string callerName = VerifyCallerAndGetCallerName(); AppDone() local [all...] |
H A D | service_incremental.cpp | 451 string callerName = VerifyCallerAndGetCallerName(); in AppIncrementalFileReady() local 453 session_->GetServiceReverseProxy()->IncrementalRestoreOnFileReady(callerName, fileName, move(fd), in AppIncrementalFileReady() 458 fd = session_->OnBundleExtManageInfo(callerName, move(fd)); in AppIncrementalFileReady() 461 session_->GetServiceReverseProxy()->IncrementalBackupOnFileReady(callerName, fileName, move(fd), in AppIncrementalFileReady() 464 callerName, GetAnonyPath(fileName) }; in AppIncrementalFileReady() 466 if (session_->OnBundleFileReady(callerName, fileName)) { in AppIncrementalFileReady() 467 auto backUpConnection = session_->GetExtConnection(callerName); in AppIncrementalFileReady() 475 session_->StopFwkTimer(callerName); in AppIncrementalFileReady() 476 session_->StopExtTimer(callerName); in AppIncrementalFileReady() 480 callerName); in AppIncrementalFileReady() local 506 string callerName = VerifyCallerAndGetCallerName(); AppIncrementalDone() local 622 NotifyCallerCurAppIncrementDone(ErrCode errCode, const std::string &callerName) NotifyCallerCurAppIncrementDone() argument [all...] |
H A D | service.cpp | 763 string callerName = ""; in ServiceResultReport() local 766 callerName = VerifyCallerAndGetCallerName(); in ServiceResultReport() 768 session_->GetServiceReverseProxy()->RestoreOnResultReport(restoreRetInfo, callerName, errCode); in ServiceResultReport() 769 NotifyCloneBundleFinish(callerName, sennario); in ServiceResultReport() 771 session_->GetServiceReverseProxy()->IncrementalRestoreOnResultReport(restoreRetInfo, callerName, errCode); in ServiceResultReport() 772 NotifyCloneBundleFinish(callerName, sennario); in ServiceResultReport() 774 session_->GetServiceReverseProxy()->BackupOnResultReport(restoreRetInfo, callerName); in ServiceResultReport() 776 session_->GetServiceReverseProxy()->IncrementalBackupOnResultReport(restoreRetInfo, callerName); in ServiceResultReport() 780 NotifyCloneBundleFinish(callerName, sennario); in ServiceResultReport() 783 NotifyCloneBundleFinish(callerName, sennari in ServiceResultReport() [all...] |
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/app_control/ |
H A D | app_control_manager_host_impl.cpp | 379 std::string callerName; in DeleteDisposedStatus() local 380 GetCallerByUid(uid, callerName); in DeleteDisposedStatus() 384 ret = appControlManager_->DeleteDisposedRule(callerName, appId, Constants::MAIN_APP_INDEX, userId); in DeleteDisposedStatus() 443 void AppControlManagerHostImpl::GetCallerByUid(const int32_t uid, std::string &callerName) in GetCallerByUid() argument 447 callerName = item->second; in GetCallerByUid() 450 auto ret = dataMgr_->GetNameForUid(uid, callerName); in GetCallerByUid() 453 callerName = std::to_string(uid); in GetCallerByUid() 471 std::string callerName; in GetDisposedRule() local 472 GetCallerByUid(uid, callerName); in GetDisposedRule() 480 auto ret = appControlManager_->GetDisposedRule(callerName, appI in GetDisposedRule() 500 std::string callerName; SetDisposedRule() local 553 std::string callerName; GetDisposedRuleForCloneApp() local 586 std::string callerName; SetDisposedRuleForCloneApp() local 635 std::string callerName; DeleteDisposedRuleForCloneApp() local [all...] |
H A D | app_control_manager.cpp | 342 ErrCode AppControlManager::SetDisposedRule(const std::string &callerName, const std::string &appId, in SetDisposedRule() argument 349 auto ret = appControlManagerDb_->SetDisposedRule(callerName, appId, rule, appIndex, userId); in SetDisposedRule() 363 callerName.c_str(), userId, appIndex); in SetDisposedRule() 369 const std::string &callerName, const std::string &appId, DisposedRule& rule, int32_t appIndex, int32_t userId) in GetDisposedRule() 371 auto ret = appControlManagerDb_->GetDisposedRule(callerName, appId, rule, appIndex, userId); in GetDisposedRule() 380 const std::string &callerName, const std::string &appId, int32_t appIndex, int32_t userId) in DeleteDisposedRule() 382 auto ret = appControlManagerDb_->DeleteDisposedRule(callerName, appId, appIndex, userId); in DeleteDisposedRule() 368 GetDisposedRule( const std::string &callerName, const std::string &appId, DisposedRule& rule, int32_t appIndex, int32_t userId) GetDisposedRule() argument 379 DeleteDisposedRule( const std::string &callerName, const std::string &appId, int32_t appIndex, int32_t userId) DeleteDisposedRule() argument
|
/foundation/ability/ability_runtime/interfaces/inner_api/connectionobs_manager/src/ |
H A D | dlp_state_data.cpp | 53 if (!parcel.WriteString16(Str8ToStr16(callerName))) { in Marshalling() 101 callerName = Str16ToStr8(strValue); in ReadFromParcel()
|
H A D | connection_data.cpp | 58 if (!parcel.WriteString16(Str8ToStr16(callerName))) { in Marshalling() 111 callerName = Str16ToStr8(strValue); in ReadFromParcel()
|
/foundation/ability/ability_runtime/test/unittest/connection_observer_test/ |
H A D | connection_observer_test.cpp | 147 connectionData.callerName = TEST_CALLER_NAME; in HWTEST_F() 162 EXPECT_EQ(connectionData.callerName, readedData->callerName); in HWTEST_F() 186 dlpData.callerName = TEST_CALLER_NAME; in HWTEST_F() 201 EXPECT_EQ(dlpData.callerName, readedData->callerName); in HWTEST_F()
|
/foundation/ability/ability_runtime/services/abilitymgr/include/ |
H A D | connection_state_item.h | 38 std::string callerName; member 56 ConnectionStateItem(int32_t callerUid, int32_t callerPid, const std::string &callerName);
|
/foundation/resourceschedule/resource_schedule_service/ressched/sched_controller/observer/src/ |
H A D | connection_subscriber.cpp | 34 payload["callerName"] = data.callerName; in MarshallingConnectionData() 64 payload["callerName"] = data.callerName; in MarshallingDlpStateData()
|
/foundation/bundlemanager/ecological_rule_manager/services/manager/src/ |
H A D | ecologic_rule_mgr_service.cpp | 87 std::string callerName = callerInfo.packageName; in IsSupportPublishForm() local 88 LOG_DEBUG("IsSupportPublishForm callerName = %s, callerType = %d", callerName.c_str(), callerInfo.callerAppType); in IsSupportPublishForm()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/app_control/ |
H A D | app_control_manager.h | 77 ErrCode SetDisposedRule(const std::string &callerName, const std::string &appId, 80 ErrCode GetDisposedRule(const std::string &callerName, const std::string &appId, 83 ErrCode DeleteDisposedRule(const std::string &callerName, const std::string &appId,
|
H A D | app_control_manager_host_impl.h | 95 void GetCallerByUid(const int32_t uid, std::string &callerName);
|
/foundation/ability/ability_runtime/frameworks/native/appkit/ability_runtime/ |
H A D | service_extension_context.cpp | 127 std::string callerName = ""; in StartAbilityWithAccount() local 129 callerName = GetAbilityInfo()->name; in StartAbilityWithAccount() 132 accountId, want.GetElement().GetURI().c_str(), callerName.c_str()); in StartAbilityWithAccount() 134 if (callerName == "com.ohos.callui.ServiceAbility") { in StartAbilityWithAccount()
|
/foundation/ability/ability_runtime/interfaces/inner_api/connectionobs_manager/include/ |
H A D | dlp_state_data.h | 53 std::string callerName; member
|
H A D | connection_data.h | 55 std::string callerName; member
|
/foundation/ability/ability_runtime/services/abilitymgr/src/ |
H A D | connection_state_item.cpp | 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() 471 data.callerName = callerName_; in GenerateConnectionData() 482 data.callerName = callerName_; in GenerateConnectionData()
|
H A D | dlp_state_item.cpp | 103 dlpData.callerName = DLP_BUNDLE_NAME; in GenerateDlpStateData()
|
/foundation/ability/ability_runtime/services/abilitymgr/include/resident_process/ |
H A D | resident_process_manager.h | 64 * @param callerName, The name of the caller, usually the system application.
68 int32_t SetResidentProcessEnabled(const std::string &bundleName, const std::string &callerName, bool updateEnable);
|
/foundation/ability/ability_runtime/services/abilitymgr/include/rdb/ |
H A D | ability_resident_process_rdb.h | 78 int32_t VerifyConfigurationPermissions(const std::string &bundleName, const std::string &callerName);
|
/foundation/ability/ability_runtime/services/abilitymgr/src/resident_process/ |
H A D | resident_process_manager.cpp | 134 const std::string &bundleName, const std::string &callerName, bool updateEnable) in SetResidentProcessEnabled() 137 if (bundleName.empty() || callerName.empty()) { in SetResidentProcessEnabled() 142 auto rdbResult = rdb.VerifyConfigurationPermissions(bundleName, callerName); in SetResidentProcessEnabled() 133 SetResidentProcessEnabled( const std::string &bundleName, const std::string &callerName, bool updateEnable) SetResidentProcessEnabled() argument
|
/foundation/ability/ability_runtime/test/unittest/connection_state_manager_test/ |
H A D | connection_state_manager_test.cpp | 657 std::string callerName = "callerName"; in HWTEST_F() local 658 manager_->connectionStates_[0] = std::make_shared<ConnectionStateItem>(callerUid, callerPid, callerName); in HWTEST_F()
|
/foundation/filemanagement/app_file_service/services/backup_sa/include/module_ipc/ |
H A D | service.h | 460 * @param callerName 业务调用方 463 void NotifyCallerCurAppDone(ErrCode errCode, const std::string &callerName); 469 * @param callerName 业务调用方 472 void NotifyCallerCurAppIncrementDone(ErrCode errCode, const std::string &callerName);
|