VWOUtils { public static int getScreenWidth() { return Resources.getSystem().getDisplayMetrics().widthPixels; }  static boolean isValidVwoAppKey(String appKey); static String getDeviceUUID(VWOPreference vwoPreference); static String androidVersion(); static boolean isTablet(@NonNull Context context); static int applicationVersion(Context context); static double getRandomNumber(); static boolean checkForInternetPermissions(Context context); static Calendar getCalendar(); static boolean checkIfClassExists(String className); static String getDeviceName(); static boolean isApplicationDebuggable(@NonNull Context context); static int getScreenWidth(); static int getScreenHeight(); static double getScale(Context context); static String getDeviceCountryCode(Context context); @Nullable static String toMD5Hash(String message);  }
@Test @Config(qualifiers = "en-rUS-w320dp-h240dp-xhdpi") public void screenWidthXhdpiTest() { Assert.assertEquals(640, VWOUtils.getScreenWidth()); }
@Test @Config(qualifiers = "en-rUS-w320dp-h240dp-xxhdpi") public void screenWidthXxhdpiTest() { Assert.assertEquals(960, VWOUtils.getScreenWidth()); }
@Test @Config(qualifiers = "en-rUS-w320dp-h240dp-xxxhdpi") public void screenWidthXxxhdpiTest() { Assert.assertEquals(1280, VWOUtils.getScreenWidth()); }
@Test @Config(qualifiers = "en-rUS-w320dp-h240dp-ldpi") public void screenWidthLdpiTest() { Assert.assertEquals(240, VWOUtils.getScreenWidth()); }
@Test @Config(qualifiers = "en-rUS-w320dp-h240dp-mdpi") public void screenWidthMdpiTest() { Assert.assertEquals(320, VWOUtils.getScreenWidth()); }
@Test @Config(qualifiers = "en-rUS-w320dp-h240dp-hdpi") public void screenWidthHdpiTest() { Assert.assertEquals(480, VWOUtils.getScreenWidth()); }