From b3b1ba8d4aa73c3c2945759c6632be6dd6ba7a80 Mon Sep 17 00:00:00 2001 From: Ken Wakasa Date: Tue, 28 Oct 2014 19:33:01 +0900 Subject: [PATCH] Fix unit test failures Change-Id: I1d66a0124961d524f83f7895a2c09e0ee2c1aab4 --- .../src/com/android/inputmethod/latin/common/Constants.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/src/com/android/inputmethod/latin/common/Constants.java b/common/src/com/android/inputmethod/latin/common/Constants.java index d3746423e..8f4a1e50d 100644 --- a/common/src/com/android/inputmethod/latin/common/Constants.java +++ b/common/src/com/android/inputmethod/latin/common/Constants.java @@ -16,6 +16,8 @@ package com.android.inputmethod.latin.common; +import com.android.inputmethod.annotations.UsedForTesting; + public final class Constants { public static final class Color { /** @@ -305,11 +307,13 @@ public final class Constants { public static final int SCREEN_METRICS_LARGE_TABLET = 2; public static final int SCREEN_METRICS_SMALL_TABLET = 3; + @UsedForTesting public static boolean isPhone(final int screenMetrics) { return screenMetrics == SCREEN_METRICS_SMALL_PHONE || screenMetrics == SCREEN_METRICS_LARGE_PHONE; } + @UsedForTesting public static boolean isTablet(final int screenMetrics) { return screenMetrics == SCREEN_METRICS_SMALL_TABLET || screenMetrics == SCREEN_METRICS_LARGE_TABLET;