java.lang.Object | |
↳ | cyanogenmod.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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
android.os.Parcelable
| |||||||||||
From interface
java.lang.Comparable
|
Get the AirplaneModeSettings
associated with the Profile
Get the BrightnessSettings
associated with the Profile
Get the settings for a PROFILE_CONNECTION_2G3G4G
by sub id.
subId | the sub id to lookup. Can be INVALID_SUBSCRIPTION_ID |
---|
Get the ConnectionSettings
for the Profile
Get the Profile.ExpandedDesktopMode
for the Profile
Get the name associated with the Profile
Get the Profile.NotificationLightMode
associated with the Profile
Get the RingModeSettings
for the Profile
Get the settings for a connection id in the Profile
Get the settings for a stream id in the Profile
Get the StreamSettings
for the Profile
Get the Profile.TriggerState
for a Profile.ProfileTrigger
with a given id
type | Profile.TriggerType |
---|---|
id | string id of Profile.ProfileTrigger |
Get all the Profile.ProfileTrigger
s for a given Profile.TriggerType
type | Profile.TriggerType |
---|
Profile.ProfileTrigger
s
Check if the given Profile
is a CONDITIONAL
Set the AirplaneModeSettings
associated with the Profile
Set the BrightnessSettings
associated with the Profile
Set the ConnectionSettings
for the Profile
Set the Profile.DozeMode
associated with the Profile
Set the Profile.ExpandedDesktopMode
for the Profile
Set the Profile.NotificationLightMode
associated with the Profile
Set the Profile.Type
for the Profile
type | 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
trigger | a Profile.ProfileTrigger
|
---|