Home | History | Annotate | Download | only in server

Lines Matching defs:scorer

63     /** Lock used to update mReceiver when scorer package changes occur. */
66 /** Clears scores when the active scorer package is no longer valid. */
84 // Package change has invalidated a scorer.
101 // On first run, we try to initialize the scorer to the one configured at build time.
102 // This will be a no-op if the scorer isn't actually valid.
115 NetworkScorerAppData scorer = NetworkScorerAppManager.getActiveScorer(mContext);
117 // Unregister the receiver if the current scorer has changed since last registration.
126 // Register receiver if a scorer is active.
127 if (scorer != null) {
133 filter.addDataSchemeSpecificPart(scorer.mPackageName,
135 mReceiver = new ScorerChangedReceiver(scorer.mPackageName);
139 Log.v(TAG, "Registered receiver for " + scorer.mPackageName);
149 " is not the active scorer.");
163 // Pass the scores of each type down to the appropriate network scorer.
175 Log.v(TAG, "No scorer registered for type " + entry.getKey() + ", discarding");
184 // Only the active scorer or the system (who can broadcast BROADCAST_NETWORK_PRIVILEGED)
193 "Caller is neither the active scorer nor the scorer manager.");
200 // to directly set the scorer app rather than having to use the consent dialog. The
201 // assumption is that anyone bundling a scorer app with the system is trusted by the OEM to
214 // Only the active scorer or the system (who can broadcast BROADCAST_NETWORK_PRIVILEGED)
220 // succeed. The only reason for failure is if the new package is not a valid scorer, but
225 "Caller is neither the active scorer nor the scorer manager.");
229 /** Set the active scorer. Callers are responsible for checking permissions as appropriate. */
285 writer.println("Current scorer: " + currentScorer.mPackageName);
304 * if a new scorer is registered during that action's execution.