Merge the two separate preference test targets

Also fix up all the style isues in the tests.

Test: atest CtsPreferenceTestCases
Change-Id: I8e3ad30e3b0a6a34621403631134cec2832bc22a
66 files changed