Home
last modified time | relevance | path

Searched refs:rules (Results 1 – 25 of 120) sorted by relevance

12345

/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DZenModeBackendTest.java59 Map.Entry<String, AutomaticZenRule>[] rules = populateAutoZenRulesDescendingCreationTime( in updateState_checkRuleOrderingDescending() local
61 Arrays.sort(rules, ZenModeBackend.RULE_COMPARATOR); in updateState_checkRuleOrderingDescending()
65 assertEquals(GENERIC_RULE_NAME + (NUM_RULES - 1 - i), rules[i].getKey()); in updateState_checkRuleOrderingDescending()
72 Map.Entry<String, AutomaticZenRule>[] rules = populateAutoZenRulesAscendingCreationTime( in updateState_checkRuleOrderingAscending() local
74 Arrays.sort(rules, ZenModeBackend.RULE_COMPARATOR); in updateState_checkRuleOrderingAscending()
78 assertEquals(GENERIC_RULE_NAME + i, rules[i].getKey()); in updateState_checkRuleOrderingAscending()
86 …Map.Entry<String, AutomaticZenRule>[] rules = populateAutoZenRulesDescendingCreationTime(NUM_RULES, in updateState_checkRuleOrderingDescending_withDefaultRules() local
88 Arrays.sort(rules, ZenModeBackend.RULE_COMPARATOR); in updateState_checkRuleOrderingDescending_withDefaultRules()
90 assertEquals(rules[0].getKey(), DEFAULT_ID_1); in updateState_checkRuleOrderingDescending_withDefaultRules()
91 assertEquals(rules[1].getKey(), DEFAULT_ID_2); in updateState_checkRuleOrderingDescending_withDefaultRules()
[all …]
DZenModeAutomaticRulesPreferenceControllerTest.java150 private void mockGetAutomaticZenRules(int numRules, Map<String, AutomaticZenRule> rules) { in mockGetAutomaticZenRules() argument
152 rules.entrySet().toArray(arr); in mockGetAutomaticZenRules()
/packages/apps/Settings/src/com/android/settings/notification/
DZenModeAutomationSettings.java113 Map.Entry<String, AutomaticZenRule>[] rules = mBackend.getAutomaticZenRules(); in onOptionsItemSelected() local
114 mDeleteDialogRuleNames = new CharSequence[rules.length]; in onOptionsItemSelected()
115 mDeleteDialogRuleIds = new String[rules.length]; in onOptionsItemSelected()
116 mDeleteDialogChecked = new boolean[rules.length]; in onOptionsItemSelected()
117 for (int i = 0; i < rules.length; i++) { in onOptionsItemSelected()
118 mDeleteDialogRuleNames[i] = rules[i].getValue().getName(); in onOptionsItemSelected()
119 mDeleteDialogRuleIds[i] = rules[i].getKey(); in onOptionsItemSelected()
135 for (int i = 0; i < rules.length; i++) { in onOptionsItemSelected()
DZenModeSettingsFooterPreferenceController.java103 String rules = ListFormatter.getInstance().format(rulesNames); in getFooterText() local
104 if (!rules.isEmpty()) { in getFooterText()
113 R.string.zen_mode_settings_dnd_custom_settings_footer, rules), in getFooterText()
DZenModeAutomaticRulesPreferenceController.java88 void reloadAllRules(Map.Entry<String, AutomaticZenRule>[] rules) { in reloadAllRules() argument
90 for (Map.Entry<String, AutomaticZenRule> rule : rules) { in reloadAllRules()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DZenModeAutomationSettings.java113 Map.Entry<String, AutomaticZenRule>[] rules = mBackend.getAutomaticZenRules(); in onOptionsItemSelected() local
114 mDeleteDialogRuleNames = new CharSequence[rules.length]; in onOptionsItemSelected()
115 mDeleteDialogRuleIds = new String[rules.length]; in onOptionsItemSelected()
116 mDeleteDialogChecked = new boolean[rules.length]; in onOptionsItemSelected()
117 for (int i = 0; i < rules.length; i++) { in onOptionsItemSelected()
118 mDeleteDialogRuleNames[i] = rules[i].getValue().getName(); in onOptionsItemSelected()
119 mDeleteDialogRuleIds[i] = rules[i].getKey(); in onOptionsItemSelected()
135 for (int i = 0; i < rules.length; i++) { in onOptionsItemSelected()
DZenModeSettingsFooterPreferenceController.java103 String rules = ListFormatter.getInstance().format(rulesNames); in getFooterText() local
104 if (!rules.isEmpty()) { in getFooterText()
113 R.string.zen_mode_settings_dnd_custom_settings_footer, rules), in getFooterText()
DZenModeAutomaticRulesPreferenceController.java88 void reloadAllRules(Map.Entry<String, AutomaticZenRule>[] rules) { in reloadAllRules() argument
90 for (Map.Entry<String, AutomaticZenRule> rule : rules) { in reloadAllRules()
/packages/modules/NetworkStack/src/android/net/util/
DHostnameTransliterator.java49 final StringBuilder rules = new StringBuilder(); in HostnameTransliterator() local
51 rules.append(":: Any-ASCII; "); in HostnameTransliterator()
53 rules.append(":: Any-Latin; :: Latin-ASCII; "); in HostnameTransliterator()
59 mTransliterator = Transliterator.createFromRules("", rules.toString(), in HostnameTransliterator()
/packages/services/Telephony/ecc/conversion_toolset_v1/proto/
Dprotobuf_ecc_data.proto21 // Extra rules: Every Ecc should have at least 1 valid type.
31 // Extra rules: There should be at least one EccInfo in this list.
53 // Extra rules: There should be at least one CountryInfo in this list.
/packages/apps/LegacyCamera/src/com/android/camera/
DFocusManager.java282 int[] rules = p.getRules(); in onTouch() local
283 rules[RelativeLayout.CENTER_IN_PARENT] = 0; in onTouch()
439 int[] rules = p.getRules(); in resetTouchFocus() local
440 rules[RelativeLayout.CENTER_IN_PARENT] = RelativeLayout.TRUE; in resetTouchFocus()
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/
DAbstractQuickStepTest.java21 import org.junit.rules.RuleChain;
22 import org.junit.rules.TestRule;
DFallbackRecentsTest.java52 import org.junit.rules.RuleChain;
53 import org.junit.rules.TestRule;
/packages/apps/Launcher3/tests/
DAndroid.mk25 androidx.test.rules \
51 androidx.test.rules \
/packages/modules/NetworkStack/
DAndroid.bp19 // (InProcessNetworkStack). The following structure is used to create the build rules:
118 // For API stable, first build the dependencies using jarjar compat rules, then build the sources
124 jarjar_rules: "apishim/jarjar-rules-compat.txt",
143 srcs: ["jarjar-rules-shared.txt"],
/packages/apps/CellBroadcastReceiver/tests/unit/
DAndroid.bp24 "androidx.test.rules",
46 "androidx.test.rules",
/packages/apps/TimeZoneData/oem_template/data_app/
DREADME.oem25 See oem_template/data_app_prebuilts for rules that can be used to include the prebuilts in
28 See oem_template/xts for rules that can be used for xTS testing.
/packages/apps/DocumentsUI/tests/
DAndroid.bp78 "androidx.test.rules",
86 jarjar_rules: "jarjar-rules.txt",
/packages/modules/IPsec/
DAndroid.bp48 jarjar_rules: "jarjar-rules-shared.txt",
93 jarjar_rules: "jarjar-rules-shared.txt",
/packages/apps/Dialer/java/com/android/incallui/calllocation/impl/
DHttpFetcher.java228 final UrlRules rules = UrlRules.getRules(context.getContentResolver()); in reWriteUrl() local
229 final UrlRules.Rule rule = rules.matchRule(url); in reWriteUrl()
/packages/apps/TV/libs/
DAndroid.bp152 jarjar_rules: "m2/dagger-jarjar-rules.txt",
185 jarjar_rules: "m2/dagger-jarjar-rules.txt",
/packages/services/Car/service/proto/
DAndroid.bp8 jarjar_rules: "jarjar-rules.txt",
/packages/apps/Settings/tests/anomaly-tester/
DAndroid.bp9 "androidx.test.rules",
/packages/apps/Settings/tests/perftests/
DAndroid.bp11 "androidx.test.rules",
/packages/providers/MediaProvider/tests/
DAndroid.bp18 "androidx.test.rules",

12345