To determine if the CPS can get/send messages. Apparently
the IBinder can be cached in ActivityManager and onBind() is not
always called when a service is connected the second time.
Test: manual; ensure a service recieves an onsubscribe for an
active rule post requestUnbind/requestRebind
Fixes: 62584038
Change-Id: Iffe37242509f3bf26e609e6b423f3928c00156ad
(cherry picked from commit 265d093cd9)
Issue:
When the RemoteContentSuggestionsService dies (due to package manager
update or clear data), the ContentSuggestionsPerUserService (system)
does not restart and uses an old zombie instance.
Fix:
Reset the instance upon onServiceDied in the system service.
Test: Verified that stopping/clear-data/package-update of Device
Personalization Services (which implements ContentSuggestionsService)
multiple-times and then Overview long-press actually works.
Also verified that if the Remote Service crashes, we don't keep
reconnecting infinitely.
Fixes: 120865921
Fixes: 130420008
Change-Id: I80197ec1cb446ddb5f1865a4b75beb18b48d2e9e
This mostly serves to unindent code to make it locally more
readable. It is a functional no-op.
Bug: 135043192
Test: atest FrameworksNetTests
Merged-In: Iad0e9a28670e96a3c953518a0d0ccd77e2f2fa80
Change-Id: I80bebcd04c277f6e4b0665fe1253b2309e3bc535
(cherry picked from commit e1f5759319)
PARTIAL and NO_INTERNET may happen in the real world for
those transport types that provide internet. These two
notification types should be reasonable notificaitons, not a
terrible failure as the log. For Q, it may be too risky to
display more notifications with other information instead of
SSID. Thus, suppress the wtf log for these two notifications.
Bug: 135043192
Test: atest FrameworksNetTests
Change-Id: I35f3718fa93b403858587d918f0bc596f6c92f3e
Merged-In: I91b92249dc7905aadbc59df50c3bc6da30a8590e
Merged-In: Ia1c2a765b0fb0cc8d440c02533bdc15774a5a3ef
(cherry picked from commit ed0a54bd07)
- Also add some logging about the back gesture state
Bug: 135212748
Test: Switch to secondary user while first user is in 2/3 button and ensure
secondary user back works
Change-Id: I0b144f8dc7c4818056068696b8fad5a6611515b9
Add 450dpi as a supported screen density.
This change follows up below change Id : Iac673eae2d82c27d96e279c076454af2f5933208
Originally 600dpi was added to support sw384 with WQHD resolution,
though it was lack of for the cases when resolution is FHD resolution. (In case of other resolutions, there already exist 300 and 200 for HD and WVGA resolutions).
Bug: 78283907
Test: run android.dpi.cts.ConfigurationTest#testScreenConfiguration and android.app.cts.ActivityManagerMemoryClassTest#testGetMemoryClass
(cherry picked from commit 13ca0450ede3eedf7d34bbd0b69525cb6ebc63f1)
Change-Id: Ide0baba183c7dea962610d16f18fecbd0dc62567
This is a partial revert of http://ag/7064585 to be safe for Q.
1. skia is not going to use Vulkan backend in Q.
2. usap is no longer preloading graphics drivers.
3. Most importantly, Vulkan loader is not quite ready to be preloaded in Zygote.
Because the layers discovering mechanism currently only happens once with the
driver loading. By preloading in Zygote, apps won't be able to use the layers
shipped with the debug apk.
Bug: 135281983
Test: build, flash and boot.
Change-Id: I88b0ad60ab8233714253a92166da76dc992f7f98
As it was in P. There are no public APIs created, hence there is no
better, _public_, alternative.
Fixes: 135282729
Test: none
Change-Id: I199cfcc125f948b983eb55a199abf673cc58b7e1
Recent changes to avoid animating added a case where we can remove views
but not remove the actual IconState for that view, causing a leak
Fixes: 135180058
Test: heap dump?
Change-Id: If3e3924348a606484ac0968f644b4895871bd406
The controller for Nintendo Switch is currently missing a key layout,
and the resulting codes are incorrect. Provide the appropriate map here.
Also, update some button mappings for the Xbox 360 controller.
Bug: 135136477
Test: Tested using "gamepad tester". CTS test will be added in a future
release. Tested using custom app.
Change-Id: I1ffcabdcc11aa83316c483ea49cb10fc85f6264f
Similar to I3876c41e6d0e41d044a5b1d5e57f894c7fb4fb0e and
I69067fbbb8be4e421918c18b67269044fab51b3e where we pause
the watchdog because dexopting and moving A/B artifacts can take a while,
here scanning packages can take a long time depending on the number of
apps installed on the device.
Bug: 135103243
Test: Manually tested by adding an artificial sleep in
PackageManagerService#main and verified that watchdog was not triggered
Change-Id: Ia5b2b5741194a33f7cd09e79c0904696ce546026
Merged-In: Ia5b2b5741194a33f7cd09e79c0904696ce546026
If the device is guestEnabled but the user cannot add new users (either
by system or by device policy), do not show MultiUserSwitch
Even if the user set the setting USER_SWITCHER_ENABLED to true by
accidentally going to "Multiple Users", it doesn't make sense to show it
in devices with a single user that cannot add users.
We still set the setting to true by default (even if it may be disabled
by policy), as the setting should reflect what the user sees in that
screen.
Test: manual
* Set the user restrictions for user 0 as per in BR in b/134569467.
Including policy as well as modifying /data/system/users/0.xml
* Go to Multiple Users, see that it matches screenshot with setting
enabled
* See that the issue is that guests are enabled, even though the user
cannot add guests and that's why MultiUserSwitch is showing.
Fixes: 134569467
Change-Id: If7c596769faa577d6d9ba8943722fb6e6734f7c2
Default home detection did not perform priority analysis if the default
home was null. Furthermore, the default home was retrieved before it was
initialized. By listening for boot complete and package changes, we
ensure that we get the correct default home.
This fixes incorrect handle behavior and metrics logging.
Test: Tested locally
BUG:135150547
Change-Id: I4ca36cbb1fad73905344e2434592a1893c178e23
FIX:135150547