Home
last modified time | relevance | path

Searched refs:mAppWidgetHostView (Results 1 – 4 of 4) sorted by relevance

/cts/tests/tests/appwidget/src/android/appwidget/cts/
DDarkTextThemeTest.java79 private MyHostView mAppWidgetHostView; field in DarkTextThemeTest
126 mAppWidgetHostView = (MyHostView) mAppWidgetHost in bindNewWidget()
128 mActivity.setContentView(mAppWidgetHostView); in bindNewWidget()
142 mAppWidgetHostView.mCommands.put( in testWidget_light()
147 verifyColor(mAppWidgetHostView, Color.WHITE); in testWidget_light()
155 mActivity.runOnUiThread(() -> mAppWidgetHostView.setOnLightBackground(true)); in testWidget_dark()
163 mAppWidgetHostView.mCommands.put( in testWidget_dark()
168 verifyColor(mAppWidgetHostView, Color.BLACK); in testWidget_dark()
180 ListView listView = mAppWidgetHostView.findViewById(R.id.remoteViews_list); in testCollection_light()
191 mActivity.runOnUiThread(() -> mAppWidgetHostView.setOnLightBackground(true)); in testCollection_dark()
[all …]
DWidgetTransitionTest.java86 private MyHostView mAppWidgetHostView; field in WidgetTransitionTest
133 mAppWidgetHostView = (MyHostView) mAppWidgetHost in bindNewWidget()
135 mActivity.setContentView(mAppWidgetHostView); in bindNewWidget()
151 mAppWidgetHostView.mCommands.put( in testWidget_sendBroadcast()
156 verifyClickBroadcast(mAppWidgetHostView); in testWidget_sendBroadcast()
173 mAppWidgetHostView.mCommands.put( in testWidget_startActivity()
193 () -> mAppWidgetHostView.findViewById(R.id.hello).performClick()); in testWidget_startActivity()
238 mActivityRule.runOnUiThread(() -> mAppWidgetHostView.getViewTreeObserver() in testCollection_sendBroadcast()
242 mAppWidgetHostView.post(this::verifyChildrenAdded); in testCollection_sendBroadcast()
246 ListView listView = mAppWidgetHostView.findViewById(R.id.remoteViews_list); in testCollection_sendBroadcast()
[all …]
DCollectionAppWidgetTest.java97 private AppWidgetHostView mAppWidgetHostView; field in CollectionAppWidgetTest
179 () -> mAppWidgetHostView = mAppWidgetHost.createView( in setup()
193 activity.setContentView(mAppWidgetHostView); in setup()
219 assertNotNull(mAppWidgetHostView); in testInitialState()
220 mStackView = (StackView) mAppWidgetHostView.findViewById(R.id.remoteViews_stack); in testInitialState()
258 mStackView = (StackView) mAppWidgetHostView.findViewById(R.id.remoteViews_stack); in testSetDisplayedChild()
296 mStackView = (StackView) mAppWidgetHostView.findViewById(R.id.remoteViews_stack); in testShowNextPrevious()
316 mStackView = (StackView) mAppWidgetHostView.findViewById(R.id.remoteViews_stack); in verifyItemClickIntents()
372 mListView = (ListView) mAppWidgetHostView.findViewById(R.id.remoteViews_list); in testSetScrollPosition()
/cts/hostsidetests/devicepolicy/app/WidgetProvider/src/com/android/cts/widgetprovider/
DSimpleAppWidgetHostService.java70 private SimpleAppWidgetHostView mAppWidgetHostView; field in SimpleAppWidgetHostService
168 mAppWidgetHostView = (SimpleAppWidgetHostView) mAppWidgetHost.createView(this, in bindAppWidget()