Home
last modified time | relevance | path

Searched refs:mObserver (Results 1 – 25 of 28) sorted by relevance

12

/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
DSuggestionsTest.java37 private MockDataSetObserver mObserver; field in SuggestionsTest
44 mObserver = new MockDataSetObserver(); in setUp()
45 mSuggestions.registerDataSetObserver(mObserver); in setUp()
88 mObserver.assertNotChanged(); in testObserverNotified()
89 mObserver.assertNotInvalidated(); in testObserverNotified()
92 mObserver.assertChanged(); in testObserverNotified()
93 mObserver.assertNotInvalidated(); in testObserverNotified()
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/
DContactLoader.java34 ForceLoadContentObserver mObserver; field in ContactLoader
145 if (mObserver == null) { in deliverResult()
146 mObserver = new ForceLoadContentObserver(); in deliverResult()
148 getContext().getContentResolver().registerContentObserver(mLookupUri, true, mObserver); in deliverResult()
170 if (mObserver != null) { in stopLoading()
171 getContext().getContentResolver().unregisterContentObserver(mObserver); in stopLoading()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DUserBinaryDictionary.java66 private ContentObserver mObserver; field in UserBinaryDictionary
89 mObserver = new ContentObserver(null) { in UserBinaryDictionary()
113 cres.registerContentObserver(Words.CONTENT_URI, true, mObserver); in UserBinaryDictionary()
133 if (mObserver != null) { in close()
134 mContext.getContentResolver().unregisterContentObserver(mObserver); in close()
135 mObserver = null; in close()
DContactsBinaryDictionary.java63 private ContentObserver mObserver; field in ContactsBinaryDictionary
84 if (mObserver != null) return; in registerObserver()
86 cres.registerContentObserver(Contacts.CONTENT_URI, true, mObserver = in registerObserver()
101 if (mObserver != null) { in close()
102 mContext.getContentResolver().unregisterContentObserver(mObserver); in close()
103 mObserver = null; in close()
/packages/apps/Calculator/src/com/android/calculator2/
DHistory.java31 BaseAdapter mObserver; field in History
50 mObserver = observer; in setObserver()
54 if (mObserver != null) { in notifyChanged()
55 mObserver.notifyDataSetChanged(); in notifyChanged()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadService.java84 private DownloadManagerContentObserver mObserver; field in DownloadService
171 mObserver = new DownloadManagerContentObserver(); in onCreate()
173 true, mObserver); in onCreate()
189 getContentResolver().unregisterContentObserver(mObserver); in onDestroy()
271 getContentResolver().unregisterContentObserver(mObserver);
/packages/apps/Browser/src/com/android/browser/view/
DBasePieView.java33 private DataSetObserver mObserver; field in BasePieView
57 mAdapter.unregisterDataSetObserver(mObserver); in setAdapter()
62 mObserver = new DataSetObserver() { in setAdapter()
73 mAdapter.registerDataSetObserver(mObserver); in setAdapter()
DBookmarkExpandableView.java126 existing.unregisterDataSetObserver(mAdapter.mObserver); in addAccount()
130 adapter.registerDataSetObserver(mAdapter.mObserver); in addAccount()
135 adapter.registerDataSetObserver(mAdapter.mObserver); in addAccount()
277 DataSetObserver mObserver = new DataSetObserver() { field in BookmarkExpandableView.BookmarkAccountAdapter
/packages/apps/Contacts/src/com/android/contacts/model/
DContactLoader.java90 private ForceLoadContentObserver mObserver; field in ContactLoader
841 if (mObserver == null) { in deliverResult()
842 mObserver = new ForceLoadContentObserver(); in deliverResult()
845 mLookupUri, true, mObserver); in deliverResult()
888 if (mObserver != null) { in unregisterObserver()
889 getContext().getContentResolver().unregisterContentObserver(mObserver); in unregisterObserver()
890 mObserver = null; in unregisterObserver()
/packages/experimental/BugReportSender/src/com/android/bugreportsender/
DBugReportListActivity.java62 private FileObserver mObserver = null; field in BugReportListActivity
72 mObserver = new FileObserver(REPORT_DIR.getPath(), flags) { in onCreate()
95 mObserver.startWatching(); in onStart()
102 mObserver.stopWatching(); in onStop()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppTransferActivity.java113 private BluetoothTransferContentObserver mObserver; field in BluetoothOppTransferActivity
152 mObserver = new BluetoothTransferContentObserver(); in onCreate()
154 mObserver); in onCreate()
172 if (mObserver != null) { in onDestroy()
173 getContentResolver().unregisterContentObserver(mObserver); in onDestroy()
DBluetoothOppService.java91 private BluetoothShareContentObserver mObserver; field in BluetoothOppService
154 mObserver = new BluetoothShareContentObserver(); in onCreate()
155 getContentResolver().registerContentObserver(BluetoothShare.CONTENT_URI, true, mObserver); in onCreate()
333 getContentResolver().unregisterContentObserver(mObserver); in onDestroy()
/packages/apps/Dialer/src/com/android/dialer/list/
DPhoneFavoriteMergedAdapter.java58 private final DataSetObserver mObserver; field in PhoneFavoriteMergedAdapter
75 mObserver = new CustomDataSetObserver(); in PhoneFavoriteMergedAdapter()
76 mContactTileAdapter.registerDataSetObserver(mObserver); in PhoneFavoriteMergedAdapter()
77 mContactEntryListAdapter.registerDataSetObserver(mObserver); in PhoneFavoriteMergedAdapter()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
DAndroidWordLevelSpellCheckerSession.java54 private final ContentObserver mObserver; field in AndroidWordLevelSpellCheckerSession
103 mObserver = new ContentObserver(null) { in AndroidWordLevelSpellCheckerSession()
109 cres.registerContentObserver(Words.CONTENT_URI, true, mObserver); in AndroidWordLevelSpellCheckerSession()
123 cres.unregisterContentObserver(mObserver); in onClose()
/packages/apps/Calendar/src/com/android/calendar/selectcalendars/
DSelectVisibleCalendarsActivity.java43 private final ContentObserver mObserver = new ContentObserver(new Handler()) { field in SelectVisibleCalendarsActivity
79 true, mObserver); in onResume()
85 getContentResolver().unregisterContentObserver(mObserver); in onPause()
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
DDirectoryListLoader.java73 private final ContentObserver mObserver = new ContentObserver(new Handler()) { field in DirectoryListLoader
104 registerContentObserver(Directory.CONTENT_URI, false, mObserver); in onStartLoading()
110 getContext().getContentResolver().unregisterContentObserver(mObserver); in onStopLoading()
/packages/apps/Calendar/src/com/android/calendar/
DEventInfoActivity.java53 private final ContentObserver mObserver = new ContentObserver(new Handler()) { field in EventInfoActivity
186 true, mObserver); in onResume()
192 getContentResolver().unregisterContentObserver(mObserver); in onPause()
DSearchActivity.java83 private final ContentObserver mObserver = new ContentObserver(new Handler()) { field in SearchActivity
332 mContentResolver.registerContentObserver(Events.CONTENT_URI, true, mObserver); in onResume()
342 mContentResolver.unregisterContentObserver(mObserver); in onPause()
/packages/apps/Gallery2/src/com/android/photos/shims/
DMediaItemsLoader.java56 private ContentListener mObserver = new ContentListener() { field in MediaItemsLoader
80 mMediaSet.addContentListener(mObserver); in onStartLoading()
98 mMediaSet.removeContentListener(mObserver); in onStopLoading()
DMediaSetLoader.java53 private ContentListener mObserver = new ContentListener() { field in MediaSetLoader
78 mMediaSet.addContentListener(mObserver); in onStartLoading()
96 mMediaSet.removeContentListener(mObserver); in onStopLoading()
/packages/apps/Email/src/com/android/email/activity/
DMessageOrderManager.java61 private final ContentObserver mObserver; field in MessageOrderManager
139 mObserver = new ContentObserver(getHandlerForContentObserver()) { in MessageOrderManager()
377 mCursor.registerContentObserver(mObserver); in onCursorOpenDone()
/packages/apps/Gallery2/src/com/android/photos/views/
DGalleryThumbnailView.java59 private final AdapterDataSetObserver mObserver = new AdapterDataSetObserver(); field in GalleryThumbnailView
645 mAdapter.unregisterDataSetObserver(mObserver); in setAdapter()
654 adapter.registerDataSetObserver(mObserver); in setAdapter()
/packages/apps/Music/src/com/android/music/
DSortCursor.java40 private DataSetObserver mObserver = new DataSetObserver() { field in SortCursor
65 mCursors[i].registerDataSetObserver(mObserver); in SortCursor()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/state/
DStatePanelTrack.java61 private DataSetObserver mObserver = new DataSetObserver() { field in StatePanelTrack
130 mAdapter.registerDataSetObserver(mObserver); in setAdapter()
/packages/apps/Calendar/src/com/android/calendar/month/
DSimpleDayPickerFragment.java146 protected DataSetObserver mObserver = new DataSetObserver() { field in SimpleDayPickerFragment
209 mAdapter.registerDataSetObserver(mObserver); in setUpAdapter()

12