Home
last modified time | relevance | path

Searched refs:views (Results 1 – 25 of 32) sorted by relevance

12

/cts/tests/translation/src/android/translation/cts/
DCustomTextViewActivity.java21 import android.translation.cts.views.CustomTextView;
22 import android.translation.cts.views.ResponseNotSetTextView;
52 final List<AutofillId> views = new ArrayList<>(); in getViewsForTranslation() local
53 views.add(mResponseNotSetText.getAutofillId()); in getViewsForTranslation()
54 views.add(mCustomText.getAutofillId()); in getViewsForTranslation()
55 return views; in getViewsForTranslation()
DUiTranslationManagerTest.java54 import android.translation.cts.views.CustomTextView;
55 import android.translation.cts.views.ResponseNotSetTextView;
56 import android.translation.cts.views.VirtualContainerView;
200 final List<AutofillId> views = result.first; in testTranslationAfterStartActivityOnSameTask() local
214 createViewsTranslationResponse(views, translatedText); in testTranslationAfterStartActivityOnSameTask()
220 startUiTranslation(/* shouldPadContent */ false, views, contentCaptureContext); in testTranslationAfterStartActivityOnSameTask()
251 final List<AutofillId> views = result.first; in testUiTranslation() local
257 createViewsTranslationResponse(views, translatedText); in testUiTranslation()
260 startUiTranslation(/* shouldPadContent */ false, views, contentCaptureContext); in testUiTranslation()
266 assertThat(viewRequest.getAutofillId()).isEqualTo(views.get(0)); in testUiTranslation()
[all …]
DVirtualContainerViewActivity.java21 import android.translation.cts.views.VirtualContainerView;
44 final List<AutofillId> views = new ArrayList<>(); in getViewsForTranslation() local
48 views.add(virtualChild1); in getViewsForTranslation()
49 views.add(virtualChild2); in getViewsForTranslation()
50 return views; in getViewsForTranslation()
DSimpleActivity.java48 final List<AutofillId> views = new ArrayList<>(); in getViewsForTranslation() local
49 views.add(mHelloText.getAutofillId()); in getViewsForTranslation()
50 return views; in getViewsForTranslation()
/cts/tests/tests/notificationlegacy/notificationlegacy30/src/android/app/notification/legacy30/cts/
DNotificationTemplateApi30Test.kt42 val views = Notification.Builder(context, NOTIFICATION_CHANNEL_ID) in <lambda>() constant
47 checkIconView(views) { iconView -> in <lambda>()
56 val views = Notification.Builder(context, NOTIFICATION_CHANNEL_ID) in <lambda>() constant
61 checkIconView(views) { iconView -> in <lambda>()
75 val views = Notification.Builder(context, NOTIFICATION_CHANNEL_ID) in <lambda>() constant
81 checkIconView(views) { iconView -> in <lambda>()
90 val views = Notification.Builder(context, NOTIFICATION_CHANNEL_ID) in <lambda>() constant
96 checkIconView(views) { iconView -> in <lambda>()
198 val views = Notification.Builder(context, NOTIFICATION_CHANNEL_ID) in <lambda>() constant
202 assertThat(views).isNotNull() in <lambda>()
[all …]
/cts/tests/app/shared/src/android/app/cts/
DNotificationTemplateTestBase.kt51 protected fun checkIconView(views: RemoteViews, iconCheck: (ImageView) -> Unit) { in <lambda>()
52 checkViews(views) { in <lambda>()
58 views: RemoteViews, in <lambda>()
63 activityIntent.putExtra(NotificationHostActivity.EXTRA_REMOTE_VIEWS, views) in <lambda>()
146 val views: MutableList<TextView> = ArrayList() in <lambda>() constant
147 collectViews(notificationRoot, TextView::class, views) { it.text?.toString() == text } in <lambda>()
148 when (views.size) { in <lambda>()
150 1 -> return views[0] in <lambda>()
158 val views: MutableList<TextView> = ArrayList() in <lambda>() constant
159 collectViews(notificationRoot, TextView::class, views) { in <lambda>()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/animations/
DLayoutTests.java258 final View[] views = new View[2]; in testSysuiFlagLayoutFullscreen() local
262 views[0] = new View(activity); in testSysuiFlagLayoutFullscreen()
265 activity.addWindow(views[0], attrs); in testSysuiFlagLayoutFullscreen()
267 views[1] = new View(activity); in testSysuiFlagLayoutFullscreen()
268 views[1].setSystemUiVisibility(SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN); in testSysuiFlagLayoutFullscreen()
269 activity.addWindow(views[1], new LayoutParams()); in testSysuiFlagLayoutFullscreen()
273 assertLayoutEquals(views[0], views[1]); in testSysuiFlagLayoutFullscreen()
280 final View[] views = new View[2]; in testSysuiFlagLayoutHideNavigation() local
284 views[0] = new View(activity); in testSysuiFlagLayoutHideNavigation()
287 activity.addWindow(views[0], attrs); in testSysuiFlagLayoutHideNavigation()
[all …]
/cts/tests/tests/notification/src/android/app/notification/current/cts/
DNotificationTemplateTest.kt56 val views = Notification.Builder(context, NOTIFICATION_CHANNEL_ID) in <lambda>() constant
61 checkIconView(views) { iconView -> in <lambda>()
72 val views = Notification.Builder(context, NOTIFICATION_CHANNEL_ID) in <lambda>() constant
77 checkIconView(views) { iconView -> in <lambda>()
89 val views = Notification.Builder(context, NOTIFICATION_CHANNEL_ID) in <lambda>() constant
94 checkIconView(views) { iconView -> in <lambda>()
105 val views = Notification.Builder(context, NOTIFICATION_CHANNEL_ID) in <lambda>() constant
110 checkIconView(views) { iconView -> in <lambda>()
119 val views = Notification.Builder(context, NOTIFICATION_CHANNEL_ID) in <lambda>() constant
124 checkIconView(views) { iconView -> in <lambda>()
[all …]
/cts/tests/tests/appwidget/src/android/appwidget/cts/
DDarkTextThemeTest.java137 RemoteViews views = getViewsForResponse(); in testWidget_light() local
138 getAppWidgetManager().updateAppWidget(new int[] {mAppWidgetId}, views); in testWidget_light()
158 RemoteViews views = getViewsForResponse(); in testWidget_dark() local
159 getAppWidgetManager().updateAppWidget(new int[] {mAppWidgetId}, views); in testWidget_dark()
217 RemoteViews views = new RemoteViews(mActivity.getPackageName(), in setupAndAwaitCollectionWidget() local
222 views.setRemoteAdapter(R.id.remoteViews_list, listIntent); in setupAndAwaitCollectionWidget()
223 views.setViewVisibility(R.id.remoteViews_stack, View.GONE); in setupAndAwaitCollectionWidget()
224 views.setViewVisibility(R.id.remoteViews_list, View.VISIBLE); in setupAndAwaitCollectionWidget()
227 getAppWidgetManager().updateAppWidget(new int[] {mAppWidgetId}, views); in setupAndAwaitCollectionWidget()
258 RemoteViews views = new RemoteViews(mActivity.getPackageName(), in getViewsForResponse() local
[all …]
DWidgetTransitionTest.java144 RemoteViews views = getViewsForResponse(RemoteViews.RemoteResponse.fromPendingIntent( in testWidget_sendBroadcast() local
148 getAppWidgetManager().updateAppWidget(new int[] {mAppWidgetId}, views); in testWidget_sendBroadcast()
166 RemoteViews views = getViewsForResponse(RemoteViews.RemoteResponse.fromPendingIntent( in testWidget_startActivity() local
170 getAppWidgetManager().updateAppWidget(new int[] {mAppWidgetId}, views); in testWidget_startActivity()
224 RemoteViews views = new RemoteViews(mActivity.getPackageName(), in testCollection_sendBroadcast() local
229 views.setRemoteAdapter(R.id.remoteViews_list, listIntent); in testCollection_sendBroadcast()
230 views.setViewVisibility(R.id.remoteViews_stack, View.GONE); in testCollection_sendBroadcast()
231 views.setViewVisibility(R.id.remoteViews_list, View.VISIBLE); in testCollection_sendBroadcast()
235 views.setPendingIntentTemplate(R.id.remoteViews_list, pendingIntent); in testCollection_sendBroadcast()
238 getAppWidgetManager().updateAppWidget(new int[] {mAppWidgetId}, views); in testCollection_sendBroadcast()
[all …]
/cts/tests/tests/view/src/android/view/inspector/cts/
DWindowInspectorTest.java67 List<View> views = WindowInspector.getGlobalWindowViews(); in testGetGlobalWindowViews() local
68 assertEquals("Only the activity window view is present", 1, views.size()); in testGetGlobalWindowViews()
70 View view = views.get(0); in testGetGlobalWindowViews()
/cts/tests/app/shared/src/android/app/stubs/shared/
DNotificationHostActivity.kt29 val views = (intent.getParcelableExtra(EXTRA_REMOTE_VIEWS) as RemoteViews?)!! in onCreate() constant
32 val child = views.apply(this, it) in onCreate()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
DEventCapturingClickListener.java38 public void assertClicked(View... views) { in assertClicked() argument
41 for (View v : views) { in assertClicked()
DEventCapturingLongClickListener.java53 public void assertLongClicked(View... views) { in assertLongClicked() argument
56 for (View v : views) { in assertLongClicked()
/cts/tests/tests/widget/src/android/widget/cts/
DRemoteViewsRecyclingTest.java515 private void addTextsWithStableIds(RemoteViews views, int layoutId, boolean insertInMiddle, in addTextsWithStableIds() argument
517 views.addStableView(layoutId, createRemoteViews(R.layout.remoteviews_textview), in addTextsWithStableIds()
520 views.addStableView(layoutId, in addTextsWithStableIds()
524 views.addStableView(layoutId, createRemoteViews(R.layout.remoteviews_textview), in addTextsWithStableIds()
527 views.addStableView(layoutId, in addTextsWithStableIds()
530 views.addStableView(layoutId, in addTextsWithStableIds()
536 private void addTextsWithoutStableIds(RemoteViews views, int layoutId, boolean insertInMiddle, in addTextsWithoutStableIds() argument
538 views.addView(layoutId, createRemoteViews(R.layout.remoteviews_textview)); in addTextsWithoutStableIds()
540 views.addView(layoutId, createRemoteViews(R.layout.remoteviews_textview)); in addTextsWithoutStableIds()
542 views.addView(layoutId, createRemoteViews(R.layout.remoteviews_textview)); in addTextsWithoutStableIds()
[all …]
DAbsListViewTest.java594 List<View> views = new ArrayList<>(); in testSetRecyclerListener() local
595 mActivityRule.runOnUiThread(() -> mListView.reclaimViews(views)); in testSetRecyclerListener()
597 assertTrue(views.size() > 0); in testSetRecyclerListener()
602 for (View reclaimed : views) { in testSetRecyclerListener()
712 ArrayList<View> views = new ArrayList<>(); in testAddTouchables() local
713 assertEquals(0, views.size()); in testAddTouchables()
717 mListView.addTouchables(views); in testAddTouchables()
718 assertEquals(mListView.getChildCount(), views.size()); in testAddTouchables()
/cts/tests/tests/view/src/android/view/cts/
DFocusFinderTest.java426 View[] views = new View[]{button2, button1}; in testBasicFocusOrder() local
428 FocusFinder.sort(views, 0, 0, layout, false); in testBasicFocusOrder()
430 FocusFinder.sort(views, 0, 1, layout, false); in testBasicFocusOrder()
431 assertEquals(button2, views[0]); in testBasicFocusOrder()
433 FocusFinder.sort(views, 0, 2, layout, false); in testBasicFocusOrder()
434 assertEquals(button2, views[0]); in testBasicFocusOrder()
435 assertEquals(button1, views[1]); in testBasicFocusOrder()
438 FocusFinder.sort(views, 0, 2, layout, false); in testBasicFocusOrder()
439 assertEquals(button1, views[0]); in testBasicFocusOrder()
440 assertEquals(button2, views[1]); in testBasicFocusOrder()
/cts/tests/tests/transition/src/android/transition/cts/
DVisibilityTest.java165 final View[] views = new View[2]; in testApplyingTwoVisibility() local
172 views[0] = view; in testApplyingTwoVisibility()
180 views[1] = view; in testApplyingTwoVisibility()
202 assertEquals(text, views[0]); in testApplyingTwoVisibility()
203 assertEquals(text, views[1]); in testApplyingTwoVisibility()
/cts/tests/translation/src/android/translation/cts/views/
DResponseNotSetTextView.java17 package android.translation.cts.views;
DCustomTextView.java17 package android.translation.cts.views;
DVirtualContainerView.java17 package android.translation.cts.views;
/cts/tests/camera/src/android/hardware/camera2/cts/
DMultiViewTest.java93 List<TextureView> views = Arrays.asList(mTextureView[0]); in testTextureViewPreview() local
94 textureViewPreview(cameraId, views, /*ImageReader*/null); in testTextureViewPreview()
135 List<TextureView> views = Arrays.asList(mTextureView[0]); in testTextureViewPreviewWithImageReader() local
136 textureViewPreview(cameraId, views, yuvReader); in testTextureViewPreviewWithImageReader()
174 List<TextureView> views = Arrays.asList(mTextureView[0], mTextureView[1]); in testDualTextureViewPreview() local
175 textureViewPreview(cameraId, views, /*ImageReader*/null); in testDualTextureViewPreview()
216 List<TextureView> views = Arrays.asList(mTextureView[0], mTextureView[1]); in testDualTextureViewAndImageReaderPreview() local
217 textureViewPreview(cameraId, views, yuvReader); in testDualTextureViewAndImageReaderPreview()
256 List<TextureView> views = Arrays.asList(mTextureView[i]); in testDualCameraPreview() local
258 startTextureViewPreview(cameraIdsUnderTest[i], views, /*ImageReader*/null); in testDualCameraPreview()
[all …]
/cts/tests/fragment/src/android/fragment/cts/
DFragmentTransitionTest.java283 ArgumentCaptor<List> views = ArgumentCaptor.forClass(List.class); in callStartEndWithSharedElements() local
285 verify(enterCallback).onSharedElementStart(names.capture(), views.capture(), in callStartEndWithSharedElements()
288 assertEquals(1, views.getValue().size()); in callStartEndWithSharedElements()
291 assertEquals(startBlue, views.getValue().get(0)); in callStartEndWithSharedElements()
295 verify(enterCallback).onSharedElementEnd(names.capture(), views.capture(), in callStartEndWithSharedElements()
298 assertEquals(1, views.getValue().size()); in callStartEndWithSharedElements()
301 assertEquals(endBlue, views.getValue().get(0)); in callStartEndWithSharedElements()
307 verify(enterCallback).onSharedElementStart(names.capture(), views.capture(), in callStartEndWithSharedElements()
310 assertEquals(1, views.getValue().size()); in callStartEndWithSharedElements()
313 assertEquals(endBlue, views.getValue().get(0)); in callStartEndWithSharedElements()
[all …]
/cts/hostsidetests/devicepolicy/app/WidgetProvider/src/com/android/cts/widgetprovider/
DSimpleAppWidgetHostService.java247 public void updateAppWidget(RemoteViews views) { in updateAppWidget() argument
248 super.updateAppWidget(views); in updateAppWidget()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/flashlight/
DCameraFlashlightActivity.java247 HashSet<View> views = mStateButtonsMap.get(mTestState); in updateButtonsAndInstructionLocked() local
248 for (View v : views) { in updateButtonsAndInstructionLocked()

12