Home
last modified time | relevance | path

Searched refs:mChangeListener (Results 1 – 20 of 20) sorted by relevance

/packages/apps/Launcher3/robolectric_tests/unstaged/
DSettingsCacheTest.java42 private SettingsCache.OnChangeListener mChangeListener; field in SettingsCacheTest
47 mChangeListener = mock(SettingsCache.OnChangeListener.class); in setup()
50 mSettingsCache.register(KEY_SYSTEM_URI_TEST1, mChangeListener); in setup()
56 verify(mChangeListener, times(1)).onSettingsChanged(true); in listenerCalledOnChange()
90 verify(mChangeListener, times(1)).onSettingsChanged(true); in multipleListenersSingleKey()
101 verify(mChangeListener, times(1)).onSettingsChanged(true); in singleListenerMultipleKeys()
108 mSettingsCache.register(KEY_SYSTEM_URI_TEST2, mChangeListener); in sameListenerMultipleKeys()
112 verify(mChangeListener, times(2)).onSettingsChanged(true); in sameListenerMultipleKeys()
/packages/apps/Camera2/src/com/android/camera/data/
DFilmstripContentObserver.java27 private ChangeListener mChangeListener; field in FilmstripContentObserver
41 mChangeListener = changeListener; in setForegroundChangeListener()
45 mChangeListener = null; in removeForegroundChangeListener()
54 if (mChangeListener != null) { in onChange()
55 mChangeListener.onChange(); in onChange()
/packages/apps/Settings/src/com/android/settings/network/telephony/
DDataDuringCallsPreferenceController.java44 private SubscriptionsChangeListener mChangeListener; field in DataDuringCallsPreferenceController
62 if (mChangeListener == null) { in onResume()
63 mChangeListener = new SubscriptionsChangeListener(mContext, this); in onResume()
65 mChangeListener.start(); in onResume()
76 if (mChangeListener != null) { in onPause()
77 mChangeListener.stop(); in onPause()
DDisabledSubscriptionController.java40 private SubscriptionsChangeListener mChangeListener; field in DisabledSubscriptionController
50 mChangeListener = new SubscriptionsChangeListener(context, this); in DisabledSubscriptionController()
63 mChangeListener.start(); in onResume()
69 mChangeListener.stop(); in onPause()
DMobileNetworkSwitchController.java43 private SubscriptionsChangeListener mChangeListener; field in MobileNetworkSwitchController
50 mChangeListener = new SubscriptionsChangeListener(context, this); in MobileNetworkSwitchController()
60 mChangeListener.start(); in onResume()
66 mChangeListener.stop(); in onPause()
DDefaultSubscriptionController.java56 protected SubscriptionsChangeListener mChangeListener; field in DefaultSubscriptionController
69 mChangeListener = new SubscriptionsChangeListener(context, this); in DefaultSubscriptionController()
103 mChangeListener.start(); in onResume()
109 mChangeListener.stop(); in onPause()
/packages/apps/Settings/src/com/android/settings/network/
DMobileNetworkSummaryController.java61 private SubscriptionsChangeListener mChangeListener; field in MobileNetworkSummaryController
87 mChangeListener = new SubscriptionsChangeListener(context, this); in MobileNetworkSummaryController()
94 mChangeListener.start(); in onResume()
100 mChangeListener.stop(); in onPause()
162 mPreference.setEnabled(!mChangeListener.isAirplaneModeOn()); in initPreference()
189 mPreference.setAddWidgetEnabled(!mChangeListener.isAirplaneModeOn()); in update()
DMobileNetworkListController.java57 private SubscriptionsChangeListener mChangeListener; field in MobileNetworkListController
64 mChangeListener = new SubscriptionsChangeListener(context, this); in MobileNetworkListController()
71 mChangeListener.start(); in onResume()
77 mChangeListener.stop(); in onPause()
DNetworkProviderSimListController.java55 private SubscriptionsChangeListener mChangeListener; field in NetworkProviderSimListController
62 mChangeListener = new SubscriptionsChangeListener(context, this); in NetworkProviderSimListController()
69 mChangeListener.start(); in onResume()
78 mChangeListener.stop(); in onPause()
DNetworkProviderDownloadedSimListController.java60 private SubscriptionsChangeListener mChangeListener; field in NetworkProviderDownloadedSimListController
67 mChangeListener = new SubscriptionsChangeListener(context, this); in NetworkProviderDownloadedSimListController()
74 mChangeListener.start(); in onResume()
83 mChangeListener.stop(); in onPause()
/packages/apps/Settings/src/com/android/settings/sim/
DSimDialogFragment.java37 private SubscriptionsChangeListener mChangeListener; field in SimDialogFragment
60 mChangeListener = new SubscriptionsChangeListener(context, this); in onAttach()
66 mChangeListener.stop(); in onPause()
72 mChangeListener.start(); in onResume()
/packages/apps/Launcher3/src/com/android/launcher3/popup/
DPopupDataProvider.java68 private PopupDataChangeListener mChangeListener = PopupDataChangeListener.INSTANCE; field in PopupDataProvider
76 mChangeListener.onNotificationDotsUpdated(updatedDots); in updateNotificationDots()
143 mChangeListener.trimNotifications(updatedDots); in trimNotifications()
200 mChangeListener.onRecommendedWidgetsBound(); in setRecommendedWidgets()
205 mChangeListener.onWidgetsBound(); in setAllWidgets()
209 mChangeListener = listener == null ? PopupDataChangeListener.INSTANCE : listener; in setChangeListener()
/packages/apps/Car/Settings/src/com/android/car/settings/network/
DMobileNetworkEntryPreferenceController.java41 private final SubscriptionsChangeListener mChangeListener; field in MobileNetworkEntryPreferenceController
50 mChangeListener = new SubscriptionsChangeListener(context, /* action= */ this); in MobileNetworkEntryPreferenceController()
63 mChangeListener.start(); in onStartInternal()
68 mChangeListener.stop(); in onStopInternal()
DRoamingPreferenceController.java143 private Runnable mChangeListener; field in RoamingPreferenceController.RoamingStateChangeObserver
147 mChangeListener = changeListener; in RoamingStateChangeObserver()
153 mChangeListener.run(); in onChange()
/packages/services/Car/experimental/tests/experimentalcarservice_unit_test/src/com/android/experimentalcar/
DDriverDistractionExperimentalFeatureServiceTest.java126 private final CarDriverDistractionManager.OnDriverDistractionChangeListener mChangeListener = field in DriverDistractionExperimentalFeatureServiceTest
365 mManager.addDriverDistractionChangeListener(mChangeListener); in testManagerRegister_returnsInitialEvent()
383 mManager.addDriverDistractionChangeListener(mChangeListener); in testManagerRegister_distractionValueUnchanged_doesNotEmitEvent()
410 mManager.addDriverDistractionChangeListener(mChangeListener); in testManagerRegister_eventInThrottleWindow_isQueued()
455 mManager.addDriverDistractionChangeListener(mChangeListener); in testManagerRegister_multipleEventsInThrottleWindow_dropsExtraEvents()
500 mManager.addDriverDistractionChangeListener(mChangeListener); in testManagerRegister_multipleEventsOutsideThrottleWindow_emitsAllEvents()
559 mManager.addDriverDistractionChangeListener(mChangeListener); in testManagerRegister_receivesChangeEvents()
589 mManager.addDriverDistractionChangeListener(mChangeListener); in testManagerRegisterUnregister_stopsReceivingEvents()
590 mManager.removeDriverDistractionChangeListener(mChangeListener); in testManagerRegisterUnregister_stopsReceivingEvents()
603 mManager.removeDriverDistractionChangeListener(mChangeListener); in testManagerUnregister_beforeRegister_doesNothing()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/db/
DVideoStore.java54 private final ChangeListener mChangeListener; field in VideoStore
72 mChangeListener = changeListener; in VideoStore()
198 mChangeListener.onMoviesAdded(movies); in load()
199 mChangeListener.onSeriesAdded(series); in load()
200 mChangeListener.onEpisodesAdded(episodes); in load()
201 mChangeListener.onOthersAdded(others); in load()
DAudioStore.java42 private final ChangeListener mChangeListener; field in AudioStore
61 mChangeListener = changeListener; in AudioStore()
233 mChangeListener.onAudiosAdded(audios); in load()
234 mChangeListener.onArtistsAdded(artists); in load()
235 mChangeListener.onAlbumsAdded(albums); in load()
236 mChangeListener.onGenresAdded(genres); in load()
237 mChangeListener.onPlaylistsAdded(playlists); in load()
/packages/services/Car/tests/MultiDisplaySecondaryHomeTestLauncher/src/com/android/car/multidisplay/launcher/
DPinnedAppListLiveData.java40 private final SharedPreferences.OnSharedPreferenceChangeListener mChangeListener; field in PinnedAppListLiveData
48 mChangeListener = (preferences, key) -> { in PinnedAppListLiveData()
51 prefs.registerOnSharedPreferenceChangeListener(mChangeListener); in PinnedAppListLiveData()
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioPowerListener.java42 private final ICarPowerPolicyListener mChangeListener = field in CarAudioPowerListener
87 mCarPowerManagementService.addPowerPolicyListener(filter, mChangeListener); in startListeningForPolicyChanges()
95 mCarPowerManagementService.removePowerPolicyListener(mChangeListener); in stopListeningForPolicyChanges()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarOccupantZoneServiceTest.java169 private final CarOccupantZoneManager.OccupantZoneConfigChangeListener mChangeListener = field in CarOccupantZoneServiceTest
903 mManager.registerOccupantZoneConfigChangeListener(mChangeListener); in testManagerRegisterUnregister()
918 mManager.unregisterOccupantZoneConfigChangeListener(mChangeListener); in testManagerRegisterUnregister()
930 mManager.registerOccupantZoneConfigChangeListener(mChangeListener); in testManagerRegisterUnregisterForAudioConfigs()
943 mManager.unregisterOccupantZoneConfigChangeListener(mChangeListener); in testManagerRegisterUnregisterForAudioConfigs()