/test/xts/acts/security_lite/permission_posix/pms/src/ |
H A D | ActsPMSUpdatePermissionTest.cpp | 12 * See the License for the specific language governing permissions and 109 PermissionSaved *permissions = NULL; in HWTEST_F() local 111 int ret = g_interface->QueryPermission(TEST_APP_ID, &permissions, &permNum); in HWTEST_F() 114 if (permissions != NULL) in HWTEST_F() 116 EXPECT_EQ(permissions[0].flags, PMS_FLAG_DEFAULT) << "flags =" << permissions[0].flags << endl; in HWTEST_F() 118 ClrPers(permissions); in HWTEST_F() 123 ret = g_interface->QueryPermission(TEST_APP_ID, &permissions, &permNum); in HWTEST_F() 126 ClrPers(permissions); in HWTEST_F() 141 PermissionSaved *permissions in HWTEST_F() local 173 PermissionSaved *permissions = NULL; HWTEST_F() local 210 PermissionSaved *permissions = NULL; HWTEST_F() local 247 PermissionSaved *permissions = NULL; HWTEST_F() local 280 PermissionSaved *permissions = NULL; HWTEST_F() local 313 PermissionSaved *permissions = NULL; HWTEST_F() local [all...] |
H A D | ActsPMSRevokeTest.cpp | 12 * See the License for the specific language governing permissions and
98 * @tc.name revoke permissions while not load permiossion
109 PermissionSaved* permissions = NULL;
in HWTEST_F() local 111 ret = g_interface->QueryPermission(TEST_APP_ID, &permissions, &permNum);
in HWTEST_F() 112 if (permissions != NULL) {
in HWTEST_F() 113 EXPECT_EQ(permissions[0].granted, NOT_GRANTED);
in HWTEST_F() 114 EXPECT_EQ(permissions[1].granted, NOT_GRANTED);
in HWTEST_F() 116 ClrPers(permissions);
in HWTEST_F() 122 * @tc.name revoke closed permissions while load permiossion
131 PermissionSaved* permissions in HWTEST_F() local 154 PermissionSaved* permissions = NULL; HWTEST_F() local 176 PermissionSaved* permissions = NULL; HWTEST_F() local 198 PermissionSaved* permissions = NULL; HWTEST_F() local 226 PermissionSaved* permissions = NULL; HWTEST_F() local 266 PermissionSaved* permissions = NULL; HWTEST_F() local 290 PermissionSaved* permissions = NULL; HWTEST_F() local 318 PermissionSaved* permissions = NULL; HWTEST_F() local [all...] |
H A D | ActsPMSGrantTest.cpp | 12 * See the License for the specific language governing permissions and
115 * @tc.name grant permissions while load permiossion
124 PermissionSaved* permissions = NULL;
in HWTEST_F() local 126 ret = g_interface->QueryPermission(TEST_APP_ID, &permissions, &permNum);
in HWTEST_F() 129 if (permissions != NULL) {
in HWTEST_F() 130 EXPECT_EQ(permissions[0].granted, GRANTED);
in HWTEST_F() 132 ClrPers(permissions);
in HWTEST_F() 139 * @tc.name grant opened permissions while load permiossion
149 PermissionSaved* permissions = NULL;
in HWTEST_F() local 151 ret = g_interface->QueryPermission(TEST_APP_ID, &permissions, in HWTEST_F() 173 PermissionSaved* permissions = NULL; HWTEST_F() local 194 PermissionSaved* permissions = NULL; HWTEST_F() local 218 PermissionSaved* permissions = NULL; HWTEST_F() local 258 PermissionSaved* permissions = NULL; HWTEST_F() local 282 PermissionSaved* permissions = NULL; HWTEST_F() local 310 PermissionSaved* permissions = NULL; HWTEST_F() local [all...] |
H A D | ActsPMSSaveTest.cpp | 12 * See the License for the specific language governing permissions and
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() 311 * @tc.name The number of saved application permissions ha 368 PermissionSaved* permissions = NULL; HWTEST_F() local 747 PermissionSaved* permissions = NULL; HWTEST_F() local 770 PermissionSaved* permissions = NULL; HWTEST_F() local [all...] |
H A D | ActsPMSLoadTest.cpp | 12 * See the License for the specific language governing permissions and
112 * @tc.name Load unauthorized permissions
130 * @tc.name Load authorized permissions
151 * @tc.name Load system_grant permissions
168 * @tc.name Load user_grant permissions
190 * @tc.name Load permissions to large and small PIDs
207 * @tc.name Load nonexistent application permissions
218 * @tc.name Load loaded application permissions
234 * @tc.name Duplicate load application permissions
251 * @tc.name Load multiple application permissions
342 PermissionSaved* permissions = NULL; HWTEST_F() local [all...] |
H A D | ActsPMSTest.h | 12 * See the License for the specific language governing permissions and
46 #define TEST_APP_PATH "/storage/app/etc/permissions/com.permission.test"
54 #define PERMISSION_PREFIX "/storage/app/etc/permissions"
79 void ClrPers(PermissionSaved *&permissions);
|
/test/xts/acts/security/access_token/AccessTokenTest_Normal_js/entry/src/ohosTest/js/test/ |
H A D | AccessToken.test.js | 569 console.info("data permissions:" + data.permissions);
595 console.info("data permissions:" + data.permissions);
619 console.info("data permissions:" + data.permissions);
641 console.info("data permissions:" + data.permissions);
|
/test/testfwk/developer_test/ |
H A D | start.bat | 11 @rem See the License for the specific language governing permissions and
|
/test/testfwk/xdevice/ |
H A D | run.bat | 11 @rem See the License for the specific language governing permissions and
|
/test/xts/dcts/distributeddatamgr/jstest/distributed_rdb_store/client/hap/src/main/js/test/ |
H A D | RdbStoreSyncCustomDir.test.js | 12 * See the License for the specific language governing permissions and
54 let permissions = ['ohos.permission.DISTRIBUTED_DATASYNC'];
56 context.requestPermissionsFromUser(permissions, 666, (data) => {
|
/test/xts/acts/ability/ability_runtime/aacommand/AACommand07/ |
H A D | hvigorw.bat | 11 @rem See the License for the specific language governing permissions and
|
/test/xts/acts/ability/ability_runtime/aacommand/AACommandPrintOneTest/ |
H A D | hvigorw.bat | 11 @rem See the License for the specific language governing permissions and
|
/test/xts/acts/ability/ability_runtime/abilitystagemonitor/abilitystagemonitortest/ |
H A D | hvigorw.bat | 11 @rem See the License for the specific language governing permissions and
|
/test/xts/acts/ability/ability_runtime/abilitytoolabilitydelegatortest/ |
H A D | hvigorw.bat | 11 @rem See the License for the specific language governing permissions and
|
/test/xts/acts/ability/ability_runtime/actsabilityamstest/actsbacktocallerabilitywithresulttest/ |
H A D | hvigorw.bat | 11 @rem See the License for the specific language governing permissions and
|
/test/xts/acts/ability/ability_runtime/actsabilityamstest/systemappa/ |
H A D | hvigorw.bat | 11 @rem See the License for the specific language governing permissions and
|
/test/xts/acts/ability/ability_runtime/actsabilityrecoverytest/actsrecoveryability/ |
H A D | hvigorw.bat | 11 @rem See the License for the specific language governing permissions and
|
/test/xts/acts/ability/ability_runtime/actsautofilltest/ActsAutoFillAutomaticTest/ |
H A D | hvigorw.bat | 11 @rem See the License for the specific language governing permissions and
|
/test/xts/acts/ability/ability_runtime/actscalltest/systemappcalleea/ |
H A D | hvigorw.bat | 11 @rem See the License for the specific language governing permissions and
|
/test/xts/acts/ability/ability_runtime/actsjsdataabilitytest/ |
H A D | hvigorw.bat | 11 @rem See the License for the specific language governing permissions and
|
/test/xts/acts/ability/ability_runtime/actsnfcselecttypes/ActsNFCSelectTypesTestRelyFifth/ |
H A D | hvigorw.bat | 11 @rem See the License for the specific language governing permissions and
|
/test/xts/acts/ability/ability_runtime/actsnfcselecttypes/ActsNFCSelectTypesTestRelySecond/ |
H A D | hvigorw.bat | 11 @rem See the License for the specific language governing permissions and
|
/test/xts/acts/ability/ability_runtime/actsnfcselecttypes/ActsNFCSelectTypesTestRelyThird/ |
H A D | hvigorw.bat | 11 @rem See the License for the specific language governing permissions and
|
/test/xts/acts/ability/ability_runtime/actsqueryfunctiontest/actsgetabilitystatestagetest/ |
H A D | hvigorw.bat | 11 @rem See the License for the specific language governing permissions and
|
/test/xts/acts/ability/ability_runtime/actsresponseglobalparamupdatetest/actsresponseglobalparamupdaterelyb/ |
H A D | hvigorw.bat | 11 @rem See the License for the specific language governing permissions and
|