Commit Graph

468727 Commits

Author SHA1 Message Date
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
Jooyung Han
c46bf0786c Merge "tethering: transitive deps from jni_libs" into rvc-dev 2020-02-26 14:03:39 +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
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
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
Blake Kragten
bdfcea3440 Merge "Add Enhanced Connectivity To Backup Tests" into rvc-dev 2020-02-26 01:01:43 +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
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
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
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
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
Mathieu Chartier
5c8a5051b3 Use shell commands instead of ITestDevice for BootImageProfile test
For some reason, ITestDevice property getting and setting is flaky on
GCE. This causes frequent test failures.

(cherry-picked from commit 94d9a21ccb)

Test: tested on cuddlefish device
Bug: 149802360

Merged-In: Iba48c173bdea2d55d8f2aa7f0fa382628582fe1c
Change-Id: Iba48c173bdea2d55d8f2aa7f0fa382628582fe1c
2020-02-25 12:44:02 -08:00
Mathieu Chartier
75446bc101 Make BootImageProfileTest less flaky
Use the system properties instead of phenotype since GMS can change the
values more arbitrarily for PH properties.

Test: manual
Bug: 149645847

(cherry-picked from commit 599079b381)

Merged-In: If0a716075597f45e95b8357480e4b4a7c52fbb2a
Change-Id: If0a716075597f45e95b8357480e4b4a7c52fbb2a
2020-02-25 12:41:38 -08:00
TreeHugger Robot
10398d29f3 Merge "Atom for when fgs accesses appop" into rvc-dev 2020-02-25 19:59:16 +00:00
Evan Rosky
55bddd83ea Generalize change transition into WindowContainer
Created a SurfaceFreezer class which lives in WindowContainer
and manages/will-manage per-container freezing (snapshots).
This replaces the one-off change transition code.

Change Transitions used to create its own temporary leash
on initialization and that leash would be replaced/cleaned-up
as soon as the animation leash was created.

Now, the SurfaceFreezer creates the animation leash immediately
and SurfaceAnimator can take a SurfaceFreezer instance when it
starts an animation. At this point it will take the leash that
was already created by the freezer and use that. This removes
the messy reparenting/cleanup.

To deal with this, though, leash callbacks into Animatable
needed an extra stage: onLeashAnimationStarting. This is called
when SurfaceAnimatior is actually starting to animate the leash.

Next, DC.mChangingApps was converted to list of WindowContainers
rather than ActivityRecords. Some of the existing change code was
cleaned up (ie. there was some visibility stuff that doesn't make
sense because changing apps are visible->visible) and some of the
Activity-specific functions were generalized. For now, there are
a couple things that use the top-activity for changing Tasks.

The result of this means that windowing-mode change transition can
now fully live at the Task level. This also should allow freezing
at any hierarchy level which enables app-freezes that don't freeze
the whole screen and potentially mixed seamless/snapshot-based
rotations.

Bug: 149490428
Test: existing tests pass. Manually open app in freeform and
      maximize/restore it.
Change-Id: Ib32524ebbbb084a98442d3d035897306a11ee6c2
(cherry picked from commit e55b9e0f9d)
2020-02-25 11:51:36 -08:00
TreeHugger Robot
5291e518a4 Merge "Populate uniq field in uhid." into rvc-dev 2020-02-25 19:39:47 +00:00
TreeHugger Robot
7973854504 Merge "Fix widget restore flow" into rvc-dev 2020-02-25 19:31:08 +00:00
TreeHugger Robot
0253cc8f2f Merge changes from topics "input_events_id", "wire_input_event_id" into rvc-dev
* changes:
  Send input event ID in InputEventSender.
  Add ID to InputEvent.
2020-02-25 19:20:17 +00:00
TreeHugger Robot
6d03d973c0 Merge "Fix SecurityControllerTest" into rvc-dev 2020-02-25 19:08:38 +00:00
Fabian Kozynski
0fcf7f11a7 Merge "Prevent early destroying HotspotTile" into rvc-dev 2020-02-25 19:03:54 +00:00
Julia Reynolds
3e4c88087d Merge "Add owners file Fixes: 150217454" into rvc-dev 2020-02-25 18:54:45 +00:00
Julia Reynolds
36ff1ea03f Add owners file
Fixes: 150217454

Change-Id: I80e624dd3de150cbf1cf50465cadb676256a4063
2020-02-25 18:54:36 +00:00
TreeHugger Robot
a074a4b230 Merge "Removed permission check" into rvc-dev 2020-02-25 18:51:58 +00:00
Song Pan
85bdb47bcb Catch all exception from statusReceiver.sendIntent.
Any exception here (e.g., NPE) will crash the entire system process.

Bug: 150217444
Test: atest AppIntegrityManagerServiceImplTest
Change-Id: I86eaa0bf7cb9d39fb23ee6aa71e80547bb95cc7e
(cherry picked from commit 1787f31065)
2020-02-25 18:50:54 +00:00
Hui Yu
5c8ceade92 Exempt callingUid that has START_ACTIVITIES_FROM_BACKGROUND
permission.

From background FGS while-in-use permission restriction.

Bug: 149835015, 136219221
Test: adb shell dumpsys activity -a
Change-Id: I1a23689a2939d15101a1d8bb21a85fc9a9cca31f
(cherry picked from commit d731201cac)
2020-02-25 18:40:45 +00:00
Kevin Han
a052c0ca0b Fix inflating content views after removal
Fix a crash with NotifBindPipeline where we try to inflate a group child
after it's removed. This is due to some edge case logic where we delay
view hierarchy updates til later (i.e. after the notification is
removed) and inflation logic and group change logic being precedented on
view hierarchy changes.

This fixes that by checking if the row is already removed in order to
stop inflation. We add a similar check for redaction since that is
similarly triggered at the view hierarchy stage.

Bug: 149989491
Test: Repro from bug
Change-Id: I42114bcdaf0d135bcbb68f0b634b77252ea7b8b0
2020-02-25 18:40:10 +00:00
TreeHugger Robot
2c89e32d34 Merge "Make MediaParser match ExoPlayer's sniffing order" into rvc-dev 2020-02-25 18:30:35 +00:00
Peter Kalauskas
81a320279e Merge changes from topic "new-task-snapshots-rvc-dev" into rvc-dev
* changes:
  Disable reduced scale if reduced scale config is 0
  Store original task width and height instead of scale
2020-02-25 18:29:50 +00:00
TreeHugger Robot
7def6932cb Merge "Tablet-specific UI updates to user switcher. DO NOT MERGE" into rvc-dev 2020-02-25 18:24:59 +00:00