234408 Commits

Author SHA1 Message Date
Adam Powell
55fc649368 Merge "Correct state loss tracking for FragmentTransaction.commitNow" into nyc-dev 2016-03-01 17:33:40 +00:00
Filip Gruszczynski
c3b6179fca Relaunch activity resumed if it got resumed before relaunching.
This fixes following scenario:
1) first activity starts second activity and expects results; first
activity gets paused;
2) second activity finishes and returns a result;
3) first activity is still paused and receives the result from the second
activity; first activty requests a local relaunch; relaunch gets
scheduled and is marked as launching paused (because the activity is
still paused)
4) first activity resumes;
5) first activity relaunches and finishes in paused state.

The fix makes it drop the information about launching paused if it is
local when it gets resumed in step 4.

Bug: 25674611
Bug: 26116905
Change-Id: Ieeef3f0d5c311679882fdc59c13fd8a99e3d3a20
2016-03-01 09:29:14 -08:00
Julia Reynolds
be0184662d Fix app icon in notification guts.
Bug: 27408961
Change-Id: Iafae86dff611eb5c00b283452b5fcbc65f314c9e
2016-03-01 12:23:21 -05:00
Przemyslaw Szczepaniak
933c1d48bc Track change 02072325e0133d78cc575732a0762ed3da0242a7
Bug: 27404545
Change-Id: I51b1e7239d456f0ec1d0bdc6b54761aeb44368d9
2016-03-01 17:22:07 +00:00
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 Powell
3518feda21 Correct state loss tracking for FragmentTransaction.commitNow
Booleans are hard.

Bug 27419920

Change-Id: I91a746aa14cad36bf77ec6224ffc13b00dc39ae7
2016-03-01 09:07:44 -08: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
Jason Monk
46dbfb475f Handle density changes in QS
Bug: 26845796
Change-Id: Icc783c9d706382e553df49f699aaf44aac943d18
2016-03-01 11:08:19 -05: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
Wale Ogunwale
cd7043e99a Add activity onStop lifecycle to event logs.
Also added reasons why onPause and onResume are called.

Bug: 27384433
Change-Id: If6c304f577b601511f6d9b948061d2cfa0dcb970
2016-03-01 07:29:17 -08: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
Todd Kennedy
a67932374d Revert "Revert "Remove deprecated methods / classes""
This reverts commit 5cbeb5902633646fbc0a1be252081e77aaaee7b4.

Change-Id: Id96010364d65e6131221ebbcc8ce5889a2da256c
2016-03-01 07:19:33 -08: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
Lorenzo Colitti
fcfa7d921a Use MessageUtils in ConnectivityManager.
Change-Id: I0179b45bc54ffced8e5647d6f005b891b5de93ab
2016-03-01 22:57:29 +09:00
Kenny Guy
8267e8241f Don't clear widget providers from stopped profiles.
Stopped profiles may have a parent still running
hosting widgets so providers should remain.

Bug: 26842832
Change-Id: I3ef97222fcfa5b183744033ece133115b3c146c1
2016-03-01 12:18:03 +00:00
Diego Perez
52c2030f42 Fix layoutlib expand unit test
Changing the theme used to "Light" since currently the "Dark" theme
seems to be missing at least one value. This test doesn't visually
depend on the theme so just changing it to "Light" to make it pass.

Change-Id: Ibb885bf3948dcf587de08896540dda622f86e8b3
2016-03-01 11:29:49 +00: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
Yorke Lee
1b268cbca6 Add setAlwaysOpaque and setTint to BarTransitions
Allow the opacity and color of the NavigationBarView
to be controlled.

Bug: 26425669

Change-Id: I364f183bf0ef90c446ae68987ccc3b6bbf09aa67
2016-02-29 19:14:04 -08: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
Chong Zhang
d545dce4b9 Check task.isResizeable() instead of the resize mode directly
The resize mode doesn't take into account developer settings override.

Bug: 27390258
Change-Id: Id161ceb4f143f982f6bec3f915655bb66949ddd3
2016-02-29 18:11:42 -08:00
Dianne Hackborn
e5ad41bc02 Fix issue #27317952: PendingIntent.getIntent() should be protected
Change-Id: Ib05135cd94f5251942a6fc6df542ed39083f7827
2016-02-29 18:02:43 -08:00
Clara Bayarri
35fd938105 Fix Fingerprint confusing personal and work fingerprints when unified
When the personal and work profile have unified locks, FingerprintService
was retrieving the credential owner and returning the personal data
even when explicitely asked for the work profile.
Bug: 27408217

Change-Id: I67d20f92e0016e4ccd38f8b19edebc543830df4a
2016-02-29 17:49:18 -08:00
Fyodor Kupolov
c4967e7161 Fixed handling of blockUninstall setting
Previously, if one user has blockUninstall, it will block uninstalling
the package for all users. Now the package is uninstalled for all users,
excluding the ones that have blockUninstall setting.

Bug: 24616123
Change-Id: Ie4a68ef97fbef4711b18ccd311e39f32ab4b8efe
2016-02-29 17:47:02 -08: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