package com.epson.cameracopy.printlayout;

import android.content.Context;
import android.graphics.Point;

import java.util.Locale;

/* compiled from: ManuscriptSize */
class AutoManuscriptSize extends IdManuscriptSize {
    public boolean displayLength() {
        return true;
    }

    public AutoManuscriptSize(DocumentSizeInfo documentSizeInfo) {
        super(documentSizeInfo);
    }

    public Point getBasePixelSize(int i) {
        Point dpiPaperSizeById = IdManuscriptSize.getDpiPaperSizeById(0, i);
        if (dpiPaperSizeById == null) {
            return null;
        }
        return dpiPaperSizeById;
    }

    public int getUnitType(Context context) {
        String country = Locale.getDefault().getCountry();
        return ("US".equals(country) || "USA".equals(country) || "CA".equals(country) || "CAN".equals(country)) ? 2 : 1;
    }

    public String getSizeName(Context context) {
        return context.getString(R.string.papersize_auto);
    }
}
