/base/account/os_account/services/accountmgr/src/appaccount/ |
D | app_account_manager_service.cpp | 52 uint32_t appIndex; in AddAccount() local 53 ErrCode ret = GetCallingInfo(callingUid, bundleName, appIndex); in AddAccount() 57 return innerManager_->AddAccount(name, extraInfo, callingUid, bundleName, appIndex); in AddAccount() 65 ErrCode result = GetCallingInfo(request.callerUid, request.callerBundleName, request.appIndex); in AddAccountImplicitly() 84 uint32_t appIndex; in CreateAccount() local 85 ErrCode ret = GetCallingInfo(callingUid, bundleName, appIndex); in CreateAccount() 89 return innerManager_->CreateAccount(name, options, callingUid, bundleName, appIndex); in CreateAccount() 97 ErrCode result = GetCallingInfo(request.callerUid, request.callerBundleName, request.appIndex); in CreateAccountImplicitly() 114 uint32_t appIndex; in DeleteAccount() local 115 ErrCode ret = GetCallingInfo(callingUid, bundleName, appIndex); in DeleteAccount() [all …]
|
D | inner_app_account_manager.cpp | 39 const uid_t &uid, const std::string &bundleName, const uint32_t &appIndex) in AddAccount() argument 42 appAccountInfo.SetAppIndex(appIndex); in AddAccount() 52 const uid_t &uid, const std::string &bundleName, const uint32_t &appIndex) in CreateAccount() argument 55 appAccountInfo.SetAppIndex(appIndex); in CreateAccount() 65 …const std::string &name, const uid_t &uid, const std::string &bundleName, const uint32_t &appIndex) in DeleteAccount() argument 68 appAccountInfo.SetAppIndex(appIndex); in DeleteAccount() 77 const uid_t &uid, const std::string &bundleName, const uint32_t &appIndex) in GetAccountExtraInfo() argument 79 return controlManager_.GetAccountExtraInfo(name, extraInfo, uid, bundleName, appIndex); in GetAccountExtraInfo() 83 const uid_t &uid, const std::string &bundleName, const uint32_t &appIndex) in SetAccountExtraInfo() argument 86 appAccountInfo.SetAppIndex(appIndex); in SetAccountExtraInfo() [all …]
|
D | app_account_common_event_observer.cpp | 100 int32_t appIndex = 0; in DealWithRemoveEvent() local 102 appIndex = want.GetIntParam(AppExecFwk::Constants::SANDBOX_APP_INDEX, -1); in DealWithRemoveEvent() 103 if (appIndex < 0) { in DealWithRemoveEvent() 104 ACCOUNT_LOGW("appIndex = %{public}d is invalid.", appIndex); in DealWithRemoveEvent() 109 uid, bundleName.c_str(), appIndex); in DealWithRemoveEvent() 110 callback_.OnPackageRemoved(uid, bundleName, appIndex); in DealWithRemoveEvent()
|
D | app_account_subscribe_manager.cpp | 46 const uid_t &uid, const std::string &bundleName, const uint32_t &appIndex) in SubscribeAppAccount() argument 66 ErrCode result = CheckAppAccess(subscribeInfoPtr, uid, bundleName, appIndex); in SubscribeAppAccount() 81 subscribeRecordPtr->appIndex = appIndex; in SubscribeAppAccount() 139 const uid_t &uid, const std::string &bundleName, const uint32_t &appIndex) in CheckAppAccess() argument 256 uint32_t appIndex = appAccountInfo.GetAppIndex(); in PublishAccount() local 267 eventRecordPtr->appIndex = appIndex; in PublishAccount() 290 accessibleAccounts, receiver->bundleName, dataStoragePtr, record->appIndex); in OnAccountsChanged()
|
D | app_account_control_manager.cpp | 119 const uid_t &uid, const std::string &bundleName, const uint32_t &appIndex) in GetAccountExtraInfo() argument 122 appAccountInfo.SetAppIndex(appIndex); in GetAccountExtraInfo() 228 appAccountInfo.SetAppIndex(appAccountCallingInfo.appIndex); in CheckAppAccess() 238 bool &syncEnable, const uid_t &uid, const std::string &bundleName, const uint32_t &appIndex) in CheckAppAccountSyncEnable() argument 241 appAccountInfo.SetAppIndex(appIndex); in CheckAppAccountSyncEnable() 289 std::string &value, const uid_t &uid, const uint32_t &appIndex) in GetAssociatedDataFromStorage() argument 297 appAccountInfo.SetAppIndex(appIndex); in GetAssociatedDataFromStorage() 359 appAccountInfo.SetAppIndex(appAccountCallingInfo.appIndex); in SetAssociatedData() 387 appAccountInfo.SetAppIndex(appAccountCallingInfo.appIndex); in GetAccountCredential() 411 appAccountInfo.SetAppIndex(appAccountCallingInfo.appIndex); in SetAccountCredential() [all …]
|
/base/account/os_account/services/accountmgr/include/appaccount/ |
D | app_account_event_record.h | 29 uint32_t appIndex; member 31 AppAccountSubscribeRecord() : subscribeInfoPtr(nullptr), eventListener(nullptr), appIndex(0) in AppAccountSubscribeRecord() 43 uint32_t appIndex; member 45 AppAccountEventRecord() : info(nullptr), uid(0), appIndex(0) in AppAccountEventRecord()
|
D | inner_app_account_manager.h | 33 const uid_t &uid, const std::string &bundleName, const uint32_t &appIndex); 36 const uid_t &uid, const std::string &bundleName, const uint32_t &appIndex); 39 …onst std::string &name, const uid_t &uid, const std::string &bundleName, const uint32_t &appIndex); 42 const uid_t &uid, const std::string &bundleName, const uint32_t &appIndex); 44 const uid_t &uid, const std::string &bundleName, const uint32_t &appIndex); 54 const uid_t &uid, const std::string &bundleName, const uint32_t &appIndex); 56 const uid_t &uid, const std::string &bundleName, const uint32_t &appIndex); 68 const uid_t &uid, const std::string &bundleName, const uint32_t &appIndex); 87 const std::string &bundleName, const uint32_t &appIndex); 89 const uid_t &uid, const std::string &bundleName, const uint32_t &appIndex); [all …]
|
D | app_account_control_manager.h | 47 const uid_t &uid, const std::string &bundleName, const uint32_t &appIndex); 61 const uid_t &uid, const std::string &bundleName, const uint32_t &appIndex); 88 const std::string &bundleName, const uint32_t &appIndex); 90 const uid_t &uid, const std::string &bundleName, const uint32_t &appIndex); 94 const uid_t &uid, const std::string &bundleName, const uint32_t &appIndex); 96 …rrCode OnPackageRemoved(const uid_t &uid, const std::string &bundleName, const uint32_t &appIndex); 103 const uint32_t &appIndex); 119 const uid_t &uid, const uint32_t &appIndex);
|
D | app_account_subscribe_manager.h | 32 const std::string &bundleName, const uint32_t &appIndex); 49 const std::string &bundleName, const uint32_t &appIndex);
|
/base/security/dlp_permission_service/interfaces/inner_api/dlp_permission/test/unittest/src/ |
D | dlp_permission_kit_test.cpp | 131 static bool TestGetAppUid(const std::string& bundleName, int32_t appIndex, int32_t userId, int32_t&… in TestGetAppUid() argument 139 if (appIndex > 0) { in TestGetAppUid() 140 if (bundleMgrClient.GetSandboxBundleInfo(bundleName, appIndex, userId, info) != DLP_OK) { in TestGetAppUid() 166 ASSERT_TRUE(sandboxInfo.appIndex != 0); in TestInstallDlpSandbox() 171 static void TestUninstallDlpSandbox(const std::string& bundleName, int32_t appIndex, int32_t userId) in TestUninstallDlpSandbox() argument 177 ASSERT_EQ(DLP_OK, DlpPermissionKit::UninstallDlpSandbox(bundleName, appIndex, userId)); in TestUninstallDlpSandbox() 182 static void TestMockApp(const std::string& bundleName, int32_t appIndex, int32_t userId) in TestMockApp() argument 185 ASSERT_TRUE(TestGetTokenId(userId, bundleName, appIndex, tokenId)); in TestMockApp() 188 ASSERT_TRUE(TestGetAppUid(bundleName, appIndex, userId, uid)); in TestMockApp() 323 ASSERT_TRUE(sandboxInfo.appIndex != 0); [all …]
|
/base/security/dlp_permission_service/services/dlp_permission/sa/adapt/ |
D | sandbox_json_manager.cpp | 70 int32_t SandboxJsonManager::AddSandboxInfo(const int32_t& appIndex, const uint32_t& tokenId, in AddSandboxInfo() argument 74 if (InsertSandboxInfo(docUriSet, tokenId, bundleName, appIndex, userId)) { in AddSandboxInfo() 194 …_t SandboxJsonManager::RemoveRetentionState(const std::string& bundleName, const int32_t& appIndex) in RemoveRetentionState() argument 205 if (appIndex != -1 && iter->appIndex != appIndex) { in RemoveRetentionState() 248 info.appIndex_ = iter->appIndex; in GetRetentionSandboxList() 270 … int32_t res = bundleMgrClient.UninstallSandboxApp(iter->bundleName, iter->appIndex, iter->userId); in ClearUnreservedSandbox() 273 iter->bundleName.c_str(), iter->appIndex, res); in ClearUnreservedSandbox() 278 iter->bundleName.c_str(), iter->appIndex, res); in ClearUnreservedSandbox() 336 …t32_t tokenId = AccessToken::AccessTokenKit::GetHapTokenID(userId, info.bundleName, info.appIndex); in CheckReInstall() 340 …OR(LABEL, "GetHapTokenID not equal %{public}s,%{public}d", info.bundleName.c_str(), info.appIndex); in CheckReInstall() [all …]
|
D | app_state_observer.cpp | 43 if (appInfo.appIndex <= 0) { // never uninstall original hap in UninstallDlpSandbox() 46 auto sandboxBundleName = appInfo.bundleName + std::to_string(appInfo.appIndex); in UninstallDlpSandbox() 49 bundleMgrClient.UninstallSandboxApp(appInfo.bundleName, appInfo.appIndex, appInfo.userId); in UninstallDlpSandbox() 69 appInfo.bundleName.c_str(), appInfo.appIndex, appInfo.pid); in UninstallAllDlpSandboxForUser() 135 bool AppStateObserver::CheckSandboxInfo(const std::string& bundleName, int32_t appIndex, int32_t us… in CheckSandboxInfo() argument 139 …if (iter.second.bundleName == bundleName && iter.second.appIndex == appIndex && iter.second.userId… in CheckSandboxInfo() 151 auto sandboxBundleName = iter->second.bundleName + std::to_string(iter->second.appIndex); in EraseSandboxInfo() 160 auto sandboxBundleName = appInfo.bundleName + std::to_string(appInfo.appIndex); in AddSandboxInfo() 182 …RetentionFileManager::GetInstance().AddSandboxInfo(appInfo.appIndex, appInfo.tokenId, appInfo.bund… in AddDlpSandboxInfo() 232 appInfo.bundleName.c_str(), appInfo.appIndex, appInfo.pid); in OnProcessDied() [all …]
|
D | sandbox_json_manager.h | 37 int32_t appIndex = -1; member 49 …int32_t AddSandboxInfo(const int32_t& appIndex, const uint32_t& tokenId, const std::string& bundle… 55 int32_t RemoveRetentionState(const std::string& bundleName, const int32_t& appIndex); 69 int32_t appIndex, int32_t userId);
|
D | retention_file_manager.h | 37 …int32_t AddSandboxInfo(const int32_t& appIndex, const uint32_t& tokenId, const std::string& bundle… 42 int32_t RemoveRetentionState(const std::string& bundleName, const int32_t& appIndex);
|
D | retention_file_manager.cpp | 109 int32_t RetentionFileManager::AddSandboxInfo(const int32_t& appIndex, const uint32_t& tokenId, in AddSandboxInfo() argument 116 int32_t res = sandboxJsonManager_->AddSandboxInfo(appIndex, tokenId, bundleName, userId); in AddSandboxInfo() 150 … RetentionFileManager::RemoveRetentionState(const std::string& bundleName, const int32_t& appIndex) in RemoveRetentionState() argument 156 int32_t res = sandboxJsonManager_->RemoveRetentionState(bundleName, appIndex); in RemoveRetentionState()
|
/base/account/os_account/services/accountmgr/test/mock/app_account/ |
D | mock_inner_app_account_manager.h | 30 …ring &name, const std::string &extraInfo, const std::string &bundleName, const uint32_t &appIndex); 31 …de DeleteAccount(const std::string &name, const std::string &bundleName, const uint32_t &appIndex); 34 const std::string &bundleName, const uint32_t &appIndex);
|
D | mock_inner_app_account_manager.cpp | 39 …tring &name, const std::string &extraInfo, const std::string &bundleName, const uint32_t &appIndex) in AddAccount() argument 58 const std::string &name, const std::string &bundleName, const uint32_t &appIndex) in DeleteAccount() argument 72 … const sptr<IRemoteObject> &eventListener, const std::string &bundleName, const uint32_t &appIndex) in SubscribeAppAccount() argument
|
D | mock_app_account_subscribe_manager.h | 27 …const sptr<IRemoteObject> &eventListener, const std::string &bundleName, const uint32_t &appIndex);
|
/base/security/dlp_permission_service/services/dlp_permission/sa/sa_main/ |
D | dlp_permission_service.cpp | 182 …if (bundleMgrClient.GetSandboxBundleInfo(sandboxInfo.bundleName, sandboxInfo.appIndex, sandboxInfo… in InsertDlpSandboxInfo() 192 sandboxInfo.appIndex); in InsertDlpSandboxInfo() 212 int32_t appIndex = -1; in InstallDlpSandbox() local 216 appIndex = iter->appIndex_; in InstallDlpSandbox() 224 …32_t bundleClientRes = bundleMgrClient.InstallSandboxApp(bundleName, permForBMS, userId, appIndex); in InstallDlpSandbox() 236 dlpSandboxInfo.appIndex = appIndex; in InstallDlpSandbox() 244 sandboxInfo.appIndex = appIndex; in InstallDlpSandbox() 250 uint32_t DlpPermissionService::DeleteDlpSandboxInfo(const std::string& bundleName, int32_t appIndex… in DeleteDlpSandboxInfo() argument 259 int32_t result = bundleMgrClient.GetSandboxBundleInfo(bundleName, appIndex, userId, info); in DeleteDlpSandboxInfo() 268 …ionService::UninstallDlpSandboxApp(const std::string& bundleName, int32_t appIndex, int32_t userId) in UninstallDlpSandboxApp() argument [all …]
|
D | dlp_permission_service.h | 59 …int32_t UninstallDlpSandbox(const std::string& bundleName, int32_t appIndex, int32_t userId) overr… 86 uint32_t DeleteDlpSandboxInfo(const std::string& bundleName, int32_t appIndex, int32_t userId); 89 int32_t UninstallDlpSandboxApp(const std::string& bundleName, int32_t appIndex, int32_t userId);
|
/base/security/dlp_permission_service/test/fuzztest/dlp_permission/uninstalldlpsandbox_fuzzer/ |
D | uninstalldlpsandbox_fuzzer.cpp | 34 int32_t appIndex = static_cast<int32_t>(size); in FuzzTest() local 35 DlpPermissionKit::UninstallDlpSandbox(bundleName, appIndex, userId); in FuzzTest()
|
/base/security/dlp_permission_service/frameworks/dlp_permission/src/ |
D | dlp_sandbox_callback_info_parcel.cpp | 30 if (!(out.WriteInt32(this->changeInfo.appIndex))) { in Marshalling() 48 if (!(in.ReadInt32(permissionStateParcel->changeInfo.appIndex))) { in Unmarshalling()
|
/base/security/dlp_permission_service/test/fuzztest/dlp_permission/uninstalldlpsandboxstub_fuzzer/ |
D | uninstalldlpsandboxstub_fuzzer.cpp | 34 int32_t appIndex = static_cast<int32_t>(size); in FuzzTest() local 43 if (!datas.WriteInt32(appIndex)) { in FuzzTest()
|
/base/account/os_account/services/accountmgr/test/moduletest/app_account/ |
D | at_not_mock_app_account_manager_service_module_test.cpp | 86 uint32_t appIndex; variable 87 int result = g_accountManagerService->GetCallingInfo(callingUid, bundleName, appIndex);
|
/base/security/dlp_permission_service/interfaces/inner_api/dlp_permission/include/ |
D | dlp_sandbox_callback_info.h | 25 int32_t appIndex; member
|