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
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
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
* 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
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
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
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
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
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
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
This includes the module properties in the listing.
Bug: 154020971
Test: Manual verification of logging.
Change-Id: I13ed6e225714fe49f0b6e09c9c676594a886e6e3
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
Cherrypick change from master moving LMS, so that merge conflicts will
be easier to resolve.
Bug: 153568386
Test: presubmits
Change-Id: I8eba22622cc5f4d11c1a928b6cf3883cbf96caba
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
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
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
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