393832 Commits

Author SHA1 Message Date
Dichen Zhang
cb90c260fc Fix setAudioSessionId() Racing Issue
Pointed out by Wei: a later setAudioSessionId() could override the
previous one whose task has not completed.

Bug: 112549970
Test: MediaPlayer2Test
Change-Id: Ib5862d6dfd1ea4ddcbccb421906510ab4a3bae87
2018-11-21 00:28:09 +00:00
Selim Cinek
033629610b By default notifications are allowed to be shown on the lockscreen
While we are initializing the policy file from disk, if there is no
such file we still have to allow the notifications to be shown.
Previously we were assuming that it's false if there's no such tag
in the xml.

Test: existing tests pass
Change-Id: Ia76a8f3e0af1b176de6141bec1db4babd4f97e00
Fixes: 119833914
2018-11-20 16:19:12 -08:00
Mårten Kongstad
2a598934e7 Mention --apex flag in package manager usage text
Commit d8bf22e8c6a added support to the package manager shell command
for the new --apex flag but did not mention it in the usage text.

Test: adb shell cmd package | grep -e '--apex'
Change-Id: I009bbc979b3a0729fe567f0ef74db18e087d14f5
2018-11-20 16:01:35 -08:00
TreeHugger Robot
f66699ae16 Merge "Fixes background animation on dismiss." 2018-11-20 23:57:43 +00:00
TreeHugger Robot
5d7e531cdd Merge "Move policy handling into ATM hierarchy [1/n]" 2018-11-20 23:36:28 +00:00
Tej Singh
17c1132650 Merge "Atom: Pulled battery level" 2018-11-20 23:28:01 +00:00
Hai Zhang
8e60a8fd1b Add role initialization to RoleControllerService.
This change adds RoleManager.setRoleNamesFromController() to allow
RoleControllerService to initialize the roles for a user. This change
also fixes the persistence of roles by calling writeAsyncLocked().

Bug: 110557011
Test: build
Change-Id: I921b6aa691478ca4c0dd1a75fc929a96ce1e7df5
2018-11-20 15:14:58 -08:00
Winson Chung
84b031fe71 Merge "Request autofill data instead of assist data when swiping up." 2018-11-20 23:01:07 +00:00
TreeHugger Robot
39a498066f Merge "Add mechanism to send assist data to a IntelligenceService" 2018-11-20 22:55:57 +00:00
TreeHugger Robot
8053ac5abd Merge changes from topic "alert-group-transfer-fix"
* changes:
  Fix GroupAlertTransferHelper logic on update.
  Fix heads up/ambient content inflation w/ groups.
2018-11-20 22:33:17 +00:00
Wei Jia
0a91bc975e Merge "DataSourceDesc: refactor to base class and subclasses" 2018-11-20 22:06:36 +00:00
Brad Ebinger
fd88080d22 Expose ImsMmTelManager APIs as SystemApi
Bug: 116493310
Bug: 112538960
Bug: 112866475
Test: Telephony unit tests
Change-Id: I698d9ab6000dc2e2e9be8d614e94d59b3a8e3028
2018-11-20 13:59:37 -08:00
Colin Cross
35be4249e2 Convert frameworks/base/services/tests to Android.bp
See build/soong/README.md for more information.

Bug: 119809391
Test: atest FrameworksServicesTests FrameworksMockingServicesTests FrameworksUiServicesTests (mostly passes, those that don't aren't run in APCT)
Change-Id: Id28d25cc36df47e2f533ae878fb0d2745164fbfb
2018-11-20 13:54:24 -08:00
Dichen Zhang
197f242110 Merge "Make AudioManager.generateAudioSessionId() static" 2018-11-20 21:50:59 +00:00
Selim Cinek
927892e9d3 Merge changes from topic "shadowalpha"
* changes:
  Fixed an issue where notifications could be stuck empty
  Removed the shadow alpha property from notifications
2018-11-20 21:47:04 +00:00
TreeHugger Robot
657c8ff19a Merge "Clean up getConnectionSummary()" 2018-11-20 21:15:45 +00:00
TreeHugger Robot
bd0ccad36b Merge "Cancel current operation when binder dies" 2018-11-20 20:58:56 +00:00
TreeHugger Robot
893f55cb12 Merge "[WPA3] Add SECURITY_MAX_VAL to support dynamic Add network spinner" 2018-11-20 20:56:02 +00:00
Selim Cinek
d4c3230d6b Fixed an issue where notifications could be stuck empty
We still had some legacy code which would make sure that the alpha of
dragged views would remain the same, but that isn't just unnecessary
but could lead to bugs where the view itself was stuck with alpha 0.

Test: runtest systemui
Change-Id: I36768bebcb2831aa422bafe7b18c92a4834e7745
Fixes: 80525283
2018-11-20 12:22:50 -08:00
Winson Chung
48b2bbde8c Request autofill data instead of assist data when swiping up.
Bug: 118476918
Test: Swipe up, ensure autofill data exists
Change-Id: I61a94ab488913a5fe2b879f37e8a6f1384b67d03
2018-11-20 12:20:10 -08:00
TreeHugger Robot
0126e1c035 Merge "Use isGroupBlocked to check for blocked notifGroup" 2018-11-20 20:04:31 +00:00
Gus Prevas
da13cfa59a Fixes background animation on dismiss.
This change modifies the logic in
NotificationStackScrollLayout.updateFirstAndLastBackgroundViews() which
determines if the first or last visible notification row has changed.
The "old" values were being read after the changes were applied, meaning
that the change was never detected, so an animation was never started.

Test: manually
Change-Id: I29869f5b0f78fd81a17d2c3dbe18c067f94fdb5e
Fixes: 119792278
2018-11-20 14:58:48 -05:00
Wei Wang
37b175448a Add thermal status API for app and unit test
Test: Manually on Thermal HAL 2.0 device
Test: Manually on Thermal HAL 1.1 device
Test: Manually on no Thermal HAL emulator
Test: atest $ANDROID_BUILD_TOP/frameworks/base/services/tests/servicestests/src/com/android/server/power/ThermalManagerServiceTest.java
Bug: 111086696
Bug: 119413961
Change-Id: I6723406123d12339e82e9e87eec14b7f9a301897
2018-11-20 11:56:30 -08:00
Selim Cinek
ff2ffece4b Removed the shadow alpha property from notifications
It wasn't used anymore. Additionally are we also removing the
drag animation events that were originally created for the shadow
alpha animations.

Test: runtest systemui
Change-Id: Ia5cbf7ecb2728fc1298c1b22f3f37bac6b531803
Fixes: 119791828
2018-11-20 11:54:24 -08:00
David Brazdil
3389e5b577 Merge "Check in P dark greylist" am: 3d08740424 am: b4cd37dd99
am: 7329bdb3b7

Change-Id: Ifb30bbbe2e731fd5bd9020566c180bc0ad62ff06
2018-11-20 11:37:03 -08:00
Andrew Solovay
6b622a868d Merge "docs: Removing @see link to hidden field" into pi-dev am: 807672ac4f
am: 8a30c09238

Change-Id: Ic637fc267cd00ac25ba6faef106f99214339c0c5
2018-11-20 11:26:43 -08:00
Kevin Chyn
9e7b89a35f Cancel current operation when binder dies
When the binder dies, it makes no sense to send an error since the client
is already dead. Instead, just notify the driver to cancel the current
operation.

Bug: 119592051

Test: manual
Change-Id: I60e515bfff933df5e672ac2797d7d8620e6ece09
2018-11-20 11:24:49 -08:00
David Brazdil
7329bdb3b7 Merge "Check in P dark greylist" am: 3d08740424
am: b4cd37dd99

Change-Id: Ib8853c6fe13039b4de5705c6c2b12c5a89e51329
2018-11-20 11:22:34 -08:00
Peter Collingbourne
689a50ec83 Merge "Fix a use-after-free found by HWAsan." am: 82cf8de1f3 am: 2557458766
am: 96a4e5a412

Change-Id: Ia397ea5db31184e8b52ea3686d06a67d76d876e8
2018-11-20 11:12:19 -08:00
David Brazdil
b4cd37dd99 Merge "Check in P dark greylist"
am: 3d08740424

Change-Id: I696191230a770ab02a6ae43846cae24f4d114120
2018-11-20 11:09:11 -08:00
Andrew Solovay
8a30c09238 Merge "docs: Removing @see link to hidden field" into pi-dev
am: 807672ac4f

Change-Id: If1d5759ea1f2fe0656e298c2d67d3f817158ebba
2018-11-20 11:08:29 -08:00
Kevin
4b8bbda21b Fix GroupAlertTransferHelper logic on update.
Previously, all transferred alerts were removed when the inflation was
aborted. This could cancel transfers when the child was simply updating.
Now, this only occurs on remove. On update, the previous heads up/
ambient inflation flag is carried over and the helper determines if
the content should actually heads up after inflation.

Bug: 111809944
Test: runtest systemui, manual
Change-Id: Ic7c5414849e2bfa1978bb1c57ed314c4997b8ea2
2018-11-20 10:58:00 -08:00
Jack Yu
8f707bb8e5 Merge "Move hidden APIs into system APIs" 2018-11-20 18:56:32 +00:00
Peter Collingbourne
96a4e5a412 Merge "Fix a use-after-free found by HWAsan." am: 82cf8de1f3
am: 2557458766

Change-Id: I074b3c035442466b03476dca68987981d570440b
2018-11-20 10:56:17 -08:00
Kevin
01a53cbfcd Fix heads up/ambient content inflation w/ groups.
This CL fixes lazy content inflation for alerting notifications in
groups by inflating them on the fly if we would transfer to a
notification that does not have its content inflated. We introduce a
helper class here to explicitly deal with the transfer logic,
refactoring a lot of the GroupManager code out.

This removes the previous workaround to always inflate heads up +
ambient views.

Bug: 111809944
Fixes: 111809944
Fixes: 117933032
Fixes: 117894786
Test: runtest systemui
Test: manual, posted groups that trigger a transfer and a transfer back.
Group alerts behaved as expected.
Change-Id: I9b5ec4c8bdeea20707874d90213dcd1d22d8b503
2018-11-20 10:54:40 -08:00
Vishnu Nair
fd934f4139 [automerger skipped] Merge "WM: Guard against released surfaces in forced rotator" am: c1a15b81ac am: b6afff08e0 -s ours
am: f3fdbef997  -s ours

Change-Id: I27d95bce8a46412d97389cc9072cac1dd9af69b2
2018-11-20 10:53:35 -08:00
Andrew Solovay
807672ac4f Merge "docs: Removing @see link to hidden field" into pi-dev 2018-11-20 18:50:17 +00:00
David Brazdil
3d08740424 Merge "Check in P dark greylist" 2018-11-20 18:49:34 +00:00
Peter Collingbourne
2557458766 Merge "Fix a use-after-free found by HWAsan."
am: 82cf8de1f3

Change-Id: I74e90250ec2e1d90da89c16de77925044f55cb1c
2018-11-20 10:45:15 -08:00
Aaron Heuckroth
80c2e00636 Merge "Remove setAsMainLooper from several flaky tests." 2018-11-20 18:34:15 +00:00
Vishnu Nair
f3fdbef997 [automerger skipped] Merge "WM: Guard against released surfaces in forced rotator" am: c1a15b81ac
am: b6afff08e0  -s ours

Change-Id: I33d4da634b74dd4f65b24cd5a1646c73c60d16f6
2018-11-20 10:33:47 -08:00
Peter Collingbourne
82cf8de1f3 Merge "Fix a use-after-free found by HWAsan." 2018-11-20 18:22:36 +00:00
Vishnu Nair
b6afff08e0 Merge "WM: Guard against released surfaces in forced rotator"
am: c1a15b81ac

Change-Id: I9c5d5b993a5d4b3bff97ad15cecc84bb5a567572
2018-11-20 10:20:57 -08:00
Winson Chung
fbbb158da6 Add mechanism to send assist data to a IntelligenceService
- Proxy requested assist data from swipe up through the the
  IntelligenceServiceManager to AiAi for each activity that we receive
  assist data for (the AssistDataReceiver to be removed later once AiAi
  implements the new IntelligenceService interface).

Bug: 117268952
Test: Build dummy intelligence service, ensure that we get capture event
      on swipe up.

Change-Id: Iec29792932d30e94a702bd5079711c6615d0738a
2018-11-20 10:08:59 -08:00
Treehugger Robot
c1a15b81ac Merge "WM: Guard against released surfaces in forced rotator" 2018-11-20 17:56:32 +00:00
TreeHugger Robot
d0f47278c4 Merge "Fix role granting flow." 2018-11-20 17:52:54 +00:00
Oscar Shu
ace9dc2df9 Merge "WifiUsability proto for ML" 2018-11-20 17:51:42 +00:00
Evan Rosky
c5abbd863a Move policy handling into ATM hierarchy [1/n]
Moves some windowing-mode change handling into config update

First, this moves the initiation of mode configuration-changes into
the ATM hierarchy (from WM). It restructures some more of the bounds
calculations in TaskStack so that they can be used via the controller
and with more data coming from a parent configuration instead of
hard-coded to the DisplayContent. These interfaces are transient as we
transition more towards a "unified" hierarchy set-up.

The main part of this change is in ActivityStack.onConfigurationChanged
where we actually process which changes effect the different modes
we are in. For example, if rotation/density/screen-size change, we
need to recalculate split-mode bounds to match. Along with moving work
to onParentChanged, this should actually handle more display changes
than before (ie. it should be possible to reparent a split stack into
another display and have it resize appropriately).

Bug: 113900640
Test: go/wm-smoke
Change-Id: Ifd4def135b62a54259dd0f9f030e839c29bebebf
2018-11-20 09:40:26 -08:00
Jeff Sharkey
ce80ed4490 Merge "Define app-ops for new storage permissions in Q." 2018-11-20 17:34:21 +00:00
Nicholas Sauer
3d87d1e525 settings command delete by user
bug: 118492733
Test: $ adb shell settings --user 10 put secure autofill_service blah
$ adb shell settings --user 10 get secure autofill_service
blah
$ adb shell settings --user 10 delete secure autofill_service
$ adb shell settings --user 10 get secure autofill_service
null

Change-Id: I771bf8e148898703332ead8162c5f9fe4863ea74
2018-11-20 09:09:58 -08:00