Lines Matching refs:listener
37 * TODO: Replace this object with a more generic listener class. TODO: Replace
93 * Register a listener filtered by a particular image object. If image is
95 * registered listener.
97 * @param listener The listener to be registered.
98 * @param image The specific image to filter the events to the listener. If
99 * null, then the listener receives events from all images that
102 public void registerListener(ImageProcessorListener listener,
107 if (!mRegisteredListeners.contains(listener)) {
108 mRegisteredListeners.add(listener);
109 logWrapper("Listener will be overwritten.");
113 mImageFilter.put(listener, null);
115 mImageFilter.put(listener, image.getTimestamp());
136 public void unregisterListener(ImageProcessorListener listener) {
138 if (mRegisteredListeners.contains(listener)) {
139 mRegisteredListeners.remove(listener);
140 mImageFilter.remove(listener);
144 logWrapper("Couldn't find listener. There are " + mRegisteredListeners.size()