Home
last modified time | relevance | path

Searched refs:RemoteViews (Results 1 – 25 of 107) sorted by relevance

12345

/frameworks/base/core/tests/coretests/src/android/widget/
DRemoteViewsTest.java80 RemoteViews original = new RemoteViews(mPackage, R.layout.remote_views_test); in clone_doesNotCopyBitmap()
84 RemoteViews clone = original.clone(); in clone_doesNotCopyBitmap()
93 RemoteViews original = new RemoteViews(mPackage, R.layout.remote_views_test); in clone_originalCanStillBeApplied()
95 RemoteViews clone = original.clone(); in clone_originalCanStillBeApplied()
102 RemoteViews original = new RemoteViews(mPackage, R.layout.remote_views_test); in clone_clones()
104 RemoteViews clone = original.clone(); in clone_clones()
114 RemoteViews original = new RemoteViews(mPackage, R.layout.remote_views_test); in clone_child_fails()
115 RemoteViews child = new RemoteViews(mPackage, R.layout.remote_views_test); in clone_child_fails()
120 RemoteViews clone = child.clone(); in clone_child_fails()
125 RemoteViews original = new RemoteViews(mPackage, R.layout.remote_views_test); in clone_repeatedly()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DNotifRemoteViewCacheImpl.java21 import android.widget.RemoteViews;
38 private final Map<NotificationEntry, SparseArray<RemoteViews>> mNotifCachedContentViews =
52 public @Nullable RemoteViews getCachedView(NotificationEntry entry, @InflationFlag int flag) { in getCachedView()
53 SparseArray<RemoteViews> contentViews = mNotifCachedContentViews.get(entry); in getCachedView()
64 RemoteViews remoteView) { in putCachedView()
70 SparseArray<RemoteViews> contentViews = mNotifCachedContentViews.get(entry); in putCachedView()
79 SparseArray<RemoteViews> contentViews = mNotifCachedContentViews.get(entry); in removeCachedView()
88 SparseArray<RemoteViews> contentViews = mNotifCachedContentViews.get(entry); in clearCache()
DNotificationContentInflater.java35 import android.widget.RemoteViews;
321 RemoteViews.OnClickHandler remoteViewClickHandler, in apply()
339 public RemoteViews getRemoteView() { in apply()
364 public RemoteViews getRemoteView() { in apply()
390 public RemoteViews getRemoteView() { in apply()
415 public RemoteViews getRemoteView() { in apply()
446 RemoteViews.OnClickHandler remoteViewClickHandler, in applyRemoteView()
453 RemoteViews newContentView = applyCallback.getRemoteView(); in applyRemoteView()
478 RemoteViews.OnViewAppliedListener listener = new RemoteViews.OnViewAppliedListener() { in applyRemoteView()
646 private static RemoteViews createExpandedView(Notification.Builder builder, in createExpandedView()
[all …]
DNotifRemoteViewCache.java19 import android.widget.RemoteViews;
47 @Nullable RemoteViews getCachedView(NotificationEntry entry, @InflationFlag int flag); in getCachedView()
59 RemoteViews remoteView); in putCachedView()
/frameworks/base/core/java/android/widget/
DRemoteViewsListAdapter.java31 private ArrayList<RemoteViews> mRemoteViewsList;
35 public RemoteViewsListAdapter(Context context, ArrayList<RemoteViews> remoteViews, in RemoteViewsListAdapter()
43 public void setViewsList(ArrayList<RemoteViews> remoteViews) { in setViewsList()
53 for (RemoteViews rv: mRemoteViewsList) { in init()
87 RemoteViews rv = mRemoteViewsList.get(position); in getView()
88 rv.addFlags(RemoteViews.FLAG_WIDGET_IS_COLLECTION_CHILD); in getView()
DRemoteViewsService.java94 public RemoteViews getViewAt(int position); in getViewAt()
103 public RemoteViews getLoadingView(); in getLoadingView()
161 public synchronized RemoteViews getViewAt(int position) { in getViewAt()
162 RemoteViews rv = null; in getViewAt()
166 rv.addFlags(RemoteViews.FLAG_WIDGET_IS_COLLECTION_CHILD); in getViewAt()
174 public synchronized RemoteViews getLoadingView() { in getLoadingView()
175 RemoteViews rv = null; in getLoadingView()
DRemoteViewsAdapter.java19 import static android.widget.RemoteViews.EXTRA_REMOTEADAPTER_APPWIDGET_ID;
20 import static android.widget.RemoteViews.EXTRA_REMOTEADAPTER_ON_LIGHT_BACKGROUND;
48 import android.widget.RemoteViews.OnClickHandler;
387 public void onRemoteViewsLoaded(RemoteViews view, OnClickHandler handler, in onRemoteViewsLoaded()
448 public void notifyOnRemoteViewsLoaded(int position, RemoteViews view) { in notifyOnRemoteViewsLoaded()
545 public RemoteViewsIndexMetaData(RemoteViews v, long itemId) { in RemoteViewsIndexMetaData()
549 public void set(RemoteViews v, long id) { in set()
588 private final SparseArray<RemoteViews> mIndexRemoteViews = new SparseArray<>();
625 public void insert(int position, RemoteViews v, long itemId, int[] visibleWindow) { in insert()
666 public RemoteViews getRemoteViewsAt(int position) { in getRemoteViewsAt()
[all …]
DRemoteViews.java125 public class RemoteViews implements Parcelable, Filter { class
210 (clazz) -> clazz.isAnnotationPresent(RemoteViews.RemoteView.class);
262 private RemoteViews mLandscape = null;
264 private RemoteViews mPortrait = null;
511 public void mergeRemoteViews(RemoteViews newRv) { in mergeRemoteViews()
516 RemoteViews copy = new RemoteViews(newRv); in mergeRemoteViews()
707 public SetRemoteViewsAdapterList(int id, ArrayList<RemoteViews> list, int viewTypeCount) { in SetRemoteViewsAdapterList()
716 list = parcel.createTypedArrayList(RemoteViews.CREATOR); in SetRemoteViewsAdapterList()
768 ArrayList<RemoteViews> list;
1553 private void configureRemoteViewsAsChild(RemoteViews rv) { in configureRemoteViewsAsChild()
[all …]
/frameworks/base/core/java/android/service/autofill/
DDataset.java30 import android.widget.RemoteViews;
107 private final ArrayList<RemoteViews> mFieldPresentations;
110 private final RemoteViews mPresentation;
138 public RemoteViews getFieldPresentation(int index) { in getFieldPresentation()
139 final RemoteViews customPresentation = mFieldPresentations.get(index); in getFieldPresentation()
222 private ArrayList<RemoteViews> mFieldPresentations;
225 private RemoteViews mPresentation;
236 public Builder(@NonNull RemoteViews presentation) { in Builder()
425 @NonNull RemoteViews presentation) { in setValue()
498 @Nullable Pattern filter, @NonNull RemoteViews presentation) { in setValue()
[all …]
DFillResponse.java34 import android.widget.RemoteViews;
77 private final @Nullable RemoteViews mPresentation;
79 private final @Nullable RemoteViews mHeader;
80 private final @Nullable RemoteViews mFooter;
128 public @Nullable RemoteViews getPresentation() { in getPresentation()
138 public @Nullable RemoteViews getHeader() { in getHeader()
143 public @Nullable RemoteViews getFooter() { in getFooter()
220 private RemoteViews mPresentation;
222 private RemoteViews mHeader;
223 private RemoteViews mFooter;
[all …]
DBatchUpdates.java26 import android.widget.RemoteViews;
50 private final RemoteViews mUpdates;
65 public RemoteViews getUpdates() { in getUpdates()
73 private RemoteViews mUpdates;
95 public Builder updateTemplate(@NonNull RemoteViews updates) { in updateTemplate()
207 final RemoteViews updates = parcel.readParcelable(null);
DInternalTransformation.java25 import android.widget.RemoteViews;
48 abstract void apply(@NonNull ValueFinder finder, @NonNull RemoteViews template, in apply()
60 public static boolean batchApply(@NonNull ValueFinder finder, @NonNull RemoteViews template, in batchApply()
DCustomDescription.java30 import android.widget.RemoteViews;
92 private final RemoteViews mPresentation;
106 public RemoteViews getPresentation() { in getPresentation()
133 private final RemoteViews mPresentation;
159 public Builder(@NonNull RemoteViews parentPresentation) { in Builder()
439 final RemoteViews parentPresentation = parcel.readParcelable(null);
/frameworks/base/core/java/com/android/internal/widget/
DIRemoteViewsFactory.aidl20 import android.widget.RemoteViews;
31 RemoteViews getViewAt(int position); in getViewAt()
33 RemoteViews getLoadingView(); in getLoadingView()
/frameworks/base/core/java/com/android/internal/appwidget/
DIAppWidgetService.aidl28 import android.widget.RemoteViews;
46 RemoteViews getAppWidgetViews(String callingPackage, int appWidgetId); in getAppWidgetViews()
54 void updateAppWidgetIds(String callingPackage, in int[] appWidgetIds, in RemoteViews views); in updateAppWidgetIds()
58 in RemoteViews views); in partiallyUpdateAppWidgetIds()
59 void updateAppWidgetProvider(in ComponentName provider, in RemoteViews views); in updateAppWidgetProvider()
DIAppWidgetHost.aidl22 import android.widget.RemoteViews;
26 void updateAppWidget(int appWidgetId, in RemoteViews views); in updateAppWidget()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationTest.java43 import android.widget.RemoteViews;
240 .setContent(mock(RemoteViews.class)); in testRemoteViews_nullChange()
246 .setContent(mock(RemoteViews.class)); in testRemoteViews_nullChange()
250 .setCustomBigContentView(mock(RemoteViews.class)); in testRemoteViews_nullChange()
256 .setCustomBigContentView(mock(RemoteViews.class)); in testRemoteViews_nullChange()
266 RemoteViews a = mock(RemoteViews.class); in testRemoteViews_layoutChange()
268 RemoteViews b = mock(RemoteViews.class); in testRemoteViews_layoutChange()
286 RemoteViews a = mock(RemoteViews.class); in testRemoteViews_layoutSame()
288 RemoteViews b = mock(RemoteViews.class); in testRemoteViews_layoutSame()
306 RemoteViews a = mock(RemoteViews.class); in testRemoteViews_sequenceChange()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/appwidget/
DAppWidgetServiceImplTest.java45 import android.widget.RemoteViews;
139 RemoteViews view = new RemoteViews(mPkgName, android.R.layout.simple_list_item_1); in testProviderUpdatesReceived()
146 verify(mMockHost, times(4)).updateAppWidget(eq(widgetId), any(RemoteViews.class)); in testProviderUpdatesReceived()
157 RemoteViews view = new RemoteViews(mPkgName, android.R.layout.simple_list_item_1); in testProviderUpdatesNotReceived()
162 verify(mMockHost, times(0)).updateAppWidget(anyInt(), any(RemoteViews.class)); in testProviderUpdatesNotReceived()
168 RemoteViews view = new RemoteViews(mPkgName, android.R.layout.simple_list_item_1); in testNoUpdatesReceived_queueEmpty()
186 RemoteViews view = new RemoteViews(mPkgName, android.R.layout.simple_list_item_1); in sendDummyUpdates()
/frameworks/base/core/java/android/appwidget/
DPendingHostUpdate.java21 import android.widget.RemoteViews;
35 RemoteViews views;
39 public static PendingHostUpdate updateAppWidget(int appWidgetId, RemoteViews views) { in updateAppWidget()
76 views = new RemoteViews(in); in PendingHostUpdate()
DAppWidgetHostView.java48 import android.widget.RemoteViews;
49 import android.widget.RemoteViews.OnClickHandler;
77 (clazz) -> clazz.isAnnotationPresent(RemoteViews.RemoteView.class);
388 public void updateAppWidget(RemoteViews remoteViews) { in updateAppWidget()
395 protected void applyRemoteViews(RemoteViews remoteViews, boolean useAsyncIfPossible) { in applyRemoteViews()
480 private void inflateAsync(RemoteViews remoteViews) { in inflateAsync()
508 private class ViewApplyListener implements RemoteViews.OnViewAppliedListener {
509 private final RemoteViews mViews;
513 public ViewApplyListener(RemoteViews views, int layoutId, boolean isReapply) { in ViewApplyListener()
659 RemoteViews.getSourceBounds(view), null); in onDefaultViewClicked()
[all …]
/frameworks/base/core/java/android/app/
DNotification.java90 import android.widget.RemoteViews;
344 public RemoteViews tickerView;
355 public RemoteViews contentView;
367 public RemoteViews bigContentView;
381 public RemoteViews headsUpContentView;
2274 tickerView = RemoteViews.CREATOR.createFromParcel(parcel); in readFromParcelImpl()
2277 contentView = RemoteViews.CREATOR.createFromParcel(parcel); in readFromParcelImpl()
2316 bigContentView = RemoteViews.CREATOR.createFromParcel(parcel); in readFromParcelImpl()
2320 headsUpContentView = RemoteViews.CREATOR.createFromParcel(parcel); in readFromParcelImpl()
2940 private static boolean areRemoteViewsChanged(RemoteViews first, RemoteViews second) { in areRemoteViewsChanged()
[all …]
/frameworks/base/tests/appwidgets/AppWidgetProviderTest/src/com/android/tests/appwidgetprovider/
DTestAppWidgetProvider.java27 import android.widget.RemoteViews;
50 RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.test_appwidget); in onReceive()
/frameworks/base/tests/appwidgets/AppWidgetHostTest/src/com/android/tests/appwidgethost/
DTestAppWidgetProvider.java28 import android.widget.RemoteViews;
58 RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.test_appwidget); in onReceive()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/wrapper/
DNotificationCustomViewWrapperTest.java23 import android.widget.RemoteViews;
56 RemoteViews views = new RemoteViews(mContext.getPackageName(), R.layout.custom_view_dark); in testBackgroundPersists()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DNotificationContentInflaterTest.java47 import android.widget.RemoteViews;
164 = new RemoteViews(mContext.getPackageName(), R.layout.status_bar); in testInflationThrowsErrorDoesntCallUpdated()
228 public RemoteViews getRemoteView() { in testInflationIsRetriedIfAsyncFails()
239 RemoteViews mediaView = mBuilder.createContentView(); in doesntReapplyDisallowedRemoteView()
241 mBuilder.setCustomContentView(new RemoteViews(getContext().getPackageName(), in doesntReapplyDisallowedRemoteView()
243 RemoteViews decoratedMediaView = mBuilder.createContentView(); in doesntReapplyDisallowedRemoteView()
251 RemoteViews contractedRemoteView = mBuilder.createContentView(); in testUsesSameViewWhenCachedPossibleToReuse()
272 RemoteViews contractedRemoteView = mBuilder.createHeadsUpContentView(); in testInflatesNewViewWhenCachedNotPossibleToReuse()
367 private class AsyncFailRemoteView extends RemoteViews {

12345