Home
last modified time | relevance | path

Searched refs:node (Results 1 – 25 of 27) sorted by relevance

12

/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/unit/
DViewNodeTest.java61 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/
DPlatformInspectableProcessorTest.java100 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/
DUiDumpUtils.java177 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 …]
DAccessibilityNodeInfoUtils.kt49 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/
DHelper.java150 boolean matches(T node, Object id); in matches() argument
153 private static final NodeFilter<ViewNode> RESOURCE_ID_FILTER = (node, id) -> {
154 return id.equals(node.getIdEntry());
157 private static final NodeFilter<ViewNode> HTML_NAME_FILTER = (node, id) -> {
158 return id.equals(getHtmlName(node));
161 private static final NodeFilter<ViewNode> HTML_NAME_OR_RESOURCE_ID_FILTER = (node, id) -> {
162 return id.equals(getHtmlName(node)) || id.equals(node.getIdEntry());
165 private static final NodeFilter<ViewNode> TEXT_FILTER = (node, id) -> {
166 return id.equals(node.getText());
169 private static final NodeFilter<ViewNode> AUTOFILL_HINT_FILTER = (node, id) -> {
[all …]
DCannedFillResponse.java628 final ViewNode node = nodeResolver.apply(id); in asDataset() local
629 if (node == null) { in asDataset()
632 final AutofillId autofillId = node.getAutofillId(); in asDataset()
/cts/tests/accessibility/common/src/android/accessibility/cts/common/
DAccessibilityDumper.java175 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/hostsidetests/securitybulletin/securityPatch/CVE-2016-3747/
Dpoc.cpp40 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/
Dpoc.cpp52 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/autofillservice/src/android/autofillservice/cts/
DFatActivityTest.java227 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/
DVirtualContainerView.java303 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/
DAccessibilityEndToEndActivity.java105 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/contentcaptureservice/src/android/contentcaptureservice/cts/
DAssertions.java187 final ViewNode node = event.getViewNode(); in assertViewWithUnknownParentAppeared() local
189 assertWithMessage("wrong class on %s (%s)", event, index).that(node.getClassName()) in assertViewWithUnknownParentAppeared()
191 assertWithMessage("wrong autofill id on %s (%s)", event, index).that(node.getAutofillId()) in assertViewWithUnknownParentAppeared()
195 assertWithMessage("wrong text on %s (%s)", event, index).that(node.getText().toString()) in assertViewWithUnknownParentAppeared()
199 return node; in assertViewWithUnknownParentAppeared()
208 final ViewNode node = event.getViewNode(); in assertViewAppeared() local
209 assertThat(node).isNotNull(); in assertViewAppeared()
219 final ViewNode node = assertViewWithUnknownParentAppeared(events, index, expectedView, in assertViewAppeared() local
222 .that(node.getParentAutofillId()).isEqualTo(expectedParentId); in assertViewAppeared()
409 final ViewNode node = event.getViewNode(); in assertVirtualViewAppeared() local
[all …]
DCtsContentCaptureService.java324 final ViewNode node = event.getViewNode(); in onContentCaptureEvent()
325 if (node != null) { in onContentCaptureEvent()
326 Log.v(TAG, "onContentCaptureEvent(): parentId=" + node.getParentAutofillId()); in onContentCaptureEvent()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DEdgeEffectTests.java340 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/
DAppHibernationUtils.kt253 val title = ui.depthFirstSearch { node -> in waitFindObject() method
254 node.viewIdResourceName?.contains("alertTitle") == true in waitFindObject()
256 val okButton = ui.depthFirstSearch { node -> in waitFindObject() method
257 node.textAsString?.equals("OK", ignoreCase = true) ?: false in waitFindObject()
DAutoRevokeTest.kt537 ui.depthFirstSearch { node -> in waitFindNode() method
538 matcher.matches(node) in waitFindNode()
/cts/hostsidetests/appcompat/host/lib/src/android/compat/cts/
DChange.java116 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/
DDepCsvPrinter.java103 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/
DAccessibilityEndToEndTest.java848 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()
DAccessibilityTextActionTest.java551 private void verifyImeActionLabel(AccessibilityNodeInfo node, String label) { in verifyImeActionLabel() argument
552 final List<AccessibilityNodeInfo.AccessibilityAction> actionList = node.getActionList(); in verifyImeActionLabel()
/cts/tests/tests/security/jni/
Dandroid_security_cts_cve_2019_2213_Test.c948 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/permission3/src/android/permission3/cts/
DBaseUsePermissionTest.kt346 val node = if (isAutomotive) { in <lambda>() constant
355 assertTrue(node.isVisibleToUser) in <lambda>()
356 val text = node.text as Spanned in <lambda>()
/cts/tests/location/location_gnss/protos/
Dephemeris.proto70 // Longitude of ascending node of orbit plane at the beginning of week.
/cts/tests/autofillservice/src/android/autofillservice/cts/dropdown/
DVirtualContainerActivityTest.java809 protected void assertLabel(ViewNode node, String expectedValue) { in assertLabel() argument
812 assertTextOnly(node, expectedValue); in assertLabel()
814 assertTextAndValue(node, expectedValue); in assertLabel()

12