Commit Graph

15351 Commits

Author SHA1 Message Date
Wileen Chiu
8279494137 Merge "Add change to show Invalid card when erroneous card is inserted."
am: 4bc825aecc

Change-Id: I89a5b529033c30defacc715ef3c8310500e5fae7
2017-10-15 02:32:25 +00:00
Treehugger Robot
4bc825aecc Merge "Add change to show Invalid card when erroneous card is inserted." 2017-10-13 13:02:21 +00:00
Pengquan Meng
98eb4a23b5 Merge "MSIM: Fix to show PUK view when two sims locked on PIN."
am: 00644ec5cc

Change-Id: Ic0b0927a52f2734cccff6f977aa0dfe9cd6e8d5c
2017-10-12 18:26:47 +00:00
Pengquan Meng
00644ec5cc Merge "MSIM: Fix to show PUK view when two sims locked on PIN." 2017-10-12 18:10:37 +00:00
Shawn
ae40f23c3f DO NOT MERGE Update demo mode time to 8:00 for Android 8.0
Change-Id: I6162889c3859d007629226be2a47a6276807aec0
2017-10-12 16:49:30 +00:00
Pengquan Meng
4b267dfe12 MSIM: Fix to show PUK view when two sims locked on PIN.
Currently when both sims are locked on PIN, upon exhausting
PIN attempts for SIM1 PIN, SIM1 PUK view is not displayed
and the user is not able to unlock the PUK.

This is due to while fetching the getSecurityMode in Key
-GuardSecurityModel, the ordering of checking the security
mode is PIN first and PUK later.So when one sim is locked
on PUK and the other is locked on PIN the ordering of checking
the PIN first is causing to return PIN as security mode in place
of PUK. This will lead to PUK lock screen not been shown to user.

Fix: In KeyGuardSecurityModel.java, while querying the security Mode
modify the order to check for security mode i.e PUK locked state first
and then PIN locked state.

In KeyGuardSimPinView and KeyGuardSimPukView, check for sim locked on
PIN and reset the flags to show the default message.

Test: manually test
Bug: 34796244

Change-Id: I157959d9eb313b9d3af84f86e1429448a0f7f065
2017-10-11 17:43:39 -07:00
Wileen Chiu
6b8b22e1e4 Add change to show Invalid card when erroneous card is inserted.
Add change to show "Invalid card" on UI on CARD_IO_ERROR when
erroneous SIM card is inserted

Bug: 23147806
Change-Id: Ibaacf06f2aad8f206095783cc431a87485f1c2ad
2017-10-11 20:10:44 +00:00
Brad Ebinger
4910739237 Merge "Fix NPE when removing PIN locked SIM during E911 call"
am: b7dc3a3b21

Change-Id: I16555b53bbf9c743921cbd36578af3550705a242
2017-10-06 03:54:29 +00:00
Treehugger Robot
b7dc3a3b21 Merge "Fix NPE when removing PIN locked SIM during E911 call" 2017-10-06 03:43:31 +00:00
Brad Ebinger
7130675c53 Fix NPE when removing PIN locked SIM during E911 call
There is the possibility of mCallback being null while
the Keyguard still has a PhoneStateListener registered
for onSimStateChanged callback. This can cause a NPE.

Bug: 66986066
Test: Manual, PIN/PUK locked SIM
Change-Id: I799c9521f787e800e259c3bdce9edee3f844f5f3
2017-10-05 11:39:06 -07:00
Selim Cinek
d4b6e59cad Merge "Collapse Notification panel after tapping CLEAR ALL button"
am: ca8b270063

Change-Id: I3ce745ab3546fa93aa0cafa7874b8449e6d2cfc9
2017-10-03 21:30:14 +00:00
Reifu Sato
d191ee87a5 Collapse Notification panel after tapping CLEAR ALL button
Usually, notification panel is automatically collapsed
after tapping "CLEAR ALL" button but is not collapsed
if all dismissable notifications are scrolled out.

In this case, dismissed notification is still displayed
until notification panel is once collapsed.
And that "dismissed" notification causes several issues.

To avoid this, collapse notification panel automatically
after tapping "CLEAR ALL" button even when all dismissable
notifications are scrolled out.

Fixes: 67246876
Test: manual - post ongoing and dismissable notifications,
               and tap CLEAR ALL button.

Change-Id: I048255cde6fdb4cedd2c3472e345ff63c744af68
2017-10-03 11:16:26 +09:00
Jason Monk
8078996f4a Merge "Fix random systemui crashes during boot" 2017-09-20 13:50:45 +00:00
Jordan Liu
2602e5ff62 Merge "Show 3G data icon for TD-SCDMA network type"
am: 9da895b5e1

Change-Id: Idb27d11834099a13bc86619b8c3ea089fb863970
2017-09-11 23:06:22 +00:00
Wileen Chiu
4105ab0856 Show 3G data icon for TD-SCDMA network type
- The data annunciator on the UI shows up as
"G" instead of "3G"
- Map the 3G telephony icon to network type
TD-SCDMA

Bug: 36802489
Test: manual
Change-Id: I63a0e54aab7fda2bcc6f098bb0b43799aad2f6c2
2017-09-11 13:23:37 -07:00
Miodrag Dinic
81e684b76b Fix random systemui crashes during boot
When trying to boot android in emulator, systemui may crash due
to an uninitialized value of mNavigationBar probably because
of some race condition during initialization caused by emulation
performance issues:

08-24 16:28:43.722  1947  1947 E AndroidRuntime: FATAL EXCEPTION: main
08-24 16:28:43.722  1947  1947 E AndroidRuntime: Process: com.android.systemui, PID: 1947
08-24 16:28:43.722  1947  1947 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.app.Fragment.getView()' on a null object reference
08-24 16:28:43.722  1947  1947 E AndroidRuntime: 	at com.android.systemui.statusbar.phone.StatusBar.getNavigationBarView(StatusBar.java:4636)
08-24 16:28:43.722  1947  1947 E AndroidRuntime: 	at com.android.systemui.statusbar.phone.StatusBarKeyguardViewManager.updateStates(StatusBarKeyguardViewManager.java:537)
08-24 16:28:43.722  1947  1947 E AndroidRuntime: 	at com.android.systemui.statusbar.phone.StatusBarKeyguardViewManager.reset(StatusBarKeyguardViewManager.java:207)
08-24 16:28:43.722  1947  1947 E AndroidRuntime: 	at com.android.systemui.statusbar.phone.StatusBarKeyguardViewManager.show(StatusBarKeyguardViewManager.java:145)
08-24 16:28:43.722  1947  1947 E AndroidRuntime: 	at com.android.systemui.keyguard.KeyguardViewMediator.handleShow(KeyguardViewMediator.java:1721)
08-24 16:28:43.722  1947  1947 E AndroidRuntime: 	at com.android.systemui.keyguard.KeyguardViewMediator.access$2900(KeyguardViewMediator.java:138)
08-24 16:28:43.722  1947  1947 E AndroidRuntime: 	at com.android.systemui.keyguard.KeyguardViewMediator$4.handleMessage(KeyguardViewMediator.java:1482)
08-24 16:28:43.722  1947  1947 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:105)
08-24 16:28:43.722  1947  1947 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:164)
08-24 16:28:43.722  1947  1947 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:6510)
08-24 16:28:43.722  1947  1947 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
08-24 16:28:43.722  1947  1947 E AndroidRuntime: 	at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
08-24 16:28:43.722  1947  1947 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:771)

This patches adds an explicit checks for (mNavigationBar != null)
everywhere it is used.

Test: Boot ARM & MIPS emulators to homescreen.

Change-Id: I3af868b9da565c7eb6c6882f65fbda4a34d802c8
Signed-off-by: Miodrag Dinic <miodrag.dinic@imgtec.com>
2017-09-11 15:59:35 +02:00
Kensuke Matsui
36f27fa6f8 Merge "Avoid race condition during grayscale animation of QS tile"
am: bceee1cbb4

Change-Id: I9a2cddd23d79c1cdd1cee75769f8589be1c9492d
2017-09-08 14:53:38 +00:00
Treehugger Robot
bceee1cbb4 Merge "Avoid race condition during grayscale animation of QS tile" 2017-09-08 14:38:31 +00:00
Kensuke Matsui
5a58cf92b7 Avoid race condition during grayscale animation of QS tile
DrawableIcon returns the same instance of its Drawable
for both getDrawable() and getInvisibleDrawable().
This could cause a race condition during grayscale animation
of a QS tile which uses the same icon for both ON and OFF state.

Clone the original Drawable and use it for invisible drawable
to solve this.

Fixes: 65437135
Test: manual - put a custom tile at the first position of QS panel
               and tap it

Change-Id: Ie74edd9c5e58118a70b5abd8096cdd1297940ef5
2017-09-07 10:43:00 +00:00
Kensuke Matsui
10379e1f17 Merge "Fix NPE in StatusBar#onBackPressed()"
am: 6cfa7f2fee

Change-Id: Ic29857e67231ff109535adf18882b869d7ce6af1
2017-09-06 15:17:05 +00:00
Kensuke Matsui
8dd4d35aa3 Fix NPE in StatusBar#onBackPressed()
StatusBar.mKeyguardUserSwitcher is instantiated
only if multi user function is enabled.
But mKeyguardUserSwitcher.hideIfNotSimple() is invoked
without null check in StatusBar#onBackPressed().
This causes NPE on multi user disabled devices.

Fixes: 65391930
Test: manual - tap Back key on lockscreen

Change-Id: I528823fa832ee5096d73dea660997fc276d86c5c
2017-09-06 06:29:11 +00:00
Brad Ebinger
434ccc8700 Merge "Remove PIN/PUK keyguard when SIM is removed/ready"
am: 43f9f0290c

Change-Id: I9e28e3975331a7af11747065761632a0566deb56
2017-09-01 21:31:19 +00:00
Brad Ebinger
43f9f0290c Merge "Remove PIN/PUK keyguard when SIM is removed/ready" 2017-09-01 21:06:27 +00:00
Brad Ebinger
4cd3bdcfa3 Remove PIN/PUK keyguard when SIM is removed/ready
1) If the PIN/PUK keyguard comes up for a locked
SIM, it can not be removed by removing the
affected SIM. It can only be removed by
rebooting the device or entering a bogus PIN.

This change automatically clears the keyguard
when when the locked SIM is removed. It will
be shown again if the locked SIM is re-entered.

2) If the device is PUK locked and the code
**05*PUK*new pin* new Pin# is entered in the
emergency dialer, it will unlock the SIM.
By listening to the READY state, we can remove
the keyguard when the SIM is unlocked by
other means.

Bug: 64469515
Bug: 64044132
Test: Manual
Merged-In: I7b576ee7e38f141075cae094e3d1f74b7145d53f
Change-Id: I9507f80edcd4c04dfa0cc3b48a25e619aafa9eb3
2017-09-01 10:04:37 -07:00
Jason Monk
f4017acb4a Merge "Fix animation of settings button in RTL layout case"
am: cc3525748e

Change-Id: I112d770b8cf520755128d4fabd973762b2c5c4b1
2017-09-01 13:10:36 +00:00
Akira Oshimi
5cb7cd1300 Fix animation of settings button in RTL layout case
The settings button overlaps with the expand indicator
in RTL layout case when rotating the device to landscape mode.
To fix this issue, the animation of settings button
in RTL layout case should be changed.

Fixes: 65228478
Test: manual - set a BiDi language and open Notification panel.

Change-Id: I008b33ebcdf074639a291e7d30d3343654a2ea37
2017-09-01 02:26:53 +00:00
wuliang
290bfff7d0 Merge "Test: Drag on the divider line."
am: 1fa3a60f05

Change-Id: I8c33a5bddf76f70eec8c21fe850887b51fdfaa74
2017-08-31 16:54:54 +00:00
Treehugger Robot
1fa3a60f05 Merge "Test: Drag on the divider line." 2017-08-31 16:43:44 +00:00
Jason Monk
526cd8923f Merge "Fix QS user icon in guest mode"
am: 7d4e9b81b4

Change-Id: I144ab6fea2e9ece6f01004c03c85da72a8c069f2
2017-08-29 14:40:47 +00:00
Akari Tsuneta
23fdba10d2 Fix QS user icon in guest mode
When the profile is updated in guest mode, the user icon in QS footer
is not displayed correctly. To fix this issue, the tinting of
guest icon is applied only when the drawable is not UserIconDrawable.

Fixes: 65148947
Test: manual - switch to guest and update the profile.

Change-Id: I9690e9fd286703a25ee08d877c3dd7f4729e2b31
2017-08-29 10:32:32 +00:00
wuliang
9dde78f115 Test: Drag on the divider line.
Fix Bug:SystemUI will crash when draging the divider line in qstile edit panel.

Patch solution:The divider line can not be dragged.
When the divider is selected, step in onSelectedChanged, mTiles.get(position) will return null object.Then SystemUI will crash

Change-Id: I40b948a8fac2964df7891086a701159a4c0f513d
2017-08-19 10:21:43 +08:00
Winson Chung
8a661ee248 Merge "Add fallback to reset the waiting for transition state." into oc-dr1-dev
am: 684b056531

Change-Id: I4cebde819520bba1877a04e773ff128ca37a0af5
2017-08-15 16:12:42 +00:00
Winson Chung
a9c4127ece Add fallback to reset the waiting for transition state.
- When launching into recents directly in another orientation, it
  appears that the animation start callback is not made, which then
  causes the transition-waiting state to persist until Overview is
  next hidden. As a fallback, if we get onEnterAnimationComplete()
  on the activity, then the animation has started and completed, so
  we can reset the state.

Bug: 64694148
Test: Launch fixed-portrait app, hold device in landscape and then hit
      recents button, ensure that recents button still works after.

Change-Id: Ibac8554c1f71324838fef1f04db2d88b16ffe219
2017-08-14 23:51:35 +00:00
Adrian Roos
1a623d4b96 Merge "AOD: Fix navbar flicker when transitioning to AOD" into oc-dr1-dev
am: 1cbfe74fc2

Change-Id: Id1b46b3c77f0cb2213afa38ba3e6608f091c4d8b
2017-08-11 23:59:44 +00:00
TreeHugger Robot
1cbfe74fc2 Merge "AOD: Fix navbar flicker when transitioning to AOD" into oc-dr1-dev 2017-08-11 23:43:11 +00:00
Jason Monk
b723d2528b Merge "Change default temp threshold to use shutdown temp" into oc-dr1-dev
am: 84626a4e3d

Change-Id: I7bcd02a6eeefd326d6f719ea3052674ecf2a1529
2017-08-11 21:44:46 +00:00
Adrian Roos
8db9311cb6 AOD: Fix navbar flicker when transitioning to AOD
Under certain circumstances, the transition to AOD can happen before
the navigation bar gets a chance to hide itself, which happens in a
traversal. To work around this, post turning the screen on such that
it only happens after the next traversal.

Change-Id: I178b9394e7cc6baa8e9552c9819c3ce9b044defb
Fixes: 64599221
Test: Open Whatsapp / Gmail, turn off screen, verify navbar does not flicker.
2017-08-11 14:29:35 -07:00
Jason Monk
d819c31050 Change default temp threshold to use shutdown temp
Base the temp threshold to be based on the shutdown temp lowered
by some amount to ensure the warning can be seen before a shutdown.

Test: runtest systemui
Change-Id: I033a776e874d76018592954932ed5127e1b228ae
Fixes: 62845934
2017-08-11 14:44:51 -04:00
Christine Franks
f3b6768601 Merge "Don't lock down system user in demo mode" into oc-dr1-dev
am: 4f540fe8d0

Change-Id: I1d86ea5b69fe9a8bddb29d3e8483cc6a34b3b689
2017-08-10 02:25:10 +00:00
TreeHugger Robot
4f540fe8d0 Merge "Don't lock down system user in demo mode" into oc-dr1-dev 2017-08-10 02:17:48 +00:00
Phil Weaver
68cf0f4df8 Merge "Fix source for PiP hover accessibility events" into oc-dr1-dev
am: a4b5e0893f

Change-Id: I125f80e800d04e7406fcd380bce2666b5b9e5a3f
2017-08-10 00:19:07 +00:00
Phil Weaver
a4b5e0893f Merge "Fix source for PiP hover accessibility events" into oc-dr1-dev 2017-08-10 00:13:04 +00:00
Selim Cinek
bbd80c9f73 Merge "Worked around a bug where the a group child could be leaked" into oc-dr1-dev
am: f89e462bc7

Change-Id: I0dcaf830f0d65171b4a114e299793d68a4da6e40
2017-08-09 21:16:27 +00:00
TreeHugger Robot
f89e462bc7 Merge "Worked around a bug where the a group child could be leaked" into oc-dr1-dev 2017-08-09 21:03:15 +00:00
Jason Monk
dafbdf9feb Merge "Make rounded corners handle color inversion" into oc-dr1-dev
am: ca91e6cecd

Change-Id: I6a5a75c63bcae98aa928667672dd52b631e85d8a
2017-08-09 20:45:45 +00:00
TreeHugger Robot
ca91e6cecd Merge "Make rounded corners handle color inversion" into oc-dr1-dev 2017-08-09 20:38:49 +00:00
Winson Chung
51d7ff2f38 Merge changes I52152223,I49db5cab into oc-dr1-dev
am: fc596b1cf6

Change-Id: I63cbca0986438b350cecf0f2c1c5b0ec2f88cebf
2017-08-09 19:01:53 +00:00
Winson Chung
fc596b1cf6 Merge changes I52152223,I49db5cab into oc-dr1-dev
* changes:
  Ensure that we register the media session listener for the current user.
  Fix issue with PiP callbacks not being handled for secondary users.
2017-08-09 18:52:42 +00:00
Phil Weaver
0a8caa1ccc Fix source for PiP hover accessibility events
The events were ending up not important for a11y and
with invalid window ids, which prevented TalkBack from
seeing them properly.

Bug: 64428961
Test: Ran YouTube in PiP, now able to select it.
Change-Id: I38ccbf5f2f35ffda255b84f229e98ca23e6b11aa
2017-08-09 11:28:41 -07:00
Selim Cinek
04be389c87 Worked around a bug where the a group child could be leaked
It may happen that a group entry could be leaked, if an
entry is inserted again after it was removed. We now added
logging to detect it better and worked around the issue.

Change-Id: Iaa6dfedddf5bafe0697bd0411b2e5f24982b1160
Fixes: 63717947
Test: add groups and remove / hun children
2017-08-09 10:56:18 -07:00