Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OboeTester: Add sustained perf to Dynamic CPU Load test #2156

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

robertwu1
Copy link
Collaborator

@robertwu1 robertwu1 commented Feb 6, 2025

@robertwu1 robertwu1 requested a review from philburk February 6, 2025 21:56
@@ -329,6 +334,17 @@ public void onClick(View view) {
mDrawChartAlways = checkBox.isChecked();
});

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
PowerManager powerManager = (PowerManager) getApplicationContext().getSystemService(Context.POWER_SERVICE);
if (powerManager.isSustainedPerformanceModeSupported()) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the feature is not suppported, you could disable and uncheck the checkbox?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants