Home
last modified time | relevance | path

Searched refs:childId (Results 1 – 8 of 8) sorted by relevance

/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/
DMyAutofillCallback.java68 public void onAutofillEvent(View view, int childId, int event) { in onAutofillEvent() argument
69 mHandler.post(() -> offer(new MyEvent(view, childId, event))); in onAutofillEvent()
125 assertWithMessage("Invalid child on event %s", event).that(event.childId) in assertUiShownEvent()
136 return event.childId; in assertUiShownEventForVirtualChild()
157 assertWithMessage("Invalid child on event %s", event).that(event.childId) in assertUiHiddenEvent()
179 assertWithMessage("Invalid child on event %s", event).that(event.childId) in assertUiUnavailableEvent()
185 public final int childId; field in MyAutofillCallback.MyEvent
192 MyEvent(View view, int childId, int event) { in MyEvent() argument
194 this.childId = childId; in MyEvent()
200 return callbackEventAsString(event) + ": " + view + " (childId: " + childId + ")"; in toString()
DUiBot.java1212 public void assertChild(@NonNull UiObject2 parent, @NonNull String childId,
1214 final UiObject2 child = parent.findObject(By.res(mPackageName, childId));
1217 assertWithMessage("Didn't find child with id '%s'", childId).that(child)
1222 throw new AssertionError("Error on child '" + childId + "'", t);
1225 assertWithMessage("Shouldn't find child with id '%s'", childId).that(child)
1229 dumpScreen("assertChild(" + childId + ") failed: " + e);
DHelper.java265 @NonNull String prefix, int childId) { in dump() argument
268 .append("child #").append(childId).append(':'); in dump()
/cts/tests/tests/packageinstaller/atomicinstall/src/com/android/tests/atomicinstall/
DAtomicInstallTest.java257 int childId = Install.single(TestApp.B1).createSession(); in testInvalidStateScenario_AddChildToSingleSessionShouldFail() local
260 parent.addChildSessionId(childId); in testInvalidStateScenario_AddChildToSingleSessionShouldFail()
273 int childId = Install.multi(TestApp.B1).createSession(); in testInvalidStateScenario_MultiSessionAddedAsChildShouldFail() local
276 parent.addChildSessionId(childId); in testInvalidStateScenario_MultiSessionAddedAsChildShouldFail()
289 int childId = Install.single(TestApp.B1).createSession(); in testInvalidStateScenario_AddChildToCommittedSessionShouldFail() local
294 parent.addChildSessionId(childId); in testInvalidStateScenario_AddChildToCommittedSessionShouldFail()
308 int childId = Install.single(TestApp.B1).createSession(); in testInvalidStateScenario_RemoveChildFromCommittedSessionShouldFail() local
310 parent.addChildSessionId(childId); in testInvalidStateScenario_RemoveChildFromCommittedSessionShouldFail()
314 parent.removeChildSessionId(childId); in testInvalidStateScenario_RemoveChildFromCommittedSessionShouldFail()
328 int childId = Install.single(TestApp.B1).createSession(); in testInvalidStateScenario_RemoveWrongChildShouldDoNothing() local
[all …]
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/
DCustomViewActivityTest.java190 final AutofillId childId = child.getAutofillId(); in testVirtualView_wrongWay() local
191 assertThat(session.newAutofillId(customViewId, 1)).isEqualTo(childId); in testVirtualView_wrongWay()
192 Log.d(TAG, "nofifying child appeared: " + childId); in testVirtualView_wrongWay()
195 Log.d(TAG, "nofifying child disappeared: " + childId); in testVirtualView_wrongWay()
196 session.notifyViewDisappeared(childId); in testVirtualView_wrongWay()
DAssertions.java407 int childId, @Nullable String expectedText) { in assertVirtualViewAppeared() argument
411 final AutofillId expectedId = session.newAutofillId(parentId, childId); in assertVirtualViewAppeared()
428 long childId) { in assertVirtualViewDisappeared() argument
429 assertViewDisappeared(events, index, session.newAutofillId(parentId, childId)); in assertVirtualViewDisappeared()
DChildlessActivityTest.java396 final AutofillId childId = child.getAutofillId(); in testAddAndRemoveImportantChildOnDifferentSession() local
397 Log.v(TAG, "childId: " + childId); in testAddAndRemoveImportantChildOnDifferentSession()
/cts/tests/tests/widget/src/android/widget/cts/
DExpandableListViewTest.java635 public long getCombinedChildId(long groupId, long childId) { in getCombinedChildId() argument