Add APIs for creating an attribution context

Test: Follow up CL (tracked in the bug below)

bug:158792096

Change-Id: Iecc9e5e52ce130df0fedee18050e2779c4e5eef3
4 files changed