/packages/apps/Settings/src/com/android/settings/notification/ |
D | ZenRulePreference.java | 121 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 …]
|
D | ZenModeAutomaticRulesPreferenceController.java | 75 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()
|
D | AbstractZenModeAutomaticRulePreferenceController.java | 113 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()
|
D | ZenModeBackend.java | 93 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();
|
D | AbstractZenCustomRulePreferenceController.java | 51 public void onResume(AutomaticZenRule rule, String id) { in onResume() argument 53 mRule = rule; in onResume()
|
D | ZenModeSettingsFooterPreferenceController.java | 97 for (ZenModeConfig.ZenRule rule : activeRules) { in getFooterText() 98 if (rule.name != null) { in getFooterText() 99 rulesNames.add(rule.name); in getFooterText()
|
D | ZenModeEventRuleSettings.java | 60 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/ |
D | ZenRulePreference.java | 121 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 …]
|
D | ZenModeAutomaticRulesPreferenceController.java | 75 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()
|
D | AbstractZenModeAutomaticRulePreferenceController.java | 113 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()
|
D | ZenModeBackend.java | 93 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();
|
D | AbstractZenCustomRulePreferenceController.java | 51 public void onResume(AutomaticZenRule rule, String id) { in onResume() argument 53 mRule = rule; in onResume()
|
D | ZenModeSettingsFooterPreferenceController.java | 97 for (ZenModeConfig.ZenRule rule : activeRules) { in getFooterText() 98 if (rule.name != null) { in getFooterText() 99 rulesNames.add(rule.name); in getFooterText()
|
D | ZenAutomaticRuleSwitchPreferenceController.java | 79 public void onResume(AutomaticZenRule rule, String id) { in onResume() argument 80 mRule = rule; in onResume()
|
/packages/services/Car/service/src/com/android/car/garagemode/ |
D | WakeupPolicy.java | 94 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/ |
D | jarjar-rules-shared.txt | 1 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/ |
D | FolderAnimationManager.java | 115 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/ |
D | DataUsageSummaryPreferenceController.java | 291 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/ |
D | DataUsageSummaryPreferenceController.java | 292 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/ |
D | DataUsageSummaryPreferenceController.java | 249 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/ |
D | ZenModeAutomaticRulesPreferenceControllerTest.java | 133 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()
|
D | ZenRulePreferenceControllerTest.java | 74 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/ |
D | FallbackRecentsTest.java | 26 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/ |
D | jarjar-rules.txt | 1 rule com.google.common.** docsui.@0 2 rule android.support.annotation.** docsui.@0
|
/packages/services/Car/tests/CarLibTests/src/android/car/ |
D | CarPropertyManagerTest.java | 44 public MockitoRule rule = MockitoJUnit.rule(); field in CarPropertyManagerTest
|