what-the-bank/sources/com/kofax/mobile/sdk/_internal/view/p.java

27 lines
772 B
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
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);
}
}