Commit Graph

16442 Commits

Author SHA1 Message Date
TreeHugger Robot
0dc6c591ba Merge "Extracts core logic of ActivityView into TaskEmbedder" 2019-11-07 18:37:53 +00:00
Mark Renouf
89ac988242 Extracts core logic of ActivityView into TaskEmbedder
TaskEmbedder is a new building block for task embedding which
will be used by SystemUI to perform more complex operations
than what can be acheived using ActivityView today.

For task embedding use cases, integrating TaskEmbedder directly
with a SurfaceView (or other surface) will allow:

- management of multiple tasks within a single parent surface
- access to the surfacecontrol of each task for manipulation/animation
- (SurfaceView) configure whether zOrder above or below.

See: go/av-refactor

Change-Id: Ia813c52bc2da3a776e727b5bbd2b03b8ff09f302
2019-11-07 12:11:57 -05:00
TreeHugger Robot
778380a102 Merge "Postpone reporting fully drawn until app is drawn" 2019-11-07 14:50:08 +00:00
James Lin
5da87df5bb Merge "[RCS] Create AIDL layer for RcsUceAdapter, create RCS UCE controller implementation in Telephony." am: 303c5dc0fb am: b815ee2bb9
am: 35a357814c

Change-Id: I6790023bd43b6787e2e9a46e6ec4f645a69b95ee
2019-11-06 19:47:30 -08:00
James Lin
35a357814c Merge "[RCS] Create AIDL layer for RcsUceAdapter, create RCS UCE controller implementation in Telephony." am: 303c5dc0fb
am: b815ee2bb9

Change-Id: I58e1e01f6901cc1630a6f34358e3008a1bbb1da7
2019-11-06 19:41:37 -08:00
James Lin
b815ee2bb9 Merge "[RCS] Create AIDL layer for RcsUceAdapter, create RCS UCE controller implementation in Telephony."
am: 303c5dc0fb

Change-Id: Ibcd4e3ab7c60c1446019d652e5603b02ca9f34b2
2019-11-06 19:33:36 -08:00
James Lin
303c5dc0fb Merge "[RCS] Create AIDL layer for RcsUceAdapter, create RCS UCE controller implementation in Telephony." 2019-11-07 03:26:08 +00:00
TreeHugger Robot
0c2972635a Merge "Enables multiple clickable links on the SaveUi" 2019-11-06 13:48:11 +00:00
Riddle Hsu
c1f8f9cbfc Postpone reporting fully drawn until app is drawn
"Fully drawn" should stand for an usable state of the application.
If its window hasn't drawn, the early reported time may not close
to the real use case.

This change ensures that "Fully drawn" is at least >= "Displayed".

Bug: 131713448
Test: atest ActivityMetricsLaunchObserverTests#testOnReportFullyDrawn
Test: Launch an application (e.g. Settings) that invokes
      Activity#reportFullyDrawn in an early stage. The printed
      duration of "Displayed" and "Fully drawn" should show
      the same time.

Change-Id: Id37425436dc564fc657f0777db8e0f056bbb748d
2019-11-06 20:58:19 +08:00
TYM Tsai
8af721d0af Enables multiple clickable links on the SaveUi
Enables multiple links for URLSpan on description TextViews. Also fixes
issue about cannot restore the save UI while back from the activity which
URLSpan launched.

Bug: 133515042
Test: manual
Test: atest CtsAutoFillServiceTestCases
Change-Id: I8a97c2eaccdde78622b5b5432c9b00ce19d871df
2019-11-06 13:56:56 +08:00
wilsonshih
3c1e53ddaa Use setTaskOverlay to launch ConfirmDeviceCredentialActivity.
WorkLockActivity is launched as a task overlay activity. If it needs to
launch an activity on top of it, the activity should also be a task
overlay.

Bug: 142853039
Test: Follow the issue description
Test: atest WmTests:ActivityOptionsTest
Change-Id: If4cdc892f608df5337223f70333538e33ff593ca
2019-11-06 11:47:12 +08:00
TreeHugger Robot
80018c0878 Merge "Remove cancel listeners from pending intent alarms" 2019-11-06 02:30:24 +00:00
Mady Mellor
ab190a8043 Merge "Bubble icon improvements" 2019-11-05 21:03:49 +00:00
Jordan Liu
2493a630a6 Merge "Expose Context.sendOrderedBroadcast with appop" am: 08a94a2236
am: 43b6116549

Change-Id: I556cbff8a4aa8ca1f507cd1f63c435506b09cf0f
2019-11-04 13:31:04 -08:00
Jordan Liu
43b6116549 Merge "Expose Context.sendOrderedBroadcast with appop"
am: 08a94a2236

Change-Id: I8dd6fe3a9a70eba9d95cfd1e4cefd14c4ba376ed
2019-11-04 12:20:47 -08:00
Suprabh Shukla
0d51a8bcc0 Remove cancel listeners from pending intent alarms
The cancel listeners are created per PendingIntent instance and were
spamming the callback list stored inside PendingIntentRecord. In cases
where there is even a single live PendingIntent backed by this
PendingIntentRecord, all PendingIntent instances backed by this
PendingIntentRecord for which a callback was ever registered will leak.

Test: atest FrameworksMockingServicesTests:\
com.android.server.am.PendingIntentControllerTest
atest FrameworksMockingServicesTests:\
com.android.server.AlarmManagerServiceTest

Bug: 143091024
Change-Id: I65df12da0c437064e6e3719911926738c677c4eb
2019-11-04 11:59:36 -08:00
Jordan Liu
08a94a2236 Merge "Expose Context.sendOrderedBroadcast with appop" 2019-11-04 19:59:28 +00:00
Chen Xu
626f4cdb81 Merge "new TelephonyRegistryManager" am: 7a79194fcb
am: 44d0c2a7dc

Change-Id: I2a8f753c2c9fbceb4a3cde9b31fdb3d7d82ea028
2019-11-04 10:46:46 -08:00
Chen Xu
44d0c2a7dc Merge "new TelephonyRegistryManager"
am: 7a79194fcb

Change-Id: I89e60de64c4c3b8b760413c136241b6c9c0fc98f
2019-11-04 10:35:20 -08:00
Chen Xu
7a79194fcb Merge "new TelephonyRegistryManager" 2019-11-04 18:21:51 +00:00
James.cf Lin
2bc9cd4c6c [RCS] Create AIDL layer for RcsUceAdapter, create RCS UCE controller implementation in Telephony.
Bug: 139260938
Test: Manual
Change-Id: I9f70c8fe4167b51fa82bfb68ae9eacc422194309
2019-11-04 21:04:01 +08:00
TreeHugger Robot
591f29d830 Merge "Documenting PendingIntent identifying flags" 2019-11-04 01:54:07 +00:00
Suprabh Shukla
e513a8d14c Documenting PendingIntent identifying flags
Test: make docs

Bug: 143764310
Change-Id: I04accd4ae6ff3eb260ca96744c00a995e081688c
2019-11-01 17:55:03 -07:00
Evan Rosky
5998c1831f Merge "Add a remote control mechanism for window containers" 2019-11-02 00:26:59 +00:00
Jordan Liu
a32e6fcb03 Expose Context.sendOrderedBroadcast with appop
Bug: 143100231
Test: atest ContextTest#testSendOrderedBroadcastWithAppOp
      atest ContextTest#testSendOrderedBroadcastWithAppOp_NotGranted

Change-Id: Ia75d0db11f337769eaf3cf5436e09a7d38b0564c
Merged-In: Ia75d0db11f337769eaf3cf5436e09a7d38b0564c
2019-11-01 16:25:15 -07:00
Chen Xu
1f1c25e815 new TelephonyRegistryManager
today telephonyRegistry lives in system process
this is intended to persists all telephony listeners when
phone process crash. Telephony today notify system server by
using AIDL APIs directly. Instead, we are exposing a proper API
surface: telephonyRegistryManager where only phone app and
carrier privileged apps are allowed to use APIs in
TelephonyRegistryManger to notify telephony related status update.

Bug: 140908357
Test: Build & Manaul
Change-Id: I1b750751148925b4a7bd94553318907654012fc1
(cherry picked from commit 288b71c8c1)
Merged-in: I1b750751148925b4a7bd94553318907654012fc1
2019-11-01 22:44:36 +00:00
Jordan Liu
54735539fb Expose Context.sendOrderedBroadcast with appop
Bug: 143100231
Test: atest ContextTest#testSendOrderedBroadcastWithAppOp
      atest ContextTest#testSendOrderedBroadcastWithAppOp_NotGranted

Change-Id: Ia75d0db11f337769eaf3cf5436e09a7d38b0564c
2019-11-01 14:01:09 -07:00
Hui Yu
a86a36b184 Merge "Add process capability as a new dimension." 2019-10-31 23:11:21 +00:00
Makoto Onuki
caff9d2cc2 Merge "Initialize JobScheduler without using preload" 2019-10-31 22:32:24 +00:00
Kweku Adams
f8ab0aa52b Merge "Move heap dump sharing to SHELL." 2019-10-31 19:23:30 +00:00
Mady Mellor
05e860bef3 Bubble icon improvements
* The tinting logic isn't good for developers, this change removes that
  logic and respsects whatever icon they provide, HOWEVER, if it is not
  adaptive it gets put on an adapative shape, consistent with launcher
* Updates the dot colour to be based on colour sample from the app icon
  bitmap rather than the notification colour, consistent with launcher
* Updates Notification documentation to reflect changes

Test: manual with Bubbles test app (options for all the icon types)
Bug: 138943209
Change-Id: I8abfcef9ac1dcdd9f74643e84ef40a97385b744b
2019-10-31 10:35:12 -07:00
Hui Yu
2696932100 Add process capability as a new dimension.
Add new attribute capability to ProcessRecord, it represents what this
process is allowed to do. Capability is a separate dimension for
process state (ProcState).

In OomAdjuster.java, capabilities can be passed from client to service.

Add PROCESS_CAPABILITY_FOREGROUND_LOCATION to represent the capability
that can access location while-in-use.

For permission such as foreground location access, AppOpsService
checks for FOREGROUND_LOCATION capability, also checks if the process
is in one of the foreground process states, if both conditions meet,
the locaton operation is allowed.

Remove PROCESS_STATE_FOREGROUND_SERVICE_LOCATION.

Bug: 136274596
Test: atest CtsAppTestCases:ActivityManagerProcessStateTest
atest CtsAppTestCases:ActivityManagerApi29Test
atest frameworks/base/services/tests/mockingservicestests/src/com/android/server/appop/AppOpsServiceTest.java
Change-Id: Ie1c8e670fb0789208b753eb49b7e2fce6a2f211f
2019-10-30 18:23:24 -07:00
Xin Li
6f48900f50 DO NOT MERGE - qt-qpr1-dev-plus-aosp-without-vendor@5915889 into stage-aosp-master
Bug: 142003500
Change-Id: If5056a73ede668b0048ca107b686413695e5b3b6
2019-10-30 14:33:01 -07:00
Makoto Onuki
54c4e0366a Initialize JobScheduler without using preload
Bug: 139883463
Bug: 143500374
Test: atest CtsJobSchedulerTestCases
Change-Id: Ibf4b44baba9be4c6bbba01e46648ab76f92e6f51
2019-10-30 12:10:33 -07:00
Kweku Adams
6d4bd8e8db Move heap dump sharing to SHELL.
The system shouldn't be granting read URI permissions as itself. This
means that heap dumps aren't successfully shared. Moving the heap dump
sharing mechanism to SHELL, which already has the permission to dump
heaps so that dumps can be shared properly.

The Shell changes are submitted separately.

Bug: 126885951
Bug: 135150619
Test: collect a heap dump and confirm it's successfully shared with an app
Test: do manual test on a secondary user & confirm it's not available to
other user
Change-Id: I6d2230bb2d9ca42a105b3fedee9d075de35e3dd3
2019-10-29 15:17:05 -07:00
Evan Rosky
ddedfd46a9 Add a remote control mechanism for window containers
This adds a "IWindowContainer" interface which is an opaque
handle to a window-container in WM. It has very minimal
functionality and is intended to be used mostly as an
identifier.

Along with this handle, there is a WindowContainerTransaction
which can collect a set of container + configuration changess
and apply them all together. This will be used for remote
rotation control and other batched operations in the future.

Bug: 124011688
Test: Added some wm/core tests.
Change-Id: I691e7c11cd8c30f1a24fd64c6018a18933047847
2019-10-29 14:52:52 -07:00
Julia Reynolds
07e10e3a96 Merge "Add ability to write and read Notification history." 2019-10-29 15:34:00 +00:00
Julia Reynolds
e261db3fce Add ability to write and read Notification history.
Bug: 137396965
Test: atest
Change-Id: I6bfdd0f6906dcf9c58b592e03bef335c4920d94d
2019-10-29 09:50:06 -04:00
Roshan Pius
848513ebe6 Add a new BatteryStatsManager class
Wifi/telephony mainline modules uses IBatteryStats which is an AIDL &
hence cannot be made a @SystemApi. Create a new manager class to wrap
around this AIDL to expose @System Api.

Bug: 138806762
Test: Device boots up & connects to wifi networks.
Change-Id: Ib8816c3df17ccc562b9664e7bea1ef01ab61f697
2019-10-26 14:43:59 -07:00
Satakshi Rana
70694b005d Merge "Allow passing the bitmap to ContentSuggestionsService via the extras Bundle" 2019-10-25 14:59:15 +00:00
TreeHugger Robot
878b4cef85 Merge "Correctly parcel LongSparseArray<String>" 2019-10-24 20:51:27 +00:00
Philip P. Moltmann
badc09c7a5 Correctly parcel LongSparseArray<String>
Before we just cast Object[] to String[]. This crashes. Now we are
casting the individual objects->strings.

Test: Parceled LongSparseArray
Change-Id: I24883a1dad49c0682977da1aea2370eddb001173
2019-10-24 12:19:31 -07:00
Christopher Tate
b909c4d55a Move UsageStatsManagerInternal to services.jar
UsageStatsManagerInternal is also no longer an API surface for
registration of app idle state change listeners.  AppStandbyInternal has
become a proper LocalService and interested clients can just use that
directly.

Bug: 140833849
Test: boot & run normally
Test: verify system package backup
Change-Id: Ie63f438f129cd8f41169778a3045d131ca7322fb
2019-10-24 18:28:52 +00:00
Satakshi
c45d86fc15 Allow passing the bitmap to ContentSuggestionsService via the extras Bundle
This change creates a constant in ContentSuggestionsManager, which will
be used to pass a hardware bitmap to ContentSuggestionsService.
In the presence of this key in the request extras, we skip taking a
snapshot in ContentSuggestionsPerUserService.
Bitmap is extracted from reading this value from extras in
ContentSuggestionsService.

Test: Manually tested this code in the debugger to verify that snapshot
is not taken when constant is provided in extras.

Change-Id: I4a464d5188bd3eac9afb4ac223611dccab01510f
2019-10-24 17:46:22 +00:00
Mathieu Chartier
15eebad6c1 Merge "Adjust reportFullyDrawn documentation" 2019-10-24 02:59:35 +00:00
Mathieu Chartier
7fe953e729 Adjust reportFullyDrawn documentation
Since Q, this API affects how the application is optimized.

Bug: 117575269
Test: manual
Change-Id: I0a448b8a59df4544775739505e50e401b43ba965
2019-10-23 15:19:56 -07:00
Soonil Nagarkar
2da6b815d6 Merge "Add new DPM API for setting location enabled" 2019-10-22 16:56:15 +00:00
TreeHugger Robot
4d77a3e195 Merge changes from topics "lockscreen-pin", "locksettings-aidl"
* changes:
  Introduce Lockscreen PIN credential as first-class citizen
  Introduce LockscreenCredential to LockSettingsService
2019-10-22 09:28:39 +00:00
Neil Fuller
8dbb49d397 Merge "Make TimeDetectorService more aware of origin" am: 4ef2551dfa am: 3150e58082 am: 84c6981a8f
am: a4783a8a28

Change-Id: I5fbb8544613475f750f59adafc784a0ad625ea1a
2019-10-21 13:21:54 -07:00
Neil Fuller
a4783a8a28 Merge "Make TimeDetectorService more aware of origin" am: 4ef2551dfa am: 3150e58082
am: 84c6981a8f

Change-Id: Ica76e3630488a31c42ecd3b654d1a47a453e8bde
2019-10-21 13:08:40 -07:00