OSDN Git Service

android-x86/frameworks-base.git
8 years agoMerge "Added StackId object for checking what features a stack supports"
Wale Ogunwale [Mon, 2 Nov 2015 20:38:39 +0000 (20:38 +0000)]
Merge "Added StackId object for checking what features a stack supports"

8 years agoMerge "Allow verifier to grant permissions" into mnc-dr-dev am: cfa233eefb am: 22d7f4...
Svetoslav Ganov [Mon, 2 Nov 2015 20:00:13 +0000 (20:00 +0000)]
Merge "Allow verifier to grant permissions" into mnc-dr-dev am: cfa233eefb am: 22d7f4c2ed am: 6423c0a29b
am: bd4168540f

* commit 'bd4168540f009c71af1242e5b7866146c8724d6f':
  Allow verifier to grant permissions

8 years agoMerge "Update AudioManager.getProperty documentation"
Glenn Kasten [Mon, 2 Nov 2015 19:55:37 +0000 (19:55 +0000)]
Merge "Update AudioManager.getProperty documentation"

8 years agoMerge "CDD for pro audio feature does not specify acoustics"
Glenn Kasten [Mon, 2 Nov 2015 19:54:41 +0000 (19:54 +0000)]
Merge "CDD for pro audio feature does not specify acoustics"

8 years agoMerge "Allow verifier to grant permissions" into mnc-dr-dev am: cfa233eefb am: 22d7f4c2ed
Svetoslav Ganov [Mon, 2 Nov 2015 19:52:38 +0000 (19:52 +0000)]
Merge "Allow verifier to grant permissions" into mnc-dr-dev am: cfa233eefb am: 22d7f4c2ed
am: 6423c0a29b

* commit '6423c0a29bfb3191787febf3755539948514fb61':
  Allow verifier to grant permissions

8 years agoMerge "Allow verifier to grant permissions" into mnc-dr-dev am: cfa233eefb
Svetoslav Ganov [Mon, 2 Nov 2015 19:45:17 +0000 (19:45 +0000)]
Merge "Allow verifier to grant permissions" into mnc-dr-dev am: cfa233eefb
am: 22d7f4c2ed

* commit '22d7f4c2eddef09e0ceb16aadff2860a184a68d8':
  Allow verifier to grant permissions

8 years agoMerge "Allow verifier to grant permissions" into mnc-dr-dev
Svetoslav Ganov [Mon, 2 Nov 2015 19:38:22 +0000 (19:38 +0000)]
Merge "Allow verifier to grant permissions" into mnc-dr-dev
am: cfa233eefb

* commit 'cfa233eefb5b77c96a3239a5a51f381a7f0722c9':
  Allow verifier to grant permissions

8 years agoMerge "Allow verifier to grant permissions" into mnc-dr-dev
Svetoslav Ganov [Mon, 2 Nov 2015 19:33:44 +0000 (19:33 +0000)]
Merge "Allow verifier to grant permissions" into mnc-dr-dev

8 years agoAdded StackId object for checking what features a stack supports
Wale Ogunwale [Tue, 27 Oct 2015 21:21:58 +0000 (14:21 -0700)]
Added StackId object for checking what features a stack supports

Helps make the code easier to follow since we are no longer checking
multiple stack ids at various decision points.

Bug: 25282299
Change-Id: Ifa6864a1ef56ce2eca4c94f87a4e0b993de987cd

8 years agoMerge "AAPT2: Support generating Manifest.java"
Adam Lesinski [Mon, 2 Nov 2015 19:09:42 +0000 (19:09 +0000)]
Merge "AAPT2: Support generating Manifest.java"

8 years agoMerge "Explain ENCODING_PCM_FLOAT"
Glenn Kasten [Mon, 2 Nov 2015 19:05:44 +0000 (19:05 +0000)]
Merge "Explain ENCODING_PCM_FLOAT"

8 years agoMerge "Refactor MagnificationController out to its own class"
Alan Viverette [Mon, 2 Nov 2015 18:46:48 +0000 (18:46 +0000)]
Merge "Refactor MagnificationController out to its own class"

8 years agoMerge "Prevent and log invalid cache entries."
Winson Chung [Mon, 2 Nov 2015 18:36:27 +0000 (18:36 +0000)]
Merge "Prevent and log invalid cache entries."

8 years agoMerge "Support for changing density of GradientDrawable"
Alan Viverette [Mon, 2 Nov 2015 18:36:09 +0000 (18:36 +0000)]
Merge "Support for changing density of GradientDrawable"

8 years agoMerge "BatteryService: Add Max charging voltage"
Badhri Jagan Sridharan [Mon, 2 Nov 2015 18:35:09 +0000 (18:35 +0000)]
Merge "BatteryService: Add Max charging voltage"

8 years agoPrevent and log invalid cache entries.
Winson [Mon, 2 Nov 2015 18:29:08 +0000 (10:29 -0800)]
Prevent and log invalid cache entries.

Bug: 25413518
Change-Id: Id0a7384eccd25ba766feb0c568b4c16db2b6f6c8

8 years agoMerge "Add ability to cancel task window transitions."
Winson Chung [Mon, 2 Nov 2015 18:17:12 +0000 (18:17 +0000)]
Merge "Add ability to cancel task window transitions."

8 years agoAdd ability to cancel task window transitions.
Winson [Fri, 30 Oct 2015 21:50:19 +0000 (14:50 -0700)]
Add ability to cancel task window transitions.

Bug: 25392381

Change-Id: I45f48edc21c058df0e4c22ceaf7e9aef5899a29c

8 years agoPackageSettingBase needs to copy volume UUID. am: 3b1c6e03f6 am: e63509b509 am: 12d2e...
Jeff Sharkey [Mon, 2 Nov 2015 18:12:22 +0000 (18:12 +0000)]
PackageSettingBase needs to copy volume UUID. am: 3b1c6e03f6 am: e63509b509 am: 12d2e98fe0
am: ca3b971e7a

* commit 'ca3b971e7a4c3ca8e55eaa505556a02964b4e299':
  PackageSettingBase needs to copy volume UUID.

8 years agoPackageSettingBase needs to copy volume UUID. am: 3b1c6e03f6 am: e63509b509
Jeff Sharkey [Mon, 2 Nov 2015 18:05:17 +0000 (18:05 +0000)]
PackageSettingBase needs to copy volume UUID. am: 3b1c6e03f6 am: e63509b509
am: 12d2e98fe0

* commit '12d2e98fe07764475cae788aa6ff20406d1ee4c9':
  PackageSettingBase needs to copy volume UUID.

8 years agoReporting task bounds in RecentTaskInfo.
Winson [Mon, 2 Nov 2015 17:20:01 +0000 (09:20 -0800)]
Reporting task bounds in RecentTaskInfo.

Change-Id: I8e88d1aca5fa0ee316e93afe4fb63264e2d338f0

8 years agoPackageSettingBase needs to copy volume UUID. am: 3b1c6e03f6
Jeff Sharkey [Mon, 2 Nov 2015 17:58:35 +0000 (17:58 +0000)]
PackageSettingBase needs to copy volume UUID. am: 3b1c6e03f6
am: e63509b509

* commit 'e63509b5093776e0320876719226cbbb16cc5eab':
  PackageSettingBase needs to copy volume UUID.

8 years agoPackageSettingBase needs to copy volume UUID.
Jeff Sharkey [Mon, 2 Nov 2015 17:51:53 +0000 (17:51 +0000)]
PackageSettingBase needs to copy volume UUID.
am: 3b1c6e03f6

* commit '3b1c6e03f67ba8e4a4f4a98e996c7ceabf36affa':
  PackageSettingBase needs to copy volume UUID.

8 years agoMerge "Move more Accessibility stuff to SettingsLib"
Tony Mantler [Mon, 2 Nov 2015 16:46:57 +0000 (16:46 +0000)]
Merge "Move more Accessibility stuff to SettingsLib"

8 years agoMerge "Don't set modification times in aapt zip entries"
Tor Norbye [Mon, 2 Nov 2015 15:02:28 +0000 (15:02 +0000)]
Merge "Don't set modification times in aapt zip entries"

8 years agofix a bug that is keeping us from counting API use
Chris Wren [Fri, 30 Oct 2015 18:50:22 +0000 (14:50 -0400)]
fix a bug that is keeping us from counting API use

Bug: 25390174
Change-Id: Ieaf9386640140f4d9f30a566714111749ada6e00

8 years agoMerge "Return actual userId when File Based Encryption is present"
Clara Bayarri [Mon, 2 Nov 2015 10:31:58 +0000 (10:31 +0000)]
Merge "Return actual userId when File Based Encryption is present"

8 years agoImplement ID mapping for root documents.
Daichi Hirono [Tue, 27 Oct 2015 07:18:17 +0000 (16:18 +0900)]
Implement ID mapping for root documents.

MTP identifiers like object handle is unstable over MTP sessions.  The
CL introduce two methods to MtpDatabase that enables the provider to
remap exisitng document ID with new MTP identifiers when the provider
reopen the MTP session.

 * MtpDatabase#clearMtpIdentifier invalidates old MTP identifiers
 * MtpDatabase#resolveRootDocuments remaps invalidated documents with
   new MTP identifier.

BUG=25162822

Change-Id: Iadb668ae5932da81aba2b2731d0d185da5656f16

8 years agoPackageSettingBase needs to copy volume UUID.
Jeff Sharkey [Sat, 31 Oct 2015 20:58:54 +0000 (13:58 -0700)]
PackageSettingBase needs to copy volume UUID.

When copying all fields from one PackageSettingBase to another, we
also need to copy volumeUuid, which had previously been missed.

Without this, packages using sharedUserId that are installed on
adopted storage devices will be destroyed, since after reboot we
think they actually belong on internal storage (where volumeUuid is
null).

Bug: 25334169
Change-Id: I223361bd1e19e7d5dd78626682ac7c5cbecb9fa1

8 years agoDon't set modification times in aapt zip entries
Tor Norbye [Sat, 31 Oct 2015 03:00:13 +0000 (20:00 -0700)]
Don't set modification times in aapt zip entries

Use a modification timestamp of 0 for all files
inside the zip archive to make the build repeatable.

Change-Id: Ie6e57329469b99c6f93cb0a6083e0c402be99815

8 years agoMerge changes from topic 'notification_children'
Selim Cinek [Sat, 31 Oct 2015 01:45:35 +0000 (01:45 +0000)]
Merge changes from topic 'notification_children'

* changes:
  Follow up CL for notification children change
  Allow expanding notification groups by dragging down
  Changed the appearance of notification bundles
  Hiding subtext of children notifications now
  Hiding the children backgrounds now
  Introduced the notification header
  Slight refactoring of notification groups
  Fixed a bug where a notification could stay userlocked

8 years agoUpdate AudioManager.getProperty documentation
Glenn Kasten [Sat, 31 Oct 2015 01:24:04 +0000 (18:24 -0700)]
Update AudioManager.getProperty documentation

Change-Id: I004bfdbbac9b0897931fa206bff865bdb600ebf6

8 years agoExplain ENCODING_PCM_FLOAT
Glenn Kasten [Sat, 31 Oct 2015 01:23:45 +0000 (18:23 -0700)]
Explain ENCODING_PCM_FLOAT

Change-Id: Icf680f65f07023ca6e416a1ef6067132daf607b9

8 years agoCDD for pro audio feature does not specify acoustics
Glenn Kasten [Sat, 31 Oct 2015 00:45:52 +0000 (17:45 -0700)]
CDD for pro audio feature does not specify acoustics

Change-Id: If24a2ee485a35ad18969abacf55798b64ff939af

8 years agoFollow up CL for notification children change
Selim Cinek [Thu, 29 Oct 2015 23:27:08 +0000 (16:27 -0700)]
Follow up CL for notification children change

The CLs of the notification children change have been
quite overlapping, so a few comments are addressed in this
change.

Bug: 24866646
Change-Id: If3cd029f5a97302fc33f3e2b6b6b147938ddcd3e

8 years agoAllow expanding notification groups by dragging down
Selim Cinek [Thu, 22 Oct 2015 20:25:11 +0000 (13:25 -0700)]
Allow expanding notification groups by dragging down

Bug: 24866646
Change-Id: Ie7c5ee6753c2f246df04189bb92e08baf0242797

8 years agoChanged the appearance of notification bundles
Selim Cinek [Thu, 22 Oct 2015 20:26:54 +0000 (13:26 -0700)]
Changed the appearance of notification bundles

Children now show up as one line notifications even
if the summary is not expanded. The childrenContainer
shows a summary if there are some which don't fit
in there currently.

Bug: 24866646
Change-Id: I0cfae9342722c9f8941f51704618190cfe4e76b4

8 years agoHiding subtext of children notifications now
Selim Cinek [Thu, 22 Oct 2015 20:00:05 +0000 (13:00 -0700)]
Hiding subtext of children notifications now

If the parent header already displays the email
we don’t want to display it again in the child.

Bug: 24866646
Change-Id: I3aee62e895fef68b059a61a825eef37f0f8ad875

8 years agoHiding the children backgrounds now
Selim Cinek [Thu, 22 Oct 2015 19:30:38 +0000 (12:30 -0700)]
Hiding the children backgrounds now

To avoid overdraw we are now hiding
the background of the view if it has
the same color.

Bug: 24866646
Change-Id: Ie998c9d2e6055d8e88f33300583a4b86bf35362f

8 years agoIntroduced the notification header
Selim Cinek [Fri, 30 Oct 2015 23:28:00 +0000 (16:28 -0700)]
Introduced the notification header

In the new grouping model we don't have a dedicated expand button
anymore but only the notification header.

Bug: 24866646
Change-Id: I2e4bc82e502fde951a71b61cd81347c44b9637f6

8 years agoMove more Accessibility stuff to SettingsLib
Tony Mantler [Fri, 30 Oct 2015 19:44:11 +0000 (12:44 -0700)]
Move more Accessibility stuff to SettingsLib

Change-Id: I081bffea6ff4da455f9040fc3f45198d1de85d26

8 years agoMerge "Ensuring that tasks in the back are always visible."
Winson Chung [Fri, 30 Oct 2015 23:17:35 +0000 (23:17 +0000)]
Merge "Ensuring that tasks in the back are always visible."

8 years agoMerge "Fixing crash when swiping away last task."
Winson Chung [Fri, 30 Oct 2015 23:17:29 +0000 (23:17 +0000)]
Merge "Fixing crash when swiping away last task."

8 years agoMerge "Fix build."
Filip Gruszczynski [Fri, 30 Oct 2015 23:16:23 +0000 (23:16 +0000)]
Merge "Fix build."

8 years agoFix build.
Filip Gruszczynski [Fri, 30 Oct 2015 23:14:57 +0000 (16:14 -0700)]
Fix build.

Change-Id: If103e0fbef656d565ce912c3fd13aa6497ab9d4a

8 years agoEnsuring that tasks in the back are always visible.
Winson [Fri, 30 Oct 2015 23:03:08 +0000 (16:03 -0700)]
Ensuring that tasks in the back are always visible.

Change-Id: Ic64a1eac4b312c1efdb8c3ab005903a53b4a61d2

8 years agoMerge "Remove old APIs that are no longer used/implemented"
Mitchell Wills [Fri, 30 Oct 2015 23:02:35 +0000 (23:02 +0000)]
Merge "Remove old APIs that are no longer used/implemented"

8 years agoMerge "resolve merge conflicts of 07c6628d68 to master."
Jeff Sharkey [Fri, 30 Oct 2015 22:45:53 +0000 (22:45 +0000)]
Merge "resolve merge conflicts of 07c6628d68 to "

8 years agoresolve merge conflicts of 07c6628d68 to master.
Jeff Sharkey [Fri, 30 Oct 2015 22:44:58 +0000 (15:44 -0700)]
resolve merge conflicts of 07c6628d68 to master.

Change-Id: I29c9b408956c578ce1cfe0eb5d8704b7a5d2f818

8 years agoFixing crash when swiping away last task.
Winson [Fri, 30 Oct 2015 22:32:06 +0000 (15:32 -0700)]
Fixing crash when swiping away last task.

Change-Id: I53e8e619b42ac2069aafce66f74281e72fcffa21

8 years agoMerge "Handle "uninstalled" apps when pruning app-ops." into mnc-dr-dev am: a975732a8...
Jeff Sharkey [Fri, 30 Oct 2015 21:59:36 +0000 (21:59 +0000)]
Merge "Handle "uninstalled" apps when pruning app-ops." into mnc-dr-dev am: a975732a83 am: 637d05eb5c
am: d359137d41

* commit 'd359137d419023f207351251cdbfa23180236963':
  Handle "uninstalled" apps when pruning app-ops.

8 years agoMerge "Handle "uninstalled" apps when pruning app-ops." into mnc-dr-dev am: a975732a83
Jeff Sharkey [Fri, 30 Oct 2015 21:49:44 +0000 (21:49 +0000)]
Merge "Handle "uninstalled" apps when pruning app-ops." into mnc-dr-dev am: a975732a83
am: 637d05eb5c

* commit '637d05eb5c19825b1f9a7da481037a0c54add08d':
  Handle "uninstalled" apps when pruning app-ops.

8 years agoMerge "Fix bug preventing resizing of freeform apps."
Filip Gruszczynski [Fri, 30 Oct 2015 21:43:19 +0000 (21:43 +0000)]
Merge "Fix bug preventing resizing of freeform apps."

8 years agoMerge "Handle "uninstalled" apps when pruning app-ops." into mnc-dr-dev
Jeff Sharkey [Fri, 30 Oct 2015 21:37:17 +0000 (21:37 +0000)]
Merge "Handle "uninstalled" apps when pruning app-ops." into mnc-dr-dev
am: a975732a83

* commit 'a975732a8302893a40cdc444f893bf09b7669173':
  Handle "uninstalled" apps when pruning app-ops.

8 years agoMerge "Hide recents during freeform to recents animation."
Filip Gruszczynski [Fri, 30 Oct 2015 21:34:57 +0000 (21:34 +0000)]
Merge "Hide recents during freeform to recents animation."

8 years agoHide recents during freeform to recents animation.
Filip Gruszczynski [Fri, 30 Oct 2015 00:43:49 +0000 (17:43 -0700)]
Hide recents during freeform to recents animation.

Bug: 24913782
Change-Id: I6a5d3a638640571a902e095c4c0650b88eea0fb6

8 years agoMerge "Handle "uninstalled" apps when pruning app-ops." into mnc-dr-dev
Jeff Sharkey [Fri, 30 Oct 2015 21:32:28 +0000 (21:32 +0000)]
Merge "Handle "uninstalled" apps when pruning app-ops." into mnc-dr-dev

8 years agoMerge "Import translations. DO NOT MERGE"
Geoff Mendal [Fri, 30 Oct 2015 21:31:11 +0000 (21:31 +0000)]
Merge "Import translations. DO NOT MERGE"

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Fri, 30 Oct 2015 21:30:15 +0000 (14:30 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 25390707
Change-Id: Ief847dab50086dfc1c38d5a3fd50c5971efc7238

8 years agoFix bug preventing resizing of freeform apps.
Filip Gruszczynski [Fri, 30 Oct 2015 21:20:37 +0000 (14:20 -0700)]
Fix bug preventing resizing of freeform apps.

Also move the calculation of the touchable region to WindowState, since
it calls many methods from there.

Change-Id: I7f799277f4ed8a62b1ac8240f2b21d31a095a693

8 years agoMerge "Moved Wifi InformationElement parsing to a common utility class"
Mitchell Wills [Fri, 30 Oct 2015 21:28:47 +0000 (21:28 +0000)]
Merge "Moved Wifi InformationElement parsing to a common utility class"

8 years agoMerge "PackageManager can return null."
Julia Reynolds [Fri, 30 Oct 2015 21:05:14 +0000 (21:05 +0000)]
Merge "PackageManager can return null."

8 years agoPackageManager can return null.
Julia Reynolds [Fri, 30 Oct 2015 21:03:59 +0000 (17:03 -0400)]
PackageManager can return null.

Change-Id: Ie1fb3d5276c0b176a09e5510f26624e8087c90d4

8 years agoMerge "Add window setDecorView API."
Rob Carr [Fri, 30 Oct 2015 20:55:35 +0000 (20:55 +0000)]
Merge "Add window setDecorView API."

8 years agoAAPT2: Support generating Manifest.java
Adam Lesinski [Wed, 21 Oct 2015 21:42:43 +0000 (14:42 -0700)]
AAPT2: Support generating Manifest.java

This includes comments from AndroidManifest.xml.

Change-Id: I412d9ecb12bad20a49a683d6b3bea4a0be1235ae

8 years agoMerge "More granular reporting of size configurations."
Filip Gruszczynski [Fri, 30 Oct 2015 20:45:38 +0000 (20:45 +0000)]
Merge "More granular reporting of size configurations."

8 years agoMerge "Add intent extra for determining if apps are system apps" into cw-e-dev am...
Anthony Hugh [Fri, 30 Oct 2015 20:27:33 +0000 (20:27 +0000)]
Merge "Add intent extra for determining if apps are system apps" into cw-e-dev am: 3a9bf5c8ce am: a8e20b3919
am: c2b3e48bb1

* commit 'c2b3e48bb1ab75163f8d7890db39b91436c06015':
  Add intent extra for determining if apps are system apps

8 years agoMerge "Introduce direct listener API for alarm delivery"
Chris Tate [Fri, 30 Oct 2015 20:20:15 +0000 (20:20 +0000)]
Merge "Introduce direct listener API for alarm delivery"

8 years agoMerge "Add intent extra for determining if apps are system apps" into cw-e-dev am...
Anthony Hugh [Fri, 30 Oct 2015 20:19:36 +0000 (20:19 +0000)]
Merge "Add intent extra for determining if apps are system apps" into cw-e-dev am: 3a9bf5c8ce
am: a8e20b3919

* commit 'a8e20b391909cbc115e8996bd247e84a2819bfc3':
  Add intent extra for determining if apps are system apps

8 years agoMerge "Add intent extra for determining if apps are system apps" into cw-e-dev
Anthony Hugh [Fri, 30 Oct 2015 20:11:54 +0000 (20:11 +0000)]
Merge "Add intent extra for determining if apps are system apps" into cw-e-dev
am: 3a9bf5c8ce

* commit '3a9bf5c8ceca8783d169faffdc70a6ea88d609bf':
  Add intent extra for determining if apps are system apps

8 years agoSlight refactoring of notification groups
Selim Cinek [Thu, 22 Oct 2015 00:40:23 +0000 (17:40 -0700)]
Slight refactoring of notification groups

For the preparation of the bigger UI rewamp.

Bug: 24866646
Change-Id: Id5760ba6e5bae88c052bdd30ae47d9671a2a19c2

8 years agoFixed a bug where a notification could stay userlocked
Selim Cinek [Wed, 21 Oct 2015 21:00:33 +0000 (14:00 -0700)]
Fixed a bug where a notification could stay userlocked

Moved the responsibility to remove the userlocked flag
into the DragdownHelper instead of the Callback.

Bug: 24866646
Change-Id: Ib0dbe310f9f7637f9bae466b1029728a6611f291

8 years agoMerge "Add intent extra for determining if apps are system apps" into cw-e-dev
Anthony Hugh [Fri, 30 Oct 2015 20:04:10 +0000 (20:04 +0000)]
Merge "Add intent extra for determining if apps are system apps" into cw-e-dev

8 years agoMerge "Initial layout/behaviour for freeform workspace."
Winson Chung [Fri, 30 Oct 2015 19:47:27 +0000 (19:47 +0000)]
Merge "Initial layout/behaviour for freeform workspace."

8 years agoInitial layout/behaviour for freeform workspace.
Winson [Fri, 30 Oct 2015 01:04:39 +0000 (18:04 -0700)]
Initial layout/behaviour for freeform workspace.

Change-Id: Idc878862747d0d726cbf10be9893c48736673d0e

8 years agoMerge "AudioService: fix BT SCO min volume"
Eric Laurent [Fri, 30 Oct 2015 19:43:07 +0000 (19:43 +0000)]
Merge "AudioService: fix BT SCO min volume"

8 years agoRefactor MagnificationController out to its own class
Alan Viverette [Thu, 29 Oct 2015 19:08:21 +0000 (15:08 -0400)]
Refactor MagnificationController out to its own class

First step in moving ownership to AccessibilityServiceManager so that we
can implement the magnification control APIs.

The magnification Region and the current/sent MagnificationSpecs are now
private to the controller, and all access is handled through accessor
methods. Comments have been added to all public accessor methods.

Bug: 22718911
Change-Id: Ia50ee93513785585aac5424543fc1d730b84bd90

8 years agoIntroduce direct listener API for alarm delivery
Christopher Tate [Thu, 1 Oct 2015 17:24:31 +0000 (10:24 -0700)]
Introduce direct listener API for alarm delivery

The Alarm Manager now supports a set() variant that takes a listener
callback to invoke at alarm trigger time rather than a PendingIntent.
This is much lower overhead and has guaranteed low delivery latency
from the trigger time.  The tradeoff is that the app must be running
*continuously* from the time the alarm is set to the time it is
delivered.  If the app exits for any reason before the alarm fires,
the listener becomes invalid and the alarm will be dropped.  This is
more or less equivalent to setting an alarm with a broadcast
PendingIntent that matches only a runtime-registered receiver.

The app's alarm listener can be any object that implements the new
AlarmManager.OnAlarmListener interface and implements its onAlarm()
method.  There is no data delivered at alarm trigger time: whatever
state needs to be associated with the specific alarm instance should
simply be packaged inside the OnAlarmListener instance.

An alarm using OnAlarmListener can request that the onAlarm() method
be called on an arbitrary handler.  If the program passes 'null' for
this parameter when setting the alarm, the callback occurs on the
application's main Looper thread.

Bug 20157436

Change-Id: I2eb030a24efdd466a2eee1666c5231201b43684b

8 years agoMerge "Set ClipData with attachments URIs on bugreport notification."
Felipe Leme [Fri, 30 Oct 2015 18:20:29 +0000 (18:20 +0000)]
Merge "Set ClipData with attachments URIs on bugreport notification."

8 years agoMerge "Don't store a static instance of UserManager"
Amith Yamasani [Fri, 30 Oct 2015 18:19:08 +0000 (18:19 +0000)]
Merge "Don't store a static instance of UserManager"

8 years agoMerge "AAPT2: Move comments and source into Value"
Adam Lesinski [Fri, 30 Oct 2015 18:05:31 +0000 (18:05 +0000)]
Merge "AAPT2: Move comments and source into Value"

8 years agoDon't store a static instance of UserManager
Amith Yamasani [Fri, 30 Oct 2015 17:40:03 +0000 (10:40 -0700)]
Don't store a static instance of UserManager

Otherwise the context within it can't be GCed.
It's better to leave the caching to the ContextImpl.

Bug: 25308506
Change-Id: I9be3ba5b1bb6cdc88b77520b2fbd72d9b72ef30d

8 years agoMerge "Bring DisplayEventReceiver to PointerController."
Jun Mukai [Fri, 30 Oct 2015 17:32:02 +0000 (17:32 +0000)]
Merge "Bring DisplayEventReceiver to PointerController."

8 years agoBring DisplayEventReceiver to PointerController.
Jun Mukai [Tue, 27 Oct 2015 17:09:21 +0000 (10:09 -0700)]
Bring DisplayEventReceiver to PointerController.

Now the fading animation of pointers is handled at vsync.

Change-Id: I10fe27d9d7a0d46c4e6504ca487e80bb56e2fd98

8 years agoMerge "Add API to determine if the app supplied a web URI."
Dianne Hackborn [Fri, 30 Oct 2015 17:18:31 +0000 (17:18 +0000)]
Merge "Add API to determine if the app supplied a web URI."

8 years agoAdd API to determine if the app supplied a web URI.
Dianne Hackborn [Fri, 30 Oct 2015 17:17:03 +0000 (10:17 -0700)]
Add API to determine if the app supplied a web URI.

Change-Id: I60aa39b9db822fe46ddd57ef5483b5708cf21422

8 years agoMore granular reporting of size configurations.
Filip Gruszczynski [Fri, 30 Oct 2015 17:08:27 +0000 (10:08 -0700)]
More granular reporting of size configurations.

There are two improvements in reporting size configurations:
1) duplicates are removed;
2) smallest width is reported separately;

Change-Id: I8f8235c99e6eefcae178e8d61e79ad0c4d6f1144

8 years agoAudioService: fix BT SCO min volume
Eric Laurent [Fri, 30 Oct 2015 00:52:48 +0000 (17:52 -0700)]
AudioService: fix BT SCO min volume

Set minimum BT SCO stream volume back to 0 to comply to
Bluetooth audio gateway requirement.

Also fix minimum stream volume when initializing audio policy manager
after a mediaserver crash.

Bug: 24747886
Change-Id: I80c51114d5b10a132b7b10f216bce96323fdc166

8 years agoMerge "Move AccessibilityUtils to SettingsLib"
Tony Mantler [Fri, 30 Oct 2015 15:59:12 +0000 (15:59 +0000)]
Merge "Move AccessibilityUtils to SettingsLib"

8 years agoMerge "Use preexisting DND access setting for condition providers."
Julia Reynolds [Fri, 30 Oct 2015 15:58:46 +0000 (15:58 +0000)]
Merge "Use preexisting DND access setting for condition providers."

8 years agoMerge "Use the SystemService lifecycle mechanism for AudioService"
Makoto Onuki [Fri, 30 Oct 2015 15:58:10 +0000 (15:58 +0000)]
Merge "Use the SystemService lifecycle mechanism for AudioService"

8 years agoMerge "Synchronize updates to zen config."
Julia Reynolds [Fri, 30 Oct 2015 15:58:06 +0000 (15:58 +0000)]
Merge "Synchronize updates to zen config."

8 years agoUse preexisting DND access setting for condition providers.
Julia Reynolds [Fri, 30 Oct 2015 12:23:51 +0000 (08:23 -0400)]
Use preexisting DND access setting for condition providers.

So that apps that are already whitelisted don't have to be whitelisted
again if they add a CP.

Bug: 22977552
Change-Id: I4042d531178ab63d5d1e5b963fc081e3ed523835

8 years agoSynchronize updates to zen config.
Julia Reynolds [Mon, 26 Oct 2015 19:53:28 +0000 (15:53 -0400)]
Synchronize updates to zen config.

Also, remove some dead code.

Change-Id: If6f4432638aebcedf59a4804a3b5d14b73f12549

8 years agoSet ClipData with attachments URIs on bugreport notification.
Felipe Leme [Thu, 29 Oct 2015 19:30:39 +0000 (12:30 -0700)]
Set ClipData with attachments URIs on bugreport notification.

The ACTION_SEND_MULTIPLE contract expects the EXTRA_TEXT to be an
ArrayList<String>, but it's currently set as String, which causes an
exception when exporting the EXTRA_STREAM as ClipData.

The right approach would be changing the EXTRA_TEXT content, but that
would break some clients like GMail, so a safer fix is to explicitly
set the ClipData.

Also removed unused variables and imports.

BUG: 21735884
BUG: 21729227

 Changes to be committed:
modified:   src/com/android/shell/BugreportReceiver.java

Change-Id: If9954e8cae4af7b74f077a32806f25eb7d55dffb

8 years agoMerge "Update DocumentUI styles to match mocks."
Ben Kwa [Fri, 30 Oct 2015 15:13:15 +0000 (15:13 +0000)]
Merge "Update DocumentUI styles to match mocks."

8 years agoSupport for changing density of GradientDrawable
Alan Viverette [Fri, 30 Oct 2015 15:07:35 +0000 (11:07 -0400)]
Support for changing density of GradientDrawable

Refactors density resolution and offset/size scaling into static
helper methods.

Also fixes VectorDrawbale insets to be treated as offset-type pixels
rather than size-type.

Bug: 25081461
Change-Id: I10fcb9ebb6c67f853a27ca0ee008c31af4b85da0

8 years agoMerge "IMS: Support For Per-Call RAT Info" into mnc-dr-dev am: 4ec415800f am: b5ab0ec...
Pavel Zhamaitsiak [Fri, 30 Oct 2015 14:47:02 +0000 (14:47 +0000)]
Merge "IMS: Support For Per-Call RAT Info" into mnc-dr-dev am: 4ec415800f am: b5ab0ec3c0 am: 22baf9b3c1
am: 6df638a380

* commit '6df638a380c176a4283409edd0a50c458b445618':
  IMS: Support For Per-Call RAT Info

8 years agoMerge "IMS: Support For Per-Call RAT Info" into mnc-dr-dev am: 4ec415800f am: b5ab0ec3c0
Pavel Zhamaitsiak [Fri, 30 Oct 2015 14:40:03 +0000 (14:40 +0000)]
Merge "IMS: Support For Per-Call RAT Info" into mnc-dr-dev am: 4ec415800f am: b5ab0ec3c0
am: 22baf9b3c1

* commit '22baf9b3c1f263b1d7fbfea33fe6d9c7c060dc2c':
  IMS: Support For Per-Call RAT Info

8 years agoMerge "IMS: Support For Per-Call RAT Info" into mnc-dr-dev am: 4ec415800f
Pavel Zhamaitsiak [Fri, 30 Oct 2015 14:33:34 +0000 (14:33 +0000)]
Merge "IMS: Support For Per-Call RAT Info" into mnc-dr-dev am: 4ec415800f
am: b5ab0ec3c0

* commit 'b5ab0ec3c05f88c1305d962fffcd185ab5c6a8e9':
  IMS: Support For Per-Call RAT Info