FileDocCategorySizeDatePackage
PackageVisibilityExtractor.javaAPI DocAndroid 5.1 API1762Thu Mar 12 22:22:42 GMT 2015com.android.server.notification

PackageVisibilityExtractor

public class PackageVisibilityExtractor extends Object implements NotificationSignalExtractor

Fields Summary
private static final String
TAG
private static final boolean
DBG
private RankingConfig
mConfig
Constructors Summary
Methods Summary
public voidinitialize(android.content.Context ctx)


        
        if (DBG) Slog.d(TAG, "Initializing  " + getClass().getSimpleName() + ".");
    
public RankingReconsiderationprocess(NotificationRecord record)

        if (record == null || record.getNotification() == null) {
            if (DBG) Slog.d(TAG, "skipping empty notification");
            return null;
        }

        if (mConfig == null) {
            if (DBG) Slog.d(TAG, "missing config");
            return null;
        }

        final int packageVisibility = mConfig.getPackageVisibilityOverride(
                record.sbn.getPackageName(), record.sbn.getUid());
        record.setPackageVisibilityOverride(packageVisibility);

        return null;
    
public voidsetConfig(RankingConfig config)

        mConfig = config;