OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:protectionLevel
(Results
1 - 5
of
5
) sorted by null
/cts/hostsidetests/appsecurity/test-apps/PermissionPolicy25/src/com/android/cts/permission/policy/
PermissionPolicyTest25.java
45
final int
protectionLevel
= permissionInfo.
protectionLevel
49
final int protectionFlags = permissionInfo.
protectionLevel
& ~
protectionLevel
;
50
if (
protectionLevel
== PermissionInfo.PROTECTION_NORMAL && protectionFlags != 0) {
52
+ protectionFlagsToString(permissionInfo.
protectionLevel
)
55
if (
protectionLevel
== PermissionInfo.PROTECTION_DANGEROUS && protectionFlags != 0) {
57
+ protectionFlagsToString(permissionInfo.
protectionLevel
)
66
private static String protectionFlagsToString(int
protectionLevel
) {
68
if ((
protectionLevel
& PermissionInfo.PROTECTION_FLAG_RUNTIME_ONLY) != 0)
[
all
...]
/external/robolectric-shadows/resources/src/main/java/org/robolectric/manifest/
PermissionItemData.java
11
private final String
protectionLevel
;
14
String permissionGroup, String
protectionLevel
, MetaData metaData) {
20
this.
protectionLevel
=
protectionLevel
;
36
return
protectionLevel
;
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
LegacyManifestParserTest.java
34
int
protectionLevel
=
36
.
protectionLevel
;
37
assertThat(
protectionLevel
)
44
int
protectionLevel
=
46
.
protectionLevel
;
47
assertThat(
protectionLevel
).isEqualTo(PermissionInfo.PROTECTION_NORMAL);
53
int
protectionLevel
=
55
.
protectionLevel
;
56
assertThat(
protectionLevel
)
64
int
protectionLevel
[
all
...]
/cts/tests/tests/permission2/src/android/permission2/cts/
PrivappPermissionsTest.java
92
int
protectionLevel
= permission.
protectionLevel
;
93
if ((
protectionLevel
& PermissionInfo.PROTECTION_FLAG_PRIVILEGED) != 0) {
PermissionPolicyTest.java
82
private static final String ATTR_PROTECTION_LEVEL = "
protectionLevel
";
130
final int expectedProtection = expectedPermission.
protectionLevel
132
final int declaredProtection = declaredPermission.
protectionLevel
155
expectedPermission.
protectionLevel
& ~PROTECTION_MASK_BASE;
167
if ((declaredPermission.
protectionLevel
& PermissionInfo.PROTECTION_DANGEROUS) != 0) {
223
if ((info.
protectionLevel
& PermissionInfo.PROTECTION_FLAG_INSTANT) != 0) {
331
int
protectionLevel
= 0;
336
protectionLevel
|= PermissionInfo.PROTECTION_NORMAL;
339
protectionLevel
|= PermissionInfo.PROTECTION_DANGEROUS;
342
protectionLevel
|= PermissionInfo.PROTECTION_SIGNATURE
[
all
...]
Completed in 119 milliseconds