Home
last modified time | relevance | path

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

123

/cts/tests/autofillservice/src/android/autofillservice/cts/
DWebViewActivityTest.java107 Helper.assertAutofillEnabled(myWebView.getContext(), true);
141 Helper.findWebViewNodeByFormName(fillRequest.structure, "FORM AM I");
147 Helper.findNodeByHtmlName(fillRequest.structure, HTML_NAME_USERNAME);
148 Helper.assertTextIsSanitized(usernameNode);
149 final HtmlInfo usernameHtmlInfo = Helper.assertHasHtmlTag(usernameNode, "input");
150 Helper.assertHasAttribute(usernameHtmlInfo, "type", "text");
151 Helper.assertHasAttribute(usernameHtmlInfo, "name", "username");
157 Helper.findNodeByHtmlName(fillRequest.structure, HTML_NAME_PASSWORD);
158 Helper.assertTextIsSanitized(passwordNode);
159 final HtmlInfo passwordHtmlInfo = Helper.assertHasHtmlTag(passwordNode, "input");
[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;
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;
DServiceDisabledForSureTest.java19 import static android.autofillservice.cts.Helper.disableAutofillService;
20 import static android.autofillservice.cts.Helper.enableAutofillService;
72 Helper.assertAutofillEnabled(afm, false);
75 Helper.assertAutofillEnabled(afm, true);
78 Helper.assertAutofillEnabled(afm, false);
DServiceEnabledForSureTest.java19 import static android.autofillservice.cts.Helper.disableAutofillService;
20 import static android.autofillservice.cts.Helper.enableAutofillService;
70 Helper.assertAutofillEnabled(afm, true);
73 Helper.assertAutofillEnabled(afm, false);
76 Helper.assertAutofillEnabled(afm, true);
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;
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;
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;
86 Helper.enableAutofillService(getContext(), SERVICE_NAME); in enableService()
91 Helper.disableAutofillService(getContext()); in disableService()
DWebViewMultiScreenLoginActivityTest.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.assertTextAndValue;
26 import static android.autofillservice.cts.Helper.findNodeByHtmlName;
27 import static android.autofillservice.cts.Helper.getAutofillId;
91 Helper.assertAutofillEnabled(myWebView.getContext(), true);
197 Helper.assertAutofillEnabled(myWebView.getContext(), true);
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);
112 if (!Helper.isAutofillWindowFullScreen(mActivity)) {
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;
98 Helper.disableAutoRotation(mUiBot); in disableAutoRotation()
106 Helper.allowAutoRotation(); in allowAutoRotation()
156 assumeTrue("Rotation is supported", Helper.isRotationSupported(mContext)); in testDatasetAuthResponseWhileAutofilledAppIsLifecycled()
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;
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.findAutofillIdByResourceId;
34 import static android.autofillservice.cts.Helper.findNodeByResourceId;
35 import static android.autofillservice.cts.Helper.getContext;
325 final UiObject2 staticText = saveUi.findObject(By.res(packageName, Helper.ID_STATIC_TEXT));
403 assertThat(saveUi.findObject(By.res(packageName, Helper.ID_STATIC_TEXT))).isNull();
DAutoFillServiceTestCase.java19 import static android.autofillservice.cts.Helper.getContext;
319 Helper.setDefaultAugmentedAutofillServiceEnabled(false);
325 Helper.setDefaultAugmentedAutofillServiceEnabled(true);
381 Helper.enableAutofillService(getContext(), SERVICE_NAME);
388 Helper.disableAutofillService(getContext());
395 Helper.assertAutofillServiceStatus(SERVICE_NAME, true);
402 Helper.assertAutofillServiceStatus(SERVICE_NAME, false);
DOnClickActionTest.java25 import static android.autofillservice.cts.Helper.ID_PASSWORD_LABEL;
26 import static android.autofillservice.cts.Helper.ID_USERNAME_LABEL;
27 import static android.autofillservice.cts.Helper.assertTextAndValue;
28 import static android.autofillservice.cts.Helper.findAutofillIdByResourceId;
29 import static android.autofillservice.cts.Helper.findNodeByResourceId;
DValidatorTest.java19 import static android.autofillservice.cts.Helper.ID_PASSWORD;
20 import static android.autofillservice.cts.Helper.ID_USERNAME;
21 import static android.autofillservice.cts.Helper.findAutofillIdByResourceId;
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.java21 import static android.autofillservice.cts.Helper.assertEqualsIgnoreSession;
56 Helper.disableAutoRotation(mUiBot); in setup()
62 Helper.allowAutoRotation(); in teardown()
90 assumeTrue("Rotation is supported", Helper.isRotationSupported(mContext)); in testDoNotRestoreDuplicateAutofillIds()
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;
776 boolean autofillViewBoundsMatches = !Helper.isAutofillWindowFullScreen(mContext); in assertDatasetShown()
DInstrumentedAutoFillService.java22 import static android.autofillservice.cts.Helper.dumpStructure;
23 import static android.autofillservice.cts.Helper.getActivityName;
75 static final String SERVICE_PACKAGE = Helper.MY_PACKAGE;
379 + ", bundle=" + data + ", structure=" + Helper.toString(structure) + "]"; in toString()
659 (id) -> Helper.findNodeByResourceId(contexts, id)); in onFillRequest()
663 (name) -> Helper.findNodeByHtmlName(contexts, name)); in onFillRequest()
667 (id) -> Helper.findNodeByHtmlNameOrResourceId(contexts, id)); in onFillRequest()
678 Helper.offer(mFillRequests, new FillRequest(contexts, data, cancellationSignal, in onFillRequest()
694 Helper.offer(mSaveRequests, new SaveRequest(contexts, data, callback, datasetIds), in onSaveRequest()
DMultiScreenLoginTest.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.findAutofillIdByResourceId;
25 import static android.autofillservice.cts.Helper.findNodeByResourceId;
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/
DWhitelistTest.java19 import static android.contentcaptureservice.cts.Helper.MY_PACKAGE;
20 import static android.contentcaptureservice.cts.Helper.NO_ACTIVITIES;
21 import static android.contentcaptureservice.cts.Helper.NO_PACKAGES;
22 import static android.contentcaptureservice.cts.Helper.read;
23 import static android.contentcaptureservice.cts.Helper.sContext;
24 import static android.contentcaptureservice.cts.Helper.toSet;
DAbstractContentCaptureIntegrationTest.java19 import static android.contentcaptureservice.cts.Helper.MY_PACKAGE;
20 import static android.contentcaptureservice.cts.Helper.resetService;
21 import static android.contentcaptureservice.cts.Helper.sContext;
22 import static android.contentcaptureservice.cts.Helper.setService;
23 import static android.contentcaptureservice.cts.Helper.toSet;
175 Helper.setDefaultServiceEnabled(false); in disableDefaultService()
181 Helper.setDefaultServiceEnabled(true); in enableDefaultService()
DCanaryTest.java19 import static android.contentcaptureservice.cts.Helper.RESOURCE_STRING_SERVICE_NAME;
20 import static android.contentcaptureservice.cts.Helper.getInternalString;
21 import static android.contentcaptureservice.cts.Helper.sContext;

123