Home
last modified time | relevance | path

Searched refs:DynamicDataObserver (Results 1 – 7 of 7) sorted by relevance

/packages/apps/Settings/src/com/android/settings/dashboard/
DDashboardFeatureProviderImpl.java132 public List<DynamicDataObserver> bindPreferenceToTileAndGetObservers(FragmentActivity activity, in bindPreferenceToTileAndGetObservers()
143 final List<DynamicDataObserver> outObservers = new ArrayList<>(); in bindPreferenceToTileAndGetObservers()
144 DynamicDataObserver observer = bindTitleAndGetObserver(pref, tile); in bindPreferenceToTileAndGetObservers()
240 private DynamicDataObserver createDynamicDataObserver(String method, Uri uri, Preference pref) { in createDynamicDataObserver()
241 return new DynamicDataObserver() { in createDynamicDataObserver()
264 private DynamicDataObserver bindTitleAndGetObserver(Preference preference, Tile tile) {
285 private void refreshTitle(Uri uri, Preference preference, DynamicDataObserver observer) {
296 private DynamicDataObserver bindSummaryAndGetObserver(Preference preference, Tile tile) {
315 private void refreshSummary(Uri uri, Preference preference, DynamicDataObserver observer) {
326 private DynamicDataObserver bindSwitchAndGetObserver(Preference preference, Tile tile) {
[all …]
DDashboardFragment.java81 final ArrayMap<String, List<DynamicDataObserver>> mDashboardTilePrefKeys = new ArrayMap<>();
84 private final List<DynamicDataObserver> mRegisteredObservers = new ArrayList<>();
516 final Map<String, List<DynamicDataObserver>> remove = new ArrayMap(mDashboardTilePrefKeys); in refreshDashboardTiles()
520 final List<DynamicDataObserver> pendingObservers = new ArrayList<>(); in refreshDashboardTiles()
534 final List<DynamicDataObserver> observers; in refreshDashboardTiles()
579 for (Map.Entry<String, List<DynamicDataObserver>> entry : remove.entrySet()) { in refreshDashboardTiles()
604 pendingObservers.forEach(DynamicDataObserver::updateUi); in refreshDashboardTiles()
640 void registerDynamicDataObservers(List<DynamicDataObserver> observers) { in registerDynamicDataObservers()
649 DynamicDataObserver observer) { in registerDynamicDataObserver()
656 private void unregisterDynamicDataObservers(List<DynamicDataObserver> observers) { in unregisterDynamicDataObservers()
DDynamicDataObserver.java30 public abstract class DynamicDataObserver extends ContentObserver { class
36 protected DynamicDataObserver() { in DynamicDataObserver() method in DynamicDataObserver
DDashboardFeatureProvider.java60 List<DynamicDataObserver> bindPreferenceToTileAndGetObservers(FragmentActivity activity, in bindPreferenceToTileAndGetObservers()
/packages/apps/Car/Settings/src/com/android/car/settings/common/
DExtraSettingsPreferenceController.java92 List<DynamicDataObserver> mObservers = new ArrayList<>();
190 new DynamicDataObserver(METHOD_GET_DYNAMIC_TITLE, uri, metaData, preference)); in getDynamicData()
200 new DynamicDataObserver(METHOD_GET_DYNAMIC_SUMMARY, uri, metaData, preference)); in getDynamicData()
210 new DynamicDataObserver(METHOD_GET_PROVIDER_ICON, uri, metaData, preference)); in getDynamicData()
277 private class DynamicDataObserver extends ContentObserver { class in ExtraSettingsPreferenceController
283 DynamicDataObserver(String method, Uri uri, Bundle metaData, Preference preference) { in DynamicDataObserver() method in ExtraSettingsPreferenceController.DynamicDataObserver
/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/
DDashboardFragmentTest.java271 final DynamicDataObserver observer = new TestDynamicDataObserver(); in onStart_shouldRegisterDynamicDataObservers()
283 final DynamicDataObserver observer = new TestDynamicDataObserver(); in onStop_shouldUnregisterDynamicDataObservers()
601 private static class TestDynamicDataObserver extends DynamicDataObserver {
DDashboardFeatureProviderImplTest.java197 final List<DynamicDataObserver> observers = mImpl.bindPreferenceToTileAndGetObservers( in bindPreference_shouldBindAllSwitchData()
341 final List<DynamicDataObserver> observers = mImpl.bindPreferenceToTileAndGetObservers( in bindPreference_hasSummaryUri_shouldLoadSummaryFromContentProviderAndHaveObserver()
361 final List<DynamicDataObserver> observers = mImpl.bindPreferenceToTileAndGetObservers( in bindPreference_hasTitleUri_shouldLoadFromContentProviderAndHaveObserver()
421 final List<DynamicDataObserver> observers = mImpl.bindPreferenceToTileAndGetObservers( in bindPreference_callbackOnChanged_shouldLoadFromContentProvider()