Commit Graph

12135 Commits

Author SHA1 Message Date
Winson Chung
eaf2a4ef5c Merge changes from topic "expose_methods"
* changes:
  Removing references to hidden classes in shared lib.
  Exposing a few more methods in the lib
  Move assist data receiver interface to accessible namespace
2017-11-16 02:00:28 +00:00
TreeHugger Robot
40a21a4eaf Merge "Allow read-access to notification policy" 2017-11-15 18:15:54 +00:00
Beverly
312ef3e064 Allow read-access to notification policy
Test: manual
Change-Id: I2b3c597b56f910b3bcad902e08f6f432493ce768
Fixes: 69358003
2017-11-15 11:25:26 -05:00
TreeHugger Robot
d28796d32c Merge "Implement intent to uri mapping for slices" 2017-11-15 02:52:53 +00:00
Mady Mellor
3b0a72f022 Implement intent to uri mapping for slices
This adds the notion of creating a slice based on an intent. To use this
developers can implement onMapIntentToUri and return a uri based on the
intent. This enables SliceView to be populated via an intent.

Test: to be added...
Change-Id: I2abd861f2a3dff80ab8b6492a5c3205bc891d19c
2017-11-14 17:23:58 -05:00
TreeHugger Robot
ea0baebfb9 Merge "Add hints for toggles in Slice" 2017-11-14 21:56:07 +00:00
Tianran Li
6e2a6cfc6a Merge "TimePickerDialog OTG keyboard entry discarded" am: 8c2cb6ff08 am: 2973f63816
am: 97997ca19e

Change-Id: I599c31481eef25311f8500df1428602051f1d04b
2017-11-14 21:31:38 +00:00
Winson Chung
e210468aa0 Move assist data receiver interface to accessible namespace
- Also adding bundle options to pass to the recents component that is
  launched through startRecentsActivity()

Bug: 67864419
Test: Everything builds, existing tests pass
Test: go/wm-smoke
Change-Id: Ie9ee472efb132add69b8bc10798dc5214d1fa1e2
2017-11-14 12:39:21 -08:00
TreeHugger Robot
341775bfef Merge "Adds client API for interacting with statsd." 2017-11-14 20:25:09 +00:00
Mady Mellor
fc2b340cf4 Add hints for toggles in Slice
Test: Manual, build a slice with a toggle needs the support lib CL to
      present the toggle
Bug: 68378574

Change-Id: I4cdae84e11e2b182663186f862fed95e3bacbac5
2017-11-14 12:01:54 -08:00
Tianran Li
97997ca19e Merge "TimePickerDialog OTG keyboard entry discarded" am: 8c2cb6ff08
am: 2973f63816

Change-Id: Ia9904d1654ec70e1c039d8f1fed6c1211863ee38
2017-11-14 19:55:16 +00:00
Tianran Li
2973f63816 Merge "TimePickerDialog OTG keyboard entry discarded"
am: 8c2cb6ff08

Change-Id: Ib28468e637c146e69d59ee352b5a019654b3dc14
2017-11-14 19:47:34 +00:00
Treehugger Robot
8c2cb6ff08 Merge "TimePickerDialog OTG keyboard entry discarded" 2017-11-14 19:35:20 +00:00
David Chen
adaf8b344e Adds client API for interacting with statsd.
This API will primarily be used by GmsCore to send updated configs.
Also, sending a config will implicitly notify the StatsD that this
client wants to know when it should request data for this config.

We send a broadcast so that all interested subscribers can know if
data needs to be pulled.

Test: Manually tested that sending broadcast works via new adb
command added in StatsService.

Change-Id: I23cdd1df706036e14b32c3d01af30c3d4af819fa
2017-11-13 19:37:12 -08:00
Calin Juravle
8ed29cdd59 Merge "Create secondary dex profiles relative to the provided dex path" am: f7f5732e2c
am: 310bc2b571

Change-Id: Ic639fd4d9f0e0a76669c1dd05bc0c0a86f84a074
2017-11-14 03:14:34 +00:00
Calin Juravle
310bc2b571 Merge "Create secondary dex profiles relative to the provided dex path"
am: f7f5732e2c

Change-Id: I6f2eb760e07959e26d46f8a0f3d4b4358b9a5a1e
2017-11-14 03:03:56 +00:00
TreeHugger Robot
0fbd9d163b Merge "Support insets on secondary displays" 2017-11-14 02:59:12 +00:00
Calin Juravle
d35451d76b Create secondary dex profiles relative to the provided dex path
We previously used the realpath to simplify the validation and processing
in installd. However it ended up making things more complicated when
cleaning up the profiles, especially because of /data/user/0 symlinks to
/data/data/.

Instead of using the realpath of the dex file to compute the profile
location, use the file path as given. This makes things consistent with
DexManager registration and allows for easier dex file reconciliation in
the presence of symlinks.

Bug: 64460009
Test: manual

(cherry picked from commit c119c5a8c1d8e3ba6c90300a82d2086273d0d3f3)

Merged-In: I2362f32a679324d4bc1e8a0fe83b5b17ee523e7a
Change-Id: Ic9c38a920c5eef85f26ac33f2b8a37c3694bfbad
2017-11-13 17:37:24 -08:00
Calin Juravle
8971229afd Merge "Create secondary dex profiles relative to the provided dex path" 2017-11-14 01:30:10 +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
Bryce Lee
a4ceea026d DO NOT MERGE Remove orientation restriction to only fullscreen activities.
This changelist removes checks that enforce that only fullscreen,
opaque activities may request orientation changes. An application
may itself be compatible with the change and update their SDK level.
However, it is possible they use a library that has not itself been
updated and still leverages this feature for non-fullscreen
activities.

Fixes: 68684796
Test: bit FrameworksServicesTests:com.android.server.wm.AppWindowTokenTests

Change-Id: I75bbda96b132694c722b0b535e33ea5e1b9a55db
2017-11-13 21:00:17 +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
Tianran Li
10864b0fcb TimePickerDialog OTG keyboard entry discarded
A user can manually enter time value using a keyboard.
NumberPicker then evaluates its value when focus is changed.
Currently when the dialog is closed by pressing OK, the value
from the focused NumberPicker is not taken into consideration.

To ensure retrieval of the correct value when closing the
dialog, the focus must be removed from the NumberPicker as
is done in DatePickerDialog.

Bug: 65664546
Test: Manual
      1. Connect physical keyboard via OTG connector
      2. Enter Settings and set time manually
      3. Select keyboard entry
      4. Change time and tap OK
      The entered time should be applied
Change-Id: I8a77cb3aaa54acb228ec1ce0e9385e2eb5e88e9b
2017-11-13 12:49:44 +00:00
TreeHugger Robot
3bba35111e Merge "Introduce CrossProfileApps API" 2017-11-13 06:43:44 +00:00
Jon Dormody
24f9ac4ecf Merge "Docs: Fixed a typo by changing "retu rn" to "return"" into oc-dev am: ec741b83a3 am: 719e8b5412
am: 430ed07596

Change-Id: I672d6c2ff08bbe91c12bfacbe3b493ca17613ce1
2017-11-10 17:39:42 +00:00
Jon Dormody
430ed07596 Merge "Docs: Fixed a typo by changing "retu rn" to "return"" into oc-dev am: ec741b83a3
am: 719e8b5412

Change-Id: I779bd97e6668809dfadf50d4361b6b88ee4ee710
2017-11-10 17:28:30 +00:00
Jon Dormody
719e8b5412 Merge "Docs: Fixed a typo by changing "retu rn" to "return"" into oc-dev
am: ec741b83a3

Change-Id: I9d170c0baf186d074c77d2a98bd60bee66bfd701
2017-11-10 17:14:04 +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
Jeff Sharkey
29862ccde0 Merge "Extend JobInfo to support NetworkRequest." 2017-11-10 00:11:58 +00:00
Jonathan Dormody
35719399cb Docs: Fixed a typo by changing "retu rn" to "return"
Test: make ds-docs

Bug: 32830129
Change-Id: I86b359c2cf65fbd3c9d50569bf81fd669111055e
2017-11-09 16:57:42 -07: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
Ricky Wai
a3e562cd8f Merge "Add Network security watchlist service" 2017-11-09 13:35:12 +00:00
TreeHugger Robot
54e6fcdebf Merge changes Iae56bcd2,I5b2e37c3
* changes:
  Fixed logic issue with WC.supportsSplitScreenWindowingMode()
  Don't move home task forward in some cases.
2017-11-09 01:57:02 +00:00
TreeHugger Robot
dbc78eebd9 Merge "Allow standby timeouts to occur after usage" 2017-11-09 01:35:22 +00:00
TreeHugger Robot
bc1ca0d9bc Merge "Unhide MAKE_USER_EPHEMERAL" 2017-11-09 00:39:57 +00:00
Amith Yamasani
84cd7b7a9e Allow standby timeouts to occur after usage
And inform listeners when the bucket changes, not just when
going in and out of RARE bucket.
Avoid redundant callbacks when informing listeners.

Bug: 63527785
Test: runtest -x
frameworks/base/services/tests/servicestests/src/com/android/server/usage/AppStandbyControllerTests.java
Change-Id: Icd98d59f597147fbf8ea4bf44edf4b3b3d5c8e14
2017-11-08 15:06:10 -08:00
Wale Ogunwale
2b07da80e2 Fixed logic issue with WC.supportsSplitScreenWindowingMode()
A container can support split-screen windowing mode while in pinned or
freeform mode. However, there were some call-points that were using the
method to determine if the container is affected by the split-screen
stack resizing. So, just created a new method
ActivityStack.affectedBySplitScreenResize() for those.

Change-Id: Iae56bcd2cb696179dda39b77a69035d5f067a23d
Fixes: 68762925
Test: go/wm-smoke
Test: Manual steps from bug.
2017-11-08 14:52:40 -08:00
Ricky Wai
1a6e667cb6 Add Network security watchlist service
Network security watchlist service is a service to monitor all potential
harmful network traffic. By setting a network watchlist, any connections
that visit any site from watchlist will be logged.

Logs will be aggregated everyday and encoded using differential
privacy before exporting it from framework.

This feature is disabled now, run "setprop ro.network_watchlist_enabled true" to enable it.

All network events are handled in an async bg thread, it should not
cause any delay in netd. Also, it uses the hooks in enterprise network logging,
so we can run netd_benchmark to measure the impact to netd.

Here are the things not included in this CL:
- ConfigUpdater to get and set watchlist
- Differential privacy encoding logic and reporting
- CTS
- Memory and performance optimization for internal watchlist data structure

Test: manual - turn on the feature, hard code a watchlist xml, process
that visited that domain is being logged in sqlite.
Test: run netd_benchmark - seems no obvious performance change.
Test: bit FrameworksCoreTests:android.net.NetworkWatchlistManagerTests
Test: runtest frameworks-net
Test: runtest frameworks-services -p com.android.server.net.watchlist

Bug: 63908748

Change-Id: I09595178bac0070a867bc5e0501a7bf2c840e398
2017-11-08 18:57:46 +00:00
yuemingw
2280019d5a Fix cts failure for com.android.cts.devicepolicy.ManagedProfileTest#testParentProfileApiDisabled
Change-Id: Iba6078f06d7d251a12c530058d1f2ace78aa3e92
Fix: 68954948
Test: com.android.cts.devicepolicy.ManagedProfileTest#testParentProfileApiDisabled
2017-11-08 10:27:14 +00:00
Selim Cinek
c7b5f78765 Merge changes from topic "notification_messaging"
* changes:
  Fixed measuring of messages with excess space
  Fixed the handling of oneToOne conversations for certain apps
  Improved the messaging transformation
  Implemented animations for messaging changes
  Refactored clipping util to be used in core
  Improved the headsup notification for messages
  Redesigned the messaging style
  Fixed a bug where images weren't transforming properly
2017-11-07 18:42:24 +00:00
Selim Cinek
f7409dbbb2 Fixed the handling of oneToOne conversations for certain apps
Certain apps were using specific white-spaces in order to get
an effect they wanted on the old messaging style. We're now
fixing that to ensure that the transition is smoothed

Test: manual send messages using multiple apps
Bug: 63708826
Change-Id: Ie8628c5b394b974f3dfcbbc6f26a7f50bc60a7b9
2017-11-06 16:22:08 -08:00
Selim Cinek
e62255ccc5 Improved the headsup notification for messages
Previously the heads up notifications and also the collapsed versions were not
displaying in the new style.
They are now displayed in the new style of heads up notifications.

Test: add messaging notification in heads up
Bug: 63708826
Change-Id: I041584cd6ee740fd8c59f332f727ed83c89e777f
2017-11-06 16:22:07 -08:00
Selim Cinek
88188f2d62 Redesigned the messaging style
The layout now looks much more recognizable
as a messaging template and enables us to
prepare for more useful functionality.

Test: Send messages and observe display
Bug: 63708826
Change-Id: I896b3692a1e84976e8fd37cf37611ddb1d358fb9
2017-11-06 16:22:04 -08:00
Calin Juravle
07e5fc46ea Create secondary dex profiles relative to the provided dex path
We previously used the realpath to simplify the validation and processing
in installd. However it ended up making things more complicated when
cleaning up the profiles, especially because of /data/user/0 symlinks to
/data/data/.

Instead of using the realpath of the dex file to compute the profile
location, use the file path as given. This makes things consistent with
DexManager registration and allows for easier dex file reconciliation in
the presence of symlinks.

Bug: 64460009
Test: manual
Change-Id: I2362f32a679324d4bc1e8a0fe83b5b17ee523e7a
2017-11-06 13:27:51 -08:00
TreeHugger Robot
a7d81598b5 Merge "Fix content observer in SliceView" 2017-11-06 14:47:14 +00:00
Jeff Sharkey
7370d8bd07 Merge changes I61178def,I536e8934
* changes:
  Flip feature flag to enable StrictMode defaults.
  Narrower StrictMode defaults.
2017-11-04 02:39:34 +00:00
TreeHugger Robot
8095edc17b Merge "Update shortcuts to match spec" 2017-11-04 00:29:43 +00:00