| 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 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 Loading... |
| 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 } |
| OLD | NEW |