Home | History | Annotate | Download | only in ui

Lines Matching defs:ImageData

42 import com.android.camera.ui.FilmStripView.ImageData.PanoramaSupportCallback;
103 public interface ImageData {
139 * SIZE_FULL can be returned by {@link ImageData#getWidth()} and
140 * {@link ImageData#getHeight()}. When SIZE_FULL is returned for
142 * when deciding the view size of this ImageData, just use full screen
152 * {@link com.android.camera.ui.FilmStripView.ImageData#getWidth()} and
153 * {@link com.android.camera.ui.FilmStripView.ImageData#getHeight()}.
162 * {@link com.android.camera.ui.FilmStripView.ImageData#getWidth()} and
163 * {@link com.android.camera.ui.FilmStripView.ImageData#getHeight()}.
232 * {@link ImageData} and the {@link FilmStripView}.
249 * {@link ImageData}. Usually {@link FilmStripView} itself.
260 public void onDataInserted(int dataID, ImageData data);
262 public void onDataRemoved(int dataID, ImageData data);
279 * Returns the {@link ImageData} specified by the ID.
281 * @param dataID The ID of the {@link ImageData}.
282 * @return The specified {@link ImageData}. Null if not available.
284 public ImageData getImageData(int dataID);
289 * {@link ImageData}.
297 * Sets the listener for data events over the ImageData.
750 return ImageData.VIEW_TYPE_NONE;
765 if (imageWidth == ImageData.SIZE_FULL
766 || imageHeight == ImageData.SIZE_FULL) {
786 ImageData imageData = mDataAdapter.getImageData(id);
787 if (imageData == null) {
792 int[] dim = calculateChildDimension(imageData.getWidth(), imageData.getHeight(),
793 imageData.getOrientation(), boundWidth, boundHeight);
874 ImageData data = mDataAdapter.getImageData(dataID);
900 ImageData data = mDataAdapter.getImageData(mViewItem[itemID].getId());
1043 ImageData data = mDataAdapter.getImageData(getCurrentId());
1052 ImageData data = mDataAdapter.getImageData(getCurrentId());
1098 // To avoid loading the ImageData, we also check if the DataAdapter
1106 ImageData data = mDataAdapter.getImageData(requestId);
1113 if (data.getViewType() == ImageData.VIEW_TYPE_STICKY) {
1155 if (getCurrentViewType() == ImageData.VIEW_TYPE_STICKY
1308 mDataAdapter.getImageData(0).getViewType() == ImageData.VIEW_TYPE_STICKY);
1375 if (curr.getId() == 1 && getCurrentViewType() == ImageData.VIEW_TYPE_STICKY) {
1456 private void checkForRemoval(ImageData data, View v) {
1457 if (data.getViewType() != ImageData.VIEW_TYPE_STICKY) {
1479 private void animateItemRemoval(int dataID, final ImageData data) {
1578 && getCurrentViewType() == ImageData.VIEW_TYPE_STICKY) {
1655 final ImageData data = mDataAdapter.getImageData(dataID);
1721 public void onDataInserted(int dataID, ImageData data) {
1731 public void onDataRemoved(int dataID, ImageData data) {
1746 return (getCurrentViewType() == ImageData.VIEW_TYPE_STICKY);
1751 && (getCurrentViewType() == ImageData.VIEW_TYPE_STICKY);
1807 ImageData data = mDataAdapter.getImageData(item.getId());
1851 final ImageData data = mDataAdapter.getImageData(dataId);
2004 && getCurrentViewType() == ImageData.VIEW_TYPE_STICKY) {
2149 if (inFullScreen() && getCurrentViewType() == ImageData.VIEW_TYPE_STICKY
2290 if (getCurrentViewType() == ImageData.VIEW_TYPE_STICKY) {
2313 getCurrentViewType() == ImageData.VIEW_TYPE_STICKY &&
2385 ImageData imageData = mDataAdapter.getImageData(curr.getId());
2386 if (curr == null || !imageData
2387 .isUIActionSupported(ImageData.ACTION_ZOOM)) {
2390 float imageWidth = imageData.getWidth();
2391 if (imageData.getOrientation() == 90 || imageData.getOrientation() == 270) {
2392 imageWidth = imageData.getHeight();
2412 ImageData imageData = mDataAdapter.getImageData(curr.getId());
2413 if(!imageData.isUIActionSupported(ImageData.ACTION_ZOOM)) {
2421 int orientation = imageData.getOrientation();
2648 .isUIActionSupported(ImageData.ACTION_DEMOTE)
2652 .isUIActionSupported(ImageData.ACTION_PROMOTE)
2668 && getCurrentViewType() == ImageData.VIEW_TYPE_STICKY
2681 && getCurrentViewType() == ImageData.VIEW_TYPE_STICKY) {
2738 ImageData data = mDataAdapter.getImageData(mViewItem[hit].getId());
2740 if (!data.isUIActionSupported(ImageData.ACTION_DEMOTE) && transY > 0f) {
2743 if (!data.isUIActionSupported(ImageData.ACTION_PROMOTE) && transY < 0f) {
2805 if (getCurrentViewType() == ImageData.VIEW_TYPE_STICKY) {