Commit Graph

171 Commits

Author SHA1 Message Date
Shuzhen Wang
a9578a2b8a Settings: Add logical camera default switch
Add a switch to make logical camera as default camera (with smaller
camera id) for 3rd party app.

Test: Manually using Settings app, RunSettingsRoboTests
Bug: 77600932
Change-Id: I86c7f3b9830fb376b324621feb31cdfac59faee5
Merged-In: I86c7f3b9830fb376b324621feb31cdfac59faee5
2018-05-18 23:01:03 +00:00
Hansong Zhang
f4f68c4117 Remove developer menu: AVDTP delay reports/inband ringing
Bluetooth AVDTP delay reports and inband ringing are used by default.
Developer option menu no longer used.

Bug: 79610154
Test: robolectric
Change-Id: I67fe10808151f101fc7e891f75953f8539255026
Merged-In: I67fe10808151f101fc7e891f75953f8539255026
2018-05-12 00:22:16 +00:00
Lei Yu
68ffee1a7d Remove the old battery page
This CL removes PowerUsageSummaryLegacy and PowerUsageAdvancedLegacy
and their related layouts and strigns.

Also remove the isBatteryV2Enabled method in feature provider.

Change-Id: I1ec30f713d733ed24335a3e698fb515751232948
Fixes: 76027338
Test: robo test still pass
2018-03-26 17:40:10 -07:00
Doris Ling
dc72c9dc52 Add a default preference controller for developer options.
- some of the preferences in the developer options page do not have a
preference controller associated with them, because they are simple
preference that do not require any update on the preference state at
all. However, they still need to be enabled/disabled when the master
developer options switch is turned on/off. Adding a default controller
to be used for these preferences.

Bug: 73955632
Test: manual
Change-Id: Ifb757dee2e5957d266ebb6ad5421d8ff9adbb142
2018-03-01 17:41:04 -08:00
Fan Zhang
f7843adabd More renaming in DashboardFragment
getPreferenceControllers() -> createPreferenceControllers() for the same
reason as in ag/3647936

Bug: 73668763
Test: robotests
Change-Id: I97670a91a2a38d1c844d1b9d37f4222c5e6f45a0
2018-02-23 16:56:30 -08:00
Fan Zhang
aed8994f6f Rename Indexable::getAllPreferenceControllers.
To getPreferenceControllers. "all" is redundant. Then internally, the
old getPreferenceControllers() is renamed to
createPreferenceControllers() to emphasize the controllers are created
from code (versus the ones created from xml).

Bug: 73668763
Test: robotest
Change-Id: Ifec46aefdc2a418031c8e152028b30bdcd396fc7
2018-02-23 16:37:28 -08:00
TreeHugger Robot
9cb0c7f3e2 Merge "Setting to control UI mode" 2018-02-23 04:24:54 +00:00
Hansong Zhang
f4a168d0fe Add developer menu entry to enable Bluetooth AVDTP delay reports
Bug: 32755225
Test: Manual test with a device that supports delay reporting;
Robolectric tests
Change-Id: I8f121dd7f94bce3a07deb9cb23c698829cbecd96
2018-02-22 21:54:44 +00:00
Lucas Dupin
3dd45c0ef6 Setting to control UI mode
Fixes: 69783413
Test: tests/robotests/src/com/android/settings/development/DarkUIModePreferenceControllerTest.java
Change-Id: I600036bfb8893f8b1bd93de81c10808bf24998ad
2018-02-21 13:41:20 -08:00
Jerry Zhang
502471726a Add UsbDefaultFragment and tests
Replace old USB screen in developer options with
UsbDefaultFragment.

Test: pass
Bug: 62876645
Change-Id: I8428a2814b7e1abd7d0fa9fa9980dbc02cfa0034
2018-02-21 19:16:23 +00:00
Derek Sollenberger
7c26e3388c Revert "Add developer setting to set the default GPU renderer."
This reverts commit f91b036177.

Test: compile only
Reason for revert: removing the option from the developer settings UI

Change-Id: I8ce6d6e07e3495e973f9020b4f4f16f8c2075788
2018-01-25 14:19:35 -05:00
Jong Wook Kim
8c6d8daaf0 Wifi MAC Randomization: Developer Options
Add a toggle in developers options to turn on/off connected MAC
randomization for devices that support the feature. This toggle will be
only available on devices that support dynamic MAC address change and
indicated as so in config_wifi_support_connected_mac_randomization.

The toggle changes Settings Global value WIFI_CONNECTED_MAC_RANDOMIZATION_ENABLED, which the Wifi Framework will listen for to start/stop randomizing MAC addresses.

Bug: 67908229
Bug: 71548421
Test: RunSettingsRoboTests, manual testing checking that the toggle comes up and changes global settings value.
Change-Id: Ia4749cd0a1e7466333bd8a93088d6340f6567e25
2018-01-22 02:16:31 -08:00
Ningyuan Wang
60b8bee9f7 Remove roam scan developer settings
Bug: 72116071
Test: compile
Test: m RunSettingsRoboTests -j40
Test: Manually check developer options, make sure roam scan is
gone

Change-Id: Ibe9fb31551962ecbb2979d0d2ec6885838b919b7
2018-01-18 10:18:53 -08:00
Andrew Sapperstein
df8607a204 Merge "Ignore first crash dialog." 2018-01-18 17:49:33 +00:00
Adrian Roos
27e3e302e7 Merge "DisplayCutout: Add emulation option to DeveloperSettings" 2018-01-18 17:31:59 +00:00
Andrew Sapperstein
5cd4956276 Ignore first crash dialog.
By default, no longer show the crash dialog the first time an app
crashes. Instead, only multiple crashes will show by default.

Add developer setting to control behavior, so app developers can
ensure dialog always shows when a crash happens.

Bug: 63703353, 70640329
Test: robotests, manual crashing with a test app
Change-Id: I2e625ed147dafc188b28c52eb1b9cee6b2330d50
2018-01-17 13:28:03 -08:00
Adrian Roos
db9d09793f DisplayCutout: Add emulation option to DeveloperSettings
Bug: 65689439
Test: Go to Developer Settings > Toggle "Emulate display with a cutout"
Change-Id: Id3387c026df9868d42e0a7b0d7e623115f41452b
2018-01-17 20:02:57 +01:00
Michael Plass
caee81b4e5 Remove aggressive handover developer setting
The developer setting for aggressive wifi to mobile data handover is no
longer used by the framework, so it should not appear in the settings UI.

Bug: 72063774
Test: m RunSettingsRoboTests -j40
Test: Manually check developer options, make sure aggressive handover is gone
Change-Id: Id54c714fc82fb27abc0b4116f2b82be68cc6d151
2018-01-17 09:59:02 -08:00
Hansong Zhang
b2730b7b10 Add developer menu to select max number of connected audio devices
The new developer option modifies the system property
"persist.bluetooth.maxconnectedaudiodevices"; it allows testing
multiple connected devices for A2DP, AVRCP, HFP.

Bug: 71603731
Test: Robolectric test
Change-Id: Ie7887065f98193f4f34e0ff4a29959694e417124
2018-01-05 12:28:20 -08:00
gomo
e17c9406f0 Add developer option control for GNSS duty cycling.
Duty Cycling control is one of the Android-P features. In Android-P the
feature will be controlled via a Developer Options button with no
public API. This CL adds the button and connect it to be read via the
GnssLocationProivder to control the feature. Also Roboelectric test
added.

Bug: 64009176
Test: Tested on Android-P build and works as expected. Also Robolectric test added.
Change-Id: Icc0d259719cf9034caf2c78c790b914ab4292597
2017-12-13 17:29:23 -08:00
Fan Zhang
e0b0e9f902 Refactor help menu stuff into a controller
This is a clean up to action bar menu item pattern, we will use the same
pattern to build search icon on all pages in a later change.

Bug: 68814716
Test: robotests
Change-Id: Iedd3ec263e8ccb63ed75ec7a95b28c00878b1de4
2017-11-29 15:51:04 -08:00
TreeHugger Robot
d7054033cb Merge "rename v2 controllers" 2017-11-27 19:48:36 +00:00
jeffreyhuang
e89dc36149 rename v2 controllers
- Remove v2 postfix on controllers now that v1 dev options have been
 removed

Bug: 34203528
Test: compiles and tests still pass
Change-Id: I7a937e914293233801dbd1d9536b7b47ee70d591
2017-11-22 16:51:15 -08:00
Fan Zhang
831f6302ee Disable DevelopmentSettingsActivity by default
And if for any reason monkey user is able to enter develop option page,
we show nothing.

And update some test to sdk 26.

Change-Id: I3f985e7fe14bd290db73b8c46dd817591df02015
Fixes: 68707778
Test: robotests
2017-11-22 14:44:23 -08:00
Cody Northrop
4e7f57add6 Rootless GPU Debug
This commit adds a new toggle to allow loading GPU debug
layers from the base directory of debuggable applications.

It corresponds to changes to GraphicsEnvironment to look for
matching application and layer list, which are then selectively
passed on the native components, like the Vulkan loader.

Bug: 63708377
Test: Manual, CTS tests to follow
Change-Id: Id6917a7b34df4a37905fafe08a4c1b6503abbb0c
2017-11-17 11:06:35 -07:00
jeffreyhuang
d5e2fd30a9 Rename dev options xml file
Bug: 34203528
Test: Builds and tests still pass
Change-Id: I7990555244c57f526b8609ae11154683aed889be
2017-11-13 16:58:55 -08:00
TreeHugger Robot
63a97d9c50 Merge "Prevent monkey from opening dev options" 2017-11-13 22:46:21 +00:00
jeffreyhuang
c28b3fda70 Prevent monkey from opening dev options
Change-Id: I155fc195a9f800ff099592244f13228646f586ac
Fixes: 68707778
Test: Manual with settings app
2017-11-13 12:48:16 -08:00
Chien-Yu Chen
5d242df477 Settings: Remove HAL HDR+ option
Test: RunSettingsRoboTests
Bug: 68223991
Change-Id: I9eb27c7e205ac005c6a71726e125ed1e512da33b
2017-11-10 14:32:25 -08:00
Jeffrey Huang
9e1570c5f3 Merge "Introduce MemoryUsagePreferenceController" 2017-10-26 16:51:07 +00:00
Daniel Finchelstein
9c07451786 Rename files for consistency.
Test: CTS (API2 tests)

Change-Id: I8a079525499e564c438281fcf5b3ef8333925f5b
2017-10-24 17:54:33 -07:00
jeffreyhuang
c57f18d853 Introduce MemoryUsagePreferenceController
- Use a hard-coded preference instead of injecting
 so that search can index the preference
 - Create a preference controller to update the summary

Change-Id: Idf822ccbb7a58a9ec561d5c2c2948dbc3272544f
fixes: 36463051
Test: Manual using settings app
2017-10-24 16:52:36 -07:00
jeffreyhuang
bb451a38e4 Cleanup Controllers/Fragments
- Removed extra comments in DevelopmentSettingsDashboardFragment
 - Removed unused methods from controllers
 - Clean up method names

Bug: 34203528
Test: make RunSettingsRoboTests -j40
Change-Id: Ibe7a0921926d4529f62a212b55c8fa2f14ecb18b
2017-10-18 15:03:41 -07:00
TreeHugger Robot
db60997f2a Merge changes I145c2e25,I4abe87dd,I86575d17,I90a0e583
* changes:
  Introduce BluetoothAudioQualityPreferenceCtrl
  Introduce BluetoothAudioChannelModePreferenceCtrl
  Introduce BluetoothAudioBitsPerSamplePrefCtrl
  Introduce BluetoothAudioCodecPreferenceController
2017-10-17 21:31:27 +00:00
jeffreyhuang
af3ec754dd Introduce BluetoothAudioQualityPreferenceCtrl
- Create new BluetoothAudioQualityPreferenceController
 - Create controller inside the DashboardFragment
 - Port logic from DevelopmentSettings into the controller

Bug: 34203528
Test: make RunSettingsRoboTests -j40
Change-Id: I145c2e2554f5e9f5e7cfa79b3f6198a8b81105ec
2017-10-17 11:18:06 -07:00
jeffreyhuang
2335b1fef4 Introduce BluetoothAudioChannelModePreferenceCtrl
- Create new BluetoothAudioChannelModePreferenceController
 - Create controller inside the DashboardFragment
 - Port logic from DevelopmentSettings into the controller

Bug: 34203528
Test: make RunSettingsRoboTests -j40
Change-Id: I4abe87dd70be83c8b3cf2a3ad43b8856a01eadbb
2017-10-17 11:18:06 -07:00
jeffreyhuang
483dc97998 Introduce BluetoothAudioBitsPerSamplePrefCtrl
- Create new BluetoothAudioBitsPerSamplePreferenceController
 - Create controller inside the DashboardFragment
 - Port logic from DevelopmentSettings into the controller

Bug: 34203528
Test: make RunSettingsRoboTests -j40
Change-Id: I86575d171a005f62f731d9001f08ddcf976ad826
2017-10-17 11:18:06 -07:00
jeffreyhuang
0ef326f365 Introduce BluetoothAudioCodecPreferenceController
- Create new BluetoothAudioCodecPreferenceController
 - Create controller inside the DashboardFragment
 - Port logic from DevelopmentSettings into the controller

Bug: 34203528
Test: make RunSettingsRoboTests -j40
Change-Id: I90a0e58328196315fccbecd6d46531b4f0fcaef1
2017-10-17 11:18:06 -07:00
Jeffrey Huang
826ee4d38f Merge "Restore state when activity is destroyed" 2017-10-16 17:15:29 +00:00
Jeffrey Huang
79c1a5944f Merge "Introduce FreeformWindowsPreferenceController" 2017-10-16 17:15:17 +00:00
Jeffrey Huang
82f8a3deba Merge "Introduce BackgroundProcessLimitPreferenceCtrl" 2017-10-16 17:15:05 +00:00
Jeffrey Huang
914d623984 Merge "Introduce ProfileGpuRenderingPreferenceController" 2017-10-16 17:14:53 +00:00
Jeffrey Huang
092d5ba968 Merge "Introduce SetGpuRendererPreferenceController" 2017-10-16 17:14:41 +00:00
jeffreyhuang
4eda4b3152 Restore state when activity is destroyed
- Fixes a bug where developer options would be re-enabled
 if the activity is destroyed when the master switch is set to
 off

Bug: 34203528
Test: Manual testing with screen rotation
Change-Id: Ic8e04858f6e3dd2353feb6fa94be9f420ab8adbb
2017-10-13 15:44:03 -07:00
Jeffrey Huang
32b0f1d486 Merge "Introduce DebugNonRectClipOperationsPreferenceCtrl" 2017-10-13 16:51:39 +00:00
Jeffrey Huang
acb142ce3f Merge "Introduce SecondaryDisplaysPreferenceController" 2017-10-13 16:51:18 +00:00
Jeffrey Huang
0d37dad0fd Merge changes Ie94273c2,Ib9230336
* changes:
  Introduce AbstractBluetoothA2dpPreferenceCtrl
  Refactor A2dpStore to be a non-static object
2017-10-13 16:50:56 +00:00
jeffreyhuang
027da329fe Introduce AbstractBluetoothA2dpPreferenceCtrl
- Refactor BluetoothAudioSampleRatePreferenceController into
  AbstractBluetoothA2dpPreferenceController
 - Make it easier to implement future bluetooth a2dp preferences

Bug: 34203528
Test: make RunSettingsRoboTests -j40
Change-Id: Ie94273c2b97504f4fb63f11b1afc21abc6944ffb
2017-10-12 16:47:30 -07:00
jeffreyhuang
de895f3857 Introduce FreeformWindowsPreferenceController
- Create new FreeformWindowsPreferenceController
 - Create controller inside the DashboardFragment
 - Port logic from DevelopmentSettings into the controller

Bug: 34203528
Test: make RunSettingsRoboTests -j40
Change-Id: I3ce3731a2aa37833c635e5bdaaf452491b2dadb5
2017-10-12 14:03:27 -07:00
jeffreyhuang
a8ae717599 Introduce BackgroundProcessLimitPreferenceCtrl
- Create new BackgroundProcessLimitPreferenceController
 - Create controller inside the DashboardFragment
 - Port logic from DevelopmentSettings into the controller

Bug: 34203528
Test: make RunSettingsRoboTests -j40
Change-Id: Ie151f911917ecf9401df8f3daa6f10770b7a571e
2017-10-12 12:29:28 -07:00