/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/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | UiDumpUtils.java | 177 node -> { in dumpNodes() 178 if (appendNode(out, node)) { in dumpNodes() 182 action -> node -> { in dumpNodes() 184 action.accept(node); in dumpNodes() 188 private static <T> void recursively(T node, in recursively() argument 191 if (node == null) return; in recursively() 193 action.accept(node); in recursively() 196 int size = getChildCount.applyAsInt(node); in recursively() 198 recursively(getChildAt.apply(node, i), in recursively() 232 private static boolean appendNode(StringBuilder out, AccessibilityNodeInfo node) { in appendNode() argument [all …]
|
D | AccessibilityNodeInfoUtils.kt | 49 return depthFirstSearch { node -> in AccessibilityNodeInfo() method 50 node.depthFirstSearch(condition1) != null && in AccessibilityNodeInfo() 51 node.depthFirstSearch(condition2) != null in AccessibilityNodeInfo()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/ |
D | Helper.java | 151 boolean matches(T node, Object id); in matches() argument 154 private static final NodeFilter<ViewNode> RESOURCE_ID_FILTER = (node, id) -> { 155 return id.equals(node.getIdEntry()); 158 private static final NodeFilter<ViewNode> HTML_NAME_FILTER = (node, id) -> { 159 return id.equals(getHtmlName(node)); 162 private static final NodeFilter<ViewNode> HTML_NAME_OR_RESOURCE_ID_FILTER = (node, id) -> { 163 return id.equals(getHtmlName(node)) || id.equals(node.getIdEntry()); 166 private static final NodeFilter<ViewNode> TEXT_FILTER = (node, id) -> { 167 return id.equals(node.getText()); 170 private static final NodeFilter<ViewNode> AUTOFILL_HINT_FILTER = (node, id) -> { [all …]
|
D | CannedFillResponse.java | 628 final ViewNode node = nodeResolver.apply(id); in asDataset() local 629 if (node == null) { in asDataset() 632 final AutofillId autofillId = node.getAutofillId(); in asDataset()
|
/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/tests/accessibility/common/src/android/accessibility/cts/common/ |
D | AccessibilityDumper.java | 175 private static void dumpTreeWithPrefix(AccessibilityNodeInfo node, String prefix) { in dumpTreeWithPrefix() argument 177 appendNodeText(nodeText, node); in dumpTreeWithPrefix() 179 final int count = node.getChildCount(); in dumpTreeWithPrefix() 181 AccessibilityNodeInfo child = node.getChild(i); in dumpTreeWithPrefix() 190 private static void appendNodeText(StringBuilder out, AccessibilityNodeInfo node) { in appendNodeText() argument 191 final CharSequence txt = node.getText(); in appendNodeText() 192 final CharSequence description = node.getContentDescription(); in appendNodeText() 193 final String viewId = node.getViewIdResourceName(); in appendNodeText() 203 out.append("+").append(node.getClassName()); in appendNodeText() 205 out.append(node.isCheckable() ? "C" : "."); in appendNodeText() [all …]
|
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/ |
D | EventsAssertor.java | 229 final ViewNode node = event.getViewNode(); in assertVirtualViewEvent() local 230 assertThat(node).isNotNull(); in assertVirtualViewEvent() 232 .that(node.getAutofillId()).isEqualTo(expectedId); in assertVirtualViewEvent() 235 .that(node.getText().toString()).isEqualTo(expectedText); in assertVirtualViewEvent() 237 assertWithMessage("%s should not have text", node) in assertVirtualViewEvent() 238 .that(node.getText()).isNull(); in assertVirtualViewEvent() 296 final ViewNode node = event.getViewNode(); in assertEventId() local 298 if (node == null) { in assertEventId() 302 if (expectedView != null && !node.getAutofillId().equals(expectedView.getAutofillId())) { in assertEventId() 304 expectedView.getAutofillId(), node.getAutofillId(), event); in assertEventId() [all …]
|
D | Assertions.java | 194 final ViewNode node = event.getViewNode(); in assertViewWithUnknownParentAppeared() local 196 assertWithMessage("wrong class on %s (%s)", event, index).that(node.getClassName()) in assertViewWithUnknownParentAppeared() 198 assertWithMessage("wrong autofill id on %s (%s)", event, index).that(node.getAutofillId()) in assertViewWithUnknownParentAppeared() 202 assertWithMessage("wrong text on %s (%s)", event, index).that(node.getText().toString()) in assertViewWithUnknownParentAppeared() 206 return node; in assertViewWithUnknownParentAppeared() 215 final ViewNode node = event.getViewNode(); in assertViewAppeared() local 216 assertThat(node).isNotNull(); in assertViewAppeared() 226 final ViewNode node = assertViewWithUnknownParentAppeared(events, index, expectedView, in assertViewAppeared() local 229 .that(node.getParentAutofillId()).isEqualTo(expectedParentId); in assertViewAppeared() 434 final ViewNode node = event.getViewNode(); in assertVirtualViewAppeared() local [all …]
|
D | CtsContentCaptureService.java | 325 final ViewNode node = event.getViewNode(); in onContentCaptureEvent() 326 if (node != null) { in onContentCaptureEvent() 327 Log.v(TAG, "onContentCaptureEvent(): parentId=" + node.getParentAutofillId()); in onContentCaptureEvent()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
D | FatActivityTest.java | 227 final ViewNode node = findNodeByResourceId(mRoot, resourceId); 228 assertWithMessage("no node with resource id '%s'", resourceId).that(node).isNotNull(); 229 return assertNode(node, resourceId, expectedImportantForAutofill); 233 final ViewNode node = findNodeByText(mRoot, text); 234 return assertNode(node, text, expectedImportantForAutofill); 237 private ViewNode assertNode(ViewNode node, int expectedImportantForAutofill) { 238 return assertNode(node, null, expectedImportantForAutofill); 241 private ViewNode assertNode(ViewNode node, String desc, int expectedImportantForAutofill) { 242 assertThat(node).isNotNull(); 243 final String actualMode = importantForAutofillAsString(node.getImportantForAutofill()); [all …]
|
/cts/tests/autofillservice/src/android/autofillservice/cts/activities/ |
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 public static void assertHtmlInfo(ViewNode node) { in assertHtmlInfo() argument [all …]
|
/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/uirendering/src/android/uirendering/cts/testclasses/ |
D | EdgeEffectTests.java | 340 RenderNode node = new RenderNode(""); in testNoSetSizeCallDoesNotCrash() local 341 RecordingCanvas canvas = node.beginRecording(); in testNoSetSizeCallDoesNotCrash() 343 node.endRecording(); in testNoSetSizeCallDoesNotCrash() 353 RenderNode node = new RenderNode(""); in testInvalidPullDistanceDoesNotCrash() local 354 node.setPosition(0, 0, TEST_WIDTH, TEST_HEIGHT); in testInvalidPullDistanceDoesNotCrash() 355 RecordingCanvas canvas = node.beginRecording(); in testInvalidPullDistanceDoesNotCrash() 358 node.endRecording(); in testInvalidPullDistanceDoesNotCrash() 372 RenderNode node = new RenderNode(""); in testAbsorbThenDrawDoesNotCrash() local 373 node.setPosition(0, 0, TEST_WIDTH, TEST_HEIGHT); in testAbsorbThenDrawDoesNotCrash() 374 RecordingCanvas canvas = node.beginRecording(); in testAbsorbThenDrawDoesNotCrash() [all …]
|
/cts/tests/tests/os/src/android/os/cts/ |
D | AppHibernationUtils.kt | 260 val title = ui.depthFirstSearch { node -> in waitFindObject() method 261 node.viewIdResourceName?.contains("alertTitle") == true in waitFindObject() 263 val okButton = ui.depthFirstSearch { node -> in waitFindObject() method 264 node.textAsString?.equals("OK", ignoreCase = true) ?: false in waitFindObject()
|
/cts/hostsidetests/appcompat/host/lib/src/android/compat/cts/ |
D | Change.java | 116 public static Change fromNode(Node node) { in fromNode() argument 117 Element element = (Element) node; in fromNode()
|
/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/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityEndToEndTest.java | 848 final AccessibilityNodeInfo node = targetMapInfo.getTargetForRegion( in testTouchDelegateInfoReportedToAccessibility() local 852 node.getViewIdResourceName()); in testTouchDelegateInfoReportedToAccessibility() 853 node.recycle(); in testTouchDelegateInfoReportedToAccessibility() 983 private static void assertPackageName(AccessibilityNodeInfo node, String packageName) { in assertPackageName() argument 984 if (node == null) { in assertPackageName() 987 assertEquals(packageName, node.getPackageName()); in assertPackageName() 988 final int childCount = node.getChildCount(); in assertPackageName() 990 AccessibilityNodeInfo child = node.getChild(i); in assertPackageName()
|
D | AccessibilityTextActionTest.java | 551 private void verifyImeActionLabel(AccessibilityNodeInfo node, String label) { in verifyImeActionLabel() argument 552 final List<AccessibilityNodeInfo.AccessibilityAction> actionList = node.getActionList(); in verifyImeActionLabel()
|
/cts/tests/location/location_gnss/protos/ |
D | ephemeris.proto | 70 // Longitude of ascending node of orbit plane at the beginning of week.
|
/cts/tests/tests/permission3/src/android/permission3/cts/ |
D | BaseUsePermissionTest.kt | 349 val node = if (isAutomotive) { in <lambda>() constant 358 assertTrue(node.isVisibleToUser) in <lambda>() 359 val text = node.text as Spanned in <lambda>()
|
/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/autofillservice/src/android/autofillservice/cts/dropdown/ |
D | VirtualContainerActivityTest.java | 809 protected void assertLabel(ViewNode node, String expectedValue) { in assertLabel() argument 812 assertTextOnly(node, expectedValue); in assertLabel() 814 assertTextAndValue(node, expectedValue); in assertLabel()
|