/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/unit/ |
D | ViewNodeTest.java | 60 ViewStructureImpl structure = new ViewStructureImpl(view); in testAutofillIdMethods_orphanView() local 61 ViewNode node = structure.getNode(); in testAutofillIdMethods_orphanView() 67 structure.setAutofillId(newId); in testAutofillIdMethods_orphanView() 71 structure.setAutofillId(new AutofillId(66), 6); in testAutofillIdMethods_orphanView() 88 ViewStructureImpl structure = new ViewStructureImpl(child); in testAutofillIdMethods_parentedView() local 89 ViewNode node = structure.getNode(); in testAutofillIdMethods_parentedView() 95 structure.setAutofillId(newChildId); in testAutofillIdMethods_parentedView() 104 structure.setAutofillId(new AutofillId(66), 6); in testAutofillIdMethods_parentedView() 112 ViewStructureImpl structure = new ViewStructureImpl(initialParentId, 108, 666); in testAutofillIdMethods_explicitIdsConstructor() local 113 ViewNode node = structure.getNode(); in testAutofillIdMethods_explicitIdsConstructor() [all …]
|
/cts/tests/tests/assist/common/src/android/assist/common/ |
D | MyWebView.java | 53 public void onProvideStructure(ViewStructure structure) { in onProvideStructure() argument 54 super.onProvideStructure(structure); in onProvideStructure() 56 onProvideStructureForAssistOrAutofill(structure); in onProvideStructure() 60 public void onProvideAutofillStructure(ViewStructure structure, int flags) { in onProvideAutofillStructure() argument 61 super.onProvideAutofillStructure(structure, flags); in onProvideAutofillStructure() 63 onProvideStructureForAssistOrAutofill(structure); in onProvideAutofillStructure() 66 private void onProvideStructureForAssistOrAutofill(ViewStructure structure) { in onProvideStructureForAssistOrAutofill() argument 68 structure.setWebDomain(mUrl); in onProvideStructureForAssistOrAutofill() 71 structure.setLocaleList(mLocaleList); in onProvideStructureForAssistOrAutofill()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/dropdown/ |
D | LoginWithStringsActivityTest.java | 96 assertTextIsSanitized(fillRequest.structure, ID_USERNAME); 97 assertTextIsSanitized(fillRequest.structure, ID_PASSWORD); 100 assertTextFromResources(fillRequest.structure, ID_USERNAME_LABEL, "Username", false, 102 assertTextFromResources(fillRequest.structure, ID_PASSWORD_LABEL, "Password", false, 106 assertHintFromResources(fillRequest.structure, ID_USERNAME, "Hint for username", 108 assertHintFromResources(fillRequest.structure, ID_PASSWORD, "Hint for password", 138 final ViewNode username = findNodeByResourceId(saveRequest.structure, ID_USERNAME); 140 final ViewNode password = findNodeByResourceId(saveRequest.structure, ID_USERNAME); 144 assertTextFromResources(saveRequest.structure, ID_USERNAME_LABEL, "Username", false, 146 assertTextFromResources(saveRequest.structure, ID_PASSWORD_LABEL, "Password", false, [all …]
|
D | PreFilledLoginActivityTest.java | 80 assertTextIsSanitized(fillRequest.structure, ID_USERNAME_LABEL); 83 assertTextFromResources(fillRequest.structure, ID_PASSWORD_LABEL, "DA PASSWORD", false, 87 assertTextAndValue(findNodeByResourceId(fillRequest.structure, ID_USERNAME), 89 assertTextAndValue(findNodeByResourceId(fillRequest.structure, ID_PASSWORD), "T0p S3cr3t"); 101 assertTextOnly(findNodeByResourceId(saveRequest.structure, ID_USERNAME_LABEL), "DA USER"); 102 assertTextFromResources(saveRequest.structure, ID_PASSWORD_LABEL, "DA PASSWORD", false, 104 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_USERNAME), "malkovich"); 105 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_PASSWORD), "malkovich");
|
D | WebViewActivityTest.java | 150 Helper.findWebViewNodeByFormName(fillRequest.structure, "FORM AM I"); 156 Helper.findNodeByHtmlName(fillRequest.structure, HTML_NAME_USERNAME); 166 Helper.findNodeByHtmlName(fillRequest.structure, HTML_NAME_PASSWORD); 176 Helper.dumpStructure("failed on testAutofillOneDataset()", fillRequest.structure); 219 final ViewNode usernameNode = Helper.findNodeByHtmlName(saveRequest.structure, 221 final ViewNode passwordNode = Helper.findNodeByHtmlName(saveRequest.structure, 260 final ViewNode usernameNode = Helper.findNodeByHtmlName(fillRequest.structure, 265 final ViewNode passwordNode = Helper.findNodeByHtmlName(fillRequest.structure, 293 final ViewNode usernameNode2 = Helper.findNodeByHtmlName(saveRequest.structure, 295 final ViewNode passwordNode2 = Helper.findNodeByHtmlName(saveRequest.structure, [all …]
|
D | PartitionedActivityTest.java | 82 final ViewNode p1l1c1 = assertTextIsSanitized(fillRequest1.structure, ID_L1C1); in testAutofillTwoPartitionsSkipFirst() 83 final ViewNode p1l1c2 = assertTextIsSanitized(fillRequest1.structure, ID_L1C2); in testAutofillTwoPartitionsSkipFirst() 105 final ViewNode p2l1c1 = assertTextIsSanitized(fillRequest2.structure, ID_L1C1); in testAutofillTwoPartitionsSkipFirst() 106 final ViewNode p2l1c2 = assertTextIsSanitized(fillRequest2.structure, ID_L1C2); in testAutofillTwoPartitionsSkipFirst() 107 final ViewNode p2l2c1 = assertTextIsSanitized(fillRequest2.structure, ID_L2C1); in testAutofillTwoPartitionsSkipFirst() 108 final ViewNode p2l2c2 = assertTextIsSanitized(fillRequest2.structure, ID_L2C2); in testAutofillTwoPartitionsSkipFirst() 164 assertTextIsSanitized(fillRequest1.structure, ID_L1C1); in testAutofillTwoPartitionsInSequence() 165 assertTextIsSanitized(fillRequest1.structure, ID_L1C2); in testAutofillTwoPartitionsInSequence() 192 assertValue(fillRequest2.structure, ID_L1C1, "l1c1"); in testAutofillTwoPartitionsInSequence() 193 assertValue(fillRequest2.structure, ID_L1C2, "l1c2"); in testAutofillTwoPartitionsInSequence() [all …]
|
D | InitializedCheckoutActivityTest.java | 73 assertTextAndValue(findNodeByResourceId(fillRequest.structure, ID_CC_NUMBER), "4815162342"); 74 assertListValue(findNodeByResourceId(fillRequest.structure, ID_ADDRESS), 76 assertToggleValue(findNodeByResourceId(fillRequest.structure, ID_SAVE_CC), true); 79 assertTextIsSanitized(fillRequest.structure, ID_CC_EXPIRATION);
|
D | LoginActivityTest.java | 294 final ViewNode username = findNodeByResourceId(saveRequest.structure, ID_USERNAME); in testAutofillAutomaticallyAndSaveAfterServiceReturnedNoDatasets() 296 final ViewNode password = findNodeByResourceId(saveRequest.structure, ID_PASSWORD); in testAutofillAutomaticallyAndSaveAfterServiceReturnedNoDatasets() 298 final ViewNode childNode = findNodeByResourceId(saveRequest.structure, ID_EMPTY); in testAutofillAutomaticallyAndSaveAfterServiceReturnedNoDatasets() 448 assertTextIsSanitized(request.structure, ID_PASSWORD); in autofillOneDatasetTest() 455 findNodeByResourceId(request.structure, ID_USERNAME).isFocused()).isTrue(); in autofillOneDatasetTest() 457 findNodeByResourceId(request.structure, ID_PASSWORD).isFocused()).isFalse(); in autofillOneDatasetTest() 959 assertTextIsSanitized(fillRequest.structure, ID_USERNAME); in testAutoFillOneDatasetAndSave() 960 assertTextIsSanitized(fillRequest.structure, ID_PASSWORD); in testAutoFillOneDatasetAndSave() 963 assertTextOnly(fillRequest.structure, ID_USERNAME_LABEL, "Username"); in testAutoFillOneDatasetAndSave() 964 assertTextOnly(fillRequest.structure, ID_PASSWORD_LABEL, "Password"); in testAutoFillOneDatasetAndSave() [all …]
|
D | VirtualContainerActivityCompatModeTest.java | 126 final ViewNode urlBar = findNodeByResourceId(request.structure, ID_URL_BAR); in testMultipleUrlBars_firstDoesNotExist() 151 final ViewNode urlBar = findNodeByResourceId(request.structure, ID_URL_BAR); in testMultipleUrlBars_bothExist() 152 final ViewNode urlBar2 = findNodeByResourceId(request.structure, ID_URL_BAR2); in testMultipleUrlBars_bothExist() 223 final ViewNode username = findNodeByResourceId(saveRequest.structure, ID_USERNAME); in testUrlBarChangeIgnoredWhenServiceCanSave() 224 final ViewNode password = findNodeByResourceId(saveRequest.structure, ID_PASSWORD); in testUrlBarChangeIgnoredWhenServiceCanSave() 225 final ViewNode urlBar = findNodeByResourceId(saveRequest.structure, ID_URL_BAR); in testUrlBarChangeIgnoredWhenServiceCanSave()
|
D | MultipleFragmentLoginTest.java | 88 final AssistStructure structure = fillRequest1.contexts.get(0).getStructure(); 90 assertThat(findNodeByResourceId(structure, "editText1")).isNotNull(); 91 assertThat(findNodeByResourceId(structure, "editText2")).isNotNull(); 92 assertThat(findNodeByResourceId(structure, "editText3")).isNull(); 93 assertThat(findNodeByResourceId(structure, "editText4")).isNull(); 94 assertThat(findNodeByResourceId(structure, "editText5")).isNull();
|
D | DialogLauncherActivityTest.java | 78 assertTextIsSanitized(fillRequest.structure, ID_USERNAME); 79 assertTextIsSanitized(fillRequest.structure, ID_PASSWORD); 81 Helper.dumpStructure("D'OH!", fillRequest.structure);
|
D | CheckoutActivityTest.java | 124 assertTextIsSanitized(fillRequest.structure, ID_CC_EXPIRATION); 169 assertTextIsSanitized(fillRequest.structure, ID_CC_EXPIRATION); 212 assertTextIsSanitized(fillRequest.structure, ID_CC_EXPIRATION); 248 assertTextIsSanitized(fillRequest.structure, ID_CC_NUMBER); 249 assertTextIsSanitized(fillRequest.structure, ID_CC_EXPIRATION); 250 assertToggleIsSanitized(fillRequest.structure, ID_HOME_ADDRESS); 251 assertToggleIsSanitized(fillRequest.structure, ID_SAVE_CC); 263 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_CC_NUMBER), "4815162342"); 264 assertListValue(findNodeByResourceId(saveRequest.structure, ID_CC_EXPIRATION), 266 assertListValue(findNodeByResourceId(saveRequest.structure, ID_ADDRESS), [all …]
|
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/ |
D | CustomView.java | 45 public void onProvideContentCaptureStructure(ViewStructure structure, int flags) { in onProvideContentCaptureStructure() argument 48 structure.setClassName(getAccessibilityClassName().toString()); in onProvideContentCaptureStructure() 49 mDelegate.visit(structure); in onProvideContentCaptureStructure() 52 superOnProvideContentCaptureStructure(structure, flags); in onProvideContentCaptureStructure() 61 void superOnProvideContentCaptureStructure(@NonNull ViewStructure structure, int flags) { in superOnProvideContentCaptureStructure() argument 63 super.onProvideContentCaptureStructure(structure, flags); in superOnProvideContentCaptureStructure()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
D | ViewAttributesTest.java | 145 @Nullable private String[] getHintsFromStructure(@NonNull AssistStructure structure, 147 return findNodeByResourceId(structure, resName).getAutofillHints(); 174 onAssistStructure(false, (structure) -> { 176 checkEditTextNoHint(getHintsFromStructure(structure, "editTextNoHint")); 177 checkEditTextHintCustom(getHintsFromStructure(structure, "editTextHintCustom")); 178 checkEditTextPassword(getHintsFromStructure(structure, "editTextPassword")); 179 checkEditTextPhoneName(getHintsFromStructure(structure, "editTextPhoneName")); 180 checkEditTextHintsFromArray(getHintsFromStructure(structure, 191 onAssistStructure(false, (structure) -> { 193 AssistStructure.ViewNode outerView = findNodeByResourceId(structure, [all …]
|
D | MutableAutofillIdTest.java | 74 final ViewNode node1Request1 = assertTextIsSanitized(fillRequest1.structure, ID_L1C1); in testDatasetPickerIsNotShownAfterViewIsSwappedOut() 115 final ViewNode node1Request2 = assertTextIsSanitized(fillRequest2.structure, ID_L1C1); in testDatasetPickerIsNotShownAfterViewIsSwappedOut() 150 final ViewNode node1Request1 = assertTextIsSanitized(fillRequest1.structure, ID_L1C1); in testViewGoneDuringAutofillCanStillBeFilled() 211 final ViewNode node1Request1 = assertTextIsSanitized(fillRequest1.structure, ID_L1C1); in saveWhenIdChanged() 242 final ViewNode node1Request2 = assertTextIsSanitized(fillRequest2.structure, ID_L1C1); in saveWhenIdChanged()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/ |
D | Helper.java | 186 private static String toString(AssistStructure structure, StringBuilder builder) { in toString() argument 187 builder.append("[component=").append(structure.getActivityComponent()); in toString() 188 final int nodes = structure.getWindowNodeCount(); in toString() 190 final WindowNode windowNode = structure.getWindowNodeAt(i); in toString() 197 public static String toString(@NonNull AssistStructure structure) { in toString() argument 198 return toString(structure, new StringBuilder()); in toString() 215 public static void dumpStructure(String message, AssistStructure structure) { in dumpStructure() argument 216 Log.i(TAG, toString(structure, new StringBuilder(message))); in dumpStructure() 329 public static ViewNode findNodeByFilter(@NonNull AssistStructure structure, @NonNull Object id, in findNodeByFilter() argument 331 Log.v(TAG, "Parsing request for activity " + structure.getActivityComponent()); in findNodeByFilter() [all …]
|
/cts/tests/autofillservice/src/android/autofillservice/cts/activities/ |
D | ManualAuthenticationActivity.java | 53 AssistStructure structure = getIntent().getParcelableExtra( in onCreate() local 55 if (structure != null) { in onCreate() 59 (id) -> Helper.findNodeByResourceId(structure, id)); in onCreate() 62 (id) -> Helper.findNodeByResourceId(structure, id)); in onCreate()
|
D | VirtualContainerView.java | 203 public void dispatchProvideAutofillStructure(ViewStructure structure, int flags) { in dispatchProvideAutofillStructure() argument 206 structure.setAutofillId(getAutofillId()); in dispatchProvideAutofillStructure() 207 onProvideAutofillVirtualStructure(structure, flags); in dispatchProvideAutofillStructure() 209 super.dispatchProvideAutofillStructure(structure, flags); in dispatchProvideAutofillStructure() 214 public void onProvideAutofillVirtualStructure(ViewStructure structure, int flags) { in onProvideAutofillVirtualStructure() argument 216 super.onProvideAutofillVirtualStructure(structure, flags); in onProvideAutofillVirtualStructure() 224 structure.setClassName(getClass().getName()); in onProvideAutofillVirtualStructure() 226 int index = structure.addChildCount(childrenSize); in onProvideAutofillVirtualStructure() 232 ? structure.newChild(index) in onProvideAutofillVirtualStructure() 233 : structure.asyncNewChild(index); in onProvideAutofillVirtualStructure() [all …]
|
/cts/tests/autofillservice/src/android/autofillservice/cts/inline/ |
D | InlineWebViewActivityTest.java | 153 Helper.findWebViewNodeByFormName(fillRequest.structure, "FORM AM I"); 159 Helper.findNodeByHtmlName(fillRequest.structure, HTML_NAME_USERNAME); 169 Helper.findNodeByHtmlName(fillRequest.structure, HTML_NAME_PASSWORD); 179 Helper.dumpStructure("failed on testAutofillOneDataset()", fillRequest.structure); 212 final ViewNode usernameNode = Helper.findNodeByHtmlName(fillRequest.structure, 217 final ViewNode passwordNode = Helper.findNodeByHtmlName(fillRequest.structure, 239 final ViewNode usernameNode2 = Helper.findNodeByHtmlName(saveRequest.structure, 241 final ViewNode passwordNode2 = Helper.findNodeByHtmlName(saveRequest.structure,
|
D | InlineSimpleSaveActivityTest.java | 110 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_INPUT), "ID"); 161 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_INPUT), "ID"); 162 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_PASSWORD), "pass");
|
/cts/tests/autofillservice/src/android/autofillservice/cts/commontests/ |
D | TimePickerTestCase.java | 72 assertTextIsSanitized(fillRequest.structure, ID_TIME_PICKER); in testAutoFillAndSave() 73 assertNumberOfChildren(fillRequest.structure, ID_TIME_PICKER, 0); in testAutoFillAndSave() 90 assertTimeValue(findNodeByResourceId(saveRequest.structure, ID_TIME_PICKER), 10, 40); in testAutoFillAndSave() 91 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_OUTPUT), "10:40"); in testAutoFillAndSave()
|
D | DatePickerTestCase.java | 74 assertTextIsSanitized(fillRequest.structure, ID_DATE_PICKER); in testAutoFillAndSave() 75 assertNumberOfChildren(fillRequest.structure, ID_DATE_PICKER, 0); in testAutoFillAndSave() 92 assertDateValue(findNodeByResourceId(saveRequest.structure, ID_DATE_PICKER), 2010, 11, 12); in testAutoFillAndSave() 93 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_OUTPUT), "2010/11/12"); in testAutoFillAndSave()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/saveui/ |
D | OptionalSaveActivityTest.java | 145 assertions.visit(saveRequest.structure); 338 assertions.visit(saveRequest.structure); 718 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_ADDRESS1), 720 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_ADDRESS2), 722 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_CITY), ""); 723 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_FAVORITE_COLOR), 767 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_ADDRESS1), 769 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_ADDRESS2), 771 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_CITY), "Shelbyville"); 772 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_FAVORITE_COLOR),
|
/cts/tests/autofillservice/src/android/autofillservice/cts/servicebehavior/ |
D | MultiScreenLoginTest.java | 110 assertTextAndValue(findNodeByResourceId(saveRequest1.structure, ID_USERNAME), "dude"); 145 assertTextAndValue(findNodeByResourceId(saveRequest2.structure, ID_PASSWORD), "sweet"); 173 final ComponentName component1 = fillRequest1.structure.getActivityComponent(); 202 final ComponentName component2 = fillRequest2.structure.getActivityComponent(); 259 final ComponentName component1 = fillRequest1.structure.getActivityComponent(); 293 final ComponentName component2 = fillRequest2.structure.getActivityComponent(); 358 final ComponentName component1 = fillRequest1.structure.getActivityComponent(); 406 final ComponentName component2 = fillRequest2.structure.getActivityComponent();
|
/cts/tests/tests/assist/service/src/android/assist/service/ |
D | MainInteractionSession.java | 155 AssistStructure structure = state.getAssistStructure(); in onHandleAssist() local 157 ComponentName activity = structure == null ? null : structure.getActivityComponent(); in onHandleAssist() 160 data, activity, structure, content)); in onHandleAssist() 174 mAssistData.putParcelable(Utils.ASSIST_STRUCTURE_KEY, structure); in onHandleAssist()
|