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

Unified Diff: build/android/pylib/device_settings.py

Issue 181043008: Revert of Update android device provisioning script to set some reliability settings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/android/pylib/content_settings.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/device_settings.py
diff --git a/build/android/pylib/device_settings.py b/build/android/pylib/device_settings.py
deleted file mode 100644
index 031f740ad0b4a10bbe4af8848f30a0f85f91048c..0000000000000000000000000000000000000000
--- a/build/android/pylib/device_settings.py
+++ /dev/null
@@ -1,83 +0,0 @@
-# Copyright (c) 2014 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-import logging
-
-import content_settings
-
-
-def ConfigureContentSettingsDict(adb, desired_settings):
- """Configures device content setings from a dictionary.
-
- Many settings are documented at:
- http://developer.android.com/reference/android/provider/Settings.Global.html
- http://developer.android.com/reference/android/provider/Settings.Secure.html
- http://developer.android.com/reference/android/provider/Settings.System.html
-
- Many others are undocumented.
-
- Args:
- adb: An AndroidCommands instance for the device to configure.
- desired_settings: A dict of {table: {key: value}} for all
- settings to configure.
- """
- for table, key_value in sorted(desired_settings.iteritems()):
- settings = content_settings.ContentSettings(table, adb)
- for key, value in key_value.iteritems():
- settings[key] = value
- logging.info('\n%s %s', table, (80 - len(table)) * '-')
- for key, value in sorted(settings.iteritems()):
- logging.info('\t%s: %s', key, value)
-
-
-DETERMINISTIC_DEVICE_SETTINGS = {
- 'com.google.settings/partner': {
- 'use_location_for_services': 1,
- },
- 'settings/global': {
- # Disable "auto time" and "auto time zone" to avoid network-provided time
- # to overwrite the device's datetime and timezone synchronized from host
- # when running tests later. See b/6569849.
- 'auto_time': 0,
- 'auto_time_zone': 0,
-
- 'stay_on_while_plugged_in': 3,
-
- 'verifier_verify_adb_installs' : 0,
- },
- 'settings/secure': {
- # Ensure that we never get random dialogs like "Unfortunately the process
- # android.process.acore has stopped", which steal the focus, and make our
- # automation fail (because the dialog steals the focus then mistakenly
- # receives the injected user input events).
- 'anr_show_background': 0,
-
- # Ensure Geolocation is enabled and allowed for tests.
- 'location_providers_allowed': 'gps,network',
-
- 'lockscreen.disabled': 1,
-
- 'screensaver_enabled': 0,
- },
- 'settings/system': {
- # Don't want devices to accidentally rotate the screen as that could
- # affect performance measurements.
- 'accelerometer_rotation': 0,
-
- 'lockscreen.disabled': 1,
-
- # Turn down brightness and disable auto-adjust so that devices run cooler.
- 'screen_brightness': 5,
- 'screen_brightness_mode': 0,
-
- 'user_rotation': 0,
- },
-}
-
-
-NETWORK_DISABLED_SETTINGS = {
- 'settings/global': {
- 'airplane_mode_on': 1,
- },
-}
« no previous file with comments | « build/android/pylib/content_settings.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698