OSDN Git Service

android-x86/frameworks-base.git
9 years agoAdd "Call subject" capability to phone accounts.
Tyler Gunn [Mon, 27 Jul 2015 23:06:16 +0000 (16:06 -0700)]
Add "Call subject" capability to phone accounts.

Indicates whether the phone account supports displaying a subject line
for incoming calls and sending a subject line for outgoing calls.
Supports the IMS Instant Lettering feature.

Bug: 22769741
Change-Id: I6d803dc288bfd6d4e356310a8d10d5468c5d4186

9 years agoMerge "Fix janky add guest transition" into mnc-dev
Adrian Roos [Fri, 24 Jul 2015 21:42:46 +0000 (21:42 +0000)]
Merge "Fix janky add guest transition" into mnc-dev

9 years agoMerge "Frameworks/base: Hand fingerprint to ART" into mnc-dev
Andreas Gampe [Fri, 24 Jul 2015 21:25:09 +0000 (21:25 +0000)]
Merge "Frameworks/base: Hand fingerprint to ART" into mnc-dev

9 years agoFrameworks/base: Hand fingerprint to ART
Andreas Gampe [Fri, 24 Jul 2015 21:19:44 +0000 (14:19 -0700)]
Frameworks/base: Hand fingerprint to ART

To allow ANR dumps to be symbolized easily, hand the build
fingerprint to the runtime.

Bug: 22693991
Change-Id: Ibd3d3b3bd65dce84acfb97a487807d6f280a9508

9 years agoMerge "DO NOT MERGE Enhance local log." into mnc-dev
Robert Greenwalt [Fri, 24 Jul 2015 19:54:07 +0000 (19:54 +0000)]
Merge "DO NOT MERGE Enhance local log." into mnc-dev

9 years agoDO NOT MERGE Enhance local log.
Robert Greenwalt [Fri, 24 Jul 2015 19:44:03 +0000 (12:44 -0700)]
DO NOT MERGE Enhance local log.

to be reverted with ag/733658
bug:22632129

Change-Id: Id3899ee8e987ccc469394dd4d0c41465c48dc37e

9 years agoMerge "Require permission for internal broadcast" into mnc-dev
Amith Yamasani [Fri, 24 Jul 2015 19:12:16 +0000 (19:12 +0000)]
Merge "Require permission for internal broadcast" into mnc-dev

9 years agoMerge "Added ACCESS_COARSE_LOCATION permission for BT" into mnc-dev
Fyodor Kupolov [Fri, 24 Jul 2015 17:54:14 +0000 (17:54 +0000)]
Merge "Added ACCESS_COARSE_LOCATION permission for BT" into mnc-dev

9 years agoMerge "Disallow dragging text in extracted mode" into mnc-dev
Andrei Stingaceanu [Fri, 24 Jul 2015 14:35:48 +0000 (14:35 +0000)]
Merge "Disallow dragging text in extracted mode" into mnc-dev

9 years agoMerge "Prevent lockscreen album art from flickering on metadata change." into mnc-dev
Julia Reynolds [Fri, 24 Jul 2015 14:34:02 +0000 (14:34 +0000)]
Merge "Prevent lockscreen album art from flickering on metadata change." into mnc-dev

9 years agoMerge "Add FEATURE_FINGERPRINT to PackageManager's feature list" into mnc-dev
Jim Miller [Fri, 24 Jul 2015 02:41:00 +0000 (02:41 +0000)]
Merge "Add FEATURE_FINGERPRINT to PackageManager's feature list" into mnc-dev

9 years agoRequire permission for internal broadcast
Amith Yamasani [Fri, 24 Jul 2015 00:15:45 +0000 (17:15 -0700)]
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

9 years agoMerge "MediaPlayer subtitle controller: use debug log instead of warning" into mnc-dev
Jean-Michel Trivi [Fri, 24 Jul 2015 00:46:15 +0000 (00:46 +0000)]
Merge "MediaPlayer subtitle controller: use debug log instead of warning" into mnc-dev

9 years agouse findProcess instead of getProcess
John Reck [Fri, 24 Jul 2015 00:36:13 +0000 (17:36 -0700)]
use findProcess instead of getProcess

Bug: 22701182
Change-Id: I2ec56c55c49401f2f213bbd318e867fd73b37672

9 years agoMerge "UICC : discard language setting of SIM" into mnc-dev
Amit Mahajan [Thu, 23 Jul 2015 23:59:40 +0000 (23:59 +0000)]
Merge "UICC : discard language setting of SIM" into mnc-dev

9 years agoMerge "Disable Keyguard affordances before setup is completed" into mnc-dev
Adrian Roos [Thu, 23 Jul 2015 23:56:37 +0000 (23:56 +0000)]
Merge "Disable Keyguard affordances before setup is completed" into mnc-dev

9 years agoMerge "Keep default permission grants uninstalling a sys package upgrade" into mnc-dev
Svetoslav Ganov [Thu, 23 Jul 2015 23:56:31 +0000 (23:56 +0000)]
Merge "Keep default permission grants uninstalling a sys package upgrade" into mnc-dev

9 years agoMerge "Move updateMatrix() call to animateCommon" into mnc-dev
John Reck [Thu, 23 Jul 2015 23:48:40 +0000 (23:48 +0000)]
Merge "Move updateMatrix() call to animateCommon" into mnc-dev

9 years agoKeep default permission grants uninstalling a sys package upgrade
Svet Ganov [Thu, 23 Jul 2015 23:44:05 +0000 (16:44 -0700)]
Keep default permission grants uninstalling a sys package upgrade

bug:22665508

Change-Id: I1cb1e53a8643ddad77f0be9e40d5b504501e06de

9 years agoMerge "Set support flag for custom layouts for RecyclerView." into mnc-dev
Deepanshu Gupta [Thu, 23 Jul 2015 23:47:10 +0000 (23:47 +0000)]
Merge "Set support flag for custom layouts for RecyclerView." into mnc-dev

9 years agoSet support flag for custom layouts for RecyclerView.
Deepanshu Gupta [Thu, 23 Jul 2015 23:40:23 +0000 (16:40 -0700)]
Set support flag for custom layouts for RecyclerView.

Change-Id: I3a0349c0482ae45e226b2016a0f24707c85edff4

9 years agoMerge "Don't rely on broadcast intent for waking up input method." into mnc-dev
Yohei Yukawa [Thu, 23 Jul 2015 23:24:58 +0000 (23:24 +0000)]
Merge "Don't rely on broadcast intent for waking up input method." into mnc-dev

9 years agoMediaPlayer subtitle controller: use debug log instead of warning
Jean-Michel Trivi [Thu, 23 Jul 2015 17:53:37 +0000 (10:53 -0700)]
MediaPlayer subtitle controller: use debug log instead of warning

Don't use warning log for debug message.

Bug 22698299

Change-Id: Ibe3526fffffc9a7bdcda83c02fd745325db1238b

9 years agoMerge changes I9c294329,Ie4db5d28 into mnc-dev
Deepanshu Gupta [Thu, 23 Jul 2015 23:02:57 +0000 (23:02 +0000)]
Merge changes I9c294329,Ie4db5d28 into mnc-dev

* changes:
  LayoutLib: translucent sys ui bars
  Move the layout code out of RenderSessionImpl.

9 years agoMerge "CalendarView rendering: use R.styleable to find attr." into mnc-dev
Deepanshu Gupta [Thu, 23 Jul 2015 23:02:46 +0000 (23:02 +0000)]
Merge "CalendarView rendering: use R.styleable to find attr." into mnc-dev

9 years agoLayoutLib: translucent sys ui bars
Deepanshu Gupta [Thu, 23 Jul 2015 18:35:25 +0000 (11:35 -0700)]
LayoutLib: translucent sys ui bars

Change-Id: I9c294329fc78418c505a5115bc9c07da29595af2

9 years agoMove updateMatrix() call to animateCommon
John Reck [Thu, 23 Jul 2015 22:33:12 +0000 (15:33 -0700)]
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

9 years agoUICC : discard language setting of SIM
duho.ro [Thu, 16 Jul 2015 11:05:00 +0000 (20:05 +0900)]
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

9 years agoDon't rely on broadcast intent for waking up input method.
Yohei Yukawa [Thu, 23 Jul 2015 22:08:59 +0000 (15:08 -0700)]
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

9 years agoMerge "Add a wm command to dismiss the keyguard." into mnc-dev
Tim Kilbourn [Thu, 23 Jul 2015 21:58:01 +0000 (21:58 +0000)]
Merge "Add a wm command to dismiss the keyguard." into mnc-dev

9 years agoAdd a wm command to dismiss the keyguard.
Tim Kilbourn [Thu, 23 Jul 2015 21:51:41 +0000 (14:51 -0700)]
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

9 years agoMerge "Reset permissions and app links when clearing app preferences - framework...
Svetoslav Ganov [Thu, 23 Jul 2015 21:46:53 +0000 (21:46 +0000)]
Merge "Reset permissions and app links when clearing app preferences - framework" into mnc-dev

9 years agoMerge "Shut down UiAutomationConnection without a lock held" into mnc-dev
Svetoslav Ganov [Thu, 23 Jul 2015 21:44:58 +0000 (21:44 +0000)]
Merge "Shut down UiAutomationConnection without a lock held" into mnc-dev

9 years agoMerge "Properly synchronize interactivity state." into mnc-dev
Tim Kilbourn [Thu, 23 Jul 2015 20:39:44 +0000 (20:39 +0000)]
Merge "Properly synchronize interactivity state." into mnc-dev

9 years agoMerge "Fix emergency only when no sims" into mnc-dev
Jason Monk [Thu, 23 Jul 2015 20:24:32 +0000 (20:24 +0000)]
Merge "Fix emergency only when no sims" into mnc-dev

9 years agoMerge "Set 'the' media notification to the notification actually playing." into mnc-dev
Julia Reynolds [Thu, 23 Jul 2015 20:08:33 +0000 (20:08 +0000)]
Merge "Set 'the' media notification to the notification actually playing." into mnc-dev

9 years agoAdded ACCESS_COARSE_LOCATION permission for BT
Fyodor Kupolov [Thu, 23 Jul 2015 19:47:06 +0000 (12:47 -0700)]
Added ACCESS_COARSE_LOCATION permission for BT

It is required to receive BluetoothDevice.ACTION_FOUND intents

Bug: 21852542
Change-Id: I0437c74c753567e8c6beb4bf70a30ddf0aaa4f3b

9 years agoMove the layout code out of RenderSessionImpl.
Deepanshu Gupta [Wed, 22 Jul 2015 01:27:40 +0000 (18:27 -0700)]
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

9 years agoCalendarView rendering: use R.styleable to find attr.
Deepanshu Gupta [Fri, 17 Jul 2015 01:32:54 +0000 (18:32 -0700)]
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

9 years agoMake sure expandingFinished gets called when going into QS
Jorim Jaggi [Wed, 22 Jul 2015 21:05:06 +0000 (14:05 -0700)]
Make sure expandingFinished gets called when going into QS

Bug: 22351040
Bug: 22306637
Change-Id: I8d1f9fb400b328753bd8444bf3b4a744ad23a53a

9 years agoFix emergency only when no sims
Jason Monk [Wed, 22 Jul 2015 20:34:36 +0000 (16:34 -0400)]
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

9 years agoMerge "Ignore the active network scorer when checking for idleness" into mnc-dev
Wenchao Tong [Thu, 23 Jul 2015 18:14:47 +0000 (18:14 +0000)]
Merge "Ignore the active network scorer when checking for idleness" into mnc-dev

9 years agoProperly synchronize interactivity state.
Michael Wright [Thu, 23 Jul 2015 16:04:40 +0000 (17:04 +0100)]
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

9 years agoReset permissions and app links when clearing app preferences - framework
Svet Ganov [Thu, 23 Jul 2015 16:32:26 +0000 (09:32 -0700)]
Reset permissions and app links when clearing app preferences - framework

bug:22359132

Change-Id: I198c0b1cd6c3dcb91fe560874a8502eb6b5f65b3

9 years agoFix a race condition that could cause lockup
John Reck [Thu, 23 Jul 2015 17:27:30 +0000 (10:27 -0700)]
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

9 years agoMerge "Avoid a deadlock between PMS and AppOpsService" into mnc-dev
Amith Yamasani [Thu, 23 Jul 2015 17:22:29 +0000 (17:22 +0000)]
Merge "Avoid a deadlock between PMS and AppOpsService" into mnc-dev

9 years agoMerge "Document what algorithms Android Keystore supports." into mnc-dev
Alex Klyubin [Thu, 23 Jul 2015 16:23:59 +0000 (16:23 +0000)]
Merge "Document what algorithms Android Keystore supports." into mnc-dev

9 years agoMerge "Remove volte_feature_disabled as carrier config handled it." into mnc-dev
Junda Liu [Thu, 23 Jul 2015 16:20:35 +0000 (16:20 +0000)]
Merge "Remove volte_feature_disabled as carrier config handled it." into mnc-dev

9 years agoMerge "RingtoneManager: query results depend on caller permission" into mnc-dev
Jean-Michel Trivi [Thu, 23 Jul 2015 15:59:20 +0000 (15:59 +0000)]
Merge "RingtoneManager: query results depend on caller permission" into mnc-dev

9 years agoMerge "Allow carriers to force disable ETWS/CMAS test messages." into mnc-dev
Jack Yu [Thu, 23 Jul 2015 15:51:13 +0000 (15:51 +0000)]
Merge "Allow carriers to force disable ETWS/CMAS test messages." into mnc-dev

9 years agoImport translations. DO NOT MERGE
Geoff Mendal [Thu, 23 Jul 2015 07:28:45 +0000 (00:28 -0700)]
Import translations. DO NOT MERGE

Change-Id: If02d6e590724181954e4b3f890f1fd5a132f392d
Auto-generated-cl: translation import

9 years agoAllow carriers to force disable ETWS/CMAS test messages.
Jack Yu [Wed, 22 Jul 2015 20:36:42 +0000 (13:36 -0700)]
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

9 years agoAdd FEATURE_FINGERPRINT to PackageManager's feature list
Jim Miller [Thu, 23 Jul 2015 02:51:40 +0000 (19:51 -0700)]
Add FEATURE_FINGERPRINT to PackageManager's feature list

Fixes bug 22674557

Change-Id: I3d78e6bedc3ac18a25a06ac50e3a7eee4161fe70

9 years agoDisable Keyguard affordances before setup is completed
Adrian Roos [Thu, 23 Jul 2015 01:13:04 +0000 (18:13 -0700)]
Disable Keyguard affordances before setup is completed

Bug: 22665279
Change-Id: I5d3c62a5b6896b808d55026df67022192f0b8bfd

9 years agoShut down UiAutomationConnection without a lock held
Svet Ganov [Thu, 23 Jul 2015 01:58:32 +0000 (18:58 -0700)]
Shut down UiAutomationConnection without a lock held

bug:22599759

Change-Id: I90bca614960522269497127658c16b0bb6ec0476

9 years agoMerge "Revert "UsbDeviceManager: fix b/21429947 regression"" into mnc-dev
Nick Kralevich [Thu, 23 Jul 2015 01:46:38 +0000 (01:46 +0000)]
Merge "Revert "UsbDeviceManager: fix b/21429947 regression"" into mnc-dev

9 years agoRevert "UsbDeviceManager: fix b/21429947 regression"
Nick Kralevich [Thu, 23 Jul 2015 01:43:23 +0000 (01:43 +0000)]
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

9 years agoMerge "Grant record audio to system reco service by default" into mnc-dev
Svetoslav Ganov [Thu, 23 Jul 2015 01:13:24 +0000 (01:13 +0000)]
Merge "Grant record audio to system reco service by default" into mnc-dev

9 years agoMerge "UsageStats: Reduce log spam during time change" into mnc-dev
Adam Lesinski [Thu, 23 Jul 2015 01:01:22 +0000 (01:01 +0000)]
Merge "UsageStats: Reduce log spam during time change" into mnc-dev

9 years agoMerge "Fix issue #22414729: Checkin start clock time is different from hsitory reset...
Dianne Hackborn [Thu, 23 Jul 2015 00:56:19 +0000 (00:56 +0000)]
Merge "Fix issue #22414729: Checkin start clock time is different from hsitory reset time" into mnc-dev

9 years agoMerge "Fix cut off charging indication in certain scripts" into mnc-dev
Adrian Roos [Thu, 23 Jul 2015 00:50:55 +0000 (00:50 +0000)]
Merge "Fix cut off charging indication in certain scripts" into mnc-dev

9 years agoUsageStats: Reduce log spam during time change
Adam Lesinski [Thu, 23 Jul 2015 00:23:40 +0000 (17:23 -0700)]
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

9 years agoGrant record audio to system reco service by default
Svetoslav [Thu, 23 Jul 2015 00:34:12 +0000 (17:34 -0700)]
Grant record audio to system reco service by default

bug:22668415

Change-Id: I0fec7cc671bb1cc3a13b870748fc8e110a11250e

9 years agoMerge "Fix issue #22653116: Google App crashing on NYT app" into mnc-dev
Dianne Hackborn [Thu, 23 Jul 2015 00:35:34 +0000 (00:35 +0000)]
Merge "Fix issue #22653116: Google App crashing on NYT app" into mnc-dev

9 years agoMerge "Do not show normal permissions in sideloading UI" into mnc-dev
Svetoslav Ganov [Thu, 23 Jul 2015 00:27:16 +0000 (00:27 +0000)]
Merge "Do not show normal permissions in sideloading UI" into mnc-dev

9 years agoFix issue #22414729: Checkin start clock time is different from hsitory reset time
Dianne Hackborn [Thu, 23 Jul 2015 00:20:33 +0000 (17:20 -0700)]
Fix issue #22414729: Checkin start clock time is different from hsitory reset time

There was a mistake in the code that was supposed to recover from the
initial time on a new device being bad until the real time ultimately
gets set, which was causing us to update the start clock time every time
there was a time change (instead of just when the original start time
appears bad).

Rework all of this, so we now count the start time as bad if it is more
than one year before the current time, only modifying it in that case.
Also when modifying it, adjust the time we set it to take in to account
how much realtime has actually elapsed so far in the battery stats.

Change-Id: If74bd711d9b7618c8f6148a9935c452aaaa7e257

9 years agoDo not show normal permissions in sideloading UI
Svetoslav [Thu, 23 Jul 2015 00:02:46 +0000 (17:02 -0700)]
Do not show normal permissions in sideloading UI

bug:22627493

Change-Id: I5bb900bb2cd68893c21d9e9b2c973d331d355b58

9 years agoFix issue #22653116: Google App crashing on NYT app
Dianne Hackborn [Thu, 23 Jul 2015 00:02:10 +0000 (17:02 -0700)]
Fix issue #22653116: Google App crashing on NYT app

We weren't correctly handling the root view of the window --
we were just pushing it on to the stack, but that means it got
written at the end.  Instead, we now immediately write it
after the window and let things follow from there.

Change-Id: I070c96bd2443f312a7c6f495d1bf72fa19c614d6

9 years agoMerge "Fixed a typo" into mnc-dev
Fyodor Kupolov [Wed, 22 Jul 2015 23:57:00 +0000 (23:57 +0000)]
Merge "Fixed a typo" into mnc-dev

9 years agoMerge "UsageStats: Gracefully handle corrupt filenames" into mnc-dev
Adam Lesinski [Wed, 22 Jul 2015 23:41:39 +0000 (23:41 +0000)]
Merge "UsageStats: Gracefully handle corrupt filenames" into mnc-dev

9 years agoFix janky add guest transition
Adrian Roos [Wed, 22 Jul 2015 21:59:48 +0000 (14:59 -0700)]
Fix janky add guest transition

Delay updating the user switcher until the
switch is complete, so we aren't showing
an intermediate state while the screen is
frozen.

Also pokes the UserInfoController to update
the user avatar while the screen is still frozen
so it is ready by thawing time.

Bug: 22557684
Change-Id: I020b8c1ad42c03ab9162ed384ecfe54ed12f998d

9 years agoIgnore the active network scorer when checking for idleness
Wenchao Tong [Wed, 22 Jul 2015 18:15:09 +0000 (11:15 -0700)]
Ignore the active network scorer when checking for idleness

Bug: 22667334
Change-Id: I97085e653c146eff148458440bbac0a2ac64d6d2

9 years agoMerge "Protect demo mode commands with permission" into mnc-dev
Adrian Roos [Wed, 22 Jul 2015 23:10:09 +0000 (23:10 +0000)]
Merge "Protect demo mode commands with permission" into mnc-dev

9 years agoUsageStats: Gracefully handle corrupt filenames
Adam Lesinski [Wed, 22 Jul 2015 23:01:45 +0000 (16:01 -0700)]
UsageStats: Gracefully handle corrupt filenames

Not sure how useful this is, since renames should be atomic. If the filesystem
is corrupt I'm sure other parts of the system will break. Good to be safe though!

Bug:22172659
Change-Id: Iad339be2869d170bcf736c59feb93830a51905e1

9 years agoRingtoneManager: query results depend on caller permission
Jean-Michel Trivi [Wed, 22 Jul 2015 17:55:02 +0000 (10:55 -0700)]
RingtoneManager: query results depend on caller permission

When querying for ringtones, only look for ringtones on external
  storage when the caller has READ_EXTERNAL_STORAGE.
Document this behavior in the javadoc of the affected methods.

Bug 22545684

Change-Id: Iae9c9a4ccaf635da8af2ac289b6b4df1b16c5d11

9 years agoFixed a typo
Fyodor Kupolov [Wed, 22 Jul 2015 22:24:46 +0000 (15:24 -0700)]
Fixed a typo

Change-Id: I85d75429baed3263c04e747eb374c66177c064f5

9 years agoMerge "TIF: Enable hardware acceleration on overlay" into mnc-dev
Jae Seo [Wed, 22 Jul 2015 22:22:32 +0000 (22:22 +0000)]
Merge "TIF: Enable hardware acceleration on overlay" into mnc-dev

9 years agoAvoid a deadlock between PMS and AppOpsService
Amith Yamasani [Wed, 22 Jul 2015 21:42:31 +0000 (14:42 -0700)]
Avoid a deadlock between PMS and AppOpsService

Don't check for external storage access rights from MountService
for system server. Otherwise there's a case where AppOpsService
is locked and PackageManagerService calls into AppOps with its
own lock held and is unable to do an AppOps check via this path.

Bug: 22522725
Change-Id: Ib4cf914638905de391384aa5122e691c5a7140ec

9 years agoMerge "Add a privileged permission to get user accounts" into mnc-dev
Svetoslav Ganov [Wed, 22 Jul 2015 21:41:40 +0000 (21:41 +0000)]
Merge "Add a privileged permission to get user accounts" into mnc-dev

9 years agoMerge "Fix ATLAS_MAP_ENTRY_FIELD_COUNT" into mnc-dev
John Reck [Wed, 22 Jul 2015 21:29:55 +0000 (21:29 +0000)]
Merge "Fix ATLAS_MAP_ENTRY_FIELD_COUNT" into mnc-dev

9 years agoMerge "BatteryStats: Use English locale for dump and checkin data" into mnc-dev
Adam Lesinski [Wed, 22 Jul 2015 21:28:37 +0000 (21:28 +0000)]
Merge "BatteryStats: Use English locale for dump and checkin data" into mnc-dev

9 years agoMerge "UsbDeviceManager: fix b/21429947 regression" into mnc-dev
Nick Kralevich [Wed, 22 Jul 2015 21:18:59 +0000 (21:18 +0000)]
Merge "UsbDeviceManager: fix b/21429947 regression" into mnc-dev

9 years agoMerge "Don't crash sysui when advisory calls fail." into mnc-dev
Chris Wren [Wed, 22 Jul 2015 21:18:40 +0000 (21:18 +0000)]
Merge "Don't crash sysui when advisory calls fail." into mnc-dev

9 years agoPrevent lockscreen album art from flickering on metadata change.
Julia Reynolds [Wed, 22 Jul 2015 21:07:42 +0000 (17:07 -0400)]
Prevent lockscreen album art from flickering on metadata change.

Bug: 22626989
Change-Id: Ie3030e570902bf985f02549839eebff4c8a8849b

9 years agoDon't crash sysui when advisory calls fail.
Chris Wren [Wed, 22 Jul 2015 21:03:17 +0000 (17:03 -0400)]
Don't crash sysui when advisory calls fail.

Bug: 22653721
Change-Id: I8e2fc3887b7c71f99eb02306ce308f722dba4d07

9 years agoFix ATLAS_MAP_ENTRY_FIELD_COUNT
John Reck [Wed, 22 Jul 2015 20:55:48 +0000 (13:55 -0700)]
Fix ATLAS_MAP_ENTRY_FIELD_COUNT

Bug: 22558805

Change a039182d6157bc0487df4ad8e373685c9dd7d662 reduced
the size of an entry from 4 fields to 3, but failed to
update the constant that determined the size of the java long[].

Because the long[] is blindly passed down through to native, this
will result in reading past the end of the array as the size
is no longer a multiple of the number of fields being read so
the loop will not terminate until 1 iteration past the end.

Change-Id: I2f8e26cec9a60b3a74739a3763203296be5f1fd6

9 years agoBatteryStats: Use English locale for dump and checkin data
Adam Lesinski [Wed, 22 Jul 2015 20:50:23 +0000 (13:50 -0700)]
BatteryStats: Use English locale for dump and checkin data

Dump and checkin data is read by tools that expect a consistent
locale.

Bug:22357316
Change-Id: I0d7e6e771c3512278efca7579fe9c4b79b560e28

9 years agoMerge "Miss USB device Interface from UsbManager.getDeviceList()." into mnc-dev
Tim Kilbourn [Wed, 22 Jul 2015 20:40:06 +0000 (20:40 +0000)]
Merge "Miss USB device Interface from UsbManager.getDeviceList()." into mnc-dev

9 years agoMerge "Fix handling of RelativeLayout measurement using UNSPECIFIED spec" into mnc-dev
Alan Viverette [Wed, 22 Jul 2015 20:35:40 +0000 (20:35 +0000)]
Merge "Fix handling of RelativeLayout measurement using UNSPECIFIED spec" into mnc-dev

9 years agoMerge "Added a note about location permission" into mnc-dev
Fyodor Kupolov [Wed, 22 Jul 2015 20:27:06 +0000 (20:27 +0000)]
Merge "Added a note about location permission" into mnc-dev

9 years agoUsbDeviceManager: fix b/21429947 regression
Nick Kralevich [Wed, 22 Jul 2015 19:59:47 +0000 (12:59 -0700)]
UsbDeviceManager: fix b/21429947 regression

As discussed in b/21429947 (commit
674019065bceb4150190bfb1aa63cda9de0a8560), MTP must always be
enabled, even if access to the underlying MTP data is disabled.
Otherwise, Android will not enumerate on the USB bus, and won't
receive notifications from the kernel about USB state changes. This
effectively prevents using MTP functionality on user builds, or
on userdebug/eng builds with adb turned off.

Always ensure that MTP is the default driver mode.

Get rid of one use of the persistent property. The persistent property
was already pulled from a number of devices, and as explained in
commit fcf10f7c12cb3107bdfedce6f76a8c866d154f3c, the intent was that
the persistent property would only hold the persistent adb state.

Bug: 22447614
Bug: 21429947
Change-Id: I8b3690a1bafb7cea0d5a69d73c1065c7fc64c653

9 years agoMerge "Angler Should Not Use Channel 11 for SoftAP" into mnc-dev
xin He [Wed, 22 Jul 2015 19:47:53 +0000 (19:47 +0000)]
Merge "Angler Should Not Use Channel 11 for SoftAP" into mnc-dev

9 years agoMerge "More info to support CTS, fix reconcile bug." into mnc-dev
Jeff Sharkey [Wed, 22 Jul 2015 19:40:44 +0000 (19:40 +0000)]
Merge "More info to support CTS, fix reconcile bug." into mnc-dev

9 years agoFix handling of RelativeLayout measurement using UNSPECIFIED spec
Alan Viverette [Wed, 22 Jul 2015 19:37:14 +0000 (15:37 -0400)]
Fix handling of RelativeLayout measurement using UNSPECIFIED spec

Bug: 22613599
Change-Id: Ibdac9de1d5b53a46b29ae916e5dcc8b5c4bc9c27

9 years agoTIF: Enable hardware acceleration on overlay
Jae Seo [Wed, 22 Jul 2015 07:14:08 +0000 (00:14 -0700)]
TIF: Enable hardware acceleration on overlay

Bug: 18162541
Change-Id: If57fb26ae88ca6ef701f01cce0e5dfd9c6eb1f0e

9 years agoMerge changes from topic 'TunerLoc' into mnc-dev
Jason Monk [Wed, 22 Jul 2015 19:29:59 +0000 (19:29 +0000)]
Merge changes from topic 'TunerLoc' into mnc-dev

* changes:
  Add metrics to tuner
  Move tuner enable point to QS

9 years agoRemove volte_feature_disabled as carrier config handled it.
Junda Liu [Wed, 22 Jul 2015 19:21:54 +0000 (12:21 -0700)]
Remove volte_feature_disabled as carrier config handled it.

Bug: b/22602876
Change-Id: Ib1948c93eae6b563846563f1353bab24c4c687a0

9 years agoPartially fix that beginning of animation is skipped
Jorim Jaggi [Wed, 22 Jul 2015 00:24:46 +0000 (17:24 -0700)]
Partially fix that beginning of animation is skipped

When waiting for all the windows that belong to an activity, we
skipped the main window, in case it didn't had a surface yet. This
was a problem because with SurfaceViews: They set it's visibility
extremely early in the app visibility change cycle. Then, they don't
block with the callback to SurfaceHolder.Callback2.surfaceRedrawNeeded,
so window manager thinks it has drawn the first frame already. We don't
even have a surface for the main window yet, but we start the app
transition already because we think the only interesting window for this
app token is the SurfaceView, which has supposedly already drawn.

Bug: 22207948
Change-Id: I2ddb274000fa08866e193f4fd8db3788fc55e0f1

9 years agoFix cut off charging indication in certain scripts
Adrian Roos [Wed, 22 Jul 2015 19:17:43 +0000 (12:17 -0700)]
Fix cut off charging indication in certain scripts

Bug: 22620003
Change-Id: Ib9d8eb4bb0442db86c35374435086e04e71742d7

9 years agoDocument what algorithms Android Keystore supports.
Alex Klyubin [Wed, 22 Jul 2015 19:03:19 +0000 (12:03 -0700)]
Document what algorithms Android Keystore supports.

This updates the Android platform SDK documentation to list which
algorithms are supported by Android Keystore on which Android
platforms.

The list is similar in design to the one in SSLSocket and SSLEngine.

Bug: 22661043
Change-Id: I08fcf65ca58ead644100b673dceb93c67f34f507