Home | History | Annotate | Download | only in ui

Lines Matching defs:ImageData

42 import com.android.camera.ui.FilmStripView.ImageData.PanoramaSupportCallback;
104 public interface ImageData {
140 * SIZE_FULL can be returned by {@link ImageData#getWidth()} and
141 * {@link ImageData#getHeight()}. When SIZE_FULL is returned for
143 * when deciding the view size of this ImageData, just use full screen
153 * {@link com.android.camera.ui.FilmStripView.ImageData#getWidth()} and
154 * {@link com.android.camera.ui.FilmStripView.ImageData#getHeight()}.
163 * {@link com.android.camera.ui.FilmStripView.ImageData#getWidth()} and
164 * {@link com.android.camera.ui.FilmStripView.ImageData#getHeight()}.
233 * {@link ImageData} and the {@link FilmStripView}.
250 * {@link ImageData}. Usually {@link FilmStripView} itself.
261 public void onDataInserted(int dataID, ImageData data);
263 public void onDataRemoved(int dataID, ImageData data);
280 * Returns the {@link ImageData} specified by the ID.
282 * @param dataID The ID of the {@link ImageData}.
283 * @return The specified {@link ImageData}. Null if not available.
285 public ImageData getImageData(int dataID);
290 * {@link ImageData}.
298 * Sets the listener for data events over the ImageData.
751 return ImageData.VIEW_TYPE_NONE;
766 if (imageWidth == ImageData.SIZE_FULL
767 || imageHeight == ImageData.SIZE_FULL) {
787 ImageData imageData = mDataAdapter.getImageData(id);
788 if (imageData == null) {
793 int[] dim = calculateChildDimension(imageData.getWidth(), imageData.getHeight(),
794 imageData.getOrientation(), boundWidth, boundHeight);
875 ImageData data = mDataAdapter.getImageData(dataID);
901 ImageData data = mDataAdapter.getImageData(mViewItem[itemID].getId());
1044 ImageData data = mDataAdapter.getImageData(getCurrentId());
1053 ImageData data = mDataAdapter.getImageData(getCurrentId());
1099 // To avoid loading the ImageData, we also check if the DataAdapter
1107 ImageData data = mDataAdapter.getImageData(requestId);
1114 if (data.getViewType() == ImageData.VIEW_TYPE_STICKY) {
1156 if (getCurrentViewType() == ImageData.VIEW_TYPE_STICKY
1309 mDataAdapter.getImageData(0).getViewType() == ImageData.VIEW_TYPE_STICKY);
1376 if (curr.getId() == 1 && getCurrentViewType() == ImageData.VIEW_TYPE_STICKY) {
1464 private void checkForRemoval(ImageData data, View v) {
1465 if (data.getViewType() != ImageData.VIEW_TYPE_STICKY) {
1487 private void animateItemRemoval(int dataID, final ImageData data) {
1586 && getCurrentViewType() == ImageData.VIEW_TYPE_STICKY) {
1663 final ImageData data = mDataAdapter.getImageData(dataID);
1729 public void onDataInserted(int dataID, ImageData data) {
1739 public void onDataRemoved(int dataID, ImageData data) {
1754 return (getCurrentViewType() == ImageData.VIEW_TYPE_STICKY);
1759 && (getCurrentViewType() == ImageData.VIEW_TYPE_STICKY);
1817 ImageData data = mDataAdapter.getImageData(item.getId());
1861 final ImageData data = mDataAdapter.getImageData(dataId);
1940 ImageData imageData = mDataAdapter.getImageData(mViewItem[i].getId());
1941 if (imageData != null) {
1942 imageData.recycle();
2028 && getCurrentViewType() == ImageData.VIEW_TYPE_STICKY) {
2173 if (inFullScreen() && getCurrentViewType() == ImageData.VIEW_TYPE_STICKY
2314 if (getCurrentViewType() == ImageData.VIEW_TYPE_STICKY) {
2337 getCurrentViewType() == ImageData.VIEW_TYPE_STICKY &&
2409 ImageData imageData = mDataAdapter.getImageData(curr.getId());
2410 if (curr == null || !imageData
2411 .isUIActionSupported(ImageData.ACTION_ZOOM)) {
2414 float imageWidth = imageData.getWidth();
2415 if (imageData.getOrientation() == 90 || imageData.getOrientation() == 270) {
2416 imageWidth = imageData.getHeight();
2436 ImageData imageData = mDataAdapter.getImageData(curr.getId());
2437 if(!imageData.isUIActionSupported(ImageData.ACTION_ZOOM)) {
2445 int orientation = imageData.getOrientation();
2666 .isUIActionSupported(ImageData.ACTION_DEMOTE)
2670 .isUIActionSupported(ImageData.ACTION_PROMOTE)
2686 && getCurrentViewType() == ImageData.VIEW_TYPE_STICKY
2699 && getCurrentViewType() == ImageData.VIEW_TYPE_STICKY) {
2760 ImageData data = mDataAdapter.getImageData(mViewItem[hit].getId());
2762 if (!data.isUIActionSupported(ImageData.ACTION_DEMOTE) && transY > 0f) {
2765 if (!data.isUIActionSupported(ImageData.ACTION_PROMOTE) && transY < 0f) {
2830 if (getCurrentViewType() == ImageData.VIEW_TYPE_STICKY) {