Commit Graph

18396 Commits

Author SHA1 Message Date
TreeHugger Robot
da701967e8 Merge "Camera: Enable API for dynamic camera output surfaces" 2017-11-14 14:08:44 +00:00
Hall Liu
9c92cd2e87 Merge changes from topics "embms-cts-6", "embms-cts-5" am: f6b2b77e40 am: 2cd6464e9b
am: 8fd59b38b7

Change-Id: I1217efc28d9d9c825dd9bf361d7f2f35510b4b27
2017-11-14 10:17:36 +00:00
Hall Liu
55b9486ac0 Add @TestApi for DownloadStateCallback CTS am: 63c5fd60ac am: b96d49e91f
am: caac5df325

Change-Id: Ifde502de2ae2aa3b22ea90a5f9bd5ece4746284e
2017-11-14 10:13:27 +00:00
TreeHugger Robot
0fbd9d163b Merge "Support insets on secondary displays" 2017-11-14 02:59:12 +00:00
Fyodor Kupolov
2a64dbce69 Merge "Additional System APIs for restricted profiles" 2017-11-14 01:34:17 +00:00
Hall Liu
8fd59b38b7 Merge changes from topics "embms-cts-6", "embms-cts-5" am: f6b2b77e40
am: 2cd6464e9b

Change-Id: I33811f8c6198da52d7ec5a863528e8c6ed723f2d
2017-11-14 01:16:42 +00:00
Hall Liu
caac5df325 Add @TestApi for DownloadStateCallback CTS am: 63c5fd60ac
am: b96d49e91f

Change-Id: I6ba017e942c0da8a345e34b45badde6662a5abdd
2017-11-14 01:11:51 +00:00
Wale Ogunwale
828ff7e3ef Support insets on secondary displays
Indroduced DisplayFrames object to track frames used to calculate
window insets per display vs. at a global level in PhoneWindowManager.

Bug: 64148922
Change-Id: I19f166920eba0a4f933a223a77e096bcc8dab0c1
Test: bit FrameworksServicesTests:com.android.server.wm.ScreenDecorWindowTests
Test: go/wm-smoke
2017-11-14 01:03:50 +00:00
TreeHugger Robot
29cd580e4a Merge "Deprecate framework Fragments and Loaders" 2017-11-13 22:34:34 +00:00
TreeHugger Robot
059004e27b Merge "Revert "Support insets on secondary displays"" 2017-11-13 21:43:56 +00:00
Ian Lake
0a1feb8192 Deprecate framework Fragments and Loaders
Redirect developers to use the Support Library
versions of Fragments and Loaders to ensure that
they get consistent behavior across versions of
Android and all devices as well as access to
Lifecycle improvements.

Test: Confirmed APIs deprecated in current.txt
BUG: 68381801
Change-Id: I58ec599e557fc93c8547c45ba7c9ced96b0c8616
2017-11-13 10:55:59 -08:00
Wale Ogunwale
7bb06e012a Revert "Support insets on secondary displays"
This reverts commit 9bc2692939.

Change-Id: Ia065372e9e220e653b4729a290663c3536d99307
Fixes: 69241956
Bug: 64148922
2017-11-13 16:49:19 +00:00
TreeHugger Robot
3bba35111e Merge "Introduce CrossProfileApps API" 2017-11-13 06:43:44 +00:00
Hall Liu
2cd6464e9b Merge changes from topics "embms-cts-6", "embms-cts-5"
am: f6b2b77e40

Change-Id: I1c740fee4e612253098aa56ebdb70dafc83c6f43
2017-11-10 21:14:01 +00:00
Hall Liu
b96d49e91f Add @TestApi for DownloadStateCallback CTS
am: 63c5fd60ac

Change-Id: I3ffa9e070f014a0280486cd5a9a58af205ac7aab
2017-11-10 21:10:01 +00:00
Hall Liu
f6b2b77e40 Merge changes from topics "embms-cts-6", "embms-cts-5"
* changes:
  Add @TestApi for MbmsDownloadReceiver CTS
  Add @TestApi for DownloadStateCallback CTS
2017-11-10 20:46:19 +00:00
Hall Liu
a591149cbc Merge "Update Telecom APIs to include multi-hfp" am: 025718e8f6 am: 3dd41b7b29
am: 518a82c94a

Change-Id: I0309cfd98f38a54b741a9dc09d1fb65159d5a4b7
2017-11-10 20:16:00 +00:00
Hall Liu
518a82c94a Merge "Update Telecom APIs to include multi-hfp" am: 025718e8f6
am: 3dd41b7b29

Change-Id: I27922fafa9c092e281c80fc6aa5f96c8e4e0c461
2017-11-10 20:07:15 +00:00
Hall Liu
3dd41b7b29 Merge "Update Telecom APIs to include multi-hfp"
am: 025718e8f6

Change-Id: I08e0646c4dc20d45ea50d43d7e8b0deddf147bda
2017-11-10 19:58:20 +00:00
Hall Liu
025718e8f6 Merge "Update Telecom APIs to include multi-hfp" 2017-11-10 19:49:01 +00:00
TreeHugger Robot
3ae3529736 Merge "Support insets on secondary displays" 2017-11-10 14:34:52 +00:00
Wale Ogunwale
9bc2692939 Support insets on secondary displays
Indroduced DisplayFrames object to track frames used to calculate
window insets per display vs. at a global level in PhoneWindowManager.

Bug: 64148922
Test: bit FrameworksServicesTests:com.android.server.wm.ScreenDecorWindowTests
Test: go/wm-smoke
Change-Id: I4a668d6c2dd0bfa666cb6acecf663cf83545ea87
2017-11-10 04:57:30 -08:00
Emilian Peev
032331578c Camera: Enable API for dynamic camera output surfaces
Two new methods within camera capture session will allow clients to
attach and remove shared output surfaces to a live camera session
dynamically.

Test: Camera CTS
Bug: 63912484
Change-Id: I291fc2b558fc62f7dc8072e57f5ff831d46e765c
2017-11-10 12:49:06 +00:00
Kurt Nelson
7cd3fa6fa2 Merge "Show Extensible StrictMode APIs" 2017-11-10 03:48:08 +00:00
Kurt Nelson
0e612808fc Show Extensible StrictMode APIs
Bug: 63535923
Test: none
Change-Id: I07382eae70292c6a78fff9eced26dd1916bc783c
2017-11-09 18:18:11 -08:00
Fyodor Kupolov
ca1775623e Additional System APIs for restricted profiles
- isRestrictedProfile - whether the caller is running
  as restricted profile.
- hasRestrictedProfiles - whether the calling user has at least one
  restricted profile associated with it.

Bug: 64122169
Test: UserManagerTest
Change-Id: I178b02a48abc32e126613e0320c4950f455364df
2017-11-09 17:43:01 -08:00
Jeff Sharkey
29862ccde0 Merge "Extend JobInfo to support NetworkRequest." 2017-11-10 00:11:58 +00:00
Hall Liu
a98f58b5c1 Update Telecom APIs to include multi-hfp
* Add bluetooth devices to CallAudioState
* Add methods for specifying a bluetooth device to InCallService
* Add methods for specifying a bluetooth device to Connection (for
self-managed connections)

Bug: 64767509
Test: unit tests
Change-Id: I286b19b423dc2ee417dbc90eda7e8055b2da2444
2017-11-09 15:54:50 -08:00
Jeff Sharkey
d0fff2eac4 Extend JobInfo to support NetworkRequest.
The current JobInfo.NETWORK_TYPE values offer basic network selection
ability, but more precise requirements continue to come up.  Instead
of creating more NETWORK_TYPE constants, add support for the existing
NetworkRequest object, which is the idiomatic way for an app to
express the type of network they'd like to use.

Move the implementation details of NETWORK_TYPE constants to use this
new NetworkRequest functionality.  Deprecate NETWORK_TYPE_METERED,
since the lack of the NOT_METERED capability doesn't imply that the
connection is metered.  (Apps using this API to get to a cellular
network should use TRANSPORT_CELLULAR instead.)

Add new SystemClock APIs that return java.time.Clock instances for
various Android-specific clocks.  This gives us a clean interface
(with negligible overhead) for swapping in artificial clocks for
testing purposes.

Improve JobStoreTest to validate new NetworkRequest features, and
add one last sanity check to assertTasksEqual() to compare raw
bits-on-wire, to catch people who forget to check new fields.  Watch
for IoThread to go idle to run tests faster.

Test: bit FrameworksServicesTests:com.android.server.job.
Bug: 67040695
Change-Id: I189e7602132a0ec26d2f0cc6dadc188664961a47
2017-11-09 13:23:31 -07:00
Christine Franks
fde6ea8d29 Merge "Add DISALLOW_CONFIG_LOCALE user restriction" 2017-11-09 16:02:46 +00:00
TreeHugger Robot
bc1ca0d9bc Merge "Unhide MAKE_USER_EPHEMERAL" 2017-11-09 00:39:57 +00:00
Fyodor Kupolov
8c469b906d Merge "Update wal mode of the connection when disabling WAL" 2017-11-08 22:21:21 +00:00
TreeHugger Robot
42e0ab0651 Merge "Create a new user restriction to disallow user switching" 2017-11-08 20:16:22 +00:00
TreeHugger Robot
4a3d844742 Merge "Very initial field detection prototype." 2017-11-08 19:13:39 +00:00
Tobias Thierer
5f3d5e91ee Merge "Track deprecation/replacement of Os methods that depend on Mutable*" am: e8b07e5bef am: d20ae24fb1
am: fbaf4253ae

Change-Id: I3116c759bc651e2fe4a93c17685d7f458d1d436e
2017-11-08 17:09:37 +00:00
Tobias Thierer
fbaf4253ae Merge "Track deprecation/replacement of Os methods that depend on Mutable*" am: e8b07e5bef
am: d20ae24fb1

Change-Id: I275c4fb658f6c158d38a6062bf1622e239e1603c
2017-11-08 16:52:46 +00:00
Tobias Thierer
d20ae24fb1 Merge "Track deprecation/replacement of Os methods that depend on Mutable*"
am: e8b07e5bef

Change-Id: Iebebb843f0857cad4ace13731d1f066ab84eabb6
2017-11-08 16:44:30 +00:00
Tobias Thierer
e8b07e5bef Merge "Track deprecation/replacement of Os methods that depend on Mutable*" 2017-11-08 16:34:03 +00:00
Richard Ledley
7c0abe1920 Merge "Initial implementation of generateLinks" 2017-11-08 13:35:21 +00:00
Richard Ledley
68d9452346 Initial implementation of generateLinks
Test: Included, and ag/3141575

Change-Id: Ia91aa130e95ff347c55981b68b8d975bc8131a73
2017-11-08 10:54:09 +00:00
TreeHugger Robot
5cc7ea1ff8 Merge "Added new update engine error codes from /android/system/update_engine/common/error_code.h" 2017-11-08 09:03:07 +00:00
TreeHugger Robot
0fcb56c991 Merge "Expose SmsManager#sendTextMessageWithoutPersisting as a public API" 2017-11-08 03:22:35 +00:00
TreeHugger Robot
b6ba247188 Merge "Expose EXTRA_SUB_ID." 2017-11-07 21:09:46 +00:00
scypher
f5a53658b2 Added new update engine error codes from
/android/system/update_engine/common/error_code.h

Test: Exposed new constant and manually added the change to
api/system-current.txt due to b/68874686

Bug: 68380039
Change-Id: I01a8befe07d37dfa74d3544b80bde2c2cc48acdb
2017-11-07 11:25:04 -08:00
Jordan Liu
b41fa4ead5 Merge "Add a carrier config indicating whether user can edit a voicemail number" am: 1f8ee4ff25
am: e968d500f5

Change-Id: Ifc4a120e14dd2e2bc6f2bdfe06acfffdf6837bea
2017-11-07 18:51:57 +00:00
Jordan Liu
e968d500f5 Merge "Add a carrier config indicating whether user can edit a voicemail number"
am: 1f8ee4ff25

Change-Id: I7d86a7b3fe4348bfd148e8167b6213e9d27e67c7
2017-11-07 18:39:06 +00:00
Jordan Liu
1f8ee4ff25 Merge "Add a carrier config indicating whether user can edit a voicemail number" 2017-11-07 18:28:33 +00:00
Neil Fuller
a9dc4456f7 Change SystemApi as per API council feedback
API council have requested a manifest constant be added
to the SystemApi directly in preference to an indirect
SystemApi constant here:
android.provider.TimeZoneRulesDataContract.READER_PERMISSION.

This is the first of three changes to (1) add the new constant,
(2) switch over code using the constant, (3) remove the
constant.

Bug: 64568899
Test: None, build only
Change-Id: Ib9766591979886d1db3b1d7321536dabf5cf81a8
(cherry picked from commit 8bb4140516)
2017-11-06 20:39:36 -08:00
Benjamin Franz
ff66fa9ef2 Create a new user restriction to disallow user switching
For multi-user session implementation, we want to block the user from
going back to user 0. Therefore, we block the user switcher in the
secondary user, as well as swtiching via user section in Settings app.

Bug: 64382189
Test: Manually verify user switcher is not displayed in QuickSettings
Test: Manulaly verify not able to remove or switcher user in user
      section in Setting app
Change-Id: I84bc9e67e3fe7fccb75edf0fc49b775b902f5290
2017-11-07 11:33:18 +08:00
Tobias Thierer
99a1d450da Track deprecation/replacement of Os methods that depend on Mutable*
Another CL in this CL topic is deprecating/removing three methods
in android.system.Os, and introducing replacements.

This CL tracks that change by updating frameworks/base accordingly.

Test: Treehugger
Bug: 67901714

Change-Id: I96ad205a305801b2cb641ba8984810dfe6474032
2017-11-07 02:51:27 +00:00