OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:permissionInfo
(Results
1 - 12
of
12
) sorted by null
/cts/tests/tests/content/src/android/content/pm/cts/
PermissionInfoTest.java
21
import android.content.pm.
PermissionInfo
;
37
new
PermissionInfo
();
38
PermissionInfo
permissionInfo
= pm.getPermissionInfo(PERMISSION_NAME, 0);
39
PermissionInfo
infoFromExisted = new
PermissionInfo
(
permissionInfo
);
40
checkInfoSame(
permissionInfo
, infoFromExisted);
43
assertNotNull(
permissionInfo
.toString());
44
assertEquals(0,
permissionInfo
.describeContents())
[
all
...]
PackageManagerTest.java
30
import android.content.pm.
PermissionInfo
;
111
List<
PermissionInfo
> permissions = mPackageManager.queryPermissionsByGroup(
150
private void checkPermissionInfoName(String expectedName, List<
PermissionInfo
> permissions) {
152
for (
PermissionInfo
permission : permissions) {
392
PermissionInfo
permissionInfo
= new
PermissionInfo
();
394
permissionInfo
.name = permissionName;
395
permissionInfo
.labelRes = R.string.permlab_testDynamic;
396
permissionInfo
.nonLocalizedLabel = "Test Tree"
[
all
...]
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/model/
PermissionGroups.java
28
import android.content.pm.
PermissionInfo
;
131
final List<
PermissionInfo
> groupPermissions;
141
for (
PermissionInfo
groupPermission : groupPermissions) {
143
if ((groupPermission.protectionLevel &
PermissionInfo
.PROTECTION_MASK_BASE)
144
==
PermissionInfo
.PROTECTION_DANGEROUS
145
&& (groupPermission.flags &
PermissionInfo
.FLAG_INSTALLED) != 0
146
&& (groupPermission.flags &
PermissionInfo
.FLAG_REMOVED) == 0) {
192
for (
PermissionInfo
permissionInfo
: installedPackage.permissions) {
194
if (!seenPermissions.add(
permissionInfo
.name))
[
all
...]
AppPermissionGroup.java
26
import android.content.pm.
PermissionInfo
;
66
PermissionInfo
permissionInfo
;
68
permissionInfo
= context.getPackageManager().getPermissionInfo(permissionName, 0);
73
if ((
permissionInfo
.protectionLevel &
PermissionInfo
.PROTECTION_MASK_BASE)
74
!=
PermissionInfo
.PROTECTION_DANGEROUS
75
|| (
permissionInfo
.flags &
PermissionInfo
.FLAG_INSTALLED) == 0
76
|| (
permissionInfo
.flags & PermissionInfo.FLAG_REMOVED) != 0)
[
all
...]
PermissionApps.java
24
import android.content.pm.
PermissionInfo
;
162
List<
PermissionInfo
> groupPermInfos = getGroupPermissionInfos(mGroupName);
185
PermissionInfo
requestedPermissionInfo = null;
187
for (
PermissionInfo
groupPermInfo : groupPermInfos) {
199
&
PermissionInfo
.PROTECTION_MASK_BASE)
200
!=
PermissionInfo
.PROTECTION_DANGEROUS
202
&
PermissionInfo
.FLAG_INSTALLED) == 0
204
&
PermissionInfo
.FLAG_REMOVED) != 0) {
264
private List<
PermissionInfo
> getGroupPermissionInfos(String groupName) {
271
PermissionInfo
permissionInfo = mContext.getPackageManager(
[
all
...]
/development/cmds/monkey/src/com/android/commands/monkey/
MonkeyPermissionEvent.java
22
import android.content.pm.
PermissionInfo
;
30
private
PermissionInfo
mPermissionInfo;
32
public MonkeyPermissionEvent(String pkg,
PermissionInfo
permissionInfo
) {
35
mPermissionInfo =
permissionInfo
;
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
PackageManagerPresubmitTest.java
22
import android.content.pm.
PermissionInfo
;
93
PermissionInfo
permissionInfo
= mPackageManager.getPermissionInfo(pName, 0);
95
permissionInfo
.packageName);
96
protectionLevel =
permissionInfo
.protectionLevel;
100
if ((protectionLevel &
PermissionInfo
.PROTECTION_FLAG_PRIVILEGED) != 0) {
/cts/tests/tests/permission2/src/android/permission2/cts/
PermissionPolicyTest.java
22
import android.content.pm.
PermissionInfo
;
56
Map<String,
PermissionInfo
> declaredPermissionsMap = new ArrayMap<>();
57
for (
PermissionInfo
declaredPermission : platformPackage.permissions) {
70
for (
PermissionInfo
expectedPermission : loadExpectedPermissions()) {
73
PermissionInfo
declaredPermission = declaredPermissionsMap.get(expectedPermissionName);
84
&
PermissionInfo
.PROTECTION_MASK_BASE;
86
&
PermissionInfo
.PROTECTION_MASK_BASE;
92
&
PermissionInfo
.PROTECTION_MASK_FLAGS;
94
&
PermissionInfo
.PROTECTION_MASK_FLAGS;
99
if ((declaredPermission.protectionLevel &
PermissionInfo
.PROTECTION_DANGEROUS) != 0)
[
all
...]
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/tester/android/content/pm/
StubPackageManager.java
13
import android.content.pm.
PermissionInfo
;
46
public
PermissionInfo
getPermissionInfo(String name, int flags) throws NameNotFoundException {
51
public List<
PermissionInfo
> queryPermissionsByGroup(String group, int flags) throws NameNotFoundException {
97
@Override public boolean addPermission(
PermissionInfo
info) {
101
@Override public boolean addPermissionAsync(
PermissionInfo
permissionInfo
) {
/external/robolectric/v3/
robolectric-3.1-SNAPSHOT.jar
/prebuilts/misc/common/robolectric/lib/
robolectric-3.1.1.jar
/frameworks/base/services/core/java/com/android/server/pm/
PackageManagerService.java
164
import android.content.pm.
PermissionInfo
;
[
all
...]
Completed in 263 milliseconds