/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/ |
MediaSizeUtils.java | 23 import android.print.PrintAttributes.MediaSize; 36 private static Map<MediaSize, Integer> sMediaSizeToStandardMap; 51 public static MediaSize getDefault(Context context) { 53 return MediaSize.getStandardMediaSizeById(mediaSizeId); 57 * Get the standard the {@link MediaSize} belongs to. 60 * @param mediaSize The {@link MediaSize} to be resolved 62 * @return The standard the {@link MediaSize} belongs to 64 private static int getStandardForMediaSize(Context context, MediaSize mediaSize) { [all...] |
/frameworks/base/core/java/android/print/pdf/ |
PrintedPdfDocument.java | 26 import android.print.PrintAttributes.MediaSize; 84 MediaSize mediaSize = attributes.getMediaSize(); 87 mPageWidth = (int) (((float) mediaSize.getWidthMils() / MILS_PER_INCH) 89 mPageHeight = (int) (((float) mediaSize.getHeightMils() / MILS_PER_INCH)
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/ |
PageContentView.java | 22 import android.print.PrintAttributes.MediaSize; 41 private MediaSize mMediaSize; 80 MediaSize mediaSize, Margins minMargins) { 86 ? mediaSize != null : !mMediaSize.equals(mediaSize); 97 mMediaSize = mediaSize;
|
/cts/tests/tests/print/src/android/print/cts/ |
PrinterCapabilitiesChangeTest.java | 23 import android.print.PrintAttributes.MediaSize; 65 private MediaSize mMsBefore; 67 private MediaSize mMsAfter; 81 * @param mediaSize The media size to use 86 private List<PrinterInfo> generatePrinters(PrinterId printerId, MediaSize mediaSize, 92 if (mediaSize != null) { 100 .addMediaSize(mediaSize, true) 118 * @param mediaSize The media size to match 122 private void waitForMediaSizeChange(PrintAttributes[] printAttributes, MediaSize mediaSize [all...] |
CustomPrintOptionsTest.java | 23 import android.print.PrintAttributes.MediaSize; 70 private final MediaSize DEFAULT_MEDIA_SIZE = MediaSize.ISO_A0; 80 private final MediaSize[] MEDIA_SIZES = { DEFAULT_MEDIA_SIZE, MediaSize.ISO_B0 }; 235 * @param mediaSize The media size to use 236 * @param isPortrait If the mediaSize is portrait 244 final PageRange[] pages, final MediaSize mediaSize, final boolean isPortrait, 252 if (mediaSize != null) [all...] |
PrintAttributesTest.java | 23 import android.print.PrintAttributes.MediaSize; 63 private final MediaSize MEDIA_SIZES[] = { 64 MediaSize.ISO_A3, MediaSize.ISO_A4, MediaSize.ISO_A5 93 * @param mediaSize {@link MediaSize} to use 100 private PrintAttributes createAttributes(MediaSize mediaSize, int colorMode, int duplexMode, 102 if (mediaSize == null && colorMode == 0 && duplexMode == 0 && resolution == null) [all...] |
BasePrintTest.java | 601 void changeMediaSize(String mediaSize) throws UiObjectNotFoundException, IOException { 607 UiObject mediaSizeOption = uiDevice.findObject(new UiSelector().text(mediaSize)); [all...] |
/packages/services/BuiltInPrintService/src/com/android/bips/ipp/ |
StartJobTask.java | 96 PrintAttributes.MediaSize mediaSize = mJobInfo.getAttributes().getMediaSize(); 107 mJobParams.portrait_mode = mediaSize == null || mediaSize.isPortrait(); 109 mJobParams.media_size = mMediaSizes.toMediaCode(mediaSize);
|
/frameworks/support/core-utils/java/android/support/v4/print/ |
PrintHelper.java | 357 PrintAttributes.MediaSize mediaSize; 359 mediaSize = PrintAttributes.MediaSize.UNKNOWN_PORTRAIT; 361 mediaSize = PrintAttributes.MediaSize.UNKNOWN_LANDSCAPE; 364 .setMediaSize(mediaSize) 643 PrintAttributes.MediaSize mediaSize; 646 mediaSize = mAttributes.getMediaSize() [all...] |
/packages/services/BuiltInPrintService/src/com/android/bips/jni/ |
MediaSizes.java | 84 private final Map<String, PrintAttributes.MediaSize> mNameToSizeMap = new HashMap<>(); 87 mNameToSizeMap.put(LETTER, PrintAttributes.MediaSize.NA_LETTER); 88 mNameToSizeMap.put(LEGAL, PrintAttributes.MediaSize.NA_LEGAL); 89 mNameToSizeMap.put(ISO_A3, PrintAttributes.MediaSize.ISO_A3); 90 mNameToSizeMap.put(ISO_A4, PrintAttributes.MediaSize.ISO_A4); 91 mNameToSizeMap.put(ISO_A5, PrintAttributes.MediaSize.ISO_A5); 92 mNameToSizeMap.put(JPN_HAGAKI, PrintAttributes.MediaSize.JPN_HAGAKI); 93 mNameToSizeMap.put(JIS_B4, PrintAttributes.MediaSize.JIS_B4); 94 mNameToSizeMap.put(JIS_B5, PrintAttributes.MediaSize.JIS_B5); 95 mNameToSizeMap.put(NA_LEDGER_11X17, PrintAttributes.MediaSize.NA_TABLOID) [all...] |
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/ |
PrintPreviewController.java | 24 import android.print.PrintAttributes.MediaSize; 132 PageRange[] writtenPages, PageRange[] selectedPages, MediaSize mediaSize, 164 args.arg3 = mediaSize; 299 MediaSize mediaSize = (MediaSize) args.arg3; 305 mediaSize, margins);
|
PrintActivity.java | 53 import android.print.PrintAttributes.MediaSize; 208 private ArrayAdapter<SpinnerItem<MediaSize>> mMediaSizeSpinnerAdapter; 837 MediaSize oldMediaSize = currAttributes.getMediaSize(); 838 MediaSize newMediaSize = newAttributes.getMediaSize(); 841 MediaSize newMediaSizePortrait = newAttributes.getMediaSize().asPortrait(); 843 MediaSize supportedSizePortrait = mMediaSizeSpinnerAdapter.getItem(i) [all...] |
PageAdapter.java | 29 import android.print.PrintAttributes.MediaSize; 111 private MediaSize mMediaSize; 209 int documentPageCount, MediaSize mediaSize, Margins minMargins) { 238 if (mMediaSize == null || !mMediaSize.equals(mediaSize)) { 239 mMediaSize = mediaSize;
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/deviceinfo/ |
StorageMeasurement.java | 75 public SparseArray<HashMap<String, Long>> mediaSize = new SparseArray<>(); 87 + " cacheSize: " + cacheSize + " mediaSize: " + mediaSize 176 details.mediaSize.put(user.id, mediaMap);
|
/frameworks/base/packages/PrintSpooler/tests/outofprocess/src/com/android/printspooler/outofprocess/tests/ |
WorkflowTest.java | 70 private PrintAttributes.MediaSize mFirst; 72 private PrintAttributes.MediaSize mSecond; 74 public WorkflowTest(PrintAttributes.MediaSize first, boolean selectPrinter, 75 PrintAttributes.MediaSize second) { 172 /** Add a printer with a given name and supported mediasize to a session */ 174 String name, PrintAttributes.MediaSize mediaSize) { 182 if (mediaSize != null) { 186 .addMediaSize(mediaSize, true) 227 ArrayList<String> trackedPrinters, PrintAttributes.MediaSize mediaSize) [all...] |
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/ |
StorageFragment.java | 201 final long dcimSize = totalValues(details.mediaSize.get(currentUser), 205 final long musicSize = totalValues(details.mediaSize.get(currentUser), 210 final long downloadsSize = totalValues(details.mediaSize.get(currentUser), 232 "MeasurementDetails mediaSize array does not have key for current user " +
|
/packages/services/BuiltInPrintService/jni/ipphelper/ |
ipp_print.c | 368 ipp_t *mediaSize = ippNew(); 371 ippAddString(mediaSize, IPP_TAG_JOB, IPP_TAG_KEYWORD, "media-size-name", NULL, 374 ippAddInteger(mediaSize, IPP_TAG_JOB, IPP_TAG_INTEGER, "x-dimension", (int) mediaWidth); 375 ippAddInteger(mediaSize, IPP_TAG_JOB, IPP_TAG_INTEGER, "y-dimension", 378 ippAddCollection(col[col_index], IPP_TAG_JOB, "media-size", mediaSize);
|
ipphelper.c | 660 static int getMediaDimensions_mm(const char *mediaSize, media_dimension_mm_t *media_dimensions) { 671 tempMediaSize = malloc(strlen(mediaSize) + 1); 675 strcpy(tempMediaSize, mediaSize); 678 um = substring(mediaSize, strlen(tempMediaSize) - 1, 2); [all...] |
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/ |
PrintSpoolerService.java | 40 import android.print.PrintAttributes.MediaSize; 815 private static final String TAG_MEDIA_SIZE = "mediaSize"; [all...] |
PageContentRepository.java | 37 import android.print.PrintAttributes.MediaSize; 366 MediaSize mediaSize, Margins minMargins) { 369 printAttributes.setMediaSize(mediaSize); [all...] |
/frameworks/base/core/java/android/print/ |
PrinterCapabilitiesInfo.java | 25 import android.print.PrintAttributes.MediaSize; 61 private @NonNull List<MediaSize> mMediaSizes; 98 mMediaSizes = new ArrayList<MediaSize>(other.mMediaSizes); 129 public @NonNull List<MediaSize> getMediaSizes() { 378 mMediaSizes = new ArrayList<MediaSize>(); 381 mMediaSizes.add(MediaSize.createFromParcel(parcel)); 468 * @param mediaSize A media size. 474 * @see PrintAttributes.MediaSize 476 public @NonNull Builder addMediaSize(@NonNull MediaSize mediaSize, boolean isDefault) [all...] |
PrintAttributes.java | 81 private @Nullable MediaSize mMediaSize; 93 mMediaSize = (parcel.readInt() == 1) ? MediaSize.createFromParcel(parcel) : null; 111 public @Nullable MediaSize getMediaSize() { 118 * @param mediaSize The media size. 122 public void setMediaSize(MediaSize mediaSize) { 123 mMediaSize = mediaSize; 414 builder.append("mediaSize: ").append(mMediaSize); 455 public static final class MediaSize { 456 private static final String LOG_TAG = "MediaSize"; [all...] |
/prebuilts/sdk/current/support/core-utils/ |
android-support-core-utils.jar | |
/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/ |
StorageItemPreferenceController.java | 410 Map<String, Long> map = details.mediaSize.get(userId); 418 Log.w(TAG, "MeasurementDetails mediaSize array does not have key for user " + userId);
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
PrivateVolumeSettings.java | 649 HashMap<String, Long> map = details.mediaSize.get(userId); 657 Log.w(TAG, "MeasurementDetails mediaSize array does not have key for user " + userId); [all...] |