Commit Graph

480596 Commits

Author SHA1 Message Date
Stanislav Zholnin
2775990021 Merge "Final adjustments to privacy metrics:" into rvc-dev 2020-06-22 20:01:07 +00:00
Stanislav Zholnin
ba94e3b01b Final adjustments to privacy metrics:
- remove unnecessary lock - after statsd added locks for each puller, there
is no need to create additional lock for sampling rate estimation
- adjust sampling target value for AppOps atom based on Beta1 results
- adjust sampling ratio for Dangerous Permission state atom

Test: statds_testdrive 10069, 10075, atest UidAtomTests#testAppOps
--iterations=20, atest UidAtomTests#testDangerousPermissionState
--iterations=20, atest UidAtomTests#testDangerousPermissionStateSampled
--iterations=20
Bug: 143519689
Change-Id: I05fec5f602c7e1c5ba38749147c04aec79da2a46
2020-06-22 19:51:48 +00:00
Winson Chung
195bec6882 Merge "Initialize quickswitch rotation state" into rvc-dev 2020-06-22 19:42:44 +00:00
Michael Groover
2bcb70322c Merge "Update docs for methods that require subscriberId" into rvc-dev 2020-06-22 19:30:10 +00:00
Michael Groover
f07d289b51 Merge "Reorder TelephonyPermissions calls for carrier privileges" into rvc-dev 2020-06-22 19:25:34 +00:00
Matt Casey
a97dfd239e Merge "Make ActionProxyReceiver use PendingIntent." into rvc-dev 2020-06-22 19:24:11 +00:00
TreeHugger Robot
340e55d091 Merge "Add a guard on UserController to avoid user switches when not ready." into rvc-dev 2020-06-22 19:19:20 +00:00
Taran Singh
296855fe76 Merge "Fix InsetsConsumer leak" into rvc-dev 2020-06-22 18:53:20 +00:00
TreeHugger Robot
f1c35c396d Merge "CEC: Run all actions after TV allocates address" into rvc-dev 2020-06-22 18:41:30 +00:00
Selim Cinek
82359e319e Merge "Making the media carousel dismissable" into rvc-dev 2020-06-22 18:36:48 +00:00
Nicholas Sauer
e1ac825e3a Merge "Create the PendingIntent for UserHandle.CURRENT" into rvc-dev 2020-06-22 18:33:28 +00:00
Keun-young Park
f9dcad0b12 Merge "Restore lost unlocked users after vold reset" into rvc-dev 2020-06-22 18:23:00 +00:00
Will Brockman
7ebbe4fc60 Merge "Update section enum for statsd notif panel logs." into rvc-dev 2020-06-22 18:16:43 +00:00
Hongwei Wang
997150ee0a Merge "Updates enterPictureInPicture API doc" into rvc-dev 2020-06-22 18:14:10 +00:00
Antoan Angelov
59804dccba Merge "Show disclosure for work profile on org owned device in keyguard" into rvc-dev 2020-06-22 17:49:16 +00:00
Winson Chung
8e31e30c59 Initialize quickswitch rotation state
- The global listener checks mStartingQuickSwitchRotation
  before setting the override sampling region, but immediately
  after navigation mode switch, this is not set to -1 so we can
  end up setting this to the wrong region.

Bug: 158663687
Test: atest android.systemui.cts.LightBarTests#testLightNavigationBar
Change-Id: I332982b5401fa5d4d4af8cd4e4d71ab8beb6cd4d
2020-06-22 10:48:13 -07:00
Matt Pietal
cde9d6b37f Merge "Controls UI - Show timeout msg and not controls on error" into rvc-dev 2020-06-22 17:18:42 +00:00
Andy Hung
72998aeaf7 Merge "AudioTrack: Update javadoc" into rvc-dev 2020-06-22 17:15:09 +00:00
TreeHugger Robot
06cfd49914 Merge "Correct the name of enum UserType item" into rvc-dev 2020-06-22 17:06:58 +00:00
Nicholas Sauer
16ed196ade Create the PendingIntent for UserHandle.CURRENT
This fixes use of the autofill SaveUi for secondary users. Without this
change, when running under a secondary user, the PendingIntent is always
sent to U0.

Bug: 159618798
Bug: 155102708
Test: lunch hawk-userdebug && m
run cts --skip-device-info -s emulator-5554 -m CtsAutoFillServiceTestCases -t android.autofillservice.cts.SimpleSaveActivityTest#testTapUrlSpanOnSuccinctDescription_thenTapBack

Change-Id: Ie6deaaaf47a11ae841c183003471d051df2beb90
2020-06-22 17:01:58 +00:00
Keun young Park
37a49da1aa Restore lost unlocked users after vold reset
- In automotive, vold reset / resetIfBootedAndConnected() call can
  lose pending unlock request for a user if boot completion and
  unlock happens at the same time. In automotive, user unlock
  can happen before boot complete.

- After vold reset, check for such lost user (=marked unlocking or
  unlocked in UserManager level but is still locked in StorageManager
  level) and retry unlocking.

- This also undo previous CL to keep handler messages as that cannot
  prevent all the race, especially race of vold reset right after
  onUnlockUser call. But handler update is kept inside the service.

- The restoration is done only for automotive device for now as phone
  does not have such case.

Bug: 151457974
Test: try reboot in auto devices where this race can happen.
Change-Id: I3b50750f5602c805e79f79f061eed44f880b25bd
2020-06-22 09:35:28 -07:00
Fabian Kozynski
6a75f1332f Merge "Make SeekBar 1dp tall when disabled" into rvc-dev 2020-06-22 16:33:04 +00:00
Alison Cichowlas
974d17209e Merge "When Nearby is present as a chip, exclude it from app list." into rvc-dev 2020-06-22 16:31:47 +00:00
TreeHugger Robot
63458fb6e5 Merge "Turn off quiet mode in the background, allowing the dialog to dismiss quicker." into rvc-dev 2020-06-22 16:09:41 +00:00
TreeHugger Robot
9cf5156fed Merge "Verify staged session remain unchanged on system server reboot" into rvc-dev 2020-06-22 15:51:43 +00:00
Taran Singh
531404721f Fix InsetsConsumer leak
Activity was still referred from ImeInsetsSourceConsumer after
ViewRootImpl's mView was destroyed when ViewRoot's surface is cleared
using die signal.
This CL makes sure we still free-up resources at die signal.

Fix: 157955883
Test: atest NexusLauncherTests
Change-Id: Ia48f7b7a8cf6b867ce75b2b7393a60ba73b0c3d0
2020-06-22 15:32:47 +00:00
Matt Pietal
2020f93a13 Merge "Controls UI - Fix icon tint for custom icons" into rvc-dev 2020-06-22 15:11:47 +00:00
Matt Pietal
c472565de6 Merge "Controls UI - Use custom icon for favoriting" into rvc-dev 2020-06-22 15:11:26 +00:00
TreeHugger Robot
ee9ca628ca Merge "Update DnsManagerTest for AIDL interface change" into rvc-dev 2020-06-22 15:09:54 +00:00
TreeHugger Robot
70ad33113f Merge "Ignore onStartInput when WINDOW_FOCUS_GAIN_REPORT_WITH_SAME_EDITOR" into rvc-dev 2020-06-22 14:51:15 +00:00
Will Brockman
61ae286a0f Update section enum for statsd notif panel logs.
Add explicit mapping to reduce churn in the logs as notification section list changes.

Fixes: 159568541
Test: statsd_testdrive
Test: atest NotificationLoggerTest
Change-Id: I7f0fe1a4dbed4a4b965154230b937659026b7493
2020-06-22 10:18:24 -04:00
Matt Casey
ea12819bda Make ActionProxyReceiver use PendingIntent.
PendingIntent lets SaveImageInBackgroundTask pass the permission
directly to the target. Flow is:
  SaveImageInBackgroundTask (current user) ->
  ActionProxyReceiver (system user) ->
  Share or edit target (current user)

The pending intent created in the first step allows read/write
permission to be passed to the final destination, as ActionProxyReceiver
itself does not have access to the screenshot.

Bug: 159455848
Test: Share and edit a screenshot with the following variations:
      - lockscreen on / off
      - primary user / secondary user
      Verify that full UI flow apperars, final destination can show the
      screenshot
Change-Id: Ie92212f2ffc3f8a11c3e5380908460f5f7fbb439
2020-06-22 10:17:32 -04:00
TreeHugger Robot
b3d84ac6dd Merge "Support DNS-over-TLS probes in NetworkDiagnostics" into rvc-dev 2020-06-22 14:15:40 +00:00
Mohammad Samiul Islam
f75619ecaf Verify staged session remain unchanged on system server reboot
Since rebooting system server requires root, we had to create a new
internal test suite with root access.

Bug: 158283778
Test: StagedInstallInternalTest#
      testSystemServerRestartDoesNotEffectStagedSessions
Change-Id: Id37111c0e63025aabe58cc9c8ab39b0362f1aed4
2020-06-22 15:12:11 +01:00
Matt Pietal
850f9387e3 Controls UI - Show timeout msg and not controls on error
There was some confusion around people seeing all devices with a
status of 'device removed' on timeout. Show the msg instead and not
the favorited controls

Fixes: 159596183
Test: manually set load timeout to 1s
Change-Id: I7cb0f74c2080f3537f8df84ea5eb0fd779285dcf
2020-06-22 10:08:28 -04:00
Marvin Ramin
1c7270afd2 CEC: Run all actions after TV allocates address
Start all pending actions after TV allocates logical address. This
ensures DeviceDiscoveryAction is able to run. HdmiControlService
starting its power state in STANDBY prevents all Actions from being run.

Playback and Audio devices perform the same logic upon logical address
allocation.

Bug: 159104739
Test: atest HdmiCecLocalDeviceTvTest
Change-Id: I9a79ee02f5065abbedded26be385115279797977
Merged-In: I9a79ee02f5065abbedded26be385115279797977
2020-06-22 15:57:12 +02:00
Tiger Huang
0d145e89c6 Merge "Only notify insets changed caused by z-order under some conditions" into rvc-dev 2020-06-22 13:53:57 +00:00
Ken Chen
125db20ee5 Update DnsManagerTest for AIDL interface change
Check one more parameter enforceDnsUid in ResolverOptionsParcel in
DnsManagerTest.

Bug: 159587277
Test: atest
com.android.server.connectivity.DnsManagerTest#testSendDnsConfiguration

Change-Id: Ic53f42b968626294c851dac252a70769846ba427
2020-06-22 21:44:07 +08:00
TreeHugger Robot
1a3468740a Merge "Finish fixed rotation while the task has done transition" into rvc-dev 2020-06-22 13:42:41 +00:00
TreeHugger Robot
bda3156926 Merge "Remove fixed-rotation-transform setting" into rvc-dev 2020-06-22 13:42:27 +00:00
Matt Pietal
a2e2085cb3 Controls UI - Use custom icon for favoriting
Apply custom icons, if any, during add controls. Edit controls the
issue still exists but will handle separately.

Fixes: 159562131
Test: manual, mock app use TYPE_FAN
Change-Id: Ib75756a8b6fa6e78a678fc8d6ceb3e4cdaafc142
2020-06-22 09:36:48 -04:00
Fabian Kozynski
8a9516d762 Make SeekBar 1dp tall when disabled
Test: manual
Fixes: 159369236

Change-Id: If28b65b66b78595d60a67e4f4c8deadf0393c1a0
2020-06-22 09:34:02 -04:00
Matt Pietal
d0ab4bec4f Controls UI - Fix icon tint for custom icons
ImageView has state that cannot be reversed regarding tintList, even
if you set it to null. Therefore only clear the tint if we absolutely
need to in order to avoid an override.

Bug: 159559045
Test: manual
Change-Id: Id2223136a76f7e7e3118d95f1ad126f768199d3f
2020-06-22 09:06:41 -04:00
Alison Cichowlas
582aeba50c Merge "Refresh both lists and pinning preferences on change." into rvc-dev 2020-06-22 12:58:57 +00:00
arangelov
c00bd0c91f Show disclosure for work profile on org owned device in keyguard
Fixes: 149073538
Test: manually provisioned a work profile on org owned device appears
Test: removed a work profile on org owned device to see disclosure disappears
Test: manually set up device as DO to see disclosure appears
Test: manually created a regular non-organization owned work profile to
see disclosure does not exist
Test: atest KeyguardIndicationControllerTest

Change-Id: I1df774cb4389b64779e7e329c3a1c7ff0b68c3ee
2020-06-22 12:28:17 +01:00
TreeHugger Robot
ace942e57b Merge "Fix "Allow/Deny" popup window no respond when enable pointer location" into rvc-dev 2020-06-22 10:12:10 +00:00
Galia Peycheva
60d5549eda Merge "Make config_assistantOnTopOfDream a TestApi" into rvc-dev 2020-06-22 09:57:51 +00:00
Galia Peycheva
9e639bb382 Merge "Close assistant activities on closeSystemDialogs" into rvc-dev 2020-06-22 09:57:51 +00:00
Lorenzo Colitti
438073fcfe Merge "Make PendingIntent immutable and correct Settings package name" into rvc-dev 2020-06-22 09:00:25 +00:00
Mike Yu
1a5e45e37d Support DNS-over-TLS probes in NetworkDiagnostics
Probe DNS servers to see they support DNS-over-TLS. Use system
CAs to verify whether the certificates sent by DNS servers are
trusted or not. An error is thrown to cause the probe failed if
DNS servers send untrusted certificates.

Unlike the DnsResolver which doesn't verify the certificates
in opportunistic mode, all of the DoT probes from NetworkDiagnostics
check certificates.

DoT probes apply to the DNS servers gotten from LinkProperties
and the DoT servers gotten from PrivateDnsConfig whatever private
DNS mode is.

A common example in DNS strict mode:
.  DNS TLS dst{8.8.8.8} hostname{dns.google} src{192.168.43.2:48436} qtype{1} qname{815149-android-ds.metric.gstatic.com}: SUCCEEDED: 1/1 NOERROR (432ms)
F  DNS TLS dst{192.168.43.144} hostname{}: FAILED: java.net.ConnectException: failed to connect to /192.168.43.144 (port 853) from /192.168.43.2 (port 41770) after 2500ms: isConnected failed: ECONNREFUSED (Connection refused) (172ms)
.  DNS TLS dst{8.8.4.4} hostname{dns.google} src{192.168.43.2:37598} qtype{1} qname{759312-android-ds.metric.gstatic.com}: SUCCEEDED: 1/1 NOERROR (427ms)

An example when the CA is not trusted:
F  DNS TLS dst{8.8.8.8} hostname{dns.google}: FAILED: javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found. (16ms)

An example when TCP/TLS handshake timeout:
F  DNS TLS dst{8.8.8.8} hostname{dns.google}: FAILED: java.net.SocketTimeoutException: failed to connect to /8.8.8.8 (port 853) from /192.168.2.108 (port 45680) after 2500ms (2514ms)

Bug: 132925257
Bug: 118369977
Test: atest FrameworksNetTests
Original-Change: https://android-review.googlesource.com/1011670
Merged-In: I1b54abed0e931ca4b8a97149459cde54da1c3d6f
Change-Id: I1b54abed0e931ca4b8a97149459cde54da1c3d6f
2020-06-22 08:57:49 +00:00