Commit Graph

57280 Commits

Author SHA1 Message Date
Tsung-Mao Fang
a641cdae50 Fix bottom zone is transparent in add network page
Override clipToPadding and clipToChildren attributes
to prevent view from overlapping problem.

Change-Id: I3493d80d89950545ea74b76e25c6f55069f83f5e
Fix: 145332638
Test: visual
2019-11-28 17:25:08 +08:00
timhypeng
fdd98bd9ff Add base preference for new Bluetooth developer option
Bug: 142227996
Test: manual
Change-Id: I23c11072a326473bdc7ce169c6c2fb970a8f828d
2019-11-28 17:09:36 +08:00
Neil Fuller
5d49eeb3d5 [automerger skipped] Merge "Switch settings to use TimeDetector" am: d32eee26e3 am: 5ef64ad89b
am: 3296857f38 -s ours
am skip reason: change_id I671bf0e7e7364f64f1397d524c6277591eb4e22e with SHA1 9861696306 is in history

Change-Id: I0d02b8b75e2e5481946fead9520b14b7e21f8789
2019-11-28 01:04:26 -08:00
Sunny Shao
e5e82400ac Add page creation latency for updatePreferenceStates
- The updatePreferenceStates is called in the onResume. Here creates a new enum to
  record the elapsed time.

Bug: 137558156
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=com.android.settings.dashboard
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=com.android.settings.core
Change-Id: I02bdbeecd61fbc0082eea19ea64cbfe7541a6970
2019-11-28 17:00:31 +08:00
Neil Fuller
3296857f38 Merge "Switch settings to use TimeDetector" am: d32eee26e3
am: 5ef64ad89b

Change-Id: I8901a6595677380013cc3d063426a4dfead18b97
2019-11-28 00:59:44 -08:00
Neil Fuller
5ef64ad89b Merge "Switch settings to use TimeDetector"
am: d32eee26e3

Change-Id: I1f3c05b986768be9c29043eea51143d6ab22bd12
2019-11-28 00:54:40 -08:00
Neil Fuller
d32eee26e3 Merge "Switch settings to use TimeDetector" 2019-11-28 08:47:32 +00:00
govenliu
7b6b93b4f8 [Wi-Fi] Add one network request case for adding Wi-Fi for apps feature.
Handle adding one network case, add UI components and process saving/connecting flow.

Bug: 136472483
Test: Add unit test cases to test one network in list case and null list case, and also check if the SSID set correct or not.
Change-Id: I99f804a967575538c9dc3f1faabb2b507e92e558
2019-11-28 16:39:06 +08:00
TreeHugger Robot
913bde21ff Merge "Make some existing slices public." 2019-11-28 08:12:01 +00:00
TreeHugger Robot
c0662d26c2 Merge "Make some accessibility related slices public." 2019-11-28 08:12:01 +00:00
TreeHugger Robot
a9dcd4d726 Merge "Make some gesture related slices public." 2019-11-28 08:12:01 +00:00
TreeHugger Robot
97b9b3debe Merge "Make some device info related slices public." 2019-11-28 08:12:01 +00:00
TreeHugger Robot
ec422880b1 Merge changes from topic "expose_slices"
* changes:
  Make some display related slices public.
  Make all TogglePreferenceController slice-able.
2019-11-28 08:12:01 +00:00
Yi-Ling Chuang
2516848b30 Make some device info related slices public.
Only PreferenceControllers with isPublicSlice() set to true are exposed
to other apps. Others will be Settings only.

Bug: 141088937
Test: robotests
Change-Id: Id38fd0203a4efc812e30990491786b4d8aff8902
2019-11-28 14:38:30 +08:00
Yi-Ling Chuang
430c16c012 Make some existing slices public.
Only PreferenceControllers with isPublicSlice() set to true are exposed
to other apps. Others will be Settings only.

Bug: 141088937
Test: robotests
Change-Id: I5934e89bc1b268fdd44acd630621fa46987728ff
2019-11-28 14:32:15 +08:00
Yi-Ling Chuang
30a62c074c Make some accessibility related slices public.
Only PreferenceControllers with isPublicSlice() set to true are exposed
to other apps. Others will be Settings only.

Bug: 141088937
Test: robotests
Change-Id: If0fa79f7c270b10f8f1a47cb5f914d19566dedfb
2019-11-28 14:31:48 +08:00
Yi-Ling Chuang
1089f7c695 Make some gesture related slices public.
Only PreferenceControllers with isPublicSlice() set to true are exposed
to other apps. Others will be Settings only.

Bug: 141088937
Test: robotests
Change-Id: I0b54e752c5982f13193590db47dc3a84dde5311d
2019-11-28 14:31:00 +08:00
Yi-Ling Chuang
31719321af Make some display related slices public.
Only PreferenceControllers with isPublicSlice() set to true are exposed
to other apps. Others will be Settings only.

Bug: 141088937
Test: robotests
Change-Id: I2a36da4ac4bb14a4d2ac7b89ab2bb3ebf8e655f7
2019-11-28 14:29:33 +08:00
Yi-Ling Chuang
617458b07c Make all TogglePreferenceController slice-able.
All the descendants of TogglePreferenceController are now slice-able by
default, where every controller can still disable it by overriding this
value. Though all of them are now slice-able, doesn't necessarily means
they are exposed publicly as we set the default value of isPublicSlice()
to false. For those that want to be public ones will have to override
this value.

Bug: 141088937
Test: robotests
Change-Id: I2ea529c11f0177cd6c55754b632cd1fea1dcc48f
2019-11-28 14:12:41 +08:00
Stanley Wang
304957b1fb Merge "Add work profile items of Account page to dynamic index." 2019-11-28 03:45:58 +00:00
Raff Tsai
e7ff0891bb Merge "Separate personal/work tab in LocationSettings" 2019-11-27 16:42:03 +00:00
Neil Fuller
3c794261a5 Switch settings to use TimeDetector
Switch settings to use TimeDetector when setting the system clock rather
than using AlarmManager directly.

Bug: 140712361
Test: treehugger
Test: manual
Test: make -j30 RunSettingsRoboTests ROBOTEST_FILTER=TimePreferenceControllerTest
Test: make -j30 RunSettingsRoboTests ROBOTEST_FILTER=DatePreferenceControllerTest
Change-Id: I671bf0e7e7364f64f1397d524c6277591eb4e22e
Merged-In: I671bf0e7e7364f64f1397d524c6277591eb4e22e
(cherry picked from commit 9861696306)
2019-11-27 16:36:59 +00:00
Neil Fuller
2280fe5ce0 Merge "Switch settings to use TimeDetector" 2019-11-27 16:15:03 +00:00
Victor Hsieh
c8a1960cf4 Support installation of the new app source certificate
The new certificate can be installed from Settings ("Install a
certificate > App Source certificate").  The installation flow includes
a warning with user authorization to proceed, then a prompt for reboot
(now or later).

Installed certificate can be managed in "User credentials".  The name is
currently a hash of hex numbers.

Upon deletion, there will also be a promot for reboot (now or later).

Test: Only see the new setting entry if feature is enabled
Test: Install from Settings, see the expected file name in
      /data/misc/keysetore/user_0.  Reboot also works.
Test: Able to see the certificate in Settings after installed
Test: Able to delete the certificate, which triggers confirmation dialog
      to reboot.  Reboot works.
Test: add certificate, see dialog, "not now" / tapping elsewhere does
      nothing
Test: atest RestrictedEncryptionPreferenceControllerTest
Bug: 112038744

Change-Id: I7a4494ea0f243730df2212076588074d8774ae23
2019-11-27 07:59:22 -08:00
Raff Tsai
2f18d7d2cb Merge "Fix talkback speak wrong item" 2019-11-27 15:44:48 +00:00
Julia Reynolds
aceccce75c Reorganize notification Settings classes
The notification package was getting too big.

Test: make -j64 RunSettingsRoboTests
Fixes: 145224451
Change-Id: I25ba82f42f7a137d8adcce72dcf8089d0e018bdc
2019-11-27 10:02:13 -05:00
Neil Fuller
9861696306 Switch settings to use TimeDetector
Switch settings to use TimeDetector when setting the system clock rather
than using AlarmManager directly.

Bug: 140712361
Test: treehugger
Test: manual
Test: make -j30 RunSettingsRoboTests ROBOTEST_FILTER=TimePreferenceControllerTest
Test: make -j30 RunSettingsRoboTests ROBOTEST_FILTER=DatePreferenceControllerTest
Change-Id: I671bf0e7e7364f64f1397d524c6277591eb4e22e
2019-11-27 14:04:08 +00:00
Torbjorn Eklund
4f44b44168 Consider subId when loading Wfc string resources
Consider subId when loading string resources in screen
WifiCallingSettingsForSub and Wi-Fi Calling slice.

This ensures that correct string resources is loaded in multi sim
scenario when operators are using customized strings.

Bug: 129893058
Test: make RunSettingsRoboTests ROBOTEST_FILTER=WifiCallingPreferenceController
Test: make RunSettingsRoboTests ROBOTEST_FILTER=WifiCallingSliceHelper
Change-Id: Ia5b763d4b59f7e738cb741b778bb859884a85198
2019-11-27 14:35:07 +01:00
Peter_Liang
64f1374c64 Support the rich content for accessibility service (1/n)
Goal: 1. let third party developer can use html text that include from their local image file and
         animated image instead of only plain text to rich their content.
      2. Avoid malicious links made by third party developer

Action: 1. Add html, static text, and animated image preferences.
        2. Add android:AnimatedImageDrawable, and android:htmlDescription attributes.
        3. Fine-tune interface and integration
        4. Add custom tag filter

Bug: 136292241
Test: Maunal & make RunSettingsRoboTests
Change-Id: I82cd5319efb7faa1ff7e8354a279828fce5135b8
2019-11-27 20:42:39 +08:00
TreeHugger Robot
c050807cdc Merge changes from topic "query_nonpublic_slices"
* changes:
  Enable Settings Search to query private Slices.
  Add the impl for the ability to query non-public Slices
2019-11-27 11:09:31 +00:00
Stanley Wang
8015cbab9e Add work profile items of Account page to dynamic index.
- Add "Work profile settings" & "Remove work profile"
to dynamic index

Test: manual & robotests AccountPreferenceControllerTest
Change-Id: I122269927fd466bc8fbce1dd68faa372a6a7477b
Bugs: 69907442
2019-11-27 18:44:12 +08:00
TreeHugger Robot
0c247b82a5 Merge "Make Settings self-injected toggle switch searchable" 2019-11-27 10:02:33 +00:00
Jason Chiu
05599b89d2 Make Settings self-injected toggle switch searchable
- only skip ActivityTile
- skip items that has no static title

Bug: 132812768
Test: robotest
Change-Id: Idb3c111966c1dd96e2886aca2c7ead3b57ba119e
2019-11-27 17:11:26 +08:00
Raff Tsai
d91a1c3710 Fix talkback speak wrong item
Fixes: 145251855
Test: manual
Change-Id: I041d9fd6416e5ae5a12ea51fd8b70ca2f233f480
2019-11-27 16:55:22 +08:00
TreeHugger Robot
dff37d694d Merge "Minor code simplification." 2019-11-27 07:24:51 +00:00
TreeHugger Robot
190860a35e Merge "Focus remains on the button after turning on/off" 2019-11-27 05:01:09 +00:00
Bonian Chen
a6a4fb2c37 Merge "IMS: Grey out Wifi calling option when either sub is having call." am: 262b4f7434 am: 37e02742a4
am: b61f54519b

Change-Id: Ia60aa3828cb0b4a28e72ae43fb47a09982ae0b5f
2019-11-26 17:51:38 -08:00
Bonian Chen
b61f54519b Merge "IMS: Grey out Wifi calling option when either sub is having call." am: 262b4f7434
am: 37e02742a4

Change-Id: I81eac0ecd2948e7b5bd6b92ae90b349ab46675e7
2019-11-26 17:49:06 -08:00
Bonian Chen
37e02742a4 Merge "IMS: Grey out Wifi calling option when either sub is having call."
am: 262b4f7434

Change-Id: I59a18265dc053386854c6c4b4b30e90c287b34e8
2019-11-26 17:46:38 -08:00
Bonian Chen
262b4f7434 Merge "IMS: Grey out Wifi calling option when either sub is having call." 2019-11-27 01:35:23 +00:00
Roshan Pius
9f5fc3c6da Merge "Revert "Settings(wifi): Allow mainline wifi stack to use network request dialog"" 2019-11-26 19:22:18 +00:00
Bernardo Rufino
885403133f Add activity for MANAGE_APP_OVERLAY_PERMISSION intent in Settings
In order to support system use-cases, such as when the user wants do
revoke SYSTEM_ALERT_WINDOW (SAW) permission via notification, we are
introducing a new intent, MANAGE_APP_OVERLAY_PERMISSION (notice the
"APP_"), that directs the user to the app-specific screen to toggle SAW
permission.

This activity can only be started if the caller has
INTERNAL_SYSTEM_WINDOW permission, which sysui and the system have.

Test: atest TestManageOverlayPermissionIntents
      (cts in one of the topic CLs)
Test: Let an app draw on top of other apps, via its notification go to
      settings, verify that the screen for controlling such capability
      for the app is dispayed.
Bug: 135920175

Change-Id: I2f7e02a1242af7a22098359aeb230888fb8d4f3a
2019-11-26 17:31:13 +00:00
Jay Aliomer
c6dec5780a Merge "Fix Master: Add settings for scheduling dark theme" 2019-11-26 15:44:20 +00:00
Beverly
a30cb1158f Focus remains on the button after turning on/off
Test: manually test talkback
Fixes: 145181672
Change-Id: I16ceb81dd686e4a18354dfd464c7683ba94df79d
2019-11-26 15:37:42 +00:00
Alan Stokes
86cc060515 Minor code simplification.
Test: atest VerifyAppsOverUsbPreferenceControllerTest
Bug: 135751498
Change-Id: I51696147a211792e53cc6178e0912c760d667034
2019-11-26 11:39:22 +00:00
TreeHugger Robot
66b82d06ab Merge "Add new bit per sample dialog layout for new Bluetooth developer option" 2019-11-26 10:44:04 +00:00
Bonian Chen
573cda658e [automerger skipped] Merge "[Setting] Fix merge conflict" am: 67805d8e5e am: ec4e1a14e0
am: 42eec15834 -s ours
am skip reason: change_id I5dfb71ceb87a8f658ef7fbceacf460ef8d35593a with SHA1 0f844d168b is in history

Change-Id: I8254182adcae306506742d4f67cc03a1465c3293
2019-11-26 02:14:42 -08:00
Bonian Chen
42eec15834 Merge "[Setting] Fix merge conflict" am: 67805d8e5e
am: ec4e1a14e0

Change-Id: I716436a78316eb111fa53bb6834d81934f7830f1
2019-11-26 02:11:19 -08:00
Bonian Chen
ec4e1a14e0 Merge "[Setting] Fix merge conflict"
am: 67805d8e5e

Change-Id: Ie7f67b9a80efdceb1e3c5fd3054dd4eb71c4dcd8
2019-11-26 02:02:03 -08:00
TreeHugger Robot
50eb686fbd Merge "Add new LDAC quality dialog layout for new Bluetooth developer option" 2019-11-26 09:39:26 +00:00