/test/xts/acts/security_lite/permission_posix/pms/src/ |
D | ActsPMSUpdatePermissionTest.cpp | 109 PermissionSaved *permissions = NULL; variable 111 int ret = g_interface->QueryPermission(TEST_APP_ID, &permissions, &permNum); 114 if (permissions != NULL) 116 … EXPECT_EQ(permissions[0].flags, PMS_FLAG_DEFAULT) << "flags =" << permissions[0].flags << endl; 118 ClrPers(permissions); 123 ret = g_interface->QueryPermission(TEST_APP_ID, &permissions, &permNum); 126 ClrPers(permissions); 141 PermissionSaved *permissions = NULL; variable 143 int ret = g_interface->QueryPermission(TEST_APP_ID, &permissions, &permNum); 146 if (permissions != NULL) [all …]
|
D | ActsPMSRevokeTest.cpp | 109 PermissionSaved* permissions = NULL; variable 111 ret = g_interface->QueryPermission(TEST_APP_ID, &permissions, &permNum); 112 if (permissions != NULL) { 113 EXPECT_EQ(permissions[0].granted, NOT_GRANTED); 114 EXPECT_EQ(permissions[1].granted, NOT_GRANTED); 116 ClrPers(permissions); 131 PermissionSaved* permissions = NULL; variable 133 ret = g_interface->QueryPermission(TEST_APP_ID, &permissions, &permNum); 134 if (permissions != NULL) { 135 EXPECT_EQ(permissions[0].granted, NOT_GRANTED); [all …]
|
D | ActsPMSGrantTest.cpp | 124 PermissionSaved* permissions = NULL; variable 126 ret = g_interface->QueryPermission(TEST_APP_ID, &permissions, &permNum); 129 if (permissions != NULL) { 130 EXPECT_EQ(permissions[0].granted, GRANTED); 132 ClrPers(permissions); 149 PermissionSaved* permissions = NULL; variable 151 ret = g_interface->QueryPermission(TEST_APP_ID, &permissions, &permNum); 154 if (permissions != NULL) { 155 EXPECT_EQ(permissions[0].granted, GRANTED); 157 ClrPers(permissions); [all …]
|
D | ActsPMSSaveTest.cpp | 140 void ClrPers(PermissionSaved* &permissions) in ClrPers() argument 142 if (permissions != NULL) { in ClrPers() 143 free(permissions); in ClrPers() 144 permissions = NULL; in ClrPers() 184 PermissionSaved* permissions = NULL; in CheckAppPermission() local 186 int ret = g_interface->QueryPermission(identifier, &permissions, &permNum); in CheckAppPermission() 189 ret = CheckPermData(installPers, permissions, lastPers, permNum, lastLen); in CheckAppPermission() 191 ClrPers(permissions); in CheckAppPermission() 368 PermissionSaved* permissions = NULL; variable 370 ret = g_interface->QueryPermission(TEST_APP_ID, &permissions, &permNum); [all …]
|
D | ActsPMSTest.h | 79 void ClrPers(PermissionSaved *&permissions);
|
/test/xts/acts/arkui/ace_ets_web_enhanced/ace_ets_web_enhanced_one/entry/src/main/ets/test/ |
D | PermissionsUtils.ets | 12 * See the License for the specific language governing permissions and 21 console.info(`Start request permissions from user. Permission is CAMERA`); 25 console.info(`End request permissions from user. result is ${grantStatus[0] === 0}`); 28 …console.error(`Failed to request permissions from user. Code is ${err.code}, message is ${err.mess…
|
/test/xts/acts/arkui/ace_ets_web_enhanced/ace_ets_web_enhanced_two/entry/src/main/ets/test/ |
D | PermissionsUtils.ets | 12 * See the License for the specific language governing permissions and 21 console.info(`Start request permissions from user. Permission is CAMERA`); 25 console.info(`End request permissions from user. result is ${grantStatus[0] === 0}`); 28 …console.error(`Failed to request permissions from user. Code is ${err.code}, message is ${err.mess…
|
/test/xts/acts/storage/storagepickerjstest/entry/src/main/ets/TestAbility/ |
D | TestAbility.ts | 42 let permissions: Array<Permissions> = ['ohos.permission.START_ABILITIES_FROM_BACKGROUND'] 45 …atManager.requestPermissionsFromUser(this.context, permissions, (err: BusinessError, data: Permiss…
|
/test/xts/acts/storage/storagedownloadcloudsyncjstest/entry/src/main/ets/test/ |
D | Common.ets | 12 * See the License for the specific language governing permissions and 31 …let permissions = ['ohos.permission.MEDIA_LOCATION','ohos.permission.READ_MEDIA','ohos.permission.… 34 atManager.requestPermissionsFromUser(context,permissions,(err,data) =>{
|
/test/xts/acts/ability/ability_runtime/actsabilitymanageretstest/entry/src/main/ets/test/ |
D | getAbilityInfoJsunit.test.ets | 12 * See the License for the specific language governing permissions and 149 console.log(msg + "checkAbilityInfo permissions length : " + data.permissions.length); 150 for (var j = 0; j < data.permissions.length; j++) { 151 console.log(msg + "getAbilityInfo data.permissions[" + j + "] : " + data.permissions[j]); 192 expect(Array.isArray(data.permissions)).assertEqual(true); 255 console.log(msg + "checkApplicationInfo permissions length : " + info.permissions.length); 256 for (var k = 0; k < info.permissions.length; k++) { 257 … console.log(msg + "checkApplicationInfo info.permissions[" + k + "] : " + info.permissions[k]); 280 expect(Array.isArray(info.permissions)).assertEqual(true);
|
/test/xts/acts/ability/ability_runtime/amscontextualinforquery/actsamsstaticinfomationquerytest/entry/src/main/ets/test/ |
D | Ability.test.ets | 12 * See the License for the specific language governing permissions and 139 console.log("checkAbilityInfo permissions length : " + data.permissions.length); 140 console.log("checkAbilityInfo permissions: " + data.permissions); 141 for (var j = 0; j < data.permissions.length; j++) { 142 … console.log("checkAbilityInfo data.permissions[" + j + "] : " + data.permissions[j]); 178 expect(Array.isArray(data.permissions)).assertEqual(true); 203 expect(data.permissions.length).assertEqual(0); 219 expect(data.applicationInfo.permissions.length).assertEqual(0); 257 console.log("checkApplicationInfo permissions length : " + data.permissions.length); 258 for (var j = 0; j < data.permissions.length; j++) { [all …]
|
/test/xts/acts/ability/ability_runtime/freeinstalltest/startabilityforresultfatest/atomizationresultfaentry/entry/src/main/ets/MainAbility/pages/ |
D | index.ets | 12 * See the License for the specific language governing permissions and 97 var permissions = ["ohos.permission.DISTRIBUTED_DATASYNC"]; 98 featureAbility.getContext().requestPermissionsFromUser(permissions, 0, (data) => {
|
/test/xts/acts/telephony/telephonyjstest/actscontactstageapitest/entry/src/main/ets/TestAbility/ |
D | TestAbility.ets | 12 * See the License for the specific language governing permissions and 46 let permissions = ["ohos.permission.WRITE_CONTACTS", "ohos.permission.READ_CONTACTS"]; 48 atManager.requestPermissionsFromUser(globalThis.context, permissions, (err, result) => {
|
/test/xts/acts/ability/ability_runtime/amscontextualinforquery/actsamsstaticabilitystagecontexttest/entry/src/main/ets/test/ |
D | Ability.test.ets | 12 * See the License for the specific language governing permissions and 55 console.log("checkApplicationInfo permissions length : " + data.permissions.length); 56 for (var j = 0; j < data.permissions.length; j++) { 57 … console.log("checkApplicationInfo data.permissions[" + j + "] : " + data.permissions[j]); 86 expect(Array.isArray(data.permissions)).assertEqual(true); 110 expect(data.permissions.length).assertEqual(0);
|
/test/xts/acts/security/crossplatform/securityacessAblityCtrletstest/src/main/ets/test/ |
D | AccessToken.test.ets | 12 * See the License for the specific language governing permissions and 329 … console.info("Test_requestPermissionsFromUser_001 data permissions:" + data.permissions); 331 expect(data.permissions[0] == "ohos.permission.CAMERA").assertTrue(); 368 … console.info("Test_requestPermissionsFromUser_002 data permissions:" + data.permissions); 398 console.info("Test_requestPermissionsFromUser_003 data permissions:" + data.permissions); 400 expect(data.permissions[0] == "ohos.permission.CAMERA").assertTrue(); 427 console.info("Test_requestPermissionsFromUser_004 data permissions:" + data.permissions);
|
/test/xts/acts/security/certificate_framework/js_api_test_oh41/src/main/ets/TestAbility/pages/ |
D | Index.ets | 12 * See the License for the specific language governing permissions and 26 * See the License for the specific language governing permissions and
|
/test/xts/acts/communication/bluetooth_ble/src/main/ets/testability/ |
D | TestAbility.ets | 12 * See the License for the specific language governing permissions and 57 console.info('data permissions:' + data.permissions);
|
/test/xts/acts/communication/bluetooth_location/src/main/ets/testability/ |
D | TestAbility.ets | 12 * See the License for the specific language governing permissions and 57 console.info('requestPermissionsFromUser data permissions:' + data.permissions);
|
/test/xts/acts/communication/bluetooth_bp/src/main/ets/testability/ |
D | TestAbility.ets | 12 * See the License for the specific language governing permissions and 57 console.info('data permissions:' + data.permissions);
|
/test/xts/acts/communication/bluetooth_202/src/main/ets/testability/ |
D | TestAbility.ets | 12 * See the License for the specific language governing permissions and 57 console.info('data permissions:' + data.permissions);
|
/test/xts/acts/communication/bluetooth_br/src/main/ets/testability/ |
D | TestAbility.ets | 12 * See the License for the specific language governing permissions and 58 console.info('data permissions:' + data.permissions);
|
/test/xts/acts/advertising/oaid/entry/src/main/ets/MainAbility/ |
D | PermissionUtil.ts | 21 private static permissions: Array<Permissions> = ['ohos.permission.READ_CALENDAR']; property in PermissionUtil
|
/test/xts/tools/sample/AppSampleF/entry/src/main/ets/utils/ |
D | PermissionUtils.ets | 12 * See the License for the specific language governing permissions and 54 …Logger.info(TAG, `grantPermission requestPermissionsFromUser ${result.permissions[i]} + : ${grant…
|
/test/xts/tools/sample/AppSampleE/entry/src/main/ets/utils/ |
D | PermissionUtils.ets | 12 * See the License for the specific language governing permissions and 55 …Logger.info(TAG, `grantPermission requestPermissionsFromUser ${result.permissions[i]} + : ${grant…
|
/test/xts/acts/inputmethod/InputMethodTest_ets/entry/src/main/ets/test/ |
D | inputMethodNormalJSUnit.test.ets | 12 * See the License for the specific language governing permissions and 62 expect(err.message).assertContain("the permissions check fails"); 155 expect(err.message).assertContain("the permissions check fails"); 210 expect(err.message).assertContain("the permissions check fails");
|