Searched refs:mConditionProviders (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/services/core/java/com/android/server/notification/ |
D | ZenModeConditions.java | 42 private final ConditionProviders mConditionProviders; field in ZenModeConditions 49 mConditionProviders = conditionProviders; in ZenModeConditions() 50 if (mConditionProviders.isSystemProviderEnabled(ZenModeConfig.COUNTDOWN_PATH)) { in ZenModeConditions() 51 mConditionProviders.addSystemProvider(new CountdownConditionProvider()); in ZenModeConditions() 53 if (mConditionProviders.isSystemProviderEnabled(ZenModeConfig.SCHEDULE_PATH)) { in ZenModeConditions() 54 mConditionProviders.addSystemProvider(new ScheduleConditionProvider()); in ZenModeConditions() 56 if (mConditionProviders.isSystemProviderEnabled(ZenModeConfig.EVENT_PATH)) { in ZenModeConditions() 57 mConditionProviders.addSystemProvider(new EventConditionProvider()); in ZenModeConditions() 59 mConditionProviders.setCallback(this); in ZenModeConditions() 90 mConditionProviders.unsubscribeIfNecessary(component, id); in evaluateConfig() [all …]
|
D | NotificationManagerService.java | 453 private ConditionProviders mConditionProviders; field in NotificationManagerService 615 } else if (mConditionProviders.getConfig().xmlTag.equals(parser.getName())) { in readPolicyXml() 619 mConditionProviders.readXml( in readPolicyXml() 636 mConditionProviders.migrateToXml(); in readPolicyXml() 710 mConditionProviders.writeXml(out, forBackup, userId); in writePolicyXml() 1160 mConditionProviders.onSettingRestored( 1347 mConditionProviders.onUserSwitched(userId); 1368 mConditionProviders.onUserRemoved(userId); 1376 mConditionProviders.onUserUnlocked(userId); 1681 mConditionProviders = conditionProviders; in init() [all …]
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | NotificationManagerServiceTest.java | 223 @Mock private ConditionProviders mConditionProviders; field in NotificationManagerServiceTest 384 when(mConditionProviders.getConfig()).thenReturn(dndConfig); in setUp() 391 mListeners, mAssistants, mConditionProviders, in setUp() local 2187 verify(mConditionProviders, times(1)).setPackageOrComponentEnabled( in testSetListenerAccessForUser() 2209 verify(mConditionProviders, times(1)).setPackageOrComponentEnabled( in testSetAssistantAccessForUser() 2248 verify(mConditionProviders, times(1)).setPackageOrComponentEnabled( in testSetDndAccessForUser() 2263 verify(mConditionProviders, times(1)).setPackageOrComponentEnabled( in testSetListenerAccess() 2282 verify(mConditionProviders, times(1)).setPackageOrComponentEnabled( in testSetAssistantAccess() 2306 verify(mConditionProviders, times(1)).setPackageOrComponentEnabled( in testSetAssistantAccess_multiProfile() 2308 verify(mConditionProviders, times(1)).setPackageOrComponentEnabled( in testSetAssistantAccess_multiProfile() [all …]
|
D | ZenModeHelperTest.java | 106 ConditionProviders mConditionProviders; field in ZenModeHelperTest 133 mConditionProviders = new ConditionProviders(mContext, new UserProfiles(), in setUp() 135 mConditionProviders.addSystemProvider(new CountdownConditionProvider()); in setUp() 137 mConditionProviders)); in setUp()
|