Skip to content
Commit 44444444 authored by Alex Klyubin's avatar Alex Klyubin
Browse files

Move EntropyMixer I/O from main thread to I/O thread

This moves EntropyMixer I/O from the main thread to the I/O thread to
avoid blocking the main thread. The only time EntropyMixer performs
I/O on the main thread is during initialization of EntropyMixer which
occurs only during startup of SystemServer.

Test: manual: locally modified writeEntropy to log thread name and
      observed that writeEntropy is invoked only on the I/O thread
      ("android.io") except when invoked by EntropyMixer constructor.
Test: atest com.android.server.EntropyMixerTest
Bug: 70471586

Change-Id: Ic9f07f1c65583bb57d3095f9f8e7dde4ea6ae07d
parent a22a7c2f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment