OSDN Git Service

android-x86/frameworks-base.git
9 years agoMerge "Fixed a leak in GeofenceHardwareImpl.java." into lmp-mr1-dev
Zhentao Sun [Thu, 4 Dec 2014 22:52:49 +0000 (22:52 +0000)]
Merge "Fixed a leak in GeofenceHardwareImpl.java." into lmp-mr1-dev

9 years agoMerge "Fix off-by-one error in computeEllipsis" into lmp-mr1-dev
Raph Levien [Thu, 4 Dec 2014 22:33:07 +0000 (22:33 +0000)]
Merge "Fix off-by-one error in computeEllipsis" into lmp-mr1-dev

9 years agoFix off-by-one error in computeEllipsis
Raph Levien [Thu, 4 Dec 2014 21:26:07 +0000 (13:26 -0800)]
Fix off-by-one error in computeEllipsis

In the Truncate.MIDDLE case, when the line is less than half the layout
width, the computeEllipsis logic could go past the left edge of the
string. This patch fixes the off-by-one and avoids the resulting index
out of bounds crash, and also changes the behavior so that when
ellipsizing at the middle, the string to the end of the paragraph is
taken into account.

Bug: 18508627
Change-Id: I24be09c23a5aa158791a9717419307613b8a22e8

9 years agoMerge "Make CarrierText handle multi-sim" into lmp-mr1-dev
Jason Monk [Thu, 4 Dec 2014 22:31:56 +0000 (22:31 +0000)]
Merge "Make CarrierText handle multi-sim" into lmp-mr1-dev

9 years agoMake CarrierText handle multi-sim
Jason Monk [Tue, 2 Dec 2014 21:43:17 +0000 (16:43 -0500)]
Make CarrierText handle multi-sim

To do this need to handle the subscription id that comes with all
spn broadcasts and concatenate properly as needed.

Bug: 18223317
Change-Id: I2a1cde0a4bf2f50082288cc5cdeb968fa9aa7dd0

9 years agoMerge "Update locally cached drawables when constant state changes" into lmp-mr1-dev
Alan Viverette [Thu, 4 Dec 2014 21:59:40 +0000 (21:59 +0000)]
Merge "Update locally cached drawables when constant state changes" into lmp-mr1-dev

9 years agoMerge "Add support from restoring recent's backup." into lmp-mr1-dev
Wale Ogunwale [Thu, 4 Dec 2014 21:58:49 +0000 (21:58 +0000)]
Merge "Add support from restoring recent's backup." into lmp-mr1-dev

9 years agoMerge "bug fix possible NPE while startProcessLocked()" into lmp-mr1-dev
Craig Mautner [Thu, 4 Dec 2014 21:54:52 +0000 (21:54 +0000)]
Merge "bug fix possible NPE while startProcessLocked()" into lmp-mr1-dev

9 years agoMerge "[ActivityManager] Invalidate last screenshot when activity relaunched" into...
Craig Mautner [Thu, 4 Dec 2014 21:53:38 +0000 (21:53 +0000)]
Merge "[ActivityManager] Invalidate last screenshot when activity relaunched" into lmp-mr1-dev

9 years agoMerge "[ActivityManager] Fix race condition in pss collection" into lmp-mr1-dev
Craig Mautner [Thu, 4 Dec 2014 21:51:55 +0000 (21:51 +0000)]
Merge "[ActivityManager] Fix race condition in pss collection" into lmp-mr1-dev

9 years agoMerge "ANR caused by incorrect cleanup in BroadcastQueue." into lmp-mr1-dev
Craig Mautner [Thu, 4 Dec 2014 21:50:45 +0000 (21:50 +0000)]
Merge "ANR caused by incorrect cleanup in BroadcastQueue." into lmp-mr1-dev

9 years agoMerge "Avoid system server crash due to package removed" into lmp-mr1-dev
Craig Mautner [Thu, 4 Dec 2014 21:50:14 +0000 (21:50 +0000)]
Merge "Avoid system server crash due to package removed" into lmp-mr1-dev

9 years agoMerge "Reset killedByAm flag at attachApplicationLocked" into lmp-mr1-dev
Craig Mautner [Thu, 4 Dec 2014 21:45:19 +0000 (21:45 +0000)]
Merge "Reset killedByAm flag at attachApplicationLocked" into lmp-mr1-dev

9 years agoMerge "[ActivityManager] Fix NPE when start activity" into lmp-mr1-dev
Craig Mautner [Thu, 4 Dec 2014 21:44:33 +0000 (21:44 +0000)]
Merge "[ActivityManager] Fix NPE when start activity" into lmp-mr1-dev

9 years ago[ActivityManager] Invalidate last screenshot when activity relaunched
louis_chang [Tue, 2 Dec 2014 04:38:05 +0000 (12:38 +0800)]
[ActivityManager] Invalidate last screenshot when activity relaunched

Symptom:
The task thumbnail is not updated when activity relaunched.

Reproduce Steps:
1. Put device in portrait
2. Launch Calculator
3. Launch Recent App (the Calculator's screenshot is correct)
4. Rotate device to landscape
5. Click Calculator in Recent App to return to Calculator (Calculator has relaunched to landsacpe ui)
6. Launch Recent App again (the Calculator's screenshot is not updated)

Change-Id: I92e951ea2ee215c52ca6e50cf6f9e02deb787bce

9 years agobug fix possible NPE while startProcessLocked()
younghwan1.kim [Tue, 2 Dec 2014 04:04:40 +0000 (13:04 +0900)]
bug fix possible NPE while startProcessLocked()

In case, process doesn't create well while startingProcessLocked().
There is possibility to make NPE.
Setting app's crash handler needs to be assigned after null check routine.

Change-Id: I67fb6427f72d93f79fed36eb44c47d37eafdac31

9 years ago[ActivityManager] Fix race condition in pss collection
louis_chang [Tue, 2 Dec 2014 04:57:39 +0000 (12:57 +0800)]
[ActivityManager] Fix race condition in pss collection

Symptom:
There has a race condition that two threads are accessing
the mPendingPssProcesses simultaneously. One of the thread
is collecting the process pss by looping the mPendingPssProcesses.
The other thread is requesting to collect pss of all processes,
which clears mPendingPssProcesses and adding processes back.

Solution:
Avoid race condition by adding synchornized protection.

Change-Id: Ifb090eda9c4a1b8e3fd980fe0171e9dd77773b46

9 years agoReset killedByAm flag at attachApplicationLocked
Kazuki Nakayama [Thu, 29 May 2014 07:05:34 +0000 (16:05 +0900)]
Reset killedByAm flag at attachApplicationLocked

Cherry picked from aosp.

Fixes bug 18593309.

ActivityManager reuses a process record object that killed
by him under some situation. That reused process record inherits
a killedByAm flag unexpectedly.
The killedByAm flag must be reset otherwise ActivityManager can't
judge the process can be killed or not.

Change-Id: If95137d91939cc44882ad2813131bcde0edd0c1b

9 years ago[ActivityManager] Fix NPE when start activity
louis_chang [Fri, 1 Aug 2014 02:09:08 +0000 (10:09 +0800)]
[ActivityManager] Fix NPE when start activity

Cherry picked from aosp.

Fixes bug 18593457.

Symptom:
NPE occurs in line 1184 (resultStack.sendActivityResultLocked)
because resultStack is null.

Root cause:
When starting activity with FLAG_ACTIVITY_FORWARD_RESULT flag,
the resultRecord could be updated, but the resultStack is not
updated as well. In that case, the resultStack is still be
null. The exception will occurs if the activity is not
granted to launch due to permission denied.

Solution:
Update resultStack when resultRecord updates.

Change-Id: I91634e4f713c2e8dbd1a71f358a8fd9beed83ec7

9 years agoUpdate locally cached drawables when constant state changes
Alan Viverette [Thu, 4 Dec 2014 20:54:46 +0000 (12:54 -0800)]
Update locally cached drawables when constant state changes

Previously we were failing to update references to drawables that had
been pulled from constant state, so we were drawing the wrong ones.

Also fixes button Z translation on press, which was WAY too high.

BUG: 18542282
Change-Id: Ifde7d64e31d31737854cfcbe75777e5b07a06e3a

9 years agoAdd support from restoring recent's backup.
Wale Ogunwale [Wed, 3 Dec 2014 19:38:33 +0000 (11:38 -0800)]
Add support from restoring recent's backup.

Bug: 15986349
Change-Id: I899f81d317fcd5277a75db7ba50ecca14112df26

9 years agoam 47eddc7c: am bf6a4bfb: am 6e043e0c: Merge "Change notes for NDK r10d, to publish...
David Friedman [Thu, 4 Dec 2014 20:31:32 +0000 (20:31 +0000)]
am 47eddc7c: am bf6a4bfb: am 6e043e0c: Merge "Change notes for NDK r10d, to publish to DAC" into lmp-docs

* commit '47eddc7cc98cb99b5820c07109337a1f5ea48c77':
  Change notes for NDK r10d, to publish to DAC

9 years agoam 9ece2e96: (-s ours) Merge "Import translations. DO NOT MERGE" into lmp-sprout-dev
Geoff Mendal [Thu, 4 Dec 2014 20:31:29 +0000 (20:31 +0000)]
am 9ece2e96: (-s ours) Merge "Import translations. DO NOT MERGE" into lmp-sprout-dev

* commit '9ece2e960046a169ac30c4b23119052793c76d98':
  Import translations. DO NOT MERGE

9 years agoam 2d2e7bf3: am ed839a76: am 795db65e: Merge "Fixes a typo, in which the word "give...
David Friedman [Thu, 4 Dec 2014 20:30:57 +0000 (20:30 +0000)]
am 2d2e7bf3: am ed839a76: am 795db65e: Merge "Fixes a typo, in which the word "give" is repeated. Bug 18553334" into lmp-docs

* commit '2d2e7bf33f2e443a650fa29ee646055b231ea380':
  Fixes a typo, in which the word "give" is repeated. Bug 18553334

9 years agoMerge "Notify accessibility for window changes after an app animation end." into...
Svetoslav [Thu, 4 Dec 2014 20:29:56 +0000 (20:29 +0000)]
Merge "Notify accessibility for window changes after an app animation end." into lmp-mr1-dev

9 years agoANR caused by incorrect cleanup in BroadcastQueue.
Guobin Zhang [Fri, 7 Mar 2014 09:47:10 +0000 (17:47 +0800)]
ANR caused by incorrect cleanup in BroadcastQueue.

Pulled from aosp.

Fixes bug 18593454.

Two broadcasts could be sent to the same app simultaneously:
one foreground, one background. For example, LOCALE_CHANGED
and PACKAGE_CHANGED are delievered to com.android.vending
at the same time.
1. AMS started new vending process to handle LOCALE_CHANGED.
   And set app.curReceiver = LOCALE_CHANGED.
2. Before LOCALE_CHANGED is handled by vending process,
   PACKAGE_CHANGED was delievered to vending process too.
   AMS set app.curReceiver = PACKAGE_CHANGED. Bad!
3. Vending process finished handling LOCALE_CHANGED.
   AMS clear app.curReceiver = NULL. Bad!
   And Vending process  killed itself without handling
   PACKAGE_CHANGED.
4. AMS known vending process has died, but didn't know that
   BgBroadcastQueue was still waiting for finish message
   for PACKAGE_CHANGED.
At last, BgBroadcastQueue reported ANR for PACKAGE_CHANGED.

This patch adds protection before clearing app.curReceiver,
only set to NULL if the finishing receiver = app.curReceiver
So handleAppDied would know that PACKAGE_CHANGED was not
finished yet, it will abort the broadcast and continue.

Change-Id: Ic4f31b35e21823d4a3c27712391ecbede213a494
Signed-off-by: Guobin Zhang <guobin.zhang@intel.com>
9 years agoMerge "Revert "Revert "Improve fling physics for recents""" into lmp-mr1-dev
Justin Harrison [Thu, 4 Dec 2014 20:05:39 +0000 (20:05 +0000)]
Merge "Revert "Revert "Improve fling physics for recents""" into lmp-mr1-dev

9 years agoRevert "Revert "Improve fling physics for recents""
Justin Harrison [Thu, 4 Dec 2014 20:05:21 +0000 (20:05 +0000)]
Revert "Revert "Improve fling physics for recents""

This is now BC-triaged, so reverting the revert.

This reverts commit 3f7dac5a1ccf5d464070c1a067d1d50741bdbd0e.

Change-Id: Iae9ffc74a44918a83d9cd4dfb7011810c770e135

9 years agoMerge "Prevent ANR when broadcast receiver is killed" into lmp-mr1-dev
Craig Mautner [Thu, 4 Dec 2014 19:46:18 +0000 (19:46 +0000)]
Merge "Prevent ANR when broadcast receiver is killed" into lmp-mr1-dev

9 years agoMerge "Remember to cancel lingering when a network again satsifies a NetworkRequest...
Paul Jensen [Thu, 4 Dec 2014 19:27:50 +0000 (19:27 +0000)]
Merge "Remember to cancel lingering when a network again satsifies a NetworkRequest." into lmp-mr1-dev

9 years agoPrevent ANR when broadcast receiver is killed
Kenji Sugimoto [Thu, 17 Jul 2014 05:50:41 +0000 (14:50 +0900)]
Prevent ANR when broadcast receiver is killed

Cherry-picked from aosp

Fixes bug 18613138.

If the process of a BroacastReceiver is dying at the same time
as the system is trying to send an ordered broadcast to the
receiver, the system will try to start the process again. The
BroadcastQueue will store the BroadcastRecord in mPendingBroadcast
to be able to handle it again when the process is awake. A
timeout Message is posted to the handler of the BroadcastQueue.

As part of the shutdown sequence skipCurrentReceiver is called for
the ProcessRecord. This will check if there is a curReceiver set
for the application and make sure to finish the receiver.

Each of the foreground and background BroadcastQueues have their
own handler for managing broadcast timeouts. If the wrong
BroadcastQueue finishes the receiver, the pending timeout Message
will never be cancelled, leading to an ANR report for a receiver
that has already been finished.

Change-Id: I960c0d8f1a8b739b54a8f09f496b32a3498b9e9a

9 years agoFix BT crash due to unset value for BluetoothGattDescriptor from API user
Prerepa Viswanadham [Thu, 4 Dec 2014 18:12:55 +0000 (10:12 -0800)]
Fix BT crash due to unset value for BluetoothGattDescriptor from API user

Validate writeDescriptor and writeCharacteristic methods at API invocation
for non null initialisation.

Bug 18395071

Change-Id: I411a57b77981310d8db1f98c67e03b4327c93339

9 years agoMerge "AAPT: Move private attrs to new type for framework" into lmp-mr1-dev
Adam Lesinski [Thu, 4 Dec 2014 18:24:39 +0000 (18:24 +0000)]
Merge "AAPT: Move private attrs to new type for framework" into lmp-mr1-dev

9 years agoMerge "Log the state of the notification shade" into lmp-mr1-dev
Christoph Studer [Thu, 4 Dec 2014 18:09:10 +0000 (18:09 +0000)]
Merge "Log the state of the notification shade" into lmp-mr1-dev

9 years agoMerge "NoMan: Update effect suppressor on listener remove" into lmp-mr1-dev
Christoph Studer [Thu, 4 Dec 2014 18:08:33 +0000 (18:08 +0000)]
Merge "NoMan: Update effect suppressor on listener remove" into lmp-mr1-dev

9 years agoMerge "Track active notifications by key, not by reference." into lmp-mr1-dev
Chris Wren [Thu, 4 Dec 2014 18:02:52 +0000 (18:02 +0000)]
Merge "Track active notifications by key, not by reference." into lmp-mr1-dev

9 years agoMerge "Tweak the behavior of the MediaSessionStack" into lmp-mr1-dev
RoboErik [Thu, 4 Dec 2014 17:46:39 +0000 (17:46 +0000)]
Merge "Tweak the behavior of the MediaSessionStack" into lmp-mr1-dev

9 years agoMerge "Revert "Improve fling physics for recents"" into lmp-mr1-dev
Justin Harrison [Thu, 4 Dec 2014 17:37:53 +0000 (17:37 +0000)]
Merge "Revert "Improve fling physics for recents"" into lmp-mr1-dev

9 years agoRevert "Improve fling physics for recents"
Justin Harrison [Thu, 4 Dec 2014 17:37:24 +0000 (17:37 +0000)]
Revert "Improve fling physics for recents"

This reverts commit 00d947bda0b9a2ea133dfd7b0e445245a0e2c23c.

Change-Id: I3d6696227a381d232baed8fdbcbe34d3c4976ebe

9 years agoMerge "Improve fling physics for recents" into lmp-mr1-dev
Jorim Jaggi [Thu, 4 Dec 2014 15:18:15 +0000 (15:18 +0000)]
Merge "Improve fling physics for recents" into lmp-mr1-dev

9 years agoMerge "Fix rounded corners in bottom QS panel." into lmp-mr1-dev
Jorim Jaggi [Thu, 4 Dec 2014 15:17:00 +0000 (15:17 +0000)]
Merge "Fix rounded corners in bottom QS panel." into lmp-mr1-dev

9 years agoam bf6a4bfb: am 6e043e0c: Merge "Change notes for NDK r10d, to publish to DAC" into...
David Friedman [Thu, 4 Dec 2014 13:35:40 +0000 (13:35 +0000)]
am bf6a4bfb: am 6e043e0c: Merge "Change notes for NDK r10d, to publish to DAC" into lmp-docs

* commit 'bf6a4bfb20f3b8db3cf4c47fa887d7cc603ce5c4':
  Change notes for NDK r10d, to publish to DAC

9 years agoMerge "Update AndroidPixelRef to prevent VM from cleaning up memory prematurely....
Derek Sollenberger [Thu, 4 Dec 2014 13:04:48 +0000 (13:04 +0000)]
Merge "Update AndroidPixelRef to prevent VM from cleaning up memory prematurely." into lmp-mr1-dev

9 years agoMerge "RankingHelper: Remove STOPSHIP" into lmp-mr1-dev
Christoph Studer [Thu, 4 Dec 2014 12:12:22 +0000 (12:12 +0000)]
Merge "RankingHelper: Remove STOPSHIP" into lmp-mr1-dev

9 years agoam 6cbef4bd: am 03af0c42: Merge "Ensure that RandomAccessFile is not leaked." into...
Deepanshu Gupta [Thu, 4 Dec 2014 07:00:19 +0000 (07:00 +0000)]
am 6cbef4bd: am 03af0c42: Merge "Ensure that RandomAccessFile is not leaked." into lmp-dev

* commit '6cbef4bd3e1f16647ab01dc29df9a357d54a85de':
  Ensure that RandomAccessFile is not leaked.

9 years agoam 4628d51a: am 141c7614: Merge "Fix AnalogClock rendering" into lmp-dev
Deepanshu Gupta [Thu, 4 Dec 2014 07:00:14 +0000 (07:00 +0000)]
am 4628d51a: am 141c7614: Merge "Fix AnalogClock rendering" into lmp-dev

* commit '4628d51a0d01641ca7fe2cf8403ad551ea6f50ce':
  Fix AnalogClock rendering

9 years agoMerge "resolved conflicts for merge of fb30a783 to lmp-mr1-dev" into lmp-mr1-dev
Deepanshu Gupta [Thu, 4 Dec 2014 06:58:20 +0000 (06:58 +0000)]
Merge "resolved conflicts for merge of fb30a783 to lmp-mr1-dev" into lmp-mr1-dev

9 years agoMerge "CEC: Generate hotplug events upon adding listener" into lmp-mr1-dev
Jinsuk Kim [Thu, 4 Dec 2014 06:39:57 +0000 (06:39 +0000)]
Merge "CEC: Generate hotplug events upon adding listener" into lmp-mr1-dev

9 years agoMerge "Remove notification for SoftAP turned on" into lmp-mr1-dev
Vinit Deshpande [Thu, 4 Dec 2014 06:21:28 +0000 (06:21 +0000)]
Merge "Remove notification for SoftAP turned on" into lmp-mr1-dev

9 years agoCEC: Generate hotplug events upon adding listener
Jinsuk Kim [Thu, 4 Dec 2014 02:05:09 +0000 (11:05 +0900)]
CEC: Generate hotplug events upon adding listener

CEC HAL does not report initial connection state of the HDMI port
but does it only when the state is updated. For the listeners which
want to get the initial state of the ports, this CL generates
hotplug event per each port when a new listener is added.

Bug: 18488079

Change-Id: I6915a96e3c14ee0db1bfb6912ab77d3ea1bd2f07

9 years agoMerge "Import translations. DO NOT MERGE" into lmp-mr1-dev
Geoff Mendal [Thu, 4 Dec 2014 05:32:18 +0000 (05:32 +0000)]
Merge "Import translations. DO NOT MERGE" into lmp-mr1-dev

9 years agoMerge "Import translations. DO NOT MERGE" into lmp-sprout-dev
Geoff Mendal [Thu, 4 Dec 2014 05:06:11 +0000 (05:06 +0000)]
Merge "Import translations. DO NOT MERGE" into lmp-sprout-dev

9 years agoresolved conflicts for merge of fb30a783 to lmp-mr1-dev
Deepanshu Gupta [Thu, 4 Dec 2014 05:00:40 +0000 (10:30 +0530)]
resolved conflicts for merge of fb30a783 to lmp-mr1-dev

Change-Id: I91fdb76c748b97376d6469c8d1198a15c4395463

9 years agoMerge "Import translations. DO NOT MERGE" into lmp-mr1-dev
Geoff Mendal [Thu, 4 Dec 2014 04:54:51 +0000 (04:54 +0000)]
Merge "Import translations. DO NOT MERGE" into lmp-mr1-dev

9 years agoMerge "Import translations. DO NOT MERGE" into lmp-mr1-dev
Geoff Mendal [Thu, 4 Dec 2014 04:33:25 +0000 (04:33 +0000)]
Merge "Import translations. DO NOT MERGE" into lmp-mr1-dev

9 years agoMerge "Remove CONNECTIVITY_CHANGE_DELAY and friends." into lmp-mr1-dev
Erik Kline [Thu, 4 Dec 2014 03:13:54 +0000 (03:13 +0000)]
Merge "Remove CONNECTIVITY_CHANGE_DELAY and friends." into lmp-mr1-dev

9 years agoMerge "Doze: Don't block pickup pulses on a proximity check." into lmp-mr1-dev
John Spurlock [Thu, 4 Dec 2014 03:03:20 +0000 (03:03 +0000)]
Merge "Doze: Don't block pickup pulses on a proximity check." into lmp-mr1-dev

9 years agoMerge "IMS Call End Cause Additions" into lmp-mr1-dev
Pavel Zhamaitsiak [Thu, 4 Dec 2014 01:59:43 +0000 (01:59 +0000)]
Merge "IMS Call End Cause Additions" into lmp-mr1-dev

9 years agoUICC : discard language setting of SIM
duho.ro [Wed, 12 Nov 2014 04:06:27 +0000 (13:06 +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: 18095177
Bug: 18108786
Change-Id: I40881fc64fea52480c968a18440740af9c8cff57

9 years agoIMS Call End Cause Additions
Omkar Kolangade [Tue, 2 Dec 2014 00:23:25 +0000 (16:23 -0800)]
IMS Call End Cause Additions

Adding call end reasons for the
following use cases:
1. User rejects/ends call due to
   low battery.
2. User rejects call due to
   blacklisted call ID.

Bug: 18481702
Change-Id: I3537c732880e60218c83ec69861cb788adc57bc1

9 years agoAvoid system server crash due to package removed
louis_chang [Thu, 31 Jul 2014 02:47:45 +0000 (10:47 +0800)]
Avoid system server crash due to package removed

Cherry-picked from aosp.

Fixes bug 18593178.

Symptom:
When application is not responding, an ANR dialog will shown.
In certain timing, user uninstall the application when the ANR
occurs, but before ANR dialog shown. The system server will crash
when looking up the errorReportReceiver because the package is removed.

Here shows how the exception occurs.
java.lang.IllegalArgumentException: Unknown package: app.package.name
 at com.android.server.pm.Settings.getInstallerPackageNameLPr
 at com.android.server.pm.PackageManagerService.getInstallerPackageName
 at android.app.ApplicationPackageManager.getInstallerPackageName
 at android.app.ApplicationErrorReport.getErrorReportReceiver
 at com.android.server.am.ActivityManagerService.startAppProblemLocked
 at com.android.server.am.ActivityManagerService.makeAppNotRespondingLocked
 at com.android.server.am.ActivityManagerService.appNotResponding

Change-Id: Iced4287bd44dc25b1db2c1e3a583892eb6c041a2

9 years agoNotify accessibility for window changes after an app animation end.
Svetoslav [Thu, 4 Dec 2014 00:26:35 +0000 (16:26 -0800)]
Notify accessibility for window changes after an app animation end.

Accessibility layer keeps track of the introspectable windows. These
windows are received from the window manager which computes them after
an interesting window transition. The window manager was not sending
the windows to the accessibiltiy manager after an app animation is
completed and as a result the window location reported to accessibility
service was wrong which also resulted in wrong visible to user state
for the nodes in the window.

bug:18517058

Change-Id: I21d65a4e0c0dff9474f7cc47ea819ace5ac1e465

9 years agoMerge "new SMS/MMS carrier app API" into lmp-mr1-dev
Cheuksan Wang [Thu, 4 Dec 2014 00:19:05 +0000 (00:19 +0000)]
Merge "new SMS/MMS carrier app API" into lmp-mr1-dev

9 years agoMerge "Resume RT-animations after a pauseSurface" into lmp-mr1-dev
John Reck [Thu, 4 Dec 2014 00:08:13 +0000 (00:08 +0000)]
Merge "Resume RT-animations after a pauseSurface" into lmp-mr1-dev

9 years agoMerge changes Ib255e49f,Ifc33cdf7 into lmp-mr1-dev
Winson Chung [Thu, 4 Dec 2014 00:07:55 +0000 (00:07 +0000)]
Merge changes Ib255e49f,Ifc33cdf7 into lmp-mr1-dev

* changes:
  Ensuring that the alpha and translation animation durations are the same. (Bug 18609321)
  Fix crash when user is both scrolling and tabbing through Recents. (Bug 18552776)

9 years agoAAPT: Move private attrs to new type for framework
Adam Lesinski [Thu, 20 Nov 2014 01:49:26 +0000 (17:49 -0800)]
AAPT: Move private attrs to new type for framework

Private attributes are typically placed after public
attributes in the resource table. Each time a new version
of the Android framework is released, new public attributes
take the place of the private attributes, and the private
attributes are shifted after the new public ones.

This means that any apps built against the newer SDK
may inadvertently be using private attributes on older
devices.

This change moves all private attributes to a completely
different type ID, so there will never be collisions across
versions.

These private attributes are automatically moved to a synthesized
type only for the system resources.

Bug:18263655

Change-Id: I7a850512953fadcc9f3524d509cea30249782db8

9 years agoMerge "Stop keyguard from spamming the log" into lmp-mr1-dev
Jim Miller [Wed, 3 Dec 2014 23:44:31 +0000 (23:44 +0000)]
Merge "Stop keyguard from spamming the log" into lmp-mr1-dev

9 years agoMerge "Unable to unlock SIM with a PIN/PUK" into lmp-mr1-dev
xinhe [Wed, 3 Dec 2014 23:39:29 +0000 (23:39 +0000)]
Merge "Unable to unlock SIM with a PIN/PUK" into lmp-mr1-dev

9 years agoUnable to unlock SIM with a PIN/PUK
xinhe [Tue, 2 Dec 2014 23:03:20 +0000 (15:03 -0800)]
Unable to unlock SIM with a PIN/PUK

call TelephonyManager.getSimState instead of accessing systemProperty
Bug:18489776

Change-Id: I45d2315a588f706c4815750963dcfec9f8409c5d

9 years agoStop keyguard from spamming the log
Jim Miller [Wed, 3 Dec 2014 23:33:13 +0000 (15:33 -0800)]
Stop keyguard from spamming the log

Fixes bug 18147652

Change-Id: I9f6d3a6f1b8e3d6443c112ecf8a61ea2dc4e3434

9 years agoMerge "Add getSimStateForSubscriber and additional SIM_STATE_XXXX values" into lmp...
Wink Saville [Wed, 3 Dec 2014 23:32:45 +0000 (23:32 +0000)]
Merge "Add getSimStateForSubscriber and additional SIM_STATE_XXXX values" into lmp-mr1-dev

9 years agoMerge "Adjust wallpaper-restore acceptance criteria" into lmp-mr1-dev
Christopher Tate [Wed, 3 Dec 2014 23:09:32 +0000 (23:09 +0000)]
Merge "Adjust wallpaper-restore acceptance criteria" into lmp-mr1-dev

9 years agoam 6e043e0c: Merge "Change notes for NDK r10d, to publish to DAC" into lmp-docs
David Friedman [Wed, 3 Dec 2014 22:54:38 +0000 (22:54 +0000)]
am 6e043e0c: Merge "Change notes for NDK r10d, to publish to DAC" into lmp-docs

* commit '6e043e0cebf74d313e3b3520a5b42208ed4ea057':
  Change notes for NDK r10d, to publish to DAC

9 years agoMerge "Change notes for NDK r10d, to publish to DAC" into lmp-docs
David Friedman [Wed, 3 Dec 2014 22:46:48 +0000 (22:46 +0000)]
Merge "Change notes for NDK r10d, to publish to DAC" into lmp-docs

9 years agoFixed a leak in GeofenceHardwareImpl.java.
Zhentao Sun [Wed, 3 Dec 2014 22:27:26 +0000 (14:27 -0800)]
Fixed a leak in GeofenceHardwareImpl.java.

Bug: 18542685.
This CL includes two changes:
* Fixed a leak of DeathRecipient when geofences are removed from the
  hardware.
* Avoid creating more DeathRecipient than needed. Use the underlying
  binder object instead of the callback object to tell if they are the
  same. So if the client passes the same callback instance to
  GeofenceHardwareImpl, only one DeathRecipient is created.

Change-Id: I7809e4bc04df4f9e3590de98a03178b276c821ea

9 years agoChange notes for NDK r10d, to publish to DAC
David Friedman [Tue, 25 Nov 2014 18:49:32 +0000 (10:49 -0800)]
Change notes for NDK r10d, to publish to DAC

Change-Id: I13e40eff7a152178e13fc8fa7d6dbcea0182f6c1

9 years agoMerge "Separate voice/data roaming state and type" into lmp-mr1-dev
Robert Greenwalt [Wed, 3 Dec 2014 22:18:23 +0000 (22:18 +0000)]
Merge "Separate voice/data roaming state and type" into lmp-mr1-dev

9 years agoam ed839a76: am 795db65e: Merge "Fixes a typo, in which the word "give" is repeated...
David Friedman [Wed, 3 Dec 2014 22:03:47 +0000 (22:03 +0000)]
am ed839a76: am 795db65e: Merge "Fixes a typo, in which the word "give" is repeated. Bug 18553334" into lmp-docs

* commit 'ed839a7684d1c61eb61a0e3c2f11bebfb0c9b787':
  Fixes a typo, in which the word "give" is repeated. Bug 18553334

9 years agoMerge "Revert "Camera: Add new capability flags as system features as well"" into...
Eino-Ville Talvala [Wed, 3 Dec 2014 22:01:40 +0000 (22:01 +0000)]
Merge "Revert "Camera: Add new capability flags as system features as well"" into lmp-mr1-dev

9 years agoam 795db65e: Merge "Fixes a typo, in which the word "give" is repeated. Bug 18553334...
David Friedman [Wed, 3 Dec 2014 21:56:48 +0000 (21:56 +0000)]
am 795db65e: Merge "Fixes a typo, in which the word "give" is repeated. Bug 18553334" into lmp-docs

* commit '795db65e22992960c4b1f079511deb375172c953':
  Fixes a typo, in which the word "give" is repeated. Bug 18553334

9 years agoMerge "Fixes a typo, in which the word "give" is repeated. Bug 18553334" into lmp...
David Friedman [Wed, 3 Dec 2014 21:48:27 +0000 (21:48 +0000)]
Merge "Fixes a typo, in which the word "give" is repeated. Bug 18553334" into lmp-docs

9 years agoEnsuring that the alpha and translation animation durations are the same. (Bug 18609321)
Winson Chung [Wed, 3 Dec 2014 21:45:36 +0000 (13:45 -0800)]
Ensuring that the alpha and translation animation durations are the same. (Bug 18609321)

9 years agoMerge "Fix issue #17948584: Application crash and phone restart when app..." into...
Dianne Hackborn [Wed, 3 Dec 2014 21:32:15 +0000 (21:32 +0000)]
Merge "Fix issue #17948584: Application crash and phone restart when app..." into lmp-mr1-dev

9 years agoFix crash when user is both scrolling and tabbing through Recents. (Bug 18552776)
Winson Chung [Wed, 3 Dec 2014 21:16:48 +0000 (13:16 -0800)]
Fix crash when user is both scrolling and tabbing through Recents. (Bug 18552776)

9 years agoMerge "Slightly more button elevation to match Material spec" into lmp-mr1-dev
Alan Viverette [Wed, 3 Dec 2014 21:10:18 +0000 (21:10 +0000)]
Merge "Slightly more button elevation to match Material spec" into lmp-mr1-dev

9 years agoAdjust wallpaper-restore acceptance criteria
Christopher Tate [Wed, 3 Dec 2014 21:07:24 +0000 (13:07 -0800)]
Adjust wallpaper-restore acceptance criteria

Previously the dimension check had implicit orientation sensitivity.
We now make sure to compare the candidate image's width to the smallest
screen dimension for acceptance purposes; this fixes cases when we would
e.g. get a restored image of (1680x2560) but believe that we needed it
to have a max width of 2048, even though it had originated on that same
device -- due to current-orientation issues.

Bug 18448052

Change-Id: I64ca6a4ed91ce1ccc04f5a9a6851e5cfe511b7c7

9 years agoMerge "Fix issue #18607384: Run fstrim after every system update" into lmp-mr1-dev
Dianne Hackborn [Wed, 3 Dec 2014 21:06:52 +0000 (21:06 +0000)]
Merge "Fix issue #18607384: Run fstrim after every system update" into lmp-mr1-dev

9 years agoDoze: Don't block pickup pulses on a proximity check.
John Spurlock [Wed, 3 Dec 2014 21:00:44 +0000 (16:00 -0500)]
Doze: Don't block pickup pulses on a proximity check.

Pulse immediately, assuming the pickup sensor will not fire
if prox=near.  Perform a non-blocking additional proximity check
in these cases purely to collect verification diagnostics.

Also tweak the interpolator for pickup pulses to ramp up more
quickly.

Bug: 18373928
Change-Id: I8607f4b37435722e293db741c273914183cec7be

9 years agoResume RT-animations after a pauseSurface
John Reck [Wed, 3 Dec 2014 21:01:07 +0000 (13:01 -0800)]
Resume RT-animations after a pauseSurface

Bug: 18203577

The issue occurs as a result of performTraversals() both doing
a window relayout call *and* early-returning because it's not dirty.

To fix this pauseSurface() returns whether or not the RT-side is
"dirty" to force ViewRootImpl to do a draw even if mDirty is
otherwise empty.

Change-Id: I534f367e75d18d273ebf14df3927f5c464ef6bef

9 years agoam 03af0c42: Merge "Ensure that RandomAccessFile is not leaked." into lmp-dev
Deepanshu Gupta [Wed, 3 Dec 2014 20:58:27 +0000 (20:58 +0000)]
am 03af0c42: Merge "Ensure that RandomAccessFile is not leaked." into lmp-dev

* commit '03af0c42d80734c44198b96a99488bb94816ae97':
  Ensure that RandomAccessFile is not leaked.

9 years agoam 141c7614: Merge "Fix AnalogClock rendering" into lmp-dev
Deepanshu Gupta [Wed, 3 Dec 2014 20:58:23 +0000 (20:58 +0000)]
am 141c7614: Merge "Fix AnalogClock rendering" into lmp-dev

* commit '141c7614fdef45d1a95ccb325da762a79412aae2':
  Fix AnalogClock rendering

9 years agoam 7e55c292: Merge "Fix typos in previous bugfixes." into lmp-dev
Deepanshu Gupta [Wed, 3 Dec 2014 20:58:19 +0000 (20:58 +0000)]
am 7e55c292: Merge "Fix typos in previous bugfixes." into lmp-dev

* commit '7e55c29281f8a62154451e87b45d95ec5f97c5ac':
  Fix typos in previous bugfixes.

9 years agoMerge "Ensure that RandomAccessFile is not leaked." into lmp-dev
Deepanshu Gupta [Wed, 3 Dec 2014 20:49:52 +0000 (20:49 +0000)]
Merge "Ensure that RandomAccessFile is not leaked." into lmp-dev

9 years agoMerge "Fix AnalogClock rendering" into lmp-dev
Deepanshu Gupta [Wed, 3 Dec 2014 20:49:21 +0000 (20:49 +0000)]
Merge "Fix AnalogClock rendering" into lmp-dev

9 years agoMerge "Fix typos in previous bugfixes." into lmp-dev
Deepanshu Gupta [Wed, 3 Dec 2014 20:48:51 +0000 (20:48 +0000)]
Merge "Fix typos in previous bugfixes." into lmp-dev

9 years agoFix issue #18607384: Run fstrim after every system update
Dianne Hackborn [Wed, 3 Dec 2014 20:44:48 +0000 (12:44 -0800)]
Fix issue #18607384: Run fstrim after every system update

Change-Id: I06f4c0b9e6834a8c8bd85710dfd9fa16471b6ad2

9 years agoMerge "Camera: update antibanding spec" into lmp-mr1-dev
Yin-Chia Yeh [Wed, 3 Dec 2014 20:44:03 +0000 (20:44 +0000)]
Merge "Camera: update antibanding spec" into lmp-mr1-dev

9 years agoMerge "Add keylayout for Logitech RedHawk Gamepad DO NO MERGE" into lmp-mr1-dev
Michael Wright [Wed, 3 Dec 2014 20:34:32 +0000 (20:34 +0000)]
Merge "Add keylayout for Logitech RedHawk Gamepad DO NO MERGE" into lmp-mr1-dev

9 years agoMerge "Added Razer USA, Ltd serval DO NOT MERGE" into lmp-mr1-dev
Michael Wright [Wed, 3 Dec 2014 20:34:18 +0000 (20:34 +0000)]
Merge "Added Razer USA, Ltd serval DO NOT MERGE" into lmp-mr1-dev

9 years agoMerge "Doze: Fast path for pickup pulses." into lmp-mr1-dev
John Spurlock [Wed, 3 Dec 2014 19:49:24 +0000 (19:49 +0000)]
Merge "Doze: Fast path for pickup pulses." into lmp-mr1-dev