Searched refs:randomWriteDevice (Results 1 – 2 of 2) sorted by relevance
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/ |
H A D | EntropyMixerTest.java | 48 private File randomWriteDevice; field in EntropyMixerTest 55 randomWriteDevice = createTempFile("urandomWrite"); in setUp() 80 new EntropyMixer(context, seedFile, randomReadDevice, randomWriteDevice); in testInitFirstBoot() 84 assertTrue(isDeviceSpecificInfo(Files.readAllBytes(randomWriteDevice.toPath()))); in testInitFirstBoot() 101 new EntropyMixer(context, seedFile, randomReadDevice, randomWriteDevice); in testInitNonFirstBoot() 105 byte[] dataWrittenToUrandom = Files.readAllBytes(randomWriteDevice.toPath()); in testInitNonFirstBoot()
|
/aosp14/frameworks/base/services/core/java/com/android/server/ |
H A D | EntropyMixer.java | 81 private final File randomWriteDevice; // separate from randomReadDevice only for testing field in EntropyMixer 114 EntropyMixer(Context context, File seedFile, File randomReadDevice, File randomWriteDevice) { in EntropyMixer() argument 117 this.randomWriteDevice = Preconditions.checkNotNull(randomWriteDevice); in EntropyMixer() 140 try (FileOutputStream out = new FileOutputStream(randomWriteDevice)) { in loadInitialEntropy() 147 Slog.e(TAG, "Error writing to " + randomWriteDevice, e); in loadInitialEntropy()
|