Home
last modified time | relevance | path

Searched refs:TEST_APP_ID (Results 1 – 11 of 11) sorted by relevance

/test/xts/acts/security_lite/permission_posix/pms/src/
DActsPMSLoadTest.cpp83 DeletePermissions(TEST_APP_ID); in TearDown()
117 SaveOrUpdatePermissions(TEST_APP_ID, g_systemPers, SYS_PERM_NUM, FIRST_INSTALL);
118 int ret = LoadPermissions(TEST_APP_ID, TEST_TASKID);
125 DeletePermissions(TEST_APP_ID);
135 SaveOrUpdatePermissions(TEST_APP_ID, g_systemPers, SYS_PERM_NUM, FIRST_INSTALL);
136 g_interface->GrantPermission(TEST_APP_ID, g_systemPers[0].name);
137 int ret = LoadPermissions(TEST_APP_ID, TEST_TASKID);
146 DeletePermissions(TEST_APP_ID);
156 SaveOrUpdatePermissions(TEST_APP_ID, g_systemPers, SYS_PERM_NUM, FIRST_INSTALL);
157 g_interface->GrantPermission(TEST_APP_ID, g_systemPers[0].name);
[all …]
DActsPMSRevokeTest.cpp88 DeletePermissions(TEST_APP_ID); in TearDown()
103 SaveOrUpdatePermissions(TEST_APP_ID, g_systemPers, SYS_PERM_NUM, FIRST_INSTALL);
104 g_interface->GrantPermission(TEST_APP_ID, g_systemPers[0].name);
105 int ret = g_interface->RevokePermission(TEST_APP_ID, g_systemPers[0].name);
107 ret = g_interface->RevokePermission(TEST_APP_ID, g_systemPers[1].name);
111 ret = g_interface->QueryPermission(TEST_APP_ID, &permissions, &permNum);
117 DeletePermissions(TEST_APP_ID);
127 SaveOrUpdatePermissions(TEST_APP_ID, g_systemPers, SYS_PERM_NUM, FIRST_INSTALL);
128 LoadPermissions(TEST_APP_ID, TEST_TASKID);
129 int ret = g_interface->RevokePermission(TEST_APP_ID, g_systemPers[0].name);
[all …]
DActsPMSSaveTest.cpp170 DeletePermissions(TEST_APP_ID); in TearDown()
240 int ret = SaveOrUpdatePermissions(TEST_APP_ID, pt, 0, FIRST_INSTALL);
242 CheckAppPermission(TEST_APP_ID, PERM_ERRORCODE_FILE_NOT_EXIST, 0, pt);
243 DeletePermissions(TEST_APP_ID);
253 int ret = SaveOrUpdatePermissions(TEST_APP_ID, g_systemPers, SYS_PERM_NUM, FIRST_INSTALL);
255 CheckAppPermission(TEST_APP_ID, PERM_ERRORCODE_SUCCESS, SYS_PERM_NUM, g_systemPers);
256 DeletePermissions(TEST_APP_ID);
270 ret = SaveOrUpdatePermissions(TEST_APP_ID, pt, 1, FIRST_INSTALL);
272 CheckAppPermission(TEST_APP_ID, PERM_ERRORCODE_SUCCESS, 1, pt);
273 DeletePermissions(TEST_APP_ID);
[all …]
DActsPMSUnloadTest.cpp83 DeletePermissions(TEST_APP_ID); in TearDown()
98 SaveOrUpdatePermissions(TEST_APP_ID, g_systemPers, SYS_PERM_NUM, FIRST_INSTALL);
99 LoadPermissions(TEST_APP_ID, MAX_PID);
102 LoadPermissions(TEST_APP_ID, MIN_PID);
105 DeletePermissions(TEST_APP_ID);
115 SaveOrUpdatePermissions(TEST_APP_ID, g_systemPers, SYS_PERM_NUM, FIRST_INSTALL);
116 LoadPermissions(TEST_APP_ID, TEST_TASKID);
117 DeletePermissions(TEST_APP_ID);
129 SaveOrUpdatePermissions(TEST_APP_ID, g_systemPers, SYS_PERM_NUM, FIRST_INSTALL);
132 DeletePermissions(TEST_APP_ID);
[all …]
DActsPMSGrantTest.cpp88 DeletePermissions(TEST_APP_ID); in TearDown()
103 SaveOrUpdatePermissions(TEST_APP_ID, g_systemPers, SYS_PERM_NUM, FIRST_INSTALL);
104 int ret = g_interface->GrantPermission(TEST_APP_ID, g_systemPers[0].name);
106 LoadPermissions(TEST_APP_ID, TEST_TASKID);
110 DeletePermissions(TEST_APP_ID);
120 SaveOrUpdatePermissions(TEST_APP_ID, g_systemPers, SYS_PERM_NUM, FIRST_INSTALL);
121 LoadPermissions(TEST_APP_ID, TEST_TASKID);
122 int ret = g_interface->GrantPermission(TEST_APP_ID, g_systemPers[0].name);
126 ret = g_interface->QueryPermission(TEST_APP_ID, &permissions, &permNum);
134 DeletePermissions(TEST_APP_ID);
[all …]
DActsPMSDeleteTest.cpp83 DeletePermissions(TEST_APP_ID); in TearDown()
98 int ret = SaveOrUpdatePermissions(TEST_APP_ID, g_systemPers, SYS_PERM_NUM, FIRST_INSTALL);
100 ret = DeletePermissions(TEST_APP_ID);
102 CheckAppPermission(TEST_APP_ID, PERM_ERRORCODE_FILE_NOT_EXIST, 0, g_systemPers);
112 int ret = DeletePermissions(TEST_APP_ID);
114 ret = SaveOrUpdatePermissions(TEST_APP_ID, g_systemPers, SYS_PERM_NUM, FIRST_INSTALL);
116 ret = DeletePermissions(TEST_APP_ID);
118 ret = DeletePermissions(TEST_APP_ID);
129 int ret = SaveOrUpdatePermissions(TEST_APP_ID, g_systemPers, SYS_PERM_NUM, FIRST_INSTALL);
133 ret = DeletePermissions(TEST_APP_ID);
[all …]
DActsPMSGrantRuntimeTest.cpp83 DeletePermissions(TEST_APP_ID); in TearDown()
98 SaveOrUpdatePermissions(TEST_APP_ID, g_systemPers, SYS_PERM_NUM, FIRST_INSTALL);
99 LoadPermissions(TEST_APP_ID, MAX_PID);
105 LoadPermissions(TEST_APP_ID, MIN_PID);
111 DeletePermissions(TEST_APP_ID);
121 SaveOrUpdatePermissions(TEST_APP_ID, g_systemPers, SYS_PERM_NUM, FIRST_INSTALL);
126 DeletePermissions(TEST_APP_ID);
136 SaveOrUpdatePermissions(TEST_APP_ID, g_systemPers, SYS_PERM_NUM, FIRST_INSTALL);
137 LoadPermissions(TEST_APP_ID, TEST_TASKID);
143 DeletePermissions(TEST_APP_ID);
[all …]
DActsPMSRevokeRuntimeTest.cpp83 DeletePermissions(TEST_APP_ID); in TearDown()
99 SaveOrUpdatePermissions(TEST_APP_ID, g_systemPers, SYS_PERM_NUM, FIRST_INSTALL);
100 LoadPermissions(TEST_APP_ID, MAX_PID);
106 LoadPermissions(TEST_APP_ID, MIN_PID);
112 DeletePermissions(TEST_APP_ID);
123 SaveOrUpdatePermissions(TEST_APP_ID, g_systemPers, SYS_PERM_NUM, FIRST_INSTALL);
128 DeletePermissions(TEST_APP_ID);
139 SaveOrUpdatePermissions(TEST_APP_ID, g_systemPers, SYS_PERM_NUM, FIRST_INSTALL);
140 LoadPermissions(TEST_APP_ID, TEST_TASKID);
146 DeletePermissions(TEST_APP_ID);
[all …]
DActsPMSUpdatePermissionTest.cpp85 DeletePermissions(TEST_APP_ID); in TearDown()
107 SaveOrUpdatePermissions(TEST_APP_ID, g_systemPers, SYS_PERM_NUM, FIRST_INSTALL);
111 int ret = g_interface->QueryPermission(TEST_APP_ID, &permissions, &permNum);
120 ret = g_interface->UpdatePermissionFlags(TEST_APP_ID, g_systemPers[0].name, PMS_FLAG_DEFAULT);
123 ret = g_interface->QueryPermission(TEST_APP_ID, &permissions, &permNum);
129 DeletePermissions(TEST_APP_ID);
139 SaveOrUpdatePermissions(TEST_APP_ID, g_systemPers, SYS_PERM_NUM, FIRST_INSTALL);
143 int ret = g_interface->QueryPermission(TEST_APP_ID, &permissions, &permNum);
152 … ret = g_interface->UpdatePermissionFlags(TEST_APP_ID, g_systemPers[0].name, PMS_FLAG_USER_FIXED);
155 ret = g_interface->QueryPermission(TEST_APP_ID, &permissions, &permNum);
[all …]
DActsPMSCheckTest.cpp83 DeletePermissions(TEST_APP_ID); in TearDown()
98 SaveOrUpdatePermissions(TEST_APP_ID, g_systemPers, SYS_PERM_NUM, FIRST_INSTALL);
99 LoadPermissions(TEST_APP_ID, MAX_PID);
104 LoadPermissions(TEST_APP_ID, MIN_PID);
109 DeletePermissions(TEST_APP_ID);
119 SaveOrUpdatePermissions(TEST_APP_ID, g_systemPers, SYS_PERM_NUM, FIRST_INSTALL);
120 LoadPermissions(TEST_APP_ID, TEST_TASKID);
125 DeletePermissions(TEST_APP_ID);
135 SaveOrUpdatePermissions(TEST_APP_ID, g_systemPers, SYS_PERM_NUM, FIRST_INSTALL);
136 LoadPermissions(TEST_APP_ID, TEST_TASKID);
[all …]
DActsPMSTest.h41 #define TEST_APP_ID "com.permission.test" macro