Public isCommunalProfile() API

Introduces a public API for whether the context user is running in a
communal profile. This can be called without permission requirements,
provided that the context user is the caller.

Bug: 297103765
Test: atest android.multiuser.cts.UserManagerTest
Change-Id: I0fe47c107e114fb45ceeba672ef41dd4dcbdedb0
3 files changed