[Private Space] Refactor settings page apis  to setup dynamic number of Profiles

Refactored settings page apis to make it compatible with UserManagerState class. For now in case of multiple available users , only personal/work tabs will be displayed according to their availability. In future the settings page will be completely generalized in order to show separate tab for any newly added profiles.

Bug: b/304436925

Test: - `atest android.photopicker.cts.PhotoPickerSettingsTest`

Merged-In: Ia094dfba9407258e774efb36dd0b2fccb3080456
Change-Id: Ia094dfba9407258e774efb36dd0b2fccb3080456
(cherry picked from commit 627ae21ade2632885e7238243ed5f6132ed673a2)
Merged-In: Ia094dfba9407258e774efb36dd0b2fccb3080456
6 files changed