Lines Matching refs:MediaSize
51 import android.print.PrintAttributes.MediaSize;
191 private ArrayAdapter<SpinnerItem<MediaSize>> mMediaSizeSpinnerAdapter;
807 MediaSize oldMediaSize = currAttributes.getMediaSize();
808 MediaSize newMediaSize = newAttributes.getMediaSize();
811 MediaSize newMediaSizePortrait = newAttributes.getMediaSize().asPortrait();
813 MediaSize supportedSizePortrait = mMediaSizeSpinnerAdapter.getItem(i)
1085 List<MediaSize> sortedMediaSizes = new ArrayList<>(capabilities.getMediaSizes());
1091 MediaSize currMediaSize = attributes.getMediaSize();
1096 MediaSize newMediaSize = null;
1101 MediaSize currMediaSizePortrait = currMediaSize.asPortrait();
1104 MediaSize mediaSize = sortedMediaSizes.get(i);
1105 if (currMediaSizePortrait.equals(mediaSize.asPortrait())) {
1106 newMediaSize = mediaSize;
1599 List<MediaSize> mediaSizes = new ArrayList<>(capabilities.getMediaSizes());
1621 MediaSize oldMediaSize = attributes.getMediaSize();
1626 MediaSize mediaSize = mediaSizes.get(i);
1628 && mediaSize.asPortrait().equals(oldMediaSize.asPortrait())) {
1633 mediaSize, mediaSize.getLabel(getPackageManager())));
1796 MediaSize mediaSize = attributes.getMediaSize();
1797 if (mediaSize != null) {
1798 if (mediaSize.isPortrait()
1801 } else if (!mediaSize.isPortrait()
1915 SpinnerItem<MediaSize> mediaItem = mMediaSizeSpinnerAdapter.getItem(selectedMediaIndex);
2549 ArraySet<MediaSize> allMediaSizes = MediaSize.getAllPredefinedSizes();
2550 MediaSize defaultMediaSize = MediaSizeUtils.getDefault(PrintActivity.this);
2559 MediaSize mediaSize = allMediaSizes.valueAt(i);
2560 builder.addMediaSize(mediaSize, mediaSize.equals(defaultMediaSize));
2726 SpinnerItem<MediaSize> mediaItem = mMediaSizeSpinnerAdapter.getItem(position);
2729 MediaSize newMediaSize;