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

Side by Side Diff: build/android/pylib/device_settings.py

Issue 1315743004: [Android] Add a custom pylintrc for build/android/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix appurify_sanitized import-errors Created 5 years, 3 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 # 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
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 ]
OLDNEW
« no previous file with comments | « build/android/pylib/device/commands/install_commands.py ('k') | build/android/pylib/forwarder.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698