Commit Graph

73410 Commits

Author SHA1 Message Date
Robin Lee
1704e95027 Revert "Move device/google/atv overlays into SystemUI"
Revert "Remove device/google/atv/overlay"

Revert "Remove device/google/atv overlay from RRO exclusion"

Revert submission 1510032-atv-rro

Reason for revert: b/178396156
Reverted Changes:
If9a99f850:Move keyguard enabled to Component Override
I1b0056b50:Make device/google/atv compatible with RRO
If766a0152:Remove device/google/atv overlay from RRO exclusio...
I9df2747d9:Remove device/google/atv/overlay
If689c72c2:Move device/google/atv overlays into SystemUI

Change-Id: I13d9670e41d408e7d4d3bf7a1e1408c083642721
2021-01-25 19:23:54 +00:00
Robin Lee
d3b506c464 Revert "Move keyguard enabled to Component Override"
Revert "Remove device/google/atv/overlay"

Revert "Remove device/google/atv overlay from RRO exclusion"

Revert submission 1510032-atv-rro

Reason for revert: b/178396156
Reverted Changes:
If9a99f850:Move keyguard enabled to Component Override
I1b0056b50:Make device/google/atv compatible with RRO
If766a0152:Remove device/google/atv overlay from RRO exclusio...
I9df2747d9:Remove device/google/atv/overlay
If689c72c2:Move device/google/atv overlays into SystemUI

Change-Id: I05f42caf8614c2c19ba5a33ec965843cc37cde98
2021-01-25 19:23:54 +00:00
Robin Lee
03ec0d0492 Move keyguard enabled to Component Override
When using RROs, android:enabled="@bool/form_factor_flag" won't work any
more. So we need to use a component override flag per b/135048762.

Test: Flash an adt3 with RRO enabled. see that systemui is coming up.
Bug: 173138807
Change-Id: If9a99f850ebb34755b4146b786c189f9fb590c3d
Merged-In: If9a99f850ebb34755b4146b786c189f9fb590c3d
2020-11-24 18:09:49 +01:00
Robin Lee
dfb7ca6157 Move device/google/atv overlays into SystemUI
There was no need for a separate RRO for this. Television UI mode covers
everything needed for a default TV overlay.

Test: make dist
Bug: 173138807
Merged-In: If689c72c22e140a142d86861b3273b40de3a6496
Change-Id: If689c72c22e140a142d86861b3273b40de3a6496
2020-11-24 18:09:02 +01:00
Jiwon Kim
bdabd396f4 Fixed Handler Leak on DistanceClassifier
A VelocityTracker object is not recycled in case of motionEvents.size()<3 at calculateDistances function.

private DistanceVectors calculateDistances() {
    // This code assumes that there will be no missed DOWN or UP events.
    VelocityTracker velocityTracker = VelocityTracker.obtain();
...
    if (motionEvents.size() < 3) {
        logDebug("Only " + motionEvents.size() + " motion events recorded.");
        return new DistanceVectors(0, 0, 0, 0);
	}
...
}

Test: Manual

Signed-off-by: Jiwon Kim <jiwon88.kim@samsung.com>
Change-Id: Ifca0c25411f56a4de79d89d262d2b4e61045a8ed
2020-11-24 10:56:59 +09:00
Sarah Chin
cafa63af2b Expose PinResult and ICC PIN/PUK APIs as SystemApi
Test: atest TelephonyManagerTest
Fix: 171884262
Change-Id: I9cdc11c49e4ca602cfa1464e5f424c4a96798cfe
Merged-In: I9cdc11c49e4ca602cfa1464e5f424c4a96798cfe
2020-11-20 15:18:03 -08:00
Sarah Chin
c6481cce40 Replace IconIndex as DisplayNumber
Test: atest TelephonyManagerTest
Fix: 171770692
Change-Id: I256649ad0ddcada29e4a7012de3e5889348adb17
Merged-In: I256649ad0ddcada29e4a7012de3e5889348adb17
2020-11-19 02:02:04 -08:00
Sarah Chin
1b48e894c5 Expose CDMA ERI API
Also remove CdmaEriInformation class, since it's not necessary to expose
the entire class.

Test: atest TelephonyManagerTest
Bug: 170421676
Change-Id: I810a492330e82f47949826a4b127164a5b950702
Merged-In: I810a492330e82f47949826a4b127164a5b950702
2020-11-19 01:54:57 -08:00
Isak Lilja
36003d29f4 [DO NOT MERGE] Use loadDrawableAsUser in MediaDataManager
This fixes a SystemUI loopcrash when casting as a guest user.

Bug: 173026465
Test: Manual - install media app that can cast on guest user only,
      then cast from guest user.  SystemUI should not crash.
Test: atest com.android.systemui.media
Change-Id: I70f5de89a813c54a616eb701a02aa43272754580
2020-11-12 23:50:37 +00:00
Tobias Thierer
107c4a524e Fix malformed OWNERS.
Per go/android-owners, include directions should be of the form
[gerrit_project_name]:[absolute_path_to_included_file].

Exempt-From-Owner-Approval: Only editing OWNERS file that ought
to be owned by ourselves, anyway.

Bug: 159055442
Test: Treehugger
Change-Id: I4238c3b0895819a96ca5ab0151f772ecdde588ff
2020-11-11 20:45:39 +00:00
Treehugger Robot
387cf5e127 Merge "Fix anr when installing package" 2020-11-05 18:55:11 +00:00
Bill Yi
f2d4156f5b Merge rvc-release RP1A.201105.002 to aosp-master - DO NOT MERGE
Merged-In: Ic1e07d28a41eea2ce59cc21702dae95d61adc24e
Change-Id: Ibc69b3e372167485bb70ae3277222bbe8ef7ff27
2020-11-04 13:57:54 -08:00
Fabian Kozynski
344fb48d8e Merge "Prevent guest user from toggling mobile data Quick Setting" 2020-11-03 21:21:39 +00:00
Torbjorn Eklund
376060d1d7 Prevent guest user from toggling mobile data Quick Setting
Prevents the guest user from toggling mobile data on/off by using the
mobile data quick setting.

The guest user is not able to access the network settings menu where
mobile data is usually toggled. The guest user should therefore not be
able to toggle mobile data on/off by using quick settings.

Bug: 150262422
Test: atest SystemUITests
Change-Id: I24262d4580fa5d7414d5d3e7e0e42873432ab74f
Merged-In: I24262d4580fa5d7414d5d3e7e0e42873432ab74f
2020-11-03 19:53:58 +00:00
Treehugger Robot
68b50f127f Merge "Add QUERY_ALL_PACKAGES permission to VpnDialogs" 2020-11-03 03:36:08 +00:00
Tobias Thierer
0be136593e Merge "Backup platform: Update OWNERS." 2020-10-31 01:08:22 +00:00
Dorin Drimus
d3b9e120a1 Add QUERY_ALL_PACKAGES permission to VpnDialogs
This avoids NameNotFoundException when calling VpnConfig.getVpnLabel from Android 11+ (R+)

Bug: 172041314
Change-Id: I27bfa457803a6f974772dd2861c725ca6fa4f84f
Test: Manual. Connect to a VPN and trigger the vpn dialogs
2020-10-30 11:36:47 +00:00
Treehugger Robot
c8769826af Merge "Restructure Module code [ com.android.tethering ]" 2020-10-30 08:41:36 +00:00
Sun Changqing
732288561e Fix anr when installing package
Change-Id: I02dba3a8f290c2cd8eb43062156f03302955ed06
2020-10-30 15:28:00 +08:00
Yo Chiang
0b6bf88ccd Merge "Disable DSU in executeRebootToNormalCommand()" 2020-10-30 06:55:43 +00:00
Baligh Uddin
aaea97b6f3 Restructure Module code [ com.android.tethering ]
Code Migration from frameworks/base/packages/Tethering ->
packages/modules/Connectivity/Tethering

BUG: 167962976
Test: m com.android.tethering + TH
Merged-In: Ib4a3a7a14d7d0e544aadf1bfb21ad390f1ba76a7
Change-Id: Ifae56d991b43c02f1e3496abbafc87d1869add8a
2020-10-30 05:44:59 +00:00
Tobias Thierer
e00178d61b Backup platform: Update OWNERS.
Strictly speaking other owners for SettingsProvider/test/...
should exist but there aren't any right now, so it's not
worth keeping a per-file rule since I don't think that
those can be combined with include.

Bug: 159055442
Test: Treehugger
Change-Id: I38c9c227e16c91f72ee0fc761670f82160e46ae2
2020-10-29 20:54:16 +00:00
Yo Chiang
68e2d6b360 Disable DSU in executeRebootToNormalCommand()
executeRebootToNormalCommand() reboots the device only if DSU is
successfully disabled, else show a toast describing the failure.

Bug: 171380622
Test: 1. Install and boot into a DSU
      2. adb shell gsi_tool enable
      3. Press "Restart" in DSU notification
      4. Observe the device reboots back to the original system
Change-Id: I19b3d09a64282a28ca7b99b441ca93dea45fcce0
2020-10-29 16:03:38 +08:00
Treehugger Robot
39c6068cbc Merge changes from topic "bug_167962976_visibility"
* changes:
  Add OWNERS block to prevent the tree from mooving during migration.
  Add visibility rules for packages/modules/Connectivity/Tethering
2020-10-29 07:15:03 +00:00
Baligh Uddin
ce31148616 Add OWNERS block to prevent the tree from mooving during migration.
BUG: 167962976
TEST: None.
Change-Id: I49db5a11ee89645dac158ec3757180b2387e2d70
2020-10-29 03:24:01 +00:00
Howard Chen
54653ba116 Add a mutability flag to the PendingIntent in DynamicSystemInstallationService
Bug: 171718124
Test: DSU installation
Change-Id: Id352e37238aad6499841dc379b006f2e0150181d
2020-10-29 11:06:26 +08:00
Baligh Uddin
ff8ff126c7 Add visibility rules for packages/modules/Connectivity/Tethering
BUG: 167962976
Test: TH
Change-Id: Id28881b35cf24fc9517fa11af6d8e539ab244fa6
2020-10-29 02:11:55 +00:00
Treehugger Robot
29dc671218 Merge "Add shared jarjar rule for tethering tests" 2020-10-26 11:43:59 +00:00
markchien
7634bcfa49 Add shared jarjar rule for tethering tests
Also jarjar com.android.net.module.util* to
com.android.networkstack.tethering.util*.

Bug: 171670016
Test: atest TetheringCoverageTests
Change-Id: I3bde9ad3c41adf36da99bd944303d88ce992201c
2020-10-26 18:20:25 +08:00
Bill Yi
b8022b235b Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I34e8bcf3c3f0a5db3522b6ff499ba1583577b250
2020-10-22 23:40:39 -07:00
Gavin Corkery
8fafabfed1 Merge changes from topic "bugreporting-aosp-sync"
* changes:
  Fix consent timed out to sharing bugreport data
  Add BugreportManagerTestCases to bugreport presubmit
  Enable bug report tests in pre/postsubmit
  Run bugreport unit test without script
2020-10-21 11:48:11 +00:00
Mark Chien
e9d354e7c7 Merge "Add the flag and default enable selectAllPrefixRange" am: 02fe8ac161
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1461742

Change-Id: I6055ea6ac737bb94bd9bc8c8642e86222f1e1d1a
2020-10-19 12:46:44 +00:00
markchien
28ec2cf8e7 Add the flag and default enable selectAllPrefixRange
Also add MtsTetheringTest which only run if tethering mainline
module is installed.

Bug: 166057846
Bug: 170265597
Test: atest TetheringTests
Change-Id: I434dda81eb5fab700d873a8ff3429b4222f0c7e6
2020-10-19 16:50:29 +08:00
Treehugger Robot
b0089bdecf Merge "SystemUI: Relax AVC level requirement" am: 59379bb43a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1456875

Change-Id: I0c73b557cf0253b7bd3f211fe7b89fddbfc69b66
2020-10-15 19:39:41 +00:00
Treehugger Robot
59379bb43a Merge "SystemUI: Relax AVC level requirement" 2020-10-15 19:13:11 +00:00
Mark Chien
84b074eef8 Merge "Fix miss tracking downstream problem in PrivateAddressCoordinator" am: 613e6e3e9a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1459887

Change-Id: I2874508c560cc31f99e88c02fd63995f62f86a2f
2020-10-15 12:46:39 +00:00
Mark Chien
613e6e3e9a Merge "Fix miss tracking downstream problem in PrivateAddressCoordinator" 2020-10-15 12:07:19 +00:00
Anton Hansson
b2442b9036 Merge "Remove Tethering @TestApi" am: bd175573a5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1460522

Change-Id: I3dcf776384d6c53876acaeb344820a88c19027da
2020-10-15 11:11:02 +00:00
markchien
5c7d8e5313 Fix miss tracking downstream problem in PrivateAddressCoordinator
The downstream do not be tracked if PrivateAddressCoordinator just
return cached address. Then, PrivateAddressCoordinator would not notify
that downstream if conflict happen.

Also remove the null check in getDownstreamPrefix because:
- An IpServer is only added to mDownstreams by requestDownstreamAddress.
- That method will only add the IpServer to mDownstreams if it has an
IPv4 address.
- As soon as that method returns, the IpServer sets mIpv4Address to the
address that was returned.
- When an IpServer is torn down, mIpv4Address is set to null after
releaseDownstream is called.

So it should never be possible for this to return null.

Bug: 168169687
Test: atest CtsTetheringTest
      atest TetheringTests
Change-Id: Ide5206b013acdc499344e1c839a830c5b245af41
2020-10-15 16:21:12 +08:00
Anton Hansson
7fb5a029e4 Remove Tethering @TestApi
Modules shouldn't have TestApis, as documented in go/android-api-types.
Additionally, nothing depends on these TestApis existing.

Bug: 170395679
Test: m checkapi
Change-Id: I6e2c8298e90b4b54f0264be974d036fa08cd5632
Merged-In: I6e2c8298e90b4b54f0264be974d036fa08cd5632
2020-10-14 16:03:57 +01:00
Treehugger Robot
3420af35ce Merge "Test conflict notification work when using cached address" am: b7aee190a5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1459889

Change-Id: Ib9be992d5728346f063cea6ebc67b11a209e04c4
2020-10-14 13:34:06 +00:00
Treehugger Robot
b7aee190a5 Merge "Test conflict notification work when using cached address" 2020-10-14 13:18:58 +00:00
markchien
7d5c2cf25a Test conflict notification work when using cached address
This test catch the regression introduced in r.android.com/1432958.

Bug: 1432958
Test: atest TetheringTest

Change-Id: Id0c1afb5563954ffee1f598a3a5de6a245d77a0e
2020-10-14 17:02:29 +08:00
Wang Han
a5c1ab0cf5 SystemUI: Relax AVC level requirement
* Android only forces AVCLevel 3, and it is common for modern devices
   to use AVCLevel 4. Considered that there is no checks if this level
   is supported, downgrade the requirement to get screen recording work
   on older devices.

Change-Id: I049e72602bdec934470e2313c05f10ca72570c5b
2020-10-14 00:17:13 +00:00
Alexander Dorokhine
e52360b58f Merge "Migrate away from deprecated Truth APIs." am: b65c13a7b9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1457153

Change-Id: I88e2dabdafb941a4f8bab694b3f515fb1d23d7e6
2020-10-13 19:39:20 +00:00
Alexander Dorokhine
b65c13a7b9 Merge "Migrate away from deprecated Truth APIs." 2020-10-13 19:20:53 +00:00
Alexander Dorokhine
6fbec140f2 Migrate away from deprecated Truth APIs.
This is a transitional step towards truth 1.0.1, where these APIs have
been completely removed.

Bug: 168765701
Test: m checkbuild
Exempt-From-Owner-Approval: Cherry-pick of no-op refactor into another branch
Merged-In: I26ab5ab82bb939bbd9553c05387ac8641eb468b4
Change-Id: I26ab5ab82bb939bbd9553c05387ac8641eb468b4
(cherry picked from commit 4697f76edd)
2020-10-13 11:45:45 -07:00
Treehugger Robot
dce913d911 Merge "Add Turkish F keyboard layout support" am: b9a205d2ac
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1457152

Change-Id: I472bb2f57691001a924e2568346bb9607eaf7b17
2020-10-13 16:29:19 +00:00
Treehugger Robot
b9a205d2ac Merge "Add Turkish F keyboard layout support" 2020-10-13 16:16:06 +00:00
Mark Chien
a303fc56ed Merge "Allow tethering pick prefix from all of private address range" am: 5b976f3516
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1436852

Change-Id: Ief2520cd30059542ae3786a36b92198af6739a2a
2020-10-13 13:42:20 +00:00