added in API level 2
package

lineageos.app

Classes

Profile A class that represents a device profile. 
Profile.DozeMode Doze modes available on a device  
Profile.ExpandedDesktopMode Expanded desktop modes available on a device  
Profile.LockMode Lock modes of a device  
Profile.NotificationLightMode Notification light modes available on a device  
Profile.ProfileTrigger A Profile.ProfileTrigger is a Profile.TriggerType which can be queried from the OS  
Profile.TriggerState Various trigger states associated with a Profile.TriggerType  
Profile.TriggerType Available trigger types on the device, usually hardware  
Profile.Type A Profile type  
ProfileManager

The ProfileManager allows you to create Profiles and ProfileGroups to create specific behavior states depending on triggers from hardware devices changing states, such as:

     WiFi being enabled
     WiFi connecting to a certain AP
     Bluetooth connecting to a certain device
     Bluetooth disconnecting to a certain device
     NFC tag being scanned
 

Depending on these triggers, you can override connection settings, lockscreen modes, media stream volumes and various other settings.