/packages/apps/Car/libs/car-arch-common/tests/robotests/src/com/android/car/arch/common/ |
D | LoadingSwitchMapTest.java | 48 private CaptureObserver<FutureData<Integer>> mObserver; field in LoadingSwitchMapTest 54 mObserver = new CaptureObserver<>(); in setUp() 61 underTest.observe(mLifecycleOwner, mObserver); in testIsLoading_uninitialized() 63 assertThat(mObserver.hasBeenNotified()).isFalse(); in testIsLoading_uninitialized() 72 underTest.observe(mLifecycleOwner, mObserver); in testIsLoading_initializedTrigger() 74 assertThat(mObserver.hasBeenNotified()).isTrue(); in testIsLoading_initializedTrigger() 75 assertThat(mObserver.getObservedValue().isLoading()).isTrue(); in testIsLoading_initializedTrigger() 76 assertThat(mObserver.getObservedValue().getData()).isNull(); in testIsLoading_initializedTrigger() 86 underTest.observe(mLifecycleOwner, mObserver); in testIsLoading_alreadyLoaded() 88 assertThat(mObserver.hasBeenNotified()).isTrue(); in testIsLoading_alreadyLoaded() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMapMasInstance.java | 82 BluetoothMapContentObserver mObserver; field in BluetoothMapMasInstance 276 if (mObserver != null) { in startSocketListeners() 280 mObserver.deinit(); in startSocketListeners() 281 mObserver = null; in startSocketListeners() 364 mObserver = new BluetoothMapContentObserver(mContext, mMnsClient, this, mAccount, in startObexServerSession() 366 mObserver.init(); in startObexServerSession() 368 new BluetoothMapObexServer(mServiceHandler, mContext, mObserver, this, mAccount, in startObexServerSession() 387 if (mObserver != null) { in handleSmsSendIntent() 388 return mObserver.handleSmsSendIntent(context, intent); in handleSmsSendIntent() 410 if (mObserver != null) { in shutdown() [all …]
|
D | BluetoothMapObexServer.java | 105 private BluetoothMapContentObserver mObserver = null; field in BluetoothMapObexServer 132 mObserver = observer; in BluetoothMapObexServer() 162 mObserver.setFolderStructure(mCurrentFolder.getRoot()); in BluetoothMapObexServer() 483 return mObserver.setNotificationRegistration(appParams.getNotificationStatus()); in onPut() 493 mObserver.setNotificationFilter(appParams.getNotificationFilter()); in onPut() 699 if (mObserver == null || message == null) { in pushMessage() 717 long handle = mObserver.pushMessage(message, folderElement, appParams, mBaseUriString); in pushMessage() 794 if (mObserver == null) { in setMessageStatus() 816 if (!mObserver.setMessageStatusDeleted(handle, msgType, mCurrentFolder, mBaseUriString, in setMessageStatus() 825 if (!mObserver.setMessageStatusRead(handle, msgType, mBaseUriString, value)) { in setMessageStatus() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | UserBinaryDictionary.java | 54 private ContentObserver mObserver; field in UserBinaryDictionary 73 mObserver = new ContentObserver(null) { in UserBinaryDictionary() 89 cres.registerContentObserver(Words.CONTENT_URI, true, mObserver); in UserBinaryDictionary() 105 if (mObserver != null) { in close() 106 mContext.getContentResolver().unregisterContentObserver(mObserver); in close() 107 mObserver = null; in close()
|
D | ContactsManager.java | 124 private final ContactsContentObserver mObserver; field in ContactsManager 128 mObserver = new ContactsContentObserver(this /* ContactsManager */, context); in ContactsManager() 133 mObserver.registerObserver(listener); in registerForUpdates() 243 mObserver.unregister(); in close()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
D | ContactsContentObserverTest.java | 62 private ContactsContentObserver mObserver; field in ContactsContentObserverTest 67 mObserver = new ContactsContentObserver(mMockManager, mContext); in setUp() 81 assertFalse(mObserver.haveContentsChanged()); in testHaveContentsChanged_NoChange() 87 assertTrue(mObserver.haveContentsChanged()); in testHaveContentsChanged_UpdatedCount() 96 assertTrue(mObserver.haveContentsChanged()); in testHaveContentsChanged_HashUpdate()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/ |
D | RuntimeDataSupplier.java | 165 private ContentObserver mObserver; field in RuntimeDataSupplier.Callbacks 185 mObserver = new InspectorContentObserver(loader::onContentChanged); in onLoadFinished() 186 cursor.registerContentObserver(mObserver); in onLoadFinished() 194 if (mObserver != null) { in onLoaderReset() 195 mContext.getContentResolver().unregisterContentObserver(mObserver); in onLoaderReset() 200 return mObserver; in getObserver()
|
/packages/apps/Settings/src/com/android/settings/development/autofill/ |
D | AbstractGlobalSettingsPreference.java | 39 private final AutofillDeveloperSettingsObserver mObserver; field in AbstractGlobalSettingsPreference 47 mObserver = new AutofillDeveloperSettingsObserver(context, () -> updateSummary()); in AbstractGlobalSettingsPreference() 54 mObserver.register(); in onAttached() 60 mObserver.unregister(); in onDetached()
|
D | AutofillLoggingLevelPreferenceController.java | 45 private final AutofillDeveloperSettingsObserver mObserver; field in AutofillLoggingLevelPreferenceController 53 mObserver = new AutofillDeveloperSettingsObserver(mContext, () -> updateOptions()); in AutofillLoggingLevelPreferenceController() 54 mObserver.register(); in AutofillLoggingLevelPreferenceController() 63 mObserver.unregister(); in onDestroy()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/autofill/ |
D | AbstractGlobalSettingsPreference.java | 39 private final AutofillDeveloperSettingsObserver mObserver; field in AbstractGlobalSettingsPreference 47 mObserver = new AutofillDeveloperSettingsObserver(context, () -> updateSummary()); in AbstractGlobalSettingsPreference() 54 mObserver.register(); in onAttached() 60 mObserver.unregister(); in onDetached()
|
D | AutofillLoggingLevelPreferenceController.java | 45 private final AutofillDeveloperSettingsObserver mObserver; field in AutofillLoggingLevelPreferenceController 53 mObserver = new AutofillDeveloperSettingsObserver(mContext, () -> updateOptions()); in AutofillLoggingLevelPreferenceController() 54 mObserver.register(); in AutofillLoggingLevelPreferenceController() 63 mObserver.unregister(); in onDestroy()
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
D | AccountHeaderPresenter.java | 72 private Observer mObserver = Observer.NONE; field in AccountHeaderPresenter 86 mObserver = observer; in setObserver() 94 if (mObserver != null) { in setCurrentAccount() 95 mObserver.onChange(this); in setCurrentAccount() 106 mObserver.onChange(this); in setAccounts()
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | DownloadJobService.java | 47 getContentResolver().registerContentObserver(ALL_DOWNLOADS_CONTENT_URI, true, mObserver); in onCreate() 53 getContentResolver().unregisterContentObserver(mObserver); in onDestroy() 111 mObserver.onChange(false); in jobFinishedInternal() 117 private ContentObserver mObserver = new ContentObserver(Helpers.getAsyncHandler()) { field in DownloadJobService
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppTransferActivity.java | 112 private BluetoothTransferContentObserver mObserver; field in BluetoothOppTransferActivity 155 mObserver = new BluetoothTransferContentObserver(); in onCreate() 157 mObserver); in onCreate() 177 if (mObserver != null) { in onDestroy() 178 getContentResolver().unregisterContentObserver(mObserver); in onDestroy() 470 if (mObserver != null) { in updateProgressbar() 471 getContentResolver().unregisterContentObserver(mObserver); in updateProgressbar() 472 mObserver = null; in updateProgressbar()
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
D | CompositeAdapter.java | 93 private final Observer mObserver; field in CompositeAdapter 97 mObserver = new Observer(); in CompositeAdapter() 113 partition.getAdapter().registerDataSetObserver(mObserver); in addPartition() 124 partition.getAdapter().unregisterDataSetObserver(mObserver); in removePartition() 133 partition.getAdapter().unregisterDataSetObserver(mObserver); in clearPartitions()
|
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
D | MergedAdapter.java | 37 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/apps/Settings/src/com/android/settings/homepage/contextualcards/ |
D | ContextualCardLoader.java | 60 private final ContentObserver mObserver = new ContentObserver( field in ContextualCardLoader 87 false /*notifyForDescendants*/, mObserver); in onStartLoading() 89 false /*notifyForDescendants*/, mObserver); in onStartLoading() 95 mContext.getContentResolver().unregisterContentObserver(mObserver); in onStopLoading()
|
/packages/apps/Contacts/src/com/android/contacts/drawer/ |
D | DrawerFragment.java | 66 private WelcomeContentObserver mObserver; field in DrawerFragment 198 mObserver = new WelcomeContentObserver(new Handler()); in onResume() 199 getActivity().getContentResolver().registerContentObserver(uri, false, mObserver); in onResume() 214 if (mObserver != null) { in onPause() 215 getActivity().getContentResolver().unregisterContentObserver(mObserver); in onPause()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/ |
D | ContextualCardLoader.java | 60 private final ContentObserver mObserver = new ContentObserver( field in ContextualCardLoader 87 false /*notifyForDescendants*/, mObserver); in onStartLoading() 89 false /*notifyForDescendants*/, mObserver); in onStartLoading() 95 mContext.getContentResolver().unregisterContentObserver(mObserver); in onStopLoading()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | DirectoryLoader.java | 62 private final LockingContentObserver mObserver; field in DirectoryLoader 95 mObserver = new LockingContentObserver(lock, this::onContentChanged); in DirectoryLoader() 147 cursor.registerContentObserver(mObserver); in loadInBackground() 242 getContext().getContentResolver().unregisterContentObserver(mObserver); in onReset()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/assist/ |
D | AssistContextPreferenceControllerTest.java | 56 private AssistContextPreferenceController.SettingObserver mObserver; field in AssistContextPreferenceControllerTest 70 ReflectionHelpers.setField(mController, "mSettingObserver", mObserver); in setUp() 96 verify(mObserver).register(any(ContentResolver.class), eq(true)); in onResume_shouldUpdatePreference()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/ |
D | BatterySaverController.java | 74 , true, mObserver); in onStart() local 82 mContext.getContentResolver().unregisterContentObserver(mObserver); in onStop() 112 private final ContentObserver mObserver = new ContentObserver( field in BatterySaverController
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | BatterySaverController.java | 74 , true, mObserver); in onStart() local 82 mContext.getContentResolver().unregisterContentObserver(mObserver); in onStop() 112 private final ContentObserver mObserver = new ContentObserver( field in BatterySaverController
|
/packages/apps/UnifiedEmail/src/com/android/mail/content/ |
D | ObjectCursorLoader.java | 36 final ForceLoadContentObserver mObserver; field in ObjectCursorLoader 67 mObserver = new ForceLoadContentObserver(); in ObjectCursorLoader() 84 inner.registerContentObserver(mObserver); in loadInBackground()
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
D | DirectoryListLoader.java | 81 private final ContentObserver mObserver = new ContentObserver(new Handler()) { field in DirectoryListLoader 113 false, mObserver); in onStartLoading() local 119 getContext().getContentResolver().unregisterContentObserver(mObserver); in onStopLoading()
|