OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:permissionInfo
(Results
1 - 9
of
9
) 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
;
120
final List<
PermissionInfo
> groupPermissions;
130
for (
PermissionInfo
groupPermission : groupPermissions) {
132
if (groupPermission.protectionLevel ==
PermissionInfo
.PROTECTION_DANGEROUS
133
&& (groupPermission.flags &
PermissionInfo
.FLAG_INSTALLED) != 0
134
&& (groupPermission.flags &
PermissionInfo
.FLAG_REMOVED) == 0) {
175
for (
PermissionInfo
permissionInfo
: installedPackage.permissions) {
177
if (!seenPermissions.add(
permissionInfo
.name)) {
182
if (
permissionInfo
.protectionLevel != PermissionInfo.PROTECTION_DANGEROU
[
all
...]
AppPermissionGroup.java
26
import android.content.pm.
PermissionInfo
;
63
PermissionInfo
permissionInfo
;
65
permissionInfo
= context.getPackageManager().getPermissionInfo(permissionName, 0);
70
if (
permissionInfo
.protectionLevel !=
PermissionInfo
.PROTECTION_DANGEROUS
71
|| (
permissionInfo
.flags &
PermissionInfo
.FLAG_INSTALLED) == 0
72
|| (
permissionInfo
.flags &
PermissionInfo
.FLAG_REMOVED) != 0)
[
all
...]
PermissionApps.java
24
import android.content.pm.
PermissionInfo
;
145
List<
PermissionInfo
> groupPermInfos = getGroupPermissionInfos(mGroupName);
168
PermissionInfo
requestedPermissionInfo = null;
170
for (
PermissionInfo
groupPermInfo : groupPermInfos) {
182
!=
PermissionInfo
.PROTECTION_DANGEROUS
184
&
PermissionInfo
.FLAG_INSTALLED) == 0
186
&
PermissionInfo
.FLAG_REMOVED) != 0) {
246
private List<
PermissionInfo
> getGroupPermissionInfos(String groupName) {
253
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
;
/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
Completed in 231 milliseconds