summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2021-06-07Merge "Promote stable flicker tests (app launch)" into sc-devNataniel Borges
2021-06-04Merge "Promote stable flicker tests (rotation)" into sc-devNataniel Borges
2021-06-04Promote stable flicker tests (ime)Nataniel Borges
The tests have been stable since last week when the underlying bugs were closed. Bug: 185401242 Bug: 185400889 Test: atest FlickerTests:com.android.server.wm.flicker.ime Change-Id: I8cea435a9fa295626c45d9d11549c1a4d4f4e63b
2021-06-04Promote stable flicker tests (app launch)Nataniel Borges
The tests have been stable since last week when the underlying bugs were closed. Bug: 185401242 Bug: 185400889 Test: atest FlickerTests:com.android.server.wm.flicker.launch Change-Id: I8ef26ac7144766f7269bef2589842e07d098efc3
2021-06-04Promote stable flicker tests (rotation)Nataniel Borges
The tests have been stable since last weeks when the underlying bugs were closed. Bug: 185401242 Bug: 185400889 Test: atest FlickerTests:com.android.server.wm.flicker.rotation Change-Id: I4aa13016f214f99bcff5adcd98e71096eacada2d
2021-06-04Promote stable flicker tests (app close)Nataniel Borges
The tests have been stable since last weeks when the underlying bugs were closed. Bug: 185401242 Bug: 185400889 Test: atest FlickerTests:com.android.server.wm.flicker Change-Id: I6c99e84f0da01c122d8ff6a28eebbdb9bcc6582a
2021-05-25Remove underlying network capsBenedict Wong
This change removes unused fields in the persistable bundle and VcnGatewayConnectionConfig classes to ensure future flexibility. Bug: 182219992 Test: atest FrameworksVcnTests Change-Id: Ic2fec8a87fd19a1780333c61759c4092598d349e Merged-In: Ic2fec8a87fd19a1780333c61759c4092598d349e (cherry picked from commit 1f06b95c6288c317e302714f18b30d44b157ed77)
2021-05-25Merge changes I5ce7fe05,I2d5dc5b9,Ibcc4bdc0 into sc-devBenedict Wong
* changes: Add additional dump information for UnderlyingNetworkTracker Copy up/downstream bandwidth and TCP buffer sizes from underlying Prevent concurrent modification exceptions in VcnManagementService
2021-05-24Copy up/downstream bandwidth and TCP buffer sizes from underlyingBenedict Wong
This change copies the relevant pieces of information used to tune the system for performance Bug: 188943592 Test: atest FrameworksVcnTests Change-Id: I2d5dc5b9000fa9d0da9d34772b3704110694c526
2021-05-22Merge "Split flicker tests into groups" into sc-devTreeHugger Robot
2021-05-21Merge SP1A.210513.004Chris Gross
Change-Id: Ic23aece12c3bbd2b4dcf3205fdbcdd1601deabec
2021-05-20Split flicker tests into groupsNataniel Borges
The flicker test suite grew and now trigger a treehuger SLO violation. To address this problem create different groups for different tests using: --module-arg <TEST SUITE>:include-annotation:<GROUP> Where: <TEST SUITE> = FlickerTests or WMShellFlickerTests <GROUP> = com.android.server.wm.flicker.annotation.Group1 or com.android.server.wm.flicker.annotation.Group2 or com.android.server.wm.flicker.annotation.Group3 For example: 1) to run only tests in the first group in flicker use: `--module-arg FlickerTests:include-annotation:com.android.server.wm.flicker.annotation.Group1` 2) to run only the third group of tests from wmshell flicker: ``--module-arg FlickerTests:include-annotation:com.android.server.wm.flicker.annotation.Group3` Bug: 180620475 Test: atest FlickerTests WMShellFlickerTests with the respective parameters Change-Id: I82f668713ba262bafe2758e2c618bfc060cc2c8a
2021-05-19Make BackgroundDexOpt aware of thermal stateChris Wailes
This change makes the BackgroundDexOpt service consider the thermal state of the device before running. If the device is in a moderate thermal state or worse background dexopt will not run. Bug: 165935246 Bug: 181795682 Test: Treehugger && atest BackgroundDexOptServiceIntegrationTests Change-Id: Ie5ccbab7aa6d414241780136407f397d326340bf
2021-05-17Merge "Check mInputEventReceiver before sending timeline -- 2" into sc-devSiarhei Vishniakou
2021-05-14Merge "Make VcnTransportInfo unparcel to null if no data contained" into sc-devBenedict Wong
2021-05-14Make VcnTransportInfo unparcel to null if no data containedBenedict Wong
When VcnTransportInfo is redacted, it contains no useful information. In order to preserve the abstraction, the VcnTransportInfo should be unparcelled to null Bug: 8675309 Test: atest VcnTransportInfoTest Change-Id: Ia9dbb9f259027acc74004eb1207e0a13cea56088
2021-05-14Merge "Close FDs even when throwing SecurityException." into sc-devTreeHugger Robot
2021-05-13Close FDs even when throwing SecurityException.Kohsuke Yatoh
Bug: 187879195 Test: atest UpdatableSystemFontTest Change-Id: I34d04f152210fe2f89f4d96e920978dde21d06c8
2021-05-14Merge "Custom network selection" am: bc3638ce5d am: b3f0495383 am: 2a86eae65eBenedict Wong
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1706226 Change-Id: Icdf319d564e4eab468d9d4e722716a2ef7d2c3cd
2021-05-13Merge SP1A.210510.001Brian Orr
Change-Id: Ia86f3e18206beabe334e3081cedbaf5b3274f78e
2021-05-13Custom network selectionBenedict Wong
This change adds a basic prioritization framework in the VCN, and signal strength thresholds for WiFi. Bug: 188104094 Test: atest FrameworksVcnTests Change-Id: Iee4e3dbecf1102ddc127a8c8daf08a00b6fccbbd
2021-05-13Close FDs / mmap handles promptly.Kohsuke Yatoh
Currently we rely on GC to close them. This may cause system_server crash depending on the timing of GC. Bug: 187879195 Test: atest UpdatableSystemFontTest Change-Id: I09ac3f349e5ec100e4164320cbf27977474cc4bb
2021-05-13Make VcnTransportInfoTest pass on AOSP.Lorenzo Colitti
AOSP contains the core networking redaction changes, but not the wifi redaction changes, so the tests that depend on wifi S behaviour will not pass on AOSP. Fix testApplicableRedactions by checking that the applicable redactions are the same ones as returned by the underlying WifiInfo object. Fix testMakeCopyRedactForAccessFineLocation by testing the wifi redaction code iff Build.VERSION.SDK_INT is S or later. This is different from SdkLevel.isAtLeastS, because the latter returns true in AOSP. Bug: 183938194 Test: atest VcnTransportInfoTest Change-Id: Ia5bc896c92be19f570638f8051492e0f2d7342f9
2021-05-13Immediately redact VcnTransportInfo.Lorenzo Colitti
Redaction of NetworkCapabilities is changing from redacting at parcel time to redacting immediately when makeCopy() is called. Update VcnTransportInfo redaction accordingly. Bug: 183938194 Test: atest VcnTransportInfoTest Change-Id: I0c9406f426b66fd36b47d11799955def531c16ba
2021-05-13Move net unit tests to packages/ConnectivityRemi NGUYEN VAN
Move the tests together with packages/Connectivity code, so both can be moved to packages/modules/Connectivity together. Also reorganize unit tests in a unit/ directory, as other tests (integration/, common/ etc.) have been added in tests/net since they were created. This makes the directory structure consistent. Test: atest FrameworksNetTests Bug: 187814163 Merged-In: I254ffd1c08ec058d594b4ea55cbae5505f8497cc Change-Id: I254ffd1c08ec058d594b4ea55cbae5505f8497cc
2021-05-13Move net unit tests to packages/ConnectivityRemi NGUYEN VAN
Move the tests together with packages/Connectivity code, so both can be moved to packages/modules/Connectivity together. Also reorganize unit tests in a unit/ directory, as other tests (integration/, common/ etc.) have been added in tests/net since they were created. This makes the directory structure consistent. Test: atest FrameworksNetTests Bug: 187814163 Ignore-AOSP-First: needs per-branch move for merge conflicts Change-Id: I254ffd1c08ec058d594b4ea55cbae5505f8497cc
2021-05-13Merge "Add testVpnTypesEqual to verify consistency" am: 785dc4871c am: ↵Ken Chen
3ae939569e am: 233682e675 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1705385 Change-Id: I53d58c5b2277ba2d88a848ed3e6d6269b4b886b3
2021-05-13Merge "Switch from networkCreate[Physical/Vpn] to networkCreate" am: ↵Ken Chen
c9d5cd9fbc am: 62258932ff am: a4d53bfa6d Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1669648 Change-Id: I3475e674c3914c4c61fd0a4246c9ee3e7e02c4fb
2021-05-13Merge "Add testVpnTypesEqual to verify consistency"Ken Chen
2021-05-13Merge "Switch from networkCreate[Physical/Vpn] to networkCreate"Ken Chen
2021-05-12Merge changes I4b135749,If4fcaa52 am: 576dad4673 am: cd4e6ae6d6 am: 5cdc27d2acCody Kesting
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1704175 Change-Id: I7d636497dbc26008e659495e4236f161c90599ab
2021-05-12Merge changes I4b135749,If4fcaa52Cody Kesting
* changes: Restructure Test Network requests for VCN connections. Correct variable name in VcnManagementService.
2021-05-12Merge changes from topic "transportinfo-explicit-redaction" into sc-devLorenzo Colitti
* changes: Immediately redact VcnTransportInfo. Do not automatically redact TransportInfo objects.
2021-05-12Merge changes Icb59b15d,I6fc6a266,I5cc340e5,I94db52a8 am: b79dcb24d0 am: ↵Treehugger Robot
5804521e8c am: 32c2d34383 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1700309 Change-Id: Ifab0469fb2687cae7b361b5009abe152a35048c5
2021-05-12Merge "Update PrivateDnsMode from StringDef to IntDef"Lucas Lin
2021-05-12Merge changes Icb59b15d,I6fc6a266,I5cc340e5,I94db52a8Treehugger Robot
* changes: Request Test Networks for VCNs when in Test Mode. Specify if a VCN is in 'test-mode' in VcnContext. Create test-mode for VcnConfig. Require MOBIKE for IkeSessionParams in VCN configs.
2021-05-12Merge "Add MATCH_ANY_USER flag to PackageInfo queries" am: 68301eb7cb am: ↵Paul Hu
2b0351ce1e am: 168172c2c0 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1689207 Change-Id: Ie3dd72aa4b8166198884f348f59c77befc229dc0
2021-05-12Add testVpnTypesEqual to verify consistencyKen Chen
VPN types are defined in both VpnManager.java and NativeVpnType.aidl. The definitions on both sides should match (except TYPE_VPN_NONE). VpnManager.java: TYPE_VPN_NONE = -1 TYPE_VPN_SERVICE = 1 TYPE_VPN_PLATFORM = 2 TYPE_VPN_LEGACY = 3 TYPE_VPN_OEM = 4 NativeVpnType.aidl: SERVICE = 1 PLATFORM = 2 LEGACY = 3 OEM = 4 Bug: N/A Test: atest android.net.VpnManagerTest#testVpnTypesEqual Change-Id: Ie618e227d861100c5318da696140e486af1093a0
2021-05-12Merge "Remove sendNetworkConditionsBroadcast"Chiachang Wang
2021-05-12Merge "Rename unwanted capabilities to forbidden capabilities."Lorenzo Colitti
2021-05-12Merge "Add MATCH_ANY_USER flag to PackageInfo queries"Paul Hu
2021-05-11Restructure Test Network requests for VCN connections.Cody Kesting
This CL restructures the NetworkRequests used for TestNetworks in UnderlyingNetworkTracker to clearly show that they only require TRANSPORT_TEST and the relevant subIds. Bug: 182291467 Test: atest FrameworksVcnTests CtsVcnTestCases Change-Id: I4b135749fdde9f91c66b87b1ded921700e6440fd
2021-05-11Request Test Networks for VCNs when in Test Mode.Cody Kesting
This CL updates UnderlyingNetworkTracker to request Test Networks for route selection when the VCN it is tracking for is in test-mode. Bug: 182291467 Test: atest FrameworksVcnTests CtsVcnTestCases Change-Id: Icb59b15df61ec43fe76e250977a985caa6a1dffc
2021-05-11Specify if a VCN is in 'test-mode' in VcnContext.Cody Kesting
This CL updates VcnContext to include whether the VCN instance it is created for is in test-mode (as specified by the VcnConfig). This also changes the lifetime of VcnContext to be created uniquely for each VCN instance (as opposed to a single VcnContext created in VcnManagementService and used for all VCNs). Bug: 182291467 Test: atest FrameworksVcnTests CtsVcnTestCases Change-Id: I6fc6a266bf67ab2aa64202153c3c109ee98a16ca
2021-05-11Create test-mode for VcnConfig.Cody Kesting
This CL creates a test-mode for VcnConfig so that they will only match with Test Networks. This is necessary for CTS testing so that VCNs can run on test networks and IKE negotiations can be injected over the Test Networks. Bug: 182291467 Test: atest FrameworksVcnTests CtsVcnTestCases Change-Id: I5cc340e5aaa34c5de8efafa52de49185a18d4bd3
2021-05-11Require MOBIKE for IkeSessionParams in VCN configs.Cody Kesting
This CL updates VcnGatewayConnectionConfigs to require IkeTunnelConnectionParams with MOBIKE enabled for the IkeSessionParams. This is necessary for VCNs - without it, they do not support IPsec mobility (one of the main features of the VCN). Bug: 187851560 Test: atest FrameworksVcnTests CtsVcnTestCases Change-Id: I94db52a8c42d9fa4681fefb8f787f006933caa18
2021-05-11Immediately redact VcnTransportInfo.Lorenzo Colitti
Redaction of NetworkCapabilities is changing from redacting at parcel time to redacting immediately when makeCopy() is called. Update VcnTransportInfo redaction accordingly. Bug: 183938194 Test: atest VcnTransportInfoTest Change-Id: I0c9406f426b66fd36b47d11799955def531c16ba
2021-05-11Do not automatically redact TransportInfo objects.Lorenzo Colitti
Currently, NetworkCapabilities always redacts the TransportInfo objects it contains whenever a defensive copy is made. This makes it impossible to make a defensive copy on a TransportInfo parcelled from another process without redacting it. Stop redacting by default; instead rely on ConnectivityService explicitly calling NetworkCapabilities' redacting constructor when it returns a NetworkCapabilities object to an app via a callback or synchronous call. This is currently done by - createWithLocationInfoSanitizedIfNecessaryWhenParceled, which is called from callCallbackForRequest, getNetworkCapabilities, and getDefaultNetworkCapabilitiesForUser. - getNetworkCapabilitiesWithoutUids, which is used when sending ConnectivityDiagnosticsManager callbacks. In this method, unconditionally redact all information, which is what the code did previously due to the default redaction setting for empty NetworkCapabilities objects being REDACT_ALL. Bug: 183938194 Test: atest NetworkCapabilitiesTest Test: atest FrameworksNetTests CtsNetTestCases HostsideVpnTests Change-Id: I3108ee94cb0930958e071ba678c3554525b0db82
2021-05-11Rename unwanted capabilities to forbidden capabilities.Lorenzo Colitti
Addresses API council feedback. Bug: 184890428 Test: atest FrameworksNetTests CtsNetTestCases Test: atest CtsNetTestCasesLatestSdk:NetworkCapabilitiesTest on R device Change-Id: Id7c68fbf56ee08fcad8e8e3aacf037fa1885936b
2021-05-11Switch from networkCreate[Physical/Vpn] to networkCreateKen Chen
networkCreatePhysical and networkCreateVpn are non-extensible. In order to pass OEM requested VPN type to Netd, we need to migrate to networkCreate API. Modify test code accordingly since networkCreatePhysical and networkCreateVpn have been deprecated on Netd. Bug: 171872481 Test: atest FrameworksNetTests atest atest HostsideVpnTests Change-Id: I50ab8615346c49559c16e815482e7804a1e765c8