Commit Graph

60766 Commits

Author SHA1 Message Date
Julia Reynolds
2679bf5af0 clean up layout & styling of notification history
Test: manual
Fixes: 157161601
Fixes: 157162238
Fixes: 157160265
Fixes: 157161125
Fixes: 157160611
Fixes: 157158944
Change-Id: I9853426987549898b7996e9db43f7767e4c41641
2020-05-21 14:55:51 -04:00
Julia Reynolds
6d63120295 Merge "Switch from shortlabel to label" into rvc-dev 2020-05-21 18:53:24 +00:00
Bill Yi
cd9694bd2f Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I3f42416bc415f259eaaaf87aeb8d273523e47989
2020-05-21 11:53:23 -07:00
Eran Messeri
4f2090ddc0 Fix disappearing biometric prompt for the managed profile
In several circumstances, the ConfirmDeviceCredentialActivity
may be started while the device is being unlocked - particularly, when
the managed profile on the device has a separate challenge and the user
is attempting to start an activity associated with the locked, managed
profile. For example, by double-tapping a notification from the managed
profile or trying to reply to such a notification.

When the ConfirmDeviceCredentialActivity is started after the user has
entered the primary lockscreen challenge but before the keyguard is
fully dismissed, the activity may be started and immediately paused.
If the activity then calls finish() in onPause(), the biometric prompt
will disappear and the user will not have a chance to authenticate.

Fix the issue by only calling finish() in onPause() if the biometric
prompt has not been shown.

The flag indicating whether the activity is waiting for biometric
prompt or not needs to be cleared whenever the biometric prompt invokes
the callback, so that the activity will correctly call finish() if the
user does abort authentication.

Bug: 153689182
Bug: 141470517
Test: Manual, set up a work profile and double-tap a work notification
or try to Reply to a work GMail notification.

Change-Id: I9d3d3000b99d0eb4b44b90f5a0c2856db5f32144
2020-05-21 18:42:41 +01:00
Robert Luo
eb3f0f113f Merge "Add data collection and metrics for Media Output Switcher - 2/n" into rvc-dev am: 31f96bbcf6
Change-Id: Ice31fac929696d7b330372faf440739d76c187a8
2020-05-21 15:09:11 +00:00
Robert Luo
31f96bbcf6 Merge "Add data collection and metrics for Media Output Switcher - 2/n" into rvc-dev 2020-05-21 14:56:54 +00:00
TreeHugger Robot
e5149e6d6e Merge "Only show work profile notifs if enabled" into rvc-dev am: 43d6bd38f5
Change-Id: I2d53c265f20edb87420b68ae8fb8f34945e84e81
2020-05-21 12:21:19 +00:00
TreeHugger Robot
43d6bd38f5 Merge "Only show work profile notifs if enabled" into rvc-dev 2020-05-21 12:09:37 +00:00
Yanting Yang
6b457d882c Improve scrolling performance for App Info page
Root cause:
App info page will load application icon and content description in
onBindViewHolder(), it will query PackageManager and UserManager many
times in scrolling. Actually these actions will become time consuming if
there is a large app list.

Solution:
To relieve the janky scrolling, cache the icon and content description
if it has been loaded once.

Bug: 156527207
Test: manual test and robotests

Change-Id: I997179834511f86b3155c7d54989a873ac8e2559
2020-05-21 19:09:39 +08:00
Robert Luo
b7d1aa8efa Add data collection and metrics for Media Output Switcher - 2/n
Fixes: 147792668
Test: ./out/host/linux-x86/bin/statsd_testdrive Atom_ID
Change-Id: I1a34228da75c197663bcfe909c961e57665590d4
2020-05-21 18:00:50 +08:00
Stanley Wang
732514cd5f Fix the search result "Google Account" doesn't work.
- The "Google Account" item will launch the
  AccountDetailDashboardFragment.
  To launch the account detail page, we need the intent extras, account,
  account label and account type.
- Currently, SI doesn't support to index the intent extras, so we launch
  AccountDashboardFragment instead of AccountDetailDashboardFragment.

Fixes: 153626405
Test: manual test the search result and run Settings robotest
Change-Id: I081bd447c3f8422fb8859146b1ed4d7fcbc06810
2020-05-21 12:39:46 +08:00
paulhu
2efe482d95 Forward the ResultReceiver to Tethering Entitlement app
Bug: 156336264
Test: atest TetherProvisioningActivityTest
Change-Id: I37fcaddd5569223146ff9d6316d97f33312d8d24
2020-05-21 02:33:15 +00:00
Quang Luong
e9cbf1b698 Create new WifiEntryPreference if WifiEntry object changes
WifiSettings2 should create a new WifiEntryPreference for a cached
WifiEntry key in case the underlying object has changed, so that updates
to the WifiEntry are still being listened to. This may happen
in situations where WifiPickerTracker swaps WifiEntries objects with the same
key in the getWifiEntries() list, such as when handling network
suggestions (which are kept as separate objects from the non-suggestion
entries).

Bug: 157174114
Test: manual visual verification in wifi picker of adding a network
suggestion and seeing the entry summary for that SSID change to the
suggestion summary.

Change-Id: I9cfdae8207ae919e9e1cbf4c200eaa951a229b3f
Merged-In: I48ac11364b06887cc4059bcda863b456e206c9bd
2020-05-21 01:29:56 +00:00
Julia Reynolds
04d50c9709 Switch from shortlabel to label
Test: atest
Bug: 157140669
Change-Id: Iebcb2f076fef33b6f3ce16326af4e4c5c6770459
2020-05-20 14:23:43 -04:00
TreeHugger Robot
9bc9e2c839 Merge "Import translations. DO NOT MERGE" into mainline-prod 2020-05-20 16:51:08 +00:00
Julia Reynolds
39ceee9e00 Only show work profile notifs if enabled
Test: manual, turn off profile
Fixes: 157137055
Change-Id: Ic042300297c09d132e793d13fec18b23d24f2cc8
2020-05-20 12:29:39 -04:00
TreeHugger Robot
e3cfa7a097 Merge "Import translations. DO NOT MERGE" into mainline-prod 2020-05-20 16:17:37 +00:00
TreeHugger Robot
8d0c759433 Merge "Show subtext for previously connected devices on BT card" into rvc-dev am: 946e3adeda
Change-Id: Iee37ba875ce15ec7acb226bc26a35e5e1c769684
2020-05-20 14:32:11 +00:00
TreeHugger Robot
946e3adeda Merge "Show subtext for previously connected devices on BT card" into rvc-dev 2020-05-20 14:10:31 +00:00
Jason Chiu
07767907d5 Show subtext for previously connected devices on BT card
Fixes: 157089483
Test: visual, robotest
Change-Id: If4f2dec9df802a80a686827de7e61115e85d54a7
2020-05-20 17:02:43 +08:00
Amy Hsu
6b92b52a5f Merge "Move PeakRefreshRateController to Settings app" into rvc-dev am: a75dddbf9f
Change-Id: Ia74a18a6086c95170fc4bef8f659ae0264607f9e
2020-05-20 08:51:05 +00:00
Amy Hsu
a75dddbf9f Merge "Move PeakRefreshRateController to Settings app" into rvc-dev 2020-05-20 08:48:56 +00:00
TreeHugger Robot
88abeb6708 [automerger skipped] Merge "Import translations. DO NOT MERGE" into rvc-dev am: a47d90f59c -s ours
am skip reason: subject contains skip directive

Change-Id: Ib4e3ceaaabaead7188f297df9e4fc1698c9156d4
2020-05-20 08:43:48 +00:00
TreeHugger Robot
a47d90f59c Merge "Import translations. DO NOT MERGE" into rvc-dev 2020-05-20 08:30:46 +00:00
TreeHugger Robot
0272c1b879 [automerger skipped] Merge "Import translations. DO NOT MERGE" into rvc-dev am: 77429677b2 -s ours
am skip reason: subject contains skip directive

Change-Id: I8ee2bf5a38e361763b87219eaa41ceeb7b8146ab
2020-05-20 07:07:33 +00:00
TreeHugger Robot
77429677b2 Merge "Import translations. DO NOT MERGE" into rvc-dev 2020-05-20 07:05:37 +00:00
TreeHugger Robot
58ff46bf01 Merge "Add corresponding code for the new NR condition" into rvc-dev am: dde2bfd209
Change-Id: I9fc7267632331b2439016090a81cc534f04b755e
2020-05-20 06:43:45 +00:00
TreeHugger Robot
dde2bfd209 Merge "Add corresponding code for the new NR condition" into rvc-dev 2020-05-20 06:26:52 +00:00
tim peng
8bb7e7ccef Merge "Talkback focus doesn't move in liner order after tapping selected option in switch device panel" into rvc-dev am: 16d773c865
Change-Id: Iac3ad6b3403fcbca12b5d0e93ba232a5f60ae642
2020-05-20 03:21:55 +00:00
Bill Yi
6a73e08db2 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I7014134d629aa12a8320e20927a4f48a2ab2c5bc
2020-05-20 03:16:42 +00:00
tim peng
16d773c865 Merge "Talkback focus doesn't move in liner order after tapping selected option in switch device panel" into rvc-dev 2020-05-20 02:59:37 +00:00
Bill Yi
0b64a3c313 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I8da4907d040c026bcad0cff8e5d4475986cc230e
2020-05-20 01:56:49 +00:00
Bill Yi
256c0f4b45 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: Ia96f45852b5b909190a4ac6b473cad2cb0fe2193
2020-05-20 01:19:29 +00:00
Bill Yi
82a42b03b7 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I2f65dcbc9e07e3e6a349bb7567c2c8d5deec421a
2020-05-20 00:41:50 +00:00
Julia Reynolds
fbc9f0b887 Fix button selected state am: d1d32e7d22
Change-Id: Ic937ddd727bb4ff4a4c5e09db6244a9af1c6957b
2020-05-19 21:51:33 +00:00
Julia Reynolds
66e1f90b0d Guard against NPE am: 663cc934d9
Change-Id: Ibb3d12fcf9d5a49b7fae96dfc5bf2468961f33f4
2020-05-19 21:02:26 +00:00
Julia Reynolds
d1d32e7d22 Fix button selected state
Test: toggle between buttons with a11y service
Fixes: 156990411
Change-Id: I421c6d2e9762794bdf8a090db8a808678ffd8a1c
2020-05-19 14:36:32 -04:00
Julia Reynolds
2920a7eca7 Map local context menu to the correct item am: a1c0269027
Change-Id: I27d46dc730a95bfb050e0298585ded5821857f9d
2020-05-19 17:44:38 +00:00
Julia Reynolds
663cc934d9 Guard against NPE
Test: manual, launching screen from locked lock screen
Fixes: 153569405
Change-Id: Idb546f58623792d94a43ca6659f7498de3beec94
2020-05-19 12:29:24 -04:00
Julia Reynolds
a1c0269027 Map local context menu to the correct item
Since the position of the item might have changed
if ohter items were deleted

Test: manual: delete item 0/2, item 2/2, then 1/2
Fixes: 156716919
Change-Id: I989a064d3a3f89b5c2692d5a687d759c842e080c
2020-05-19 11:22:31 -04:00
Amy Hsu
7730d301b7 Move PeakRefreshRateController to Settings app
1. 60/90 Hz switch
2. Allow DeviceConfig to change default refresh rate

bug: 139869828
bug: 137064289
bug: 132750102

Test: Check refresh rate is expected.
Change-Id: Ia6a3e3717fd8845c7177e55b70bc6d2d952d58f3
2020-05-19 21:45:33 +08:00
SongFerngWang
414f8b8fe6 Add corresponding code for the new NR condition
Bug: 155915216
Test: make RunSettingsRoboTests ROBOTEST_FILTER=\
EnabledNetworkModePreferenceControllerTest (Pass)

Change-Id: I171ea0a8adc621ad5e9dc5cd2090e431b923e775
2020-05-19 12:32:57 +00:00
Mehdi Alizadeh
2f0290bdc6 Reads back inset scale value from config.xml instead of hardcoded values am: a5eb615038
Change-Id: I1a38121908af7a115c68a0b8b5c5f7b75d34bd8d
2020-05-19 03:54:39 +00:00
Tim Peng
17e2e158c4 Talkback focus doesn't move in liner order after tapping selected option in switch device panel
-Not to reflash UI to reset the focus order
-Reflash UI only when connect() is valid

Bug: 156336275
Test: make -j42 RunSettingsRoboTests
Change-Id: Ibb20252167ba13309065e4672f92cdf645661a0e
2020-05-19 10:08:14 +08:00
Mehdi Alizadeh
a5eb615038 Reads back inset scale value from config.xml instead of hardcoded values
Bug: 152364314
Test: Manual
Change-Id: Ie8de080a26bda3b63c6a5ee726e7adce2d3859f7
2020-05-18 23:51:48 +00:00
Peter_Liang
f5aeaa1abd Refine the banner view for accessibility features. am: f78e7f5976
Change-Id: Iba2be741a971f02040dc046be65f160f3855ae0e
2020-05-18 13:45:23 +00:00
Peter_Liang
f78e7f5976 Refine the banner view for accessibility features.
1. Replace the video with the gif for Magnification.
2. Replace the static image with the gif for Color Inversion.

Bug: 153293657
Bug: 155946967
Test: manual test & robo test
Change-Id: Ic51c0ec45c10a7fd2b9f1ffb63865ebc764846ba
Merged-In: Ic51c0ec45c10a7fd2b9f1ffb63865ebc764846ba
2020-05-18 19:04:28 +08:00
Jason Hsu
0a91626842 Merge "Change to use CaseMap.toTitle in shortcut type summary to handle different locale." into rvc-dev am: 966f0527ac
Change-Id: I4624eb86e508ce77b8d660b48eb1200321e57040
2020-05-18 09:51:18 +00:00
Jason Hsu
966f0527ac Merge "Change to use CaseMap.toTitle in shortcut type summary to handle different locale." into rvc-dev 2020-05-18 09:37:25 +00:00
TreeHugger Robot
dbd6a2edcd Merge "Add bottom padding of profile group on Bluetooth detail page" into rvc-dev am: 3370e0304f
Change-Id: I4af0284e8aa68b99c6a9a664e5be5859b93e19cd
2020-05-18 09:12:24 +00:00