/cts/tests/tests/database/src/android/database/cts/ |
ContentObservableTest.java | 29 MyContentObserver mObserver; 36 mObserver = new MyContentObserver(); 40 mContentObservable.registerObserver(mObserver); 41 mObserver.resetStatus(); 42 assertFalse(mObserver.hasChanged()); 44 assertTrue(mObserver.hasChanged()); 47 mContentObservable.registerObserver(mObserver); 63 mContentObservable.unregisterObserver(mObserver); 64 mObserver.resetStatus(); 65 assertFalse(mObserver.hasChanged()) [all...] |
/frameworks/base/core/tests/coretests/src/android/os/ |
FileObserverTest.java | 33 private Observer mObserver; 77 mObserver = new Observer(mTestFile.getParent()); 78 mObserver.startWatching(); 90 mObserver.stopWatching(); 93 assertTrue(mObserver.totalEvents > 3); 100 synchronized (mObserver) { 104 mObserver.wait(2000); 110 Iterator<Map> it = mObserver.events.iterator(); 117 mObserver.events.clear();
|
/frameworks/av/media/libstagefright/ |
MediaBuffer.cpp | 35 : mObserver(NULL), 48 : mObserver(NULL), 61 : mObserver(NULL), 75 : mObserver(NULL), 89 if (mObserver == NULL) { 97 if (mObserver == NULL) { 102 mObserver->signalBufferReturned(this); 108 CHECK(mObserver != NULL); 160 CHECK(mObserver == NULL); 174 CHECK(observer == NULL || mObserver == NULL) [all...] |
/frameworks/base/core/java/android/app/backup/ |
RestoreSession.java | 38 RestoreObserverWrapper mObserver = null; 76 if (mObserver != null) { 80 mObserver = new RestoreObserverWrapper(mContext, observer); 82 err = mBinder.restoreAll(token, mObserver); 110 if (mObserver != null) { 114 mObserver = new RestoreObserverWrapper(mContext, observer); 116 err = mBinder.restoreSome(token, mObserver, packages); 140 if (mObserver != null) { 144 mObserver = new RestoreObserverWrapper(mContext, observer); 146 err = mBinder.restorePackage(packageName, mObserver); [all...] |
/frameworks/base/core/java/android/database/ |
CursorToBulkCursorAdaptor.java | 43 private ContentObserverProxy mObserver; 252 if (mObserver != null) { 255 mObserver = new ContentObserverProxy(observer, this); 256 mCursor.registerContentObserver(mObserver); 261 if (mObserver != null) { 262 mCursor.unregisterContentObserver(mObserver); 263 mObserver.unlinkToDeath(this); 264 mObserver = null;
|
/packages/apps/Calculator/src/com/android/calculator2/ |
History.java | 31 BaseAdapter mObserver; 50 mObserver = observer; 54 if (mObserver != null) { 55 mObserver.notifyDataSetChanged();
|
/frameworks/base/core/java/android/printservice/ |
PrinterDiscoverySession.java | 96 private IPrintServiceClient mObserver; 110 mObserver = observer; 115 mObserver.onPrintersAdded(new ParceledListSlice<PrinterInfo>(getPrinters())); 191 mObserver.onPrintersAdded(new ParceledListSlice<PrinterInfo>(addedPrinters)); 251 mObserver.onPrintersRemoved(new ParceledListSlice<PrinterId>( 294 mObserver.onPrintersAdded(new ParceledListSlice<PrinterInfo>(addedPrinters)); 314 mObserver.onPrintersRemoved(new ParceledListSlice<PrinterId>(removedPrinterIds)); 498 if (!mIsDestroyed && mObserver != null) { 504 if (!mIsDestroyed && mObserver != null 512 if (!mIsDestroyed && mObserver != nul [all...] |
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
UriDerivativeLoader.java | 31 final ForceLoadContentObserver mObserver; 88 mObserver = new ForceLoadContentObserver(); 122 getContext().getContentResolver().unregisterContentObserver(mObserver);
|
/frameworks/base/core/java/android/print/ |
PrinterDiscoverySession.java | 53 private IPrinterDiscoveryObserver mObserver; 67 mObserver = new PrinterDiscoveryObserver(this); 69 mPrintManager.createPrinterDiscoverySession(mObserver, mUserId); 83 mPrintManager.startPrinterDiscovery(mObserver, priorityList, mUserId); 98 mPrintManager.stopPrinterDiscovery(mObserver, mUserId); 181 return (mObserver == null); 187 mPrintManager.destroyPrinterDiscoverySession(mObserver, mUserId); 191 mObserver = null;
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
VeiledAddressMatcher.java | 81 private final AccountObserver mObserver = new AccountObserver() { 132 mObserver.initialize(controller);
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
BluetoothMnsObexClient.java | 61 private BluetoothMapContentObserver mObserver; 82 mObserver = new BluetoothMapContentObserver(mContext); 83 mObserver.init(); 91 return mObserver; 146 mObserver.unregisterObserver(); 149 if (mObserver != null) { 150 mObserver.deinit(); 151 mObserver = null; 178 mObserver.unregisterObserver(); 186 mObserver.registerObserver(this, masId) [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
WindowFocusObserver.java | 37 final FocusObserver mObserver = new WindowId.FocusObserver() { 97 token.registerFocusObserver(mObserver); 104 getWindow().getDecorView().getWindowId().unregisterFocusObserver(mObserver);
|
/external/chromium_org/net/android/java/src/org/chromium/net/ |
NetworkChangeNotifierAutoDetect.java | 63 private final Observer mObserver; 78 mObserver = observer; 188 mObserver.onConnectionTypeChanged(newConnectionType);
|
/packages/apps/Calendar/src/com/android/calendar/selectcalendars/ |
SelectVisibleCalendarsActivity.java | 43 private final ContentObserver mObserver = new ContentObserver(new Handler()) { 79 true, mObserver); 85 getContentResolver().unregisterContentObserver(mObserver);
|
/frameworks/av/media/libmediaplayerservice/ |
HDCP.h | 55 sp<IHDCPObserver> mObserver;
|
/frameworks/base/core/java/android/content/ |
CursorLoader.java | 44 final ForceLoadContentObserver mObserver; 71 cursor.registerContentObserver(mObserver); 125 mObserver = new ForceLoadContentObserver(); 137 mObserver = new ForceLoadContentObserver();
|
/frameworks/base/core/java/com/android/internal/view/ |
RotationPolicy.java | 160 false, listener.mObserver, userHandle); 163 false, listener.mObserver, userHandle); 171 context.getContentResolver().unregisterContentObserver(listener.mObserver); 178 final ContentObserver mObserver = new ContentObserver(new Handler()) {
|
/frameworks/opt/mailcommon/java/com/android/mailcommon/ |
MergedAdapter.java | 39 private final DataSetObserver mObserver; 59 mObserver = new DataSetObserver() { 70 adapter.unregisterDataSetObserver(mObserver); 77 adapter.registerDataSetObserver(mObserver);
|
/frameworks/support/v4/java/android/support/v4/content/ |
CursorLoader.java | 36 final ForceLoadContentObserver mObserver; 54 cursor.registerContentObserver(mObserver); 88 mObserver = new ForceLoadContentObserver(); 100 mObserver = new ForceLoadContentObserver();
|
/packages/apps/Browser/src/com/android/browser/view/ |
BasePieView.java | 33 private DataSetObserver mObserver; 57 mAdapter.unregisterDataSetObserver(mObserver); 62 mObserver = new DataSetObserver() { 73 mAdapter.registerDataSetObserver(mObserver);
|
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
MergedAdapter.java | 38 private final DataSetObserver mObserver; 58 mObserver = new DataSetObserver() { 69 adapter.unregisterDataSetObserver(mObserver); 76 adapter.registerDataSetObserver(mObserver);
|
/frameworks/base/packages/BackupRestoreConfirmation/src/com/android/backupconfirm/ |
BackupRestoreConfirmation.java | 66 FullObserver mObserver; 164 mObserver = new FullObserver(mHandler); 166 mObserver = (FullObserver) oldObserver; 167 mObserver.setHandler(mHandler); 210 sendAcknowledgement(mToken, true, mObserver); 219 sendAcknowledgement(mToken, false, mObserver); 236 return mObserver; 255 mObserver);
|
/frameworks/base/core/java/android/text/method/ |
TextKeyListener.java | 61 private TextKeyListener.SettingsObserver mObserver; 249 contentResolver.unregisterContentObserver(mObserver); 252 mObserver = null; 261 if (mObserver == null) { 262 mObserver = new SettingsObserver(); 263 contentResolver.registerContentObserver(Settings.System.CONTENT_URI, true, mObserver);
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/ |
ContactLoader.java | 34 ForceLoadContentObserver mObserver; 145 if (mObserver == null) { 146 mObserver = new ForceLoadContentObserver(); 148 getContext().getContentResolver().registerContentObserver(mLookupUri, true, mObserver); 170 if (mObserver != null) { 171 getContext().getContentResolver().unregisterContentObserver(mObserver);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
ContactsBinaryDictionary.java | 66 private ContentObserver mObserver; 88 if (mObserver != null) return; 90 cres.registerContentObserver(Contacts.CONTENT_URI, true, mObserver = 105 if (mObserver != null) { 106 mContext.getContentResolver().unregisterContentObserver(mObserver); 107 mObserver = null;
|