HomeSort by relevance Sort by last modified time
    Searched refs:PhotoItem (Results 1 - 19 of 19) sorted by null

  /frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/
PhotoItem.java 19 public class PhotoItem implements Parcelable {
25 public PhotoItem(String title, int imageResourceId) {
29 public PhotoItem(String title, String content, int imageResourceId) {
63 public static final Parcelable.Creator<PhotoItem> CREATOR
64 = new Parcelable.Creator<PhotoItem>() {
66 public PhotoItem createFromParcel(Parcel in) {
67 return new PhotoItem(in);
71 public PhotoItem[] newArray(int size) {
72 return new PhotoItem[size];
76 private PhotoItem(Parcel in)
    [all...]
BrowseFragment.java 88 } else if (item instanceof PhotoItem) {
90 getActivity(), ((PhotoItem) item).getImageResourceId());
143 listRowAdapter.add(new PhotoItem(
146 listRowAdapter.add(new PhotoItem(
150 listRowAdapter.add(new PhotoItem(
154 listRowAdapter.add(new PhotoItem(
157 listRowAdapter.add(new PhotoItem(
160 listRowAdapter.add(new PhotoItem(
164 listRowAdapter.add(new PhotoItem(
168 listRowAdapter.add(new PhotoItem(
    [all...]
BrowseSupportFragment.java 90 } else if (item instanceof PhotoItem) {
92 getActivity(), ((PhotoItem) item).getImageResourceId());
145 listRowAdapter.add(new PhotoItem(
148 listRowAdapter.add(new PhotoItem(
152 listRowAdapter.add(new PhotoItem(
156 listRowAdapter.add(new PhotoItem(
159 listRowAdapter.add(new PhotoItem(
162 listRowAdapter.add(new PhotoItem(
166 listRowAdapter.add(new PhotoItem(
170 listRowAdapter.add(new PhotoItem(
    [all...]
RowsFragment.java 83 listRowAdapter.add(new PhotoItem("Hello world", R.drawable.gallery_photo_1));
84 listRowAdapter.add(new PhotoItem("This is a test", R.drawable.gallery_photo_2));
85 listRowAdapter.add(new PhotoItem("Android TV", R.drawable.gallery_photo_3));
86 listRowAdapter.add(new PhotoItem("Leanback", R.drawable.gallery_photo_4));
87 listRowAdapter.add(new PhotoItem("Hello world", R.drawable.gallery_photo_5));
88 listRowAdapter.add(new PhotoItem("This is a test", R.drawable.gallery_photo_6));
89 listRowAdapter.add(new PhotoItem("Android TV", R.drawable.gallery_photo_7));
90 listRowAdapter.add(new PhotoItem("Leanback", R.drawable.gallery_photo_8));
103 intent.putExtra(DetailsActivity.EXTRA_ITEM, (PhotoItem) item);
RowsSupportFragment.java 85 listRowAdapter.add(new PhotoItem("Hello world", R.drawable.gallery_photo_1));
86 listRowAdapter.add(new PhotoItem("This is a test", R.drawable.gallery_photo_2));
87 listRowAdapter.add(new PhotoItem("Android TV", R.drawable.gallery_photo_3));
88 listRowAdapter.add(new PhotoItem("Leanback", R.drawable.gallery_photo_4));
89 listRowAdapter.add(new PhotoItem("Hello world", R.drawable.gallery_photo_5));
90 listRowAdapter.add(new PhotoItem("This is a test", R.drawable.gallery_photo_6));
91 listRowAdapter.add(new PhotoItem("Android TV", R.drawable.gallery_photo_7));
92 listRowAdapter.add(new PhotoItem("Leanback", R.drawable.gallery_photo_8));
105 intent.putExtra(DetailsSupportActivity.EXTRA_ITEM, (PhotoItem) item);
DetailsActivity.java 40 .setItem((PhotoItem) getIntent().getParcelableExtra(EXTRA_ITEM));
43 .setItem((PhotoItem) getIntent().getParcelableExtra(EXTRA_ITEM));
DetailsSupportActivity.java 42 .setItem((PhotoItem) getIntent().getParcelableExtra(EXTRA_ITEM));
45 .setItem((PhotoItem) getIntent().getParcelableExtra(EXTRA_ITEM));
NewDetailsFragment.java 49 private PhotoItem mPhotoItem;
137 PhotoItem item = (PhotoItem) (savedInstanceState != null ?
148 if (item instanceof PhotoItem){
150 intent.putExtra(DetailsActivity.EXTRA_ITEM, (PhotoItem) item);
191 public void setItem(PhotoItem photoItem) {
192 mPhotoItem = photoItem;
199 listRowAdapter.add(new PhotoItem("Hello world", R.drawable.gallery_photo_1));
200 listRowAdapter.add(new PhotoItem("This is a test", R.drawable.gallery_photo_2))
    [all...]
NewDetailsSupportFragment.java 51 private PhotoItem mPhotoItem;
139 PhotoItem item = (PhotoItem) (savedInstanceState != null ?
150 if (item instanceof PhotoItem){
152 intent.putExtra(DetailsSupportActivity.EXTRA_ITEM, (PhotoItem) item);
193 public void setItem(PhotoItem photoItem) {
194 mPhotoItem = photoItem;
201 listRowAdapter.add(new PhotoItem("Hello world", R.drawable.gallery_photo_1));
202 listRowAdapter.add(new PhotoItem("This is a test", R.drawable.gallery_photo_2))
    [all...]
DetailsFragment.java 47 private PhotoItem mPhotoItem;
121 PhotoItem item = (PhotoItem) (savedInstanceState != null ?
132 if (item instanceof PhotoItem){
134 intent.putExtra(DetailsActivity.EXTRA_ITEM, (PhotoItem) item);
170 public void setItem(PhotoItem photoItem) {
171 mPhotoItem = photoItem;
192 listRowAdapter.add(new PhotoItem("Hello world", R.drawable.gallery_photo_1));
193 listRowAdapter.add(new PhotoItem("This is a test", R.drawable.gallery_photo_2))
    [all...]
DetailsSupportFragment.java 49 private PhotoItem mPhotoItem;
123 PhotoItem item = (PhotoItem) (savedInstanceState != null ?
134 if (item instanceof PhotoItem){
136 intent.putExtra(DetailsSupportActivity.EXTRA_ITEM, (PhotoItem) item);
172 public void setItem(PhotoItem photoItem) {
173 mPhotoItem = photoItem;
194 listRowAdapter.add(new PhotoItem("Hello world", R.drawable.gallery_photo_1));
195 listRowAdapter.add(new PhotoItem("This is a test", R.drawable.gallery_photo_2))
    [all...]
SearchFragment.java 74 listRowAdapter.add(new PhotoItem("Hello world", R.drawable.gallery_photo_1));
75 listRowAdapter.add(new PhotoItem("This is a test", R.drawable.gallery_photo_2));
93 intent.putExtra(DetailsActivity.EXTRA_ITEM, (PhotoItem) item);
SearchSupportFragment.java 76 listRowAdapter.add(new PhotoItem("Hello world", R.drawable.gallery_photo_1));
77 listRowAdapter.add(new PhotoItem("This is a test", R.drawable.gallery_photo_2));
95 intent.putExtra(DetailsSupportActivity.EXTRA_ITEM, (PhotoItem) item);
MainActivity.java 69 new PhotoItem("Hello world", R.drawable.gallery_photo_1));
72 new PhotoItem("Hello world", R.drawable.gallery_photo_1));
76 new PhotoItem("Hello world", R.drawable.gallery_photo_1));
80 new PhotoItem("Hello world", R.drawable.gallery_photo_1));
CardPresenter.java 106 PhotoItem photoItem = (PhotoItem) item;
108 .getDrawable(photoItem.getImageResourceId());
110 ((ImageCardView) viewHolder.view).setTitleText(photoItem.getTitle());
111 if (!TextUtils.isEmpty(photoItem.getContent())) {
112 ((ImageCardView) viewHolder.view).setContentText(photoItem.getContent());
  /packages/apps/Camera2/src/com/android/camera/data/
PhotoItemFactory.java 29 public class PhotoItemFactory implements CursorToFilmstripItemFactory<PhotoItem> {
46 public PhotoItem get(Cursor c) {
49 return new PhotoItem(mContext, mGlideManager, data, this);
56 public PhotoItem get(Uri uri) {
57 PhotoItem newData = null;
71 public List<PhotoItem> queryAll() {
76 public List<PhotoItem> queryAll(Uri uri, long lastId) {
83 public PhotoItem queryContentUri(Uri uri) {
85 List<PhotoItem> newPhotos = queryAll(uri, FilmstripItemBase.QUERY_ALL_MEDIA_ID);
CameraFilmstripDataAdapter.java 309 private class LoadNewPhotosTask extends AsyncTask<ContentResolver, Void, List<PhotoItem>> {
325 protected List<PhotoItem> doInBackground(ContentResolver... contentResolvers) {
335 protected void onPostExecute(List<PhotoItem> newPhotoData) {
395 List<PhotoItem> photoData = mPhotoItemFactory.queryAll();
PhotoItem.java 49 public class PhotoItem extends FilmstripItemBase<FilmstripItemData> {
50 private static final Log.Tag TAG = new Log.Tag("PhotoItem");
68 public PhotoItem(Context context, GlideFilmstripManager manager, FilmstripItemData data,
87 return "PhotoItem: " + mData.toString();
  /packages/apps/Camera2/src/com/android/camera/
CameraActivity.java 99 import com.android.camera.data.PhotoItem;
    [all...]

Completed in 173 milliseconds