move examples to code use preference docs

Change-Id: I5a7e52940a005a7c28fdcd30e3ada884f235b6d2
Merge "move examples to code use preference docs"