Home
last modified time | relevance | path

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

/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
147 getAppWidgetManager().updateAppWidget(new int[] {mAppWidgetId}, views); in testWidget_sendBroadcast()
165 RemoteViews views = getViewsForResponse(RemoteViews.RemoteResponse.fromPendingIntent( in testWidget_startActivity() local
169 getAppWidgetManager().updateAppWidget(new int[] {mAppWidgetId}, views); in testWidget_startActivity()
223 RemoteViews views = new RemoteViews(mActivity.getPackageName(), in testCollection_sendBroadcast() local
228 views.setRemoteAdapter(R.id.remoteViews_list, listIntent); in testCollection_sendBroadcast()
229 views.setViewVisibility(R.id.remoteViews_stack, View.GONE); in testCollection_sendBroadcast()
230 views.setViewVisibility(R.id.remoteViews_list, View.VISIBLE); in testCollection_sendBroadcast()
233 views.setPendingIntentTemplate(R.id.remoteViews_list, pendingIntent); in testCollection_sendBroadcast()
236 getAppWidgetManager().updateAppWidget(new int[] {mAppWidgetId}, views); in testCollection_sendBroadcast()
[all …]
/cts/tests/tests/view/src/android/view/inspector/cts/
DWindowInspectorTest.java56 List<View> views = WindowInspector.getGlobalWindowViews(); in testGetGlobalWindowViews() local
57 assertEquals("Only the activity window view is present", 1, views.size()); in testGetGlobalWindowViews()
59 View view = views.get(0); in testGetGlobalWindowViews()
/cts/tests/tests/view/src/android/view/cts/
DFocusFinderTest.java415 View[] views = new View[]{button2, button1}; in testBasicFocusOrder() local
417 FocusFinder.sort(views, 0, 0, layout, false); in testBasicFocusOrder()
419 FocusFinder.sort(views, 0, 1, layout, false); in testBasicFocusOrder()
420 assertEquals(button2, views[0]); in testBasicFocusOrder()
422 FocusFinder.sort(views, 0, 2, layout, false); in testBasicFocusOrder()
423 assertEquals(button2, views[0]); in testBasicFocusOrder()
424 assertEquals(button1, views[1]); in testBasicFocusOrder()
427 FocusFinder.sort(views, 0, 2, layout, false); in testBasicFocusOrder()
428 assertEquals(button1, views[0]); in testBasicFocusOrder()
429 assertEquals(button2, views[1]); in testBasicFocusOrder()
DViewTest.java1352 ArrayList<View> views = new ArrayList<>(); in focusableInTouchModeTest() local
1357 view.addFocusables(views, View.FOCUS_FORWARD); in focusableInTouchModeTest()
1359 assertEquals(Collections.emptyList(), views); in focusableInTouchModeTest() local
1361 assertEquals(Collections.singletonList(view), views); in focusableInTouchModeTest() local
1364 views.clear(); in focusableInTouchModeTest()
1365 view.addFocusables(views, View.FOCUS_FORWARD, View.FOCUSABLES_ALL); in focusableInTouchModeTest()
1366 assertEquals(Collections.singletonList(view), views); in focusableInTouchModeTest() local
1368 views.clear(); in focusableInTouchModeTest()
1369 view.addFocusables(views, View.FOCUS_FORWARD, View.FOCUSABLES_TOUCH_MODE); in focusableInTouchModeTest()
1370 assertEquals(Collections.emptyList(), views); in focusableInTouchModeTest() local
[all …]
DViewGroupTest.java1979 ArrayList<View> views = new ArrayList<>(); in testTouchscreenBlocksFocus() local
1980 h.top.addFocusables(views, View.FOCUS_DOWN); in testTouchscreenBlocksFocus()
1981 for (View v : views) { in testTouchscreenBlocksFocus()
1984 views.clear(); in testTouchscreenBlocksFocus()
1987 h.top.addKeyboardNavigationClusters(views, View.FOCUS_DOWN); in testTouchscreenBlocksFocus()
1988 assertTrue(views.contains(h.cluster1)); in testTouchscreenBlocksFocus()
1989 views.clear(); in testTouchscreenBlocksFocus()
1993 h.top.addFocusables(views, View.FOCUS_DOWN); in testTouchscreenBlocksFocus()
1994 assertTrue(views.contains(h.c1view1)); in testTouchscreenBlocksFocus()
1995 views.clear(); in testTouchscreenBlocksFocus()
[all …]
/cts/tests/camera/src/android/hardware/camera2/cts/
DMultiViewTest.java79 List<TextureView> views = Arrays.asList(mTextureView[0]); in testTextureViewPreview() local
80 textureViewPreview(cameraId, views, /*ImageReader*/null); in testTextureViewPreview()
121 List<TextureView> views = Arrays.asList(mTextureView[0]); in testTextureViewPreviewWithImageReader() local
122 textureViewPreview(cameraId, views, yuvReader); in testTextureViewPreviewWithImageReader()
160 List<TextureView> views = Arrays.asList(mTextureView[0], mTextureView[1]); in testDualTextureViewPreview() local
161 textureViewPreview(cameraId, views, /*ImageReader*/null); in testDualTextureViewPreview()
202 List<TextureView> views = Arrays.asList(mTextureView[0], mTextureView[1]); in testDualTextureViewAndImageReaderPreview() local
203 textureViewPreview(cameraId, views, yuvReader); in testDualTextureViewAndImageReaderPreview()
238 List<TextureView> views = Arrays.asList(mTextureView[i]); in testDualCameraPreview() local
240 startTextureViewPreview(mCameraIds[i], views, /*ImageReader*/null); in testDualCameraPreview()
[all …]
/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/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()
/cts/tests/tests/widget/src/android/widget/cts/
DAbsListViewTest.java516 List<View> views = new ArrayList<>(); in testSetRecyclerListener() local
517 mListView.reclaimViews(views); in testSetRecyclerListener()
519 assertTrue(views.size() > 0); in testSetRecyclerListener()
524 for (View reclaimed : views) { in testSetRecyclerListener()
634 ArrayList<View> views = new ArrayList<>(); in testAddTouchables() local
635 assertEquals(0, views.size()); in testAddTouchables()
639 mListView.addTouchables(views); in testAddTouchables()
640 assertEquals(mListView.getChildCount(), views.size()); in testAddTouchables()
DListViewTest.java1060 ArrayList<TemporarilyDetachableMockView> views = new ArrayList<>(); field in ListViewTest.TemporarilyDetachableMockViewAdapter
1066 views.add(new TemporarilyDetachableMockView(context)); in TemporarilyDetachableMockViewAdapter()
1067 views.get(i).setFocusable(true); in TemporarilyDetachableMockViewAdapter()
1073 return views.size(); in getCount()
1083 View result = views.get(position); in getView()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityWindowQueryTest.java315 final View views[]; in testSingleAccessibilityFocusAcrossWindows() local
316 views = addTwoAppPanelWindows(); in testSingleAccessibilityFocusAcrossWindows()
338 for (View view : views) { in testSingleAccessibilityFocusAcrossWindows()
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/
DChildlessActivityTest.java1214 private void waitAndRemoveViews(@NonNull ChildlessActivity activity, @NonNull View... views) { in waitAndRemoveViews() argument
1215 Log.d(TAG, "sleeping before removing " + Arrays.toString(views)); in waitAndRemoveViews()
1218 for (View view : views) { in waitAndRemoveViews()