Add nullability annotations to Preference module

Bug: 157628612
Test: n/a

Change-Id: I59756ff51000a179366d66cc4d3571e461508fa2
12 files changed