summaryrefslogtreecommitdiffstats
path: root/core/tests
diff options
context:
space:
mode:
authorJake Hamby <jhamby@google.com>2012-02-29 14:00:12 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-02-29 14:00:12 -0800
commitefba344b5a7b20e400daf5f41b2fbd688337f789 (patch)
tree975a8df7a4810e39027535f68ecb814db3b5d59c /core/tests
parent0c49f03a0429b5c0c4a619256f7bca86a4997ae8 (diff)
downloadframeworks_base-efba344b5a7b20e400daf5f41b2fbd688337f789.zip
frameworks_base-efba344b5a7b20e400daf5f41b2fbd688337f789.tar.gz
frameworks_base-efba344b5a7b20e400daf5f41b2fbd688337f789.tar.bz2
Revert "Add support for CMAS warning notifications over CDMA." I'll submit again when the app change is ready.
This reverts commit 0c49f03a0429b5c0c4a619256f7bca86a4997ae8
Diffstat (limited to 'core/tests')
-rw-r--r--core/tests/coretests/src/com/android/internal/util/BitwiseStreamsTest.java21
1 files changed, 0 insertions, 21 deletions
diff --git a/core/tests/coretests/src/com/android/internal/util/BitwiseStreamsTest.java b/core/tests/coretests/src/com/android/internal/util/BitwiseStreamsTest.java
index 306f58f..a304b68 100644
--- a/core/tests/coretests/src/com/android/internal/util/BitwiseStreamsTest.java
+++ b/core/tests/coretests/src/com/android/internal/util/BitwiseStreamsTest.java
@@ -133,25 +133,4 @@ public class BitwiseStreamsTest extends AndroidTestCase {
long end = android.os.SystemClock.elapsedRealtime();
Log.d(LOG_TAG, "repeated encode-decode took " + (end - start) + " ms");
}
-
- @SmallTest
- public void testExpandArray() throws Exception {
- Random random = new Random();
- int iterations = 10000;
- int[] sizeArr = new int[iterations];
- int[] valueArr = new int[iterations];
- BitwiseOutputStream outStream = new BitwiseOutputStream(8);
- for (int i = 0; i < iterations; i++) {
- int x = random.nextInt();
- int size = (x & 0x07) + 1;
- int value = x & (-1 >>> (32 - size));
- sizeArr[i] = size;
- valueArr[i] = value;
- outStream.write(size, value);
- }
- BitwiseInputStream inStream = new BitwiseInputStream(outStream.toByteArray());
- for (int i = 0; i < iterations; i++) {
- assertEquals(valueArr[i], inStream.read(sizeArr[i]));
- }
- }
}