Code example for PackageInfo

0
            packageInfo.packageName = packageName;
        } 
 
        updateDirectoriesForPackage(packageInfo, false);
    } 
 
 
    /** 
     * Scans the specified package for content directories and updates the {@link Directory} 
     * table accordingly. 
     */ 
    private List<DirectoryInfo> updateDirectoriesForPackage(
            PackageInfo packageInfo, boolean initialScan) {
        ArrayList<DirectoryInfo> directories = Lists.newArrayList();
 
        ProviderInfo[] providers = packageInfo.providers;
        if (providers != null) {
            for (ProviderInfo provider : providers) {
                if (isDirectoryProvider(provider)) {
                    queryDirectoriesForAuthority(directories, provider);
                }