Home
last modified time | relevance | path

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

1234567

/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();
/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();
/packages/modules/CellBroadcastService/
Dcellbroadcast-jarjar-rules.txt1 rule android.os.HandlerExecutor* com.android.cellbroadcastservice.HandlerExecutor@1
2 rule android.util.LocalLog* com.android.cellbroadcastservice.LocalLog@1
3 rule android.util.Slog* com.android.cellbroadcastservice.Slog@1
4 rule android.internal.util.IState* com.android.cellbroadcastservice.IState@1
5 rule android.internal.util.Preconditions* com.android.cellbroadcastservice.Preconditions@1
6 rule android.internal.util.State* com.android.cellbroadcastservice.State@1
7 rule android.internal.util.StateMachine* com.android.cellbroadcastservice.StateMachine@1
/packages/modules/NetworkStack/
Djarjar-rules-shared.txt2 rule com.android.net.module.util.** com.android.networkstack.util.@1
4 rule com.android.internal.util.** android.net.networkstack.util.@1
7 rule com.android.net.module.util.** com.android.networkstack.util.@1
11 rule android.net.DhcpResultsParcelable* @0
12 rule android.net.DhcpResults* android.net.networkstack.DhcpResults@1
13 rule android.util.LocalLog* android.net.networkstack.util.LocalLog@1
15 rule android.util.IndentingPrintWriter* android.net.networkstack.util.AndroidUtilIndentingPrintWrit…
/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/IPsec/
Djarjar-rules-shared.txt1 rule android.annotation.StringDef com.android.internal.net.ipsec.annotation.StringDef
2 rule android.net.annotations.PolicyDirection com.android.internal.net.ipsec.ike.annotations.PolicyD…
3 rule android.telephony.Annotation* com.android.internal.net.eap.telephony.Annotation@1
4 rule com.android.internal.util.** com.android.internal.net.ipsec.ike.utils.@1
5 rule org.bouncycastle.** com.android.internal.net.org.bouncycastle.@1
/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/Settings/src/com/android/settings/datausage/
DDataUsageSummaryPreferenceController.java294 RecurrenceRule rule = primaryPlan.getCycleRule(); in refreshDataplanInfo() local
295 if (rule != null && rule.start != null && rule.end != null) { in refreshDataplanInfo()
296 mCycleStart = rule.start.toEpochSecond() * 1000L; in refreshDataplanInfo()
297 mCycleEnd = rule.end.toEpochSecond() * 1000L; in refreshDataplanInfo()
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DFolderAnimationManager.java118 ClippedFolderIconLayoutRule rule = mFolderIcon.getLayoutRule(); in getAnimator() local
129 float previewScale = rule.scaleForItem(itemsInPreview.size()); in getAnimator()
130 float previewSize = rule.getIconSize() * previewScale; in getAnimator()
291 ClippedFolderIconLayoutRule rule = mFolderIcon.getLayoutRule(); in addPreviewItemAnimators() local
311 float previewScale = rule.scaleForItem(numItemsInFirstPagePreview); in addPreviewItemAnimators()
312 float previewSize = rule.getIconSize() * previewScale; in addPreviewItemAnimators()
322 rule.computePreviewItemDrawingParams(i, numItemsInFirstPagePreview, mTmpParams); in addPreviewItemAnimators()
/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/DeskClock/tests/src/com/android/deskclock/timer/
DExpiredTimersActivityTest.java25 import androidx.test.rule.ActivityTestRule;
40 public ActivityTestRule<ExpiredTimersActivity> rule = field in ExpiredTimersActivityTest
49 final ExpiredTimersActivity activity = rule.launchActivity(intent); in configurationChanges_DoNotResetFiringTimer()
DTimerItemFragmentTest.java25 import androidx.test.rule.ActivityTestRule;
47 public ActivityTestRule<DeskClock> rule = new ActivityTestRule<>(DeskClock.class, true); field in TimerItemFragmentTest
53 rule.getActivity().getFragmentManager() in ensureTimerIsHeldSuccessfully_whenOneTimerIsRunning()
/packages/apps/DeskClock/tests/src/com/android/deskclock/worldclock/
DCitySelectionActivityTest.java25 import androidx.test.rule.ActivityTestRule;
56 public ActivityTestRule<CitySelectionActivity> rule = field in CitySelectionActivityTest
66 activity = rule.getActivity(); in setUp()
/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;
47 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/apps/TV/libs/m2/
Ddagger-jarjar-rules.txt2 rule com.google.common.** com.google.dagger.common.@1
3 rule com.google.auto.** com.google.dagger.auto.@1
/packages/modules/NetworkStack/apishim/
Djarjar-rules-compat.txt6 # package should be created, and this rule should reference api31.
7 rule com.android.networkstack.apishim.api30.** com.android.networkstack.apishim.@1

1234567