/test/xts/acts/bundlemanager/bundle_standard/bundlemanager/actsbmsaccesstokentest/src/main/js/test/ |
D | ActsBmsAccessTokenTest.test.js | 64 .then(bundleInfo => { 65 expect(bundleInfo.name).assertEqual(BUNDLE_NAME3); 66 expect(bundleInfo.reqPermissions.length).assertEqual(2); 67 … expect(bundleInfo.reqPermissions[0]).assertEqual("ohos.permission.DISTRIBUTED_DATASYNC"); 68 … expect(bundleInfo.reqPermissions[1]).assertEqual("ohos.permission.KEEP_BACKGROUND_RUNNING"); 69 expect(bundleInfo.reqPermissionStates.length).assertEqual(2); 70 … expect(bundleInfo.reqPermissionStates[0]).assertEqual(bundle.GrantStatus.PERMISSION_DENIED); 71 … expect(bundleInfo.reqPermissionStates[1]).assertEqual(bundle.GrantStatus.PERMISSION_GRANTED); 86 .then(bundleInfo => { 87 expect(bundleInfo.name).assertEqual(BUNDLE_NAME2); [all …]
|
/test/xts/acts/appexecfwk_lite/appexecfwk_hal/src/ |
D | bundle_mgr_test.c | 102 BundleInfo bundleInfo = { 0 }; variable 103 int result = memset_s(&bundleInfo, sizeof(bundleInfo), 0, sizeof(bundleInfo)); 107 bundleInfo.bundleName = (char *)(AdapterMalloc(len + 1)); 108 TEST_ASSERT_NOT_NULL(bundleInfo.bundleName); 109 errno_t err = strncpy_s(bundleInfo.bundleName, len + 1, name, len); 111 TEST_ASSERT_EQUAL_STRING(bundleInfo.bundleName, name); 112 ClearBundleInfo(&bundleInfo); 113 TEST_ASSERT_EQUAL_STRING(bundleInfo.bundleName, NULL); 125 BundleInfo bundleInfo; variable 126 int result = memset_s(&bundleInfo, sizeof(bundleInfo), 0, sizeof(bundleInfo)); [all …]
|
/test/xts/acts/bundlemanager/bundle_standard/bundlemanager/actsbmsatomicserviceetstest/bmsatomicserviceshared/entry/src/main/ets/test/ |
D | GetSecondModule.test.ets | 28 let bundleInfo = await bundle.getBundleInfoForSelf( 36 let applicationInfoTest: bundle.ApplicationInfo = bundleInfo.appInfo; 38 let metadataTest: bundle.Metadata = bundleInfo.hapModulesInfo[0].metadata[0]; 40 let bundleInfoTest: bundle.BundleInfo = bundleInfo; 42 let usedSceneTest: bundle.UsedScene = bundleInfo.reqPermissionDetails[0].usedScene 44 let reqPermissionDetailsTest: bundle.ReqPermissionDetail = bundleInfo.reqPermissionDetails[0] 46 let signatureInfoTest: bundle.SignatureInfo = bundleInfo.signatureInfo; 48 let hapModuleInfoTest: bundle.HapModuleInfo = bundleInfo.hapModulesInfo[0]; 50 let abilityInfoTest: bundle.AbilityInfo = bundleInfo.hapModulesInfo[0].abilitiesInfo[0]; 52 … let windowSizeTest: bundle.WindowSize = bundleInfo.hapModulesInfo[0].abilitiesInfo[0].windowSize; [all …]
|
/test/xts/acts/bundlemanager/bundle_standard/bundlemanager/actsbmsatomicserviceetstest/bmsatomicserviceone/entry/src/main/ets/test/ |
D | GetSecondModule.test.ets | 28 let bundleInfo = await bundle.getBundleInfoForSelf( 36 let applicationInfoTest: bundle.ApplicationInfo = bundleInfo.appInfo; 38 let metadataTest: bundle.Metadata = bundleInfo.hapModulesInfo[0].metadata[0]; 40 let bundleInfoTest: bundle.BundleInfo = bundleInfo; 42 let usedSceneTest: bundle.UsedScene = bundleInfo.reqPermissionDetails[0].usedScene 44 let reqPermissionDetailsTest: bundle.ReqPermissionDetail = bundleInfo.reqPermissionDetails[0] 46 let signatureInfoTest: bundle.SignatureInfo = bundleInfo.signatureInfo; 48 let hapModuleInfoTest: bundle.HapModuleInfo = bundleInfo.hapModulesInfo[0]; 50 let abilityInfoTest: bundle.AbilityInfo = bundleInfo.hapModulesInfo[0].abilitiesInfo[0]; 52 … let windowSizeTest: bundle.WindowSize = bundleInfo.hapModulesInfo[0].abilitiesInfo[0].windowSize; [all …]
|
/test/xts/acts/bundlemanager/bundle_standard/bundlemanager/actsbundlemanagerstagetest/entry/src/main/ets/test/ |
D | GetSecondModule.test.ets | 28 let bundleInfo = await bundle.getBundleInfoForSelf( 36 let applicationInfoTest: bundle.ApplicationInfo = bundleInfo.appInfo; 38 let metadataTest: bundle.Metadata = bundleInfo.hapModulesInfo[0].metadata[0]; 40 let bundleInfoTest: bundle.BundleInfo = bundleInfo; 42 let usedSceneTest: bundle.UsedScene = bundleInfo.reqPermissionDetails[0].usedScene 44 let reqPermissionDetailsTest: bundle.ReqPermissionDetail = bundleInfo.reqPermissionDetails[0] 46 let signatureInfoTest: bundle.SignatureInfo = bundleInfo.signatureInfo; 48 let hapModuleInfoTest: bundle.HapModuleInfo = bundleInfo.hapModulesInfo[0]; 50 let abilityInfoTest: bundle.AbilityInfo = bundleInfo.hapModulesInfo[0].abilitiesInfo[0]; 52 … let windowSizeTest: bundle.WindowSize = bundleInfo.hapModulesInfo[0].abilitiesInfo[0].windowSize; [all …]
|
D | GetBundleInfoForSelf.test.ets | 1089 let bundleInfo = bundle.getBundleInfoForSelfSync(null); 1106 let bundleInfo = bundle.getBundleInfoForSelfSync(undefined);
|
/test/xts/acts/appexecfwk_lite/appexecfwk_posix/src/ |
D | BundleMgrTest.cpp | 121 BundleInfo bundleInfo; variable 122 int32_t result = memset_s(&bundleInfo, sizeof(bundleInfo), 0, sizeof(bundleInfo)); 124 bundleInfo.bundleName = (char*)"com.openharmony.testjsdemo"; 125 printf("abilityInfo.bundleName is %s \n", bundleInfo.bundleName); 127 printf("abilityInfo.bundleName afterclear is %s \n", bundleInfo.bundleName); 128 EXPECT_STREQ(bundleInfo.bundleName, "com.openharmony.testjsdemo"); 634 BundleInfo bundleInfo; variable 635 int32_t result = memset_s(&bundleInfo, sizeof(bundleInfo), 0, sizeof(bundleInfo)); 641 g_errorCode = GetBundleInfo(bundleName, flags, &bundleInfo); 643 EXPECT_STREQ(bundleInfo.bundleName, bundleName); [all …]
|
/test/xts/acts/security/certificate_manager/certificate_manager_notsystem_app/src/main/ets/test/utils/common/ |
D | common_function.ets | 22 let bundleInfo: bundleManager.BundleInfo; 23 …bundleInfo = await bundleManager.getBundleInfoForSelf(bundleManager.BundleFlag.GET_BUNDLE_INFO_WIT… 24 console.warn("grant --->get bundleInfo is " + JSON.stringify(bundleInfo)); 25 let clientAppUid = bundleInfo.appInfo.uid;
|
/test/xts/acts/security/certificate_manager/certificate_manager_permission/src/main/ets/test/utils/common/ |
D | common_function.ets | 23 let bundleInfo: bundleManager.BundleInfo; 24 …bundleInfo = await bundleManager.getBundleInfoForSelf(bundleManager.BundleFlag.GET_BUNDLE_INFO_WIT… 25 console.warn("grant --->get bundleInfo is " + JSON.stringify(bundleInfo)); 26 let clientAppUid = bundleInfo.appInfo.uid;
|
/test/xts/acts/security/certificate_manager/certificate_manager_func/src/main/ets/test/utils/common/ |
D | common_function.ets | 23 let bundleInfo: bundleManager.BundleInfo; 24 …bundleInfo = await bundleManager.getBundleInfoForSelf(bundleManager.BundleFlag.GET_BUNDLE_INFO_WIT… 25 console.warn("grant --->get bundleInfo is " + JSON.stringify(bundleInfo)); 26 let clientAppUid = bundleInfo.appInfo.uid;
|
/test/xts/acts/account/osaccount/actsosaccountthirdpartytest/src/main/js/test/ |
D | OsAccountQuery.test.js | 48 …var bundleInfo = await bundle.getBundleInfo(bundleName, bundle.BundleFlag.GET_BUNDLE_WITH_ABILITIE… 49 var uid = bundleInfo.uid; 72 …var bundleInfo = await bundle.getBundleInfo(bundleName, bundle.BundleFlag.GET_BUNDLE_WITH_ABILITIE… 73 var uid = bundleInfo.uid; 174 …var bundleInfo = await bundle.getBundleInfo(bundleName, bundle.BundleFlag.GET_BUNDLE_WITH_ABILITIE… 175 var uid = bundleInfo.uid; 265 …var bundleInfo = await bundle.getBundleInfo(bundleName, bundle.BundleFlag.GET_BUNDLE_WITH_ABILITIE… 266 var uid = bundleInfo.uid; 288 …var bundleInfo = await bundle.getBundleInfo(bundleName, bundle.BundleFlag.GET_BUNDLE_WITH_ABILITIE… 289 var uid = bundleInfo.uid;
|
D | OsAccountGet.test.js | 45 …var bundleInfo = await bundle.getBundleInfo(bundleName, bundle.BundleFlag.GET_BUNDLE_WITH_ABILITIE… 46 var uid = bundleInfo.uid; 69 …var bundleInfo = await bundle.getBundleInfo(bundleName, bundle.BundleFlag.GET_BUNDLE_WITH_ABILITIE… 70 var uid = bundleInfo.uid; 168 …var bundleInfo = await bundle.getBundleInfo(bundleName, bundle.BundleFlag.GET_BUNDLE_WITH_ABILITIE… 169 var uid = bundleInfo.uid; 191 …var bundleInfo = await bundle.getBundleInfo(bundleName, bundle.BundleFlag.GET_BUNDLE_WITH_ABILITIE… 192 var uid = bundleInfo.uid;
|
/test/xts/device_attest/services/devattest_ability/src/ |
D | devattest_notification_publish.cpp | 180 BundleInfo bundleInfo; in GetDevattestHapPath() local 183 …dleMgr->GetBundleInfo(DEVATTEST_SETTINGS_BUNDLE, GET_BUNDLE_WITH_EXTENSION_INFO, bundleInfo, id)) { in GetDevattestHapPath() 192 for (HapModuleInfo hapModuleInfo : bundleInfo.hapModuleInfos) { in GetDevattestHapPath()
|
/test/xts/tools/sample/AppSampleF/entry/src/main/ets/utils/ |
D | PermissionUtils.ets | 30 let bundleInfo: bundleManager.BundleInfo = 34 let appInfo: bundleManager.ApplicationInfo = bundleInfo.appInfo;
|
/test/xts/tools/sample/AppSampleE/entry/src/main/ets/utils/ |
D | PermissionUtils.ets | 31 let bundleInfo: bundleManager.BundleInfo = 35 let appInfo: bundleManager.ApplicationInfo = bundleInfo.appInfo;
|
/test/ostest/wukong/common/src/ |
D | wukong_util.cpp | 498 BundleInfo bundleInfo; in GetAllAbilitiesByBundleName() local 502 …leMgrProxy->GetBundleInfo(bundleIter.name, BundleFlag::GET_BUNDLE_WITH_ABILITIES, bundleInfo, 100); in GetAllAbilitiesByBundleName() 508 for (auto &abilityIter : bundleInfo.abilityInfos) { in GetAllAbilitiesByBundleName() 537 BundleInfo bundleInfo; in GetAllAbilities() local 539 … bundleMgrProxy->GetBundleInfo(bundleName, BundleFlag::GET_BUNDLE_WITH_ABILITIES, bundleInfo, 100); in GetAllAbilities() 545 for (auto &abilityIter : bundleInfo.abilityInfos) { in GetAllAbilities() 551 for (auto &abilityIter : bundleInfo.abilityInfos) { in GetAllAbilities()
|
/test/xts/acts/security/crossplatform/securityacessAblityCtrletstest/src/main/ets/test/ |
D | AccessToken.test.ets | 46 … let bundleInfo: bundleManager.BundleInfo = await bundleManager.getBundleInfoForSelf(bundleFlags); 48 let appInfo: bundleManager.ApplicationInfo = bundleInfo.appInfo;
|