Adding and fixing API examples

Change-Id: Ie18eca3b051ea1435e526ea1c0c990d9f6f49695
Bug: 48724
Merge "Adding and fixing API examples"