Home
last modified time | relevance | path

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

123

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/map/
DBluetoothMapContentObserverTest.java142 private BluetoothMapContentObserver mObserver; field in BluetoothMapContentObserverTest
199 mObserver = new BluetoothMapContentObserver(mContext, mClient, mInstance, null, true); in setUp()
200 mObserver.mProviderClient = mProviderClient; in setUp()
201 mObserver.mAccount = mItem; in setUp()
260 mObserver.setNotificationFilter(0); in testSendEvent_withZeroEventFilter()
263 BluetoothMapContentObserver.Event event = mObserver.new Event(eventType, TEST_HANDLE_ONE, in testSendEvent_withZeroEventFilter()
265 mObserver.sendEvent(event); in testSendEvent_withZeroEventFilter()
269 mObserver.sendEvent(event); in testSendEvent_withZeroEventFilter()
273 mObserver.sendEvent(event); in testSendEvent_withZeroEventFilter()
277 mObserver.sendEvent(event); in testSendEvent_withZeroEventFilter()
[all …]
DEventTest.java61 private BluetoothMapContentObserver mObserver; field in EventTest
87 mObserver = new BluetoothMapContentObserver(mockContext, null, mockMas, null, true); in setUp()
88 mEvent = mObserver.new Event(TEST_EVENT_TYPE, TEST_HANDLE, TEST_FOLDER, TEST_TYPE); in setUp()
93 BluetoothMapContentObserver.Event event = mObserver.new Event(TEST_EVENT_TYPE, TEST_HANDLE, in constructor()
103 BluetoothMapContentObserver.Event event = mObserver.new Event(TEST_EVENT_TYPE, TEST_HANDLE, in constructor_withNullOldFolder()
114 BluetoothMapContentObserver.Event event = mObserver.new Event(TEST_EVENT_TYPE, TEST_HANDLE, in constructor_withNonNullOldFolder()
125 BluetoothMapContentObserver.Event event = mObserver.new Event(TEST_EVENT_TYPE, TEST_HANDLE, in constructor_forExtendedEventTypeOnePointOne()
141 BluetoothMapContentObserver.Event event = mObserver.new Event(TEST_EVENT_TYPE, TEST_HANDLE, in constructor_forExtendedEventTypeOnePointTwo_withMessageEvents()
160 BluetoothMapContentObserver.Event event = mObserver.new Event(TEST_EVENT_TYPE, TEST_UCI, in constructor_forExtendedEventTypeOnePointTwo_withConversationEvents()
DBluetoothMapObexServerTest.java78 private BluetoothMapContentObserver mObserver; field in BluetoothMapObexServerTest
93 mObexServer = new BluetoothMapObexServer(null, mContext, mObserver, mMasInstance, in setUp()
103 BluetoothMapObexServer obexServer = new BluetoothMapObexServer(null, mContext, mObserver, in setOwnerStatus_withAccountTypeEmail()
192 BluetoothMapObexServer obexServer = new BluetoothMapObexServer(null, mContext, mObserver, in setMsgTypeFilterParams_withAccountNull_andOverwriteTrue()
211 BluetoothMapObexServer obexServer = new BluetoothMapObexServer(null, mContext, mObserver, in setMsgTypeFilterParams_withInvalidFilterMessageType()
224 BluetoothMapObexServer obexServer = new BluetoothMapObexServer(null, mContext, mObserver, in setMsgTypeFilterParams_withValidFilterMessageType()
/packages/modules/DnsResolver/
DPrivateDnsConfigurationTest.cpp44 mPdc.setObserver(&mObserver); in SetUp()
56 ON_CALL(mObserver, onValidationStateUpdate) in SetUp()
59 std::lock_guard guard(mObserver.lock); in SetUp()
60 auto it = mObserver.serverStateMap.find(server); in SetUp()
61 if (it == mObserver.serverStateMap.end() || in SetUp()
68 mObserver.runningThreads++; in SetUp()
72 mObserver.runningThreads--; in SetUp()
74 std::lock_guard guard(mObserver.lock); in SetUp()
75 mObserver.serverStateMap[server] = validation; in SetUp()
117 return (serverStateMap == mObserver.getServerStateMap()); in checkPrivateDnsStatus()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DAccessibilitySettingsContentObserverTest.java52 private final AccessibilitySettingsContentObserver mObserver = field in AccessibilitySettingsContentObserverTest
62 mObserver.register(mContentResolver); in register_shouldRegisterContentObserverForDefaultKeys()
66 Settings.Secure.ACCESSIBILITY_ENABLED, mObserver); in register_shouldRegisterContentObserverForDefaultKeys()
68 Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES, mObserver); in register_shouldRegisterContentObserverForDefaultKeys()
73 mObserver.register(mContentResolver); in unregister_shouldUnregisterContentObserver()
75 mObserver.unregister(mContentResolver); in unregister_shouldUnregisterContentObserver()
85 mObserver.registerKeysToObserverCallback(List.of(SPECIFIC_KEY_A_1), mObserverCallbackA); in register_addSpecificKeys_shouldRegisterContentObserverForSpecificAndDefaultKeys()
87 mObserver.register(mContentResolver); in register_addSpecificKeys_shouldRegisterContentObserverForSpecificAndDefaultKeys()
91 Settings.Secure.ACCESSIBILITY_ENABLED, mObserver); in register_addSpecificKeys_shouldRegisterContentObserverForSpecificAndDefaultKeys()
93 Settings.Secure.ENABLED_ACCESSIBILITY_SERVICES, mObserver); in register_addSpecificKeys_shouldRegisterContentObserverForSpecificAndDefaultKeys()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/map/
DBluetoothMapMasInstance.java91 BluetoothMapContentObserver mObserver; field in BluetoothMapMasInstance
287 if (mObserver != null) { in startSocketListeners()
291 mObserver.deinit(); in startSocketListeners()
292 mObserver = null; in startSocketListeners()
395 mObserver = new BluetoothMapContentObserver(mContext, mMnsClient, this, mAccount, in startObexServerSession()
397 mObserver.init(); in startObexServerSession()
399 new BluetoothMapObexServer(mServiceHandler, mContext, mObserver, this, mAccount, in startObexServerSession()
418 if (mObserver != null) { in handleSmsSendIntent()
419 return mObserver.handleSmsSendIntent(context, intent); in handleSmsSendIntent()
441 if (mObserver != null) { in shutdown()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DContactsContentObserverTest.java62 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/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DUserBinaryDictionary.java54 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()
DContactsManager.java124 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/apps/DocumentsUI/src/com/android/documentsui/inspector/
DRuntimeDataSupplier.java168 private ContentObserver mObserver; field in RuntimeDataSupplier.Callbacks
190 mObserver = new InspectorContentObserver(loader::onContentChanged); in onLoadFinished()
191 cursor.registerContentObserver(mObserver); in onLoadFinished()
199 if (mObserver != null) { in onLoaderReset()
200 mUserId.getContentResolver(mContext).unregisterContentObserver(mObserver); in onLoaderReset()
205 return mObserver; in getObserver()
/packages/apps/Settings/src/com/android/settings/development/autofill/
DAbstractGlobalSettingsPreference.java39 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()
DAutofillLoggingLevelPreferenceController.java45 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/modules/DnsResolver/tests/
Dresolv_tls_unit_test.cpp113 explicit FakeSocketEcho(IDnsTlsSocketObserver* observer) : mObserver(observer) {} in FakeSocketEcho()
116 std::thread(&IDnsTlsSocketObserver::onResponse, mObserver, make_echo(id, query)).detach(); in query()
122 IDnsTlsSocketObserver* const mObserver; member in android::net::FakeSocketEcho
140 explicit FakeSocketId(IDnsTlsSocketObserver* observer) : mObserver(observer) {} in FakeSocketId()
152 std::thread(&IDnsTlsSocketObserver::onResponse, mObserver, response).detach(); in query()
158 IDnsTlsSocketObserver* const mObserver; member in android::net::FakeSocketId
202 explicit FakeSocketDelay(IDnsTlsSocketObserver* observer) : mObserver(observer) {} in FakeSocketDelay()
238 mObserver->onResponse(response); in sendResponses()
245 IDnsTlsSocketObserver* const mObserver; member in android::net::FakeSocketDelay
472 : mObserver(observer), mQueries(0) {} in FakeSocketLimited()
[all …]
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadJobService.java47 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/Contacts/src/com/android/contacts/editor/
DAccountHeaderPresenter.java72 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/modules/Bluetooth/android/app/src/com/android/bluetooth/opp/
DBluetoothOppTransferActivity.java113 private BluetoothTransferContentObserver mObserver; field in BluetoothOppTransferActivity
158 mObserver = new BluetoothTransferContentObserver(); in onCreate()
160 mObserver); in onCreate()
180 if (mObserver != null) { in onDestroy()
181 getContentResolver().unregisterContentObserver(mObserver); in onDestroy()
432 if (mObserver != null) { in updateProgressbar()
433 getContentResolver().unregisterContentObserver(mObserver); in updateProgressbar()
434 mObserver = null; in updateProgressbar()
/packages/apps/Messaging/src/com/android/messaging/ui/
DCompositeAdapter.java93 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/Settings/src/com/android/settings/dream/
DDreamMainSwitchPreferenceController.java42 private final ContentObserver mObserver = new ContentObserver( field in DreamMainSwitchPreferenceController
86 /* notifyForDescendants= */ false, mObserver); in onStart() local
91 mContext.getContentResolver().unregisterContentObserver(mObserver); in onStop()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DMultiRootDocumentsLoader.java88 private LockingContentObserver mObserver; field in MultiRootDocumentsLoader
138 mObserver = observer; in setObserver()
434 if (mObserver != null) { in runInternal()
435 res[i].registerContentObserver(mObserver); in runInternal()
462 if (mObserver != null && cursor != null) { in close()
463 cursor.unregisterContentObserver(mObserver); in close()
DDirectoryLoader.java63 private final LockingContentObserver mObserver; field in DirectoryLoader
99 mObserver = new LockingContentObserver(lock, this::onContentChanged); in DirectoryLoader()
178 cursor.registerContentObserver(mObserver); in loadInBackground()
308 if (mResult != null && mResult.getCursor() != null && mObserver != null) { in onReset()
309 mResult.getCursor().unregisterContentObserver(mObserver); in onReset()
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/
DFallbackRecentsTest.java284 final OverviewComponentObserver mObserver; field in FallbackRecentsTest.OverviewUpdateHandler
290 mObserver = new OverviewComponentObserver(ctx, mRads); in OverviewUpdateHandler()
292 if (mObserver.getHomeIntent().getComponent() in OverviewUpdateHandler()
297 mObserver.setOverviewChangeListener(b -> mChangeCounter.countDown()); in OverviewUpdateHandler()
302 mObserver.onDestroy(); in destroy()
/packages/apps/Contacts/src/com/android/contacts/drawer/
DDrawerFragment.java66 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/apps/Settings/tests/robotests/src/com/android/settings/applications/assist/
DAssistContextPreferenceControllerTest.java56 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/apps/Settings/src/com/android/settings/homepage/contextualcards/
DContextualCardLoader.java61 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/Settings/src/com/android/settings/fuelgauge/
DBatterySaverController.java47 private final ContentObserver mObserver = new ContentObserver( field in BatterySaverController
84 true /* notifyForDescendants */, mObserver); in onStart() local
92 mContext.getContentResolver().unregisterContentObserver(mObserver); in onStop()

123