| /packages/apps/Settings/tests/robotests/src/com/android/settings/notification/modes/ |
| D | ZenModesSummaryHelperTest.java | 61 AutomaticZenRule rule = new AutomaticZenRule.Builder("Bedtime", Uri.parse("bed")) in getPeopleSummary_noOne() local 73 AutomaticZenRule rule = new AutomaticZenRule.Builder("Bedtime", Uri.parse("bed")) in getPeopleSummary_some() local 85 AutomaticZenRule rule = new AutomaticZenRule.Builder("Bedtime", Uri.parse("bed")) in getPeopleSummary_all() local 99 AutomaticZenRule rule = new AutomaticZenRule.Builder("Bedtime", Uri.parse("bed")) in getOtherSoundCategoriesSummary_single() local 112 AutomaticZenRule rule = new AutomaticZenRule.Builder("Bedtime", Uri.parse("bed")) in getOtherSoundCategoriesSummary_duo() local 125 AutomaticZenRule rule = new AutomaticZenRule.Builder("Bedtime", Uri.parse("bed")) in getOtherSoundCategoriesSummary_trio() local 142 AutomaticZenRule rule = new AutomaticZenRule.Builder("Bedtime", Uri.parse("bed")) in getOtherSoundCategoriesSummary_quad() local 160 AutomaticZenRule rule = new AutomaticZenRule.Builder("Bedtime", Uri.parse("bed")) in getOtherSoundCategoriesSummary_all() local 179 AutomaticZenRule rule = new AutomaticZenRule.Builder("Bedtime", Uri.parse("bed")) in getBlockedEffectsSummary_none() local 194 AutomaticZenRule rule = new AutomaticZenRule.Builder("Bedtime", Uri.parse("bed")) in getBlockedEffectsSummary_some() local [all …]
|
| D | IconLoaderTest.java | 64 AutomaticZenRule rule = newRuleBuilder() in getIcon_ruleWithoutSpecificIcon_loadsFallback() local 76 AutomaticZenRule rule = newRuleBuilder() in getIcon_ruleWithAppIconWithLoadFailure_loadsFallback() local
|
| /packages/apps/Settings/tests/robotests/src/com/android/settings/notification/zen/ |
| D | AbstractZenModeAutomaticRulePreferenceControllerTest.java | 61 AutomaticZenRule rule = new AutomaticZenRule("name", null, in testGetSettingsActivity_configActivity() local 77 AutomaticZenRule rule = new AutomaticZenRule("name", null, in testGetSettingsActivity_configActivity_wrongPackage() local 93 AutomaticZenRule rule = new AutomaticZenRule("name", null, in testGetSettingsActivity_configActivity_unspecifiedOwner() local 108 AutomaticZenRule rule = new AutomaticZenRule("name", in testGetSettingsActivity_cps() local 131 AutomaticZenRule rule = new AutomaticZenRule("name", in testGetSettingsActivity_cps_wrongPackage() local 154 AutomaticZenRule rule = new AutomaticZenRule("name", in testGetSettingsActivity_cps_unspecifiedPackage() local 176 AutomaticZenRule rule = new AutomaticZenRule("name", null, in testGetRuleIntent() local
|
| /packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/testing/ |
| D | AbstractLoggingUsageRuleTest.java | 52 AbstractLoggingUsageRule rule = new ConcreteLoggingUsageRule(ImmutableList.of()); in testEvaluate_withNonTestDescription_throwsException() local 70 AbstractLoggingUsageRule rule = in testEvaluate_withSkipAnnotation_gracefullyExits() local 82 AbstractLoggingUsageRule rule = new ConcreteLoggingUsageRule(ImmutableList.of()); in testEvaluate_withNoLogVerifiers_gracefullyExits() local 93 AbstractLoggingUsageRule rule = in testEvaluate_withStatementThrowsException_setupDoneButNoVerification() local 106 AbstractLoggingUsageRule rule = in testEvaluate_withLogVerifierThrowsException_throwsSameException() local 128 AbstractLoggingUsageRule rule = in testEvaluate_withSuccessfulExecution() local
|
| D | ProcessLifeguardTestSuite.java | 101 public final ProcessLifeguardRule rule = field in ProcessLifeguardTestSuite.Test1ThrowsInBg 144 public final ProcessLifeguardRule rule = field in ProcessLifeguardTestSuite.Test2RuleCatchesIt 161 public final ProcessLifeguardRule rule = field in ProcessLifeguardTestSuite.Test3MakesSureProcessDidntCrash
|
| D | ProcessLifeguardRuleTest.java | 29 ProcessLifeguardRule rule = new ProcessLifeguardRule(Mode.IGNORE); in testGetName() local
|
| D | SdkLevelSupportRuleTest.java | 33 SdkLevelSupportRule rule = new SdkLevelSupportRule(ruleLevel); in newRule() local
|
| /packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/testing/common/ |
| D | ApplicationContextSingletonRuleTest.java | 70 ApplicationContextSingletonRule rule = in testDefaultConstructorSetsNonNullContext() local 86 ApplicationContextSingletonRule rule = in testApplicationContextSetDuringTestAndResetAtTheEnd() local 111 ApplicationContextSingletonRule rule = in testApplicationContextSetDuringTestAndResetAtTheEndEvenWhenTestFails() local 144 ApplicationContextSingletonRule rule = in testApplicationContextSetDuringTestAndDontResetAtTheEnd() local 169 ApplicationContextSingletonRule rule = in testApplicationContextSetDuringTestAndDontResetAtTheEndEvenWhenTestFails() local 201 ApplicationContextSingletonRule rule = in testSet() local 217 private void runTestWithRule(ApplicationContextSingletonRule rule, Runnable test) in runTestWithRule()
|
| /packages/modules/AdServices/shared/tests/side-less/java/com/android/adservices/shared/testing/ |
| D | AbstractSdkLevelSupportedRuleTest.java | 89 var rule = newRule(/* ruleLevel= */ ANY, /* deviceLevel= */ R); in testRuleIsAtLeastMethods_deviceIsR() local 100 var rule = newRule(/* ruleLevel= */ ANY, /* deviceLevel= */ S); in testRuleIsAtLeastMethods_deviceIsS() local 111 var rule = newRule(/* ruleLevel= */ ANY, /* deviceLevel= */ S2); in testRuleIsAtLeastMethods_deviceIsS2() local 122 var rule = newRule(/* ruleLevel= */ ANY, /* deviceLevel= */ T); in testRuleIsAtLeastMethods_deviceIsT() local 133 var rule = newRule(/* ruleLevel= */ ANY, /* deviceLevel= */ U); in testRuleIsAtLeastMethods_deviceIsU() local 146 var rule = newRule(ruleRange, deviceLevel); in testPassesWhenDeviceLevelIsInRange() local 162 var rule = newRule(ruleRange, deviceLevel); in testSkipsWhenDeviceLevelIsOutsideRange() local 189 var rule = new FakeSdkLevelSupportedRule(ruleRange); in assertGetRequiredRangeForUnannotatedTest() local 197 AbstractSdkLevelSupportedRule rule, in assertGetRequiredRange() 297 var rule = new FakeSdkLevelSupportedRule(ruleRange); in assertGetRequiredRangeForAnnotatedTest() local [all …]
|
| /packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/espresso/ |
| D | UiEventLoggerTestUtils.java | 27 static void verifyLogWithInstanceId(ActivityScenarioRule<PhotoPickerTestActivity> rule, in verifyLogWithInstanceId() 32 static void verifyLogWithInstanceId(ActivityScenarioRule<PhotoPickerTestActivity> rule, in verifyLogWithInstanceId() 46 ActivityScenarioRule<PhotoPickerTestActivity> rule, in verifyLogWithInstanceIdAndPosition() 53 ActivityScenarioRule<PhotoPickerTestActivity> rule, UiEventLogger.UiEventEnum event, in verifyLogWithInstanceIdAndPosition()
|
| /packages/modules/Connectivity/Tethering/apishim/common/com/android/networkstack/tethering/apishim/common/ |
| D | BpfCoordinatorShim.java | 65 public abstract boolean addIpv6UpstreamRule(@NonNull Ipv6UpstreamRule rule); in addIpv6UpstreamRule() 76 public abstract boolean removeIpv6UpstreamRule(@NonNull Ipv6UpstreamRule rule); in removeIpv6UpstreamRule() 88 public abstract boolean addIpv6DownstreamRule(@NonNull Ipv6DownstreamRule rule); in addIpv6DownstreamRule() 100 public abstract boolean removeIpv6DownstreamRule(@NonNull Ipv6DownstreamRule rule); in removeIpv6DownstreamRule()
|
| /packages/modules/Connectivity/framework/src/android/net/ |
| D | UidOwnerValue.java | 33 public final long rule; field in UidOwnerValue 35 public UidOwnerValue(final int iif, final long rule) { in UidOwnerValue()
|
| /packages/modules/Connectivity/Tethering/apishim/30/com/android/networkstack/tethering/apishim/api30/ |
| D | BpfCoordinatorShimImpl.java | 60 public boolean addIpv6UpstreamRule(@NonNull final Ipv6UpstreamRule rule) { in addIpv6UpstreamRule() 65 public boolean removeIpv6UpstreamRule(@NonNull final Ipv6UpstreamRule rule) { in removeIpv6UpstreamRule() 70 public boolean addIpv6DownstreamRule(@NonNull final Ipv6DownstreamRule rule) { in addIpv6DownstreamRule() 82 public boolean removeIpv6DownstreamRule(@NonNull final Ipv6DownstreamRule rule) { in removeIpv6DownstreamRule()
|
| /packages/modules/AdServices/shared/libraries/device-side/java/com/android/adservices/shared/testing/junit/ |
| D | RuleContainer.java | 43 public void setOrder(Object rule, int order) { in setOrder() 115 final Object rule; field in RuleContainer.RuleEntry 119 RuleEntry(Object rule, int type, Integer order) { in RuleEntry()
|
| /packages/apps/Settings/src/com/android/settings/notification/zen/ |
| D | ZenRulePreference.java | 87 public void updatePreference(AutomaticZenRule rule) { in updatePreference() 115 protected void setAttributes(AutomaticZenRule rule) { in setAttributes() 144 private String computeRuleSummary(AutomaticZenRule rule) { in computeRuleSummary()
|
| D | ZenModeAutomaticRulesPreferenceController.java | 102 AutomaticZenRule rule = mSortedRules[i].getValue(); in updateRules() local 120 ZenRulePreference createZenRulePreference(Map.Entry<String, AutomaticZenRule> rule, in createZenRulePreference()
|
| D | AbstractZenModeAutomaticRulePreferenceController.java | 118 protected static ComponentName getSettingsActivity(PackageManager pm, AutomaticZenRule rule, in getSettingsActivity() 169 AutomaticZenRule rule; in onOk() local
|
| /packages/modules/Connectivity/Tethering/apishim/31/com/android/networkstack/tethering/apishim/api31/ |
| D | BpfCoordinatorShimImpl.java | 169 public boolean addIpv6UpstreamRule(@NonNull final Ipv6UpstreamRule rule) { in addIpv6UpstreamRule() 186 public boolean removeIpv6UpstreamRule(@NonNull final Ipv6UpstreamRule rule) { in removeIpv6UpstreamRule() 200 public boolean addIpv6DownstreamRule(@NonNull final Ipv6DownstreamRule rule) { in addIpv6DownstreamRule() 215 public boolean removeIpv6DownstreamRule(@NonNull final Ipv6DownstreamRule rule) { in removeIpv6DownstreamRule()
|
| /packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/mockito/ |
| D | AdServicesExtendedMockitoRuleTest.java | 27 AdServicesExtendedMockitoRule rule = new AdServicesExtendedMockitoRule.Builder().build(); in testGetName() local
|
| /packages/apps/Settings/src/com/android/settings/notification/modes/ |
| D | ZenMode.java | 95 ZenMode(String id, AutomaticZenRule rule, boolean isActive) { in ZenMode() 99 private ZenMode(String id, AutomaticZenRule rule, boolean isActive, boolean isManualDnd) { in ZenMode()
|
| /packages/apps/DeskClock/tests/src/com/android/deskclock/timer/ |
| D | TimerItemFragmentTest.java | 47 public ActivityTestRule<DeskClock> rule = new ActivityTestRule<>(DeskClock.class, true); field in TimerItemFragmentTest
|
| D | ExpiredTimersActivityTest.java | 40 public ActivityTestRule<ExpiredTimersActivity> rule = field in ExpiredTimersActivityTest
|
| /packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/customaudience/ |
| D | ScheduleCustomAudienceUpdateWorkerTest.java | 41 @Rule public MockitoRule rule = MockitoJUnit.rule(); field in ScheduleCustomAudienceUpdateWorkerTest
|
| /packages/apps/Settings/tests/componenttests/src/com/android/settings/notification/ |
| D | AppNotificationComponentTest.java | 56 rule = new ActivityScenarioRule<>( field in AppNotificationComponentTest
|
| /packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
| D | BpfCoordinatorTest.java | 851 @NonNull Ipv6UpstreamRule rule) throws Exception { in verifyAddUpstreamRule() 879 private void verifyAddDownstreamRule(@NonNull Ipv6DownstreamRule rule) throws Exception { in verifyAddDownstreamRule() 884 @NonNull Ipv6DownstreamRule rule) throws Exception { in verifyAddDownstreamRule() 907 @NonNull final Ipv6UpstreamRule rule) throws Exception { in verifyRemoveUpstreamRule() 927 private void verifyRemoveDownstreamRule(@NonNull final Ipv6DownstreamRule rule) in verifyRemoveDownstreamRule() 933 @NonNull final Ipv6DownstreamRule rule) throws Exception { in verifyRemoveDownstreamRule() 1235 TetherOffloadRuleParcelMatcher(@NonNull Ipv6DownstreamRule rule) { in TetherOffloadRuleParcelMatcher() 1259 private TetherOffloadRuleParcel matches(@NonNull Ipv6DownstreamRule rule) { in matches() 1280 final Ipv6DownstreamRule rule = buildTestDownstreamRule(mobileIfIndex, NEIGH_A, MAC_A); in testIpv6DownstreamRuleMakeTetherDownstream6Key() local 1293 final Ipv6DownstreamRule rule = buildTestDownstreamRule(mobileIfIndex, NEIGH_A, MAC_A); in testIpv6DownstreamRuleMakeTether6Value() local [all …]
|