/frameworks/support/lifecycle/common/src/main/java/androidx/lifecycle/ |
H A D | FullLifecycleObserverAdapter.java | 21 private final FullLifecycleObserver mObserver; field in class:FullLifecycleObserverAdapter 24 mObserver = observer; 31 mObserver.onCreate(source); 34 mObserver.onStart(source); 37 mObserver.onResume(source); 40 mObserver.onPause(source); 43 mObserver.onStop(source); 46 mObserver.onDestroy(source);
|
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/ |
H A D | FullBackupTask.java | 30 IFullBackupRestoreObserver mObserver; field in class:FullBackupTask 33 mObserver = observer; 38 if (mObserver != null) { 40 mObserver.onStartBackup(); 43 mObserver = null; 49 if (mObserver != null) { 52 mObserver.onBackupPackage(name); 55 mObserver = null; 61 if (mObserver != null) { 63 mObserver [all...] |
/frameworks/base/core/java/android/printservice/ |
H A D | CustomPrinterIconCallback.java | 33 private final @NonNull IPrintServiceClient mObserver; field in class:CustomPrinterIconCallback 44 mObserver = observer; 55 mObserver.onCustomPrinterIconLoaded(mPrinterId, icon);
|
H A D | PrinterDiscoverySession.java | 98 private IPrintServiceClient mObserver; field in class:PrinterDiscoverySession 112 mObserver = observer; 117 mObserver.onPrintersAdded(new ParceledListSlice<PrinterInfo>(getPrinters())); 193 mObserver.onPrintersAdded(new ParceledListSlice<PrinterInfo>(addedPrinters)); 253 mObserver.onPrintersRemoved(new ParceledListSlice<PrinterId>( 296 mObserver.onPrintersAdded(new ParceledListSlice<PrinterInfo>(addedPrinters)); 316 mObserver.onPrintersRemoved(new ParceledListSlice<PrinterId>(removedPrinterIds)); 516 if (!mIsDestroyed && mObserver != null) { 522 if (!mIsDestroyed && mObserver != null 536 if (!mIsDestroyed && mObserver ! [all...] |
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/items/ |
H A D | ItemGroupTest.java | 49 private ItemHierarchy.Observer mObserver; field in class:ItemGroupTest 55 mItemGroup.registerObserver(mObserver); 67 final InOrder inOrder = inOrder(mObserver); 68 inOrder.verify(mObserver).onItemRangeInserted(eq(mItemGroup), eq(0), eq(1)); 69 inOrder.verify(mObserver).onItemRangeInserted(eq(mItemGroup), eq(1), eq(1)); 84 verify(mObserver).onItemRangeRemoved(eq(mItemGroup), eq(1), eq(1)); 96 verify(mObserver).onItemRangeRemoved(eq(mItemGroup), eq(0), eq(2)); 103 parentGroup.registerObserver(mObserver); 116 final InOrder inOrder = inOrder(mObserver); 117 inOrder.verify(mObserver) [all...] |
/frameworks/opt/setupwizard/library/recyclerview/test/instrumentation/src/com/android/setupwizardlib/test/ |
H A D | HeaderRecyclerViewTest.java | 48 private RecyclerView.AdapterDataObserver mObserver; field in class:HeaderRecyclerViewTest 57 mHeaderAdapter.registerAdapterDataObserver(mObserver); 67 verify(mObserver).onChanged(); 77 verify(mObserver).onItemRangeChanged(eq(12), eq(1), eq(null)); 89 verify(mObserver).onItemRangeChanged(eq(13), eq(1), eq(null)); 99 verify(mObserver).onItemRangeInserted(eq(12), eq(1)); 111 verify(mObserver).onItemRangeInserted(eq(13), eq(1)); 121 verify(mObserver).onItemRangeRemoved(eq(12), eq(1)); 133 verify(mObserver).onItemRangeRemoved(eq(13), eq(1)); 143 verify(mObserver) [all...] |
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/widget/ |
H A D | ObjectAdapterTest.java | 64 private RecyclerView.AdapterDataObserver mObserver; field in class:ObjectAdapterTest 274 mObserver = Mockito.spy(RecyclerView.AdapterDataObserver.class); 277 mBridgeAdapter.registerAdapterDataObserver(mObserver); 321 Mockito.verify(mObserver).onItemRangeInserted(1, 1); 323 Mockito.reset(mObserver); 330 Mockito.verify(mObserver).onItemRangeInserted(1, 2); 332 Mockito.reset(mObserver); 336 Mockito.verify(mObserver).onItemRangeChanged(2, 3); 338 Mockito.reset(mObserver); 342 Mockito.verify(mObserver) [all...] |
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/ |
H A D | AboveShelfObserverTest.java | 42 private AboveShelfObserver mObserver; field in class:AboveShelfObserverTest 51 mObserver = new AboveShelfObserver(mHostLayout); 53 row.setAboveShelfChangedListener(mObserver); 56 row.setAboveShelfChangedListener(mObserver); 64 mObserver.setListener(mListener); 73 mObserver.setListener(mListener); 86 mObserver.hasViewsAboveShelf());
|
/frameworks/base/core/tests/coretests/src/android/os/ |
H A D | FileObserverTest.java | 33 private Observer mObserver; field in class:FileObserverTest 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/base/core/java/android/util/ |
H A D | KeyValueSettingObserver.java | 44 private final ContentObserver mObserver; field in class:KeyValueSettingObserver 50 mObserver = new SettingObserver(handler); 57 mResolver.registerContentObserver(mSettingUri, false, mObserver); 64 mResolver.unregisterContentObserver(mObserver);
|
/frameworks/av/media/libmediaextractor/ |
H A D | MediaBuffer.cpp | 35 : mObserver(NULL), 47 : mObserver(NULL), 79 : mObserver(NULL), 92 if (mObserver == NULL) { 101 if (mObserver == NULL) { 106 mObserver->signalBufferReturned(this); 112 CHECK(mObserver != NULL); 158 CHECK(mObserver == NULL); 177 CHECK(observer == NULL || mObserver == NULL); 178 mObserver [all...] |
/frameworks/base/core/java/android/database/ |
H A D | CursorToBulkCursorAdaptor.java | 40 private ContentObserverProxy mObserver; field in class:CursorToBulkCursorAdaptor 249 if (mObserver != null) { 252 mObserver = new ContentObserverProxy(observer, this); 253 mCursor.registerContentObserver(mObserver); 258 if (mObserver != null) { 259 mCursor.unregisterContentObserver(mObserver); 260 mObserver.unlinkToDeath(this); 261 mObserver = null;
|
/frameworks/base/services/backup/java/com/android/server/backup/internal/ |
H A D | PerformInitializeTask.java | 57 @Nullable private IBackupObserver mObserver; field in class:PerformInitializeTask 84 mObserver = observer; 91 if (mObserver != null) { 92 mObserver.onResult(target, status); 95 mObserver = null; // don't try again 101 if (mObserver != null) { 102 mObserver.backupFinished(status); 105 mObserver = null;
|
/frameworks/support/lifecycle/livedata/src/main/java/androidx/lifecycle/ |
H A D | MediatorLiveData.java | 88 if (existing != null && existing.mObserver != onChanged) { 132 final Observer<? super V> mObserver; field in class:MediatorLiveData.Source 137 mObserver = observer; 152 mObserver.onChanged(v);
|
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/ |
H A D | ItemTest.java | 61 private Observer mObserver; field in class:ItemTest 108 item.registerObserver(mObserver); 109 final InOrder inOrder = inOrder(mObserver); 112 inOrder.verify(mObserver).onItemRangeChanged(eq(item), eq(0), eq(1)); 115 inOrder.verify(mObserver).onItemRangeChanged(eq(item), eq(0), eq(1)); 118 inOrder.verify(mObserver).onItemRangeChanged(eq(item), eq(0), eq(1)); 122 inOrder.verify(mObserver).onItemRangeChanged(eq(item), eq(0), eq(1)); 127 inOrder.verify(mObserver).onItemRangeChanged(eq(item), eq(0), eq(1)); 166 item.registerObserver(mObserver); 172 verify(mObserver) [all...] |
/frameworks/base/core/java/android/app/backup/ |
H A D | RestoreSession.java | 41 RestoreObserverWrapper mObserver = null; field in class:RestoreSession 99 if (mObserver != null) { 103 mObserver = new RestoreObserverWrapper(mContext, observer); 108 err = mBinder.restoreAll(token, mObserver, monitorWrapper); 156 if (mObserver != null) { 160 mObserver = new RestoreObserverWrapper(mContext, observer); 165 err = mBinder.restoreSome(token, mObserver, monitorWrapper, packages); 216 if (mObserver != null) { 220 mObserver = new RestoreObserverWrapper(mContext, observer); 225 err = mBinder.restorePackage(packageName, mObserver, monitorWrappe [all...] |
/frameworks/base/services/robotests/src/com/android/server/backup/internal/ |
H A D | PerformInitializeTaskTest.java | 77 @Mock private IBackupObserver mObserver; field in class:PerformInitializeTaskTest 133 verify(mObserver).onResult(eq(mTransportName), eq(TRANSPORT_OK)); 134 verify(mObserver).backupFinished(eq(TRANSPORT_OK)); 161 verify(mObserver).onResult(eq(mTransportName), eq(TRANSPORT_ERROR)); 162 verify(mObserver).backupFinished(eq(TRANSPORT_ERROR)); 199 verify(mObserver).onResult(eq(mTransportName), eq(TRANSPORT_ERROR)); 200 verify(mObserver).backupFinished(eq(TRANSPORT_ERROR)); 229 verify(mObserver).onResult(eq(transport1.transportName), eq(TRANSPORT_ERROR)); 230 verify(mObserver).onResult(eq(transport2.transportName), eq(TRANSPORT_OK)); 231 verify(mObserver) [all...] |
/frameworks/support/lifecycle/reactivestreams/src/test/java/androidx/lifecycle/ |
H A D | LiveDataReactiveStreamsTest.java | 54 private final Observer<String> mObserver = new Observer<String>() { field in class:LiveDataReactiveStreamsTest 85 liveData.observe(mLifecycleOwner, mObserver); 100 liveData.observe(mLifecycleOwner, mObserver); 103 liveData.removeObserver(mObserver); 105 liveData.observe(mLifecycleOwner, mObserver); 118 liveData.observe(mLifecycleOwner, mObserver); 135 liveData.observe(mLifecycleOwner, mObserver); 160 liveData.observe(mLifecycleOwner, mObserver); 173 liveData.removeObserver(mObserver); 185 liveData.observe(mLifecycleOwner, mObserver); [all...] |
/frameworks/base/core/java/android/print/ |
H A D | PrinterDiscoverySession.java | 55 private IPrinterDiscoveryObserver mObserver; field in class:PrinterDiscoverySession 69 mObserver = new PrinterDiscoveryObserver(this); 71 mPrintManager.createPrinterDiscoverySession(mObserver, mUserId); 85 mPrintManager.startPrinterDiscovery(mObserver, priorityList, mUserId); 100 mPrintManager.stopPrinterDiscovery(mObserver, mUserId); 183 return (mObserver == null); 189 mPrintManager.destroyPrinterDiscoverySession(mObserver, mUserId); 193 mObserver = null;
|
/frameworks/support/lifecycle/integration-tests/testapp/src/androidTest/java/androidx/lifecycle/ |
H A D | ProcessOwnerTest.java | 70 private ProcessObserver mObserver = new ProcessObserver(); field in class:ProcessOwnerTest 76 removeProcessObserver(mObserver); 164 addProcessObserver(mObserver); 165 mObserver.mChangedState = false; 181 assertThat(mObserver.mChangedState, is(false)); 183 ProcessLifecycleOwner.get().getLifecycle().removeObserver(mObserver)); 188 assertThat(mObserver.mChangedState, is(false)); 190 ProcessLifecycleOwner.get().getLifecycle().removeObserver(mObserver));
|
/frameworks/base/services/robotests/src/com/android/server/backup/restore/ |
H A D | ActiveRestoreSessionTest.java | 94 @Mock private IRestoreObserver mObserver; field in class:ActiveRestoreSessionTest 157 () -> restoreSession.getAvailableRestoreSets(mObserver, mMonitor)); 177 int result = restoreSession.getAvailableRestoreSets(mObserver, mMonitor); 190 int result = restoreSession.getAvailableRestoreSets(mObserver, mMonitor); 194 verify(mObserver) 208 int result = restoreSession.getAvailableRestoreSets(mObserver, mMonitor); 212 verify(mObserver).restoreSetsAvailable(aryEq(new RestoreSet[0])); 223 int result = restoreSession.getAvailableRestoreSets(mObserver, mMonitor); 227 verify(mObserver).restoreSetsAvailable(isNull()); 243 int result = restoreSession.restoreAll(TOKEN_1, mObserver, mMonito [all...] |
/frameworks/support/emoji/core/src/main/java/androidx/emoji/text/ |
H A D | FontRequestEmojiCompatConfig.java | 180 private ContentObserver mObserver; field in class:FontRequestEmojiCompatConfig.FontRequestMetadataLoader 246 if (mObserver == null) { 247 mObserver = new ContentObserver(mHandler) { 253 mFontProviderHelper.registerObserver(mContext, uri, mObserver); 270 if (mObserver != null) { 271 mFontProviderHelper.unregisterObserver(mContext, mObserver); 272 mObserver = null;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
H A D | AutoAddTracker.java | 62 Secure.getUriFor(Secure.QS_AUTO_ADDED_TILES), false, mObserver); 76 mContext.getContentResolver().unregisterContentObserver(mObserver); 93 protected final ContentObserver mObserver = new ContentObserver(new Handler()) { field in class:AutoAddTracker
|
/frameworks/support/loader/src/main/java/androidx/loader/app/ |
H A D | LoaderManagerImpl.java | 57 private LoaderObserver<D> mObserver; field in class:LoaderManagerImpl.LoaderInfo 102 if (mObserver != null) { 103 removeObserver(mObserver); 106 mObserver = observer; 112 LoaderObserver<D> observer = mObserver; 117 // Use super.removeObserver to avoid nulling out mLifecycleOwner & mObserver 129 return mObserver != null && !mObserver.hasDeliveredData(); 137 mObserver = null; 154 LoaderObserver<D> observer = mObserver; [all...] |
/frameworks/base/core/java/android/content/ |
H A D | CursorLoader.java | 47 final ForceLoadContentObserver mObserver; field in class:CursorLoader 74 cursor.registerContentObserver(mObserver); 128 mObserver = new ForceLoadContentObserver(); 140 mObserver = new ForceLoadContentObserver();
|