- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
30 lines
864 B
Java
30 lines
864 B
Java
package com.ironsource;
|
|
|
|
import android.content.Context;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlin.math.MathKt__MathJVMKt;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class na {
|
|
public static final na a = new na();
|
|
|
|
private na() {
|
|
}
|
|
|
|
private final int a(Context context, int i) {
|
|
int roundToInt;
|
|
roundToInt = MathKt__MathJVMKt.roundToInt(i / context.getResources().getDisplayMetrics().density);
|
|
return roundToInt;
|
|
}
|
|
|
|
public final int a(Context context) {
|
|
Intrinsics.checkNotNullParameter(context, "context");
|
|
return a(context, context.getResources().getDisplayMetrics().heightPixels);
|
|
}
|
|
|
|
public final int b(Context context) {
|
|
Intrinsics.checkNotNullParameter(context, "context");
|
|
return a(context, context.getResources().getDisplayMetrics().widthPixels);
|
|
}
|
|
}
|