Home
last modified time | relevance | path

Searched refs:ZenModeConfig (Results 1 – 19 of 19) sorted by relevance

/frameworks/base/services/core/java/com/android/server/notification/
DZenModeHelper.java45 import android.service.notification.ZenModeConfig;
46 import android.service.notification.ZenModeConfig.EventInfo;
47 import android.service.notification.ZenModeConfig.ScheduleInfo;
48 import android.service.notification.ZenModeConfig.ZenRule;
79 private final ZenModeConfig mDefaultConfig;
84 private final SparseArray<ZenModeConfig> mConfigs = new SparseArray<>();
89 private ZenModeConfig mConfig;
158 ZenModeConfig config = mConfigs.get(user); in onUserSwitched()
210 final ZenModeConfig newConfig = mConfig.copy(); in setManualZenMode()
243 private static void dump(PrintWriter pw, String prefix, String var, ZenModeConfig config) { in dump()
[all …]
DZenModeConditions.java24 import android.service.notification.ZenModeConfig;
25 import android.service.notification.ZenModeConfig.ZenRule;
46 if (mConditionProviders.isSystemProviderEnabled(ZenModeConfig.COUNTDOWN_PATH)) { in ZenModeConditions()
49 if (mConditionProviders.isSystemProviderEnabled(ZenModeConfig.SCHEDULE_PATH)) { in ZenModeConditions()
52 if (mConditionProviders.isSystemProviderEnabled(ZenModeConfig.EVENT_PATH)) { in ZenModeConditions()
66 public void evaluateConfig(ZenModeConfig config, boolean processSubscriptions) { in evaluateConfig()
114 ZenModeConfig config = mHelper.getConfig(); in onConditionChanged()
169 final ZenModeConfig config = mHelper.getConfig(); in isAutomaticActive()
DCountdownConditionProvider.java29 import android.service.notification.ZenModeConfig;
67 return ZenModeConfig.isValidCountdownConditionId(id); in isValidConditionId()
117 mTime = ZenModeConfig.tryParseCountdownConditionId(conditionId); in onSubscribe()
153 final long time = ZenModeConfig.tryParseCountdownConditionId(conditionId); in onReceive()
163 return new Condition(ZenModeConfig.toCountdownConditionId(time), in newCondition()
168 final long time = ZenModeConfig.tryParseCountdownConditionId(conditionUri); in tryParseDescription()
DZenModeFiltering.java28 import android.service.notification.ZenModeConfig;
78 public static boolean matchesCallFilter(Context context, int zen, ZenModeConfig config, in matchesCallFilter()
100 public boolean shouldIntercept(int zen, ZenModeConfig config, NotificationRecord record) { in shouldIntercept()
223 case ZenModeConfig.SOURCE_ANYONE: in audienceMatches()
225 case ZenModeConfig.SOURCE_CONTACT: in audienceMatches()
227 case ZenModeConfig.SOURCE_STAR: in audienceMatches()
DScheduleConditionProvider.java29 import android.service.notification.ZenModeConfig;
30 import android.service.notification.ZenModeConfig.ScheduleInfo;
73 return ZenModeConfig.isValidScheduleConditionId(id); in isValidConditionId()
118 if (!ZenModeConfig.isValidScheduleConditionId(conditionId)) { in onSubscribe()
190 final ScheduleInfo schedule = ZenModeConfig.tryParseScheduleConditionId(conditionId); in toScheduleCalendar()
DZenLog.java28 import android.service.notification.ZenModeConfig;
118 public static void traceConfig(String reason, ZenModeConfig oldConfig, in traceConfig()
119 ZenModeConfig newConfig) { in traceConfig()
122 + "," + ZenModeConfig.diff(oldConfig, newConfig)); in traceConfig()
DEventConditionProvider.java34 import android.service.notification.ZenModeConfig;
35 import android.service.notification.ZenModeConfig.EventInfo;
84 return ZenModeConfig.isValidEventConditionId(id); in isValidConditionId()
145 if (!ZenModeConfig.isValidEventConditionId(conditionId)) { in onSubscribe()
208 final EventInfo event = ZenModeConfig.tryParseEventConditionId(conditionId); in evaluateSubscriptionsW()
DScheduleCalendar.java19 import android.service.notification.ZenModeConfig.ScheduleInfo;
DCalendarTracker.java30 import android.service.notification.ZenModeConfig.EventInfo;
DNotificationManagerService.java87 import android.service.notification.ZenModeConfig;
1574 public ZenModeConfig getZenModeConfig() {
1580 public boolean setZenModeConfig(ZenModeConfig config, String reason) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DZenModeController.java22 import android.service.notification.ZenModeConfig;
23 import android.service.notification.ZenModeConfig.ZenRule;
32 ZenModeConfig getConfig(); in getConfig()
48 public void onConfigChanged(ZenModeConfig config) {} in onConfigChanged()
DZenModeControllerImpl.java37 import android.service.notification.ZenModeConfig;
38 import android.service.notification.ZenModeConfig.ZenRule;
66 private ZenModeConfig mConfig;
138 public ZenModeConfig getConfig() { in getConfig()
169 .isSystemConditionProviderEnabled(ZenModeConfig.COUNTDOWN_PATH); in isCountdownConditionSupported()
213 private void fireConfigChanged(ZenModeConfig config) { in fireConfigChanged()
230 final ZenModeConfig config = mNoMan.getZenModeConfig(); in updateZenModeConfig()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DZenFooter.java22 import android.service.notification.ZenModeConfig;
48 private ZenModeConfig mConfig;
79 public void onConfigChanged(ZenModeConfig config) { in init()
101 private void setConfig(ZenModeConfig config) { in setConfig()
136 : ZenModeConfig.getConditionSummary(mContext, mConfig, mController.getCurrentUser(), in update()
DZenModePanel.java35 import android.service.notification.ZenModeConfig;
36 import android.service.notification.ZenModeConfig.ZenRule;
73 : ZenModeConfig.MINUTE_BUCKETS;
303 mTimeCondition = ZenModeConfig.toTimeCondition(mContext, in setRequestingConditions()
472 final long time = ZenModeConfig.tryParseCountdownConditionId(mSessionExitCondition.id); in computeAlarmWarningText()
492 final long time = ZenModeConfig.tryParseCountdownConditionId(condition.id);
497 return ZenModeConfig.toTimeCondition(context,
610 mTimeCondition = ZenModeConfig.toTimeCondition(mContext,
619 return c != null && ZenModeConfig.isValidCountdownConditionId(c.id);
713 final long time = ZenModeConfig.tryParseCountdownConditionId(conditionId);
[all …]
DVolumeDialogController.java44 import android.service.notification.ZenModeConfig;
128 public ZenModeConfig getZenModeConfig() { in getZenModeConfig()
404 final ZenModeConfig zenModeConfig = getZenModeConfig();
948 public ZenModeConfig zenModeConfig;
/frameworks/base/core/java/android/service/notification/
DZenModeConfig.java53 public class ZenModeConfig implements Parcelable { class
126 public ZenModeConfig() { } in ZenModeConfig() method in ZenModeConfig
128 public ZenModeConfig(Parcel source) { in ZenModeConfig() method in ZenModeConfig
179 return new StringBuilder(ZenModeConfig.class.getSimpleName()).append('[') in toString()
193 private Diff diff(ZenModeConfig to) { in diff()
236 public static Diff diff(ZenModeConfig from, ZenModeConfig to) { in diff()
309 if (!(o instanceof ZenModeConfig)) return false; in equals()
311 final ZenModeConfig other = (ZenModeConfig) o; in equals()
371 public static ZenModeConfig readXml(XmlPullParser parser, Migration migration) in readXml()
377 final ZenModeConfig rt = new ZenModeConfig(); in readXml()
[all …]
DZenModeConfig.aidl19 parcelable ZenModeConfig;
/frameworks/base/core/java/android/app/
DINotificationManager.aidl33 import android.service.notification.ZenModeConfig;
84 ZenModeConfig getZenModeConfig(); in getZenModeConfig()
85 boolean setZenModeConfig(in ZenModeConfig config, String reason); in setZenModeConfig()
DNotificationManager.java41 import android.service.notification.ZenModeConfig;
378 public boolean setZenModeConfig(ZenModeConfig config, String reason) { in setZenModeConfig()
413 public ZenModeConfig getZenModeConfig() { in getZenModeConfig()