197621 Commits

Author SHA1 Message Date
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
Jack Yu
e21722a3da Merge "Allow carriers to force disable ETWS/CMAS test messages." into mnc-dev 2015-07-23 15:51:13 +00:00
Geoff Mendal
13edc1609e Import translations. DO NOT MERGE
Change-Id: If02d6e590724181954e4b3f890f1fd5a132f392d
Auto-generated-cl: translation import
2015-07-23 00:28:45 -07:00
Jack Yu
a4f2da3988 Allow carriers to force disable ETWS/CMAS test messages.
This feature can be enabled in carrier config XML. When enabled, the user will not see
ETWS/CMAS enable/disable option in emergency broadcast preference menu.

bug: 22396039
Change-Id: I6ad6fa39852d3b13faeef968a1963b3e0a4a6e61
2015-07-23 05:21:54 +00:00
Jim Miller
d9b9d41082 Add FEATURE_FINGERPRINT to PackageManager's feature list
Fixes bug 22674557

Change-Id: I3d78e6bedc3ac18a25a06ac50e3a7eee4161fe70
2015-07-22 19:54:15 -07:00
Adrian Roos
a4eba9fc35 Disable Keyguard affordances before setup is completed
Bug: 22665279
Change-Id: I5d3c62a5b6896b808d55026df67022192f0b8bfd
2015-07-22 19:13:19 -07:00
Svet Ganov
7bb48725de Shut down UiAutomationConnection without a lock held
bug:22599759

Change-Id: I90bca614960522269497127658c16b0bb6ec0476
2015-07-22 19:03:29 -07:00
Nick Kralevich
06b93a48ad Merge "Revert "UsbDeviceManager: fix b/21429947 regression"" into mnc-dev 2015-07-23 01:46:38 +00:00
Nick Kralevich
0d767e6f09 Revert "UsbDeviceManager: fix b/21429947 regression"
This causes various problems with our testing infrastructure.

This reverts commit b210026e3d5c955628ca8b8b9191ade08891e9ef.

Bug: 22447614
Bug: 21429947
Change-Id: I57623e3d993e65b6ad89e7a7d28e9575cf638994
2015-07-23 01:45:01 +00:00
Svetoslav Ganov
492fc64831 Merge "Grant record audio to system reco service by default" into mnc-dev 2015-07-23 01:13:24 +00:00
Adam Lesinski
f90ed330a0 Merge "UsageStats: Reduce log spam during time change" into mnc-dev 2015-07-23 01:01:22 +00:00
Dianne Hackborn
4a368659ba Merge "Fix issue #22414729: Checkin start clock time is different from hsitory reset time" into mnc-dev 2015-07-23 00:56:19 +00:00
Adrian Roos
f217064404 Merge "Fix cut off charging indication in certain scripts" into mnc-dev 2015-07-23 00:50:55 +00:00
Adam Lesinski
2dfb91412c UsageStats: Reduce log spam during time change
With lots of usage stats files, the log gets spammy
when the time changes and we are moving files around.

Bug:22549399
Change-Id: I9da39399b090066d52568dea6fc5b59aba063c5a
2015-07-22 17:35:46 -07:00
Svetoslav
c6ab8b9ecb Grant record audio to system reco service by default
bug:22668415

Change-Id: I0fec7cc671bb1cc3a13b870748fc8e110a11250e
2015-07-22 17:35:41 -07:00
Dianne Hackborn
5507bb41b0 Merge "Fix issue #22653116: Google App crashing on NYT app" into mnc-dev 2015-07-23 00:35:34 +00:00
Svetoslav Ganov
41a62e111d Merge "Do not show normal permissions in sideloading UI" into mnc-dev 2015-07-23 00:27:16 +00:00