* 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
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
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
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
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
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
- 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)
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
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