27775 Commits

Author SHA1 Message Date
Lucas Dupin
6997660506 Merge "Fix the behavior of keyguard bouncer in a corner case" 2018-11-26 10:12:05 +00:00
yuanjiahsu
2c69b0b487 Modify feature flag of Personal Safety
1.Remove feature flag and let Emergency Dialer Shortcut feature always
enabled.
2.Add feature flag for Safety Hub (the bug ID to clean up this feature flag is b/118848485).

Test: Manually
Bug: 117128459
Bug: 118809382
Change-Id: I0a3819629bc579d93c682451abdf271d0b36bf59
2018-11-19 13:12:28 +00:00
Wang, ArvinX
3b9dae8c20 Unable to input PIN with hardware keyboard
After typing a wrong PIN, the EditText view will be disabled and lose the focus,
as a result, inputs from hardware keyboard won't be sent to PIN EditText.

Test: 1. Enable PIN lock
Test: 2. Lock the device with Power key
Test: 3. Enter wrong PIN from a physical keyboard
Test: 4. Try to enter PIN again with physical keyboard

Bug: 119287260

Change-Id: I04df523c19c99bef75ea481b44154f7ba2270689
Signed-off-by: Wang, ArvinX <arvinx.wang@intel.com>
Signed-off-by: Guobin Zhang <guobin.zhang@intel.com>
2018-11-09 08:01:58 +00:00
Wang, ArvinX
a2d94c581d Fix the behavior of keyguard bouncer in a corner case
With Android Automotive, there's a cancel button on the bouncer
that allows return to UserSwitcher. Due to specific implementation of
CarStatusBarKeyguardViewManager, all KeyguardViews will be destroyed.
With below steps, user can input PIN the 6th time. But it won't unlock
the device even if it's the correct PIN.

Test: 1. Set screen lock with pin, password or pattern
Test:    in Settings ->Security & location
Test: 2. Lock the device with Power key
Test: 3. Input wrong pin/password for 5 times, 30s timeout is prompted
Test: 4. Quickly click cancel button and select the same user
Test: 5. User can input PIN/password again

bug: 119068682

Change-Id: Ia182902d38de93ad13cb39c333a1294764905e1f
Signed-off-by: Wang, ArvinX <arvinx.wang@intel.com>
Signed-off-by: Guobin Zhang <guobin.zhang@intel.com>
2018-11-09 05:11:48 +00:00
Evan Laird
3ef1990e7c Merge "SystemUI: Add tuner interface to StatusBarSignalPolicy" 2018-11-05 17:57:44 +00:00
Selim Cinek
a256c415f3 Added new members as SystemUI owners
Bug: 118673253
Test: see owners file
Merged-In: Ie49a091bf16d184f86264badf2d99fe13066eecb
Change-Id: Ie49a091bf16d184f86264badf2d99fe13066eecb
2018-11-01 21:07:11 +00:00
Fabian Kozynski
d7a04c8965 Fixes context for tiles without longClick
QSTile can declare whether it doesn't support (has no effect) long click
and then TalkBack will not report it as an available option.

Test: manual & atest
Change-Id: Iec21181f4308c7c8c4962f191fa0787e053ae944
Merged-In: Iec21181f4308c7c8c4962f191fa0787e053ae944
Fixes: 117921787
2018-11-01 13:18:21 +00:00
Bill Yi
5d857fde55 Import translations. DO NOT MERGE
Change-Id: Ie1dfa01427b8ab87208789b65055be3175f8a7e3
Auto-generated-cl: translation import
2018-10-27 21:44:04 -07:00
Bill Yi
a9ab592e8f Import translations. DO NOT MERGE
Change-Id: Ie2e07cbd6d038a83b2f05b315b647a35872f6daf
Auto-generated-cl: translation import
2018-10-24 23:18:42 -07:00
Bill Yi
04d53e2611 Merge "Merge pi-dr1-dev to aosp-master" 2018-10-19 21:19:30 +00:00
Niklas Lindgren
2132595d59 Remove resources for 4G/LTE/LTE+ icons
CarrierConfig values have been added to better support MVNOs.
Remove the legacy resources.

Test: Make sure that marlin builds with the new carrier configs.
Bug: 113309357
Bug: 113309356
Change-Id: I3b0af46282a4b7fc8487acfb75b5dbbb7f41d316
Merged-In: I3b0af46282a4b7fc8487acfb75b5dbbb7f41d316
2018-10-19 18:23:44 +00:00
Hall Liu
5bd6b4d570 Merge "Add dynamic support for 4G/LTE/LTE+ icons"
am: 0c9254ee66

Change-Id: Ie5841b4e86231517f724948389ff2b819d8245ad
2018-10-18 14:56:21 -07:00
Hall Liu
0c9254ee66 Merge "Add dynamic support for 4G/LTE/LTE+ icons" 2018-10-18 20:36:06 +00:00
Selim Cinek
5013f1c08c Merge "Fix overlap between operator name and heads-up notification"
am: a3608c9116

Change-Id: If09c46bba04bca2e2cda99173bc53a2d7e8488e7
2018-10-15 15:56:13 -07:00
Selim Cinek
a3608c9116 Merge "Fix overlap between operator name and heads-up notification" 2018-10-15 22:15:19 +00:00
Tetsutoki Shiozawa
f1e0f7adad Fix overlap between operator name and heads-up notification
The title of heads-up notification was shown incompletely
becaue it's covered by operator name.
To fix this issue, the operator name should be hidden
when a heads-up notification is shown.

Fixes: b/116533819
Test: atest SystemUITests
Test: manual - enable config_showOperatorNameInStatusBar
               and show a heads-up notification

Merged-In: Id3318cd7cb2c9b6950392fadd11d02ab873d84c5
Change-Id: Id3318cd7cb2c9b6950392fadd11d02ab873d84c5
2018-10-15 20:52:21 +00:00
Beverly Tai
c59c6ca9a1 Merge "Prevent NFE in SystemUI when parsing invalid int"
am: 9d7e1fe726

Change-Id: Ic015f0f87d7d8044701d9326afdd71893879f3b0
2018-10-15 07:59:13 -07:00
Beverly Tai
9d7e1fe726 Merge "Prevent NFE in SystemUI when parsing invalid int" 2018-10-15 13:27:41 +00:00
Bill Yi
35aebf1bc4 Import translations. DO NOT MERGE
Change-Id: Iddad0d8a7bdf790a85d4ff8204e3b6465ea97514
Auto-generated-cl: translation import
2018-10-14 22:28:32 -07:00
Niklas Lindgren
a02964d26f Add dynamic support for 4G/LTE/LTE+ icons
Move configuration of show4gForLte and hideLtePlus from resource
to CarrierConfig, to better support MVNOs.

These icons will be updated upon receiving CarrierConfigChange or
in case the default data SIM changes.

Test: Add different carrier config values for a carrier and change carrier.
Tested on both single and dual sim devices.
Bug: 113309357
Bug: 113309356
Change-Id: Ibd34e8948cc5d519626b935545d2c2fb1f771220
2018-10-08 11:56:13 +02:00
Beverly
503ae21287 DO NOT MERGE Synchronize ZenModeControllerImpl callbacks
Test: manual
Bug: 115688927
Change-Id: Ib47913c7b5522c40405fadd97d570d5f197f71dc
2018-10-03 12:36:04 -04:00
Neil Fuller
a447164ae5 Merge "Remove unused / invalid import"
am: 9073dc4839

Change-Id: Icd39d49c9fae7c11837434fdcbe5603310034ad3
2018-10-02 15:28:39 -07:00
Edward Savage-Jones
9a17312da5 Prevent NFE in SystemUI when parsing invalid int
A user can change the sysui_rounded_content_padding setting via adb.

If the value set is not an integer, SystemUI will end up in an exception
loop.

Bug: 117152006
Test: No crash when running:
      adb exec-out settings put secure sysui_rounded_content_padding a
Change-Id: I49cace6087effae20170eab9175fc84ebcd21781
2018-10-02 16:41:01 +00:00
Neil Fuller
4ff327141d Remove unused / invalid import
NavigationBarCompat imports sun.misc.Resource though
it doesn't need it.

Bug: 113148576
Test: build only
Change-Id: I26d6e0b3d9a8948333fdf9f3659b87b3b46a75d5
2018-10-01 11:32:36 +01:00
Jordan Liu
737945fbd5 Merge "Dismiss SIM lock page after correct SIM"
am: eb1d6d91af

Change-Id: I01551d9d8e14e7a9bd4ef5178b571beee032735b
2018-09-26 17:09:44 -07:00
Jordan Liu
eb1d6d91af Merge "Dismiss SIM lock page after correct SIM" 2018-09-26 23:42:55 +00:00
Jordan Liu
b4299d92e6 Dismiss SIM lock page after correct SIM
Previously the criteria was to dismiss if:
1. There is no pin/password/pattern set AND
2. the lockscreen is disabled.

This behaved incorrectly in the case where the lockscreen is enabled
but there is no pin/password/pattern set.

We fix the condition so that now we dismiss the SIM lock if:
1. There is no pin/password/pattern set OR
2. the lockscreen is disabled.

Fixes: 115780994
Test: manual
Change-Id: I88da896add635126934eb0ed22e617ac2607f15a
2018-09-26 12:59:57 -07:00
Yuanjia Hsu
b04fcd5842 Merge "Add feature flag in Settings."
am: 55b91f6d93

Change-Id: I27aa24563358fe4467de3aa3660825f1d8bd73d5
2018-09-17 07:09:28 -07:00
Yuanjia Hsu
55b91f6d93 Merge "Add feature flag in Settings." 2018-09-17 13:43:08 +00:00
Shaotang Li
e6ce88ca3c Merge "Add extra data when starting emergency dialer intent"
am: 0b925f85c0

Change-Id: I9dc0b8711534c1dcdc5715a888a87fb4730f5061
2018-09-16 22:27:03 -07:00
Shaotang Li
0b925f85c0 Merge "Add extra data when starting emergency dialer intent" 2018-09-17 04:14:51 +00:00
Evan Laird
3832515acf Merge "Leave spaces between Operator name and Clock in StatusBar"
am: 375af769e6

Change-Id: If2c314f7dc98ffe4d461c90263503e66f72ada48
2018-09-13 12:24:02 -07:00
Shigeki Yokomichi
52a11bbe15 Leave spaces between Operator name and Clock in StatusBar
In StatusBar, there are no spaces between Operator name and Clock,
so leaving spaces to improve design.

Bug: 114133664
Test: Manual, enable operator name in status row
config_showOperatorNameInStatusBar, insert sim card with operator name,
watch status row.

Change-Id: I1a2e33436ed50d429ae4b1769d0a72d501233a22
2018-09-13 11:39:30 +00:00
yuanjiahsu
88363e9b2f Add feature flag in Settings.
User can enable/disable faster emergency phone call feature by switching
this flag from Settings, and the old flag switched by adb command was
replaced by this feature flag.

Test: Manually
Bug: 113539598
Change-Id: Ie38f4657bfd76d8386ce2a075f4ec5d0038f5c3d
2018-09-11 15:04:51 +08:00
Shaotang Li
f9a69e2d24 Add extra data when starting emergency dialer intent
This data is used for emergency dialer metrics to determine where user
enters emergency dialer.

Bug: 111378820
Test: manual
Change-Id: Id2b6ea71d32ccfb913c84b3c44cc4752acb6fd99
Merged-In: Id2b6ea71d32ccfb913c84b3c44cc4752acb6fd99
2018-09-06 05:28:32 +00:00
Alison Cichowlas
b7a11d3748 Add process-lifecycle-owner-initializer to tests.
Bug: 112587252
Bug: 114073652
Test: This is to fix the tests.
Change-Id: I083db4e2eb4efd8d4a914f33ac259aa317e568de
Merged-In: I083db4e2eb4efd8d4a914f33ac259aa317e568de
(cherry picked from commit 5f5ad2e6274f28772d70de0a97301fd17ab7f4d3)
(cherry picked from commit 0757deaad67bfa7d09e210566fdc7638fd8b8e3f)
2018-09-05 13:57:10 -07:00
Jason Monk
2c3a8045cd Convert sysui to bp
Test: tests gonna test, builds gonna build
Change-Id: I7f1ef2e82ce2c74253c57de8d73079dcfe2d2264
Merged-In: I7f1ef2e82ce2c74253c57de8d73079dcfe2d2264
(cherry picked from commit a2f2d82f2698ca4d9fcfad2a94b5b683646c085d)
(cherry picked from commit 1a8ee9d2f9bda161301469488d9a27baf5398233)
(cherry picked from commit 83ce30d807c3621f47f753e75f41d2b887e3ccba)
2018-09-05 13:57:10 -07:00
Jason Monk
4a8305dca6 Cleanup trying to move to bp
- Remove some resources that don't appear to do anything
 - Don't assume resource ids are final, because they aren't when
   compiled as a library

Test: build
Change-Id: I498bc2612d3f47df5f567c18c29e1666431e971c
Merged-In: I498bc2612d3f47df5f567c18c29e1666431e971c
(cherry picked from commit 05dd5671720985c03f35ec476591fb0d8399a018)
(cherry picked from commit a9b2fcad7a1ba9b5a459f46cc40504c7ea4fe590)
(cherry picked from commit 4c9d66e56cc8c324c2dc87f75e6338b7464d6eaf)
2018-09-05 13:57:09 -07:00
Alison Cichowlas
0757deaad6 Add process-lifecycle-owner-initializer to tests.
Bug: 112587252
Bug: 114073652
Test: This is to fix the tests.
Change-Id: I083db4e2eb4efd8d4a914f33ac259aa317e568de
Merged-In: I083db4e2eb4efd8d4a914f33ac259aa317e568de
(cherry picked from commit 5f5ad2e6274f28772d70de0a97301fd17ab7f4d3)
2018-09-05 19:57:24 +00:00
Jason Monk
83ce30d807 Convert sysui to bp
Test: tests gonna test, builds gonna build
Change-Id: I7f1ef2e82ce2c74253c57de8d73079dcfe2d2264
Merged-In: I7f1ef2e82ce2c74253c57de8d73079dcfe2d2264
(cherry picked from commit a2f2d82f2698ca4d9fcfad2a94b5b683646c085d)
(cherry picked from commit 1a8ee9d2f9bda161301469488d9a27baf5398233)
2018-09-05 12:50:09 -07:00
Jason Monk
4c9d66e56c Cleanup trying to move to bp
- Remove some resources that don't appear to do anything
 - Don't assume resource ids are final, because they aren't when
   compiled as a library

Test: build
Change-Id: I498bc2612d3f47df5f567c18c29e1666431e971c
Merged-In: I498bc2612d3f47df5f567c18c29e1666431e971c
(cherry picked from commit 05dd5671720985c03f35ec476591fb0d8399a018)
(cherry picked from commit a9b2fcad7a1ba9b5a459f46cc40504c7ea4fe590)
2018-09-05 19:48:27 +00:00
Luca Stefani
4e41142e1c SystemUI: Add tuner interface to StatusBarSignalPolicy
* Register for tunables changes

Change-Id: Iad3dc80d2c3b752da57d62af7be85be1553c211e
2018-08-31 22:15:20 +02:00
Aurimas Liutikas
b8616dc4d1 Migrated SystemUI & SettingsLib to androidx
Test: make SystemUI SettingsLib
Bug:76692459
Change-Id: I248fdf4042a0a97bc6349091da21c936c2d37c95
Merged-In: I248fdf4042a0a97bc6349091da21c936c2d37c95
(cherry picked from commit fd52c1433c4e4d3f53aef2454d03f6b58f2411a3)
(cherry picked from commit d366771e84f584330c21b6381c902518af110034)
(cherry picked from commit a14377a450a7172963ab7ec1b3e47444a3249216)
2018-08-28 14:19:51 -07:00
Aurimas Liutikas
a14377a450 Migrated SystemUI & SettingsLib to androidx
Test: make SystemUI SettingsLib
Bug:76692459
Change-Id: I248fdf4042a0a97bc6349091da21c936c2d37c95
Merged-In: I248fdf4042a0a97bc6349091da21c936c2d37c95
(cherry picked from commit fd52c1433c4e4d3f53aef2454d03f6b58f2411a3)
(cherry picked from commit d366771e84f584330c21b6381c902518af110034)
2018-08-28 11:51:13 -07:00
Wesley.CW Wang
e18215a780 Merge "Separated emergency option final UI"
am: c906be3b4f

Change-Id: I14c3d0146d02ecd770a00a099231eeb7b3d9d03a
2018-08-16 16:43:04 -07:00
CY Cheng
0f7856add6 resolve merge conflicts of e58c7805711b76fcb92fad0b7c4a57651176cf50 to stage-aosp-master
Bug: None
Test: I solemnly swear I tested this conflict resolution.
Change-Id: I6d2feec990c23fb3536fc6b3e19c0b2696b81441
Merged-In: I9c920e31433c0ac23165f917d8dd2befaaa4938d
Merged-In: I8e6bb72ce7b8cecdb6bd01150b53f61f1515dbb1
Merged-In: Ic08cabc63daebc4001c8eda751857d11cb0e6352
2018-08-16 10:43:49 +00:00
Treehugger Robot
c906be3b4f Merge "Separated emergency option final UI" 2018-08-16 03:10:59 +00:00
Treehugger Robot
e58c780571 Merge changes I7122ff52,I1140fa41,If359662a
* changes:
  Fix Power menu background vanish
  Add separated emergency option on power menu
  Add emergency dialer option on power menu
2018-08-16 03:10:54 +00:00
Xiangyu/Malcolm Chen
a009bfe6e1 Merge "Remove old SubscriptionInfo constructors."
am: 03fcb263ab

Change-Id: I2971fc5506ee6ca0d70b9b952e420e5233b8c28f
2018-08-14 13:58:12 -07:00
Xiangyu/Malcolm Chen
03fcb263ab Merge "Remove old SubscriptionInfo constructors." 2018-08-14 18:58:25 +00:00