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

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

Issue 194843003: [Android] Lint the rest of pylib. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: no more linting *.py.svn-base files. Created 6 years, 9 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
« no previous file with comments | « build/android/pylib/device/adb_wrapper_test.py ('k') | build/android/pylib/flag_changer.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 import content_settings 7 from pylib import content_settings
8 8
9 9
10 def ConfigureContentSettingsDict(adb, desired_settings): 10 def ConfigureContentSettingsDict(adb, desired_settings):
11 """Configures device content setings from a dictionary. 11 """Configures device content setings from a dictionary.
12 12
13 Many settings are documented at: 13 Many settings are documented at:
14 http://developer.android.com/reference/android/provider/Settings.Global.html 14 http://developer.android.com/reference/android/provider/Settings.Global.html
15 http://developer.android.com/reference/android/provider/Settings.Secure.html 15 http://developer.android.com/reference/android/provider/Settings.Secure.html
16 http://developer.android.com/reference/android/provider/Settings.System.html 16 http://developer.android.com/reference/android/provider/Settings.System.html
17 17
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 'user_rotation': 0, 85 'user_rotation': 0,
86 }, 86 },
87 } 87 }
88 88
89 89
90 NETWORK_DISABLED_SETTINGS = { 90 NETWORK_DISABLED_SETTINGS = {
91 'settings/global': { 91 'settings/global': {
92 'airplane_mode_on': 1, 92 'airplane_mode_on': 1,
93 }, 93 },
94 } 94 }
OLDNEW
« no previous file with comments | « build/android/pylib/device/adb_wrapper_test.py ('k') | build/android/pylib/flag_changer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698