Commit Graph

476964 Commits

Author SHA1 Message Date
Riddle Hsu
8e726a2ef7 Merge changes from topic "b147213487" into rvc-dev
* changes:
  Send fixed rotation adjustments to the associated client
  Add support to override display adjustments by token
  Add fixed rotation display adjustments
2020-05-12 09:05:17 +00:00
Robert Lee
80dcec801d Merge "Add new atom for AudioPowerUsage" into rvc-dev 2020-05-12 08:09:37 +00:00
TreeHugger Robot
81fd503701 Merge "MediaRouter2: Fix getRoutes() returning an empty list" into rvc-dev 2020-05-12 07:42:33 +00:00
TreeHugger Robot
564efe2286 Merge "Add tests to verify UsageStats persistence." into rvc-dev 2020-05-12 06:58:25 +00:00
Kyunglyul Hyun
15cd47ed26 Merge "Make MediaRouter2Manager connect to the system ASAP" into rvc-dev 2020-05-12 06:22:06 +00:00
Selim Cinek
4b510ab9b8 Merge changes from topic "media_refactor" into rvc-dev
* changes:
  Handling multiple players better
  Fixed an issue where GONE Views would show during transitions
  Fixing some issues where view was too short when created
  Made the animation logic more stable
  Measuring the Media Views now properly the first time its created
  When animating between states, animate the view width
  Factored out the media view manager from the hiearchyManager
  Migrated away from view detaching as a signal
  Work back in media uri loading that was changed in the refactor
  Media views now dynamically transition between media hosts
  Changed the quick settings layout for media
  Refactored the Media Player management
  Changing media to MotionLayout
  Made sure that we're only updating the media notification when inflated
2020-05-12 05:33:10 +00:00
Hongwei Wang
954820b047 Merge "Set mIsInMultiWindowMode in activity creation" into rvc-dev 2020-05-12 05:29:38 +00:00
TreeHugger Robot
0a78a5ad9d Merge "Fix DPM check logic for AppUsageLimitObserver (un)registering" into rvc-dev 2020-05-12 05:26:36 +00:00
Varun Shah
c95e54ef4d Add tests to verify UsageStats persistence.
These new tests verify that all fields defined in UsageStats,
UsageEvents.Event and IntervalStats are known fields. This is to ensure
that when new fields are added to these objects or a refactoring is
done, the fields are accounted for when persisting usage stats.

Bug: 155935953
Test: atest UsageStatsPersistenceTest
Test: atest IntervalStatsTest
Change-Id: Ice65391d0af08b64db4ccaa046e57d9fca299319
2020-05-11 22:12:50 -07:00
Hyundo Moon
ef682fd78b MediaRouter2: Fix getRoutes() returning an empty list
By doing this, calling getRoutes() after instantiation will not return
an empty list.

Bug: 156319555
Test: Passed CTS
Change-Id: I4e5158b89d54e06f36dc37a3ca345849f0c91440
2020-05-12 14:02:24 +09:00
TreeHugger Robot
8c018bace8 Merge "BtHelper: do not clear sco clients when sco audio is disconnected" into rvc-dev 2020-05-12 04:49:33 +00:00
TreeHugger Robot
ac8aec8af6 Merge "AudioService: fix volume adjustment suppression" into rvc-dev 2020-05-12 04:44:54 +00:00
TreeHugger Robot
8683e2eeba Merge "Log inotify errors." into rvc-dev 2020-05-12 04:44:43 +00:00
TreeHugger Robot
74fa3ce36a Merge "Correct a typo in config name." into rvc-dev 2020-05-12 04:32:09 +00:00
Kyunglyul Hyun
ccb9587ae1 Make MediaRouter2Manager connect to the system ASAP
With this CL, some methods such as getAllRoutes, getActiveSessions
can be used without registering a callback.

Bug: 155042836
Test: atest mediaroutertest
Change-Id: Iba38d73a95c1d184bc89ff91d128b00109029d0a
2020-05-12 13:21:30 +09:00
Adam Bookatz
33ecd88317 Merge "Clarify UM.createUser javadoc" into rvc-dev 2020-05-12 03:26:35 +00:00
Robert Lee
cccdc155f5 Add new atom for AudioPowerUsage
Test: builds
Bug: 121318157
Bug: 152714440

Change-Id: Ic35db236a0d5c39e62f1a4d750c8d3fd683c3906
2020-05-12 09:30:09 +08:00
Sudheer Shanka
e710cbeabe Merge "Skip registering callback for appop changes if fuse is enabled." into rvc-dev 2020-05-12 01:19:24 +00:00
Ahmed ElArabawy
fe86e6d468 Merge "Wifi: Add definitions for bands frequency boundries" into rvc-dev 2020-05-12 01:10:10 +00:00
Hongwei Wang
f7e5a23106 Set mIsInMultiWindowMode in activity creation
When an Activity is launched directly into split-screen mode, there
won't be any onMultiWindowModeChanged callback. Upon activity creation,
the current windowing mode should be part of the configuration, use
the windowing mode from that as initial values for both
isInPictureInPictureMode and isInMultiWindowMode.

Bug: 155811896
Bug: 156204380
Test: launch activity to split-screen secondary and verify
      isInMultiWindowMode in dumpsys
Change-Id: I6061a2d5687b68a981abcf8b184bfb007cdcf501
2020-05-11 18:03:55 -07:00
Eugene Susla
0728a4fe50 Merge "No need for copying dump state for PC" into rvc-dev 2020-05-12 00:38:05 +00:00
Eric Laurent
4394d3b2ef BtHelper: do not clear sco clients when sco audio is disconnected
When sco audio is disconnected by BT stack, do not clear the list
of pending activation requests by apps (mScoClients). Instead, restart
sco audio if a client is still in the list.

Also restore BT SCO forced usage when speakerphone is turned off
and sco audio is connected.

Bug: 154464603
Test: repro steps in bug.
Test: manual regression tests with VoIP and cell calls

Change-Id: I54930df9da9477dfb943dc08cebd78986b6568e9
2020-05-11 17:37:18 -07:00
Mady Mellor
f7f3ba1568 Merge "Use mock window manager for BubbleController in tests" into rvc-dev 2020-05-12 00:23:33 +00:00
Amit Mahajan
94e807f79b Correct a typo in config name.
Test: TH
Bug: 152277258
Change-Id: I8c4f7a1c84489b8cd3c93dd3c3ca12644ee94ea1
2020-05-11 17:18:55 -07:00
TreeHugger Robot
db5201d3ab Merge "Provide a fixed transform hint if the layer is in a fixed orientation 2/2" into rvc-dev 2020-05-11 23:51:56 +00:00
Jean-Michel Trivi
db56188f4d AudioService: fix volume adjustment suppression
Fix regression introduced by aosp/1202609 to allow rapid media
volume changes, which broke the ability to make changes to settings
(i.e. ringer mode) without changing the volume.
  The change consists in:
  a/ reverting regression
  b/ when changing MUSIC volume, if media is active, do not suppress
     the adjustement.
 (c/ document intended behavior)

Bug: 156010854
Test: see manual steps in bug
Change-Id: I3e6a3f55f09c8bd2bde01696298c145c53a8d321
2020-05-11 16:46:16 -07:00
Michael Wachenschwanz
cfe8c66a7a Fix DPM check logic for AppUsageLimitObserver (un)registering
In the case that the DevicePolicyManagerInternal Local service does not
exist on device, the permission check for
(un)registerAppUsageLimitObserver should not be skipped.

Test: atest android.app.usage.cts.UsageStatsTest (must be on a device
with <unavailable-feature name="android.software.device_admin" /> in
it's features xml)
Fixes: 155360727

Change-Id: I8a88e03a7636956d27f531cf989bda1a32799f07
2020-05-11 16:23:43 -07:00
Adam Bookatz
a88d4c09e4 Clarify UM.createUser javadoc
When creating admin users, default
UserRestrictions do indeed apply, so updating
the javadoc.

Test: N/A
Bug: 143491938
Change-Id: Id495599abd4ddee100ca2c761d3b420fff315482
2020-05-11 22:22:32 +00:00
Mady Mellor
59a7b980e5 Use mock window manager for BubbleController in tests
Bubbles are no longer part of the status bar window and
live in their own window now. This resulted in a new
window being created each time setUp step happened in
BubbleControllerTests without ever being removed, resulting
in OOM when running tests :(

This CL fixes it by using a mock window manager in tests.

Test: atest
Fixes: 155805511
Change-Id: Id1940aeb7ee94801fa5669a30a98e2ea9c92126b
2020-05-11 15:21:08 -07:00
TreeHugger Robot
3ce5a9b85b Merge "Fixed when SystemServerInitThreadPool.shutdown() is called." into rvc-dev 2020-05-11 22:04:46 +00:00
TreeHugger Robot
50ec69fa09 Merge "Sends the correct error code" into rvc-dev 2020-05-11 21:59:27 +00:00
Curtis Belmonte
3940a99593 Merge "Don't re-trigger face auth from notification shade" into rvc-dev 2020-05-11 21:51:10 +00:00
Rob Carr
85c13cf111 Merge "BLASTBufferQueue: Fix two conditions leading to freeze." into rvc-dev 2020-05-11 21:46:19 +00:00
Philip P. Moltmann
1a4467816a No need for copying dump state for PC
Also
- enforce permission when dumping PC data

Bug: 155680199
Test: dumpsys permissionmgr
Change-Id: I2cacd6f9d8db0ea329de1d15c96bea9f2ae15dd1
2020-05-11 14:32:17 -07:00
TreeHugger Robot
d498a65696 Merge "Add new atom for EVS usage statistics" into rvc-dev 2020-05-11 21:26:31 +00:00
Dan Sandler
562d46d592 Log inotify errors.
Bug: 155954661
Test: boot
Change-Id: Ic054ecf6acebba12485926b66d4fb96fa7712547
2020-05-11 17:09:22 -04:00
Brad Ebinger
3e79d2dcf9 Merge "Do not throw RemoteException for notifyUserActivity" into rvc-dev 2020-05-11 20:35:00 +00:00
Curtis Belmonte
060a546ba1 Merge "Fix BiometricPrompt double TalkBack announcement" into rvc-dev 2020-05-11 20:27:56 +00:00
Josh Tsuji
6282ff9bc2 Merge "Add TYPE_TRUSTED_APPLICATION_OVERLAY." into rvc-dev 2020-05-11 20:24:34 +00:00
Josh Tsuji
6ad0b48b0a Merge "Fix PIP snapping to incorrect location." into rvc-dev 2020-05-11 20:23:56 +00:00
Shuo Qian
95ff60f2fd Merge "Modify the default values to avoid 2 DB hysteresis DB limitation" into rvc-dev 2020-05-11 20:22:13 +00:00
Tim Murray
52d70eaa12 Merge "fix app binder tracing on userdebug builds" into rvc-dev 2020-05-11 20:20:03 +00:00
Vishnu Nair
eb53e52395 Provide a fixed transform hint if the layer is in a fixed orientation 2/2
The transform hint is used to prevent allocating a buffer of a
different size when a layer is rotated. The producer can choose to
consume the hint and allocate the buffer with the same size.

Provide the graphic producer a transform hint if the layer and its
children are in an orientation different from the display's
orientation. The caller is responsible for clearing this transform
hint if the layer is no longer in a fixed orientation.

Bug: 152919661
Test: atest VulkanPreTransformTest
Test: confirm with winscope trace, buffers are allocated taking into
account the transform hint in fixed orientation scenarios
Test: go/wm-smoke

Change-Id: I2ccc21ed8af015716e6cdfde1e3cec67c99f3339
2020-05-11 13:19:59 -07:00
TreeHugger Robot
82c2e327f3 Merge "Add lint-baseline.txt files for test base/runner/mock" into rvc-dev 2020-05-11 19:59:33 +00:00
TreeHugger Robot
e795081a19 Merge "Grant ACCESS_SHARED_LIBRARIES permission to Shell for testing." into rvc-dev 2020-05-11 19:47:42 +00:00
Adam He
a408006e19 Merge "Fix logic in shouldStartNewPartition to avoid null responses." into rvc-dev 2020-05-11 19:47:17 +00:00
Jay Aliomer
04041cf1d7 Merge "Dark theme not turning on/off when in twilight mode" into rvc-dev 2020-05-11 19:01:23 +00:00
Paul Duffin
f66bf9b172 Add lint-baseline.txt files for test base/runner/mock
In preparation for enabling API lint checking on java_sdk_library
adds lint-baseline.txt containing all the existing issues for these
APIs.

The test-base and test-runner APIs are old and have been deprecated
so there is little benefit in fixing those issues.

The test-mock API while old has not been deprecated and so should be
cleaned up. Bug 156175891 tracks that cleanup work.

Bug: 156126315
Bug: 156175891
Test: m checkapi
Merged-In: Ifb4669fcf7f2a36e5cb4d593bfc5d03330901ee9
Change-Id: Ifb4669fcf7f2a36e5cb4d593bfc5d03330901ee9
(cherry picked from commit ee5a4af4c5)
2020-05-11 19:57:41 +01:00
Brad Ebinger
c02f414712 Do not throw RemoteException for notifyUserActivity
PowerManager does not rely on TelephonyManager#notifyUserActivity
to complete successfully since it is a oneway notification. If it
fails, due to telephony not being alive, do not throw a
RemoteException.

Bug: 156203930
Test: manual
Change-Id: I4c788fef5a887c45dbc3a20b7c8af40beed8d00a
2020-05-11 11:12:36 -07:00
Pavel Grafov
c8d5a68525 Merge "Make getPersonalAppsSuspensionReasons more robust." into rvc-dev 2020-05-11 18:04:12 +00:00