[AAPM] Add abstract class for feature hooks

We add a class that platform features can extend, to provide custom aapm
behavior. Callbacks in the class are called whenever AAPM state changes.

Bug: 352420507
Test: atest AdvancedProtectionServiceTest AdvancedProtectionManagerTest
Flag: android.security.aapm_api
Change-Id: Icdf930de1c88fe209f00b0fe5f04184ec84bb8a8
4 files changed