Example usage for android.content.pm PermissionInfo PermissionInfo

List of usage examples for android.content.pm PermissionInfo PermissionInfo

Introduction

In this page you can find the example usage for android.content.pm PermissionInfo PermissionInfo.

Prototype

private PermissionInfo(Parcel source) 

Source Link

Usage

From source file:android.content.pm.PackageParser.java

public static final PermissionInfo generatePermissionInfo(Permission p, int flags) {
    if (p == null)
        return null;
    if ((flags & PackageManager.GET_META_DATA) == 0) {
        return p.info;
    }/*from  w ww.java2 s  . c  o m*/
    PermissionInfo pi = new PermissionInfo(p.info);
    pi.metaData = p.metaData;
    return pi;
}