197740 Commits

Author SHA1 Message Date
Robert Greenwalt
dd6f844129 DO NOT MERGE Enhance local log.
to be reverted with ag/733658
bug:22632129

Change-Id: Id3899ee8e987ccc469394dd4d0c41465c48dc37e
2015-07-24 12:44:03 -07:00
Amith Yamasani
2c5aeeaaaa Merge "Require permission for internal broadcast" into mnc-dev 2015-07-24 19:12:16 +00:00
Fyodor Kupolov
a5e25f33a5 Merge "Added ACCESS_COARSE_LOCATION permission for BT" into mnc-dev 2015-07-24 17:54:14 +00:00
Andrei Stingaceanu
4579491003 Merge "Disallow dragging text in extracted mode" into mnc-dev 2015-07-24 14:35:48 +00:00
Julia Reynolds
ea00f320ee Merge "Prevent lockscreen album art from flickering on metadata change." into mnc-dev 2015-07-24 14:34:02 +00:00
Maurice Lam
39d1381ed3 Disable launching assist during setup
Check for user_setup_complete before launching the assist layer.

Bug: 22694702
Change-Id: I2509c2aa081002dced192a074716fb23f91dde86
2015-07-23 20:49:20 -07:00
Jim Miller
abd35bfc81 Merge "Add FEATURE_FINGERPRINT to PackageManager's feature list" into mnc-dev 2015-07-24 02:41:00 +00:00
John Reck
c5dce0169b Use process state to filter >= UI_HIDDEN
Bug: 22701182
Change-Id: Ia192016397c8115a19a0dca409aa70dea154c41e
2015-07-24 01:28:04 +00:00
Amith Yamasani
d81f8270be Require permission for internal broadcast
It was possible for other apps to request removal of the guest user
that was handled by an internal receiver in SystemUI.

Fix requires the broadcast sender to have an internal permission
so that only SystemUI can send that broadcast (PendingIntent).

Bug: 22671268
Change-Id: I63a8ced692e6d1cb2872b962ad247a827dbafbc6
2015-07-23 17:59:41 -07:00
Jean-Michel Trivi
7b9968538b Merge "MediaPlayer subtitle controller: use debug log instead of warning" into mnc-dev 2015-07-24 00:46:15 +00:00
John Reck
6b66a4a8a3 use findProcess instead of getProcess
Bug: 22701182
Change-Id: I2ec56c55c49401f2f213bbd318e867fd73b37672
2015-07-24 00:37:23 +00:00
Amit Mahajan
eea9892d9e Merge "UICC : discard language setting of SIM" into mnc-dev 2015-07-23 23:59:40 +00:00
Adrian Roos
0063e0bcd5 Merge "Disable Keyguard affordances before setup is completed" into mnc-dev 2015-07-23 23:56:37 +00:00
Svetoslav Ganov
28762e61e2 Merge "Keep default permission grants uninstalling a sys package upgrade" into mnc-dev 2015-07-23 23:56:31 +00:00
John Reck
8b1154c487 Merge "Move updateMatrix() call to animateCommon" into mnc-dev 2015-07-23 23:48:40 +00:00
Svet Ganov
315c4ac1b6 Keep default permission grants uninstalling a sys package upgrade
bug:22665508

Change-Id: I1cb1e53a8643ddad77f0be9e40d5b504501e06de
2015-07-23 16:47:40 -07:00
Deepanshu Gupta
f199ac84f3 Merge "Set support flag for custom layouts for RecyclerView." into mnc-dev 2015-07-23 23:47:10 +00:00
Deepanshu Gupta
f7712d3524 Set support flag for custom layouts for RecyclerView.
Change-Id: I3a0349c0482ae45e226b2016a0f24707c85edff4
2015-07-23 16:40:23 -07:00
Yohei Yukawa
0526ee5298 Merge "Don't rely on broadcast intent for waking up input method." into mnc-dev 2015-07-23 23:24:58 +00:00
Jean-Michel Trivi
cab361c9bb MediaPlayer subtitle controller: use debug log instead of warning
Don't use warning log for debug message.

Bug 22698299

Change-Id: Ibe3526fffffc9a7bdcda83c02fd745325db1238b
2015-07-23 23:03:45 +00:00
Deepanshu Gupta
49fcfdd4ba Merge changes I9c294329,Ie4db5d28 into mnc-dev
* changes:
  LayoutLib: translucent sys ui bars
  Move the layout code out of RenderSessionImpl.
2015-07-23 23:02:57 +00:00
Deepanshu Gupta
f33c0f8516 Merge "CalendarView rendering: use R.styleable to find attr." into mnc-dev 2015-07-23 23:02:46 +00:00
Deepanshu Gupta
fc8f4aad73 LayoutLib: translucent sys ui bars
Change-Id: I9c294329fc78418c505a5115bc9c07da29595af2
2015-07-23 15:54:26 -07:00
John Reck
49dec430e8 Move updateMatrix() call to animateCommon
Bug: 22667315

HWUI internally always assumes that RenderNode->properties()
has a fully-baked matrix. However, RenderThread animations violate
this and will perform an update of that matrix after they run. This
was missing in the fallback scenario where an animation was
running on a View that is detached from the tree.

If a RenderThread animation is started on an attached view, it becomes
detached, and is then re-attached it will crash in the staging
properties push. The fix for this is to move the call to updateMatrix
from animate() to animateCommon() so that the animateNoDamage()
path will similarly perform the necessary matrix update.

Change-Id: I4c899a6f68659342a6515f1d7f20d3c4af65caf0
2015-07-23 22:37:21 +00:00
duho.ro
6b711c9230 UICC : discard language setting of SIM
Some carrier card has incorrect language file.
This is to disable loading language setting from SIM card.

BUG=22255379

Change-Id: I217a530758c8f9b3ee85c8a277096155e95bb060
2015-07-23 15:36:03 -07:00
Selim Cinek
1fcafc49ad Adapted the behavior when unlocking with fingerprint is not allowed
We now keep the fingerprint running and switch to the bouncer when
the user successfully authenticated.

Bug: 21618072
Change-Id: If00061cb3914afd4d7a7d75964594484c792a890
2015-07-23 15:27:32 -07:00
Yohei Yukawa
fa6e0a80e2 Don't rely on broadcast intent for waking up input method.
Basically this is a copy of Iabef96921dd554ce3768fb18619cefc
for InputMethodManagerService.

As described in JavaDoc of Intent#ACTION_SCREEN_OFF and
Intent#ACTION_SCREEN_ON, one can use those Intents to be
notified when the device becomes non-interactive and
interactive.  IMMS has relied on them to enable and disable
InputConnection between the IME and the application so as not
to allow IMEs to update text when the user does not present.
This is actually our design goal as documented in JavaDoc of
InputMethodManager.

   An IME can never interact with an InputConnection while
   the screen is off.  This is enforced by making all clients
   inactive while the screen is off, and prevents bad IMEs from
   driving the UI when the user can not be aware of its
   behavior.

The goal of this CL is to improve the timeliness of above
mechianism by introducing a direct communication channel from
PowerManagerService to InputMethodManagerService via Notifier.
Actually this is what InputManager has been doing since
Iabef96921dd554ce3768fb18619cefc3230b5fb0.

Reasons behind this change are:

  1. There are several bugreports that imply those Intents can
     dispatch tens of seconds after it is enqueued. This is
     indeed problematic because the user cannot type password
     to unlock their devices until queued
     Intent#ACTION_SCREEN_ON is dispatched. This CL addresses
     such an issue without waiting for figuring out the root
     cause of the delay.
  2. Intent#ACTION_SCREEN_OFF and Intent#ACTION_SCREEN_ON are
     sent as a ordered broadcast, which may not be suitable for
     tasks that require a certain level of timeliness, and what
     IMMS wants is to enable users to start typing immediately
     after the system.

This CL was originally authored by Seigo Nonaka.

Bug: 22423200
Bug: 22555778
Change-Id: I747c37ff6dd8f233faef43f2b5713a4320e848eb
2015-07-23 15:08:59 -07:00
Tim Kilbourn
a2bf761604 Merge "Add a wm command to dismiss the keyguard." into mnc-dev 2015-07-23 21:58:01 +00:00
Tim Kilbourn
f40c66d1a1 Add a wm command to dismiss the keyguard.
If the user has a screen lock, the user is prompted to authenticate.
Otherwise the keyguard is dismissed.

Bug: 22694837
Change-Id: I783fc6f08fb21977aa4f1e884b0a4354a3154805
2015-07-23 14:51:41 -07:00
Svetoslav Ganov
607bc34f93 Merge "Reset permissions and app links when clearing app preferences - framework" into mnc-dev 2015-07-23 21:46:53 +00:00
Svetoslav Ganov
258e630a6b Merge "Shut down UiAutomationConnection without a lock held" into mnc-dev 2015-07-23 21:44:58 +00:00
Adrian Roos
b2f8c716e8 am 50ed152a: am 7f63ef38: am 9b6a6099: Prevent insanely long passwords from crashing SystemUI
* commit '50ed152ab646b00714947a9cf75e01e618b16c02':
  Prevent insanely long passwords from crashing SystemUI
2015-07-23 21:31:41 +00:00
Tim Kilbourn
cc855ad737 Merge "Properly synchronize interactivity state." into mnc-dev 2015-07-23 20:39:44 +00:00
Jason Monk
157ad64dbe Merge "Fix emergency only when no sims" into mnc-dev 2015-07-23 20:24:32 +00:00
Julia Reynolds
c2df1ab48d Merge "Set 'the' media notification to the notification actually playing." into mnc-dev 2015-07-23 20:08:33 +00:00
Fyodor Kupolov
a86101724b Added ACCESS_COARSE_LOCATION permission for BT
It is required to receive BluetoothDevice.ACTION_FOUND intents

Bug: 21852542
Change-Id: I0437c74c753567e8c6beb4bf70a30ddf0aaa4f3b
2015-07-23 12:47:06 -07:00
Deepanshu Gupta
b1484862e2 Move the layout code out of RenderSessionImpl.
Also, switch to using a RelativeLayout from a LinearLayout. The change
will help in future when enabling transparent status and nav bar.

Change-Id: Ie4db5d28313f1c5ef775603788598a56409f92c7
2015-07-23 11:59:16 -07:00
Deepanshu Gupta
e8018480db CalendarView rendering: use R.styleable to find attr.
Not all attr are added to R.attr. This results in some attr not being
found and hence a broken rendering. Fix the issue by adding all attr
referenced in R.styleable to the map of attr before adding any remaining
values from R.attr.

Change-Id: I1ebf8a394b9e1edbf7490e011833d20a00d38317
2015-07-23 11:59:09 -07:00
Jorim Jaggi
1d071ce9b1 Make sure expandingFinished gets called when going into QS
Bug: 22351040
Bug: 22306637
Change-Id: I8d1f9fb400b328753bd8444bf3b4a744ad23a53a
2015-07-23 18:56:03 +00:00
Adrian Roos
50ed152ab6 am 7f63ef38: am 9b6a6099: Prevent insanely long passwords from crashing SystemUI
* commit '7f63ef380ff8c95ea43edd832a7b986ad362e7cf':
  Prevent insanely long passwords from crashing SystemUI
2015-07-23 18:47:07 +00:00
Adrian Roos
7f63ef380f am 9b6a6099: Prevent insanely long passwords from crashing SystemUI
* commit '9b6a60991453136819a6feeca404e1102e78f735':
  Prevent insanely long passwords from crashing SystemUI
2015-07-23 18:34:56 +00:00
Jason Monk
b0808aab0c Fix emergency only when no sims
Need to look at a ServiceState to determine if we are actually in
a emergency only state.

Bug: 22619451
Change-Id: I06a2a6fab85ed2ce41d8f7cbb98a1f169ec61b33
2015-07-23 14:20:18 -04:00
Wenchao Tong
bf3a24d5ec Merge "Ignore the active network scorer when checking for idleness" into mnc-dev 2015-07-23 18:14:47 +00:00
Michael Wright
a405121b5a Properly synchronize interactivity state.
Volatile doesn't provide any guarantees with respect to write
visibility, so it's possible that PowerManager will tell InputManager
about a change in interactivity state, but the actual dispatching
thread will never observe it.

Also, add logging about NativeInputManager state.

Bug: 22422588
Change-Id: Ifc3add992b9009d920d80a0315ff89c9574be20d
2015-07-23 19:04:33 +01:00
Svet Ganov
9c8b8ab941 Reset permissions and app links when clearing app preferences - framework
bug:22359132

Change-Id: I198c0b1cd6c3dcb91fe560874a8502eb6b5f65b3
2015-07-23 10:36:35 -07:00
John Reck
2abf0f24af Fix a race condition that could cause lockup
Bug: 22676664

If a task is queued on a worker thread that is busy
processing a task AND a trim memory signal comes along
prior to the initial task being completed then the
tasks that were queued prior to the exit request will
never be processed.

This is bad, as when those futures are used later on, such
as in trying to delete them from the cache, they will block
waiting for the orphaned task to be finished.

Simple fix is to just never stop the worker threads. Increase
RAM usage slightly as we won't reclaim that stack space, but
this cost is fairly small

Change-Id: I818b011f9bc6ba06942fdad81c27656bd97b42d4
2015-07-23 17:34:14 +00:00
Amith Yamasani
b3e407609f Merge "Avoid a deadlock between PMS and AppOpsService" into mnc-dev 2015-07-23 17:22:29 +00:00
Alex Klyubin
304b01c249 Merge "Document what algorithms Android Keystore supports." into mnc-dev 2015-07-23 16:23:59 +00:00
Junda Liu
859551f7c0 Merge "Remove volte_feature_disabled as carrier config handled it." into mnc-dev 2015-07-23 16:20:35 +00:00
Jean-Michel Trivi
7f9e9012f4 Merge "RingtoneManager: query results depend on caller permission" into mnc-dev 2015-07-23 15:59:20 +00:00