Home
last modified time | relevance | path

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

1234

/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 …]
DRemoteViewsAdapterTest.java219 private RemoteViews createViews(String text) { in createViews()
220 RemoteViews views = new RemoteViews(mContext.getPackageName(), R.layout.remote_views_text); in createViews()
292 public LockedValue<RemoteViews> loadingView = new LockedValue<>();
293 public LockedValue<RemoteViews>[] views;
320 public RemoteViews getViewAt(int position) throws RemoteException { in getViewAt()
329 public RemoteViews getLoadingView() throws RemoteException { in getLoadingView()
/frameworks/base/core/java/android/service/autofill/
DDataset.java28 import android.widget.RemoteViews;
101 private final ArrayList<RemoteViews> mFieldPresentations;
103 private final RemoteViews mPresentation;
128 public RemoteViews getFieldPresentation(int index) { in getFieldPresentation()
129 final RemoteViews customPresentation = mFieldPresentations.get(index); in getFieldPresentation()
200 private ArrayList<RemoteViews> mFieldPresentations;
202 private RemoteViews mPresentation;
212 public Builder(@NonNull RemoteViews presentation) { in Builder()
353 @NonNull RemoteViews presentation) { in setValue()
424 @Nullable Pattern filter, @NonNull RemoteViews presentation) { in setValue()
[all …]
DFillResponse.java34 import android.widget.RemoteViews;
77 private final @Nullable RemoteViews mPresentation;
78 private final @Nullable RemoteViews mHeader;
79 private final @Nullable RemoteViews mFooter;
122 public @Nullable RemoteViews getPresentation() { in getPresentation()
127 public @Nullable RemoteViews getHeader() { in getHeader()
132 public @Nullable RemoteViews getFooter() { in getFooter()
198 private RemoteViews mPresentation;
199 private RemoteViews mHeader;
200 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/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DNotificationContentInflater.java33 import android.widget.RemoteViews;
128 private RemoteViews.OnClickHandler mRemoteViewClickHandler;
133 private final ArrayMap<Integer, RemoteViews> mCachedContentViews = new ArrayMap<>();
166 public void setRemoteViewClickHandler(RemoteViews.OnClickHandler remoteViewClickHandler) { in setRemoteViewClickHandler()
405 ArrayMap<Integer, RemoteViews> cachedContentViews, in apply()
408 RemoteViews.OnClickHandler remoteViewClickHandler, in apply()
426 public RemoteViews getRemoteView() { in apply()
450 public RemoteViews getRemoteView() { in apply()
476 public RemoteViews getRemoteView() { in apply()
501 public RemoteViews getRemoteView() { in apply()
[all …]
/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
254 private RemoteViews mLandscape = null;
256 private RemoteViews mPortrait = null;
503 public void mergeRemoteViews(RemoteViews newRv) { in mergeRemoteViews()
508 RemoteViews copy = new RemoteViews(newRv); in mergeRemoteViews()
698 public SetRemoteViewsAdapterList(int id, ArrayList<RemoteViews> list, int viewTypeCount) { in SetRemoteViewsAdapterList()
707 list = parcel.createTypedArrayList(RemoteViews.CREATOR); in SetRemoteViewsAdapterList()
759 ArrayList<RemoteViews> list;
1544 private void configureRemoteViewsAsChild(RemoteViews rv) { in configureRemoteViewsAsChild()
1558 private RemoteViews mNestedViews;
[all …]
/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/services/tests/servicestests/src/com/android/server/appwidget/
DAppWidgetServiceImplTest.java44 import android.widget.RemoteViews;
137 RemoteViews view = new RemoteViews(mPkgName, android.R.layout.simple_list_item_1); in testProviderUpdatesReceived()
144 verify(mMockHost, times(4)).updateAppWidget(eq(widgetId), any(RemoteViews.class)); in testProviderUpdatesReceived()
155 RemoteViews view = new RemoteViews(mPkgName, android.R.layout.simple_list_item_1); in testProviderUpdatesNotReceived()
160 verify(mMockHost, times(0)).updateAppWidget(anyInt(), any(RemoteViews.class)); in testProviderUpdatesNotReceived()
166 RemoteViews view = new RemoteViews(mPkgName, android.R.layout.simple_list_item_1); in testNoUpdatesReceived_queueEmpty()
184 RemoteViews view = new RemoteViews(mPkgName, android.R.layout.simple_list_item_1); in sendDummyUpdates()
/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/core/java/android/appwidget/
DPendingHostUpdate.java21 import android.widget.RemoteViews;
34 RemoteViews views;
38 public static PendingHostUpdate updateAppWidget(int appWidgetId, RemoteViews views) { in updateAppWidget()
68 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()
481 private void inflateAsync(RemoteViews remoteViews) { in inflateAsync()
509 private class ViewApplyListener implements RemoteViews.OnViewAppliedListener {
510 private final RemoteViews mViews;
514 public ViewApplyListener(RemoteViews views, int layoutId, boolean isReapply) { in ViewApplyListener()
657 RemoteViews.getSourceBounds(view), null); in onDefaultViewClicked()
[all …]
DAppWidgetHost.java38 import android.widget.RemoteViews;
39 import android.widget.RemoteViews.OnClickHandler;
81 public void updateAppWidget(int appWidgetId, RemoteViews views) { in updateAppWidget()
137 updateAppWidgetView(msg.arg1, (RemoteViews)msg.obj); in handleMessage()
391 RemoteViews views; in createView()
437 void updateAppWidgetView(int appWidgetId, RemoteViews views) { in updateAppWidgetView()
/frameworks/base/core/java/android/app/
DNotification.java88 import android.widget.RemoteViews;
342 public RemoteViews tickerView;
353 public RemoteViews contentView;
365 public RemoteViews bigContentView;
379 public RemoteViews headsUpContentView;
2232 tickerView = RemoteViews.CREATOR.createFromParcel(parcel); in readFromParcelImpl()
2235 contentView = RemoteViews.CREATOR.createFromParcel(parcel); in readFromParcelImpl()
2274 bigContentView = RemoteViews.CREATOR.createFromParcel(parcel); in readFromParcelImpl()
2278 headsUpContentView = RemoteViews.CREATOR.createFromParcel(parcel); in readFromParcelImpl()
2862 private static boolean areRemoteViewsChanged(RemoteViews first, RemoteViews second) { in areRemoteViewsChanged()
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationTest.java48 import android.widget.RemoteViews;
323 .setContent(mock(RemoteViews.class)); in testRemoteViews_nullChange()
329 .setContent(mock(RemoteViews.class)); in testRemoteViews_nullChange()
333 .setCustomBigContentView(mock(RemoteViews.class)); in testRemoteViews_nullChange()
339 .setCustomBigContentView(mock(RemoteViews.class)); in testRemoteViews_nullChange()
349 RemoteViews a = mock(RemoteViews.class); in testRemoteViews_layoutChange()
351 RemoteViews b = mock(RemoteViews.class); in testRemoteViews_layoutChange()
369 RemoteViews a = mock(RemoteViews.class); in testRemoteViews_layoutSame()
371 RemoteViews b = mock(RemoteViews.class); in testRemoteViews_layoutSame()
389 RemoteViews a = mock(RemoteViews.class); in testRemoteViews_sequenceChange()
[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/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/wrapper/
DNotificationCustomViewWrapperTest.java23 import android.widget.RemoteViews;
52 RemoteViews views = new RemoteViews(mContext.getPackageName(), R.layout.custom_view_dark); in testBackgroundPersists()
/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/
DNotificationContentInflaterTest.java44 import android.widget.RemoteViews;
146 = new RemoteViews(mContext.getPackageName(), R.layout.status_bar); in testInflationThrowsErrorDoesntCallUpdated()
203 public RemoteViews getRemoteView() { in testInflationIsRetriedIfAsyncFails()
245 RemoteViews mediaView = mBuilder.createContentView(); in doesntReapplyDisallowedRemoteView()
247 mBuilder.setCustomContentView(new RemoteViews(getContext().getPackageName(), in doesntReapplyDisallowedRemoteView()
249 RemoteViews decoratedMediaView = mBuilder.createContentView(); in doesntReapplyDisallowedRemoteView()
299 private class AsyncFailRemoteView extends RemoteViews {

1234