Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
platform_frameworks_base-old
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Farzin Kazemzadeh
platform_frameworks_base-old
Commits
7730e57d
Commit
7730e57d
authored
8 years ago
by
Ruchi Kandoi
Committed by
Android (Google) Code Review
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge "PowerManager: Adds Documentation to isSustainedPerformanceModeSupported()" into nyc-dev
parents
83e50327
c45908d1
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/java/android/os/PowerManager.java
+13
-3
13 additions, 3 deletions
core/java/android/os/PowerManager.java
with
13 additions
and
3 deletions
core/java/android/os/PowerManager.java
+
13
−
3
View file @
7730e57d
...
...
@@ -1021,9 +1021,19 @@ public final class PowerManager {
}
/**
* Returns True if the device supports Sustained Performance Mode.
* Applications Should check if the device supports this mode, before
* using {@link android.view.Window#setSustainedPerformanceMode}.
* This function checks if the device has implemented Sustained Performance
* Mode. This needs to be checked only once and is constant for a particular
* device/release.
*
* Sustained Performance Mode is intended to provide a consistent level of
* performance for prolonged amount of time.
*
* Applications should check if the device supports this mode, before using
* {@link android.view.Window#setSustainedPerformanceMode}.
*
* @return Returns True if the device supports it, false otherwise.
*
* @see android.view.Window#setSustainedPerformanceMode
*/
public
boolean
isSustainedPerformanceModeSupported
()
{
return
mContext
.
getResources
().
getBoolean
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment