/test/xts/acts/bundlemanager/bundle_standard/bundlemanager/actsbmsaccesstokentest/src/main/js/test/ |
D | ActsBmsAccessTokenTest.test.js | 16 import bundle from '@ohos.bundle' 45 await bundle.getApplicationInfo(BUNDLE_NAME1, bundle.BundleFlag.GET_BUNDLE_DEFAULT, userId) 63 … await bundle.getBundleInfo(BUNDLE_NAME3, bundle.BundleFlag.GET_BUNDLE_WITH_REQUESTED_PERMISSION) 70 … expect(bundleInfo.reqPermissionStates[0]).assertEqual(bundle.GrantStatus.PERMISSION_DENIED); 71 … expect(bundleInfo.reqPermissionStates[1]).assertEqual(bundle.GrantStatus.PERMISSION_GRANTED); 85 … await bundle.getBundleInfo(BUNDLE_NAME2, bundle.BundleFlag.GET_BUNDLE_WITH_REQUESTED_PERMISSION) 94 … expect(bundleInfo.reqPermissionStates[0]).assertEqual(bundle.GrantStatus.PERMISSION_GRANTED); 95 … expect(bundleInfo.reqPermissionStates[1]).assertEqual(bundle.GrantStatus.PERMISSION_DENIED); 96 … expect(bundleInfo.reqPermissionStates[2]).assertEqual(bundle.GrantStatus.PERMISSION_GRANTED); 97 … expect(bundleInfo.reqPermissionStates[3]).assertEqual(bundle.GrantStatus.PERMISSION_GRANTED); [all …]
|
/test/xts/acts/bundlemanager/bundle_standard/bundlemanager/actsbmsmetadatatest/src/main/js/test/ |
D | ActsBmsMetaDataTest.test.js | 16 import bundle from '@ohos.bundle' 54 await bundle.queryAbilityByWant( 58 }, bundle.BundleFlag.GET_ABILITY_INFO_WITH_METADATA, userId).then(dataInfos => { 66 bundle.queryAbilityByWant( 70 }, bundle.BundleFlag.GET_ABILITY_INFO_WITH_METADATA, userId, (err, dataInfos) => { 85 await bundle.queryAbilityByWant( 89 }, bundle.BundleFlag.GET_ABILITY_INFO_WITH_METADATA, userId).then(dataInfos => { 97 bundle.queryAbilityByWant( 101 }, bundle.BundleFlag.GET_ABILITY_INFO_WITH_METADATA, userId, (err, dataInfos) => { 116 await bundle.queryAbilityByWant( [all …]
|
/test/xts/acts/bundlemanager/bundle_standard/bundlemanager/actsbmsatomicserviceetstest/bmsatomicserviceshared/entry/src/main/ets/test/ |
D | GetSecondModule.test.ets | 16 import bundle from '@ohos.bundle.bundleManager'; 28 let bundleInfo = await bundle.getBundleInfoForSelf( 29 bundle.BundleFlag.GET_BUNDLE_INFO_WITH_APPLICATION | 30 bundle.BundleFlag.GET_BUNDLE_INFO_WITH_SIGNATURE_INFO | 31 bundle.BundleFlag.GET_BUNDLE_INFO_WITH_HAP_MODULE | 32 bundle.BundleFlag.GET_BUNDLE_INFO_WITH_METADATA | 33 bundle.BundleFlag.GET_BUNDLE_INFO_WITH_EXTENSION_ABILITY | 34 bundle.BundleFlag.GET_BUNDLE_INFO_WITH_ABILITY | 35 bundle.BundleFlag.GET_BUNDLE_INFO_WITH_REQUESTED_PERMISSION) 36 let applicationInfoTest: bundle.ApplicationInfo = bundleInfo.appInfo; [all …]
|
D | GetBundleInfoForSelf.test.ets | 16 import bundle from '@ohos.bundle.bundleManager'; 20 const BUNDLE_NAME = "ohos.acts.bundle.stage.test"; 23 const SOURCE_DIR = "/data/app/el1/bundle/public/ohos.acts.bundle.stage.test/testModule"; 24 const ABILITY_NAME = "ohos.acts.bundle.stage.test.MainAbility"; 25 const ABILITY_NAME1 = "ohos.acts.bundle.stage.test.MainAbility1"; 26 const APPID = "ohos.acts.bundle.stage.test_BNtg4JBClbl92Rgc3jm/RfcAdrHXaM8F0QO" + 39 await bundle.getBundleInfoForSelf(bundle.BundleFlag.GET_BUNDLE_INFO_DEFAULT).then(data => { 68 bundle.getBundleInfoForSelf(bundle.BundleFlag.GET_BUNDLE_INFO_DEFAULT, (err, data) => { 94 …await bundle.getBundleInfoForSelf(bundle.BundleFlag.GET_BUNDLE_INFO_WITH_APPLICATION).then(data =>… 106 …expect(data.appInfo.codePath).assertEqual("/data/app/el1/bundle/public/ohos.acts.bundle.stage.test… [all …]
|
/test/xts/acts/bundlemanager/bundle_standard/bundlemanager/actsbmsatomicserviceetstest/bmsatomicserviceone/entry/src/main/ets/test/ |
D | GetSecondModule.test.ets | 16 import bundle from '@ohos.bundle.bundleManager'; 28 let bundleInfo = await bundle.getBundleInfoForSelf( 29 bundle.BundleFlag.GET_BUNDLE_INFO_WITH_APPLICATION | 30 bundle.BundleFlag.GET_BUNDLE_INFO_WITH_SIGNATURE_INFO | 31 bundle.BundleFlag.GET_BUNDLE_INFO_WITH_HAP_MODULE | 32 bundle.BundleFlag.GET_BUNDLE_INFO_WITH_METADATA | 33 bundle.BundleFlag.GET_BUNDLE_INFO_WITH_EXTENSION_ABILITY | 34 bundle.BundleFlag.GET_BUNDLE_INFO_WITH_ABILITY | 35 bundle.BundleFlag.GET_BUNDLE_INFO_WITH_REQUESTED_PERMISSION) 36 let applicationInfoTest: bundle.ApplicationInfo = bundleInfo.appInfo; [all …]
|
D | GetBundleInfoForSelf.test.ets | 16 import bundle from '@ohos.bundle.bundleManager'; 20 const BUNDLE_NAME = "ohos.acts.bundle.stage.test"; 23 const SOURCE_DIR = "/data/app/el1/bundle/public/ohos.acts.bundle.stage.test/testModule"; 24 const ABILITY_NAME = "ohos.acts.bundle.stage.test.MainAbility"; 25 const ABILITY_NAME1 = "ohos.acts.bundle.stage.test.MainAbility1"; 26 const APPID = "ohos.acts.bundle.stage.test_BNtg4JBClbl92Rgc3jm/RfcAdrHXaM8F0QO" + 39 await bundle.getBundleInfoForSelf(bundle.BundleFlag.GET_BUNDLE_INFO_DEFAULT).then(data => { 68 bundle.getBundleInfoForSelf(bundle.BundleFlag.GET_BUNDLE_INFO_DEFAULT, (err, data) => { 94 …await bundle.getBundleInfoForSelf(bundle.BundleFlag.GET_BUNDLE_INFO_WITH_APPLICATION).then(data =>… 106 …expect(data.appInfo.codePath).assertEqual("/data/app/el1/bundle/public/ohos.acts.bundle.stage.test… [all …]
|
/test/xts/acts/bundlemanager/bundle_standard/bundlemanager/actsbundlemanagerstagetest/entry/src/main/ets/test/ |
D | GetSecondModule.test.ets | 16 import bundle from '@ohos.bundle.bundleManager'; 28 let bundleInfo = await bundle.getBundleInfoForSelf( 29 bundle.BundleFlag.GET_BUNDLE_INFO_WITH_APPLICATION | 30 bundle.BundleFlag.GET_BUNDLE_INFO_WITH_SIGNATURE_INFO | 31 bundle.BundleFlag.GET_BUNDLE_INFO_WITH_HAP_MODULE | 32 bundle.BundleFlag.GET_BUNDLE_INFO_WITH_METADATA | 33 bundle.BundleFlag.GET_BUNDLE_INFO_WITH_EXTENSION_ABILITY | 34 bundle.BundleFlag.GET_BUNDLE_INFO_WITH_ABILITY | 35 bundle.BundleFlag.GET_BUNDLE_INFO_WITH_REQUESTED_PERMISSION) 36 let applicationInfoTest: bundle.ApplicationInfo = bundleInfo.appInfo; [all …]
|
D | PublicApiEightTest.test.ets | 16 import bundle from '@ohos.bundle'; 21 const BUNDLE_NAME = "ohos.acts.bundle.stage.test"; 23 const ABILITY_NAME = "ohos.acts.bundle.stage.test.MainAbility"; 36 await bundle.getBundleInfo(BUNDLE_NAME , bundle.BundleFlag.GET_BUNDLE_DEFAULT).then(data => { 43 bundle.getBundleInfo(BUNDLE_NAME ,bundle.BundleFlag.GET_BUNDLE_DEFAULT, (err, data) => { 58 await bundle.getAbilityInfo(BUNDLE_NAME, ABILITY_NAME).then((data) => { 65 bundle.getAbilityInfo(BUNDLE_NAME, ABILITY_NAME, (err, data) => { 80 … await bundle.getApplicationInfo(BUNDLE_NAME, bundle.BundleFlag.GET_BUNDLE_DEFAULT).then(data => { 87 bundle.getApplicationInfo(BUNDLE_NAME, bundle.BundleFlag.GET_BUNDLE_DEFAULT, (err, data) => { 101 await bundle.queryAbilityByWant( [all …]
|
D | GetBundleInfoForSelf.test.ets | 16 import bundle from '@ohos.bundle.bundleManager'; 20 const BUNDLE_NAME = "ohos.acts.bundle.stage.test"; 23 const SOURCE_DIR = "/data/app/el1/bundle/public/ohos.acts.bundle.stage.test/testModule"; 24 const ABILITY_NAME = "ohos.acts.bundle.stage.test.MainAbility"; 25 const ABILITY_NAME1 = "ohos.acts.bundle.stage.test.MainAbility1"; 26 const APPID = "ohos.acts.bundle.stage.test_BNtg4JBClbl92Rgc3jm/RfcAdrHXaM8F0QO" + 39 await bundle.getBundleInfoForSelf(bundle.BundleFlag.GET_BUNDLE_INFO_DEFAULT).then(data => { 41 expect(bundle.CompatiblePolicy.BACKWARD_COMPATIBILITY).assertEqual(1); 69 bundle.getBundleInfoForSelf(bundle.BundleFlag.GET_BUNDLE_INFO_DEFAULT, (err, data) => { 95 …await bundle.getBundleInfoForSelf(bundle.BundleFlag.GET_BUNDLE_INFO_WITH_APPLICATION).then(data =>… [all …]
|
D | PublicApiNineTest.test.ets | 16 import bundle from '@ohos.bundle.bundleManager'; 17 import defaultAppMgr from '@ohos.bundle.defaultAppManager'; 21 const BUNDLE_NAME = "ohos.acts.bundle.stage.test"; 25 const ABILITY_NAME = "ohos.acts.bundle.stage.test.MainAbility"; 38 await bundle.getBundleInfoForSelf(bundle.BundleFlag.GET_BUNDLE_INFO_DEFAULT).then(data => { 45 bundle.getBundleInfoForSelf(bundle.BundleFlag.GET_BUNDLE_INFO_DEFAULT, (err, data) => { 58 await bundle.getProfileByAbility(MODULE_NAME, ABILITY_NAME, METADATA_NAME).then(data => { 65 bundle.getProfileByAbility(MODULE_NAME, ABILITY_NAME, METADATA_NAME, (err, data) => { 78 …await bundle.getProfileByExtensionAbility(MODULE_NAME, ABILITY_NAME1, METADATA_NAME1).then(data =>… 85 … bundle.getProfileByExtensionAbility(MODULE_NAME, ABILITY_NAME1, METADATA_NAME1, (err, data) => {
|
/test/xts/acts/bundlemanager/bundle_standard/bundlemanager/actsbmsjsunpermissiontest/src/main/js/test/ |
D | ActsBmsJsUnPermissionTest.test.js | 16 import bundle from '@ohos.bundle' 22 const DEFAULT_FLAG = bundle.BundleFlag.GET_BUNDLE_DEFAULT; 46 await bundle.getApplicationInfo(LAUNCHER_BUNDLE_NAME, DEFAULT_FLAG, userId).then(data => { 51 bundle.getApplicationInfo(LAUNCHER_BUNDLE_NAME, DEFAULT_FLAG, userId, (err, data) => { 64 await bundle.getAllApplicationInfo(DEFAULT_FLAG, userId).then(data => { 69 bundle.getAllApplicationInfo(DEFAULT_FLAG, userId, (err, data) => { 82 await bundle.getBundleInfo(LAUNCHER_BUNDLE_NAME, userId).then(data => { 87 bundle.getBundleInfo(LAUNCHER_BUNDLE_NAME, userId, (err, data) => { 100 await bundle.getAllBundleInfo(DEFAULT_FLAG).then(data => { 105 bundle.getAllBundleInfo(DEFAULT_FLAG, (err, data) => { [all …]
|
/test/xts/acts/bundlemanager/bundle_standard/bundlemanager/actsbmsgetinfostest/src/main/js/test/ |
D | ActsBmsQueryAbilityByWant.test.js | 15 import bundle from '@ohos.bundle' 47 await bundle.queryAbilityByWant({ 51 …}, bundle.BundleFlag.GET_ABILITY_INFO_WITH_APPLICATION | bundle.BundleFlag.GET_ABILITY_INFO_SYSTEM… 57 bundle.queryAbilityByWant({ 61 …}, bundle.BundleFlag.GET_ABILITY_INFO_WITH_APPLICATION | bundle.BundleFlag.GET_ABILITY_INFO_SYSTEM… 76 await bundle.queryAbilityByWant( 81 …bundle.BundleFlag.GET_ABILITY_INFO_WITH_APPLICATION | bundle.BundleFlag.GET_ABILITY_INFO_SYSTEMAPP… 91 bundle.queryAbilityByWant( 96 …bundle.BundleFlag.GET_ABILITY_INFO_WITH_APPLICATION | bundle.BundleFlag.GET_ABILITY_INFO_SYSTEMAPP… 115 let dataInfos = await bundle.queryAbilityByWant({ [all …]
|
D | ActsBmsGetBackGroundModes.test.js | 16 import bundle from '@ohos.bundle' 66 let dataInfos = await bundle.queryAbilityByWant({ 72 }, bundle.BundleFlag.GET_BUNDLE_DEFAULT, userId); 81 …let bundleInfos = await bundle.getAllBundleInfo(bundle.BundleFlag.GET_BUNDLE_WITH_ABILITIES, userI… 95 … let data3 = await bundle.getBundleInfo(BUNDLE_NAME5, bundle.BundleFlag.GET_BUNDLE_WITH_ABILITIES); 109 let dataInfos = await bundle.queryAbilityByWant({ 115 }, bundle.BundleFlag.GET_BUNDLE_DEFAULT, userId); 129 let dataInfos = await bundle.queryAbilityByWant({ 135 }, bundle.BundleFlag.GET_BUNDLE_DEFAULT, userId); 142 …bundle.getAllBundleInfo(bundle.BundleFlag.GET_BUNDLE_WITH_ABILITIES, userId, (err, bundleInfos) =>… [all …]
|
/test/xts/acts/bundlemanager/bundle_standard/bundlemanager/actsbundlemanageretstest/entry/src/main/ets/test/ |
D | GetBundleInfoForSelf.test.ets | 16 import bundle from '@ohos.bundle.bundleManager'; 29 await bundle.getBundleInfoForSelf( 30 … bundle.BundleFlag.GET_BUNDLE_INFO_WITH_HAP_MODULE | bundle.BundleFlag.GET_BUNDLE_INFO_WITH_ABILITY 34 expect(data.hapModulesInfo[0].abilitiesInfo[0].type).assertEqual(bundle.AbilityType.DATA); 35 …expect(data.hapModulesInfo[0].abilitiesInfo[0].orientation).assertEqual(bundle.DisplayOrientation.… 39 expect(data.hapModulesInfo[0].abilitiesInfo[1].type).assertEqual(bundle.AbilityType.PAGE); 40 …expect(data.hapModulesInfo[0].abilitiesInfo[1].orientation).assertEqual(bundle.DisplayOrientation.… 41 expect(data.hapModulesInfo[0].abilitiesInfo[2].type).assertEqual(bundle.AbilityType.PAGE); 42 …expect(data.hapModulesInfo[0].abilitiesInfo[2].orientation).assertEqual(bundle.DisplayOrientation.… 43 … expect(data.hapModulesInfo[0].abilitiesInfo[3].type).assertEqual(bundle.AbilityType.SERVICE); [all …]
|
D | GetAbilityIcon.test.ets | 16 import bundle from '@ohos.bundle' 37 await bundle.getAbilityIcon(BUNDLE_NAME_OTHER, ABILITIY_NAME_OTHER).then(pixelmap => { 44 bundle.getAbilityIcon(BUNDLE_NAME_OTHER, ABILITIY_NAME_OTHER, (err, pixelmap) => { 57 await bundle.getAbilityIcon(BUNDLE_NAME, ABILITIY_NAME).then(pixelmap => { 64 bundle.getAbilityIcon(BUNDLE_NAME, ABILITIY_NAME, (err, pixelmap) => { 77 await bundle.getAbilityIcon(BUNDLE_NAME, SERVICE_NAME).then(pixelmap => { 83 bundle.getAbilityIcon(BUNDLE_NAME, SERVICE_NAME, (err, pixelmap) => { 95 await bundle.getAbilityIcon(BUNDLE_NAME, ABILITIY_NAME_ERROR).then(pixelmap => { 101 await bundle.getAbilityIcon(BUNDLE_NAME_ERROR, ABILITIY_NAME).then(pixelmap => { 107 await bundle.getAbilityIcon("", "").then(pixelmap => { [all …]
|
D | GetNameForUid.test.ets | 16 import bundle from '@ohos.bundle' 31 … let dataInfo = await bundle.getBundleInfo(BUNDLE_NAME1, bundle.BundleFlag.GET_BUNDLE_DEFAULT); 32 await bundle.getNameForUid(dataInfo.uid).then(data => { 38 bundle.getNameForUid(dataInfo.uid, (err, data) => { 52 … let dataInfo = await bundle.getBundleInfo(BUNDLE_NAME2,bundle.BundleFlag.GET_BUNDLE_DEFAULT); 53 await bundle.getNameForUid(dataInfo.uid).then(data => { 59 bundle.getNameForUid(dataInfo.uid, (err, data) => { 73 await bundle.getNameForUid(123456).then(data => { 79 bundle.getNameForUid(123456, (err, data) => { 92 await bundle.getNameForUid(undefined).then(data => { [all …]
|
D | GetQueryAbilityByWant.test.ets | 15 import bundle from '@ohos.bundle' 46 bundle.queryAbilityByWant( 49 }, bundle.BundleFlag.GET_BUNDLE_DEFAULT, userId).then(res => { 64 bundle.queryAbilityByWant( 65 {}, bundle.BundleFlag.GET_BUNDLE_DEFAULT, userId).then(res => { 80 bundle.queryAbilityByWant( 83 }, bundle.BundleFlag.GET_BUNDLE_DEFAULT, userId).then(res => { 102 bundle.queryAbilityByWant( 105 }, bundle.BundleFlag.GET_BUNDLE_DEFAULT, userId).then(res => { 123 bundle.queryAbilityByWant( [all …]
|
D | getBundleArchiveInfo.test.ets | 16 import bundle from '@ohos.bundle'; 45 …let datainfo = await bundle.getBundleArchiveInfo(PATH + BMSJSTEST1, bundle.BundleFlag.GET_BUNDLE_W… 67 …let datainfo = await bundle.getBundleArchiveInfo(PATH + BMSJSTEST2, bundle.BundleFlag.GET_BUNDLE_W… 89 …let datainfo = await bundle.getBundleArchiveInfo(PATH + BMSJSTEST4, bundle.BundleFlag.GET_BUNDLE_W… 111 …await bundle.getBundleArchiveInfo(PATH + ERROR, bundle.BundleFlag.GET_BUNDLE_WITH_ABILITIES).then(… 128 …let datainfo = await bundle.getBundleArchiveInfo(' ', bundle.BundleFlag.GET_BUNDLE_WITH_ABILITIES)… 145 …await bundle.getBundleArchiveInfo(PATH + BMSJSTEST1, bundle.BundleFlag.GET_BUNDLE_WITH_ABILITIES, … 183 …await bundle.getBundleArchiveInfo(PATH + BMSJSTEST2, bundle.BundleFlag.GET_BUNDLE_WITH_ABILITIES, … 207 …await bundle.getBundleArchiveInfo(PATH + BMSJSTEST4, bundle.BundleFlag.GET_BUNDLE_WITH_ABILITIES, … 231 …await bundle.getBundleArchiveInfo(PATH + ERROR, bundle.BundleFlag.GET_BUNDLE_WITH_ABILITIES, OnRec… [all …]
|
/test/xts/acts/bundlemanager/bundle_standard/bundlemanager/actsbmsatomicserviceetstest/actsbmsatomicservicetest/entry/src/main/ets/test/ |
D | GetBundleInfoForSelf.test.ets | 16 import bundle from '@ohos.bundle.bundleManager'; 28 await bundle.getBundleInfoForSelf(bundle.BundleFlag.GET_BUNDLE_INFO_WITH_APPLICATION | 29 bundle.BundleFlag.GET_BUNDLE_INFO_WITH_HAP_MODULE).then(data => { 30 let preloadItemTest: bundle.PreloadItem = data.hapModulesInfo[2].preloads[0]; 32 let dependencyTest: bundle.Dependency = data.hapModulesInfo[2].dependencies[0]; 38 expect(data.appInfo.bundleType).assertEqual(bundle.BundleType.ATOMIC_SERVICE); 39 expect(data.hapModulesInfo[0].type).assertEqual(bundle.ModuleType.FEATURE); 42 expect(data.hapModulesInfo[1].type).assertEqual(bundle.ModuleType.SHARED); 45 expect(data.hapModulesInfo[2].type).assertEqual(bundle.ModuleType.ENTRY); 65 … let data = bundle.getBundleInfoForSelfSync(bundle.BundleFlag.GET_BUNDLE_INFO_WITH_APPLICATION | [all …]
|
/test/xts/acts/bundlemanager/bundle_standard/bundlemanager/actsbmshapmoduletest/src/main/js/test/ |
D | ActsBmsHapModuleTest.test.js | 16 import bundle from '@ohos.bundle' 46 …let dataInfo = await bundle.getBundleInfo(BUNDLE_NAME1, bundle.BundleFlag.GET_BUNDLE_WITH_ABILITIE… 47 bundle.getBundleInfo(BUNDLE_NAME1, bundle.BundleFlag.GET_BUNDLE_WITH_ABILITIES, callback); 79 …let dataInfo = await bundle.getBundleInfo(BUNDLE_NAME1, bundle.BundleFlag.GET_BUNDLE_WITH_ABILITIE… 80 …bundle.getBundleInfo(BUNDLE_NAME1, bundle.BundleFlag.GET_BUNDLE_WITH_ABILITIES, async (err, result… 107 …let result = await bundle.getBundleInfo(BUNDLE_NAME2, bundle.BundleFlag.GET_BUNDLE_WITH_ABILITIES); 108 … bundle.getBundleInfo(BUNDLE_NAME2, bundle.BundleFlag.GET_BUNDLE_WITH_ABILITIES, (err, data) => { 139 …let dataInfo = await bundle.getBundleInfo(BUNDLE_NAME3, bundle.BundleFlag.GET_BUNDLE_WITH_ABILITIE… 140 …bundle.getBundleInfo(BUNDLE_NAME3, bundle.BundleFlag.GET_BUNDLE_WITH_ABILITIES, async (err, result… 171 …let dataInfo = await bundle.getBundleInfo(BUNDLE_NAME5, bundle.BundleFlag.GET_BUNDLE_WITH_ABILITIE… [all …]
|
/test/xts/acts/ability/ability_runtime/actssupportfunction/fasupportfunction/entry/src/main/ets/MainAbility4/ |
D | app.ets | 17 import bundle from '@ohos.bundle'; 55 orientation = bundle.DisplayOrientation.LANDSCAPE; 58 orientation = bundle.DisplayOrientation.PORTRAIT; 61 orientation = bundle.DisplayOrientation.LANDSCAPE; 70 orientation = bundle.DisplayOrientation.PORTRAIT; 79 orientation = bundle.DisplayOrientation.LANDSCAPE; 88 orientation = bundle.DisplayOrientation.PORTRAIT; 97 orientation = bundle.DisplayOrientation.LANDSCAPE; 107 orientation = bundle.DisplayOrientation.PORTRAIT;
|
/test/xts/acts/bundlemanager/bundle_standard/bundlemanager/actsbmsetsunpermissiontest/entry/src/main/ets/test/ |
D | ActsBmsEtsUnPermissionTest.test.ets | 17 import bundle from '@ohos.bundle' 21 const DEFAULT_FLAG = bundle.BundleFlag.GET_BUNDLE_DEFAULT; 27 const BUNDLE_NAME1 = "com.acts.bundle.stage"; 51 await bundle.getAllApplicationInfo(DEFAULT_FLAG).then(data => { 56 bundle.getAllApplicationInfo(DEFAULT_FLAG, (err, data) => { 69 … await bundle.getBundleInfo(BUNDLE_NAME_OTHER, DEFAULT_FLAG, { userId: userId }).then(data => { 74 … bundle.getBundleInfo(BUNDLE_NAME_OTHER, DEFAULT_FLAG, { userId: userId }, (err, data) => { 87 await bundle.getApplicationInfo(BUNDLE_NAME_OTHER, DEFAULT_FLAG).then(data => { 92 bundle.getApplicationInfo(BUNDLE_NAME_OTHER, DEFAULT_FLAG, (err, data) => { 157 await bundle.getAbilityIcon(BUNDLE_NAME_OTHER, ABILITIY_NAME_OTHER).then(pixelmap => { [all …]
|
/test/xts/acts/arkui/ace_ets_components_ux/ace_ets_component_gauge/src/main/ets/test/ |
D | gauge.ets | 17 import bundle from '@ohos.bundle.bundleManager'; 36 …let targetVersion = bundle.getBundleInfoForSelfSync(bundle.BundleFlag.GET_BUNDLE_INFO_DEFAULT).tar… 65 …let targetVersion = bundle.getBundleInfoForSelfSync(bundle.BundleFlag.GET_BUNDLE_INFO_DEFAULT).tar… 94 …let targetVersion = bundle.getBundleInfoForSelfSync(bundle.BundleFlag.GET_BUNDLE_INFO_DEFAULT).tar… 123 …let targetVersion = bundle.getBundleInfoForSelfSync(bundle.BundleFlag.GET_BUNDLE_INFO_DEFAULT).tar… 152 …let targetVersion = bundle.getBundleInfoForSelfSync(bundle.BundleFlag.GET_BUNDLE_INFO_DEFAULT).tar… 182 …let targetVersion = bundle.getBundleInfoForSelfSync(bundle.BundleFlag.GET_BUNDLE_INFO_DEFAULT).tar… 212 …let targetVersion = bundle.getBundleInfoForSelfSync(bundle.BundleFlag.GET_BUNDLE_INFO_DEFAULT).tar… 242 …let targetVersion = bundle.getBundleInfoForSelfSync(bundle.BundleFlag.GET_BUNDLE_INFO_DEFAULT).tar… 279 …let targetVersion = bundle.getBundleInfoForSelfSync(bundle.BundleFlag.GET_BUNDLE_INFO_DEFAULT).tar… [all …]
|
/test/xts/acts/validator/acts_validator/src/main/ets/pages/model/ |
D | BundleMangerUtils.ts | 16 import bundle from '@ohos.bundle'; 33 bundle.queryAbilityByWant(want, 1).then(async data => { 64 bundle.queryAbilityByWant(want, 1).then(async data => { 73 bundle.getBundleInfo(bundleName, 1).then(bundleData => { 93 await bundle.queryAbilityByWant({
|
/test/ostest/wukong/report/src/ |
D | statistics_event.cpp | 34 for (auto bundle : eventStatisticsMsg_) { in StatisticsDetail() local 35 DEBUG_LOG_STR("start bundlename{%s}", bundle.first.c_str()); in StatisticsDetail() 36 std::shared_ptr<EventStatisticsMsg> curEventStatisticsMsgPtr = bundle.second; in StatisticsDetail() 53 table->SetName(bundle.first); in StatisticsDetail() 55 destTables[bundle.first] = table; in StatisticsDetail() 141 for (auto bundle : eventStatisticsMsg_) { in GlobalElementTypesStatistics() local 142 std::shared_ptr<EventStatisticsMsg> curEventStatisticsMsgPtr = bundle.second; in GlobalElementTypesStatistics()
|