Home | History | Annotate | Download | only in widget

Lines Matching refs:remoteViews

43 import android.widget.RemoteViews.OnClickHandler;
49 * An adapter to a RemoteViewsService which fetches and caches RemoteViews
86 // The set of requested views that are to be notified when the associated RemoteViews are
288 * A FrameLayout which contains a loading view, and manages the re/applying of RemoteViews when
298 * @param view the RemoteViews that was loaded. If null, the RemoteViews was not loaded
301 public void onRemoteViewsLoaded(RemoteViews view, OnClickHandler handler) {
307 Log.e(TAG, "Failed to apply RemoteViews.");
314 * adapter that have not yet had their RemoteViews loaded.
349 * the associated RemoteViews has loaded.
351 public void notifyOnRemoteViewsLoaded(int position, RemoteViews view) {
356 // Notify all the references for that position of the newly loaded RemoteViews
402 RemoteViews mUserLoadingView;
403 RemoteViews mFirstView;
434 public void setLoadingViewTemplates(RemoteViews loadingView, RemoteViews firstView) {
503 Log.w(TAG, "Error inflating first RemoteViews" + e);
529 public RemoteViewsIndexMetaData(RemoteViews v, long itemId) {
533 public void set(RemoteViews v, long id) {
549 // The meta data related to all the RemoteViews, ie. count, is stable, etc.
557 // greater than or equal to the set of RemoteViews.
558 // Note: The reason that we keep this separate from the RemoteViews cache below is that this
560 // the heavy RemoteViews around. The RemoteViews cache is trimmed to fixed constraints wrt.
565 // The cache of actual RemoteViews, which may be pruned if the cache gets too large, or uses
567 private HashMap<Integer, RemoteViews> mIndexRemoteViews;
602 mIndexRemoteViews = new HashMap<Integer, RemoteViews>();
608 public void insert(int position, RemoteViews v, long itemId,
642 public RemoteViews getRemoteViewsAt(int position) {
664 // Calculate the memory usage of all the RemoteViews bitmaps being cached
667 final RemoteViews v = mIndexRemoteViews.get(i);
820 mAppWidgetId = intent.getIntExtra(RemoteViews.EXTRA_REMOTEADAPTER_APPWIDGET_ID, -1);
829 if (intent.hasExtra(RemoteViews.EXTRA_REMOTEADAPTER_APPWIDGET_ID)) {
830 intent.removeExtra(RemoteViews.EXTRA_REMOTEADAPTER_APPWIDGET_ID);
986 RemoteViews loadingView = factory.getLoadingView();
987 RemoteViews firstView = null;
1010 RemoteViews remoteViews = null;
1013 remoteViews = factory.getViewAt(position);
1026 if (remoteViews == null) {
1030 Log.e(TAG, "Error in updateRemoteViews(" + position + "): " + " null RemoteViews " +
1035 int layoutId = remoteViews.getLayoutId();
1047 // Cache the RemoteViews we loaded
1048 mCache.insert(position, remoteViews, itemId, visibleWindow);
1052 final RemoteViews rv = remoteViews;
1170 // Second, we try and retrieve the RemoteViews from the cache, returning a loading
1173 RemoteViews rv = mCache.getRemoteViewsAt(position);
1197 // We have to make sure that we successfully inflated the RemoteViews, if not
1199 Log.w(TAG, "Error inflating RemoteViews at position: " + position + ", using" +
1213 // If the cache does not have the RemoteViews at this position, then create a