summaryrefslogtreecommitdiffstats
path: root/services/tests
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2011-11-17 13:24:32 -0800
committerNick Kralevich <nnk@google.com>2011-11-17 13:29:58 -0800
commit6967cbc959b079fa7e4411360e40e2a0ed65da29 (patch)
treee8519aff6adfdf00e384e7ce3a576001f74dfa4a /services/tests
parent131ed03f30ff85b00ee4f3cd01108f9742c356c2 (diff)
downloadframeworks_base-6967cbc959b079fa7e4411360e40e2a0ed65da29.zip
frameworks_base-6967cbc959b079fa7e4411360e40e2a0ed65da29.tar.gz
frameworks_base-6967cbc959b079fa7e4411360e40e2a0ed65da29.tar.bz2
Rename EntropyService to EntropyMixer
EntropyService implies that this program provides entropy to other programs, and is misleading. The EntropyMixer class is designed purely to stir the existing entropy pool with some possibily random-ish data, and carryover entropy across device reboots. Change-Id: I086cd339a3b652d32371521e61e1b1f555ce2280
Diffstat (limited to 'services/tests')
-rw-r--r--services/tests/servicestests/src/com/android/server/EntropyMixerTest.java (renamed from services/tests/servicestests/src/com/android/server/EntropyServiceTest.java)6
1 files changed, 3 insertions, 3 deletions
diff --git a/services/tests/servicestests/src/com/android/server/EntropyServiceTest.java b/services/tests/servicestests/src/com/android/server/EntropyMixerTest.java
index 636ba21..21a8ec2 100644
--- a/services/tests/servicestests/src/com/android/server/EntropyServiceTest.java
+++ b/services/tests/servicestests/src/com/android/server/EntropyMixerTest.java
@@ -23,9 +23,9 @@ import android.test.AndroidTestCase;
import java.io.File;
/**
- * Tests for {@link com.android.server.EntropyService}
+ * Tests for {@link com.android.server.EntropyMixer}
*/
-public class EntropyServiceTest extends AndroidTestCase {
+public class EntropyMixerTest extends AndroidTestCase {
public void testInitialWrite() throws Exception {
File dir = getContext().getDir("testInitialWrite", Context.MODE_PRIVATE);
@@ -34,7 +34,7 @@ public class EntropyServiceTest extends AndroidTestCase {
assertEquals(0, FileUtils.readTextFile(file, 0, null).length());
// The constructor has the side effect of writing to file
- new EntropyService("/dev/null", file.getCanonicalPath());
+ new EntropyMixer("/dev/null", file.getCanonicalPath());
assertTrue(FileUtils.readTextFile(file, 0, null).length() > 0);
}