/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/ |
D | ExposureChangesCategoryPreferenceControllerTest.java | 61 @Mock private PreferenceAvailabilityObserver mObserver; field in ExposureChangesCategoryPreferenceControllerTest 70 mController.setAvailabilityObserver(mObserver); in setUp() 81 assertThat(mController.getAvailabilityObserver()).isEqualTo(mObserver); in testGetAvailabilityObserver() 93 verify(mObserver).onPreferenceAvailabilityUpdated(KEY_EXPOSURE_CHANGES_CATEGORY, true); in testOnPreferenceAvailabilityUpdated() 95 reset(mObserver); in testOnPreferenceAvailabilityUpdated() 98 verify(mObserver).onPreferenceAvailabilityUpdated(KEY_EXPOSURE_CHANGES_CATEGORY, true); in testOnPreferenceAvailabilityUpdated() 100 reset(mObserver); in testOnPreferenceAvailabilityUpdated() 103 verify(mObserver).onPreferenceAvailabilityUpdated(KEY_EXPOSURE_CHANGES_CATEGORY, true); in testOnPreferenceAvailabilityUpdated() 105 reset(mObserver); in testOnPreferenceAvailabilityUpdated() 108 verify(mObserver).onPreferenceAvailabilityUpdated(KEY_EXPOSURE_CHANGES_CATEGORY, false); in testOnPreferenceAvailabilityUpdated() [all …]
|
D | EnterpriseInstalledPackagesPreferenceControllerTest.java | 62 @Mock private PreferenceAvailabilityObserver mObserver; field in EnterpriseInstalledPackagesPreferenceControllerTest 73 mController.setAvailabilityObserver(mObserver); in setUp() 78 assertThat(mController.getAvailabilityObserver()).isEqualTo(mObserver); in testGetAvailabilityObserver() 99 verify(mObserver).onPreferenceAvailabilityUpdated(KEY_NUMBER_ENTERPRISE_INSTALLED_PACKAGES, in testUpdateState() 109 verify(mObserver).onPreferenceAvailabilityUpdated(KEY_NUMBER_ENTERPRISE_INSTALLED_PACKAGES, in testUpdateState() 118 controller.setAvailabilityObserver(mObserver); in testIsAvailableSync() 122 verify(mObserver).onPreferenceAvailabilityUpdated( in testIsAvailableSync() 127 verify(mObserver).onPreferenceAvailabilityUpdated( in testIsAvailableSync() 135 verify(mObserver, never()).onPreferenceAvailabilityUpdated( in testIsAvailableAsync() 140 verify(mObserver, never()).onPreferenceAvailabilityUpdated( in testIsAvailableAsync()
|
D | AdminGrantedPermissionsPreferenceControllerTestBase.java | 55 @Mock private PreferenceAvailabilityObserver mObserver; field in AdminGrantedPermissionsPreferenceControllerTestBase 72 mController.setAvailabilityObserver(mObserver); in setUp() 77 assertThat(mController.getAvailabilityObserver()).isEqualTo(mObserver); in testGetAvailabilityObserver() 99 verify(mObserver).onPreferenceAvailabilityUpdated(mKey, false); in testUpdateState() 108 verify(mObserver).onPreferenceAvailabilityUpdated(mKey, true); in testUpdateState() 115 controller.setAvailabilityObserver(mObserver); in testIsAvailableSync() 119 verify(mObserver).onPreferenceAvailabilityUpdated(mKey, false); in testIsAvailableSync() 123 verify(mObserver).onPreferenceAvailabilityUpdated(mKey, true); in testIsAvailableSync() 130 verify(mObserver, never()).onPreferenceAvailabilityUpdated(eq(mKey), anyBoolean()); in testIsAvailableAsync() 134 verify(mObserver, never()).onPreferenceAvailabilityUpdated(eq(mKey), anyBoolean()); in testIsAvailableAsync()
|
D | FailedPasswordWipePreferenceControllerTestBase.java | 47 @Mock private PreferenceAvailabilityObserver mObserver; field in FailedPasswordWipePreferenceControllerTestBase 64 mController.setAvailabilityObserver(mObserver); in testGetAvailabilityObserver() 65 assertThat(mController.getAvailabilityObserver()).isEqualTo(mObserver); in testGetAvailabilityObserver() 84 mController.setAvailabilityObserver(mObserver); in testIsAvailable() 88 verify(mObserver).onPreferenceAvailabilityUpdated(mKey, false); in testIsAvailable() 92 verify(mObserver).onPreferenceAvailabilityUpdated(mKey, true); in testIsAvailable()
|
D | GlobalHttpProxyPreferenceControllerTest.java | 51 @Mock private PreferenceAvailabilityObserver mObserver; field in GlobalHttpProxyPreferenceControllerTest 61 mController.setAvailabilityObserver(mObserver); in setUp() 66 assertThat(mController.getAvailabilityObserver()).isEqualTo(mObserver); in testGetAvailabilityObserver() 74 verify(mObserver).onPreferenceAvailabilityUpdated(KEY_GLOBAL_HTTP_PROXY, false); in testIsAvailable() 79 verify(mObserver).onPreferenceAvailabilityUpdated(KEY_GLOBAL_HTTP_PROXY, true); in testIsAvailable()
|
D | AlwaysOnVpnManagedProfilePreferenceControllerTest.java | 51 @Mock private PreferenceAvailabilityObserver mObserver; field in AlwaysOnVpnManagedProfilePreferenceControllerTest 62 mController.setAvailabilityObserver(mObserver); in setUp() 67 assertThat(mController.getAvailabilityObserver()).isEqualTo(mObserver); in testGetAvailabilityObserver() 75 verify(mObserver).onPreferenceAvailabilityUpdated(KEY_ALWAYS_ON_VPN_MANAGED_PROFILE, false); in testIsAvailable() 80 verify(mObserver).onPreferenceAvailabilityUpdated(KEY_ALWAYS_ON_VPN_MANAGED_PROFILE, true); in testIsAvailable()
|
D | CaCertsPreferenceControllerTest.java | 53 @Mock private PreferenceAvailabilityObserver mObserver; field in CaCertsPreferenceControllerTest 63 mController.setAvailabilityObserver(mObserver); in setUp() 68 assertThat(mController.getAvailabilityObserver()).isEqualTo(mObserver); in testGetAvailabilityObserver() 88 verify(mObserver).onPreferenceAvailabilityUpdated(KEY_CA_CERTS, false); in testIsAvailable() 93 verify(mObserver).onPreferenceAvailabilityUpdated(KEY_CA_CERTS, true); in testIsAvailable()
|
D | ImePreferenceControllerTest.java | 55 @Mock private PreferenceAvailabilityObserver mObserver; field in ImePreferenceControllerTest 67 mController.setAvailabilityObserver(mObserver); in setUp() 72 assertThat(mController.getAvailabilityObserver()).isEqualTo(mObserver); in testGetAvailabilityObserver() 90 verify(mObserver).onPreferenceAvailabilityUpdated(KEY_INPUT_METHOD, false); in testIsAvailable() 95 verify(mObserver).onPreferenceAvailabilityUpdated(KEY_INPUT_METHOD, true); in testIsAvailable()
|
D | EnterprisePrivacyPreferenceControllerTest.java | 56 @Mock private PreferenceAvailabilityObserver mObserver; field in EnterprisePrivacyPreferenceControllerTest 66 mController.setAvailabilityObserver(mObserver); in setUp() 71 assertThat(mController.getAvailabilityObserver()).isEqualTo(mObserver); in testGetAvailabilityObserver() 98 verify(mObserver).onPreferenceAvailabilityUpdated(KEY_ENTERPRISE_PRIVACY, false); in testIsAvailable() 102 verify(mObserver).onPreferenceAvailabilityUpdated(KEY_ENTERPRISE_PRIVACY, true); in testIsAvailable()
|
D | AlwaysOnVpnCurrentUserPreferenceControllerTest.java | 54 @Mock private PreferenceAvailabilityObserver mObserver; field in AlwaysOnVpnCurrentUserPreferenceControllerTest 69 mController.setAvailabilityObserver(mObserver); in setUp() 74 assertThat(mController.getAvailabilityObserver()).isEqualTo(mObserver); in testGetAvailabilityObserver() 98 verify(mObserver).onPreferenceAvailabilityUpdated(KEY_ALWAYS_ON_VPN_PRIMARY_USER, false); in testIsAvailable() 103 verify(mObserver).onPreferenceAvailabilityUpdated(KEY_ALWAYS_ON_VPN_PRIMARY_USER, true); in testIsAvailable()
|
D | EnterpriseSetDefaultAppsPreferenceControllerTest.java | 69 @Mock private PreferenceAvailabilityObserver mObserver; field in EnterpriseSetDefaultAppsPreferenceControllerTest 80 mController.setAvailabilityObserver(mObserver); in setUp() 85 assertThat(mController.getAvailabilityObserver()).isEqualTo(mObserver); in testGetAvailabilityObserver() 132 verify(mObserver).onPreferenceAvailabilityUpdated(KEY_DEFAULT_APPS, false); in testIsAvailable() 137 verify(mObserver).onPreferenceAvailabilityUpdated(KEY_DEFAULT_APPS, true); in testIsAvailable()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMapMasInstance.java | 81 BluetoothMapContentObserver mObserver; field in BluetoothMapMasInstance 270 if (mObserver != null) { in startRfcommSocketListener() 272 mObserver.deinit(); in startRfcommSocketListener() 273 mObserver = null; in startRfcommSocketListener() 356 mObserver = new BluetoothMapContentObserver(mContext, in startObexServerSession() 361 mObserver.init(); in startObexServerSession() 364 mObserver, in startObexServerSession() 381 if(mObserver != null) { in handleSmsSendIntent() 382 return mObserver.handleSmsSendIntent(context, intent); in handleSmsSendIntent() 402 if (mObserver != null) { in shutdown() [all …]
|
D | BluetoothMapObexServer.java | 95 private BluetoothMapContentObserver mObserver = null; field in BluetoothMapObexServer 125 mObserver = observer; in BluetoothMapObexServer() 149 mObserver.setFolderStructure(mCurrentFolder.getRoot()); in BluetoothMapObexServer() 435 return mObserver.setNotificationRegistration(appParams.getNotificationStatus()); in onPut() 445 mObserver.setNotificationFilter(appParams.getNotificationFilter()); in onPut() 607 if (mObserver == null || message == null) { in pushMessage() 622 long handle = mObserver.pushMessage(message, folderElement, appParams, mBaseUriString); in pushMessage() 683 if (mObserver == null) { in setMessageStatus() 701 if (!mObserver.setMessageStatusDeleted(handle, msgType, mCurrentFolder, in setMessageStatus() 708 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/experimental/LoaderApp/src/com/android/loaderapp/model/ |
D | ContactLoader.java | 34 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/tests/src/com/android/inputmethod/latin/ |
D | ContactsContentObserverTest.java | 58 private ContactsContentObserver mObserver; field in ContactsContentObserverTest 63 mObserver = new ContactsContentObserver(mMockManager, mContext); in setUp() 77 assertFalse(mObserver.haveContentsChanged()); in testHaveContentsChanged_NoChange() 83 assertTrue(mObserver.haveContentsChanged()); in testHaveContentsChanged_UpdatedCount() 92 assertTrue(mObserver.haveContentsChanged()); in testHaveContentsChanged_HashUpdate()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/core/ |
D | DynamicAvailabilityPreferenceControllerTest.java | 54 private @Mock PreferenceAvailabilityObserver mObserver; field in DynamicAvailabilityPreferenceControllerTest 124 controller.setAvailabilityObserver(mObserver); in testNotifyOnAvailabilityUpdate() 125 assertThat(controller.getAvailabilityObserver()).isEqualTo(mObserver); in testNotifyOnAvailabilityUpdate() 129 verify(mObserver).onPreferenceAvailabilityUpdated(PREFERENCE_KEY, false); in testNotifyOnAvailabilityUpdate() 133 verify(mObserver).onPreferenceAvailabilityUpdated(PREFERENCE_KEY, true); in testNotifyOnAvailabilityUpdate()
|
/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/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() 101 mObserver.onChange(false); in jobFinishedInternal() 106 private ContentObserver mObserver = new ContentObserver(Helpers.getAsyncHandler()) { field in DownloadJobService
|
/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/Contacts/src/com/android/contacts/drawer/ |
D | DrawerFragment.java | 66 private WelcomeContentObserver mObserver; field in DrawerFragment 192 mObserver = new WelcomeContentObserver(new Handler()); in onResume() 193 getActivity().getContentResolver().registerContentObserver(uri, false, mObserver); in onResume() 208 if (mObserver != null) { in onPause() 209 getActivity().getContentResolver().unregisterContentObserver(mObserver); in onPause()
|
/packages/experimental/BugReportSender/src/com/android/bugreportsender/ |
D | BugReportListActivity.java | 62 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/DocumentsUI/src/com/android/documentsui/ |
D | DirectoryLoader.java | 55 private final LockingContentObserver mObserver; field in DirectoryLoader 84 mObserver = new LockingContentObserver(lock, this::onContentChanged); in DirectoryLoader() 130 cursor.registerContentObserver(mObserver); in loadInBackground() 221 getContext().getContentResolver().unregisterContentObserver(mObserver); in onReset()
|