/cts/tests/tests/widget/src/android/widget/cts/ |
D | RemoteViewsTest.java | 174 private RemoteViews mRemoteViews; field in RemoteViewsTest 188 mRemoteViews = new RemoteViews(PACKAGE_NAME, R.layout.remoteviews_good); in setUp() 189 mResult = mRemoteViews.apply(mContext, null); in setUp() 218 assertEquals(PACKAGE_NAME, mRemoteViews.getPackage()); in testGetPackage() 220 mRemoteViews = new RemoteViews(null, R.layout.remoteviews_good); in testGetPackage() 221 assertNull(mRemoteViews.getPackage()); in testGetPackage() 226 assertEquals(R.layout.remoteviews_good, mRemoteViews.getLayoutId()); in testGetLayoutId() 228 mRemoteViews = new RemoteViews(PACKAGE_NAME, R.layout.listview_layout); in testGetLayoutId() 229 assertEquals(R.layout.listview_layout, mRemoteViews.getLayoutId()); in testGetLayoutId() 231 mRemoteViews = new RemoteViews(PACKAGE_NAME, INVALID_ID); in testGetLayoutId() [all …]
|
D | RemoteViewsSizeMapTest.java | 80 private RemoteViews mRemoteViews; field in RemoteViewsSizeMapTest 113 mRemoteViews = new RemoteViews(mRemoteViewsSizeMap); in setup() 118 assertEquals(R.layout.remoteviews_small, mRemoteViews.getLayoutId()); in constructor_defaultIsSmallest() 120 mRemoteViews.addFlags(RemoteViews.FLAG_USE_LIGHT_BACKGROUND_LAYOUT); in constructor_defaultIsSmallest() 121 assertEquals(R.layout.remoteviews_good, mRemoteViews.getLayoutId()); in constructor_defaultIsSmallest() 125 mResult = mRemoteViews.apply(mContext, null, null, initialSize); in applyRemoteViewOnUiThread() 182 mActivityRule.runOnUiThread(() -> mRemoteViews.reapply(mContext, mResult)); in reapply_withoutSize_shouldReturnSmallestLayout() 191 () -> mRemoteViews.reapply(mContext, mResult, null /* handler */, in reapply_withSmallSize_shouldReturnSmallLayout() 201 () -> mRemoteViews.reapply(mContext, mResult, null /* handler */, in reapply_witLargeSize_shouldReturnLargestLayout() 211 () -> mRemoteViews.reapply(mContext, mResult, null /* handler */, in reapply_withSize_shouldReturnClosestFittingLayoutWithMargin() [all …]
|
D | RemoteViewsFixedCollectionAdapterTest.java | 101 private RemoteViews mRemoteViews; field in RemoteViewsFixedCollectionAdapterTest 114 mRemoteViews = new RemoteViews(PACKAGE_NAME, R.layout.remoteviews_adapters); in setUp() 120 mView = mRemoteViews.apply(mActivity, hostView); in setUp() 448 mRemoteViews.setRemoteAdapter(R.id.remoteView_list, items); in testSetRemoteAdapter_emptyCollection() 450 mActivityRule, mListView, () -> mRemoteViews.reapply(mActivity, mView)); in testSetRemoteAdapter_emptyCollection() 472 mRemoteViews.setRemoteAdapter(R.id.remoteView_list, items); in testSetRemoteAdapter_withItems() 474 mActivityRule, mListView, () -> mRemoteViews.reapply(mActivity, mView)); in testSetRemoteAdapter_withItems() 506 mRemoteViews.setPendingIntentTemplate(R.id.remoteView_list, pendingIntent); in testSetRemoteAdapter_checkedChangeListener() 530 mRemoteViews.setRemoteAdapter(R.id.remoteView_list, parcelAndUnparcel(items)); in testSetRemoteAdapter_checkedChangeListener() 532 () -> mRemoteViews.reapply(mActivity, mView), true); in testSetRemoteAdapter_checkedChangeListener() [all …]
|
D | RemoteViewsThemeColorsTest.java | 72 private RemoteViews mRemoteViews; field in RemoteViewsThemeColorsTest 78 mRemoteViews = new RemoteViews(PACKAGE_NAME, R.layout.remoteviews_good); in setUp() 153 View result = mRemoteViews.apply(mContext, null /* parent */, null /* handler */, in setUpViewInternal()
|
/cts/hostsidetests/devicepolicy/app/WidgetProvider/src/com/android/cts/widgetprovider/ |
D | SimpleAppWidgetHostService.java | 75 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()
|