/test/xts/acts/security/access_token/AccessTokenTest_Normal_js/src/main/js/test/ |
D | AccessToken.test.js | 40 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/ |
D | AccessToken.test.ets | 29 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/ |
D | GetCountryCodeError.test.js | 51 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) => {
|
D | GeocoderErrorTest.test.js | 51 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) => {
|
D | LocationErrorTest.test.js | 80 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) => {
|
D | ListeningError.test.js | 51 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/ |
D | Common.ets | 47 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/ |
D | SystemLocation.test.js | 52 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) => {
|
D | GetCountryCode.test.js | 53 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) => {
|
D | GetCountryCodeM.test.js | 52 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/ |
D | WifiCandidateNetWork.test.js | 31 let tokenID = appInfo.accessTokenId; 32 console.info('[permission] case accessTokenID is ' + tokenID); 34 await atManager.grantUserGrantedPermission(tokenID, permissionName1, 1).then((result) => {
|
D | WifiManagerStationEvent.test.js | 32 let tokenID = appInfo.accessTokenId; 33 console.info('[permission] case accessTokenID is ' + tokenID); 35 await atManager.grantUserGrantedPermission(tokenID, permissionName1, 1).then((result) => {
|
D | WifiStationEvent.test.js | 32 let tokenID = appInfo.accessTokenId; 33 console.info('[permission] case accessTokenID is ' + tokenID); 35 await atManager.grantUserGrantedPermission(tokenID, permissionName1, 1).then((result) => {
|
D | WifiStationFunctions.test.js | 31 let tokenID = appInfo.accessTokenId; 32 console.info('[permission] case accessTokenID is ' + tokenID); 34 await atManager.grantUserGrantedPermission(tokenID, permissionName1, 1).then((result) => {
|
D | WifiManagerCandidateNetWork.test.js | 31 let tokenID = appInfo.accessTokenId; 32 console.info('[permission] case accessTokenID is ' + tokenID); 34 await atManager.grantUserGrantedPermission(tokenID, permissionName1, 1).then((result) => {
|
D | WifiManagerStationFunctions.test.js | 31 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/ |
D | WifiManagerP2PEvent.test.js | 30 let tokenID = appInfo.accessTokenId; 31 console.info('[permission] case accessTokenID is ' + tokenID); 33 await atManager.grantUserGrantedPermission(tokenID, permissionName1, 1).then((result) => {
|
D | WifiP2PEvent.test.js | 31 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/ |
D | common.ts | 119 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/ |
D | ActWifiErrorCode202.test.js | 32 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/ |
D | Syncenable.test.js | 23 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/ |
D | Syncenable.test.js | 23 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/ |
D | ActWifiErrorCode401.test.js | 32 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/ |
D | SensorOnOffTest.test_oldPedometer_Detection.test.js | 36 let tokenID = undefined 45 tokenID = appInfo.accessTokenId; 49 var result = await atManager.grantUserGrantedPermission(tokenID, permissionNameUser, 83 atManager.revokeUserGrantedPermission(tokenID, permissionNameUser,
|
D | SensorOnOffTest.test_oldPedometer.test.js | 34 let tokenID = undefined 43 tokenID = appInfo.accessTokenId; 47 var result = await atManager.grantUserGrantedPermission(tokenID, permissionNameUser, 84 atManager.revokeUserGrantedPermission(tokenID, permissionNameUser,
|