Home
last modified time | relevance | path

Searched refs:Helper (Results 1 – 25 of 46) sorted by relevance

12

/cts/tests/autofillservice/src/android/autofillservice/cts/
DWebViewActivityTest.java153 Helper.findWebViewNodeByFormName(fillRequest.structure, "FORM AM I"); in autofillOneDatasetTest()
159 Helper.findNodeByHtmlName(fillRequest.structure, HTML_NAME_USERNAME); in autofillOneDatasetTest()
160 Helper.assertTextIsSanitized(usernameNode); in autofillOneDatasetTest()
161 final HtmlInfo usernameHtmlInfo = Helper.assertHasHtmlTag(usernameNode, "input"); in autofillOneDatasetTest()
162 Helper.assertHasAttribute(usernameHtmlInfo, "type", "text"); in autofillOneDatasetTest()
163 Helper.assertHasAttribute(usernameHtmlInfo, "name", "username"); in autofillOneDatasetTest()
169 Helper.findNodeByHtmlName(fillRequest.structure, HTML_NAME_PASSWORD); in autofillOneDatasetTest()
170 Helper.assertTextIsSanitized(passwordNode); in autofillOneDatasetTest()
171 final HtmlInfo passwordHtmlInfo = Helper.assertHasHtmlTag(passwordNode, "input"); in autofillOneDatasetTest()
172 Helper.assertHasAttribute(passwordHtmlInfo, "type", "password"); in autofillOneDatasetTest()
[all …]
DPreFilledLoginActivityTest.java18 import static android.autofillservice.cts.Helper.ID_PASSWORD;
19 import static android.autofillservice.cts.Helper.ID_PASSWORD_LABEL;
20 import static android.autofillservice.cts.Helper.ID_USERNAME;
21 import static android.autofillservice.cts.Helper.ID_USERNAME_LABEL;
22 import static android.autofillservice.cts.Helper.assertTextAndValue;
23 import static android.autofillservice.cts.Helper.assertTextFromResouces;
24 import static android.autofillservice.cts.Helper.assertTextIsSanitized;
25 import static android.autofillservice.cts.Helper.assertTextOnly;
26 import static android.autofillservice.cts.Helper.findNodeByResourceId;
DAutoFillServiceTestCase.java19 import static android.autofillservice.cts.Helper.getContext;
20 import static android.autofillservice.cts.Helper.getLoggingLevel;
21 import static android.autofillservice.cts.Helper.hasAutofillFeature;
22 import static android.autofillservice.cts.Helper.setLoggingLevel;
131 Helper.preTestCleanup(); in cleanupStaticState()
177 Helper.enableAutofillService(getContext(), SERVICE_NAME); in enableService()
187 Helper.disableAutofillService(getContext(), SERVICE_NAME); in disableService()
195 Helper.assertAutofillServiceStatus(SERVICE_NAME, true); in assertServiceEnabled()
202 Helper.assertAutofillServiceStatus(SERVICE_NAME, false); in assertServiceDisabled()
DInitializedCheckoutActivityTest.java24 import static android.autofillservice.cts.Helper.assertListValue;
25 import static android.autofillservice.cts.Helper.assertTextAndValue;
26 import static android.autofillservice.cts.Helper.assertTextIsSanitized;
27 import static android.autofillservice.cts.Helper.assertToggleValue;
28 import static android.autofillservice.cts.Helper.findNodeByResourceId;
DLoginWithStringsActivityTest.java19 import static android.autofillservice.cts.Helper.ID_PASSWORD;
20 import static android.autofillservice.cts.Helper.ID_PASSWORD_LABEL;
21 import static android.autofillservice.cts.Helper.ID_USERNAME;
22 import static android.autofillservice.cts.Helper.ID_USERNAME_LABEL;
23 import static android.autofillservice.cts.Helper.assertTextAndValue;
24 import static android.autofillservice.cts.Helper.assertTextFromResouces;
25 import static android.autofillservice.cts.Helper.assertTextIsSanitized;
26 import static android.autofillservice.cts.Helper.findNodeByResourceId;
DTimePickerTestCase.java20 import static android.autofillservice.cts.Helper.assertNumberOfChildren;
21 import static android.autofillservice.cts.Helper.assertTextAndValue;
22 import static android.autofillservice.cts.Helper.assertTextIsSanitized;
23 import static android.autofillservice.cts.Helper.assertTimeValue;
24 import static android.autofillservice.cts.Helper.findNodeByResourceId;
DDatePickerTestCase.java20 import static android.autofillservice.cts.Helper.assertDateValue;
21 import static android.autofillservice.cts.Helper.assertNumberOfChildren;
22 import static android.autofillservice.cts.Helper.assertTextAndValue;
23 import static android.autofillservice.cts.Helper.assertTextIsSanitized;
24 import static android.autofillservice.cts.Helper.findNodeByResourceId;
DDialogLauncherActivityTest.java18 import static android.autofillservice.cts.Helper.ID_USERNAME;
19 import static android.autofillservice.cts.Helper.assertTextIsSanitized;
76 Helper.dumpStructure("D'OH!", fillRequest.structure); in autofillNoDatasetsTest()
112 if (!Helper.isAutofillWindowFullScreen(mActivity)) { in autofillOneDatasetTest()
DVirtualContainerActivityCompatModeTest.java18 import static android.autofillservice.cts.Helper.ID_PASSWORD;
19 import static android.autofillservice.cts.Helper.ID_USERNAME;
20 import static android.autofillservice.cts.Helper.assertTextAndValue;
21 import static android.autofillservice.cts.Helper.assertTextIsSanitized;
22 import static android.autofillservice.cts.Helper.findNodeByResourceId;
23 import static android.autofillservice.cts.Helper.getContext;
24 import static android.autofillservice.cts.Helper.hasAutofillFeature;
86 Helper.enableAutofillService(getContext(), SERVICE_NAME); in enableService()
94 Helper.disableAutofillService(getContext(), SERVICE_NAME); in disableService()
DVirtualContainerActivity.java18 import static android.autofillservice.cts.Helper.ID_PASSWORD;
19 import static android.autofillservice.cts.Helper.ID_PASSWORD_LABEL;
20 import static android.autofillservice.cts.Helper.ID_USERNAME;
21 import static android.autofillservice.cts.Helper.ID_USERNAME_LABEL;
DPreSimpleSaveActivityTest.java18 import static android.autofillservice.cts.Helper.ID_STATIC_TEXT;
19 import static android.autofillservice.cts.Helper.assertTextAndValue;
20 import static android.autofillservice.cts.Helper.findNodeByResourceId;
84 Helper.assertHasSessions(mPackageName); in saveUiRestoredAfterTappingLinkTest()
143 Helper.assertHasSessions(mPackageName); in tapLinkThenTapBackThenStartOverTest()
203 Helper.assertHasSessions(mPackageName); in tapLinkThenTapBackThenStartOverTest()
237 Helper.assertHasSessions(mPackageName); in saveUiCancelledAfterTappingLinkTest()
295 Helper.assertHasSessions(mPackageName); in tapLinkLaunchTrampolineActivityThenTapBackAndStartNewSessionTest()
330 Helper.assertHasSessions(mPackageName); in tapLinkLaunchTrampolineActivityThenTapBackAndStartNewSessionTest()
376 Helper.assertHasSessions(mPackageName); in tapLinkAfterUpdateAppliedTest()
DSessionLifecycleTest.java19 import static android.autofillservice.cts.Helper.ID_LOGIN;
20 import static android.autofillservice.cts.Helper.ID_PASSWORD;
21 import static android.autofillservice.cts.Helper.ID_USERNAME;
22 import static android.autofillservice.cts.Helper.assertTextAndValue;
23 import static android.autofillservice.cts.Helper.findNodeByResourceId;
24 import static android.autofillservice.cts.Helper.getContext;
88 Helper.disableAutoRotation(mUiBot); in disableAutoRotation()
96 Helper.allowAutoRotation(); in allowAutoRotation()
130 assumeTrue("Rotation is supported", Helper.isRotationSupported(mContext)); in testDatasetAuthResponseWhileAutofilledAppIsLifecycled()
DManualAuthenticationActivity.java56 (id) -> Helper.findNodeByResourceId(structure, id)); in onCreate()
59 (id) -> Helper.findNodeByResourceId(structure, id)); in onCreate()
DCheckoutActivityTest.java28 import static android.autofillservice.cts.Helper.assertListValue;
29 import static android.autofillservice.cts.Helper.assertTextAndValue;
30 import static android.autofillservice.cts.Helper.assertTextIsSanitized;
31 import static android.autofillservice.cts.Helper.assertToggleIsSanitized;
32 import static android.autofillservice.cts.Helper.assertToggleValue;
33 import static android.autofillservice.cts.Helper.findNodeByResourceId;
34 import static android.autofillservice.cts.Helper.getContext;
315 final UiObject2 staticText = saveUi.findObject(By.res(packageName, Helper.ID_STATIC_TEXT)); in customizedSaveUi()
386 assertThat(saveUi.findObject(By.res(packageName, Helper.ID_STATIC_TEXT))).isNull(); in testCustomizedSaveUiWhenListResolutionFails()
DFatActivityTest.java34 import static android.autofillservice.cts.Helper.findNodeByAutofillHint;
35 import static android.autofillservice.cts.Helper.findNodeByResourceId;
36 import static android.autofillservice.cts.Helper.findNodeByText;
37 import static android.autofillservice.cts.Helper.getNumberNodes;
38 import static android.autofillservice.cts.Helper.importantForAutofillAsString;
DDuplicateIdActivityTest.java46 Helper.disableAutoRotation(mUiBot); in setup()
56 Helper.allowAutoRotation(); in teardown()
78 assumeTrue("Rotation is supported", Helper.isRotationSupported(mContext)); in testDoNotRestoreDuplicateAutofillIds()
DSimpleSaveActivityTest.java19 import static android.autofillservice.cts.Helper.ID_STATIC_TEXT;
20 import static android.autofillservice.cts.Helper.assertTextAndValue;
21 import static android.autofillservice.cts.Helper.assertTextValue;
22 import static android.autofillservice.cts.Helper.findNodeByResourceId;
196 assumeTrue("Rotation is supported", Helper.isRotationSupported(mContext)); in testSave_afterRotation()
220 Helper.assertHasSessions(mPackageName); in saveTest()
261 Helper.assertHasSessions(mPackageName); in testSave_launchIntent()
291 Helper.assertHasSessions(mPackageName); in testSaveThenStartNewSessionRightAway()
374 Helper.assertHasSessions(mPackageName); in testCancelPreventsSaveUiFromShowing()
425 Helper.assertHasSessions(mPackageName); in dismissSaveTest()
[all …]
DVirtualContainerActivityTest.java19 import static android.autofillservice.cts.Helper.ID_PASSWORD;
20 import static android.autofillservice.cts.Helper.ID_PASSWORD_LABEL;
21 import static android.autofillservice.cts.Helper.ID_USERNAME;
22 import static android.autofillservice.cts.Helper.ID_USERNAME_LABEL;
23 import static android.autofillservice.cts.Helper.assertTextAndValue;
24 import static android.autofillservice.cts.Helper.assertTextIsSanitized;
25 import static android.autofillservice.cts.Helper.assertTextOnly;
26 import static android.autofillservice.cts.Helper.dumpStructure;
27 import static android.autofillservice.cts.Helper.findNodeByResourceId;
770 boolean autofillViewBoundsMatches = !Helper.isAutofillWindowFullScreen(mContext); in assertDatasetShown()
DValidatorTest.java19 import static android.autofillservice.cts.Helper.ID_PASSWORD;
20 import static android.autofillservice.cts.Helper.ID_USERNAME;
DInstrumentedAutoFillService.java21 import static android.autofillservice.cts.Helper.dumpStructure;
22 import static android.autofillservice.cts.Helper.getActivityName;
62 static final String SERVICE_PACKAGE = Helper.MY_PACKAGE;
568 (id) -> Helper.findNodeByResourceId(contexts, id)); in onFillRequest()
572 (name) -> Helper.findNodeByHtmlName(contexts, name)); in onFillRequest()
576 (id) -> Helper.findNodeByHtmlNameOrResourceId(contexts, id)); in onFillRequest()
DMultiWindowLoginActivityTest.java19 import static android.autofillservice.cts.Helper.ID_PASSWORD;
20 import static android.autofillservice.cts.Helper.ID_USERNAME;
DLoginActivityTest.java21 import static android.autofillservice.cts.Helper.ID_PASSWORD;
22 import static android.autofillservice.cts.Helper.ID_PASSWORD_LABEL;
23 import static android.autofillservice.cts.Helper.ID_USERNAME;
24 import static android.autofillservice.cts.Helper.ID_USERNAME_LABEL;
25 import static android.autofillservice.cts.Helper.assertHasFlags;
26 import static android.autofillservice.cts.Helper.assertNumberOfChildren;
27 import static android.autofillservice.cts.Helper.assertTextAndValue;
28 import static android.autofillservice.cts.Helper.assertTextIsSanitized;
29 import static android.autofillservice.cts.Helper.assertTextOnly;
30 import static android.autofillservice.cts.Helper.assertValue;
[all …]
DLoginWithCustomHighlightActivityTest.java19 import static android.autofillservice.cts.Helper.ID_USERNAME;
DSettingsIntentTest.java116 .setData(Uri.parse("package:" + Helper.MY_PACKAGE)); in newSettingsIntent()
DFillEventHistoryTest.java22 import static android.autofillservice.cts.Helper.ID_PASSWORD;
23 import static android.autofillservice.cts.Helper.ID_USERNAME;
24 import static android.autofillservice.cts.Helper.NULL_DATASET_ID;
25 import static android.autofillservice.cts.Helper.assertDeprecatedClientState;
26 import static android.autofillservice.cts.Helper.assertFillEventForAuthenticationSelected;
27 import static android.autofillservice.cts.Helper.assertFillEventForDatasetAuthenticationSelected;
28 import static android.autofillservice.cts.Helper.assertFillEventForDatasetSelected;
29 import static android.autofillservice.cts.Helper.assertFillEventForSaveShown;
30 import static android.autofillservice.cts.Helper.assertNoDeprecatedClientState;

12