Home
last modified time | relevance | path

Searched refs:rule (Results 1 – 25 of 132) sorted by relevance

123456

/packages/apps/Settings/src/com/android/settings/notification/
DZenRulePreference.java121 public void updatePreference(AutomaticZenRule rule) { in updatePreference() argument
122 if (!mRule.getName().equals(rule.getName())) { in updatePreference()
123 mName = rule.getName(); in updatePreference()
127 if (mRule.isEnabled() != rule.isEnabled()) { in updatePreference()
132 mRule = rule; in updatePreference()
157 protected void setAttributes(AutomaticZenRule rule) { in setAttributes() argument
159 rule.getConditionId(), true); in setAttributes()
160 final boolean isEvent = ZenModeConfig.isValidEventConditionId(rule.getConditionId()); in setAttributes()
162 setSummary(computeRuleSummary(rule)); in setAttributes()
169 ComponentInfo si = mServiceListing.findService(rule.getOwner()); in setAttributes()
[all …]
DZenModeAutomaticRulesPreferenceController.java75 AutomaticZenRule rule = sortedRules[i].getValue(); in updateState() local
76 pref.updatePreference(rule); in updateState()
90 for (Map.Entry<String, AutomaticZenRule> rule : rules) { in reloadAllRules()
91 ZenRulePreference pref = createZenRulePreference(rule); in reloadAllRules()
97 ZenRulePreference createZenRulePreference(Map.Entry<String, AutomaticZenRule> rule) { in createZenRulePreference() argument
99 rule, mParent, mMetricsFeatureProvider); in createZenRulePreference()
DAbstractZenModeAutomaticRulePreferenceController.java113 protected static ComponentName getSettingsActivity(AutomaticZenRule rule, ComponentInfo ci) { in getSettingsActivity() argument
115 if (rule != null && rule.getConfigurationActivity() != null) { in getSettingsActivity()
116 return rule.getConfigurationActivity(); in getSettingsActivity()
148 AutomaticZenRule rule = new AutomaticZenRule(ruleName, mRuleInfo.serviceComponent, in onOk() local
151 String savedRuleId = mBackend.addZenRule(rule); in onOk()
DZenModeBackend.java93 protected boolean updateZenRule(String id, AutomaticZenRule rule) { in updateZenRule() argument
94 return NotificationManager.from(mContext).updateAutomaticZenRule(id, rule); in updateZenRule()
378 protected String addZenRule(AutomaticZenRule rule) { in addZenRule() argument
380 return NotificationManager.from(mContext).addAutomaticZenRule(rule); in addZenRule()
526 private String key(AutomaticZenRule rule) {
527 final int type = ZenModeConfig.isValidScheduleConditionId(rule.getConditionId())
528 ? 1 : ZenModeConfig.isValidEventConditionId(rule.getConditionId())
530 return type + rule.getName().toString();
DAbstractZenCustomRulePreferenceController.java51 public void onResume(AutomaticZenRule rule, String id) { in onResume() argument
53 mRule = rule; in onResume()
DZenModeSettingsFooterPreferenceController.java97 for (ZenModeConfig.ZenRule rule : activeRules) { in getFooterText()
98 if (rule.name != null) { in getFooterText()
99 rulesNames.add(rule.name); in getFooterText()
DZenModeEventRuleSettings.java60 protected boolean setRule(AutomaticZenRule rule) { in setRule() argument
61 mEvent = rule != null ? ZenModeConfig.tryParseEventConditionId(rule.getConditionId()) in setRule()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DZenRulePreference.java121 public void updatePreference(AutomaticZenRule rule) { in updatePreference() argument
122 if (!mRule.getName().equals(rule.getName())) { in updatePreference()
123 mName = rule.getName(); in updatePreference()
128 if (mRule.isEnabled() != rule.isEnabled()) { in updatePreference()
129 mRule.setEnabled(rule.isEnabled()); in updatePreference()
157 protected void setAttributes(AutomaticZenRule rule) { in setAttributes() argument
159 rule.getConditionId(), true); in setAttributes()
160 final boolean isEvent = ZenModeConfig.isValidEventConditionId(rule.getConditionId()); in setAttributes()
162 setSummary(computeRuleSummary(rule)); in setAttributes()
169 ComponentInfo si = mServiceListing.findService(rule.getOwner()); in setAttributes()
[all …]
DZenModeAutomaticRulesPreferenceController.java75 AutomaticZenRule rule = sortedRules[i].getValue(); in updateState() local
76 pref.updatePreference(rule); in updateState()
90 for (Map.Entry<String, AutomaticZenRule> rule : rules) { in reloadAllRules()
91 ZenRulePreference pref = createZenRulePreference(rule); in reloadAllRules()
97 ZenRulePreference createZenRulePreference(Map.Entry<String, AutomaticZenRule> rule) { in createZenRulePreference() argument
99 rule, mParent, mMetricsFeatureProvider); in createZenRulePreference()
DAbstractZenModeAutomaticRulePreferenceController.java113 protected static ComponentName getSettingsActivity(AutomaticZenRule rule, ComponentInfo ci) { in getSettingsActivity() argument
115 if (rule != null && rule.getConfigurationActivity() != null) { in getSettingsActivity()
116 return rule.getConfigurationActivity(); in getSettingsActivity()
145 AutomaticZenRule rule = new AutomaticZenRule(ruleName, mRuleInfo.serviceComponent, in onOk() local
148 String savedRuleId = mBackend.addZenRule(rule); in onOk()
DZenModeBackend.java93 protected boolean updateZenRule(String id, AutomaticZenRule rule) { in updateZenRule() argument
94 return NotificationManager.from(mContext).updateAutomaticZenRule(id, rule); in updateZenRule()
378 protected String addZenRule(AutomaticZenRule rule) { in addZenRule() argument
380 return NotificationManager.from(mContext).addAutomaticZenRule(rule); in addZenRule()
526 private String key(AutomaticZenRule rule) {
527 final int type = ZenModeConfig.isValidScheduleConditionId(rule.getConditionId())
528 ? 1 : ZenModeConfig.isValidEventConditionId(rule.getConditionId())
530 return type + rule.getName().toString();
DAbstractZenCustomRulePreferenceController.java51 public void onResume(AutomaticZenRule rule, String id) { in onResume() argument
53 mRule = rule; in onResume()
DZenModeSettingsFooterPreferenceController.java97 for (ZenModeConfig.ZenRule rule : activeRules) { in getFooterText()
98 if (rule.name != null) { in getFooterText()
99 rulesNames.add(rule.name); in getFooterText()
DZenAutomaticRuleSwitchPreferenceController.java79 public void onResume(AutomaticZenRule rule, String id) { in onResume() argument
80 mRule = rule; in onResume()
/packages/services/Car/service/src/com/android/car/garagemode/
DWakeupPolicy.java94 for (String rule : policy) { in parsePolicy()
95 WakeupInterval interval = parseRule(rule); in parsePolicy()
97 LOG.e("Invalid Policy! This rule has bad format: " + rule); in parsePolicy()
105 private WakeupInterval parseRule(String rule) { in parseRule() argument
106 String[] str = rule.split(","); in parseRule()
109 LOG.e("Policy has bad format: " + rule); in parseRule()
117 LOG.e("One of the values is empty. Please check format: " + rule); in parseRule()
131 LOG.d("Invalid input Rule for interval " + rule); in parseRule()
/packages/modules/NetworkStack/
Djarjar-rules-shared.txt1 rule com.android.internal.util.** android.net.networkstack.util.@1
3 rule android.net.shared.Inet4AddressUtils* android.net.networkstack.shared.Inet4AddressUtils@1
4 rule android.net.shared.InetAddressUtils* android.net.networkstack.shared.InetAddressUtils@1
8 rule android.net.DhcpResultsParcelable* @0
9 rule android.net.DhcpResults* android.net.networkstack.DhcpResults@1
10 rule android.net.LocalLog* android.net.networkstack.LocalLog@1
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DFolderAnimationManager.java115 ClippedFolderIconLayoutRule rule = mFolderIcon.getLayoutRule(); in getAnimator() local
126 float previewScale = rule.scaleForItem(itemsInPreview.size()); in getAnimator()
127 float previewSize = rule.getIconSize() * previewScale; in getAnimator()
233 ClippedFolderIconLayoutRule rule = mFolderIcon.getLayoutRule(); in addPreviewItemAnimators() local
254 float previewScale = rule.scaleForItem(numItemsInFirstPagePreview); in addPreviewItemAnimators()
255 float previewSize = rule.getIconSize() * previewScale; in addPreviewItemAnimators()
265 rule.computePreviewItemDrawingParams(i, numItemsInFirstPagePreview, mTmpParams); in addPreviewItemAnimators()
/packages/apps/Settings/src/com/android/settings/datausage/
DDataUsageSummaryPreferenceController.java291 RecurrenceRule rule = primaryPlan.getCycleRule(); in refreshDataplanInfo() local
292 if (rule != null && rule.start != null && rule.end != null) { in refreshDataplanInfo()
293 mCycleStart = rule.start.toEpochSecond() * 1000L; in refreshDataplanInfo()
294 mCycleEnd = rule.end.toEpochSecond() * 1000L; in refreshDataplanInfo()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/
DDataUsageSummaryPreferenceController.java292 RecurrenceRule rule = primaryPlan.getCycleRule(); in refreshDataplanInfo() local
293 if (rule != null && rule.start != null && rule.end != null) { in refreshDataplanInfo()
294 mCycleStart = rule.start.toEpochSecond() * 1000L; in refreshDataplanInfo()
295 mCycleEnd = rule.end.toEpochSecond() * 1000L; in refreshDataplanInfo()
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/
DDataUsageSummaryPreferenceController.java249 RecurrenceRule rule = primaryPlan.getCycleRule(); in refreshDataplanInfo() local
250 if (rule != null && rule.start != null && rule.end != null) { in refreshDataplanInfo()
251 mCycleEnd = rule.end.toEpochSecond() * MILLIS_IN_A_SECOND; in refreshDataplanInfo()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DZenModeAutomaticRulesPreferenceControllerTest.java133 AutomaticZenRule rule = new AutomaticZenRule("rule_name", null, null, in testUpdateState_updateEnableState() local
135 rMap.put(testId, rule); in testUpdateState_updateEnableState()
141 rule.setEnabled(false); in testUpdateState_updateEnableState()
142 rMap.put(testId, rule); in testUpdateState_updateEnableState()
DZenRulePreferenceControllerTest.java74 final AutomaticZenRule rule = new AutomaticZenRule("test", null, null, in onResumeTest() local
80 mController.onResume(rule, id); in onResumeTest()
83 assertEquals(mController.mRule, rule); in onResumeTest()
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/
DFallbackRecentsTest.java26 import static com.android.launcher3.util.rule.ShellCommandRule.disableHeadsUpNotification;
27 import static com.android.launcher3.util.rule.ShellCommandRule.getLauncherCommand;
46 import com.android.launcher3.util.rule.FailureWatcher;
/packages/apps/DocumentsUI/tests/
Djarjar-rules.txt1 rule com.google.common.** docsui.@0
2 rule android.support.annotation.** docsui.@0
/packages/services/Car/tests/CarLibTests/src/android/car/
DCarPropertyManagerTest.java44 public MockitoRule rule = MockitoJUnit.rule(); field in CarPropertyManagerTest

123456