/cts/tests/translation/src/android/translation/cts/ |
D | CustomTextViewActivity.java | 21 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()
|
D | UiTranslationManagerTest.java | 54 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 …]
|
D | VirtualContainerViewActivity.java | 21 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()
|
D | SimpleActivity.java | 48 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/ |
D | NotificationTemplateApi30Test.kt | 42 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/ |
D | NotificationTemplateTestBase.kt | 51 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/ |
D | LayoutTests.java | 258 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/ |
D | NotificationTemplateTest.kt | 56 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/ |
D | DarkTextThemeTest.java | 137 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 …]
|
D | WidgetTransitionTest.java | 144 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/ |
D | WindowInspectorTest.java | 67 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/ |
D | NotificationHostActivity.kt | 29 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/ |
D | EventCapturingClickListener.java | 38 public void assertClicked(View... views) { in assertClicked() argument 41 for (View v : views) { in assertClicked()
|
D | EventCapturingLongClickListener.java | 53 public void assertLongClicked(View... views) { in assertLongClicked() argument 56 for (View v : views) { in assertLongClicked()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | RemoteViewsRecyclingTest.java | 515 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 …]
|
D | AbsListViewTest.java | 594 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/ |
D | FocusFinderTest.java | 426 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/ |
D | VisibilityTest.java | 165 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/ |
D | ResponseNotSetTextView.java | 17 package android.translation.cts.views;
|
D | CustomTextView.java | 17 package android.translation.cts.views;
|
D | VirtualContainerView.java | 17 package android.translation.cts.views;
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | MultiViewTest.java | 93 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/ |
D | FragmentTransitionTest.java | 283 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/ |
D | SimpleAppWidgetHostService.java | 247 public void updateAppWidget(RemoteViews views) { in updateAppWidget() argument 248 super.updateAppWidget(views); in updateAppWidget()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/flashlight/ |
D | CameraFlashlightActivity.java | 247 HashSet<View> views = mStateButtonsMap.get(mTestState); in updateButtonsAndInstructionLocked() local 248 for (View v : views) { in updateButtonsAndInstructionLocked()
|