| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import logging | 5 import logging |
| 6 | 6 |
| 7 from pylib import content_settings | 7 from pylib import content_settings |
| 8 | 8 |
| 9 _LOCK_SCREEN_SETTINGS_PATH = '/data/system/locksettings.db' | 9 _LOCK_SCREEN_SETTINGS_PATH = '/data/system/locksettings.db' |
| 10 _ALTERNATE_LOCK_SCREEN_SETTINGS_PATH = ( | 10 _ALTERNATE_LOCK_SCREEN_SETTINGS_PATH = ( |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 | 166 |
| 167 # Ensure that we never get random dialogs like "Unfortunately the process | 167 # Ensure that we never get random dialogs like "Unfortunately the process |
| 168 # android.process.acore has stopped", which steal the focus, and make our | 168 # android.process.acore has stopped", which steal the focus, and make our |
| 169 # automation fail (because the dialog steals the focus then mistakenly | 169 # automation fail (because the dialog steals the focus then mistakenly |
| 170 # receives the injected user input events). | 170 # receives the injected user input events). |
| 171 ('anr_show_background', 0), | 171 ('anr_show_background', 0), |
| 172 | 172 |
| 173 ('lockscreen.disabled', 1), | 173 ('lockscreen.disabled', 1), |
| 174 | 174 |
| 175 ('screensaver_enabled', 0), | 175 ('screensaver_enabled', 0), |
| 176 |
| 177 ('skip_first_use_hints', 1), |
| 176 ]), | 178 ]), |
| 177 ('settings/system', [ | 179 ('settings/system', [ |
| 178 # Don't want devices to accidentally rotate the screen as that could | 180 # Don't want devices to accidentally rotate the screen as that could |
| 179 # affect performance measurements. | 181 # affect performance measurements. |
| 180 ('accelerometer_rotation', 0), | 182 ('accelerometer_rotation', 0), |
| 181 | 183 |
| 182 ('lockscreen.disabled', 1), | 184 ('lockscreen.disabled', 1), |
| 183 | 185 |
| 184 # Turn down brightness and disable auto-adjust so that devices run cooler. | 186 # Turn down brightness and disable auto-adjust so that devices run cooler. |
| 185 ('screen_brightness', 5), | 187 ('screen_brightness', 5), |
| 186 ('screen_brightness_mode', 0), | 188 ('screen_brightness_mode', 0), |
| 187 | 189 |
| 188 ('user_rotation', 0), | 190 ('user_rotation', 0), |
| 189 ]), | 191 ]), |
| 190 ] | 192 ] |
| 191 | 193 |
| 192 NETWORK_DISABLED_SETTINGS = [ | 194 NETWORK_DISABLED_SETTINGS = [ |
| 193 ('settings/global', [ | 195 ('settings/global', [ |
| 194 ('airplane_mode_on', 1), | 196 ('airplane_mode_on', 1), |
| 195 ('wifi_on', 0), | 197 ('wifi_on', 0), |
| 196 ]), | 198 ]), |
| 197 ] | 199 ] |
| OLD | NEW |