Home
last modified time | relevance | path

Searched defs:rule (Results 1 – 25 of 164) sorted by relevance

1234567

/packages/modules/AdServices/shared/testing-libraries/side-less/java/com/android/adservices/shared/meta_testing/
DAbstractFlagsSetterRuleTestCase.java76 var rule = newRule(mFakeDeviceGateway, mFakeFlagsSetter); in newRule() local
83 R rule = newRule(); in testSetFlagMethods_nullArgs() local
120 R rule = newRule(); in testSetFlagMethods() local
211 R rule = newRule(); in testFlagsFromConfig() local
232 R rule = newRule(); in testFlagsFromConfig_invalidParams() local
283 R rule = newRule(); in testFlagsFromConfig_cornerCases() local
308 R rule = newRule(); in testSetStringArray_invalidArgs() local
337 R rule = newRule(); in testSetStringArray_cornerCases() local
374 R rule = newRule(); in testSetArrayFlagWithExplicitSeparator_invalidArgs() local
419 R rule = newRule(); in testSetArrayFlagWithExplicitSeparator_cornerCases() local
[all …]
DAbstractFlagsPreparerClassRuleTestCase.java91 var rule = newRule(mFakeSdkSandbox, mFakeDeviceConfig); in testThrowsIfNotUsedAsClassRule() local
98 var rule = newRule(mFakeSdkSandbox, mFakeDeviceConfig); in testCreateActionsForTest_annotationOnMethodIsIgnored() local
111 var rule = newRule(mFakeSdkSandbox, mFakeDeviceConfig); in testCreateActionsForTest_classOnly_deviceConfigMode() local
124 var rule = newRule(mFakeSdkSandbox, mFakeDeviceConfig); in testCreateActionsForTest_classOnly_sdkSandboxState() local
136 var rule = newRule(mFakeSdkSandbox, mFakeDeviceConfig); in testCreateActionsForTest_classOnly_deviceConfigModeAndsdkSandboxState() local
151 var rule = newRule(mFakeSdkSandbox, mFakeDeviceConfig); in testCreateActionsForTest_classOnly_sdkSandboxStateAnddeviceConfigMode() local
167 var rule = newRule(mFakeSdkSandbox, mFakeDeviceConfig); in testCreateActionsForTest_classAndSuperClass_sdkSandboxFirst() local
183 var rule = newRule(mFakeSdkSandbox, mFakeDeviceConfig); in testCreateActionsForTest_classAndSuperClass_deviceConfigFirst() local
209 var rule = newRule(mFakeSdkSandbox, mFakeDeviceConfig); in testFullWorkflow() local
230 private void runRule(R rule, Description description) throws Throwable { in runRule()
DAbstractDebugFlagsSetterRuleTestCase.java57 R rule = newRule(mContainer); in newRule() local
152 R rule = newRule(); in testGetTestFailureHeader() local
167 var rule = newRule(); in annotationBasedTest() local
176 private ImmutableMap<String, NameValuePair> runTest(R rule, Description description) in runTest()
/packages/modules/AdServices/adservices/tests/unittest/adservices-test-utility/src/com/android/adservices/flags/
DAdServicesFakeFlagsSetterRuleTest.java49 var rule = newRule(); in testSetMissingFlagBehavior_null() local
56 var rule = newRule(); in testSetMissingFlagBehavior_defaultConstructor() local
63 var rule = newRule(); in testGetFlagsSnapshot_beforeTest() local
72 (rule, flags) -> { in smokeTest() argument
89 (rule, flags) -> { in testGetFlagsSnapshot() argument
122 (rule, flags) -> { in testToString() argument
152 var rule = newRule(); in testSetMissingFlagBehavior_setUsesExplicitDefault() local
167 AdServicesFakeFlagsSetterRule rule, String when) { in testSetMissingFlagBehaviorDefaultBehavior()
201 var rule = newRule(); in testSetMissingFlagBehavior_setUsesJavaLanguageDefault() local
240 var rule = newRule(); in testSetMissingFlagBehavior_setThrowsException() local
[all …]
DAdServicesMockFlagsSetterRuleTest.java51 var rule = newRule(); in testSetMissingFlagBehavior() local
67 var rule = newRule(); in testGetFlagsSnapshot() local
74 var rule = newRule(); in testOnGetFlagThrows() local
82 var rule = newRule(); in testToString() local
DAdServicesDeviceSideDebugFlagsSetterRuleTestCase.java36 R rule = newRule(); in testSetDebugFlag_nullName() local
48 R rule = newRule(); in testSetDebugFlag() local
DAdServicesFlagsSetterRuleForUnitTestsTestCase.java46 (rule, flags) -> { in testSetFakeFlagsFactoryFlagsMethod() argument
124 (rule, flags) -> { in testSetGlobalKillSwitch() argument
160 R rule = newRule(); in onTest() local
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/zen/
DAbstractZenModeAutomaticRulePreferenceControllerTest.java61 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/
DAbstractLoggingUsageRuleTest.java51 AbstractLoggingUsageRule rule = new ConcreteLoggingUsageRule(ImmutableList.of()); in testEvaluate_withNonTestDescription_throwsException() local
70 AbstractLoggingUsageRule rule = in testEvaluate_withSkipAnnotation_gracefullyExits() local
84 AbstractLoggingUsageRule rule = new ConcreteLoggingUsageRule(ImmutableList.of()); in testEvaluate_withNoLogVerifiers_gracefullyExits() local
96 AbstractLoggingUsageRule rule = in testEvaluate_withStatementThrowsException_setupDoneButNoVerification() local
109 AbstractLoggingUsageRule rule = in testEvaluate_withLogVerifierThrowsException_throwsSameException() local
131 AbstractLoggingUsageRule rule = in testEvaluate_withSuccessfulExecution() local
DProcessLifeguardRuleTest.java74 ProcessLifeguardRule rule = new ProcessLifeguardRule(Mode.IGNORE); in testGetName() local
84 ProcessLifeguardRule rule = new ProcessLifeguardRule(Mode.FAIL); in testFailMode_bgThrows_testPass() local
101 ProcessLifeguardRule rule = new ProcessLifeguardRule(Mode.FAIL); in testFailMode_bgThrows_testThrows() local
112 ProcessLifeguardRule rule = new ProcessLifeguardRule(Mode.IGNORE); in testIgnoreMode_bgThrows_testPass() local
124 ProcessLifeguardRule rule = new ProcessLifeguardRule(Mode.IGNORE); in testIgnorelMode_bgThrows_testThrows() local
134 private void runTest(ProcessLifeguardRule rule, Statement statement) throws Throwable { in runTest()
DProcessLifeguardTestSuite.java83 public final ProcessLifeguardRule rule = field in ProcessLifeguardTestSuite.Test1ThrowsInBg
130 public final ProcessLifeguardRule rule = field in ProcessLifeguardTestSuite.Test2RuleCatchesIt
146 public final ProcessLifeguardRule rule = field in ProcessLifeguardTestSuite.Test3MakesSureProcessDidntCrash
DSdkLevelSupportRuleTest.java34 SdkLevelSupportRule rule = new SdkLevelSupportRule(ruleLevel); in newRule() local
42 SdkLevelSupportRule rule = new SdkLevelSupportRule(ruleRange); in newRule() local
/packages/modules/AdServices/adservices/tests/unittest/adservices-test-utility/side-less/com/android/adservices/common/
DAbstractAdServicesFlagsSetterRuleTestCase.java61 R rule = newRule(); in testKillSwitchSetters() local
115 R rule = newRule(); in appAllowListFlagTest() local
150 R rule = newRule(); in appAllowListThatAcceptsDefaultPackageFlagTest() local
190 R rule = newRule(); in testEnableAllApis() local
202 R rule = newRule(); in testEnableAllApisAnnotation() local
240 R rule = newRule(); in testMostCustomSetFlagAnnotations() local
264 R rule = newRule(); in testAllowListAnnotationsWithCustomValues() local
/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/testing/common/
DApplicationContextSingletonRuleTest.java66 ApplicationContextSingletonRule rule = in testDefaultConstructorSetsNonNullContext() local
82 ApplicationContextSingletonRule rule = in testApplicationContextSetDuringTestAndResetAtTheEnd() local
107 ApplicationContextSingletonRule rule = in testApplicationContextSetDuringTestAndResetAtTheEndEvenWhenTestFails() local
140 ApplicationContextSingletonRule rule = in testApplicationContextSetDuringTestAndDontResetAtTheEnd() local
165 ApplicationContextSingletonRule rule = in testApplicationContextSetDuringTestAndDontResetAtTheEndEvenWhenTestFails() local
197 ApplicationContextSingletonRule rule = in testSet() local
213 private void runTestWithRule(ApplicationContextSingletonRule rule, Runnable test) in runTestWithRule()
/packages/modules/AdServices/shared/tests/side-less/java/com/android/adservices/shared/testing/
DAbstractSdkLevelSupportedRuleTestCase.java91 var rule = newRule(/* ruleLevel= */ ANY, /* deviceLevel= */ R); in testRuleIsAtLeastMethods_deviceIsR() local
103 var rule = newRule(/* ruleLevel= */ ANY, /* deviceLevel= */ S); in testRuleIsAtLeastMethods_deviceIsS() local
115 var rule = newRule(/* ruleLevel= */ ANY, /* deviceLevel= */ S2); in testRuleIsAtLeastMethods_deviceIsS2() local
127 var rule = newRule(/* ruleLevel= */ ANY, /* deviceLevel= */ T); in testRuleIsAtLeastMethods_deviceIsT() local
139 var rule = newRule(/* ruleLevel= */ ANY, /* deviceLevel= */ U); in testRuleIsAtLeastMethods_deviceIsU() local
151 var rule = newRule(/* ruleLevel= */ ANY, /* deviceLevel= */ V); in testRuleIsAtLeastMethods_deviceIsV() local
165 var rule = newRule(ruleRange, deviceLevel); in testPassesWhenDeviceLevelIsInRange() local
181 var rule = newRule(ruleRange, deviceLevel); in testSkipsWhenDeviceLevelIsOutsideRange() local
208 var rule = newRule(ruleRange); in assertGetRequiredRangeForUnannotatedTest() local
216 AbstractSdkLevelSupportedRule rule, in assertGetRequiredRange()
[all …]
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/espresso/
DUiEventLoggerTestUtils.java27 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/framework/src/android/net/
DUidOwnerValue.java33 public final long rule; field in UidOwnerValue
35 public UidOwnerValue(final int iif, final long rule) { in UidOwnerValue()
/packages/modules/Connectivity/Tethering/apishim/common/com/android/networkstack/tethering/apishim/common/
DBpfCoordinatorShim.java65 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/AdServices/shared/testing-libraries/device-side/java/com/android/adservices/shared/testing/junit/
DRuleContainer.java43 public void setOrder(Object rule, int order) { in setOrder()
117 public final Object rule; field in RuleContainer.RuleEntry
121 RuleEntry(Object rule, int type, Integer order) { in RuleEntry()
/packages/modules/Connectivity/Tethering/apishim/30/com/android/networkstack/tethering/apishim/api30/
DBpfCoordinatorShimImpl.java60 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/tests/host-side/java/com/android/adservices/shared/testing/
DHostSideSdkLevelSupportedRuleTest.java34 HostSideSdkLevelSupportRule rule = new HostSideSdkLevelSupportRule(ruleLevel); in newRule() local
42 HostSideSdkLevelSupportRule rule = new HostSideSdkLevelSupportRule(ruleRange); in newRule() local
/packages/apps/Settings/src/com/android/settings/notification/zen/
DZenRulePreference.java87 public void updatePreference(AutomaticZenRule rule) { in updatePreference()
115 protected void setAttributes(AutomaticZenRule rule) { in setAttributes()
144 private String computeRuleSummary(AutomaticZenRule rule) { in computeRuleSummary()
DZenModeAutomaticRulesPreferenceController.java102 AutomaticZenRule rule = mSortedRules[i].getValue(); in updateRules() local
120 ZenRulePreference createZenRulePreference(Map.Entry<String, AutomaticZenRule> rule, in createZenRulePreference()
/packages/modules/Connectivity/Tethering/apishim/31/com/android/networkstack/tethering/apishim/api31/
DBpfCoordinatorShimImpl.java189 public boolean addIpv6UpstreamRule(@NonNull final Ipv6UpstreamRule rule) { in addIpv6UpstreamRule()
206 public boolean removeIpv6UpstreamRule(@NonNull final Ipv6UpstreamRule rule) { in removeIpv6UpstreamRule()
220 public boolean addIpv6DownstreamRule(@NonNull final Ipv6DownstreamRule rule) { in addIpv6DownstreamRule()
235 public boolean removeIpv6DownstreamRule(@NonNull final Ipv6DownstreamRule rule) { in removeIpv6DownstreamRule()
/packages/modules/Permission/tests/cts/role/src/android/app/role/cts/
DChooseNoteRoleAppTest.kt36 val rule = NotesRoleManagerRule(requiredNotesRoleHolderPackage = NOTES_APP_PACKAGE_NAME) constant

1234567