Add CTS tests for Hardware RNG (/dev/hw_random).

* The tests assert that the HW RNG is configured correctly, if
  present.
* The tests do not check the quality of its output, because apps
  cannot access its output and the system components that can (init
  and EntropyMixer) do not rely on the HW RNG's quality.

Conflicts:
	tests/tests/permission/src/android/permission/cts/FileSystemPermissionTest.java

(cherry picked from commit 9968ac597c829da995320d0c0a7d583f38061a3c)

Change-Id: I3aa22c5f0e75926eac13a15d048a589c81432549
2 files changed