Commit Graph

64020 Commits

Author SHA1 Message Date
Robert Carr
e57724d7fc InputMonitor: Ensure we assign input to correct Surface
We want to assign input to the BLAST surface instead of the
WSA container layer if BLAST is enabled. Previously this didn't
matter but following upcoming occlusion changes the BLAST surface
would then occlude the WSA surface and the main Input Channel would
fail to receive input. We fix this by having InputMonitor call
getClientViewRootSurface()

Bug: 152064592
Test: Flip BLAST. Input still works!
Change-Id: I3e4e136fa11d15f8f576b97dbdc34c9a585a0f32
2020-04-20 12:43:11 -07:00
TreeHugger Robot
adf530fc26 Merge "Fix SoftInputShowHideHistory entry seq number representation" into rvc-dev 2020-04-15 18:30:38 +00:00
TreeHugger Robot
64fb27fcdc Merge "The notification archive should follow history setting" into rvc-dev 2020-04-15 17:32:47 +00:00
TreeHugger Robot
a8afb50f46 Merge "Require sharing shortcuts for the conversation space" into rvc-dev 2020-04-15 17:12:31 +00:00
Ming-Shin Lu
a0605a6bfd Fix SoftInputShowHideHistory entry seq number representation
The sequence number will be reset from 0 when calling dumpsys input_method.
This increasing number should be stored into history Entry.

Fix: 154115116
Test: Use `adb shell dumpsys input_method` command multple times,
      Observe if the sequence number of SoftInputShowHidHistory entry
      is increasing.
Change-Id: Ic8c3afd8eb6748012edc860156c9f9aa78e2d4a6
2020-04-15 23:49:40 +08:00
Mitch Phillips
2bf744abe1 Merge "Check 64-to-32-bit transition in system_server for Tagged Ptrs [#2]." into rvc-dev 2020-04-15 15:48:51 +00:00
Soonil Nagarkar
e89cef4edb Merge "DO NOT MERGE Add utilities for creating AppOps listenerIds" into rvc-dev 2020-04-15 15:44:22 +00:00
Julia Reynolds
fa27307a8a Require sharing shortcuts for the conversation space
Test: atest
Fixes: 150410079
Change-Id: Ib47f14d2fbdeff401651b1fecac0345e77a8f5bd
2020-04-15 15:29:58 +00:00
Julia Reynolds
b5535c6faa The notification archive should follow history setting
Test: atest
Fixes: 153677280
Change-Id: I9b2ae1ecd1cc8b42ab715ee033879f295949a9ba
2020-04-15 15:29:32 +00:00
TreeHugger Robot
9024ce52c6 Merge "Fix adb shell command for screen_brightness" into rvc-dev 2020-04-15 13:42:36 +00:00
TreeHugger Robot
81af900456 Merge "Keep fixed rotation transformed surface position for animation leash" into rvc-dev 2020-04-15 13:25:33 +00:00
Tiger Huang
3eea61dd1f Merge "Apply the transaction to the leash before it is sent to the client" into rvc-dev 2020-04-15 13:00:08 +00:00
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
Fiona Campbell
14a366be91 Fix adb shell command for screen_brightness
This was caused by ag/10665448 removing BrightnessSynchronizer from
DisplayPowerController.

Bug: 153744973

Test: atest android.cts.statsd.atom.UidAtomTests#testScreenBrightness
Manual, check brightness changes accordingly:
adb shell settings put system screen_brightness_float 0.9
adb shell settings put system screen_brightness 2

Change-Id: I86c80ae1aa1d34d9221a09da11a48f9845506bea
2020-04-15 11:54:32 +01: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
Riddle Hsu
3d0aa4f3d0 Keep fixed rotation transformed surface position for animation leash
The orientation of the target window can be different than who controls
the leash. In order to let the animator use the leash without additional
transformation, the current position of surface needs to be preserved.

Also fix a flaky test due to the display was frozen.

Fixes: 153561756
Fixes: 154030098
Test: atest DisplayContentTests#testApplyTopFixedRotationTransform
      ActivityRecordTests#testActivityOnCancelFixedRotationTransform
Change-Id: I4b75e830b4d63143c6825f0fa5ccbf333b2ba6ff
2020-04-15 11:18:16 +08:00
Soonil Nagarkar
4523f96ff1 DO NOT MERGE Add utilities for creating AppOps listenerIds
Use utilities to support location listenerIds.

Bug: 153687899
Test: presubmits
Change-Id: Ie138c98a5f864490c6560166b652ea9509fa8728
2020-04-14 19:04:41 -07: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
Mitch Phillips
ba160a28fd Check 64-to-32-bit transition in system_server for Tagged Ptrs [#2].
Note: Same patch as previously reverted with the fix.

The check whether the system (kernel) supports Tagged Pointers is done
in the 64-bit system server. This can spawn 32-bit apps, and we
think that the app supports tagged pointers.

There's no good way to check the compatibility in the child before we
spawn it, so we do the next best thing. If we know the child won't
support it (i.e. the child is 32-bit), we don't ask for Tagged Ptrs.
Otherwise, if the parent supports tagged pointers, and there's no
bitness transition, the child should also support.

Bug: 153114333
Test: Build flame, launch 64-bit apps that spawns 32-bit subprocesses,
verify that you get no 're-enabling tagging' messages.
Test: atest -a CtsTaggingHostTestCases

Change-Id: Ida6aa56093de6b6b03e78e6295bea546219ad864
Merged-In: Ida6aa56093de6b6b03e78e6295bea546219ad864
2020-04-15 00:12:18 +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
Tiger Huang
9a62da7465 Apply the transaction to the leash before it is sent to the client
Otherwise, applying the transaction later at the server may overwrite
the operations done by the client. For example, the client might hide
the leash immediately when it obtains the control, but the 'show'
operation in createAnimationLeash() has not been applied yet, so the
'show' operation at the server side can overwrite the 'hide' operation
at the client side later.

Fix: 153104643
Test: Steps in the bug.
Change-Id: I9b3480ba17c2cd5396aed8a5412f2c8ba265db68
2020-04-14 19:26:02 +08:00