Commit Graph

642877 Commits

Author SHA1 Message Date
Colin Cross
fe09091214 Set dist_group: "android" for frameworks/base java_sdk_libraries
dist_group replaces owner and the default is going to change, set it
to the current default "android" for frameworks/base java_sdk_libraries.

Bug: 186723288
Test: m checkbuild
Change-Id: I1526853951bcffbe5c5aec6fbc6ba8e0dbea95ad
2021-06-02 13:49:22 -07:00
Patrick Baumann
81858ab41c Merge "Release cblocks back to the free pool" into sc-dev 2021-06-02 20:35:15 +00:00
Jeff Sharkey
e6fb6087aa Merge changes from topic "may27-sdk" into sc-dev
* changes:
  Finalize resource IDs; script to help in future.
  platform/frameworks/base/ - S is now 31
2021-06-02 20:11:14 +00:00
Kevin Chyn
bc77821e7d Merge changes I2eebe329,I81f1dfc1 into sc-dev
* changes:
  Turn off HBM when AcquiredInfo#GOOD
  Do not handle requests on system_server thread
2021-06-02 20:06:11 +00:00
Dan Shi
82c953e97f Merge "Remove ResourcesHardeningTest from Test Mapping" into sc-dev 2021-06-02 19:48:14 +00:00
Lucas Dupin
327a271617 Merge "Correctly calculate top corner radius" into sc-dev 2021-06-02 19:23:34 +00:00
TreeHugger Robot
7a50ad7a88 Merge "Media control icon adjustments" into sc-dev 2021-06-02 19:19:24 +00:00
TreeHugger Robot
1cdc8379a8 Merge "camera2: Fix parcelling of sensor pixel modes." into sc-dev 2021-06-02 19:10:53 +00:00
Song Hu
2ab80e4562 Merge "Add sharesheet logging for empty direct share row and app share prediction timeout." into sc-dev 2021-06-02 19:03:16 +00:00
Matt Casey
44ef70af8d Merge "Fix rounded borders of save/edit to match spec" into sc-dev 2021-06-02 18:57:36 +00:00
Songchun Fan
9dbc816ac7 [SettingsProvider] revert max sdk restriction for mobile_data
BUG: 189872797
Test: atest android.appsecurity.cts.ReadableSettingsFieldsTest
Change-Id: I18b6cf90a79ffb6c28604c1967d7208c523f4b13
2021-06-02 18:55:14 +00:00
Hai Zhang
9e264163d4 Merge "Remove allowlist for GET_RUNTIME_PERMISSION_GROUP_MAPPING." into sc-dev 2021-06-02 18:38:47 +00:00
Dan Shi
4463194107 Remove ResourcesHardeningTest from Test Mapping
ResourcesHardeningTest is not a test module name.
This is a partial revert of ag/14505818

Bug: 189953380
Test: none
Change-Id: Iebf50714918d64eb52183c1f140ac8dba38b2ae5
2021-06-02 18:36:09 +00:00
TreeHugger Robot
9d1e7a6e8e Merge "Fix two location bugs" into sc-dev 2021-06-02 18:10:09 +00:00
Jon Spivack
dd934371ae Merge "Allow AssistDataRequester to fetch AssistContent without AssistStructure" into sc-dev 2021-06-02 17:08:47 +00:00
Winson Chung
7a2b7fc43f Merge "Fix issue with system gesture areas being too large" into sc-dev 2021-06-02 16:50:57 +00:00
Kevin Chyn
f6ff170d53 Turn off HBM when AcquiredInfo#GOOD
Prevent unnecessary use of HBM. This change decouples illumination
state from touch state. onFingerUp should always be called whenever
the finger leaves the HBM area, and not only when illumination was
requested (isFingerDown was actually isIlluminationRequested()).
Moves the check to onFingerUp to stop illumination only if illumination
was actually happening.

Bug: 187460696
Test: atest UdfpsControllerTest

Change-Id: I2eebe32990761d2fbf86cab228e4a7221a209b42
2021-06-02 09:29:35 -07:00
Song Hu
8b352b94c0 Add sharesheet logging for empty direct share row and app share
prediction timeout.

Bug: 189833783
Test: atest ChooserActivityTest & manual verification
Change-Id: Id24c6a2495b6a4f778b14028ee5ab975d88e9870
2021-06-02 09:22:44 -07:00
Mady Mellor
81cac3a9f1 Merge "Remove doc saying setSuppressNotification requires being in foreground" into sc-dev 2021-06-02 16:18:19 +00:00
TreeHugger Robot
b2198d3a3d Merge "Split vibration effect adapters into separate files" into sc-dev 2021-06-02 15:42:50 +00:00
TreeHugger Robot
598a1595e3 Merge "Hook up inverse text colors to Theme.DeviceDefault" into sc-dev 2021-06-02 15:32:46 +00:00
Lyn Han
68f26fd955 Merge "Fix disappearing notifications when closing fullscreen QS" into sc-dev 2021-06-02 15:16:59 +00:00
Chris Li
d6443b414f Merge "Ignore orientation request from resizable apps in multi window" into sc-dev 2021-06-02 15:08:38 +00:00
Fabian Kozynski
6be330eff3 Merge "Use padding in pages instead of pageMargin" into sc-dev 2021-06-02 15:04:45 +00:00
Todd Kennedy
c0868db932 Merge "Track the correct package manager field" into sc-dev 2021-06-02 14:58:05 +00:00
Todd Kennedy
6fe434da81 Track the correct package manager field
Static shared libraries were not being properly tracked and snapshotted.
This meant that any lookups that didn't involve the live data structure
were incorrect; it was as if the platform had no static shared libraries
at all.

Fixes: 189851804
Bug: 188661399
Bug: 189851804
Test: atest StaticSharedLibsHostTests
Change-Id: Ia48cf95903bfc8ad194890b5408c8b1f96793ec4
2021-06-02 14:48:38 +00:00
Todd Kennedy
6a0fa92399 Merge "Use the package name and not the library name" into sc-dev 2021-06-02 14:47:21 +00:00
TreeHugger Robot
8257b7b3af Merge "Replace vibration ramps with steps on devices without PWLE" into sc-dev 2021-06-02 14:08:33 +00:00
Riddle Hsu
f53aa18878 Merge "Reduce reporting resize when the window is in relayout" into sc-dev 2021-06-02 13:31:19 +00:00
Riddle Hsu
5ffdaf032a Reduce reporting resize when the window is in relayout
Since commit 23c07ad that changes the order of createSurfaceControl
and performSurfacePlacement, the window in relayout will have
mHasSurface=true. And because isLastConfigReportedToClient is not
set yet at the end of relayout, that causes to report resize for
config change.

In relayoutWindow, the latest merged configuration will be
returned from fillClientWindowFramesAndConfiguration that sets
mLastConfigReportedToClient(isLastConfigReportedToClient), so
the resize is usually unnecessary. Actually most of cases, the
client receives the resize message and just skip because nothing
is different from its states.

Bug: 189915038
Test: CtsWindowManagerDeviceTestCases
Test: Check trace of adding a new simple window. There won't be
      a MSG_RESIZED after the first relayout.
Change-Id: Ieaf709907342780e4458c9c3c27902c86068de6e
2021-06-02 19:50:20 +08:00
Lais Andrade
c0c482736b Remove non-zero amplitude validation for waveforms
The validation does not exist in Android R and is causing apps to start
crashing in S.

The validation for the static API createOneShot was maintained, as it
already existed in previous releases.

Fix: 184890231
Test: VibrationEffectTest
Change-Id: I606c943a35ddd68ccacab76f0047b9a276b5cf28
2021-06-02 12:26:35 +01:00
TreeHugger Robot
0def72662f Merge "Drop prebuilt files to android source tree." into sc-dev 2021-06-02 10:35:08 +00:00
Joanne Chung
4575821b4d Merge "Do not bind TextClassifierService if the packge doesn't install." into sc-dev 2021-06-02 10:33:13 +00:00
TreeHugger Robot
123b106005 Merge "Make sure to remove NotificationShade surface when keyguard went away." into sc-dev 2021-06-02 10:08:49 +00:00
Wei Sheng Shih
a7fb25ba8a Merge "Consolidate the starting surface icon size to framework" into sc-dev 2021-06-02 10:00:20 +00:00
TreeHugger Robot
a731c9f3f9 Merge "ViewRootImpl: Correct opaque flag usage" into sc-dev 2021-06-02 09:28:33 +00:00
Stanley Wang
cb3e9c2bc8 Merge "Add new method "checkRestrictionEnforced" to RestrictedPreferenceHelper." into sc-dev 2021-06-02 08:05:57 +00:00
TreeHugger Robot
b0e554dc8f Merge "Update the collapsing toolbar layout" into sc-dev 2021-06-02 07:59:22 +00:00
Joanne Chung
ce9903f1ed Do not bind TextClassifierService if the packge doesn't install.
Currently, TCMS will try to bind TCS even the package doesn't install
for certain user. If there are a lot of API calls come, we may call
bindService() many times, this may cause system stability problem. We
received the system reboot problem before.

We already have preload TextClassifierService in ExtServices on primary
user but it's possible the TextClassifierService doesn't install on the
profile user or users unintall package. It's possible the package may
not be installed on non-primary user.

Users also can disable TextClassifierService from ui interface easily,
it's possible occur on both primary and non-primary users, system should
also not bind TextClassifierService in this case.

In this change, system will avoid trying to call bindService() if the
TCS deosn't install or disabled to minimize binder calls.

Bug: 188825683
Bug: 170014504
Test: atest CtsTextClassifierTestCases
Test: manual. Create work profile, turn on/off it and reboot to check
the status. Disable app from Settings and check the status.

Change-Id: Ifa2bccc0d2435712461067d650b52cb02a903c59
2021-06-02 15:55:15 +08:00
Issei Suzuki
f648deadf3 Make sure to remove NotificationShade surface when keyguard went away.
When unlock animation is finished, SysUI clears FLAG_SHOW_WALLPAPER
flag from the NotificationShade window to change wallpaper target
from NotificationShade to Launcher, and make NotificationShade window
invisible.

Wallpaper target change must be processed before disposing surface
of NotificationShade.

Bug: 186984629
Bug: 166736690
Test: manual, enabled remote animation and unlock the device.
Change-Id: Id4c2ae65d9dd5aa903c1a25c920df6ed12a1ba1d
2021-06-02 09:49:17 +02:00
Rhed Jao
e892a527a4 Merge "Enforce package visibility filter on the PreferredActivities" into sc-dev 2021-06-02 07:30:34 +00:00
Sergey Nikolaienkov
82166510eb Merge "Add config_systemTelevisionRemoteService" into sc-dev 2021-06-02 06:59:44 +00:00
Soonil Nagarkar
4f58233004 Fix two location bugs
-Telephony service accessed before it's ready.
-Checking binder UID after clearing calling identity.

Bug: 189305487
Bug: 189820484
Test: manual
Change-Id: I0b36418656df202f1ad48b78cb6012248b423c22
2021-06-01 23:18:03 -07:00
Winson Chung
5616af887e Fix issue with system gesture areas being too large
- Currently, SystemGesturesPointerEventListener config change is only
  called when initializing and if the overlays change, which causes
  the swipe threshold to be adjusted for the display cutout touchable
  region in the other orientations as well.

  In addition, the context used to pull the status bar height is not
  updated on config changes which results the portrait status bar
  height to be used for landscape gesture recognition as well (the
  same height is used for both status and nav bar thresholds).

  Together, these two issues make the swipe area almost 3x larger, which
  conflicts with immersive games.  Instead, we should load the right
  status bar height based on the current orientation, and also
  update the thresholds when the display info changes.

Bug: 189220056
Test: Enable a display cutout on the device, open a game and try to
      swipe up near the edge
Change-Id: Ic573da624756768f8b7b600831eb0b7964720760
2021-06-01 22:25:57 -07:00
Hai Zhang
49ca739329 Remove allowlist for GET_RUNTIME_PERMISSION_GROUP_MAPPING.
The permission has been removed in ag/14670362.

Bug: 182094776
Bug: 185607880
Change-Id: I780d951c57283f0097780fb780afec915c64303c
2021-06-02 05:08:20 +00:00
Chris Li
ec9c4cd5fd Ignore orientation request from resizable apps in multi window
Resizable app should be able to handle multi window by themselves, no
need to letterbox for them.

Fix: 189344515
Test: atest WmTests:ActivityRecordTests
Change-Id: I9787467246ae94c1ec9f68f5e7aa6bedf110ac4d
2021-06-01 21:48:26 -07:00
Peiyong Lin
21eeb8c976 Merge "Use CopyOnWriteArrayList in RecordingController." into sc-dev 2021-06-02 04:28:07 +00:00
Todd Kennedy
73b1e972e2 Use the package name and not the library name
the name of the shared library may be quite different
than the name of the package. we shouldn't assume the
two are the same.

Fixes: 189415306
Bug: 189415306
Test: atest StaticSharedLibsHostTests
Change-Id: I5c1069d195cb37a2bb0e823a889829a7b932774c
2021-06-01 21:21:02 -07:00
Shashwat Razdan
96b300dbc0 Merge "Removing logspam from SmartspaceService" into sc-dev 2021-06-02 03:53:33 +00:00
Les Lee
7b4645f35e Merge changes from topic "network_policy_for_supporting_merged_wifi" into sc-dev
* changes:
  wifi: Use new API for data usage function
  carrier data usage: Use carrier template as default policy
2021-06-02 03:37:54 +00:00