Commit Graph

253881 Commits

Author SHA1 Message Date
Sungsoo
87a9ac70c3 DO NOT MERGE) ExifInterface: Provide backward compatibility
ExifInterface.saveAttribute() didn't throw UnsupportedOperationException
before. Use IOException instead of UnsupportedOperationException for
backward compatibility.

Bug: 30936376, Bug: 32068647, Bug: 31319086
Change-Id: Iacc7b4d91d49edd7bece8f2e738a633a91025eca
2016-10-13 03:28:40 +00:00
Sungsoo
22bd36448e DO NOT MERGE) ExifInterface: Provide backward compatibility
ExifInterface.saveAttribute() didn't throw UnsupportedOperationException
before. Use IOException instead of UnsupportedOperationException for
backward compatibility.

Bug: 30936376, Bug: 32068647, Bug: 31319086
Change-Id: Iacc7b4d91d49edd7bece8f2e738a633a91025eca
2016-10-13 03:28:16 +00:00
Sungsoo
c11f599a2f DO NOT MERGE) ExifInterface: Provide backward compatibility
ExifInterface.saveAttribute() didn't throw UnsupportedOperationException
before. Use IOException instead of UnsupportedOperationException for
backward compatibility.

Bug: 30936376, Bug: 32068647, Bug: 31319086
Change-Id: Iacc7b4d91d49edd7bece8f2e738a633a91025eca
2016-10-13 12:25:03 +09:00
Andrii Kulian
d4b98705b5 DO NOT MERGE -- Adjust focus when moving task back
Resumed and focused activity should be adjusted simultaneously.
This was missing when task was moved back and focus was adjusted only
after previous activity stopped.

Bug: 31983988
Change-Id: Ie6c908b0c8c1adf94680b42ca5a8c9b01308e361
2016-10-13 03:14:07 +00:00
TreeHugger Robot
1553d5411c Merge "Correct recently introduced logic error in seamless rotation detection." into nyc-mr1-dev 2016-10-13 02:05:33 +00:00
Dianne Hackborn
851ec49de7 Fix issue #32125907: Intent.replaceUnsafeExtras() corrupts original bundle
We now recursively generate new Bundle objects if we need to
do any stripping.

Change-Id: I4ca7896a0771c25264591ae7c79df85816d630d4
2016-10-12 18:17:58 -07:00
Selim Cinek
0bdfc7be66 Merge "Fixed a bug where the system could crash when expanding" into nyc-mr1-dev 2016-10-13 00:37:29 +00:00
Selim Cinek
d517c3c16b Merge "Fix crashes after notifying bad notification" into nyc-mr1-dev 2016-10-13 00:36:29 +00:00
Selim Cinek
7ce68fd8a4 Merge "Fixed an issue where the emergency affordance would show" into nyc-mr1-dev 2016-10-13 00:29:59 +00:00
Christopher Tate
edd8dc83d5 Retain allowBackup annotation when system+lock wallpaper becomes lock only
Bug 32069467

Change-Id: I5d0b91c40e1a2896f2b11efeef7bff84503cf2c0
2016-10-13 00:00:53 +00:00
TreeHugger Robot
5c8fc58850 Merge "Fix Notification.Action.Builder copy constructor" into nyc-mr1-dev 2016-10-12 23:11:22 +00:00
Adrian Roos
7af5362571 Fix Notification.Action.Builder copy constructor
The copy constructor of Notification.Action.Builder did not copy
the mAllowGeneratedReplies field.

Change-Id: I40fbe8950ee2232e2589ab3930a32bfbebe9fc89
Fixes: 31766718
Test: runtest --path $T/cts/tests/app/src/android/app/cts/NotificationTest.java
2016-10-12 15:19:55 -07:00
Adam Lesinski
baac85ec1f Merge "RRO: Synchronize access to overlays.list" into nyc-mr1-dev 2016-10-12 20:55:55 +00:00
Doris Liu
269f76a7d2 Merge "Fix SkShader leak for Gradient VectorDrawable and test" into nyc-mr1-dev 2016-10-12 20:44:50 +00:00
Robert Carr
e441e7f15f Correct recently introduced logic error in seamless rotation detection.
The code detecting whether we should rotate seamlessly (which for
example we do not support for 180 degree rotations) was moved to before
mRotation was updated, so it was always passing the same value for old
and new rotation, and we were failing to perform the 180 degree rotation
check. Correct this.

Test: Rotate the device 180 degrees at once while in Camera. Things look ok.
Bug: 32025371
Change-Id: I0ef08e8cc4e5d87fdff6d839381196c2b52e71d5
2016-10-12 12:50:32 -07:00
Bert McMeen
137c545e4e Docs: Updates to the Download/Test file related to watch setup
Bug: 32091353
Change-Id: I8b70b33c537c2edbaf0fbd09e62dc9564f03cd07
2016-10-12 12:49:48 -07:00
Garfield Tan
d91dd17f36 DO NOT MERGE: Not to crash DocumentsUI if moving cursor fails.
Bug: 31945164
Bug: 30348114
Change-Id: I3ac675c83379dc269ca8e0ff1678dc3979df5252
2016-10-12 12:31:15 -07:00
Selim Cinek
3e77984434 Fixed a bug where the system could crash when expanding
When expanding a notification it could disappear and the
system would crash.

Test: Manual, expand notification group and have it removed while
doing so.
Change-Id: I421ab0cf7a9292e6894529c80784ba0989071fb0
Fixes: 31941185
2016-10-12 12:08:57 -07:00
Shreyas Basarge
d5541b987a Merge "Add a delay before scheduling local syncs" into nyc-mr1-dev 2016-10-12 17:09:56 +00:00
Selim Cinek
bd740cd56a Fixed an issue where the emergency affordance would show
If a device isn't voice capable, it shouldn't show the emergency
option.

Test: use tablet which isn't voice capable, insert indian sim and
make sure no emergency option is displayed in global actions.
Bug: 31953703
Change-Id: I351e87320f3ffec76d1c1fc5aac78e5c48c0ac54
2016-10-12 09:33:39 -07:00
Martin Wallgren
0fbb608110 RRO: Synchronize access to overlays.list
idmap --scan is executed as a part of the pre-loading in ZygoteInit.
The pre loading is executed in parallel for each supported architecture
(32/64 bit). This will cause a race condition in the creation of the
overlays.list file and the idmap files for the system overlays.

Apply flock on overlays.list to prevent the file from being thrown away
and recreated when it is in use by another Zygote.

Cherry-picked from AOSP.

Bug: 28032298
Test: manual
Change-Id: I51d39f121d207b11181340b68b164b60020f0c61
2016-10-12 14:56:31 +00:00
Daniel Sandler
52cd2948a6 Merge "Essential packages' notifications can no longer be silenced." into nyc-mr1-dev 2016-10-12 13:39:02 +00:00
Michal Karpinski
6dbf67fc48 Don't expose default strong auth timeout as constant
The admin can instead use the value of 0 to reset to default.

Test: runtest --path frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/DevicePolicyManagerTest.java

Bug: 31430135
Change-Id: I0d6b29ca4eca65d7ca72a8975a0c28c9050a946c
(cherry picked from commit 943aabd11c)
2016-10-12 09:34:12 +00:00
Svetoslav Ganov
b2457c3704 Allow SetupWizard to do WiFi scans if location off
Location permission is needed for apps to do WiFi scans
and if location is globally off no app can scan too. It
is possible that an OEM does not want location to be on
until the user agrees to that or a device owner can turn
location off before setup. As a result setup wizard
cannot show the WiFi networks preventing the user form
logging in. This change allows the setup wizard component
to perform WiFi scans even if location is globally off.

bug:29577364

Change-Id: Ic56bfb7fb3818658a843d309b67ef37324045f67
2016-10-12 02:43:43 +00:00
TreeHugger Robot
d35d3c98e4 Merge "Add note about density scaling behavior to setImageURI" into nyc-mr1-dev 2016-10-12 01:24:55 +00:00
Doris Liu
fc9cf72339 Fix SkShader leak for Gradient VectorDrawable and test
This CL fixes a SkShader leak in VD when applying local matrix
to the shader. Specifically, the usage of newWithLocalMatrix(...)
increments the shader's ref count in every draw() call for
Gradient VectorDrawable, whereas there's no balancing call to
decrement the ref count in draw(). In this CL, we assume
the ownership of the shader returned from newWithLocalMatrix(...)
to ensure the correct ref count management.

Also, add test to verify that shader is no longer being leaked

BUG: 32067647
Test: this CL

Change-Id: Ic15fe46cde06a73d81b44e2d3c56b51907344cc0
2016-10-12 01:22:11 +00:00
TreeHugger Robot
6c816c6707 Merge "Stop posting config asynchronously." into nyc-mr1-dev 2016-10-12 01:10:58 +00:00
dooyoung.hwang
78c4114101 Fix crashes after notifying bad notification
If applications whose targetSDK is below N build notification
without contentView, contentView is created at inside of build()
function in Notification.Builder. If application apply
removeAllViews to this contentView, Notification View can have
id 'status_bar_latest_event_content' without standard layout of
notification. When inflating this notification, SystemUI try to wrap
it with NotificationTemplateViewWrapper(its id is
'status_bar_latest_event_content'), and crash, because it does not
have expected views.

Test: Install & launch attached apk in below BUG url to N devices,
and try to make notification by clicking 'do it' button.

https://code.google.com/p/android/issues/detail?id=223479

Bug:31948446
Change-Id: Ifcdc79a117613e8afd2e8ed098afd211cceabf88
2016-10-11 17:37:23 -07:00
Kevin Hufnagle
c9267a1f36 Merge "docs: Removed "Accessibility" page from "Pure Android" design docs" into nyc-dev am: 2acaf0a120
am: 2f54d4301d

Change-Id: Ie57a23935c654bb098130daa86763fc052d657db
2016-10-12 00:26:14 +00:00
Kevin Hufnagle
ee80c871d1 docs: Removed "Accessibility" page from "Pure Android" design docs am: 1965375aa5
am: 36838b070c

Change-Id: Ia77cf32efbd7d48bae6c0a7c1dff0219e7a3b4e0
2016-10-12 00:25:24 +00:00
Kevin Hufnagle
2f54d4301d Merge "docs: Removed "Accessibility" page from "Pure Android" design docs" into nyc-dev
am: 2acaf0a120

Change-Id: Ic31df60f13193b9a9ec89241ef5d14c9caa190e9
2016-10-12 00:19:40 +00:00
Kevin Hufnagle
36838b070c docs: Removed "Accessibility" page from "Pure Android" design docs
am: 1965375aa5

Change-Id: I1cabf01b8339ef67a6167b540de698ffbda889e7
2016-10-12 00:19:37 +00:00
TreeHugger Robot
cef0c6b5a5 Merge "Respect restoreAnyVersion=true in full-data restore path" into nyc-mr1-dev 2016-10-12 00:06:45 +00:00
Kevin Hufnagle
2acaf0a120 Merge "docs: Removed "Accessibility" page from "Pure Android" design docs" into nyc-dev 2016-10-11 23:40:47 +00:00
TreeHugger Robot
aea27e1aea Merge "Fix small typo in ShortcutManager header docs" into nyc-mr1-dev 2016-10-11 23:36:25 +00:00
Alan Viverette
ac21e56f63 Add note about density scaling behavior to setImageURI
Bug: 27327999
Change-Id: I1e348a1fbda20fff9575261df7097fbd46381383
2016-10-11 23:32:10 +00:00
Julia Reynolds
3ebe72b26a Stop posting config asynchronously.
All of the instances of calling into other services with locks held
should be resolved, so this isn't needed anymore.

Test: have 2 rules end or start at the same time; ensure the resulting
state is correct.

Fixes: 28459870
Bug: 31980467

Change-Id: I3f12f1d3b8460361dab6fa9468f0ede55ca8dd5e
(cherry picked from commit 89aeab0e71)
2016-10-11 23:04:38 +00:00
TreeHugger Robot
1b4ad1c701 Merge "Delete unused broadcast receiver" into nyc-mr1-dev 2016-10-11 22:41:29 +00:00
Christopher Tate
d990e4d3df Respect restoreAnyVersion=true in full-data restore path
The scheduling mechanism was properly checking for it, but the raw
data-handling engine wasn't.  Now it is.

Bug 32054889

Change-Id: Id57ea12be8e2674c4f678f058278b8c14865b6fa
2016-10-11 15:29:39 -07:00
Dan Sandler
028a60f003 Essential packages' notifications can no longer be silenced.
Particularly useful for Dialer, whose incoming call
notifications are basically useless if you accidentally mute
them.

Test: manual. With config_nonBlockableNotificationPackages
      set to include com.android.dialer, receive or miss a
      call and longpress the notification. No radio buttons
      should be available.
Bug: 31360343
Change-Id: I6b8fa374fb8e811ec6922acbf222f23f18775a61
2016-10-11 22:21:18 +00:00
Chet Haase
c158431f8e Fix small typo in ShortcutManager header docs
Bug: 32093275 fix typo in ShortcutManager javadocs
Test: no test, just words in the header docs
Change-Id: Icd33481a7f285686429d908cf92de0f6f886f962
2016-10-11 21:48:55 +00:00
Nick Kralevich
bee3ea12cc Delete unused broadcast receiver
Bug: 32090921
Bug: 21388590
Change-Id: I27e9ce7b55d0568644f9360368e90150d9be890e
2016-10-11 14:00:54 -07:00
Andrew Solovay
73c46f0609 docs: Changed Google Analytics link to https:// am: 374ddfe529
am: 9687b8e9a0

Change-Id: I47816412727652828b0a181c1776b7fa21c1107d
2016-10-11 20:38:14 +00:00
Andrew Solovay
9687b8e9a0 docs: Changed Google Analytics link to https://
am: 374ddfe529

Change-Id: I9506e792692a8aafde6603b1d473afb0ced658b5
2016-10-11 20:32:13 +00:00
Ben Lin
6d33357882 Removing a mimeIcon specific for album folders from MediaProvider.
Bug: 32019092
Change-Id: I3e088194023c86adbff4ada3cfd2bb2ba7ee220a
2016-10-11 11:58:55 -07:00
Selim Cinek
46d1ecbc8f Merge "Fixed a bug where the header would flicker weirdly when replying" into nyc-mr1-dev 2016-10-11 18:53:20 +00:00
Selim Cinek
b43494a1dc Merge "Fixed an issue where HUNS could have a background" into nyc-mr1-dev 2016-10-11 18:52:51 +00:00
Nick Kralevich
ab7a44b41a Merge "Delete "Show CPU usage"" into nyc-mr1-dev 2016-10-11 18:03:29 +00:00
Andrew Solovay
374ddfe529 docs: Changed Google Analytics link to https://
We've changed the script so the auto-generated versions of these
files will now use https:// for the Google Analytics links (required
if the files are going to be moved into Piper) but the existing
files haven't had that change applied, so I'm doing it by hand.

I'll build and stage to
https://android-dot-devsite.googleplex.com/sdk/support_api_diff/...

Change-Id: Ia11114920f84101522cd4511fde6a0363675bf24
2016-10-11 10:50:31 -07:00
Andrii Kulian
8e10f945bd Merge "Fix bounds rotation logic" into nyc-mr1-dev 2016-10-11 17:16:31 +00:00