/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/unit/ |
D | ViewNodeTest.java | 61 ViewNode node = structure.getNode(); in testAutofillIdMethods_orphanView() local 63 assertThat(node.getAutofillId()).isEqualTo(initialId); in testAutofillIdMethods_orphanView() 64 assertThat(node.getParentAutofillId()).isNull(); in testAutofillIdMethods_orphanView() 68 assertThat(node.getAutofillId()).isEqualTo(newId); in testAutofillIdMethods_orphanView() 69 assertThat(node.getParentAutofillId()).isNull(); in testAutofillIdMethods_orphanView() 72 assertThat(node.getAutofillId()).isEqualTo(new AutofillId(66, 6)); in testAutofillIdMethods_orphanView() 73 assertThat(node.getParentAutofillId()).isEqualTo(new AutofillId(66)); in testAutofillIdMethods_orphanView() 89 ViewNode node = structure.getNode(); in testAutofillIdMethods_parentedView() local 91 assertThat(node.getAutofillId()).isEqualTo(initialChildId); in testAutofillIdMethods_parentedView() 92 assertThat(node.getParentAutofillId()).isEqualTo(initialParentId); in testAutofillIdMethods_parentedView() [all …]
|
/cts/tests/tests/tools/processors/view_inspector/src/android/processor/view/inspector/cts/ |
D | PlatformInspectableProcessorTest.java | 100 IntPropertyTest node = new IntPropertyTest(mRandom); in testMapAndReadInt() local 101 mapAndRead(node); in testMapAndReadInt() 102 assertEquals(node.getValue(), mPropertyReader.get("value")); in testMapAndReadInt() 113 IntPropertyTest node = new IntPropertyTest(mRandom); in testUninitializedPropertyMap() local 114 loadCompanion(IntPropertyTest.class).readProperties(node, mPropertyReader); in testUninitializedPropertyMap() 132 NamedPropertyTest node = new NamedPropertyTest(mRandom); in testNamedProperty() local 133 mapAndRead(node); in testNamedProperty() 135 assertEquals(node.getValue(), mPropertyReader.get("myNamedValue")); in testNamedProperty() 193 InferredPropertyNameTest node = new InferredPropertyNameTest(mRandom); in testInferredPropertyName() local 194 mapAndRead(node); in testInferredPropertyName() [all …]
|
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
D | Helper.java | 135 boolean matches(T node, Object id); in matches() argument 138 private static final NodeFilter<ViewNode> RESOURCE_ID_FILTER = (node, id) -> { 139 return id.equals(node.getIdEntry()); 142 private static final NodeFilter<ViewNode> HTML_NAME_FILTER = (node, id) -> { 143 return id.equals(getHtmlName(node)); 146 private static final NodeFilter<ViewNode> HTML_NAME_OR_RESOURCE_ID_FILTER = (node, id) -> { 147 return id.equals(getHtmlName(node)) || id.equals(node.getIdEntry()); 150 private static final NodeFilter<ViewNode> TEXT_FILTER = (node, id) -> { 151 return id.equals(node.getText()); 154 private static final NodeFilter<ViewNode> AUTOFILL_HINT_FILTER = (node, id) -> { [all …]
|
D | VirtualContainerView.java | 303 final AccessibilityNodeInfo node = AccessibilityNodeInfo.obtain(); in onProvideAutofillCompatModeAccessibilityNodeInfo() local 306 node.setPackageName(packageName); in onProvideAutofillCompatModeAccessibilityNodeInfo() 307 node.setClassName(getClass().getName()); in onProvideAutofillCompatModeAccessibilityNodeInfo() 315 node.addChild(this, id); in onProvideAutofillCompatModeAccessibilityNodeInfo() 318 return node; in onProvideAutofillCompatModeAccessibilityNodeInfo() 322 final AccessibilityNodeInfo node = AccessibilityNodeInfo.obtain(); in onProvideAutofillCompatModeAccessibilityNodeInfoForLoginButton() local 323 node.setSource(this, LOGIN_BUTTON_VIRTUAL_ID); in onProvideAutofillCompatModeAccessibilityNodeInfoForLoginButton() 324 node.setPackageName(getContext().getPackageName()); in onProvideAutofillCompatModeAccessibilityNodeInfoForLoginButton() 327 return node; in onProvideAutofillCompatModeAccessibilityNodeInfoForLoginButton() 330 static void assertHtmlInfo(ViewNode node) { in assertHtmlInfo() argument [all …]
|
D | FatActivityTest.java | 224 final ViewNode node = findNodeByResourceId(mRoot, resourceId); 225 assertWithMessage("no node with resource id '%s'", resourceId).that(node).isNotNull(); 226 return assertNode(node, resourceId, expectedImportantForAutofill); 230 final ViewNode node = findNodeByText(mRoot, text); 231 return assertNode(node, text, expectedImportantForAutofill); 234 private ViewNode assertNode(ViewNode node, int expectedImportantForAutofill) { 235 return assertNode(node, null, expectedImportantForAutofill); 238 private ViewNode assertNode(ViewNode node, String desc, int expectedImportantForAutofill) { 239 assertThat(node).isNotNull(); 240 final String actualMode = importantForAutofillAsString(node.getImportantForAutofill()); [all …]
|
D | CannedFillResponse.java | 560 final ViewNode node = nodeResolver.apply(id); in asDataset() local 561 if (node == null) { in asDataset() 564 final AutofillId autofillId = node.getAutofillId(); in asDataset()
|
D | VirtualContainerActivityTest.java | 789 protected void assertLabel(ViewNode node, String expectedValue) { in assertLabel() argument 792 assertTextOnly(node, expectedValue); in assertLabel() 794 assertTextAndValue(node, expectedValue); in assertLabel()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-3747/ |
D | poc.cpp | 40 sp<IOMXNode> node; in fuzzIOMXQcomEnc() local 77 status_t err = mOmx->allocateNode(name, observer, &node); in fuzzIOMXQcomEnc() 83 err = node->sendCommand(OMX_CommandStateSet, 2); in fuzzIOMXQcomEnc() 86 node->freeNode(); in fuzzIOMXQcomEnc() 96 node->freeNode(); in fuzzIOMXQcomEnc() 100 err = node->useBuffer(0, omxInBuf, &inBufferId[i]); in fuzzIOMXQcomEnc() 110 node->freeNode(); in fuzzIOMXQcomEnc() 114 err = node->useBuffer(1, omxOutBuf, &outBufferId[i]); in fuzzIOMXQcomEnc() 119 err = node->sendCommand(OMX_CommandStateSet, 3); in fuzzIOMXQcomEnc() 123 node->freeNode(); in fuzzIOMXQcomEnc() [all …]
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-2482/ |
D | poc.cpp | 52 sp<IOMXNode> node = 0; in fuzzIOMXSetParameterChangeCount() local 75 status_t err = mOmx->allocateNode(name, observerDec, &node); in fuzzIOMXSetParameterChangeCount() 87 node->freeNode(); in fuzzIOMXSetParameterChangeCount() 97 node->freeNode(); in fuzzIOMXSetParameterChangeCount() 113 err = node->setParameter(OMX_IndexParamPortDefinition, params, in fuzzIOMXSetParameterChangeCount() 117 node->freeNode(); in fuzzIOMXSetParameterChangeCount() 127 err = node->useBuffer(OMX_CORE_INPUT_PORT_INDEX, memory, &bufferId); in fuzzIOMXSetParameterChangeCount() 130 node->freeNode(); in fuzzIOMXSetParameterChangeCount() 138 err = node->setParameter(OMX_IndexParamPortDefinition, params, in fuzzIOMXSetParameterChangeCount() 142 err = node->freeNode(); in fuzzIOMXSetParameterChangeCount()
|
/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp23/src/com/android/cts/usepermission/ |
D | BasePermissionsTest.java | 600 for (AccessibilityNodeInfo node : nodes) { in findByText() 601 if (node.getText().toString().equals(text)) { in findByText() 602 return node; in findByText() 611 for (AccessibilityNodeInfo node : nodes) { in findByTextForWatch() 612 if (trimText(node.getText().toString()).equals(trimmedText)) { in findByTextForWatch() 613 return node; in findByTextForWatch() 661 private static void scrollTop(AccessibilityNodeInfo node) throws Exception { in scrollTop() argument 663 while (node.getActionList().contains(AccessibilityAction.ACTION_SCROLL_BACKWARD)) { in scrollTop() 664 scroll(node, false); in scrollTop() 671 private static void scrollForward(AccessibilityNodeInfo node) throws Exception { in scrollForward() argument [all …]
|
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/ |
D | Assertions.java | 173 final ViewNode node = event.getViewNode(); in assertViewWithUnknownParentAppeared() local 175 assertWithMessage("wrong class on %s (%s)", event, index).that(node.getClassName()) in assertViewWithUnknownParentAppeared() 177 assertWithMessage("wrong autofill id on %s (%s)", event, index).that(node.getAutofillId()) in assertViewWithUnknownParentAppeared() 181 assertWithMessage("wrong text on %s (%s)", event, index).that(node.getText().toString()) in assertViewWithUnknownParentAppeared() 185 return node; in assertViewWithUnknownParentAppeared() 194 final ViewNode node = event.getViewNode(); in assertViewAppeared() local 195 assertThat(node).isNotNull(); in assertViewAppeared() 205 final ViewNode node = assertViewWithUnknownParentAppeared(events, index, expectedView, in assertViewAppeared() local 208 .that(node.getParentAutofillId()).isEqualTo(expectedParentId); in assertViewAppeared() 390 final ViewNode node = event.getViewNode(); in assertVirtualViewAppeared() local [all …]
|
D | CtsContentCaptureService.java | 273 final ViewNode node = event.getViewNode(); in onContentCaptureEvent() 274 if (node != null) { in onContentCaptureEvent() 275 Log.v(TAG, "onContentCaptureEvent(): parentId=" + node.getParentAutofillId()); in onContentCaptureEvent()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/activities/ |
D | AccessibilityEndToEndActivity.java | 105 private static void setPackageNameInjector(View node, PackageNameInjector injector) { in setPackageNameInjector() argument 106 if (node == null) { in setPackageNameInjector() 109 node.setAccessibilityDelegate(injector); in setPackageNameInjector() 110 if (node instanceof ViewGroup) { in setPackageNameInjector() 111 final ViewGroup viewGroup = (ViewGroup) node; in setPackageNameInjector()
|
/cts/tests/tests/net/jni/ |
D | NativeDnsJni.c | 36 const char *node = "www.google.com"; in Java_android_net_cts_DnsTest_testNativeDns() local 40 int res = getaddrinfo(node, service, NULL, &answer); in Java_android_net_cts_DnsTest_testNativeDns() 73 node = "ipv6.google.com"; in Java_android_net_cts_DnsTest_testNativeDns() 74 res = getaddrinfo(node, service, NULL, &answer); in Java_android_net_cts_DnsTest_testNativeDns()
|
/cts/hostsidetests/appcompat/compatchanges/src/com/android/cts/appcompat/ |
D | CompatChangesValidConfigTest.java | 107 static Change fromNode(Node node) { in fromNode() argument 108 Element element = (Element) node; in fromNode()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityEndToEndTest.java | 832 final AccessibilityNodeInfo node = targetMapInfo.getTargetForRegion( in testTouchDelegateInfoReportedToAccessibility() local 836 node.getViewIdResourceName()); in testTouchDelegateInfoReportedToAccessibility() 837 node.recycle(); in testTouchDelegateInfoReportedToAccessibility() 965 private static void assertPackageName(AccessibilityNodeInfo node, String packageName) { in assertPackageName() argument 966 if (node == null) { in assertPackageName() 969 assertEquals(packageName, node.getPackageName()); in assertPackageName() 970 final int childCount = node.getChildCount(); in assertPackageName() 972 AccessibilityNodeInfo child = node.getChild(i); in assertPackageName()
|
/cts/tools/release-parser/src/com/android/cts/releaseparser/ |
D | DepCsvPrinter.java | 103 for (Map.Entry<String, String> node : mLibMap.entrySet()) { in writeCsv() 104 mPWriter.println(String.format("%s,%s", node.getKey(), node.getValue())); in writeCsv()
|
/cts/tests/tests/security/jni/ |
D | android_security_cts_cve_2019_2213_Test.c | 948 void hlist_del(u64 node) { in hlist_del() argument 949 u64 next = r64(node); in hlist_del() 950 u64 pprev = r64(node + 8); in hlist_del() 951 if (r64(pprev) != node) { in hlist_del() 1089 u64 node = scratch; in grant() local 1091 w64(node + i * 8, 0); in grant() 1093 w64(node, src[0]); in grant() 1094 w64(node + 8, src[1]); in grant() 1097 u64 hl = node + 0x28; in grant()
|
/cts/tests/tests/location/protos/ |
D | ephemeris.proto | 70 // Longitude of ascending node of orbit plane at the beginning of week.
|
/cts/tests/tests/assist/src/android/assist/cts/ |
D | AssistTestBase.java | 503 boolean visit(ViewNode node); in visit() argument
|