Commit Graph

468813 Commits

Author SHA1 Message Date
TreeHugger Robot
3944050acb Merge "Prevent NPE whlie leaving windowless dream service." into rvc-dev 2020-02-26 17:11:38 +00:00
Joshua Duong
ac29885a0e Allow UsbDeviceManager to start adbd again.
There's some weird state where if persist.sys.usb.config=none,adb, then
adbd won't get started. Give back adbd start permissions to
UsbDeviceManager to see if that fixes the issue.

Bug: 150130503
Bug: 150116813

Test: adb shell su 0 setprop persist.sys.usb.config none,adb; adb reboot
adb should be online after.

Change-Id: I36c6ef4b20d58570a2d51ed70088ae5c54d6687d
Exempt-From-Owner-Approval: Fix adbd offline failure
(cherry picked from commit 7a3800993d)
2020-02-26 16:26:39 +00:00
TreeHugger Robot
6f01c62d29 Merge "Add key layouts for Xbox clones" into rvc-dev 2020-02-26 15:02:38 +00:00
Beverly
f8f2f16f69 Don't use main handler in ImageWallpaperTest
ImageWallpaperTest was creating an Engine that was run on the main
thread. Instead, pass a mocked handler to the Engine so that the main
thread isn't unnecessarily doing work in a test which may cause other
tests to fail.

Test: atest SystemUITests
Bug: 149204632
Change-Id: Ifc5f52bc33cd661c2b7818ccf7e8dafedd60d6c9
2020-02-26 15:02:03 +00:00
Hui Yu
4cda1e515c Pass START_ACTIVITIES_FROM_BACKGROUND permission to instrumentation
test.

So the instrumentation can have the same permssion as app and it can
skip the FGS background start while-in-use restriction.

Also reuse the ProcessRecord.mAllowBackgroundActivityStartsTokens flag.

Bug: 136219221
Test: atest cts/tests/app/src/android/app/cts/ActivityManagerFgsBgStartTest.java
Change-Id: I7d8708945ffe79b83825f8edb688078706c46770
(cherry picked from commit 5a5daafbca)
2020-02-26 14:59:10 +00:00
Fabian Kozynski
9f2dabf255 Add docs to Controls API
Test: build
Bug: 150154816
Change-Id: Ie1f77620f8302032845ae1f66459b2990513bb86
2020-02-26 09:56:44 -05:00
Kelvin Kwan
2fc5d72f40 Add MODIFY_QUIET_MODE for DocsUI
Bug: 149642046
Test: manual
Change-Id: Ie65b4b86fad557f27e241ea848793ee52473e6df
2020-02-26 14:16:29 +00:00
Jooyung Han
c46bf0786c Merge "tethering: transitive deps from jni_libs" into rvc-dev 2020-02-26 14:03:39 +00:00
Beverly
022e6635d6 Process all messages of TestLooper after each test
So that they won't process messages during the next test.

Test: atest SystemUITests
Fixes: 149740127
Change-Id: I082231b8f544f8b71f3404d247e10c3967c1c972
2020-02-26 13:12:21 +00:00
Beverly Tai
1e9bda44fc Merge "Explicitly set READ_CONTACTS permission" into rvc-dev 2020-02-26 13:11:57 +00:00
Julia Reynolds
146e157a69 Update colors for inline controls
- Buttons and whatnot should match the theme accent color
- Background should be white to maintain a11y contrast

Test: manual
Fixes: 149569128
Change-Id: I0d38484bb91aa1cdd4ae2f7de6dc2c72d15cd0ef
2020-02-26 12:42:11 +00:00
Julia Reynolds
d61bdf17dd Update shortcut queries
- Include cached shortcuts also
- Require long lived flag

Test: atest
Fixes: 149925743
Change-Id: If3e50d2ffdc82308a503bce13fc28443fb77a6b6
2020-02-26 12:41:19 +00:00
Hazem Ashmawy
ee824f006b WebView: Update setAllowFileAccess doc to reflect new default value
Update setAllowFileAccess java docs to reflect that it's now disabled by
default after merging crrev.com/c/2056824. Also add a note to use
androidx WebViewAssetLoader instead.

Bug: 148840827
Test: m offline-sdk-docs -j20
Change-Id: I15866ab63818771fd91f40828846d6b4c39d278e
(cherry picked from commit 47a4c2da51)
2020-02-26 12:26:36 +00:00
TreeHugger Robot
44a56296cb Merge "Exempt callingUid that has START_ACTIVITIES_FROM_BACKGROUND permission." into rvc-dev 2020-02-26 12:22:24 +00:00
Chilun Huang
fb715c045f Merge "Use packageName instead of specific secondary launcher activity" into rvc-dev 2020-02-26 11:25:11 +00:00
Jerry Chang
30efde6a30 Prevent NPE whlie leaving windowless dream service.
There might having windowless dream service like doze dream which won't
hava attached activity, so call finish() directly in onWakeUp() since
finish() itself deals with finishAndRemoveTask() as well.

Fix: b/150110220
Test: manual test, won't throw NPE while leaving doze service.
Change-Id: I982c2f6fb1859e869732ef8795b61bf96e8cff64
Merged-In: I982c2f6fb1859e869732ef8795b61bf96e8cff64
(cherry picked from commit 45f0d572c1)
2020-02-26 10:56:29 +00:00
TreeHugger Robot
768070530b Merge "Fix inflating content views after removal" into rvc-dev 2020-02-26 10:22:58 +00:00
TreeHugger Robot
c805ce31f7 Merge "Add framework flag to allow enable/disable resize." into rvc-dev 2020-02-26 09:01:27 +00:00
Makoto Onuki
5f865b07fe Merge "Make sure always reuse ApplicationInfo when generating ProviderInfo" into rvc-dev 2020-02-26 08:46:22 +00:00
TreeHugger Robot
c11267f389 Merge "DisplayModeDirector: initialize min/max refresh rate" into rvc-dev 2020-02-26 07:49:47 +00:00
Suprabh Shukla
a5a576d905 Merge "Resolving a TODO in AppWidgetService" into rvc-dev 2020-02-26 07:25:36 +00:00
Jooyung Han
55d9376f70 tethering: transitive deps from jni_libs
The build system collects transtive deps from jni_libs for APKs.
No need to list them explicitly in android_app definition.

Bug: 146992436
Test: m com.android.tethering
      deapexer extract com.android.tethering.apex apex
      unzip apex/priv-app/Tethering/Tethering.apk -u apk
      ls apk/lib/arm64-v8a

Merged-In: Icba6ea3611c443cbf22ad6363d0239377d16ac9e
Change-Id: Icba6ea3611c443cbf22ad6363d0239377d16ac9e
(cherry picked from commit 9618b66f28)
2020-02-26 14:14:17 +09:00
Mathieu Chartier
f416c7f9cd Merge changes Iba48c173,If0a71607 into rvc-dev
* changes:
  Use shell commands instead of ITestDevice for BootImageProfile test
  Make BootImageProfileTest less flaky
2020-02-26 04:57:31 +00:00
Yan Yan
969da7c894 Merge "Do not statically link ike-stubs" into rvc-dev 2020-02-26 03:08:59 +00:00
TreeHugger Robot
da043aee24 Merge "Restore UnsupportedAppUsage method call" into rvc-dev 2020-02-26 03:05:31 +00:00
PETER LIANG
9c9ed396b5 Merge "Fine-tune the public APIs of allow rich content in Accessibility Settings for security." into rvc-dev 2020-02-26 02:51:57 +00:00
TreeHugger Robot
612529e5b3 Merge "wifi: Add document magic 0 value for KEY_HOTSPOT_MAX_CLIENT_COUNT" into rvc-dev 2020-02-26 02:51:00 +00:00
Evan Rosky
66279fe163 Merge "Generalize change transition into WindowContainer" into rvc-dev 2020-02-26 01:43:06 +00:00
Jack Yu
f0df0ba2ba Hide API
Hide API that is only used by telephony registry.

Test: Telephony sanity tests
Bug: 149850449
Change-Id: Ie4c46de336097fb7231291f15048329aea0b639c
2020-02-25 17:09:00 -08:00
Blake Kragten
bdfcea3440 Merge "Add Enhanced Connectivity To Backup Tests" into rvc-dev 2020-02-26 01:01:43 +00:00
Ryan Mitchell
625ebd3911 Call verify in create-multiple
Idmap Scan previously called Verify before calling Create. OverlayConfig
should do the same. Removing the verify call caused b/149784008.

Since sSystem is marked @UnsupportedAppUsage,
createSystemAssetsInZygoteLocked could potentially be invoked in the
system server. Rather than attempting to create the overlays a second
time, first check whether the idmap must be invalidated.

Bug: 149784008
Test: running forrest using web UI
Change-Id: I5d995a87e8552bd156fb5415b2c46a08f4c1d6c5
2020-02-26 00:53:13 +00:00
Evan Severson
3df3b53b8b Merge "Persist the one-time permission flag if set" into rvc-dev 2020-02-26 00:46:50 +00:00
Ady Abraham
f30470f39e DisplayModeDirector: initialize min/max refresh rate
Added a missing initialization of min/max refresh rate.

Bug: 150245531
Test: atest DisplayModeDirectorTest
Change-Id: Ic682a26811bda81eddb775aaf9b2f1d73f419043
2020-02-25 16:11:08 -08:00
Etan Cohen
d506a78e94 Merge "[WIFI][SysUI] Update QS iconography for Wi-Fi" into rvc-dev 2020-02-25 23:58:41 +00:00
TreeHugger Robot
34127ce76a Merge "Catch all exception from statusReceiver.sendIntent." into rvc-dev 2020-02-25 23:57:51 +00:00
Ben Lin
e55f85f6fb Add framework flag to allow enable/disable resize.
Some OEMs may not want the PIP window to resize on touch; this is true
for those that ship only large-screen form factor devices, so the PIP
window is already big enough for the controls (e.g. ChromeOS).

Bug: 148083488
Test: Build, touch - PIP does not resize.
Change-Id: I997c3f428981aafda4b6cffece355ba0cfdac4e6
2020-02-25 15:57:26 -08:00
David Su
565f187c0e Settings: Rename NetworkSelectionStatus#getNetworkDisableReasonString
Renamed to getNetworkSelectionDisableReasonString
to be more descriptive.

Bug: 146046526
Test: compiles
Change-Id: Ib529413967d9ae008fa25196d52eb631e0c9b44c
2020-02-25 15:32:47 -08:00
David Su
e4956075da Rename NetworkSelectionStatus#getNetworkDisableReasonString
Renamed to getNetworkSelectionDisableReasonString
to be more descriptive.

Bug: 146046526
Test: compiles
Change-Id: I8d67906e31e66f4cf839be1637ecb6a58edbbc52
2020-02-25 15:32:43 -08:00
Beverly
080782fc7c Explicitly set READ_CONTACTS permission
The permission is being lost somewhere, so remove it from the manifest
and instead explicitly invoke the permission in the individual test
itself.

Test: atest SystemUITests
Fixes: 149740458
Change-Id: I1268ddd37d243735ff21e6761dbd59f43b3be0e2
2020-02-25 17:46:18 -05:00
Igor Murashkin
3fc5e2c322 startop: Fix scripts and add --reportfullydrawn
Fixes a bug in the scripts which prevented true cold starts from
happening (it was force-stopping the activity after the dropcaches).

Also adds -rfd/--reportfullydrawn to make rfd parsing optional since
most apps don't have it.

Bug: 150237362
Test: run_app_with_prefetch -r cold
Change-Id: I132bfc3ccd4d96f171ed364ef64387bbf2c78091
2020-02-25 14:30:45 -08:00
Muhammad Qureshi
97670d4492 Alternative to @hide FLAG_RECEIVER_INCLUDE_BACKGROUND
Implementing an alternative to sending broadcast with @hide flag
FLAG_RECEIVER_INCLUDE_BACKGROUND. Instead of using the flag, find the
list of registered broadcast receivers and send them directed broadcasts
to wake them up.

This follows the logic in ag/10055770

Bug: 149090705
Test: m
Test: fastboot flashall
Test: ensure broadcast is received by inspecting logcat
Change-Id: I978cd6481401eb68b26f482e19e412657a0da13c
2020-02-25 14:15:04 -08:00
Ryan Mitchell
93f2b3f9a2 Restore UnsupportedAppUsage method call
4579c0aea2 changed the method signature
of the constructor of ResourcesKey, which is marked
UnsupportedappUsage. Restore the previous signature and provide a new
constructor that is hidden.

Bug: 147359613
Test: none
Change-Id: I391167e9064b1d88f4ad75200a190e5e3b0968cf
2020-02-25 22:10:22 +00:00
shubang
82530bf904 Tuner API: Remove superclass Dvr
Bug: 149785982
Test: make;
Change-Id: I39721db253ec1212c5cd9774c8466afdf47799d2
2020-02-25 14:04:01 -08:00
Kweku Adams
969e1e2759 Merge "Allow location when Car mode is active." into rvc-dev 2020-02-25 21:52:27 +00:00
Trung Lam
9d298d4d7c Merge "Delete package directory when app is uninstalled." into rvc-dev 2020-02-25 21:43:03 +00:00
Daniel Bright
31952450ba Hide setPolicyDataEnabled
This method was made into a SystemApi for R since
Telephony was going mainline.  The Telephony team
has a more robust solution as other similar APIs were
needed.  Since we are not going mainline, it makes
the most sense to wait for full solution.

Bug: 148165897
Bug: 146654731
Test: make \ flash
Change-Id: I5b38694acf3887e4f3ea2ab725b57fe4be9d5626
2020-02-25 13:24:50 -08:00
Evan Rosky
73a7fe9479 Clean-up old docked-stack implementation from WM
Bug: 133381284
Test: Existing tests pass. Manually use sysui
Change-Id: I44155d74df1489fa391c60a05d1f8098986cefb7
2020-02-25 21:13:16 +00:00
Kevin Hufnagle
d697434fdc Merge "docs: Fix spelling of "environments"" into rvc-dev 2020-02-25 21:05:53 +00:00
Blake Kragten
ef0da07d27 Add Enhanced Connectivity To Backup Tests
Settings.Global.ENHANCED_CONNECTIVITY_ENABLED was not added to the
SettingsBackupTest.  Adding to test to fix android.provider.SettingsBackupTest#globalSettingsBackedUpOrBlacklisted

Bug: 150207643
Test: atest SettingsProviderTest
Test Result:
[1/107] android.provider.SettingsBackupTest#systemSettingsBackedUpOrBlacklisted: PASSED (26ms)
[2/107] android.provider.SettingsBackupTest#globalSettingsBackedUpOrBlacklisted: PASSED (0ms)

Change-Id: Ia5c225919c54594d17cbdfa4d8268be0aeb995b9
2020-02-25 12:56:14 -08:00
TreeHugger Robot
5a098f7775 Merge "Camera: Rename CameraActionEvent duration" into rvc-dev 2020-02-25 20:47:47 +00:00