Home
last modified time | relevance | path

Searched refs:mRemoteViews (Results 1 – 5 of 5) sorted by relevance

/cts/tests/tests/widget/src/android/widget/cts/
DRemoteViewsTest.java139 private RemoteViews mRemoteViews; field in RemoteViewsTest
153 mRemoteViews = new RemoteViews(PACKAGE_NAME, R.layout.remoteviews_good); in setUp()
154 mResult = mRemoteViews.apply(mContext, null); in setUp()
183 assertEquals(PACKAGE_NAME, mRemoteViews.getPackage()); in testGetPackage()
185 mRemoteViews = new RemoteViews(null, R.layout.remoteviews_good); in testGetPackage()
186 assertNull(mRemoteViews.getPackage()); in testGetPackage()
191 assertEquals(R.layout.remoteviews_good, mRemoteViews.getLayoutId()); in testGetLayoutId()
193 mRemoteViews = new RemoteViews(PACKAGE_NAME, R.layout.listview_layout); in testGetLayoutId()
194 assertEquals(R.layout.listview_layout, mRemoteViews.getLayoutId()); in testGetLayoutId()
196 mRemoteViews = new RemoteViews(PACKAGE_NAME, INVALID_ID); in testGetLayoutId()
[all …]
DRemoteViewsSizeMapTest.java71 private RemoteViews mRemoteViews; field in RemoteViewsSizeMapTest
104 mRemoteViews = new RemoteViews(mRemoteViewsSizeMap); in setup()
109 assertEquals(R.layout.remoteviews_small, mRemoteViews.getLayoutId()); in constructor_defaultIsSmallest()
111 mRemoteViews.addFlags(RemoteViews.FLAG_USE_LIGHT_BACKGROUND_LAYOUT); in constructor_defaultIsSmallest()
112 assertEquals(R.layout.remoteviews_good, mRemoteViews.getLayoutId()); in constructor_defaultIsSmallest()
116 mResult = mRemoteViews.apply(mContext, null, null, initialSize); in applyRemoteViewOnUiThread()
173 mActivityRule.runOnUiThread(() -> mRemoteViews.reapply(mContext, mResult)); in reapply_withoutSize_shouldReturnSmallestLayout()
182 () -> mRemoteViews.reapply(mContext, mResult, null /* handler */, in reapply_withSmallSize_shouldReturnSmallLayout()
192 () -> mRemoteViews.reapply(mContext, mResult, null /* handler */, in reapply_witLargeSize_shouldReturnLargestLayout()
202 () -> mRemoteViews.reapply(mContext, mResult, null /* handler */, in reapply_withSize_shouldReturnClosestFittingLayoutWithMargin()
[all …]
DRemoteViewsFixedCollectionAdapterTest.java82 private RemoteViews mRemoteViews; field in RemoteViewsFixedCollectionAdapterTest
95 mRemoteViews = new RemoteViews(PACKAGE_NAME, R.layout.remoteviews_adapters); in setUp()
101 mView = mRemoteViews.apply(mActivity, hostView); in setUp()
239 mRemoteViews.setRemoteAdapter(R.id.remoteView_list, items); in testSetRemoteAdapter_emptyCollection()
241 mActivityRule, mListView, () -> mRemoteViews.reapply(mActivity, mView)); in testSetRemoteAdapter_emptyCollection()
263 mRemoteViews.setRemoteAdapter(R.id.remoteView_list, items); in testSetRemoteAdapter_withItems()
265 mActivityRule, mListView, () -> mRemoteViews.reapply(mActivity, mView)); in testSetRemoteAdapter_withItems()
295 mRemoteViews.setPendingIntentTemplate(R.id.remoteView_list, pendingIntent); in testSetRemoteAdapter_checkedChangeListener()
319 mRemoteViews.setRemoteAdapter(R.id.remoteView_list, items); in testSetRemoteAdapter_checkedChangeListener()
321 () -> mRemoteViews.reapply(mActivity, mView), true); in testSetRemoteAdapter_checkedChangeListener()
[all …]
DRemoteViewsThemeColorsTest.java63 private RemoteViews mRemoteViews; field in RemoteViewsThemeColorsTest
69 mRemoteViews = new RemoteViews(PACKAGE_NAME, R.layout.remoteviews_good); in setUp()
144 View result = mRemoteViews.apply(mContext, null /* parent */, null /* handler */, in setUpViewInternal()
/cts/hostsidetests/devicepolicy/app/WidgetProvider/src/com/android/cts/widgetprovider/
DSimpleAppWidgetHostService.java75 private RemoteViews mRemoteViews; field in SimpleAppWidgetHostService
170 mRemoteViews = new RemoteViews(info.provider.getPackageName(), R.layout.simple_widget); in bindAppWidget()
185 mAppWidgetManager.updateAppWidget(mAppWidgetId, mRemoteViews); in updateWidgetViaWidgetId()