Lines Matching refs:InvariantDeviceProfile
32 public class InvariantDeviceProfile {
86 public InvariantDeviceProfile() {
89 public InvariantDeviceProfile(InvariantDeviceProfile p) {
96 InvariantDeviceProfile(String n, float w, float h, int r, int c, int fr, int fc, int maapc,
119 InvariantDeviceProfile(Context context) {
133 ArrayList<InvariantDeviceProfile> closestProfiles =
135 InvariantDeviceProfile interpolatedDeviceProfileOut =
138 InvariantDeviceProfile closestProfile = closestProfiles.get(0);
171 ArrayList<InvariantDeviceProfile> getPredefinedDeviceProfiles() {
172 ArrayList<InvariantDeviceProfile> predefinedDeviceProfiles = new ArrayList<>();
175 predefinedDeviceProfiles.add(new InvariantDeviceProfile("Super Short Stubby",
177 predefinedDeviceProfiles.add(new InvariantDeviceProfile("Shorter Stubby",
179 predefinedDeviceProfiles.add(new InvariantDeviceProfile("Short Stubby",
181 predefinedDeviceProfiles.add(new InvariantDeviceProfile("Stubby",
183 predefinedDeviceProfiles.add(new InvariantDeviceProfile("Nexus S",
185 predefinedDeviceProfiles.add(new InvariantDeviceProfile("Nexus 4",
187 predefinedDeviceProfiles.add(new InvariantDeviceProfile("Nexus 5",
189 predefinedDeviceProfiles.add(new InvariantDeviceProfile("Large Phone",
193 predefinedDeviceProfiles.add(new InvariantDeviceProfile("Nexus 7",
196 predefinedDeviceProfiles.add(new InvariantDeviceProfile("Nexus 10",
198 predefinedDeviceProfiles.add(new InvariantDeviceProfile("20-inch Tablet",
247 ArrayList<InvariantDeviceProfile> findClosestDeviceProfiles(
248 final float width, final float height, ArrayList<InvariantDeviceProfile> points) {
251 ArrayList<InvariantDeviceProfile> pointsByNearness = points;
252 Collections.sort(pointsByNearness, new Comparator<InvariantDeviceProfile>() {
253 public int compare(InvariantDeviceProfile a, InvariantDeviceProfile b) {
263 InvariantDeviceProfile invDistWeightedInterpolate(float width, float height,
264 ArrayList<InvariantDeviceProfile> points) {
267 InvariantDeviceProfile p = points.get(0);
272 InvariantDeviceProfile out = new InvariantDeviceProfile();
274 p = new InvariantDeviceProfile(points.get(i));
282 private void add(InvariantDeviceProfile p) {
288 private InvariantDeviceProfile multiply(float w) {