Commit Graph

417696 Commits

Author SHA1 Message Date
TreeHugger Robot
23dcdcefde Merge "Use connected boolean as NLS does vs IBinder" into qt-dev 2019-06-17 22:00:04 +00:00
TreeHugger Robot
cc0d8f3982 Merge "[AML] Check if launched activity has changed when handling visibility changes" into qt-dev 2019-06-17 21:56:08 +00:00
TreeHugger Robot
f4924f1ccb Merge "Handle invalid package name in isPermissionsReviewRequired" into qt-dev 2019-06-17 21:26:57 +00:00
Stanislav Zholnin
58c51d17d1 Merge "Atoms for logging permission grants during system upgrade." into qt-dev 2019-06-17 19:45:41 +00:00
Winson Chung
b8886dd613 Merge "Remove dependency on OverviewProxyService from StatusBarWindowController" into qt-dev 2019-06-17 19:00:41 +00:00
Julia Reynolds
b1f5aafc91 Use connected boolean as NLS does vs IBinder
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)
2019-06-17 17:51:18 +00:00
Perumaal Shanmugam
1ed4ce0161 Merge "qt_dev: Fix ContentSuggestions service connection" into qt-dev 2019-06-17 17:04:25 +00:00
Perumaal S
bcedb60f4c qt_dev: Fix ContentSuggestions service connection
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
2019-06-17 16:40:43 +00:00
TreeHugger Robot
4f3e0aa4d3 Merge "Fix battery content description when there is no percent mode" into qt-dev 2019-06-17 15:24:44 +00:00
TreeHugger Robot
08793a3b64 Merge changes I80bebcd0,I35f3718f into qt-dev
* changes:
  Simplification of code to prevent a Log.wtf in expected cases.
  Suppress the wtf log for notifications that are expected
2019-06-17 14:15:13 +00:00
Chalard Jean
accf7105b6 Simplification of code to prevent a Log.wtf in expected cases.
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)
2019-06-17 13:16:46 +00:00
TreeHugger Robot
d031113290 Merge "We should prevent starting home activity before setup" into qt-dev 2019-06-17 05:28:23 +00:00
Chiachang Wang
d977c2b13a Suppress the wtf log for notifications that are expected
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)
2019-06-17 02:09:27 +00:00
TreeHugger Robot
da15cb030c Merge "Restore the Private DNS settings to default mode upon network resets." into qt-dev 2019-06-17 01:08:00 +00:00
TreeHugger Robot
73bd1afc54 Merge "Fix the potential NullPointerException." into qt-dev 2019-06-17 01:06:30 +00:00
TreeHugger Robot
ad8a5939c6 Merge "Import translations. DO NOT MERGE" into qt-dev 2019-06-15 14:57:33 +00:00
Winson Chung
4cdce5a874 Merge "Update the edge back gesture width from the current user's overlays" into qt-dev 2019-06-15 06:30:51 +00:00
Winson Chung
316f67371b Update the edge back gesture width from the current user's overlays
- 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
2019-06-14 19:49:55 -07:00
TreeHugger Robot
128c538b3e Merge "Removing noisy logging" into qt-dev 2019-06-15 02:00:13 +00:00
Bill Yi
26bf1e5f4a Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I66499356b7bb4d012b24c05035b052d92eca1314
2019-06-14 18:58:15 -07:00
TreeHugger Robot
5f3df7f5e0 Merge "DO NOT MERGE: Add DENSITY_450" into qt-dev 2019-06-15 00:26:09 +00:00
TreeHugger Robot
73e04f292a Merge "Mark getProfileOwnerAsUser(int) as UnsupportedAppUsage again" into qt-dev 2019-06-15 00:21:45 +00:00
TreeHugger Robot
04d615da92 Merge "Always remove IconState in onViewRemoved, even if animations are off" into qt-dev 2019-06-15 00:13:10 +00:00
TreeHugger Robot
d90f23c620 Merge "Zygote: do not preload Vulkan driver in Q" into qt-dev 2019-06-15 00:02:36 +00:00
TreeHugger Robot
a9ab8516ca Merge "Pause watchdog triggering on the main thread during package scan" into qt-dev 2019-06-15 00:02:26 +00:00
TreeHugger Robot
6eca92dd43 Merge "Add key layout for Nintendo Switch controller" into qt-dev 2019-06-15 00:00:06 +00:00
Winson Chung
60887936ea Remove dependency on OverviewProxyService from StatusBarWindowController
Bug: 134712444
Test: atest SystemUITests
Change-Id: Ifd6ac77670c408da74a7278e8da5868e78a6a068
Merged-In: Ifd6ac77670c408da74a7278e8da5868e78a6a068
2019-06-14 23:56:22 +00:00
bj1211jeon
b38f168397 DO NOT MERGE: Add DENSITY_450
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
2019-06-14 15:41:13 -07:00
TreeHugger Robot
ad607a4fbb Merge "Hide MultiUserSwitch when guestEnabled && no_add_users" into qt-dev 2019-06-14 22:33:10 +00:00
Philip P. Moltmann
c91ff6f0f4 Handle invalid package name in isPermissionsReviewRequired
Fixes: 129522923
Test: atest PermissionsHostTests
Change-Id: I2e0e65c5d10b88b5d74ed7eefa80fb381b22ddd7
2019-06-14 14:43:38 -07:00
Yiwei Zhang
1c5c060b6c Zygote: do not preload Vulkan driver in Q
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
2019-06-14 14:11:47 -07:00
Philip P. Moltmann
c073e956dc Mark getProfileOwnerAsUser(int) as UnsupportedAppUsage again
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
2019-06-14 14:09:35 -07:00
Daniel Sandler
9bffff9528 Merge "Add PSS info to dumpsys output." into qt-dev 2019-06-14 20:34:52 +00:00
Tim Murray
2ea2a58d97 Merge "Revert "RootViewImpl: Fix measure size hint for WRAP_CONTENT windows"" into qt-dev 2019-06-14 19:50:20 +00:00
Evan Laird
fab34160d2 Always remove IconState in onViewRemoved, even if animations are off
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
2019-06-14 15:36:23 -04:00
TreeHugger Robot
caf6bc7683 Merge "Ensure onDarkIntensity is called on the proper thread." into qt-dev 2019-06-14 19:16:44 +00:00
Siarhei Vishniakou
94db68e031 Add key layout for Nintendo Switch controller
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
2019-06-14 11:45:21 -07:00
Xiangyu/Malcolm Chen
566f3521cd Merge "When data switches during voice call, make sure signal bar updates it." into qt-dev 2019-06-14 17:53:30 +00:00
Evan Laird
7839fe8322 Fix battery content description when there is no percent mode
Fixes: 135157243
Test: can focus on status bar battery when talkback is on
Change-Id: I413ba6664bc651ddc378ae344fa42a17d460bfa5
2019-06-14 13:27:54 -04:00
Tim Murray
4f6b8ec056 Revert "RootViewImpl: Fix measure size hint for WRAP_CONTENT windows"
This reverts commit c18c6da441.

Reason for revert: major memory increase

Change-Id: Iffb9cd14343cd678849e487bfa163b5f23608ffd
Test: presubmit
Bug: 134695730
2019-06-14 17:16:17 +00:00
Ned Burns
3f5980c3d5 Merge "Make silent notifications header font theme-aware" into qt-dev 2019-06-14 16:59:59 +00:00
TreeHugger Robot
21cb9f03cf Merge "Fix default home detection logic" into qt-dev 2019-06-14 16:53:33 +00:00
TreeHugger Robot
88917458a0 Merge ""Fix" issue #112467931: APR: WTF in ActivityManager:..." into qt-dev 2019-06-14 16:40:49 +00:00
David Nelloms
db5af64180 Merge "Clear transitions for app windows display change." into qt-dev 2019-06-14 16:39:56 +00:00
Zimuzo
ab2fc348fd Pause watchdog triggering on the main thread during package scan
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
2019-06-14 16:07:51 +00:00
Fabian Kozynski
4e4b072c36 Hide MultiUserSwitch when guestEnabled && no_add_users
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
2019-06-14 11:08:07 -04:00
TreeHugger Robot
697989a615 Merge "Revert "Change attrbute of double-power-to-camera vibration"" into qt-dev 2019-06-14 14:07:13 +00:00
TreeHugger Robot
c0ef6a71ef Merge "Revert "Change attribute of fingerprint vibrations"" into qt-dev 2019-06-14 14:07:13 +00:00
Govinda Wasserman
8c78deec28 Fix default home detection logic
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
2019-06-14 09:37:05 -04:00
Stanislav Zholnin
247d1b75cd Atoms for logging permission grants during system upgrade.
Test: manually verified
Bug:133401502
Bug:134581123
Change-Id: I004704e39c8936de91300b6f98e722d925142c14
2019-06-14 13:13:35 +01:00