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 devil.android import device_errors | |
8 from pylib import constants | |
9 from pylib import content_settings | 7 from pylib import content_settings |
10 | 8 |
11 _LOCK_SCREEN_SETTINGS_PATH = '/data/system/locksettings.db' | 9 _LOCK_SCREEN_SETTINGS_PATH = '/data/system/locksettings.db' |
12 _ALTERNATE_LOCK_SCREEN_SETTINGS_PATH = ( | 10 _ALTERNATE_LOCK_SCREEN_SETTINGS_PATH = ( |
13 '/data/data/com.android.providers.settings/databases/settings.db') | 11 '/data/data/com.android.providers.settings/databases/settings.db') |
14 PASSWORD_QUALITY_UNSPECIFIED = '0' | 12 PASSWORD_QUALITY_UNSPECIFIED = '0' |
15 | 13 |
16 | 14 |
17 def ConfigureContentSettings(device, desired_settings): | 15 def ConfigureContentSettings(device, desired_settings): |
18 """Configures device content setings from a list. | 16 """Configures device content setings from a list. |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 ('user_rotation', 0), | 187 ('user_rotation', 0), |
190 ]), | 188 ]), |
191 ] | 189 ] |
192 | 190 |
193 NETWORK_DISABLED_SETTINGS = [ | 191 NETWORK_DISABLED_SETTINGS = [ |
194 ('settings/global', [ | 192 ('settings/global', [ |
195 ('airplane_mode_on', 1), | 193 ('airplane_mode_on', 1), |
196 ('wifi_on', 0), | 194 ('wifi_on', 0), |
197 ]), | 195 ]), |
198 ] | 196 ] |
OLD | NEW |