Commit Graph

309172 Commits

Author SHA1 Message Date
Hangyu Kuang
82d2ea4a4f media: Relax the filedescriptor check to allow write-only mode.
Test: Use the MMS app to record video.
Bug: 34594319
Change-Id: I0680c48f5f240e2b18264dbf952622ad0497130b
2017-01-25 17:58:06 +00:00
Winson Chung
b00dc5ebee Fixing issue with wrong bounds being reported in StackInfo.
Bug: 34696293
Test: Launch overview from any app
Change-Id: I99a33b3abc9aea54ff12bf2d37a54aeefcdd535e
2017-01-25 09:44:25 -08:00
Julia Reynolds
9ba0c613a5 Expose intents for launching channel settings.
Test: manual
Change-Id: I86e12b0ed6b60660b9f6bd1015c186897418560e
2017-01-25 12:43:13 -05:00
Jason Monk
524fb4025e Move theme out of tuner and into display settings
Change-Id: Id939a8a34e92c6190c59317155238697861a65e5
Fixes: 34682466
Test: Manual
2017-01-25 12:32:07 -05:00
Alan Viverette
50df07a1ad Don't scroll popup parent in response to parent scrolling
Change-Id: I18c2a53f05341f3fd1dc870a6645b583f742b7ec
Fixes: 34096043
Test: PopupWindowTest#testPositionAfterParentScroll()
2017-01-25 17:30:32 +00:00
TreeHugger Robot
1597e0540d Merge "Tron logging - Fix isValidValue to match its name, allow nulls." 2017-01-25 17:25:20 +00:00
TreeHugger Robot
d20a0fd3df Merge "Add support for BLOB format to HardwareBuffer." 2017-01-25 17:23:24 +00:00
Doris Liu
32eaa6722c Merge "New functionalities for AnimatorSet: Reverse, Seek" 2017-01-25 17:23:00 +00:00
Christine Franks
cf683142cf Merge "Require password to FR in carrier demo mode"
Bug: 34341567
Test: manual - still builds
Change-Id: Ie450a97db5c3ce58a1a5e43334bb0546a3c48645
2017-01-25 17:14:07 +00:00
Niels Egberts
617bbb3ba4 Merge "Register new TTS settings page for speed and pitch sliders." 2017-01-25 17:10:55 +00:00
Adam Lesinski
9aa513bf95 Merge "Add support for Split APK dependcies" 2017-01-25 16:56:51 +00:00
Adrian Roos
437cd56a7f MessagingStyle: Add historic messages
Adds an API to supply additional context to a Notification that uses
MessagingStyle. To be used in the future to enhance the Direct Reply
experience.

Test: runtest cts
Change-Id: I6da0b9067cbffbaae2bd3c5d9606a0b5437f1ed4
2017-01-25 16:55:57 +00:00
Daniel Sandler
5403efba3c Merge "What color starts with O?" 2017-01-25 16:45:39 +00:00
TreeHugger Robot
f54c76399a Merge "use new clipbounds api" 2017-01-25 16:40:37 +00:00
Dan Sandler
a0594667fb What color starts with O?
Fixes: 34609358
Test: visual
Change-Id: I00f4559abc30720ee04c09e0d04fa91de67ceeb9
Hint: NOT TEAL
2017-01-25 11:36:37 -05:00
Esteban Talavera
8f3b34338a Merge "Wipe device or profile if max failed attempt reached" 2017-01-25 16:17:38 +00:00
Andrew Sapperstein
bd06bb6561 Merge "Decrease frequency of high temp warnings" into nyc-mr2-dev am: a60f7151e6
am: 4715e5c6a9

Change-Id: I540802c6207fd80beb8dfe1298d33e0efea3549e
2017-01-25 16:14:33 +00:00
Andrew Sapperstein
fed233eff5 Decrease frequency of high temp warnings am: 97bfa0f17d
am: be0f185de9

Change-Id: I8922139364c0b03927141236325b3ce667280dc6
2017-01-25 16:13:39 +00:00
Andrew Sapperstein
4715e5c6a9 Merge "Decrease frequency of high temp warnings" into nyc-mr2-dev
am: a60f7151e6

Change-Id: I11be13e9f6404cc74fa44cb6a8278a019634ecf1
2017-01-25 16:08:47 +00:00
Andrew Sapperstein
be0f185de9 Decrease frequency of high temp warnings
am: 97bfa0f17d

Change-Id: I48237148a12cbf8b11df798001aa5c99428a6daa
2017-01-25 16:08:41 +00:00
Julia Reynolds
717ca4b07d Merge "Allow notifications to be autocanceled at a time." 2017-01-25 16:03:38 +00:00
Andrew Sapperstein
a60f7151e6 Merge "Decrease frequency of high temp warnings" into nyc-mr2-dev 2017-01-25 16:01:07 +00:00
Alison Cichowlas
2d89c243da Tron logging - Fix isValidValue to match its name, allow nulls.
Test: runtest --path frameworks/base/core/tests/coretests/src/android/metrics/LogMakerTest.java
Change-Id: I92567e1873c5178606ac88135b5934d760b4ec24
2017-01-25 10:56:33 -05:00
Edman Anjos
52088e4859 Add DPMS delegation scopes.
Implement the permission grant, package access, enable system app, and
keep uninstalled packages delegation scope APIs in the
DevicePolicyManagerService.

This feature gives a device owner or profile owner the ability to
delegate some of its privileges to another application.

Bug: 33105287, 33105284, 33105719
Test: cts-tradefed run cts-dev --module CtsDevicePolicyManagerTestCases --test com.android.cts.devicepolicy.MixedDeviceOwnerTest#testDelegation
Change-Id: I50d2903eb73ae7844ec1f6fe07e41101ea2760ea
2017-01-25 16:53:50 +01:00
Edman Anjos
a5f2fb1a43 Add block uninstall delegation in DPMS.
Implement the uninstall blocker delegation scope API in
DevicePolicyManagerSercice.

This feature gives a device owner or profile owner the ability to
delegate some of its privileges to another application.

Bug: 33105718
Test: cts-tradefed run cts-dev --module CtsDevicePolicyManagerTestCases --test com.android.cts.devicepolicy.MixedDeviceOwnerTest#testDelegation
Change-Id: Ieb347ce3fb6219fe7f04cafbcd1e6b7359b31a10
2017-01-25 16:31:13 +01:00
TreeHugger Robot
78c57e3f7e Merge "Make one method slightly less useful to save others" 2017-01-25 15:28:31 +00:00
Edman Anjos
4877b9c298 Merge "Refactor DPMS Cert Installer and App Restrictions delegation." 2017-01-25 15:19:28 +00:00
Alan Viverette
d19343c8de Don't scroll popup parent in response to parent scrolling
Change-Id: I18c2a53f05341f3fd1dc870a6645b583f742b7ec
Fixes: 34096043
Test: PopupWindowTest#testPositionAfterParentScroll()
2017-01-25 10:06:13 -05:00
TreeHugger Robot
5c755d65a3 Merge "Fix crash with FontProvider" 2017-01-25 15:01:05 +00:00
Julia Reynolds
2a128746b3 Allow notifications to be autocanceled at a time.
Test: cts
Change-Id: I24ebcab2c0fa2028ec5d2984dc3b7ec19391b590
2017-01-25 09:28:01 -05:00
Mike Reed
5e43898231 use new clipbounds api
Allows us to remove SK_SUPPORT_LEGACY_GETCLIPBOUNDS flag

Change-Id: I7c6665b4eb67c58fe747c07b8b87d58fe9b10120
2017-01-25 13:26:41 +00:00
Seigo Nonaka
c65ea181da Fix crash with FontProvider
Need to freeze the FontFamily otherwise the FontFamily is not created.

Test: manually done
Change-Id: I81a6f0d295f13bbeb059deafb4283654f97c0090
2017-01-25 22:25:10 +09:00
Charles He
07e29ad1ea Merge "Fingerprint: check current user or profile properly" 2017-01-25 12:48:45 +00:00
Robin Lee
7f9f864715 Merge "Lock all profile tasks if keyguard is locked too" 2017-01-25 12:47:59 +00:00
Victor Chang
954cfce18d Merge "Send DEVICE_OWNER_CHANGED to manifest receivers in background" 2017-01-25 12:13:36 +00:00
Esteban Talavera
b88f42b6b1 Wipe device or profile if max failed attempt reached
If the device or profile owner have set a max password failed
attempts policy, the device or profile should be wiped even if
DISALLOW_FACTORY_RESET / DISALLOW_REMOVE_USER /
DISALLOW_REMOVE_MANAGED_PROFILE was set by that admin. However
it should still fail if another device admin set the policy - this
is in line with what wipeData() does at the moment.

Bug: 34450538

Test: runtest -c com.android.server.devicepolicy.DevicePolicyManagerTest    frameworks-services
Test: cts-tradefed run cts --module DevicePolicyManager --test com.android.cts.devicepolicy.DeviceOwnerPlusManagedProfileTest#testWipeData
Test: cts-tradefed run cts --module DevicePolicyManager --test com.android.cts.devicepolicy.ManagedProfileTest#testWipeData
Test: cts-tradefed run cts --module DevicePolicyManager --test com.android.cts.devicepolicy.DeviceOwnerTest#testDisallowFactoryReset
Change-Id: Ifac240692ce74432f7b57f3dfbbbac2a7282297b
2017-01-25 12:07:37 +00:00
Victor Chang
94666c0570 Send DEVICE_OWNER_CHANGED to manifest receivers in background
- DEVICE_OWNER_CHANGED is an event that could happen maximum of 2 times
after device factory reset. The event rarely
happens, and it shouldn't affect any system health

Fix: 34446573
Test: adb shell am instrument -w -e class
com.android.server.devicepolicy.DevicePolicyManagerTest
com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner

Change-Id: Ic1af2016f590e1200bb3e56f63caa0e0b12f71f8
2017-01-25 12:01:09 +00:00
Edman Anjos
f994677626 Refactor DPMS Cert Installer and App Restrictions delegation.
The DevicePolicyManagerService currently supports delegation of
certificate installation and application restriction management, both
of which are individually handled by DPMS.

Upcoming framework features will add four more delegation types,
namely: block uninstall; app permission management; app access
management; and system app enabler. At this moment it makes sense to
refactor the underlying delegation system in DPMS so that current and
future delegates can be handled in a more generic way.

Bug: 33099995
Test: DPMS unit tests
Change-Id: I9e350143572c6690febdd59d1ed5149af8ee4388
2017-01-25 13:00:40 +01:00
Tobias Thierer
981bd31b33 Merge "API: Update Collections to OpenJDK8u60" am: 815fb54798 am: b8557c431d am: 6a5fccdc66
am: db79f383e9

Change-Id: Ie1d8db44913d24f55682465021fe1145be76c5d2
2017-01-25 11:50:30 +00:00
Tobias Thierer
db79f383e9 Merge "API: Update Collections to OpenJDK8u60" am: 815fb54798 am: b8557c431d
am: 6a5fccdc66

Change-Id: I2636fb0fc54bbf0958b498494f4d587aa283b7d4
2017-01-25 11:44:56 +00:00
Nicolas Prévot
38c2395078 Merge "Allow DO to provision even if it has set disallow remove mp." 2017-01-25 11:42:05 +00:00
Tobias Thierer
6a5fccdc66 Merge "API: Update Collections to OpenJDK8u60" am: 815fb54798
am: b8557c431d

Change-Id: I074661952d4d8b67cdba3038f564d29329469bab
2017-01-25 11:40:33 +00:00
Tobias Thierer
b8557c431d Merge "API: Update Collections to OpenJDK8u60"
am: 815fb54798

Change-Id: I97f0155ed743c7bc674f0241b2b07955e8d68e56
2017-01-25 11:35:11 +00:00
Tobias Thierer
815fb54798 Merge "API: Update Collections to OpenJDK8u60" 2017-01-25 11:29:43 +00:00
Niels Egberts
b8de3d6773 Register new TTS settings page for speed and pitch sliders.
Test: mmma -j40 frameworks/base
Change-Id: I870fb060ac792cab715ad9c7954962cca2c29e76
2017-01-25 11:09:40 +00:00
Torne (Richard Coles)
db70ba2953 Enable multiprocess WebView by default.
Make the multiprocess WebView enabled by default. It can be disabled by
the user in developer settings, but will be re-enabled after the WebView
implementation is updated to keep people testing it.

Bug: 21643067
Test: verify that WebView is enabled by default in developer settings
Change-Id: I100dac6b4d3784678a694352faa6e9fb2fc72078
2017-01-25 10:57:31 +00:00
Torne (Richard Coles)
dc375072c4 Prepare to enable multiprocess by default.
Implement logic to track the version on which the user last manually
enabled/disabled multiprocess (by storing the version code in the
setting, negated for disabled). This enables us to have the following
logic:

1) If multiprocess is enabled by default, re-enable it for users who
   turned it off on a previous version, but leave it off for users who
   turned it off on the current version. This lets us collect fresh
   bug reports after fixing previous issues.

2) If multiprocess is disabled by default, leave it on for users who
   have enabled it manually, but turn it back off for users who were
   just relying on the default.

This CL leaves it set to "disabled by default" so there is no immediate
behavioural change, but this enables us to switch the "enabled by
default" flag back and forth freely later.

Bug: 21643067
Test: run WebViewUpdateServiceTest
Test: manually upgrade/downgrade webview, verify behaviour of setting
Change-Id: Ibbecac7e5ee75e9c4a1b6efb84253ace98d1eb1a
2017-01-25 10:56:44 +00:00
Charles He
a36525ed10 Fingerprint: check current user or profile properly
Fixes a bug that causes isCurrentUserOrProfile to always return true.

Test: none
Bug: 34430969
Change-Id: I2804ac95da0c68a552a436397256e123bc8307e7
2017-01-25 10:56:20 +00:00
Nicolas Prévot
7242ca5137 Merge "Update DPM unit tests checking isProvisioningAllowed for comp." 2017-01-25 10:54:46 +00:00
Filip Pavlis
a1dc8f6d71 Merge "Add getParent() on Preference." 2017-01-25 10:26:24 +00:00