diff options
author | Romain Guy <romainguy@android.com> | 2009-10-06 18:38:27 -0700 |
---|---|---|
committer | Romain Guy <romainguy@android.com> | 2009-10-06 18:38:27 -0700 |
commit | c404ed2be5d29c8932a3d69b53fea4653c9b868b (patch) | |
tree | 6f4fbc60d0c9ce94d8df099b28a9b0382a857928 /tests | |
parent | c131c5671965b69b0dee3e4afa3b3dd5e3c0c405 (diff) | |
download | frameworks_base-c404ed2be5d29c8932a3d69b53fea4653c9b868b.zip frameworks_base-c404ed2be5d29c8932a3d69b53fea4653c9b868b.tar.gz frameworks_base-c404ed2be5d29c8932a3d69b53fea4653c9b868b.tar.bz2 |
Fix failing unit test; the test was using a deprecated API making it fail on WVGA devices.
Change-Id: I407c7baa5606aaee875f51d6e96ce8a0117fc375
Diffstat (limited to 'tests')
-rw-r--r-- | tests/FrameworkTest/tests/src/com/android/frameworktest/view/BigCacheTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/FrameworkTest/tests/src/com/android/frameworktest/view/BigCacheTest.java b/tests/FrameworkTest/tests/src/com/android/frameworktest/view/BigCacheTest.java index b5e7473..02d5283 100644 --- a/tests/FrameworkTest/tests/src/com/android/frameworktest/view/BigCacheTest.java +++ b/tests/FrameworkTest/tests/src/com/android/frameworktest/view/BigCacheTest.java @@ -55,14 +55,14 @@ public class BigCacheTest extends ActivityInstrumentationTestCase<BigCache> { @MediumTest public void testDrawingCacheBelowMaximumSize() throws Exception { - final int max = ViewConfiguration.getMaximumDrawingCacheSize(); + final int max = ViewConfiguration.get(getActivity()).getScaledMaximumDrawingCacheSize(); assertTrue(mTiny.getWidth() * mTiny.getHeight() * 2 < max); assertNotNull(createCacheForView(mTiny)); } @MediumTest public void testDrawingCacheAboveMaximumSize() throws Exception { - final int max = ViewConfiguration.getMaximumDrawingCacheSize(); + final int max = ViewConfiguration.get(getActivity()).getScaledMaximumDrawingCacheSize(); assertTrue(mLarge.getWidth() * mLarge.getHeight() * 2 > max); assertNull(createCacheForView(mLarge)); } |