- Clarify that UserController.mCurrentProfileIds lists all profiles,
not just the started ones.
- Similarly, renamed updateCurrentProfileIds() to
updateProfileRelatedCaches() (and updated its javadoc), as that
method was also updating mUserProfileGroupIds
- Added a UserLifecycleListener to UserController, so the profile
caches are updated when a new profile is added.
- Removed the UserController.onUserRemoved() call from
ActivityServiceManager and used the above listener instead.
- Added mCurrentProfileIds to UserController dump() methods.
- Added mCurrentUserId to UserController dump(proto) method.
Test: manual verification
Test: adb shell dumpsys activity users|grep -i profile
Change-Id: I7e11a8d7237a7421ad396ad6515a9496d0bb7f8d
Fixes: 255357601
On Android U, system components (like location) should rely on
UM.isUserVisible() (rather than AM.getCurrentUser()) to check if a
user is "visible". Hence, we need to provide a callback mechanism to
notify when the user visibility changes.
This change adds a SystemService.onUserVisibilityChanged() API, and
also refactors how some internal components (like UserController and
ActivityManagerService) handle the initial start of user 0.
Finally, it also changes some user-related event logs to include
more info.
Bug: 244333150
Test: atest UserControllerTest # to check for breakage only
Test: m update-api
Test: adb shell dumpsys activity users|grep mVisibleUsers
Test: adb logcat -D -b events | egrep '(I uc_|I ssm_)'
Change-Id: I6898a7fc553b2bc600151715707b409b68e4880d
As CL[1] migrated {mServedView, mNextServedView} from ImeFocusController
to InputMethodManager and removed its proto dump, we add it back to
imputmethodmanager.proto to keep it tracked in winscope for debugging.
(And deprecate the original fields in imefocuscontroller.proto)
[1]:Ie3446e1d0f62c489195e31fc7f073020884d6cae
Bug: 244504062
Test: manual as following steps:
1) rebuild rom image and winscope
2) flash the rom and reboot the device
3) run the built winscope and connect with the device
4) start record trace by winscope page
5) stop recording and verify {servedView, nextServedView} can be
shown on the ImeClient Tracing panel.
Change-Id: I1ffb63a2e1e73591e7bf349d88e1e56728ab0953
This reverts commit fb43f54289.
Reason for revert: Software Cursor not launching in Android U
Test: manual
Change-Id: I3f27b7d8958f455a580758192794308d5f91d152
This reverts commit 36e81f298f.
Reason for revert: Software Cursor will not be launching in Android U
Test: manual
Change-Id: Ibf70015d294e03aa74d839c0caa64bf3542b341f
To support state retrieval of ignoring orientation request in
a specific display area, we have to extend capability of protocol
buffer to expose such information.
This change revises WMS's protobuf definition to reach the goal.
Bug: 234669107
Test: atest android.server.wm.AppConfigurationTests
atest android.dpi.cts.ConfigurationScreenLayoutTest
atest android.view.cts.AttachedSurfaceControlTest
Change-Id: I8cd658283bd90fb6a4f8c55d7a60e7e7e9202195
1) virtual displays creation and removal.
2) App Uids running on virtual displays.
These will be used in combination to ignore vibration initiated from a virtual display.
Test: VibrationSettingsTest, VibratorManagerServiceTest
bug: 189474679
Change-Id: Ie10dbfe65bb3ab9d62ed5c7b5ed7095a51bccf24
In the generated javastream and cppsteam incident proto file,
it defines the start position for netstats at 3001 and it doesn't
actually use the NetworkStatsServiceDumpProto which is deinfed in
netstats.proto.
Thus, the framework-connectivity-proto can be removed from
framework-javastream-protos and framework-cppstream-protos.
The generated incident proto file defines netstats as the following,
// optional .android.service.NetworkStatsServiceDumpProto netstats = 3001;
public static final long NETSTATS = 0x0000010b00000bb9L;
Furthermore, on Android side, this is not strictly proto dependency,
and there's no one using this section, so it can be removed and mark
it as reserved.
Bug: 222625935
Test: FrameworksNetTests
atest CtsIncidentHostTestCases:IncidentdTest
adb shell dumpsys netstats
Change-Id: I3083a43a2f9c20768264ce2a531e0a0593f31697
There is a consistency issue in which some cached conversations in
People Service do not get cleaned up because they are missing a event
timestamp. For those cases, we use the creation timestamp to order by
recency and still clean up those conversations.
This change will enforce that at most `MAX_CACHED_RECENT_SHORTCUTS` are
cached by People Service for uncustomized conversations as expected.
Test: Manually with app that creates cached shortcuts and unit tests
Bug: 233926836
Change-Id: Ia017917ea56f2e233fdb837e574a8bd7c0d69e3b
Report atom VibrationReported on each vibration request received by the
VibratorManagerService.
This atom includes the vibration status, introduced as a proto enum to
be logged as an integer, the latency values and API trigger counts.
Bug: 232902688
Test: VibratorManagerServiceTest
Change-Id: Ic50def27d0fc9585941387fb7b8bfa5dceb42d78
tombstones. This is needed to keep count of how many events get dropped
due to rate limiting.
The accompanying file creation permissions change is in aosp/2112289
Bug: 225173288
Test: atest ErrorsTest
Change-Id: I1ddffc63179c44e2ce0e2297656abd45c480d4b7
There is no need to maintain two copies of the same proto message.
Moving framework to directly use the canonical proto used by statsd.
Test: m -j statsd_testdrive
out/host/linux-x86/bin/statsd_testdrive 169
Bug: 241474647
Change-Id: Ie2bdd2151dae26a611c3905342bb49ddddf2788d
Add real_to_elapsed_time_offset_nanos field to protobuf traces:
- Accessibility
- IME
- WindowManager
Bug: 235196806
Change-Id: I922a85edb940719c27028623c26208ece016b9b2
Test: record and view accessibility + IME + WindowManager traces with winscope
This flag is used by the SysUI to dismiss an insecure keyguard
when an app is launched from an insecure lock screen. The flag
should only affect the app launch once, so needs to be cleared
once app launch animation finishes.
Bug: 234583880
Test: atest KeyguardTests
Change-Id: I74e9e00caad0d9af80127b2fc930c4ff0d52af76
- To store extra battery saver schedule mode
Bug: 224899180
Bug: 236688783
Bug: 238841059
Test: Build pass and local access verify
Change-Id: I4a394de04fdb9020ce22377390b81bccfaec2090
- Make dump proto method support dock charging state
- Add dock charging into proto file and validators
Bug: 233704731
Test: atest FrameworksServicesTests
Change-Id: I8208414cc40a12f783749d2c7a9f71be6efab8d9
- Make dump proto method support dock charging state
- Add dock charging into proto file and validators
Bug: 233704731
Test: atest FrameworksServicesTests
Change-Id: I8208414cc40a12f783749d2c7a9f71be6efab8d9
This is to let the insets provider provide a different size to the given
windowing typed window. This can completely replace the ime frame
provider and the old ime frame provider is migrated.
Test: The task bar can still provide correct IME insets
Test: DisplayPolicyInsetsTests
Test: WmTests
Bug: 225200928
Change-Id: I5f8c4462cdc48011efda908e0337a86cbf2a417f
This patch adds a test for checking that statement cache
works and it also improves dumpsys diagnostics to include
per database stats as previously it only showed per connection
stats which could have data loss if a connection was dropped
for any reason and not put back in the pool and it also
provides the aggregated view.
Test: dumpsys meminfo
Test: atest SQLiteDatabasePerfTest#testSelectCacheMissRate
Bug: 228498581
Change-Id: Ia49264e8f0e6db83234c2ba5943fd9e25fd5d8b2