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

PackagePriorityExtractor

public class PackagePriorityExtractor 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 packagePriority = mConfig.getPackagePriority(
                record.sbn.getPackageName(), record.sbn.getUid());
        record.setPackagePriority(packagePriority);

        return null;
    
public voidsetConfig(RankingConfig config)

        mConfig = config;