Lines Matching refs:Observer
118 final SafeIterableMap<Observer, ObserverWrapper> mObserverMap = new SafeIterableMap<>();
219 * If one of the tables in the Observer does not exist in the database, this method throws an
225 public void addObserver(@NonNull Observer observer) {
261 public void addWeakObserver(Observer observer) {
272 public void removeObserver(@NonNull final Observer observer) {
347 for (Map.Entry<Observer, ObserverWrapper> entry : mObserverMap) {
468 * related information is kept here rather than in the Observer.
475 final Observer mObserver;
478 ObserverWrapper(Observer observer, int[] tableIds, String[] tableNames, long[] versions) {
521 public abstract static class Observer {
531 protected Observer(@NonNull String firstTable, String... rest) {
541 public Observer(@NonNull String[] tables) {
668 * An Observer wrapper that keeps a weak reference to the given object.
672 static class WeakObserver extends Observer {
674 final WeakReference<Observer> mDelegateRef;
676 WeakObserver(InvalidationTracker tracker, Observer delegate) {
684 final Observer observer = mDelegateRef.get();