Commit Graph

49356 Commits

Author SHA1 Message Date
Edgar Wang
968c6531e8 Add feature provider for aware info.
The feature provider contains API that query aware info.
By default it's false.

Test: make -j RunSettingsRoboTests
Bug: 122574999
Change-Id: I7148258768a4dad1967fd0e0b23b79654e5a3d41
2019-01-18 14:06:27 -05:00
Beverly
d5428a5cd4 Settings for skip and silence gestures
Test: make RunSettingsRoboTests
Bug: 118388808
Change-Id: Ic906b42476283d245b423ef8842b6818cf7893a5
2019-01-16 15:37:47 -05:00
Fan Zhang
2a38d79137 Merge "Add Dynamic tiles" 2019-01-16 17:40:08 +00:00
TreeHugger Robot
c327e550f4 Merge "Schematize Display system properties" 2019-01-16 17:28:57 +00:00
TreeHugger Robot
a96d56c83a Merge changes I9cae479a,Ie642d780
* changes:
  Remove the multi-SIM bottom nav in network and internet v2 mode
  Add page listing multiple mobile networks
2019-01-16 09:11:17 +00:00
TreeHugger Robot
d24f404b70 Merge "Visual update: adjust button padding in conditional card" 2019-01-16 07:56:33 +00:00
TreeHugger Robot
7109b9a68b Merge "Update the layout of contextual card dismissal view" 2019-01-16 07:34:49 +00:00
Mill Chen
121768d723 Visual update: adjust button padding in conditional card
Decrease the padding of the button in the conditional full card.

Bug: 113451905
Test: visual
Change-Id: Ic625504e06b8764b9b737a8d5b613423e4d8d27e
2019-01-16 14:42:32 +08:00
Antony Sargent
33340366aa Remove the multi-SIM bottom nav in network and internet v2 mode
When a device has multiple SIMs, at the bottom of the SIM details page
we show a chooser with an icon for each SIM card. This UX design is
being supplanted by the new network and internet v2 design where there
is a list of networks you can get to from the Network & internet
homepage. So when the v2 mode is turned on, we don't want that bottom
navigation to appear.

Bug: 116349402
Test: visual (will remove existing tests for this feature eventually)
Change-Id: I9cae479a1f4e689adcc4f4262661b10edbbbf2d3
2019-01-15 21:59:20 -08:00
Antony Sargent
f4ee4ef3bf Add page listing multiple mobile networks
When a device supports simultaneous connection to multiple mobile
networks, we want the "Mobile network" entry on the Network & internet
page to list the number of active SIMs and when clicked, go to a page
that lists them all.

Bug: 116349402
Test: make RunSettingsRoboTests
Change-Id: Ie642d7801cda07dcbbe74d42c234db6605566be4
2019-01-15 21:57:39 -08:00
Mill Chen
1c3ed19a09 Remove mIsHalfWidth field from ContextualCard
mIsHalfWidth in ContextualCard is too generic to identify its
responsibility, it is used to hold the value of is_support_half from
database and used to decide the card width. Also, it limits the
relationship of CardType-to-Renderer not to be extended to one-to-many.

To deal with this, we replaced mIsHalfWidth with mViewType to implement
one-to-many relationship of CardType-to-Renderer, and removed all
related logic of mIsHalfWidth.

Bug: 121303357
Test: robotests, visual

Change-Id: I03e14392272194424f317d11bf9d0d794a6133f4
2019-01-16 04:01:45 +00:00
Yohei Yukawa
46285fe08f Allow IME-related Settings Activity to run for managed profiles
The following Activity classes in the Settings have been marked with
PRIMARY_PROFILE_CONTROLLED = true since work profile was originally
implemented [1].

 * Settings$AvailableVirtualKeyboardActivity
 * .inputmethod.InputMethodAndSubtypeEnablerActivity
 * UserDictionarySettingsActivity
 * .inputmethod.UserDictionaryAddWordActivity

This means that even if they are explicitly launched for a managed
profile user, they are always re-launched for the profile owner user

For instance, the following command just ends up launching the system
IME settings for the user 0, not user 10.

  adb shell am start --user 10 \
     -a "android.settings.INPUT_METHOD_SETTINGS"

In order to enable per-profile IME mode, we need to remove
PRIMARY_PROFILE_CONTROLLED from those classes.

Unfortunately, the settings is baked into ApplicationManifest.xml
hence we canot simply hook it up with the runtime flag
InputMethodSystemProperty.PER_PROFILE_IME_ENABLED.  Thus this CL
simply remove PRIMARY_PROFILE_CONTROLLED from those classes, with an
assumption that users basically will not see those Activity classes
running under managed profile users unless per-profile IME flag is
enabled.  This is because both LanguageAndInputSettingsActivity and
SettingsActivity are still marked PRIMARY_PROFILE_CONTROLLED=true.
This means that almost all user-visible entry points are still be
running with profile owner's user ID.

Note also that because of Settings redirection implemented with
Settings#CLONE_TO_MANAGED_PROFILE, what are shown on those Activity
classes are basically correct.  What they cannot do without enabling
per-profile IME is updating actual secure settings.

 [1]: If3ec3866778282219267481b8f419774f7f2c9de
      2513851ace

Bug: 120748696
Test: Manually done as follows.
  1. adb root
  2. adb shell setprop persist.debug.per_profile_ime 1
  3. adb reboot
  4. Install Test DPC.
  5. Enable managed profile with Test DPC.
  6. Open "Files" app for the main profile.
  7. Tap the search box to show AOSP Keyboard.
  8. Long tap the comma key, then "Lauguage" on the "Input options"
     dialog.
  9. Uncheck "Use system languages" then check "English (UK)".
 10. Open "Files" app for the work profile.
 11. Long tap the comma key, then "Lauguage" on the "Input options"
     dialog.
 12. Make sure that "Use system languages" is checked.
 13. adb shell am start --user 10 \
       -a android.settings.INPUT_METHOD_SETTINGS
 14. Make sure there is no Toast message
     "You're using this app outside of your work profile".
 15. adb shell am start --user 10 \
       -a android.settings.INPUT_METHOD_SUBTYPE_SETTINGS
 16. Make sure there is no Toast message.
 17. adb shell am start --user 10 \
       -a android.settings.USER_DICTIONARY_SETTINGS
 14. Make sure there is no Toast message.
Change-Id: I6ee1f226a616bb5f802f8e1d3b6f1dbbe492c6e5
2019-01-15 19:16:50 -08:00
jin.dong
a3a24be224 Add Dynamic tiles
Add new CategoryKey for screens below:
    about_legal.xml
    my_device_info.xml
    battery_saver_settings.xml

Bug: 113249409
Test: manual
Change-Id: I3cdad9b6ceeba0df3e0e9db4607daffcc5cbdc8b
2019-01-15 16:48:15 -08:00
Lei Yu
12c327a295 Merge changes I3ee2313c,Ibbf9eb2a
* changes:
  Remove divider line for battery card preference
  Add CardPreference in battery settings page
2019-01-15 21:45:42 +00:00
Ruchi Kandoi
8fc7b3e9d4 Merge "Don't start Android Beam Activity if feature is not supported" 2019-01-15 21:23:11 +00:00
Hai Shalom
8466751a79 Merge "[DPP] Fix usage of "DPP" public API to "Easy Connect"" 2019-01-15 20:46:44 +00:00
Kevin Chyn
028755f05e Merge "Add face settings video" 2019-01-15 19:50:44 +00:00
Daniel Solomon
6f8934bf3a Merge "Hide display white balance setting depending on color mode" 2019-01-15 19:29:16 +00:00
Sunil Ravi
00020f6605 Merge "WiFi: Add Tx and rx link speed in network details" 2019-01-15 18:43:58 +00:00
Johnson Lu
ec18560911 Merge "Implement WifiNetworkListFragment - Part 2" 2019-01-15 15:41:09 +00:00
Johnson Lu
e910c7af60 Merge "Implement WifiNetworkListFragment" 2019-01-15 15:40:54 +00:00
Johnson Lu
98bc9e5384 Implement WifiNetworkListFragment - Part 2
Uses connected access point to start DPP in Configurator-Initiator role directly.

Bug: 118794978
Test: RunSettingsRoboTests
Change-Id: Ie2d5661fdef3588bb597d4a7e4dfe5f981737c84
2019-01-15 13:27:47 +08:00
Johnson Lu
0adba0aa1b Implement WifiNetworkListFragment
1.Scan valid access points for DPP configurator by using WifiTracker.
2.Allow user to add a new network for DPP configurator.

Bug: 118794978
Test: RunSettingsRoboTests
Change-Id: I36504d28dec7d2c9091aa6c35ebe2495045681f7
2019-01-15 13:27:47 +08:00
Raff Tsai
f7e1a25ee6 Merge "Fix crash for UiBlockerController" 2019-01-15 04:01:38 +00:00
jackqdyulei
a5f1b5c629 Fix crash for UiBlockerController
1. Don't create UiBlockerController if there is no related controller
2. Don't update visibility if UiBlockerController is null
3. Use findPreference() from DashboardFragment, which already has null
check.

Change-Id: Iee24c64317fb9d5a1cf2076d25728af485d390c5
Fixes: 122807414
Fixes: 122805831
Test: RunSettingsRoboTests
2019-01-15 03:58:14 +00:00
Santiago Etchebehere
44ad7fc002 Merge "Add developer settings for theme overlays." 2019-01-15 03:24:17 +00:00
TreeHugger Robot
90f75b2f3f Merge "Move edit icon from header to action bar" 2019-01-15 02:16:59 +00:00
Kevin Chyn
51fe2e9c12 Add face settings video
Test: make -j56 RunSettingsRoboTests
Bug: 120991336

Change-Id: I13bc0114d37b97e7d61cafa6df04f2bcab893e81
2019-01-14 17:02:28 -08:00
TreeHugger Robot
873b04d43d Merge "Use role for App info default SMS shortcut." 2019-01-15 00:47:40 +00:00
TreeHugger Robot
d55f470009 Merge "Import translations. DO NOT MERGE" 2019-01-15 00:38:13 +00:00
Bill Yi
a1c5c64f6a Import translations. DO NOT MERGE
BUG:122535451
Change-Id: I08c4a70604bf85ba6eb3ee64bb7d08ffa5b5804b
Auto-generated-cl: translation import
2019-01-15 00:37:50 +00:00
Sunil Ravi
39d372e676 WiFi: Add Tx and rx link speed in network details
current "link speed" in UI is renamed to "Transmit link speed".
Also Added Receive link speed in network details.

Bug: 120497598
Test: Connected to AP and verified the Rx link speed in Network details.

Change-Id: I01cf7362a27ad78ddfaef68efae4d07cbd14fc55
2019-01-14 16:31:01 -08:00
Ruchi Kandoi
8b14531569 Don't start Android Beam Activity if feature is not supported
Test: manual; application using NFCSHARING intent
Bug: 117519147
Change-Id: I2caa881c73e3d5976b7b2666351e773e504a8925
2019-01-15 00:29:12 +00:00
TreeHugger Robot
05a39bc4ba Merge "Add metric for Tap & Pay Foreground Setting" 2019-01-15 00:09:33 +00:00
Hai Shalom
e046e8af2a [DPP] Fix usage of "DPP" public API to "Easy Connect"
All DPP public API and constants renamed to use Easy Connect,
which is the WFA public technology name. Update the settings code to use the
new API names.

Bug: 122851551
Test: atest DppManagerTest
Test: act.py -c ../WifiDppConfig.json -tc WifiDppTest
Change-Id: Ib531393a81526c468c978e31f1c62c5022245d55
2019-01-14 15:49:59 -08:00
Cosmo Hsieh
b2778bd40c Merge "Change intent filter string of NetworkRequestDialogActivity" 2019-01-14 22:55:20 +00:00
Hai Zhang
ac5a639aeb Use role for App info default SMS shortcut.
This change makes the default SMS shortcut in App info launch the new
default app UI based on roles, since we've migrated default SMS
mechanism.

Bug: 110557011
Test: atest DefaultAppShortcutPreferenceControllerBaseTest && atest DefaultSmsShortcutPreferenceControllerTest
Change-Id: I074e41433fe912309082f1e9c54bf74200297dd1
2019-01-14 14:10:34 -08:00
TreeHugger Robot
c1a638d672 Merge "Increase char count on Charging sounds string" 2019-01-14 21:56:38 +00:00
Amin Shaikh
6f8048b0e3 Add developer settings for theme overlays.
- Extracted a OverlayCategoryPreferenceController from EmulateDisplayCutoutCategoryPreferenceController
- Add 3 developer options for toggling categories of android theme customization

Change-Id: I36fcebca6d8a6f109833a2bbca984c31e643e912
Fixes: 122308197
Test: m RunSettingsRoboTests; manually toggling settings
2019-01-14 13:36:31 -08:00
Julia Reynolds
84db3da958 Merge "Update appearance of channel preferences" 2019-01-14 21:06:29 +00:00
TreeHugger Robot
f7a77d38d2 Merge "Update height of SliceView" 2019-01-14 20:24:53 +00:00
Fan Zhang
072ffe5b9c Merge "Revert "Disable failing test to unblock presubmit"" 2019-01-14 19:57:13 +00:00
Fan Zhang
966d842be0 Revert "Disable failing test to unblock presubmit"
This reverts commit 69cc84d22c.

Bug: 122824614
Test: robotests
Reason for revert: b/122824614

Change-Id: I5730b6c0a5e6d26fd54a8a1eff8d1eab3144a8ee
2019-01-14 19:56:24 +00:00
Fan Zhang
bb28fb4660 Merge changes I90fa8649,Idd9725dd
* changes:
  Disable failing test to unblock presubmit
  Add live caption preference in accessibility page.
2019-01-14 19:53:26 +00:00
Fan Zhang
69cc84d22c Disable failing test to unblock presubmit
Bug: 122824614
Test: rerun robotest
Change-Id: I90fa864906675c6d072d25b27b6a61f59933d324
2019-01-14 11:50:24 -08:00
Julia Reynolds
e88f7ab7a7 Update appearance of channel preferences
Test: atest
Change-Id: Ie58e7a27601ee23b1cd2caf990cc5c10006c0162
Fixes: 122671854
2019-01-14 13:04:22 -05:00
Beverly
bd81bb0e34 Increase char count on Charging sounds string
Test: manual
Change-Id: I5c4bedd6cf4f8ed85ae7df8ab78baf0ae3937dd5
Fixes: 122743016
2019-01-14 13:01:00 -05:00
Anton Hansson
de324b9b70 [automerger skipped] Merge "Make the Settings permission a required module" am: 480b56e3d6 am: bc79e6e6f3
am: 850fdb32e9 -s ours
am skip reason: change_id Ia2548355282498bceeffddb564de32a6cb857c66 with SHA1 16322a0271 is in history

Change-Id: Iab476273c6b332525177fe76f5f8d779ffe0f0c7
2019-01-14 08:23:41 -08:00
Anton Hansson
850fdb32e9 Merge "Make the Settings permission a required module" am: 480b56e3d6
am: bc79e6e6f3

Change-Id: I775d8b3a84ef2c1eccfb8d590e97ee1dcbeedf5d
2019-01-14 08:15:32 -08:00
Anton Hansson
bc79e6e6f3 Merge "Make the Settings permission a required module"
am: 480b56e3d6

Change-Id: I2316d82bb50778e6f524d708cc1711dcd69f1f9d
2019-01-14 08:11:21 -08:00