Commit Graph

64003 Commits

Author SHA1 Message Date
Junyu Lai
cdd7c94ec0 Merge "[SM10] Adopt helper class to monitor RAT type change per sub" into rvc-dev 2020-04-15 11:49:01 +00:00
Rubin Xu
a042c8afd3 Merge "Improve work profile unification flow" into rvc-dev 2020-04-15 11:18:06 +00:00
junyulai
95a6a3d882 [SM10] Adopt helper class to monitor RAT type change per sub
Test: atest NetworkStatsServiceTest
Bug: 146415925
Change-Id: I45c3aa9046b316c8cd0943543d620a22e4afefd1
Merged-In: I45c3aa9046b316c8cd0943543d620a22e4afefd1
(cherry picked from commit 219faff07b)
2020-04-15 10:30:49 +00:00
Stanislav Zholnin
962b13c5ee Merge "add AppOpsTest to related frameworks TEST_MAPPINGS" into rvc-dev 2020-04-15 10:10:55 +00:00
Calin Juravle
6862bdcd20 Merge changes I70f8ffa0,I10326823,Ic63aee12 into rvc-dev
* changes:
  Add SystemServer package to the list of optimizable packages
  Ensure that system server compiler filter is set to verify
  Add special path for system server dex file reconciliation
2020-04-15 04:51:44 +00:00
TreeHugger Robot
58df220212 Merge "Add new atoms to track user journeys, such as user switches." into rvc-dev 2020-04-15 03:31:00 +00:00
Ytai Ben-tsvi
518d6966c1 Merge changes from topic "improve-logging" into rvc-dev
* changes:
  Print description of loaded models in dumpsys
  Improve dumpsys printing of modules
  Pretty-print all arguments and return value
2020-04-15 03:30:15 +00:00
TreeHugger Robot
4cb67d23ff Merge "Make SoundTriggerHw2Enforcer thread-safe" into rvc-dev 2020-04-15 03:18:32 +00:00
TreeHugger Robot
f34492a57f Merge "AudioService: test mic muting API behavior with errors" into rvc-dev 2020-04-15 01:49:04 +00:00
Ytai Ben-Tsvi
b933e2cf53 Make SoundTriggerHw2Enforcer thread-safe
Since this class may be accessed from two separate execution contexts
(forward calls and callbacks), make sure we avoid data races when
accessing mModelStates.

Fixes: 154002405
Test: Manual verification of sound-trigger functionality.
Change-Id: I817a4d1b2861de8bc7ce364e39f36dd07863d307
2020-04-14 18:36:17 -07:00
Calin Juravle
5ebac36ca9 Add SystemServer package to the list of optimizable packages
This will allow the normal jobs to optimize system server dex files when
needed. These include: the bakground dexopt job and the upgrade job.

Test: manual, DexManagerTests
Bug: 148774920
Change-Id: I70f8ffa06affd06c8d25031b81cf294f2689a52f
2020-04-14 18:26:49 -07:00
Calin Juravle
ffcd7a586b Ensure that system server compiler filter is set to verify
It is useless to try a higher filter because system server cannot load
executable code. For now this is hard coded but we should consider making
it a system property to facilitate experiments.

Test: manual, DexManagerTests
Bug: 148774920
Change-Id: I10326823a1737b879f61eb4e1886f697807f1184
2020-04-14 18:26:49 -07:00
Calin Juravle
b1cdba13f0 Add special path for system server dex file reconciliation
We need a special path for system server dex file reconcilliation.
- we cannot use the application info to extract the arguments
for the installd call
- but we can use normal file checks because the system server has
the right permission.

Test: DexManagerTests, manual
Bug: 148774920
Change-Id: Ic63aee129d10f6905cecbdba1feeb0320ee0ca1c
2020-04-14 18:26:49 -07:00
TreeHugger Robot
10e9c219a1 Merge "Enable System User Home for CSI" into rvc-dev 2020-04-15 00:47:44 +00:00
Ryan Lin
7e96fc8087 Merge "Fix hardly triggering A11y shortcut via gesture when zoom in" into rvc-dev 2020-04-15 00:37:12 +00:00
TreeHugger Robot
539133b18a Merge "DO NOT MERGE Move LMS to ease merge conflicts" into rvc-dev 2020-04-14 21:51:06 +00:00
Ytai Ben-Tsvi
58a1c3823f Print description of loaded models in dumpsys
Bug: 154020971
Test: Manual verification of dumpsys.
Change-Id: Ibae9d41ec7470cc0ddabfe087910e1eac172f39a
2020-04-14 13:18:49 -07:00
Ytai Ben-Tsvi
4d38fbb486 Improve dumpsys printing of modules
This includes the module properties in the listing.

Bug: 154020971
Test: Manual verification of logging.
Change-Id: I13ed6e225714fe49f0b6e09c9c676594a886e6e3
2020-04-14 13:11:54 -07:00
Ytai Ben-Tsvi
c3cf2a8524 Pretty-print all arguments and return value
Previously, we would print only parcelables, which would exclude
arrays. There's no reason to. All arguments and return values we log
are parcelables (or arrays of) anyway.

Test: Manual verification of logs.
Bug: 154020971
Change-Id: I24c06373f07bd46f58e520364f5b1753f20c75e3
2020-04-14 12:35:06 -07:00
TreeHugger Robot
28308529fb Merge "DataLoader lifecycle." into rvc-dev 2020-04-14 19:19:14 +00:00
Tiger Huang
9cc2e135ae Merge "Re-send the IME control after IME is re-created" into rvc-dev 2020-04-14 19:05:30 +00:00
Soonil Nagarkar
1716a62ac1 DO NOT MERGE Move LMS to ease merge conflicts
Cherrypick change from master moving LMS, so that merge conflicts will
be easier to resolve.

Bug: 153568386
Test: presubmits
Change-Id: I8eba22622cc5f4d11c1a928b6cf3883cbf96caba
2020-04-14 12:04:12 -07:00
Adrian Roos
f0fcd8da2d Merge "DisplayArea: Fix computation of ImeContainers parent surface" into rvc-dev 2020-04-14 18:58:58 +00:00
Varun Shah
acb5634dc4 Add new atoms to track user journeys, such as user switches.
Define new atoms to better log and understand various user journeys,
such as user switches, user starts, and user creation.

The UserLifecycleJourneyReported atom defines a user's journey and
holds a user's information such as their user id, user type, and flags
associated with the user. This atom includes a session-id which is used
to link to the UserLifecycleEventOccurred atom which keeps track of
lifycycle events that occur throughout a user's journey. As more user
journeys are defined, there could be more Events added in the future.

Note: the JourneyReported atom can currently be logged more than once
per user journey since there is no record of the user's ongoing journey.
This will be updated in a future CL.

Bug: 146505521
Bug: 150788910
Test: statsd_testdrive 264 265
Change-Id: Iff3847be64d718fb2ec17e58c33d47f7fa4b627a
2020-04-14 11:25:07 -07:00
Charles Chen
5c984b9a09 Merge "Fix WindowContextTests" into rvc-dev 2020-04-14 17:44:47 +00:00
Garfield Tan
4456f7d2d6 Merge "Enable compositor shadow for freeform windows." into rvc-dev 2020-04-14 17:03:59 +00:00
Alex Buynytskyy
0b20266c12 DataLoader lifecycle.
- mark disconnected DataLoaders as non-existent (destroyed),
- remove storage destroy on DataLoader destroy,
- more robust destroy on destruct handling,
- less race-conditions.

Bug: b/153874006
Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest
Change-Id: Ib77302aac546d66ce40c5345417c7b424a1d601b
2020-04-14 09:25:37 -07:00
Simon MacMullen
93e82cb1ed Merge "Add system properties for screen state and brightness." into rvc-dev 2020-04-14 16:16:28 +00:00
Jean-Michel Trivi
25b0e6bbe9 AudioService: test mic muting API behavior with errors
Implement unit test for AudioService's mic muting API.
 This requires being able to inject existing
AudioSystemAdapter in AudioService class, and creating an adapter
for operations that require running in system_server.

Bug: 153103117
Test: atest AudioServiceTest
Change-Id: I92538f585c5567718a4bad5666b2efafd446f4d3
Merged-In: I92538f585c5567718a4bad5666b2efafd446f4d3
2020-04-14 15:52:29 +00:00
Jean-Michel Trivi
ab218872ce Merge "[DO NOT MERGE] AudioService: better mic muting API behavior with errors" into rvc-dev 2020-04-14 15:30:07 +00:00
Adrian Roos
329cbd0e8d DisplayArea: Fix computation of ImeContainers parent surface
When not attached to an activity, the IME container must be attached
where the DisplayAreaPolicy placed it, not in WindowContainers.

Fixes: 150943539
Test: atest DisplayContentTests
Change-Id: Ia205f4ce53cfa063651a0010258f14fc1a22f5ef
2020-04-14 15:47:24 +02:00
TreeHugger Robot
cde07e5dc5 Merge "Limit stage install to system and whitelisted packges only (2/2)" into rvc-dev 2020-04-14 13:43:50 +00:00
TreeHugger Robot
a018ca00cf Merge "Invoke One Touch Play on wakeUp for HDMI playback devices" into rvc-dev 2020-04-14 12:36:12 +00:00
Julia Reynolds
c026d54cd7 Merge changes from topic "bubble_settings_wooo" into rvc-dev
* changes:
  Changes to enable bubble settings CTS
  Notification Bubble Button
  Make bubble settings a pref with an int rather than a bool
2020-04-14 11:22:14 +00:00
ryanlwlin
504058e13b Fix hardly triggering A11y shortcut via gesture when zoom in
When the navigation mode is gestural, users can use two fingers
 swipe up from bottom to trigger A11y shortcut. However, it has conflict
 with scrlloing gesture of magnification. We count the navigation bar
 inset into nonmagnificationReigion in such situation. If the UI is
 in immersive mode, the nagivation bar is invsibile, so it won't
 counted.

Bug: 145775653
Test: manual test:
 1. Enable gesture navigation mode.
 2. Zoom in the screen via gesture.
 3. Turn off magnification via gesture.
Change-Id: I388397d9fb3713987beb44a1611270bf0d944c66
2020-04-14 19:21:19 +08:00
Charles Chen
7ba8e26c87 Fix WindowContextTests
Previously, window token assigns last config to mLastReportedConfiguration
directly, which makes it share the same reference with getConfiguration(),
and blocks all config changes request to clients.

This CL uses Configuration#setTo instead.

fixes: 152227175
Bug: 150251036
Test: atest WindowContextTests

Change-Id: I44143aa558f223eb301e28f2e9110bfd66eac636
2020-04-14 16:57:18 +08:00
TreeHugger Robot
3002b11fb6 Merge "CEC: Filter certain message arguments from logging" into rvc-dev 2020-04-14 08:41:57 +00:00
Hyundo Moon
e6bd8505be Merge changes Ibf61ba52,Ief4b7f4b into rvc-dev
* changes:
  Allow MediaRouter2Manager releasing the session created w/o request
  Do not check router's permission on requests from MediaRouter2Manager
2020-04-14 06:41:26 +00:00
TreeHugger Robot
35f960dff4 Merge "Add Multi Audio focus" into rvc-dev 2020-04-14 06:29:16 +00:00
Louis Chang
8758ee4176 Merge "Compute visibilities when finishing show-when-lock activity" into rvc-dev 2020-04-14 06:22:30 +00:00
Jacky Kao
705ebb0946 Merge "Fix more windows at framework on system gesture mode" into rvc-dev 2020-04-14 03:38:43 +00:00
Louis Chang
3d718c30c6 Compute visibilities when finishing show-when-lock activity
The activity visibilities was not updated in KeyguardController
while a show-when-locked activity was finished. Therefore, the
general activity below was resumed for a short time and flickering
the screen with transition animation.

Bug: 149837574
Test: start emergency dialer and exit
Test: atest ActivityRecordTests
Change-Id: I7cea9d3e00a856c392728c7a8c825d4633b73f55
2020-04-14 11:33:53 +08:00
Chalard Jean
4947356664 Merge "Allow testing of signal strength" into rvc-dev 2020-04-14 02:42:06 +00:00
TreeHugger Robot
45e7091f37 Merge "Apply rotation animation to restore rotated activity" into rvc-dev 2020-04-14 01:27:54 +00:00
Chalard Jean
3b2a81b23b Allow testing of signal strength
- Let any process with NETWORK_SETTINGS register for signal strength
  wakeup.
- Allow agents registering test networks to assign them a signal
  strength.

Test: NetworkAgentTest
Bug: 139268426
Change-Id: Iebfeb9316bcbd8472459c517abb16f1f9d879871
Merged-In: I2b4b89be3e69f4853fd6978d2c8f5c8eb4271f21
(cherry picked from commit 5cc7b18fe7, aosp/1284585)
2020-04-14 01:22:14 +00:00
Jacky Kao
fd3b4a8c69 Fix more windows at framework on system gesture mode
When the mode of navigation bar is system gesture mode, there is
a navigation bar inset existing, but the application can not touch
this region due to all touch events from this region received by
launcher. We need to account this region with unaccount space to
avoid the windows which could not be touched passing to A11y
framework.

Bug: 142022890
Test: a11y CTS & unit tests
Change-Id: If87e1f5b840daa93f78c4b4955ed98633b654928
2020-04-14 08:53:18 +08:00
TreeHugger Robot
159904ef21 Merge "Log more info on StorageManagerService.unlockUserKey()" into rvc-dev 2020-04-14 00:45:36 +00:00
Evan Rosky
71d6e68736 Merge "Make PINNED mode alwaysCreateStack" into rvc-dev 2020-04-14 00:04:06 +00:00
Hongwei Wang
aaa747d223 Merge "Ensure TaskOrganizer works for newly created pinned stack" into rvc-dev 2020-04-14 00:00:49 +00:00
Jean-Michel Trivi
d40b961a64 [DO NOT MERGE] AudioService: better mic muting API behavior with errors
If an error is reported when changing the microphone mute state,
log it but still fire ACTION_MICROPHONE_MUTE_CHANGED intent.
 Make AudioManager.isMicrophoneMute() return the "real" mute
state, not the intended mute state, by returning the cache
of the state returned by AudioSystem whenever a change is
attempted.

Bug: 153103117
Test: atest AudioServiceTest
Change-Id: Id79c789fff5e675afbc43e6e6dd34cc78dc26c6d
2020-04-13 22:00:26 +00:00