234218 Commits

Author SHA1 Message Date
Narayan Kamath
6839f4c5f4 Merge "Regenerate API after b8f53ee812b75b526c3b481b62334e45609fa70e." into nyc-dev 2016-03-01 17:21:52 +00:00
Narayan Kamath
24825ff421 Regenerate API after b8f53ee812b75b526c3b481b62334e45609fa70e.
bug: 26704777
Change-Id: Ib448d90fdf0200d77df9cbb8930a904fbe3374ca
2016-03-01 17:18:58 +00:00
Hangyu Kuang
3e0127f5d5 Merge "Update Android mediamuxer documentation." into nyc-dev 2016-03-01 17:18:15 +00:00
Amith Yamasani
5fea67e88e Merge "Heed user shell restriction for pm calls" into nyc-dev 2016-03-01 17:10:27 +00:00
Adam Lesinski
b7a3827ea8 Merge "AAPT2: Fix segfault when showing error in 9-patch" into nyc-dev 2016-03-01 17:07:15 +00:00
Adam Lesinski
144c5eabe5 AAPT2: Fix segfault when showing error in 9-patch
Change-Id: I8f457212efc27480758a7157455d98b5e316f772
2016-03-01 09:05:11 -08:00
Ronghua Wu
78614f7714 Merge "media: define HEVCProfileMain10HDR10" into nyc-dev 2016-03-01 16:35:22 +00:00
Michal Karpinski
8fc5462ee1 Merge "Adding SecurityException information to all device logging DPM public methods" into nyc-dev 2016-03-01 15:57:44 +00:00
Jorim Jaggi
eba8f47c6e Fix animation bug in chooser activity
Make sure to set the status color to 0 (fully translucent), so
there is no ugly line travelling across the screen when opening
the activity.

Bug: 27285627
Change-Id: If8aa1059958f3e2a45a48f6ba276560244f284cd
2016-03-01 15:50:41 +00:00
Michal Karpinski
b58e4966db Adding SecurityException information to all device logging DPM public methods
Bug: 22860162
Change-Id: I6cdfad2dcdf14896c855debef34964def190e110
2016-03-01 15:26:56 +00:00
Julia Reynolds
2319dd3a66 Merge "Api review: AutomaticZenRule" into nyc-dev 2016-03-01 15:05:36 +00:00
Jason Monk
1aec93f181 Fix QS icon animations once and for all
Bug: 27250295
Change-Id: I6449b9cea19acf120dfc02d146fe608da46fe790
2016-03-01 09:42:34 -05:00
Tomasz Mikolajewski
1f67c8740c Merge "Fix crash in isChildDocument when parent is in zip, and child not." into nyc-dev 2016-03-01 10:25:30 +00:00
Tomasz Mikolajewski
e192cb71d6 Fix crash in isChildDocument when parent is in zip, and child not.
There is no regular file representation for archive documents, so
the call to getFileForDocId(archivedDocId) was throwing an exception.

Bug: 27383423
Change-Id: Icbc1e8ecdddc7698cfdb79b41da6e1d3cecf11ae
2016-03-01 10:23:59 +00:00
Jorim Jaggi
8175846ed6 Fix popup window calculation for multi-window
If ignoreBottomDecorations=true, the display size was extracted from
the resources. However, this didn't work if the parent window was in
multi-window, as all the calculations went wrong. Instead, introduce
View.getWindowDisplayFrame which returns the "full" frame of the task
the window is currently in, without any insets, and use that to
calculate the bottom edge.

Bug: 26255254
Change-Id: I8b235b335775022ae399ee082d1200aa76cc047c
2016-03-01 09:00:29 +00:00
Daichi Hirono
300efaa0ea Merge "Fix argument type in MtpDatabase#getObjectPropertyValue." into nyc-dev 2016-03-01 08:36:28 +00:00
Daichi Hirono
e5b499bcc5 Merge "Fix RootScanner to execute scan at least once before cancelling it." into nyc-dev 2016-03-01 07:50:18 +00:00
Daichi Hirono
486ad2e73c Fix argument type in MtpDatabase#getObjectPropertyValue.
In MTP code, we use jint for ID (e.g. object handle) and code (property
code). But getObjectPropertyValue takes jlong and it causes missing
property values in Java code. Previously we passed the long value to
Map<Integer, MtpPropertyGroup>#get(Integer) and the compiler somehow
accepted the code. However it actually takes Long at runtime, so the
properties are never found.

BUG=26437284
Change-Id: I79defd325ea5d20c4dce84d891d984e24abcacc5
2016-03-01 16:49:08 +09:00
Erik Kline
e5a5f84fef Add constructor with more inputs for dependency injection.
am: b9df11099f

* commit 'b9df11099f16ca816a69e06f1327eb1f86723578':
  Add constructor with more inputs for dependency injection.
2016-03-01 06:10:40 +00:00
Erik Kline
b9df11099f Add constructor with more inputs for dependency injection.
Bug: 26991160
Bug: 27406552
Change-Id: If4a0a2f1afb1da4ad59df9eb31c540047c84659b
2016-03-01 14:58:30 +09:00
Daichi Hirono
2e9a57b0d4 Fix RootScanner to execute scan at least once before cancelling it.
Previously RootScanner is implemented by FutureTask, and if it is
cancelled before it starts running in background thread, the scan will
be never executed.

The CL stops using FutureTask and introduces CountDownLatch to control
UpdateRootsRunnable.

BUG=27369585

Change-Id: Ica8799faba0a8e5ca91a6b8be36dc4f5118d6333
2016-03-01 13:51:06 +09:00
Jeff Tinker
6430b15495 Merge "Add javadocs to MediaCodec.CryptoInfo methods" into nyc-dev 2016-03-01 02:26:30 +00:00
Mady Mellor
6e64423c19 Merge "Fix settings icon row consuming the click when tapping the notification" into nyc-dev 2016-03-01 02:18:34 +00:00
Svetoslav Ganov
a0021cbb7f Merge "Proper grant default permissions to default SMS and Phone" into nyc-dev 2016-03-01 01:40:37 +00:00
Tomasz Mikolajewski
88d5592ff2 Merge "Remove revealLauncher and revealApp from tests." into nyc-dev 2016-03-01 01:38:52 +00:00
Amith Yamasani
5ebdefd0db Heed user shell restriction for pm calls
Make sure that a restricted user cannot use adb shell commands
to grant/revoke runtime permissions.

Bug: 27418014
Change-Id: I518b09f56ca7d77cc2bfa1d0b4faaf129e19000d
2016-02-29 17:35:01 -08:00
Svetoslav Ganov
80d78dc92b Proper grant default permissions to default SMS and Phone
We grant default permissions to the default SMS and
Phone apps when they are selected as such to ensure
they can do their job. We don't grant default permissions
to apps if the version on the system image does not
declare them. This is correct for default grants on
first boot or a new user creation. This is a problem
for default Phone and SMS as we want to grant them
the permission as a result of a deliberate user action
and therefore should not care if the version on the
system image declares the permission.

As a result if an SMS app that ships as a stub to reduce
image size is later updated to the full version and
made the default SMS it would not get the default grants
while an installed third-party app that did not ship
on the system image would get the grants.

This change ensures the default SMS and Phone get
their default grants regardless whether the verion on
the system image declares the permissions.

bug:25288760

Change-Id: I2fecf5cbce4ebabb145a3f29abb555bcb65d54d6
2016-02-29 17:29:43 -08:00
Fyodor Kupolov
57b82f38c4 Merge "Allow system to bypass DISALLOW_SHARE_LOCATION restriction" into nyc-dev 2016-03-01 01:22:00 +00:00
Clara Bayarri
30f0ff2a1c Merge "Unlock Keystore/Keymaster separately for Work Challenge" into nyc-dev 2016-03-01 01:08:39 +00:00
Felipe Leme
2bb39839fd Merge "Make bugreport details dialog confirm to Material Guidelines for Dialogs." into nyc-dev 2016-03-01 00:56:36 +00:00
Dimitry Ivanov
cad065fb7f Merge "Explicitly check for updated system apps" into nyc-dev 2016-03-01 00:51:38 +00:00
Felipe Leme
bbd91e5844 Make bugreport details dialog confirm to Material Guidelines for Dialogs.
Changes:
- Removed hints.
- Added TextViews for field labels.
- Added padding for inner dialog
- Adedd autoCorrect and capSentences to title and summary
- Changed strings.
- Set name to be selectAllOnFocus initially.

Also improved some logging statements.

BUG: 26324085
Change-Id: I32597a7c2839ca706dbbcf13660e976469ab8dd0
2016-02-29 16:46:54 -08:00
Lajos Molnar
063a570ef0 Merge "media: switch to using MediaImage2" into nyc-dev 2016-03-01 00:40:30 +00:00
Dianne Hackborn
72041bb2c6 Merge "Fix issue #27385109: control activity behavior without triggering..." into nyc-dev 2016-03-01 00:35:40 +00:00
Selim Cinek
2c58461daf Fixed a bug where group expansion size calculation was wrong
On the lockscreen, the minheight was always based on the intrinsic
height and not actually the minHeight of the children. Because
children were userlocked, they were now reporting their small size
instead of the single line size.
This meant that the expand motion on the lockscreen wasn't following
the finger at all.

Bug: 27418617
Change-Id: I81daaf87887de1adc014cb4c6d46f4ef118061e5
2016-03-01 00:30:40 +00:00
Chris Tate
d1bb54b80e Merge "Reintroduce per-app scheduled job limits" into nyc-dev 2016-03-01 00:27:29 +00:00
Svetoslav Ganov
5345a9f663 Merge "Notification listener and ranker callbacks on binder threads." into nyc-dev 2016-03-01 00:27:17 +00:00
Svet Ganov
b8f53ee812 Notification listener and ranker callbacks on binder threads.
The callbacks for the notification listener and notification
ranker were delivered on binder threads which is problematic
becuase: 1) permission checks and app ops checks would fail
unless the app developer knows to clear binder calling id and
restore it after that; 2) developers need to synchronize their
implementation as they get callbacks on different threads (
arguably callbacks should not be concurrent); 3) this doesn't
follow the pattern in the platform;

Also the code delivering callbacks was catching Throwable which
we shouldn't do in general and also masks bugs in the listener
or ranker implementation. Now that the callbacks are offloaded
to the main listener/ranker thread system code should not be
guarding against Throwable to handle exceptions propagated
over binder calls.

bug:26704777

Change-Id: I171fb41bbe25e6105dd05e4166193dbcec594f82
2016-02-29 16:26:17 -08:00
Dimitry Ivanov
b2b8c3c1d9 Explicitly check for updated system apps
Unbundled apps should not be allowed to share
linker-namespaces with default namespace; it implies
that they will not have unlimited access to private
native libs once updated.

Bug: http://b/27189432
Change-Id: I60295b9b31d700016add93537418fdcce5a77719
2016-02-29 16:23:10 -08:00
John Reck
f571c4728a Merge "Only copyLayer if valid rendertarget" into nyc-dev 2016-03-01 00:15:21 +00:00
Jeff Sharkey
ba3786c1e1 Merge "Skip boot prompt for both native and emulated FBE." into nyc-dev 2016-03-01 00:14:21 +00:00
Jeff Sharkey
de2dabbad6 Skip boot prompt for both native and emulated FBE.
Bug: 27412530
Change-Id: I53d39392ccab54cb79cf6cc1e51923ad7b5a3b0c
2016-02-29 17:12:34 -07:00
Abhijith Shastry
b7ed5b074d Merge "Updates to BlockedNumberContract from API review." into nyc-dev 2016-03-01 00:08:01 +00:00
Phil Burk
4e572d32f8 Merge "AudioService: add support for ENCODED_SURROUND_OUTPUT" into nyc-dev 2016-03-01 00:06:21 +00:00
Jeff Sharkey
8cac67b616 Merge "Need to clear identity when rebooting for FBE." into nyc-dev 2016-03-01 00:03:29 +00:00
Jeff Sharkey
753c347efd Merge "Parcelable classes should always be final." into nyc-dev 2016-03-01 00:02:43 +00:00
Jeff Sharkey
1176e51b49 Need to clear identity when rebooting for FBE.
Bug: 27412530
Change-Id: I6d5b925a16daefd1b6906ce036faeb6244d503fb
2016-02-29 17:01:30 -07:00
John Reck
33c025cbfb Only copyLayer if valid rendertarget
Bug: 27407637

Texture layers will set a GL_NONE rendertarget
until they have managed to get the real rendertarget
from SurfaceTexture. If, however, copyLayer is called
prior to any calls to updateTexImage() (for example, if
no frames have yet been produced), this will
result in trying to use a Texture with a GL_NONE rendertarget
which is bad.

Change-Id: Ib7285d799cb94ebd44f07a89f2ef2075d79ef71f
2016-02-29 15:49:41 -08:00
Jeff Tinker
8ad2965d00 Add javadocs to MediaCodec.CryptoInfo methods
bug:27383993

Change-Id: I11bba4a2690d112e4210add41910f14c5ba6a927
2016-02-29 23:49:04 +00:00
Jeff Sharkey
50d1c044b5 Parcelable classes should always be final.
Also hide ConnectivityMetricsEvent which isn't being used yet.

Bug: 27415331
Change-Id: Iacdccddda504f3f669185f807b4f35b8dc2b0212
2016-02-29 16:46:09 -07:00