/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/ |
D | PreFilledLoginActivityTest.java | 75 assertTextIsSanitized(fillRequest.structure, ID_USERNAME_LABEL); 78 assertTextFromResouces(fillRequest.structure, ID_PASSWORD_LABEL, "DA PASSWORD", false, 82 assertTextAndValue(findNodeByResourceId(fillRequest.structure, ID_USERNAME), 84 assertTextAndValue(findNodeByResourceId(fillRequest.structure, ID_PASSWORD), "T0p S3cr3t"); 96 assertTextOnly(findNodeByResourceId(saveRequest.structure, ID_USERNAME_LABEL), "DA USER"); 97 assertTextFromResouces(saveRequest.structure, ID_PASSWORD_LABEL, "DA PASSWORD", false, 99 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_USERNAME), "malkovich"); 100 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_PASSWORD), "malkovich");
|
D | PartitionedActivityTest.java | 79 final ViewNode p1l1c1 = assertTextIsSanitized(fillRequest1.structure, ID_L1C1); in testAutofillTwoPartitionsSkipFirst() 80 final ViewNode p1l1c2 = assertTextIsSanitized(fillRequest1.structure, ID_L1C2); in testAutofillTwoPartitionsSkipFirst() 102 final ViewNode p2l1c1 = assertTextIsSanitized(fillRequest2.structure, ID_L1C1); in testAutofillTwoPartitionsSkipFirst() 103 final ViewNode p2l1c2 = assertTextIsSanitized(fillRequest2.structure, ID_L1C2); in testAutofillTwoPartitionsSkipFirst() 104 final ViewNode p2l2c1 = assertTextIsSanitized(fillRequest2.structure, ID_L2C1); in testAutofillTwoPartitionsSkipFirst() 105 final ViewNode p2l2c2 = assertTextIsSanitized(fillRequest2.structure, ID_L2C2); in testAutofillTwoPartitionsSkipFirst() 163 assertTextIsSanitized(fillRequest1.structure, ID_L1C1); in testAutofillTwoPartitionsInSequence() 164 assertTextIsSanitized(fillRequest1.structure, ID_L1C2); in testAutofillTwoPartitionsInSequence() 191 assertValue(fillRequest2.structure, ID_L1C1, "l1c1"); in testAutofillTwoPartitionsInSequence() 192 assertValue(fillRequest2.structure, ID_L1C2, "l1c2"); in testAutofillTwoPartitionsInSequence() [all …]
|
D | WebViewActivityTest.java | 141 Helper.findWebViewNodeByFormName(fillRequest.structure, "FORM AM I"); 147 Helper.findNodeByHtmlName(fillRequest.structure, HTML_NAME_USERNAME); 157 Helper.findNodeByHtmlName(fillRequest.structure, HTML_NAME_PASSWORD); 167 Helper.dumpStructure("failed on testAutofillOneDataset()", fillRequest.structure); 210 final ViewNode usernameNode = Helper.findNodeByHtmlName(saveRequest.structure, 212 final ViewNode passwordNode = Helper.findNodeByHtmlName(saveRequest.structure, 251 final ViewNode usernameNode = Helper.findNodeByHtmlName(fillRequest.structure, 256 final ViewNode passwordNode = Helper.findNodeByHtmlName(fillRequest.structure, 284 final ViewNode usernameNode2 = Helper.findNodeByHtmlName(saveRequest.structure, 286 final ViewNode passwordNode2 = Helper.findNodeByHtmlName(saveRequest.structure, [all …]
|
D | ViewAttributesTest.java | 141 @Nullable private String[] getHintsFromStructure(@NonNull AssistStructure structure, 143 return findNodeByResourceId(structure, resName).getAutofillHints(); 170 onAssistStructure(false, (structure) -> { 172 checkEditTextNoHint(getHintsFromStructure(structure, "editTextNoHint")); 173 checkEditTextHintCustom(getHintsFromStructure(structure, "editTextHintCustom")); 174 checkEditTextPassword(getHintsFromStructure(structure, "editTextPassword")); 175 checkEditTextPhoneName(getHintsFromStructure(structure, "editTextPhoneName")); 176 checkEditTextHintsFromArray(getHintsFromStructure(structure, 187 onAssistStructure(false, (structure) -> { 189 AssistStructure.ViewNode outerView = findNodeByResourceId(structure, [all …]
|
D | Helper.java | 171 private static String toString(AssistStructure structure, StringBuilder builder) { in toString() argument 172 builder.append("[component=").append(structure.getActivityComponent()); in toString() 173 final int nodes = structure.getWindowNodeCount(); in toString() 175 final WindowNode windowNode = structure.getWindowNodeAt(i); in toString() 182 public static String toString(@NonNull AssistStructure structure) { in toString() argument 183 return toString(structure, new StringBuilder()); in toString() 200 public static void dumpStructure(String message, AssistStructure structure) { in dumpStructure() argument 201 Log.i(TAG, toString(structure, new StringBuilder(message))); in dumpStructure() 296 public static ViewNode findNodeByFilter(@NonNull AssistStructure structure, @NonNull Object id, in findNodeByFilter() argument 298 Log.v(TAG, "Parsing request for activity " + structure.getActivityComponent()); in findNodeByFilter() [all …]
|
D | LoginWithStringsActivityTest.java | 91 assertTextIsSanitized(fillRequest.structure, ID_USERNAME); 92 assertTextIsSanitized(fillRequest.structure, ID_PASSWORD); 95 assertTextFromResouces(fillRequest.structure, ID_USERNAME_LABEL, "Username", false, 97 assertTextFromResouces(fillRequest.structure, ID_PASSWORD_LABEL, "Password", false, 127 final ViewNode username = findNodeByResourceId(saveRequest.structure, ID_USERNAME); 129 final ViewNode password = findNodeByResourceId(saveRequest.structure, ID_USERNAME); 133 assertTextFromResouces(saveRequest.structure, ID_USERNAME_LABEL, "Username", false, 135 assertTextFromResouces(saveRequest.structure, ID_PASSWORD_LABEL, "Password", false,
|
D | CheckoutActivityTest.java | 103 assertTextIsSanitized(fillRequest.structure, ID_CC_EXPIRATION); 148 assertTextIsSanitized(fillRequest.structure, ID_CC_EXPIRATION); 191 assertTextIsSanitized(fillRequest.structure, ID_CC_EXPIRATION); 228 assertTextIsSanitized(fillRequest.structure, ID_CC_NUMBER); 229 assertTextIsSanitized(fillRequest.structure, ID_CC_EXPIRATION); 230 assertToggleIsSanitized(fillRequest.structure, ID_HOME_ADDRESS); 231 assertToggleIsSanitized(fillRequest.structure, ID_SAVE_CC); 243 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_CC_NUMBER), "4815162342"); 244 assertListValue(findNodeByResourceId(saveRequest.structure, ID_CC_EXPIRATION), 246 assertListValue(findNodeByResourceId(saveRequest.structure, ID_ADDRESS), [all …]
|
D | ManualAuthenticationActivity.java | 50 AssistStructure structure = getIntent().getParcelableExtra( in onCreate() local 52 if (structure != null) { in onCreate() 56 (id) -> Helper.findNodeByResourceId(structure, id)); in onCreate() 59 (id) -> Helper.findNodeByResourceId(structure, id)); in onCreate()
|
D | InitializedCheckoutActivityTest.java | 70 assertTextAndValue(findNodeByResourceId(fillRequest.structure, ID_CC_NUMBER), "4815162342"); 71 assertListValue(findNodeByResourceId(fillRequest.structure, ID_ADDRESS), 73 assertToggleValue(findNodeByResourceId(fillRequest.structure, ID_SAVE_CC), true); 76 assertTextIsSanitized(fillRequest.structure, ID_CC_EXPIRATION);
|
D | LoginActivityTest.java | 326 final ViewNode username = findNodeByResourceId(saveRequest.structure, ID_USERNAME); in testAutofillAutomaticallyAndSaveAfterServiceReturnedNoDatasets() 328 final ViewNode password = findNodeByResourceId(saveRequest.structure, ID_PASSWORD); in testAutofillAutomaticallyAndSaveAfterServiceReturnedNoDatasets() 330 final ViewNode childNode = findNodeByResourceId(saveRequest.structure, ID_EMPTY); in testAutofillAutomaticallyAndSaveAfterServiceReturnedNoDatasets() 473 assertTextIsSanitized(request.structure, ID_PASSWORD); in autofillOneDatasetTest() 480 findNodeByResourceId(request.structure, ID_USERNAME).isFocused()).isTrue(); in autofillOneDatasetTest() 482 findNodeByResourceId(request.structure, ID_PASSWORD).isFocused()).isFalse(); in autofillOneDatasetTest() 977 assertTextIsSanitized(fillRequest.structure, ID_USERNAME); in testAutoFillOneDatasetAndSave() 978 assertTextIsSanitized(fillRequest.structure, ID_PASSWORD); in testAutoFillOneDatasetAndSave() 981 assertTextOnly(fillRequest.structure, ID_USERNAME_LABEL, "Username"); in testAutoFillOneDatasetAndSave() 982 assertTextOnly(fillRequest.structure, ID_PASSWORD_LABEL, "Password"); in testAutoFillOneDatasetAndSave() [all …]
|
D | TimePickerTestCase.java | 72 assertTextIsSanitized(fillRequest.structure, ID_TIME_PICKER); in testAutoFillAndSave() 73 assertNumberOfChildren(fillRequest.structure, ID_TIME_PICKER, 0); in testAutoFillAndSave() 89 assertTimeValue(findNodeByResourceId(saveRequest.structure, ID_TIME_PICKER), 10, 40); in testAutoFillAndSave() 90 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_OUTPUT), "10:40"); in testAutoFillAndSave()
|
D | DatePickerTestCase.java | 72 assertTextIsSanitized(fillRequest.structure, ID_DATE_PICKER); in testAutoFillAndSave() 73 assertNumberOfChildren(fillRequest.structure, ID_DATE_PICKER, 0); in testAutoFillAndSave() 90 assertDateValue(findNodeByResourceId(saveRequest.structure, ID_DATE_PICKER), 2010, 11, 12); in testAutoFillAndSave() 91 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_OUTPUT), "2010/11/12"); in testAutoFillAndSave()
|
D | MultipleFragmentLoginTest.java | 81 final AssistStructure structure = fillRequest1.contexts.get(0).getStructure(); 83 assertThat(findNodeByResourceId(structure, "editText1")).isNotNull(); 84 assertThat(findNodeByResourceId(structure, "editText2")).isNotNull(); 85 assertThat(findNodeByResourceId(structure, "editText3")).isNull(); 86 assertThat(findNodeByResourceId(structure, "editText4")).isNull(); 87 assertThat(findNodeByResourceId(structure, "editText5")).isNull();
|
D | SimpleSaveActivityTest.java | 137 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_INPUT), "ID"); in testAutoFillOneDatasetAndSave() 138 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_PASSWORD), "PASS"); in testAutoFillOneDatasetAndSave() 165 final ViewNode inputOnFill = findNodeByResourceId(fillRequest.structure, ID_INPUT); in testAutoFillOneDatasetAndSave_largeAssistStructure() 190 final ViewNode inputOnSave = findNodeByResourceId(saveRequest.structure, ID_INPUT); in testAutoFillOneDatasetAndSave_largeAssistStructure() 192 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_PASSWORD), "PASS"); in testAutoFillOneDatasetAndSave_largeAssistStructure() 250 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_INPUT), "ID"); in testAutoFillOneDatasetAndSave_usingUiAutomatorOnly() 251 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_PASSWORD), "PASS"); in testAutoFillOneDatasetAndSave_usingUiAutomatorOnly() 311 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_INPUT), "108"); in saveTest() 367 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_INPUT), "108"); in testPartitionedSave() 368 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_PASSWORD), "42"); in testPartitionedSave() [all …]
|
D | VirtualContainerActivityCompatModeTest.java | 120 final ViewNode urlBar = findNodeByResourceId(request.structure, ID_URL_BAR); in testMultipleUrlBars_firstDoesNotExist() 145 final ViewNode urlBar = findNodeByResourceId(request.structure, ID_URL_BAR); in testMultipleUrlBars_bothExist() 146 final ViewNode urlBar2 = findNodeByResourceId(request.structure, ID_URL_BAR2); in testMultipleUrlBars_bothExist() 217 final ViewNode username = findNodeByResourceId(saveRequest.structure, ID_USERNAME); in testUrlBarChangeIgnoredWhenServiceCanSave() 218 final ViewNode password = findNodeByResourceId(saveRequest.structure, ID_PASSWORD); in testUrlBarChangeIgnoredWhenServiceCanSave() 219 final ViewNode urlBar = findNodeByResourceId(saveRequest.structure, ID_URL_BAR); in testUrlBarChangeIgnoredWhenServiceCanSave()
|
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 …]
|
D | OptionalSaveActivityTest.java | 140 assertions.visit(saveRequest.structure); 331 assertions.visit(saveRequest.structure); 711 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_ADDRESS1), 713 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_ADDRESS2), 715 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_CITY), ""); 716 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_FAVORITE_COLOR), 760 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_ADDRESS1), 762 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_ADDRESS2), 764 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_CITY), "Shelbyville"); 765 assertTextAndValue(findNodeByResourceId(saveRequest.structure, ID_FAVORITE_COLOR),
|
D | MultiScreenLoginTest.java | 103 assertTextAndValue(findNodeByResourceId(saveRequest1.structure, ID_USERNAME), "dude"); 138 assertTextAndValue(findNodeByResourceId(saveRequest2.structure, ID_PASSWORD), "sweet"); 166 final ComponentName component1 = fillRequest1.structure.getActivityComponent(); 195 final ComponentName component2 = fillRequest2.structure.getActivityComponent(); 252 final ComponentName component1 = fillRequest1.structure.getActivityComponent(); 286 final ComponentName component2 = fillRequest2.structure.getActivityComponent(); 351 final ComponentName component1 = fillRequest1.structure.getActivityComponent(); 399 final ComponentName component2 = fillRequest2.structure.getActivityComponent();
|
D | DialogLauncherActivityTest.java | 73 assertTextIsSanitized(fillRequest.structure, ID_USERNAME); 74 assertTextIsSanitized(fillRequest.structure, ID_PASSWORD); 76 Helper.dumpStructure("D'OH!", fillRequest.structure);
|
D | MutableAutofillIdTest.java | 72 final ViewNode node1Request1 = assertTextIsSanitized(fillRequest1.structure, ID_L1C1); in testDatasetPickerIsNotShownAfterViewIsSwappedOut() 113 final ViewNode node1Request2 = assertTextIsSanitized(fillRequest2.structure, ID_L1C1); in testDatasetPickerIsNotShownAfterViewIsSwappedOut() 148 final ViewNode node1Request1 = assertTextIsSanitized(fillRequest1.structure, ID_L1C1); in testViewGoneDuringAutofillCanStillBeFilled() 209 final ViewNode node1Request1 = assertTextIsSanitized(fillRequest1.structure, ID_L1C1); in saveWhenIdChanged() 240 final ViewNode node1Request2 = assertTextIsSanitized(fillRequest2.structure, ID_L1C1); in saveWhenIdChanged()
|
D | AuthenticationActivity.java | 209 final AssistStructure structure = getIntent().getParcelableExtra( in doIt() local 211 assertWithMessage("structure not called").that(structure).isNotNull(); in doIt() 227 (id) -> Helper.findNodeByResourceId(structure, id)); in doIt() 230 result = dataset.asDataset((id) -> Helper.findNodeByResourceId(structure, id)); in doIt()
|
/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/tests/assist/service/src/android/assist/service/ |
D | MainInteractionSession.java | 131 public void onHandleAssist(/*@Nullable */Bundle data, /*@Nullable*/ AssistStructure structure, in onHandleAssist() argument 135 String.format("Bundle: %s, Structure: %s, Content: %s", data, structure, content)); in onHandleAssist() 136 super.onHandleAssist(data, structure, content); in onHandleAssist() 139 mAssistData.putParcelable(Utils.ASSIST_STRUCTURE_KEY, structure); in onHandleAssist() 148 public void onHandleAssistSecondary(Bundle data, AssistStructure structure, in onHandleAssistSecondary() argument
|