Home
last modified time | relevance | path

Searched refs:tokenID (Results 1 – 25 of 38) sorted by relevance

12

/test/xts/acts/security/access_token/AccessTokenTest_Normal_js/src/main/js/test/
DAccessToken.test.js40 var tokenID = undefined; variable
48 tokenID = appInfo.accessTokenId;
76 var result = await atManager.verifyAccessToken(tokenID, permissionNameUser);
77 console.info("Test_verifyAccessToken_001 tokenID" + tokenID + "-" + result)
91 var result = await atManager.verifyAccessToken(tokenID, permissionNameSystem);
92 console.info("Test_verifyAccessToken_002 tokenID" + tokenID + "-" + result)
107 console.info("Test_verifyAccessToken_003 tokenID" + tokenID + "-" + result)
121 var result = await atManager.verifyAccessToken(tokenID, "");
122 console.info("Test_verifyAccessToken_004 tokenID" + tokenID + "-" + result)
140 var result = await atManager.verifyAccessToken(tokenID, permissionName);
[all …]
/test/xts/acts/security/crossplatform/securityacessAblityCtrletstest/src/main/ets/test/
DAccessToken.test.ets29 let tokenID: number = 11;
50 tokenID = appInfo.accessTokenId;
51 console.log('getBundleInfoForSelf ok3' + tokenID)
60 tokenID = 11;
96 …let result: abilityAccessCtrl.GrantStatus = await atManager.checkAccessToken(tokenID, permissionNa…
97 console.info("Test_checkAccessToken_001 tokenID" + tokenID + "-" + result)
101 console.info("Test_checkAccessToken_001 tokenID" + JSON.stringify(error))
118 …let result: abilityAccessCtrl.GrantStatus = await atManager.checkAccessToken(tokenID, permissionNa…
119 console.info("Test_checkAccessToken_002 tokenID" + tokenID + "-" + result)
140 atManager.checkAccessToken(tokenID, "").then((data) => {
[all …]
/test/xts/acts/location/geolocation_errorCode/src/main/js/default/test/
DGetCountryCodeError.test.js51 let tokenID = appInfo.accessTokenId;
52 console.info('[permission] case accessTokenID is ' + tokenID);
55 await atManager.grantUserGrantedPermission(tokenID, permissionName1, 1).then((result) => {
60 await atManager.grantUserGrantedPermission(tokenID, permissionName2, 1).then((result) => {
DGeocoderErrorTest.test.js51 let tokenID = appInfo.accessTokenId;
52 console.info('[permission] case accessTokenID is ' + tokenID);
55 await atManager.grantUserGrantedPermission(tokenID, permissionName1, 1).then((result) => {
60 await atManager.grantUserGrantedPermission(tokenID, permissionName2, 1).then((result) => {
DLocationErrorTest.test.js80 let tokenID = appInfo.accessTokenId;
81 console.info('[permission] case accessTokenID is ' + tokenID);
84 await atManager.grantUserGrantedPermission(tokenID, permissionName1, 1).then((result) => {
89 await atManager.grantUserGrantedPermission(tokenID, permissionName2, 1).then((result) => {
DListeningError.test.js51 let tokenID = appInfo.accessTokenId;
52 console.info('[permission] case accessTokenID is ' + tokenID);
55 await atManager.grantUserGrantedPermission(tokenID, permissionName1, 1).then((result) => {
60 await atManager.grantUserGrantedPermission(tokenID, permissionName2, 1).then((result) => {
/test/xts/acts/storage/storagedownloadcloudsyncjstest/entry/src/main/ets/test/
DCommon.ets47 let tokenID = appinfo.accessTokenID;
48 let isGranted1 = awaitatManager.verifyAccessToken(tokenID,'ohos.permission.MEDIA_LOCATION');
49 let isGranted2 = awaitatManager.verifyAccessToken(tokenID,'ohos.permission.READ_MEDIA');
50 let isGranted3 = awaitatManager.verifyAccessToken(tokenID,'ohos.permission.WRITE_MEDIA');
/test/xts/acts/location/geolocation_standard/src/main/js/test/
DSystemLocation.test.js52 let tokenID = appInfo.accessTokenId;
53 console.info('[permission] case accessTokenID is ' + tokenID);
56 await atManager.grantUserGrantedPermission(tokenID, permissionName1, 1).then((result) => {
61 await atManager.grantUserGrantedPermission(tokenID, permissionName2, 1).then((result) => {
DGetCountryCode.test.js53 let tokenID = appInfo.accessTokenId;
54 console.info('[permission] case accessTokenID is ' + tokenID);
57 await atManager.grantUserGrantedPermission(tokenID, permissionName1, 1).then((result) => {
62 await atManager.grantUserGrantedPermission(tokenID, permissionName2, 1).then((result) => {
DGetCountryCodeM.test.js52 let tokenID = appInfo.accessTokenId;
53 console.info('[permission] case accessTokenID is ' + tokenID);
56 await atManager.grantUserGrantedPermission(tokenID, permissionName1, 1).then((result) => {
61 await atManager.grantUserGrantedPermission(tokenID, permissionName2, 1).then((result) => {
/test/xts/acts/communication/wifi_standard/src/main/js/test/
DWifiCandidateNetWork.test.js31 let tokenID = appInfo.accessTokenId;
32 console.info('[permission] case accessTokenID is ' + tokenID);
34 await atManager.grantUserGrantedPermission(tokenID, permissionName1, 1).then((result) => {
DWifiManagerStationEvent.test.js32 let tokenID = appInfo.accessTokenId;
33 console.info('[permission] case accessTokenID is ' + tokenID);
35 await atManager.grantUserGrantedPermission(tokenID, permissionName1, 1).then((result) => {
DWifiStationEvent.test.js32 let tokenID = appInfo.accessTokenId;
33 console.info('[permission] case accessTokenID is ' + tokenID);
35 await atManager.grantUserGrantedPermission(tokenID, permissionName1, 1).then((result) => {
DWifiStationFunctions.test.js31 let tokenID = appInfo.accessTokenId;
32 console.info('[permission] case accessTokenID is ' + tokenID);
34 await atManager.grantUserGrantedPermission(tokenID, permissionName1, 1).then((result) => {
DWifiManagerCandidateNetWork.test.js31 let tokenID = appInfo.accessTokenId;
32 console.info('[permission] case accessTokenID is ' + tokenID);
34 await atManager.grantUserGrantedPermission(tokenID, permissionName1, 1).then((result) => {
DWifiManagerStationFunctions.test.js31 let tokenID = appInfo.accessTokenId;
32 console.info('[permission] case accessTokenID is ' + tokenID);
34 await atManager.grantUserGrantedPermission(tokenID, permissionName1, 1).then((result) => {
/test/xts/acts/communication/wifi_p2p/src/main/js/test/
DWifiManagerP2PEvent.test.js30 let tokenID = appInfo.accessTokenId;
31 console.info('[permission] case accessTokenID is ' + tokenID);
33 await atManager.grantUserGrantedPermission(tokenID, permissionName1, 1).then((result) => {
DWifiP2PEvent.test.js31 let tokenID = appInfo.accessTokenId;
32 console.info('[permission] case accessTokenID is ' + tokenID);
34 await atManager.grantUserGrantedPermission(tokenID, permissionName1, 1).then((result) => {
/test/xts/acts/multimedia/photoAccess/
Dcommon.ts119 const tokenID = appInfo.accessTokenId; constant
123 await atManager.grantUserGrantedPermission(tokenID, permission, 1);
127 permissionState.set(permission, await atManager.verifyAccessToken(tokenID, permission));
/test/xts/acts/communication/wifi_ErrorCode202/src/main/js/test/
DActWifiErrorCode202.test.js32 let tokenID = appInfo.accessTokenId;
33 console.info('[permission] case accessTokenID is ' + tokenID);
35 await atManager.grantUserGrantedPermission(tokenID, permissionName1, 1).then((result) => {
/test/xts/acts/account/appaccount/actssetcheckdatasyncenable/src/main/js/test/
DSyncenable.test.js23 var tokenID = undefined; variable
29 tokenID = appInfo.accessTokenId;
32 …var result = await atManager.grantUserGrantedPermission(tokenID, PERMISSION_USER_NAME, PERMISSION_…
33 console.info("tokenId" + tokenID + " result:" + result);
/test/xts/acts/account/appaccount/actssetchecksyncenable/src/main/js/test/
DSyncenable.test.js23 var tokenID = undefined; variable
29 tokenID = appInfo.accessTokenId;
32 …var result = await atManager.grantUserGrantedPermission(tokenID, PERMISSION_USER_NAME, PERMISSION_…
33 console.info("tokenId" + tokenID + " result:" + result);
/test/xts/acts/communication/wifi_ErrorCode401/src/main/js/test/
DActWifiErrorCode401.test.js32 let tokenID = appInfo.accessTokenId;
33 console.info('[permission] case accessTokenID is ' + tokenID);
35 await atManager.grantUserGrantedPermission(tokenID, permissionName1, 1).then((result) => {
/test/xts/acts/sensors/sensor_standard/src/main/js/test/
DSensorOnOffTest.test_oldPedometer_Detection.test.js36 let tokenID = undefined
45 tokenID = appInfo.accessTokenId;
49 var result = await atManager.grantUserGrantedPermission(tokenID, permissionNameUser,
83 atManager.revokeUserGrantedPermission(tokenID, permissionNameUser,
DSensorOnOffTest.test_oldPedometer.test.js34 let tokenID = undefined
43 tokenID = appInfo.accessTokenId;
47 var result = await atManager.grantUserGrantedPermission(tokenID, permissionNameUser,
84 atManager.revokeUserGrantedPermission(tokenID, permissionNameUser,

12