| java.lang.Object | |
| ↳ | lineageos.app.Profile |
A class that represents a device profile.
A Profile can serve a multitude of purposes, allowing the creator(user)
to set overrides for streams, triggers, screen lock, brightness, various other
settings.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 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
|
||||||||||
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
| |||||||||||
|
| |||||||||||
|
| |||||||||||
Get the AirplaneModeSettings associated with the Profile
| Returns | |
|---|---|
AirplaneModeSettings |
|
Get the BrightnessSettings associated with the Profile
| Returns | |
|---|---|
BrightnessSettings |
|
Get the settings for a PROFILE_CONNECTION_2G3G4G by sub id.
| Parameters | |
|---|---|
subId |
int: the sub id to lookup. Can be INVALID_SUBSCRIPTION_ID |
| Returns | |
|---|---|
ConnectionSettings |
ConnectionSettings
|
Get the ConnectionSettings for the Profile
| Returns | |
|---|---|
Collection<ConnectionSettings> |
ERROR(/java.util.Collection
|
Get the Profile.DozeMode associated with the Profile
| Returns | |
|---|---|
int |
|
Get the Profile.ExpandedDesktopMode for the Profile
| Returns | |
|---|---|
int |
|
Get the name associated with the Profile
| Returns | |
|---|---|
String |
a string name of the profile |
Get the Profile.NotificationLightMode associated with the Profile
| Returns | |
|---|---|
int |
|
Get the RingModeSettings for the Profile
| Returns | |
|---|---|
RingModeSettings |
|
Get the LockSettings for the Profile
| Returns | |
|---|---|
LockSettings |
|
Get the settings for a connection id in the Profile
| Parameters | |
|---|---|
connectionId |
int |
| Returns | |
|---|---|
ConnectionSettings |
ConnectionSettings
|
Get the settings for a stream id in the Profile
| Parameters | |
|---|---|
streamId |
int |
| Returns | |
|---|---|
StreamSettings |
StreamSettings
|
Get the StreamSettings for the Profile
| Returns | |
|---|---|
Collection<StreamSettings> |
ERROR(/java.util.Collection
|
Get the Profile.TriggerState for a Profile.ProfileTrigger with a given id
| Parameters | |
|---|---|
type |
int: Profile.TriggerType |
id |
String: string id of Profile.ProfileTrigger |
| Returns | |
|---|---|
int |
Profile.TriggerState
|
Get all the Profile.ProfileTriggers for a given Profile.TriggerType
| Parameters | |
|---|---|
type |
int: Profile.TriggerType |
| Returns | |
|---|---|
ArrayList<Profile.ProfileTrigger> |
an array list of Profile.ProfileTriggers
|
Check if the given Profile is a CONDITIONAL
| Returns | |
|---|---|
boolean |
true if conditional |
Set the AirplaneModeSettings associated with the Profile
Set the BrightnessSettings associated with the Profile
| Parameters | |
|---|---|
descriptor |
BrightnessSettings |
Set the ConnectionSettings for the Profile
Set the Profile.DozeMode associated with the Profile
| Parameters | |
|---|---|
dozeMode |
int |
Set the Profile.ExpandedDesktopMode for the Profile
| Parameters | |
|---|---|
expandedDesktopMode |
int |
Set the Profile.NotificationLightMode associated with the Profile
| Parameters | |
|---|---|
notificationLightMode |
int |
Set the Profile.Type for the Profile
| Parameters | |
|---|---|
type |
int: a type of profile
|
Set the RingModeSettings for the Profile
Set the LockSettings for the Profile
Set the StreamSettings for the Profile
Set a Profile.ProfileTrigger on the Profile
| Parameters | |
|---|---|
trigger |
Profile.ProfileTrigger: a Profile.ProfileTrigger
|