Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/conditional/
DConditionContextualCardController.java51 private final ConditionManager mConditionManager; field in ConditionContextualCardController
58 mConditionManager = new ConditionManager(mContext, this); in ConditionContextualCardController()
59 mConditionManager.startMonitoringStateChange(); in ConditionContextualCardController()
78 mConditionManager.startMonitoringStateChange(); in onStart()
83 mConditionManager.stopMonitoringStateChange(); in onStop()
89 mConditionManager.onPrimaryClick(mContext, card.getConditionId()); in onPrimaryClick()
95 mConditionManager.onActionClick(card.getConditionId()); in onActionClick()
108 final List<ContextualCard> conditionCards = mConditionManager.getDisplayableCards(); in onConditionsChanged()
DGrayscaleConditionController.java45 private final ConditionManager mConditionManager; field in GrayscaleConditionController
53 mConditionManager = conditionManager; in GrayscaleConditionController()
86 mConditionManager.onConditionChanged(); in onActionClick()
127 mConditionManager.onConditionChanged(); in onReceive()
DHotspotConditionController.java46 private final ConditionManager mConditionManager; field in HotspotConditionController
53 mConditionManager = conditionManager; in HotspotConditionController()
111 mConditionManager.onConditionChanged(); in startMonitoringStateChange()
132 mConditionManager.onConditionChanged(); in onReceive()
DAbnormalRingerConditionController.java33 private final ConditionManager mConditionManager; field in AbnormalRingerConditionController
38 mConditionManager = manager; in AbnormalRingerConditionController()
71 mConditionManager.onConditionChanged(); in onReceive()
DBackgroundDataConditionController.java34 private final ConditionManager mConditionManager; field in BackgroundDataConditionController
39 mConditionManager = manager; in BackgroundDataConditionController()
62 mConditionManager.onConditionChanged(); in onActionClick()
DNightDisplayConditionController.java37 private final ConditionManager mConditionManager; field in NightDisplayConditionController
43 mConditionManager = manager; in NightDisplayConditionController()
101 mConditionManager.onConditionChanged(); in onActivated()
DAirplaneModeConditionController.java40 private final ConditionManager mConditionManager; field in AirplaneModeConditionController
47 mConditionManager = conditionManager; in AirplaneModeConditionController()
102 mConditionManager.onConditionChanged(); in onReceive()
DBatterySaverConditionController.java39 private final ConditionManager mConditionManager; field in BatterySaverConditionController
45 mConditionManager = conditionManager; in BatterySaverConditionController()
103 mConditionManager.onConditionChanged(); in onPowerSaveModeChanged()
DDndConditionCardController.java48 private final ConditionManager mConditionManager; field in DndConditionCardController
54 mConditionManager = conditionManager; in DndConditionCardController()
118 mConditionManager.onConditionChanged(); in onReceive()
DCellularDataConditionController.java41 private final ConditionManager mConditionManager; field in CellularDataConditionController
50 mConditionManager = conditionManager; in CellularDataConditionController()
135 mConditionManager.onConditionChanged();
DWorkModeConditionController.java53 private final ConditionManager mConditionManager; field in WorkModeConditionController
62 mConditionManager = manager; in WorkModeConditionController()
137 mConditionManager.onConditionChanged(); in onReceive()
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/conditional/
DAbnormalRingerConditionControllerBaseTest.java47 private ConditionManager mConditionManager; field in AbnormalRingerConditionControllerBaseTest
56 mCondition = new TestCondition(mContext, mConditionManager); in setUp()
69 verify(mConditionManager, never()).onConditionChanged(); in startMonitor_shouldMonitorRingerStateChangeBroadcast()
74 verify(mConditionManager).onConditionChanged(); in startMonitor_shouldMonitorRingerStateChangeBroadcast()
DNightDisplayConditionControllerTest.java35 private ConditionManager mConditionManager; field in NightDisplayConditionControllerTest
44 mController = new NightDisplayConditionController(mContext, mConditionManager); in setUp()
51 verify(mConditionManager).onConditionChanged(); in onActivated_shouldUpdateCondition()
DConditionContextualCardControllerTest.java56 private ConditionManager mConditionManager; field in ConditionContextualCardControllerTest
78 ReflectionHelpers.setField(mController, "mConditionManager", mConditionManager); in setUp()
85 verify(mConditionManager).startMonitoringStateChange(); in onStart_shouldStartMonitoring()
92 verify(mConditionManager).stopMonitoringStateChange(); in onStop_shouldStopMonitoring()
100 when(mConditionManager.getDisplayableCards()).thenReturn(conditionalCards); in onConditionsChanged_listenerIsSet_shouldUpdateData()
113 when(mConditionManager.getDisplayableCards()).thenReturn(conditionalCards); in onConditionsChanged_listenerNotSet_shouldNotUpdateData()
DBackgroundDataConditionControllerTest.java44 private ConditionManager mConditionManager; field in BackgroundDataConditionControllerTest
56 mController = new BackgroundDataConditionController(mActivity, mConditionManager); in setUp()
73 verify(mConditionManager).onConditionChanged(); in onActionClick_shouldRefreshCondition()
DGrayscaleConditionControllerTest.java45 private ConditionManager mConditionManager; field in GrayscaleConditionControllerTest
57 mController = new GrayscaleConditionController(mContext, mConditionManager); in setUp()
86 verify(mConditionManager).onConditionChanged(); in onActionClick_shouldRefreshCondition()
DWorkModeConditionControllerTest.java42 private ConditionManager mConditionManager; field in WorkModeConditionControllerTest
50 mController = new WorkModeConditionController(mActivity, mConditionManager); in setUp()
DBatterySaverConditionControllerTest.java44 private ConditionManager mConditionManager; field in BatterySaverConditionControllerTest
55 mController = new BatterySaverConditionController(mContext, mConditionManager); in setUp()
DHotspotConditionControllerTest.java47 private ConditionManager mConditionManager; field in HotspotConditionControllerTest
58 mController = new HotspotConditionController(mContext, mConditionManager); in setUp()
DDndConditionalCardControllerTest.java49 private ConditionManager mConditionManager; field in DndConditionalCardControllerTest
58 mController = new DndConditionCardController(mContext, mConditionManager); in setUp()