Methods Summary |
---|
private final android.app.INotificationManager | getNotificationInterface()
if (mNoMan == null) {
mNoMan = INotificationManager.Stub.asInterface(
ServiceManager.getService(Context.NOTIFICATION_SERVICE));
}
return mNoMan;
|
private boolean | isBound()
if (mProvider == null) {
Log.w(TAG, "Condition provider service not yet bound.");
return false;
}
return true;
|
public final void | notifyCondition(Condition condition)
if (condition == null) return;
notifyConditions(new Condition[]{ condition });
|
public final void | notifyConditions(Condition conditions)
if (!isBound() || conditions == null) return;
try {
getNotificationInterface().notifyConditions(getPackageName(), mProvider, conditions);
} catch (android.os.RemoteException ex) {
Log.v(TAG, "Unable to contact notification manager", ex);
}
|
public android.os.IBinder | onBind(android.content.Intent intent)
if (mProvider == null) {
mProvider = new Provider();
}
return mProvider;
|
public abstract void | onConnected()
|
public abstract void | onRequestConditions(int relevance)
|
public abstract void | onSubscribe(android.net.Uri conditionId)
|
public abstract void | onUnsubscribe(android.net.Uri conditionId)
|