Searched defs:observer (Results 1 - 25 of 60) sorted by relevance

123

/frameworks/base/core/java/android/database/
H A DContentObservable.java31 public void registerObserver(ContentObserver observer) { argument
32 super.registerObserver(observer);
36 * Invokes {@link ContentObserver#dispatchChange(boolean)} on each observer.
39 * to the observer if it has indicated that it wants to receive self-change
54 * Invokes {@link ContentObserver#dispatchChange(boolean, Uri)} on each observer.
58 * to the observer if it has indicated that it wants to receive self-change
68 for (ContentObserver observer : mObservers) {
69 if (!selfChange || observer.deliverSelfNotifications()) {
70 observer.dispatchChange(selfChange, uri);
77 * Invokes {@link ContentObserver#onChange} on each observer
[all...]
H A DObservable.java27 * @param T The observer type.
31 * The list of observers. An observer can be in the list at most
37 * Adds an observer to the list. The observer cannot be null and it must not already
39 * @param observer the observer to register
40 * @throws IllegalArgumentException the observer is null
41 * @throws IllegalStateException the observer is already registered
43 public void registerObserver(T observer) { argument
44 if (observer
62 unregisterObserver(T observer) argument
[all...]
H A DBulkCursorNative.java91 IContentObserver observer =
93 int count = requery(observer);
222 public int requery(IContentObserver observer) throws RemoteException { argument
227 data.writeStrongInterface(observer);
H A DIBulkCursor.java50 public int requery(IContentObserver observer) throws RemoteException; argument
H A DCursorToBulkCursorAdaptor.java91 public CursorToBulkCursorAdaptor(Cursor cursor, IContentObserver observer, argument
101 createAndRegisterObserverProxyLocked(observer);
217 public int requery(IContentObserver observer) { argument
235 createAndRegisterObserverProxyLocked(observer);
241 * Create a ContentObserver from the observer and register it as an observer on the
243 * @param observer the IContentObserver that wants to monitor the cursor
244 * @throws IllegalStateException if an observer is already registered
246 private void createAndRegisterObserverProxyLocked(IContentObserver observer) { argument
248 throw new IllegalStateException("an observer i
[all...]
H A DMergeCursor.java181 public void registerContentObserver(ContentObserver observer) { argument
185 mCursors[i].registerContentObserver(observer);
190 public void unregisterContentObserver(ContentObserver observer) { argument
194 mCursors[i].unregisterContentObserver(observer);
200 public void registerDataSetObserver(DataSetObserver observer) { argument
204 mCursors[i].registerDataSetObserver(observer);
210 public void unregisterDataSetObserver(DataSetObserver observer) { argument
214 mCursors[i].unregisterDataSetObserver(observer);
H A DCursor.java381 * Register an observer that is called when changes happen to the content backing this cursor.
384 * @param observer the object that gets notified when the content backing the cursor changes.
387 void registerContentObserver(ContentObserver observer); argument
390 * Unregister an observer that has previously been registered with this
393 * @param observer the object to unregister.
396 void unregisterContentObserver(ContentObserver observer); argument
399 * Register an observer that is called when changes happen to the contents
403 * @param observer the object that gets notified when the cursors data set changes.
406 void registerDataSetObserver(DataSetObserver observer); argument
409 * Unregister an observer tha
415 unregisterDataSetObserver(DataSetObserver observer) argument
[all...]
H A DCursorWrapper.java177 public void registerContentObserver(ContentObserver observer) { argument
178 mCursor.registerContentObserver(observer);
181 public void registerDataSetObserver(DataSetObserver observer) { argument
182 mCursor.registerDataSetObserver(observer);
197 public void unregisterContentObserver(ContentObserver observer) { argument
198 mCursor.unregisterContentObserver(observer);
201 public void unregisterDataSetObserver(DataSetObserver observer) { argument
202 mCursor.unregisterDataSetObserver(observer);
/frameworks/base/core/java/android/app/backup/
H A DBackupManager.java135 * @param observer The {@link RestoreObserver} to receive callbacks during the restore
140 public int requestRestore(RestoreObserver observer) { argument
150 result = session.restorePackage(mContext.getPackageName(), observer);
H A DRestoreSession.java43 * @param observer a RestoreObserver object whose restoreSetsAvailable() method will
47 * @return Zero on success, nonzero on error. The observer's restoreSetsAvailable()
50 public int getAvailableRestoreSets(RestoreObserver observer) { argument
52 RestoreObserverWrapper obsWrapper = new RestoreObserverWrapper(mContext, observer);
67 * @return Zero on success; nonzero on error. The observer will only receive
71 * @param observer If non-null, this binder points to an object that will receive
74 public int restoreAll(long token, RestoreObserver observer) { argument
80 mObserver = new RestoreObserverWrapper(mContext, observer);
96 * @return Zero on success, nonzero on error. The observer will only receive
100 * @param observer I
108 restoreSome(long token, RestoreObserver observer, String[] packages) argument
138 restorePackage(String packageName, RestoreObserver observer) argument
[all...]
/frameworks/base/core/java/android/widget/
H A DAdapter.java35 * Register an observer that is called when changes happen to the data used by this adapter.
37 * @param observer the object that gets notified when the data set changes.
39 void registerDataSetObserver(DataSetObserver observer); argument
42 * Unregister an observer that has previously been registered with this
45 * @param observer the object to unregister.
47 void unregisterDataSetObserver(DataSetObserver observer); argument
H A DBaseAdapter.java37 public void registerDataSetObserver(DataSetObserver observer) { argument
38 mDataSetObservable.registerObserver(observer);
41 public void unregisterDataSetObserver(DataSetObserver observer) { argument
42 mDataSetObservable.unregisterObserver(observer);
H A DBaseExpandableListAdapter.java37 public void registerDataSetObserver(DataSetObserver observer) { argument
38 mDataSetObservable.registerObserver(observer);
41 public void unregisterDataSetObserver(DataSetObserver observer) { argument
42 mDataSetObservable.unregisterObserver(observer);
H A DExpandableListAdapter.java33 void registerDataSetObserver(DataSetObserver observer); argument
38 void unregisterDataSetObserver(DataSetObserver observer); argument
H A DHeaderViewListAdapter.java248 public void registerDataSetObserver(DataSetObserver observer) { argument
250 mAdapter.registerDataSetObserver(observer);
254 public void unregisterDataSetObserver(DataSetObserver observer) { argument
256 mAdapter.unregisterDataSetObserver(observer);
/frameworks/av/media/libmediaplayerservice/
H A DHDCP.cpp67 status_t HDCP::setObserver(const sp<IHDCPObserver> &observer) { argument
74 mObserver = observer;
/frameworks/av/media/libstagefright/
H A DMediaBuffer.cpp173 void MediaBuffer::setObserver(MediaBufferObserver *observer) { argument
174 CHECK(observer == NULL || mObserver == NULL);
175 mObserver = observer;
/frameworks/base/test-runner/src/android/test/mock/
H A DMockContentResolver.java132 * @param observer (Ignored) The observer that originated the change.
137 ContentObserver observer,
136 notifyChange(Uri uri, ContentObserver observer, boolean syncToNetwork) argument
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
H A DBridgeContentResolver.java85 ContentObserver observer) {
93 public void unregisterContentObserver(ContentObserver observer) { argument
101 public void notifyChange(Uri uri, ContentObserver observer, boolean syncToNetwork) { argument
84 registerContentObserver(Uri uri, boolean notifyForDescendents, ContentObserver observer) argument
/frameworks/av/media/libmedia/
H A DIHDCP.cpp62 virtual status_t setObserver(const sp<IHDCPObserver> &observer) { argument
65 data.writeStrongBinder(observer->asBinder());
149 sp<IHDCPObserver> observer = local
152 reply->writeInt32(setObserver(observer));
/frameworks/base/core/java/android/os/
H A DFileObserver.java91 public int startWatching(String path, int mask, FileObserver observer) { argument
97 m_observers.put(i, new WeakReference(observer));
109 // look up our observer, fixing up the map if necessary...
110 FileObserver observer = null;
115 observer = (FileObserver) weak.get();
116 if (observer == null) {
122 // ...then call out to the observer without the sync lock held
123 if (observer != null) {
125 observer.onEvent(mask, path);
127 Log.wtf(LOG_TAG, "Unhandled exception in FileObserver " + observer, throwabl
[all...]
H A DUEventObserver.java164 /** Many to many mapping of string match to observer.
167 * elements the corresponding UEventObserver observer */
198 final UEventObserver observer =
200 mTempObserversToSignal.add(observer);
209 final UEventObserver observer = mTempObserversToSignal.get(i);
210 observer.onUEvent(event);
216 public void addObserver(String match, UEventObserver observer) { argument
219 mKeysAndObservers.add(observer);
224 /** Removes every key/value pair where value=observer from mObservers */
225 public void removeObserver(UEventObserver observer) { argument
[all...]
/frameworks/base/core/java/com/android/internal/database/
H A DSortCursor.java64 // Register ourself as a data set observer
275 public void registerDataSetObserver(DataSetObserver observer) { argument
279 mCursors[i].registerDataSetObserver(observer);
285 public void unregisterDataSetObserver(DataSetObserver observer) { argument
289 mCursors[i].unregisterDataSetObserver(observer);
/frameworks/support/v4/java/android/support/v4/view/
H A DPagerAdapter.java279 void registerDataSetObserver(DataSetObserver observer) { argument
280 mObservable.registerObserver(observer);
283 void unregisterDataSetObserver(DataSetObserver observer) { argument
284 mObservable.unregisterObserver(observer);
/frameworks/base/core/java/android/content/
H A DCursorLoader.java92 * Registers an observer to get notifications from the content provider
95 void registerContentObserver(Cursor cursor, ContentObserver observer) { argument

Completed in 202 milliseconds

123