Commit Graph

7562 Commits

Author SHA1 Message Date
TreeHugger Robot
119ddcca6b Merge "USB: Add test for UsbManager APIs" 2019-12-24 00:53:50 +00:00
TreeHugger Robot
a50f8e9a99 Merge "Disable verifying apk installed from adb" 2019-12-20 20:49:20 +00:00
Victor Hsieh
660c5eee79 Disable verifying apk installed from adb
Without this change, the verifier may hold the fd of installed apk and
prevents the cache eviction. The existing retry loop up to 5 seconds is
not sufficient.

Also removed an obsolete verifier setting.

Test: com.android.apkverity.ApkVerityTest#testInstallSplitOnly succeeded
      100% (75+ times).
Bug: 146350859

Change-Id: Ia7d42ab6efcb42de83626f1d63bff5a8adc6c1a6
2019-12-20 11:20:44 -08:00
markchien
ae8aa646dc [Tether13] Move TetheringManager into framework
Move tethering out of ConnectivityService. All client would
use TetheringManager to talk with TetheringService directly.

Bug: 144320246
Test: -build, flash, boot
      -atest TetheringTests

Change-Id: Ib051bea724a256f9c4572b566e46ae7b9c4abe6e
2019-12-20 10:31:31 +08:00
Automerger Merge Worker
bed24cb825 Merge "Fix parceling of LinkProperties Inet6Addr" am: 7382f03d58 am: 50fb44e776 am: 091f1d790c
Change-Id: I6692a91c3e00fb8726ed4914f7d7e3c22874a068
2019-12-19 03:46:11 +00:00
Automerger Merge Worker
091f1d790c Merge "Fix parceling of LinkProperties Inet6Addr" am: 7382f03d58 am: 50fb44e776
Change-Id: Ie5b7782d788717dd1cc440e502d6cdf2d1c18eaa
2019-12-19 03:29:50 +00:00
Remi NGUYEN VAN
f705ea69dc Fix parceling of LinkProperties Inet6Addr
IPv6 addresses parceled for DNS servers, private DNS servers, PCSCF
servers were parceled without the scope. This causes issues with
link-local DNS servers.

Test: atest FrameworksNetTests
Bug: 145181158
Change-Id: I0ed24e51d4d0656f4a1f932b5e9f646b35b4b971
2019-12-18 19:52:30 +09:00
JW Wang
f0d7ef4931 Merge "Check the white list to decide whether to enable rollback (2/n)" 2019-12-18 01:56:28 +00:00
Aaron Huang
e6a18182ce Merge "Add keepalive related methods and fields to system APIs" 2019-12-17 13:57:13 +00:00
JW Wang
9b51b7319c Check the white list to decide whether to enable rollback (2/n)
Bug: 144680850
Test: atest RollbackTest StagedRollbackTest
Change-Id: I4b6b42d6a0fce836d7ebaca8bcde8c837c086e9b
2019-12-17 10:29:30 +08:00
Pavel Grafov
34a894dc5d Disable package verifier in stress test.
This makes this closer to CTS test conditions and also prevents
package install timeouts if something is wrong with the verifier.

Bug: 141115315
Test: atest ManagedProfileLifecycleStressTest
Change-Id: I8ff11d8f8bb5752bb93f06696df84849faaf23b9
2019-12-16 19:07:21 +00:00
Jing Ji
8412131362 Add performance test for OomAdjuster
Bug: 140254153
Test: atest -c ActivityManagerPerfTests:OomAdjPerfTest#testOomAdj
Change-Id: Id12667c71300e6fe4dc063c83807834bbdb5e62a
2019-12-13 14:51:41 -08:00
James Wei
8bc4c23906 USB: Add test for UsbManager APIs
Make sure UsbManager APIs could only be accessed with required permission

Bug: 142372304
Test: atest UsbTests
Test: atest UsbManagerTests
Test: Forrest (L06700000406507070)
Change-Id: Ibe3337aaa965ba670c3ac363299612f367231f05
2019-12-13 15:49:09 +00:00
Aaron Huang
17c660dfeb Add keepalive related methods and fields to system APIs
Add KeepalivePacketData to system API for mainline support.
Also, remove InvalidPacketException class from SocketKeepalive
and create a new InvalidPacketException class in android.net

Bug: 139268426
Bug: 135998869
Bug: 138306002
Test: atest FrameworksNetTests
      atest NetworkStackTests
      atest FrameworksTelephonyTests
      ./frameworks/opt/net/wifi/tests/wifitests/runtests.sh
      atest android.net.cts
      atest android.net.wifi.cts
      atest android.telephony.cts

Change-Id: I2d982e8abb5cb6b4c74a20483550b18cf814320d
2019-12-13 23:05:37 +08:00
TreeHugger Robot
81826ce75f Merge "Make sure test APK is build when test is run via test mapping" 2019-12-12 17:49:51 +00:00
TreeHugger Robot
a224f35394 Merge "Add missing test dependencies for ApkVerityTest" 2019-12-12 16:56:36 +00:00
Pavel Grafov
e0ba4aaf1c Make sure test APK is build when test is run via test mapping
Currently the test runs fine with atest locally, but fails in CI
with "TargetSetupError: DummyDPC.apk not found". With test_suites
it will be packaged and should be available in CI as well.

Bug: 141115315
Test: atest -c ManagedProfileLifecycleStressTest
Change-Id: I5e7138a6e1642cca1627060d76dd0c078c4f96f6
2019-12-12 16:25:28 +00:00
Gavin Corkery
f9b3fd49c4 Move native crash detection to Package Watchdog
For the sake of consolidating various error detection mechanisms,
move native crash detection to Package Watchdog. Add a method
to allow the traditional threshold logic to be bypassed in this
case. This method will be used in the future for prioritizing
explicit health check failures.

Test: atest StagedRollbackTest#testNativeWatchdogTriggersRollback
Bug: 145584672
Change-Id: I98eb9f45a6f4a6d15001650e31ba9c596905663a
2019-12-12 11:48:45 +00:00
Ram Muthiah
637138dd94 Revert "Overlay, actor, and target app visibility handling"
This reverts commit 3f46dbd7a0.

Bug: 146018363
Test: Treehugger
2019-12-11 17:37:37 -08:00
Ram Muthiah
a4bb0444d9 Revert "Fix WmTests presubmit failure"
This reverts commit f0385c5ad3.

Bug: 146018363
Test: Treehugger
2019-12-11 17:37:00 -08:00
Victor Hsieh
aa3b5d945f Add missing test dependencies for ApkVerityTest
By keeping block_device_writer_module in target_required, it avoids
build error of "missing variant: os:linux_glibc, arch:common", while
the test still run on forrest.

Test: forrest
Test: lunch flame-eng; atest ApkVerityTest
Test: lunch aosp_x86_64-eng; m ApkVerityTest
Bug: 112039386
Change-Id: I9cfa0928941b008e23c2a32bb47dae5369bd3201
2019-12-11 14:25:32 -08:00
Mohammad Samiul Islam
83d3a5d4f1 Merge changes from topic "native-crash"
* changes:
  Mitigate native crash without depending on ModuleMetaData
  Rollback everything that is available when crash is unattributable
2019-12-11 12:40:14 +00:00
Mohammad Samiul Islam
a3f650dc8d Mitigate native crash without depending on ModuleMetaData
Mitigation attempts should be made whenever rollbacks are available.

Bug: 141843321
Test: atest StagedRollbackTest#testNativeWatchdogTriggersRollback
Change-Id: I2dde8c6415191ff3787a82ea3abc0fcc9a3cd7b1
2019-12-11 09:43:54 +00:00
Victor Hsieh
c84d102307 Rename ApkVerityTests to ApkVerityTest for consistency
This also makes TEST_MAPPING work.

Test: atest com.android.apkverity.ApkVerityTest
Test: atest -p frameworks/base/tests/ApkVerityTest:presubmit
Bug: 112039386
Change-Id: I721285770208b2a1b18ead2fa34c43e9e8bc0c46
2019-12-10 16:14:37 -08:00
Louis Chang
f0385c5ad3 Fix WmTests presubmit failure
Adding another library that excludes mockito for WmTests to avoid
conflicting with extended-mockito.

Test: presubmit pass
Change-Id: If3f6d7a2ac52d3e8f72e9cbc88e54f0c4d4c47ce
2019-12-10 18:33:57 +08:00
TreeHugger Robot
3d2ab0fe57 Merge "Add TEST_MAPPING for ApkVerityTest" 2019-12-10 00:33:57 +00:00
Winson Chiu
26fea7259f Merge "Overlay, actor, and target app visibility handling" 2019-12-09 23:50:31 +00:00
Victor Hsieh
9ec5022b43 Add TEST_MAPPING for ApkVerityTest
Test: atest -p frameworks/base/tests/ApkVerityTest:presubmit
Bug: 112039386
Change-Id: Ic814bc5e5c51e581684968f8f20632a4fbffc8f4
2019-12-09 14:59:00 -08:00
Winson
3f46dbd7a0 Overlay, actor, and target app visibility handling
Hooks AppsFilter to support exposing a target and any overlays
targeting it to the actor specified in its overlayable block.

Sacrifices some install-time performance in favor of less memory
usage and easier to follow code by doing a full search/rebuild
on each change.

Benchmarks TBD

Bug: 143096091

Test: atest OverlayReferenceMapperTests

Change-Id: Ic832818b9aa383f1167ca3e69a11b8459fa9db97
2019-12-09 10:46:59 -08:00
Gavin Corkery
654af7615b Merge changes from topic "log-watchdog-reason"
* changes:
  Log watchdog-initiated rollback reason
  Add package failure flags to Package Watchdog
2019-12-09 18:01:13 +00:00
Jorim Jaggi
1473439a19 Merge "Automatically clean up flicker test data" am: d915fc7025 am: ade366490a
am: 2d3934fcaa

Change-Id: I1a2be40c54e4025d4c160e2f6beaa61aa1eb51db
2019-12-09 06:32:34 -08:00
Jorim Jaggi
2d3934fcaa Merge "Automatically clean up flicker test data" am: d915fc7025
am: ade366490a

Change-Id: Ic54a3ac9393c9ac613558f3ce3829140828f3629
2019-12-09 06:28:35 -08:00
Jorim Jaggi
d915fc7025 Merge "Automatically clean up flicker test data" 2019-12-09 14:14:54 +00:00
Gavin Corkery
f305f4def0 Add package failure flags to Package Watchdog
This is a prerequisite for adding additional logging of
the Watchdog-triggered rollback reason. Add flags which
indicate the failure observed (native, crash, ANR, explicit
health check). These will be used in the future by
RollbackPackageHealthObserver to map the failure type to the
(new) set of available logging metrics.

Test: atest PackageWatchdogTest
Bug: 138782888
Change-Id: I7e7c5e5399011e2761dada2b989a95c2013307e9
2019-12-09 10:40:00 +00:00
TreeHugger Robot
a77b723e8b Merge "Managed profile creation/deletion stress test." 2019-12-04 20:35:28 +00:00
Automerger Merge Worker
e9d2fd2e43 Merge changes Ie756b9aa,I38110f3a am: 87bf9bc09c am: c823b4d1b5
Change-Id: I884650a0a0fbf1a96f81ca927886eb2a563f4e28
2019-12-04 19:56:21 +00:00
Pavel Grafov
56b8653b74 Managed profile creation/deletion stress test.
This test duplicates UserLifecycleStressTest to a degree, but it is
implemented as a host side test and is not subject to device test
timeout.

Bug: 141115315
Test: atest ManagedProfileLifecycleStressTest
Change-Id: I680a2f6965a49ba81b48591e4dcabc87091ac860
2019-12-04 18:55:36 +00:00
Paul Hu
973a925ff9 Merge "Replace the permission of internal connectivity checks" am: 6be69420df
am: 3256e731e3

Change-Id: I461936789b24940cc81146e9d0fc6c4c455206ed
2019-12-04 08:51:28 -08:00
Chalard Jean
c823b4d1b5 Merge changes Ie756b9aa,I38110f3a am: 87bf9bc09c
am: d71f1f5d62

Change-Id: I8695507cb084a198308b5765bc8fb873ca3f6a30
2019-12-04 08:50:54 -08:00
Nataniel Borges
9f2ad75a6e Automatically clean up flicker test data
Currently the flicker tests leave data on the /sdcard/flicker directory. We now clean up this data after the test.

The logs are still available in the atest results directory.

Test: atest FlickerTests
Change-Id: Ia83cbedff3104964e3d4be14a7c035f2193d36a8
2019-12-04 10:38:42 +01:00
Paul Hu
6be69420df Merge "Replace the permission of internal connectivity checks" 2019-12-04 05:59:59 +00:00
Paul Hu
d1fa427d41 Merge "Replace the permission of internal connectivity checks" 2019-12-04 05:52:01 +00:00
paulhu
a6af6b6c2a Replace the permission of internal connectivity checks
A number of connectivity checks that protect system-only methods
check for CONNECTIVITY_INTERNAL, but CONNECTIVITY_INTERNAL is a
signature|privileged permission. We should audit the permission
checks, and convert checks that protect code that should not be
called outside the system to a signature permission. So replace
all CONNECTIVITY_INTERNAL to other proper permissions.

Bug: 32963470
Test: atest FrameworksNetTests NetworkPolicyManagerServiceTest
Change-Id: I8f2dd1cd0609056494eaf612d39820e273ae093f
2019-12-04 11:45:51 +08:00
paulhu
59148b7938 Replace the permission of internal connectivity checks
A number of connectivity checks that protect system-only methods
check for CONNECTIVITY_INTERNAL, but CONNECTIVITY_INTERNAL is a
signature|privileged permission. We should audit the permission
checks, and convert checks that protect code that should not be
called outside the system to a signature permission. So replace
all CONNECTIVITY_INTERNAL to other proper permissions.

Bug: 32963470
Test: atest FrameworksNetTests NetworkPolicyManagerServiceTest
Change-Id: I8f2dd1cd0609056494eaf612d39820e273ae093f
Merged-In: I8f2dd1cd0609056494eaf612d39820e273ae093f
2019-12-04 11:44:45 +08:00
Treehugger Robot
87bf9bc09c Merge changes Ie756b9aa,I38110f3a
* changes:
  [NS A19] Inline updateCapabilities in rematch.
  [NS A18] Reverse listens and request-availables
2019-12-04 02:07:45 +00:00
Treehugger Robot
2b65793cd6 Merge "Merge Android10 QPR1 into AOSP master" 2019-12-03 23:15:02 +00:00
TreeHugger Robot
0943c4fad4 Merge "Implement a new Shader API, which can run custom code on GPU" 2019-12-03 17:59:59 +00:00
Automerger Merge Worker
a03f587746 Merge "Disable a flaky test" am: 932dda858a am: af0c7991ee
Change-Id: Ia3596b558fb09600e7d9a16f0dce03d4402ee653
2019-12-03 16:51:32 +00:00
Stan Iliev
6867fc8778 Implement a new Shader API, which can run custom code on GPU
Add RuntimeShader hidden API, which calculates pixel output with
a fragment shader running on GPU.
Extend ColorFiltersMutateActivity HWUI test to use new API and
show how to animate uniforms on UI thread.

Test: Updated HwAccelerationTest
Change-Id: Ia26e44259b12099924facba250880cbbd9be21c7
2019-12-03 11:38:29 -05:00
Chalard Jean
af0c7991ee Merge "Disable a flaky test" am: 932dda858a
am: a0535327df

Change-Id: Ie1fccb536e6df45491139ead179e8f5c2127d98f
2019-12-03 08:38:00 -08:00