Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(896)

Side by Side Diff: platform_tools/android/apps/visualbench/src/main/java/com/skia/VisualBenchActivity.java

Issue 1215023017: Update Android Apps to use gradle (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: onlyIf Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright 2015 Google Inc. 2 * Copyright 2015 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 package com.skia; 8 package com.skia;
9 9
10 import android.app.Activity; 10 import android.app.Activity;
(...skipping 29 matching lines...) Expand all
40 // Disable backlight to keep the system as cool as possible 40 // Disable backlight to keep the system as cool as possible
41 // TODO make this configurable 41 // TODO make this configurable
42 Settings.System.putInt(getContentResolver(), Settings.System.SCREEN_BRIG HTNESS_MODE, 42 Settings.System.putInt(getContentResolver(), Settings.System.SCREEN_BRIG HTNESS_MODE,
43 Settings.System.SCREEN_BRIG HTNESS_MODE_MANUAL); 43 Settings.System.SCREEN_BRIG HTNESS_MODE_MANUAL);
44 44
45 WindowManager.LayoutParams lp = getWindow().getAttributes(); 45 WindowManager.LayoutParams lp = getWindow().getAttributes();
46 lp.screenBrightness = 0; // 0f - no backlight 46 lp.screenBrightness = 0; // 0f - no backlight
47 getWindow().setAttributes(lp); 47 getWindow().setAttributes(lp);
48 } 48 }
49 } 49 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698