Add logic to expose new Settings.ANY_UNSYNCED flag.

Part of fixing http://b/2084771
2 files changed