Lines Matching defs:RemoteViews
63 public class RemoteViews implements Parcelable, Filter {
65 private static final String LOG_TAG = "RemoteViews";
98 * A class to keep track of memory usage by this RemoteViews
108 * Indicates whether or not this RemoteViews object is contained as a child of any other
109 * RemoteViews.
114 * Constants to whether or not this RemoteViews is composed of a landscape and portrait
115 * RemoteViews.
122 * {@link #RemoteViews(RemoteViews, RemoteViews)} to keep track of the landscape and portrait
123 * RemoteViews.
125 private RemoteViews mLandscape = null;
126 private RemoteViews mPortrait = null;
129 * This flag indicates whether this RemoteViews object is being created from a
141 * with the {@link RemoteViews} mechanism.
232 * Merges the passed RemoteViews actions with this RemoteViews actions according to
239 public void mergeRemoteViews(RemoteViews newRv) {
241 // We first copy the new RemoteViews, as the process of merging modifies the way the actions
244 RemoteViews copy = newRv.clone();
491 public SetRemoteViewsAdapterList(int id, ArrayList<RemoteViews> list, int viewTypeCount) {
501 list = new ArrayList<RemoteViews>();
504 RemoteViews rv = RemoteViews.CREATOR.createFromParcel(parcel);
520 RemoteViews rv = list.get(i);
568 ArrayList<RemoteViews> list;
850 RemoteViews: "
1217 + " can't use method with RemoteViews: "
1251 private void configureRemoteViewsAsChild(RemoteViews rv) {
1263 * given {@link RemoteViews}, or calling {@link ViewGroup#removeAllViews()}
1264 * when null. This allows users to build "nested" {@link RemoteViews}.
1267 public ViewGroupAction(int viewId, RemoteViews nestedViews) {
1279 nestedViews = new RemoteViews(parcel, bitmapCache);
1333 RemoteViews nestedViews;
1481 * Simple class used to keep track of memory usage in a RemoteViews.
1522 * Create a new RemoteViews object that will display the views contained
1528 public RemoteViews(String packageName, int layoutId) {
1548 * Create a new RemoteViews object that will inflate as the specified
1549 * landspace or portrait RemoteViews, depending on the current configuration.
1551 * @param landscape The RemoteViews to inflate in landscape configuration
1552 * @param portrait The RemoteViews to inflate in portrait configuration
1554 public RemoteViews(RemoteViews landscape, RemoteViews portrait) {
1556 throw new RuntimeException("Both RemoteViews must be non-null");
1559 throw new RuntimeException("Both RemoteViews must share the same package");
1578 * Reads a RemoteViews object from a parcel.
1582 public RemoteViews(Parcel parcel) {
1586 private RemoteViews(Parcel parcel, BitmapCache bitmapCache) {
1589 // We only store a bitmap cache in the root of the RemoteViews.
1657 mLandscape = new RemoteViews(parcel, mBitmapCache);
1658 mPortrait = new RemoteViews(parcel, mBitmapCache);
1669 public RemoteViews clone() {
1673 return new RemoteViews(p);
1681 * Reutrns the layout id of the root layout associated with this RemoteViews. In the case
1682 * that the RemoteViews has both a landscape and portrait root, this will return the layout
1692 * This flag indicates whether this RemoteViews object is being created from a
1745 * Returns an estimate of the bitmap heap memory usage for this RemoteViews.
1759 throw new RuntimeException("RemoteViews specifying separate landscape and portrait" +
1774 * given {@link RemoteViews}. This allows users to build "nested"
1775 * {@link RemoteViews}. In cases where consumers of {@link RemoteViews} may
1780 * @param nestedView {@link RemoteViews} that describes the child.
1782 public void addView(int viewId, RemoteViews nestedView) {
1973 * RemoteViews#setPendingIntentTemplate(int, PendingIntent) in conjunction with
1974 * RemoteViews#setOnClickFillInIntent(int, Intent).
1988 * {@link RemoteViews#setOnClickFillInIntent(int, Intent)}.
2003 * RemoteViews#setPendingIntentTemplate(int, PendingIntent)}, and the individual on-click
2074 * {@link android.widget.RemoteViews#setRemoteAdapter(int, Intent)}
2097 * encouraged for most scenarios, as long as the total memory within the list of RemoteViews
2099 * RemoteViews#setImageViewBitmap}). In the case of numerous images, the use of API is still
2100 * possible by setting image URIs instead of Bitmaps, see {@link RemoteViews#setImageViewUri}.
2106 * @param list The list of RemoteViews which will populate the view specified by viewId.
2108 * RemoteViews. This count cannot change during the life-cycle of a given widget, so this
2114 public void setRemoteAdapter(int viewId, ArrayList<RemoteViews> list, int viewTypeCount) {
2152 * Call a method taking one boolean on a view in the layout for this RemoteViews.
2163 * Call a method taking one byte on a view in the layout for this RemoteViews.
2174 * Call a method taking one short on a view in the layout for this RemoteViews.
2185 * Call a method taking one int on a view in the layout for this RemoteViews.
2196 * Call a method taking one long on a view in the layout for this RemoteViews.
2207 * Call a method taking one float on a view in the layout for this RemoteViews.
2218 * Call a method taking one double on a view in the layout for this RemoteViews.
2229 * Call a method taking one char on a view in the layout for this RemoteViews.
2240 * Call a method taking one String on a view in the layout for this RemoteViews.
2251 * Call a method taking one CharSequence on a view in the layout for this RemoteViews.
2262 * Call a method taking one Uri on a view in the layout for this RemoteViews.
2273 value.checkFileUriExposed("RemoteViews.setUri()");
2280 * Call a method taking one Bitmap on a view in the layout for this RemoteViews.
2294 * Call a method taking one Bundle on a view in the layout for this RemoteViews.
2305 * Call a method taking one Intent on a view in the layout for this RemoteViews.
2335 private RemoteViews getRemoteViewsToApply(Context context) {
2364 RemoteViews rvToApply = getRemoteViewsToApply(context);
2397 RemoteViews rvToApply = getRemoteViewsToApply(context);
2399 // In the case that a view has this RemoteViews applied in one orientation, is persisted
2400 // across orientation change, and has the RemoteViews re-applied in the new orientation,
2404 throw new RuntimeException("Attempting to re-apply RemoteViews to a view that" +
2459 // We only write the bitmap cache if we are the root RemoteViews, as this cache
2480 // We only write the bitmap cache if we are the root RemoteViews, as this cache
2491 * Parcelable.Creator that instantiates RemoteViews objects
2493 public static final Parcelable.Creator<RemoteViews> CREATOR = new Parcelable.Creator<RemoteViews>() {
2494 public RemoteViews createFromParcel(Parcel parcel) {
2495 return new RemoteViews(parcel);
2498 public RemoteViews[] newArray(int size) {
2499 return new RemoteViews[size];