Add tests for AtomicFile compatibility behaviors.

Bug: 151959443
Bug: 157092639
Test: atest android.util.AtomicFileTest
Change-Id: I84e4f7d482e516ee091170a31d6c2e61c65d8812
1 file changed