27 lines
772 B
Java
27 lines
772 B
Java
package com.kofax.mobile.sdk._internal.view;
|
|
|
|
import android.content.Context;
|
|
import android.util.TypedValue;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public class p {
|
|
public static boolean n(int i, int i2) {
|
|
if ((i == 0 || i == 2) && i2 == 2) {
|
|
return true;
|
|
}
|
|
return (i == 1 || i == 3) && i2 == 1;
|
|
}
|
|
|
|
public static int a(Context context, float f) {
|
|
return (int) TypedValue.applyDimension(1, f, context.getResources().getDisplayMetrics());
|
|
}
|
|
|
|
public static int b(Context context, float f) {
|
|
return (int) (f * context.getResources().getDisplayMetrics().density);
|
|
}
|
|
|
|
public static int c(Context context, float f) {
|
|
return (int) (f / context.getResources().getDisplayMetrics().density);
|
|
}
|
|
}
|