MCPcopy Index your code
hub / github.com/M66B/NetGuard / dips2pixels

Method dips2pixels

app/src/main/java/eu/faircode/netguard/Util.java:528–530  ·  view source on GitHub ↗
(int dips, Context context)

Source from the content-addressed store, hash-verified

526 }
527
528 public static int dips2pixels(int dips, Context context) {
529 return Math.round(dips * context.getResources().getDisplayMetrics().density + 0.5f);
530 }
531
532 private static int calculateInSampleSize(
533 BitmapFactory.Options options, int reqWidth, int reqHeight) {

Callers 3

AdapterLogMethod · 0.95
updateStatsMethod · 0.95
onApplyWindowInsetsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected