Java 类android.app.usage.ConfigurationStats 实例源码

项目:XPrivacy    文件:XUsageStatsManager.java   
@Override
protected void after(XParam param) throws Throwable {
    switch (mMethod) {
    case queryAndAggregateUsageStats:
        if (isRestricted(param))
            param.setResult(new HashMap<String, UsageStats>());
        break;
    case queryConfigurations:
    case Srv_queryConfigurationStats:
        if (isRestricted(param))
            param.setResult(new ArrayList<ConfigurationStats>());
        break;
    case queryEvents:
    case Srv_queryEvents:
        // Do nothing
        break;
    case queryUsageStats:
    case Srv_queryUsageStats:
        if (isRestricted(param))
            param.setResult(new ArrayList<UsageStats>());
        break;
    }
}
项目:smarper    文件:XUsageStatsManager.java   
@Override
protected void after(XParam param) throws Throwable {
    switch (mMethod) {
    case queryAndAggregateUsageStats:
        if (isRestricted(param))
            param.setResult(new HashMap<String, UsageStats>());
        break;
    case queryConfigurations:
    case Srv_queryConfigurationStats:
        if (isRestricted(param))
            param.setResult(new ArrayList<ConfigurationStats>());
        break;
    case queryEvents:
    case Srv_queryEvents:
        // Do nothing
        break;
    case queryUsageStats:
    case Srv_queryUsageStats:
        if (isRestricted(param))
            param.setResult(new ArrayList<UsageStats>());
        break;
    }
}
项目:xprivacy-mod    文件:XUsageStatsManager.java   
@Override
protected void after(XParam param) throws Throwable {
    switch (mMethod) {
    case queryAndAggregateUsageStats:
        if (isRestricted(param))
            param.setResult(new HashMap<String, UsageStats>());
        break;
    case queryConfigurations:
    case Srv_queryConfigurationStats:
        if (isRestricted(param))
            param.setResult(new ArrayList<ConfigurationStats>());
        break;
    case queryEvents:
    case Srv_queryEvents:
        // Do nothing
        break;
    case queryUsageStats:
    case Srv_queryUsageStats:
        if (isRestricted(param))
            param.setResult(new ArrayList<UsageStats>());
        break;
    }
}