Commit Graph

16116 Commits

Author SHA1 Message Date
Bruno Martins
d55e7d6fa8 WifiTile: Avoid NPE during boot phase
* Listening handling can only take place once mController
  is properly initialized.

Change-Id: Icd5003e67a725323a5445a936d5a38a3006c5431
2018-02-17 00:36:12 +01:00
Treehugger Robot
977bcea1f0 Merge "BluetoothTile: Avoid NPE during boot up phase" 2018-02-16 15:20:23 +00:00
Treehugger Robot
3a419fe212 Merge "NfcTile: Avoid NPE during boot up phase" 2018-02-16 01:34:43 +00:00
Treehugger Robot
e134d23a7a Merge "DndTile: Avoid NPE during boot phase" 2018-02-16 00:33:37 +00:00
Bruno Martins
f74ff84734 DndTile: Avoid NPE during boot phase
* Listening handling can only take place once mController
   is properly initialized.

Change-Id: Icbef2d506417f132e1ab47e23d457dacb9c00146
2018-02-02 18:53:18 +00:00
Bruno Martins
5aefbafb37 BluetoothTile: Avoid NPE during boot up phase
* Listening handling can only take place once mController
   is properly initialized.

Change-Id: Ice0c19321d8632bd55e1d403de95914ad53bad30
2018-02-02 18:47:38 +00:00
Bruno Martins
53159324bb NfcTile: Avoid NPE during boot up phase
* NFC status can't be retrieved before the service starts.

Change-Id: I4bd4fbb5e0d49786edde7ad43a87463e37979774
2018-02-02 18:46:45 +00:00
Beverly
28e5c86b61 DO NOT MERGE volume shows when status bar is null
Bug: 72627648
Test: VolumeDialogControllerImplTest
Change-Id: Ia766d19190d623aecad8d78ba7cbcd9dfbe01218
2018-02-02 12:38:47 -05:00
Mikael Magnusson
c71ab6049f Prevent ArrayIndexOutOfBoundsException for some invalid sysui_nav_bar values
A user can change sysui_nav_bar via adb.

If value of sysui_nav_bar doesn't contain two semicolons, split String array
is accessed out of bounds throwing an exception, sending SystemUI
in an exception loop.

Test: manual
Test: adb exec-out settings put secure sysui_nav_bar "home;back"
Change-Id: Ia9d74be36d287085650393476029489c9a359a0f
2018-01-29 18:27:40 +01:00
Pavlin Radoslavov
03d44ce815 Add Settings support for Bluetooth Multi-A2DP and Multi-HFP
When there are multiple connected A2DP/HFP devices, if a connected
device's name is clicked on, that device will be chosen as
Active - i.e., it will be the device chosen for audio out / phone call.

Also:
 * Listen to the BluetoothA2dp.ACTION_ACTIVE_DEVICE_CHANGED
   and BluetoothHeadset.ACTION_ACTIVE_DEVICE_CHANGED intents
   and update the the status of the current active device.
 * When connecting a new device, and Multi-A2DP is enabled, don't
   disconnect the currently connected device.
 * Update the implementation of isA2dpPlaying() so it correctly checks
   all connected devices, not only the first one.

Test: Manual: multiple connected A2DP devices, and selecting each as
      the Active Device.
Bug: 64767509

Change-Id: I69f3c85ebf5a7f07f6deed484c6dd65705460ae4
Merged-In: I69f3c85ebf5a7f07f6deed484c6dd65705460ae4
(cherry picked from commit 1af33a1926)
2018-01-26 11:12:17 -08:00
Jeff Sharkey
75d3189444 Add ability to override subscriber capabilities.
In a future set of CLs, NPMS will offer to override a handful of
capabilities on a per-subId basis.  Define a no-op version of the
interface to make it easier to add new methods in the future.

Test: bit FrameworksNetTests:android.net.,com.android.server.net.
Test: bit FrameworksTelephonyTests:com.android.internal.telephony.dataconnection.DataConnectionTest
Bug: 64133169
Change-Id: I03dfd98463861f0338c4174e8d8a88c300ea5b55
2018-01-18 14:46:13 -07:00
Chrison.chai
2aa5a9df8a Fix random systemui crashes during cts test DO NOT MERGE
systemui may crash due
    to an uninitialized value of mNavigationBar probably because
    of some race condition during initialization caused by emulation
    performance issues:

    11-01 19:48:58.634  5064  5064 E AndroidRuntime: FATAL EXCEPTION: main
    11-01 19:48:58.634  5064  5064 E AndroidRuntime: Process: com.android.systemui, PID: 5064
    11-01 19:48:58.634  5064  5064 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.android.systemui.statusbar.phone.LightBarTransitionsController.dump (java.io.FileDescriptor, java.io.PrintWriter, java.lang.String[])' on a null object reference
    11-01 19:48:58.634  5064  5064 E AndroidRuntime: at com.android.systemui.statusbar.phone.LightBarController.dump(LightBarController.java:241)
    11-01 19:48:58.634  5064  5064 E AndroidRuntime: at com.android.systemui.statusbar.phone.StatusBar.dump(StatusBar.java:3448)
    11-01 19:48:58.634  5064  5064 E AndroidRuntime: at com.android.systemui.SystemBars.dump(SystemBars.java:48)
    11-01 19:48:58.634  5064  5064 E AndroidRuntime: at com.android.systemui.SystemUIService.dump(SystemUIService.java:52)
    11-01 19:48:58.634  5064  5064 E AndroidRuntime: at android.app.ActivityThread.handleDumpService(ActivityThread.java:3488)
    11-01 19:48:58.634  5064  5064 E AndroidRuntime: at android.app.ActivityThread.-wrap9(Unknown Source:0)
    11-01 19:48:58.634  5064  5064 E AndroidRuntime: at android.app.ActivityThread.handleMessage(ActivityThread.java:1726)
    11-01 19:48:58.634  5064  5064 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:105)
    11-01 19:48:58.634  5064  5064 E AndroidRuntime: at android.os.Looper.loop(Looper.java:164)
    11-01 19:48:58.634  5064  5064 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6541)
    11-01 19:48:58.634  5064  5064 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
    11-01 19:48:58.634  5064  5064 E AndroidRuntime: at com.android.internal.os.Zygote.run(Zygote.java:240)
    11-01 19:48:58.634  5064  5064 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)

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

    Test: cts test.

Change-Id: I8056aef54a10bbb1970bc2ce4913e7a618498fd3
2017-12-21 14:06:16 +00:00
Jordan Liu
e3ab43eefe Merge "Fix available/remaining PIN/PUK attempts." 2017-12-07 23:17:11 +00:00
Ruthwar Kumar Ambeer
118e574ea4 Fix available/remaining PIN/PUK attempts.
* Fix to properly display attempts remaining for PIN/PUK.
* On bootup show the available PIN/PUK attempts if sim
is locked on PIN/PUK.
* Show incorrect password message on entering wrong PIN/PUK
password.

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

Bug: 37782683
Change-Id: I46d7d5dd86977cddecf3147add73ef6ccc64b257
2017-12-07 14:45:43 +05:30
Wenting Xiong
592f539419 Merge "SystemUI: Display RAT icon in quick setting when data is off"
am: f845bbdfa4

Change-Id: I3285f1f9e63cbf3d0487618b5ff636c7637ef9e4
2017-12-06 16:21:34 +00:00
Wenting Xiong
e161b8ff5a SystemUI: Display RAT icon in quick setting when data is off
Introduce implementation to display RAT icon in quick setting
even when data is off.

Test: Test with simulated RIL
Bug: 28805511
Change-Id: I7fabec993c22e3359e36cff2caca9258d79f6273
2017-12-06 06:45:53 +09:00
Evan Laird
1fed537674 Merge "SystemUI: Display RAT icon when data is off"
am: e441298a11

Change-Id: I483d17ac1ef79b9b6f31bbefaf03f7833e13020b
2017-12-04 14:50:15 +00:00
Evan Laird
e441298a11 Merge "SystemUI: Display RAT icon when data is off" 2017-12-04 14:37:16 +00:00
Winson Chung
4e11a71210 Merge "Fix issue with PiP callbacks not being handled"
am: bdd8adb006

Change-Id: I03c0ef06309b1b7559a973e2823598031de3b182
2017-11-29 20:34:46 +00:00
Wenting Xiong
63364fe24a SystemUI: Display RAT icon when data is off
Introduce customization and implementation to display RAT icon in status
bar even when data is off. Since some carriers require, this feature is
necessary.

Test: Test with simulated RIL
Bug: 28805511
Change-Id: I0428ba1749bdb884d210f1ff02cdf86b376a0ca8
2017-11-24 10:57:03 +09:00
Shuichi.Noguchi
e9d2dd6b86 Fix issue with PiP callbacks not being handled
For secondary users, stopping primary user process
is not necessary anymore since PiP is managed
in the primary user's SystemUI process,
this logic was prevening the relaunching of the activity.

Test: Launch PiP from a secondary user on TV device,
      restart the activity and ensure that it is brought
      to fullscreen.

Change-Id: I3a0658c9f55f85771b92a71a1ddeb0f9d544e869
2017-11-22 17:24:17 +09:00
Yoshinori Hirano
72f049e6ef Send broadcast when location mode is about to change DO NOT MERGE
Send "com.android.settings.location.MODE_CHANGING" broadcast intent
when the location mode is about to be changed on Settings app or
Quick Settings.

Fixes: 28057031
Test: manual - turn the location setting on

Change-Id: Ia2db3554755a643609cfb5f0fc30f2dc2cc1beeb
2017-11-10 10:51:13 +09:00
Evan Laird
e5d55d52b6 Merge "Fix incorrect colors for CustomTile in QS" into oc-mr1-dev
am: 859f8c4a21

Change-Id: Id96f0a18c77628d63069ed434f5904936cb41359
2017-10-18 14:15:04 +00:00
TreeHugger Robot
859f8c4a21 Merge "Fix incorrect colors for CustomTile in QS" into oc-mr1-dev 2017-10-18 13:20:43 +00:00
Evan Laird
b3daf2b88c Fix incorrect colors for CustomTile in QS
Add support for Supplier<Icon> in QSTile.State, allowing a method for
CustomTile not to cache the drawable for its IconViews. This fixes the
problem that the ImageViews in QQS and QS were trying to use the same
drawable and putting it in a bad state.

Test: Add 3rd party tile to first position in QS and turn on/off; visual
Change-Id: I408d6391a718fcb3f847e72bd303551d2d004dbb
Fixes: 67356768
2017-10-17 16:00:29 -04:00
Jason Monk
a739d220fc Merge "Auto-dim refinements" into oc-mr1-dev
am: 2806975bfb

Change-Id: Ica3ebd5b227fbe9e4bd4b3699f54176d166f6dda
2017-10-16 20:02:52 +00:00
Jason Monk
2044e6e377 Auto-dim refinements
- Don't auto-dim while wallpaper is showing
 - Up alpha to 60%

Change-Id: Ie5fc33279ca46f7de37befacbbd7b42b7d4e5d15
Fixes: 67735001
Test: manual
2017-10-16 11:21:38 -04:00
Wileen Chiu
8463b91dca Merge "Add change to show Invalid card when erroneous card is inserted." am: 4bc825aecc am: 8279494137
am: 9778539847

Change-Id: Ie5915e645a4e7a35fd934f54d6d3bf25ad4fcca3
2017-10-15 03:11:37 +00:00
Wileen Chiu
9778539847 Merge "Add change to show Invalid card when erroneous card is inserted." am: 4bc825aecc
am: 8279494137

Change-Id: Ibd676d4d0f7b8d285c8c01769dc0686358f3a13d
2017-10-15 02:47:23 +00:00
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
9132969774 Merge "MSIM: Fix to show PUK view when two sims locked on PIN." am: 00644ec5cc am: 98eb4a23b5
am: edfcd5f6e3

Change-Id: Ie04fd62df6a8ec0552fe7fd8a04f0616abe1d62a
2017-10-12 18:44:39 +00:00
Pengquan Meng
edfcd5f6e3 Merge "MSIM: Fix to show PUK view when two sims locked on PIN." am: 00644ec5cc
am: 98eb4a23b5

Change-Id: I51e91e8cd3668d78d84c101848c02d6d99ea29c5
2017-10-12 18:35:54 +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
Lucas Dupin
5493abd692 Merge "Fixed problem where scrim transition would be cancelled" into oc-mr1-dev
am: 43aca9cdc8

Change-Id: I3de9cb8713cd0df80aeffc21c29bcfc9a3818d92
2017-10-11 03:03:39 +00:00
TreeHugger Robot
43aca9cdc8 Merge "Fixed problem where scrim transition would be cancelled" into oc-mr1-dev 2017-10-11 02:55:29 +00:00
Lucas Dupin
5909d0134d Fixed problem where scrim transition would be cancelled
Change-Id: I089e499bfaf524898f5156aecaf098c94b9a1b2b
Fixes: 64077859
Test: send notifications, look at AoD
2017-10-10 17:35:46 -07:00
Brad Ebinger
ad545464c2 Merge "Fix NPE when removing PIN locked SIM during E911 call" into oc-mr1-dev 2017-10-10 17:14:35 +00:00
Brad Ebinger
3311859a48 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
Merged-In: Id8ca403a839cff994970c370973a91e8e5688722
Change-Id: I799c9521f787e800e259c3bdce9edee3f844f5f3
2017-10-09 22:46:13 +00:00
Lucas Dupin
bd8305f328 Merge "Decreases likelihood of AoD flickering" into oc-mr1-dev
am: c856aa18e3

Change-Id: Ia9a137a7d7d4e0b170dabdae7aa5fd4253255a6e
2017-10-09 18:11:40 +00:00
TreeHugger Robot
c856aa18e3 Merge "Decreases likelihood of AoD flickering" into oc-mr1-dev 2017-10-09 18:01:54 +00:00
Selim Cinek
9ff8ac0596 Merge "Fixed an issue where added icons were white in multiwindow" into oc-mr1-dev
am: 3f0dd94efc

Change-Id: I1fdb7cc9eba446167cf7d78cae2533a4bb5c3f89
2017-10-07 17:45:40 +00:00
TreeHugger Robot
3f0dd94efc Merge "Fixed an issue where added icons were white in multiwindow" into oc-mr1-dev 2017-10-07 17:34:40 +00:00
Lucas Dupin
5322dae530 Decreases likelihood of AoD flickering
The transition from display power modes isn't tightly coupled
to the AoD lifecycle. We rely on a timeout to show and hide
the sysui scrim. In this case we increased it.

Change-Id: I13a0d33205c9f904afced63f231176151aee15c4
Fixes: 64077859
Test: receive notificaition in AoD, observe.
2017-10-06 15:24:52 -07:00
Selim Cinek
887da3cf3a Fixed an issue where added icons were white in multiwindow
Because it wasn't laid out yet, icons would appear white.

Change-Id: I9338966299de253f36ae325553e82b76defe3b9d
Fixes: 66711268
Test: add icon with light statusbar in multiwindow, icon looks normal
2017-10-06 13:40:31 -07:00
Selim Cinek
7c548a5712 Merge "Fixed a bug where the order of the icons was wrong" into oc-mr1-dev
am: 942aaf5ae8

Change-Id: I199657bc2e2582cd2228045ae208d96bbc951485
2017-10-06 16:28:59 +00:00