Home
last modified time | relevance | path

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

12

/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMnsObexClient.java62 private BluetoothMapContentObserver mObserver; field in BluetoothMnsObexClient
85 mObserver = new BluetoothMapContentObserver(mContext); in BluetoothMnsObexClient()
86 mObserver.init(); in BluetoothMnsObexClient()
94 return mObserver; in getContentObserver()
175 mObserver.unregisterObserver(); in shutdown()
178 if (mObserver != null) { in shutdown()
179 mObserver.deinit(); in shutdown()
180 mObserver = null; in shutdown()
198 mObserver.unregisterObserver(); in handleRegistration()
207 mObserver.registerObserver(this, masId); in handleRegistration()
/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.java74 private ContentObserver mObserver; field in UserBinaryDictionary
98 mObserver = new ContentObserver(null) { in UserBinaryDictionary()
114 cres.registerContentObserver(Words.CONTENT_URI, true, mObserver); in UserBinaryDictionary()
121 if (mObserver != null) { in close()
122 mContext.getContentResolver().unregisterContentObserver(mObserver); in close()
123 mObserver = null; in close()
DContactsBinaryDictionary.java66 private ContentObserver mObserver; field in ContactsBinaryDictionary
88 if (mObserver != null) return; in registerObserver()
90 cres.registerContentObserver(Contacts.CONTENT_URI, true, mObserver = in registerObserver()
105 if (mObserver != null) { in close()
106 mContext.getContentResolver().unregisterContentObserver(mObserver); in close()
107 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()
280 DataSetObserver mObserver = new DataSetObserver() { field in BookmarkExpandableView.BookmarkAccountAdapter
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DMergedAdapter.java38 private final DataSetObserver mObserver; field in MergedAdapter
58 mObserver = new DataSetObserver() { in MergedAdapter()
69 adapter.unregisterDataSetObserver(mObserver); in setAdapters()
76 adapter.registerDataSetObserver(mObserver); in setAdapters()
/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/ContactsCommon/src/com/android/contacts/common/model/
DContactLoader.java91 private ForceLoadContentObserver mObserver; field in ContactLoader
858 if (mObserver == null) { in deliverResult()
859 mObserver = new ForceLoadContentObserver(); in deliverResult()
862 mLookupUri, true, mObserver); in deliverResult()
905 if (mObserver != null) { in unregisterObserver()
906 getContext().getContentResolver().unregisterContentObserver(mObserver); in unregisterObserver()
907 mObserver = null; in unregisterObserver()
/packages/apps/Dialer/src/com/android/dialer/list/
DPhoneFavoriteMergedAdapter.java65 private final DataSetObserver mObserver; field in PhoneFavoriteMergedAdapter
114 mObserver = new CustomDataSetObserver(); in PhoneFavoriteMergedAdapter()
115 mCallLogAdapter.registerDataSetObserver(mObserver); in PhoneFavoriteMergedAdapter()
116 mContactTileAdapter.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/UnifiedEmail/src/com/android/mail/content/
DObjectCursorLoader.java36 final ForceLoadContentObserver mObserver; field in ObjectCursorLoader
67 mObserver = new ForceLoadContentObserver(); in ObjectCursorLoader()
84 inner.registerContentObserver(mObserver); in loadInBackground()
/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/UnifiedEmail/src/com/android/mail/utils/
DVeiledAddressMatcher.java81 private final AccountObserver mObserver = new AccountObserver() { field in VeiledAddressMatcher
132 mObserver.initialize(controller); in initialize()
/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()

12