Commit Graph

640958 Commits

Author SHA1 Message Date
Siim Sammul
134b829e3a Merge "Change settings observer for other processes to not pass a userhandle." into sc-dev 2021-05-13 14:45:10 +00:00
Treehugger Robot
da769ac79d Merge changes If663677b,I387d90ea am: ea4a93a946
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1706425

Change-Id: I59eb38410465eed276c5744d5373b4ef84656f37
2021-05-13 14:36:47 +00:00
Paul Hu
b137dcbdb3 Merge "Update mobile data preference getter/setter" am: 5a986ca45d am: 04d9298d48
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1702486

Change-Id: I950d4f95759fe17e2164014ab016d39d46ad5539
2021-05-13 14:29:43 +00:00
Beverly
e2ddaa2ee7 GPay activity can use passive biometric auth
- User can face authenticate immediately after tapping the gpay icon on
the LS
- User can use rear fp sensor to authenticate while the GPay activity
from LS is showing
- Update udfps bouncer logic so that longpress on a notification works
with udfps
- Never listen for UDFPS on the keyguard if the device already has trust

Test: atest SystemUITests
Test: atest KeyguardUpdateMonitorTest
Test: manual (unlock with and withou biometric on notification, shade,
bouncer, gpay surfaces)
Fixes: 187020022
Fixes: 183112863
Bug: 183024921
Bug: 185433347

Change-Id: I47aa58505535267c56b88c021791066c36a6c717
2021-05-13 10:24:37 -04:00
Treehugger Robot
ea4a93a946 Merge changes If663677b,I387d90ea
* changes:
  Fixed KeyGenParameterSpecTest
  Keystore 2.0 SPI: Fix NPE in getUniqueAliases.
2021-05-13 14:20:44 +00:00
TreeHugger Robot
ef6d7c0278 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-05-13 14:12:39 +00:00
Paul Hu
04d9298d48 Merge "Update mobile data preference getter/setter" am: 5a986ca45d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1702486

Change-Id: Ieb72b4f0284d5439f62037b9d68da054f276120d
2021-05-13 14:07:56 +00:00
Bill Yi
90c4fbee4c Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ifed4dad48374d870d3a626bb151284f5bad62a0c
2021-05-13 13:54:34 +00:00
Paul Hu
5a986ca45d Merge "Update mobile data preference getter/setter" 2021-05-13 13:42:05 +00:00
Chalard Jean
28562ef63b [NS04] Introduce Network Offers and their callbacks
This patch introduces the concept of a network offer that
providers send to Connectivity to register for relevant
requests. This lets them see only requests that they can
hope to satisfy considering their capabilities and score
filters.

This is meant to replace the filtering mechanism currently
implemented by NetworkFactory. The reason for replacing
this mechanism is that the old mechanism does caps and
score filtering on the factory side, which requires these
two filters to be contextless and available system-wide,
including in separate processes from the system server.
These constraints severely limit and complexify in
particular what the score comparisons may look like. In
the past the score comparison was only integer-based,
making the code duplication not much of a problem, but as
this scheme is becoming unsustainable by spreading the
complexity of the selection across the entire stack, a
centralized mechanism is now necessary.

This patch only introduces the new objects and has CS
keep track of them, but does not actually use them yet.
Followup patches will implement the logic of calling
the offer callbacks.

Test: FrameworksNetTests NetworkStackTests FrameworksWifiTests
Bug: 167544279
Merged-In: Idec1fe8eb4ac6f562bf098e3dd470f11024d04f2
(clean cherry-pick)

Change-Id: Idec1fe8eb4ac6f562bf098e3dd470f11024d04f2
2021-05-13 13:20:43 +00:00
Bill Yi
cfbac5ae25 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I6842a8aef3b627c6a951be108833c2854342b5a9
2021-05-13 13:15:35 +00:00
Matt Pietal
8690be5bc9 Keyguard - Fix clock in occluded state
The status area (clock, smartspace) was not being shown after exiting
an activity on the lockscreen. The y translation value was incorrect
for the branch it was taking. Add a new check for occlusion, and use
the correct transition when leaving this state.

Fixes: 184188027
Test: manual (use emergency call button)
Change-Id: I6fa34e55252ac8435031915a7e929711e7976fe2
2021-05-13 12:54:34 +00:00
Matt Pietal
14e224d5f7 SIM PIN spacing issues
For large display settings, text began overlapping with the limited
vertical space. Reduce spacing for SIM PIN views to fit everything in.

Fixes: 186857845
Test: largest font/display size with locked SIM
Change-Id: I678ced91dd55c84e194e37e22a3a56b53e78f2eb
2021-05-13 12:54:17 +00:00
Remi NGUYEN VAN
9bf30999cc Move connectivity sources to packages/Connectivity
The service-connectivity sources should be in
packages/modules/Connectivity. Move them to
frameworks/base/packages/Connectivity, so that the whole directory can
be moved to the dedicated packages/modules/Connectivity git project.

Bug: 186628461
Test: m
Change-Id: I26d1a274058fa38763ad4f605549d880865b4d76
2021-05-13 12:44:09 +00:00
Siim Sammul
8aa9913e66 Change settings observer for other processes to not pass a userhandle.
Bug: 180584913
Test: Not a functionality change
Change-Id: Ibf0442f9de45694e33131c0ac327d840eea8fbfe
2021-05-13 12:39:31 +00:00
Riddle Hsu
28c4860610 Merge "Only skip hierarchy op which may reorder task in task lock mode" into sc-dev 2021-05-13 12:22:09 +00:00
Remi NGUYEN VAN
0ead400f26 [automerger skipped] Merge "Move net unit tests to packages/Connectivity" am: 5b48156498 am: 78a1add7d9 am: 2773acc3cc -s ours
am skip reason: Merged-In I254ffd1c08ec058d594b4ea55cbae5505f8497cc with SHA-1 007a886baf is already in history

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1706685

Change-Id: I8d08b8919e4b0dc129363e3e715374b22c4a3c0d
2021-05-13 12:08:41 +00:00
Anton Hansson
7f07dbd499 Merge "Suppress reflection errors and dedupe flags" am: 9e1ca7acf7 am: 2a4b485cc8 am: c3e35eb6ef
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1588352

Change-Id: Ibbaca4afcf04afda77c730b758dd6a16ad5315b4
2021-05-13 12:07:53 +00:00
Remi NGUYEN VAN
2773acc3cc Merge "Move net unit tests to packages/Connectivity" am: 5b48156498 am: 78a1add7d9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1706685

Change-Id: Ibe1d2241c37d2945d3e9278948d4fa614f05ae08
2021-05-13 11:51:45 +00:00
Anton Hansson
c3e35eb6ef Merge "Suppress reflection errors and dedupe flags" am: 9e1ca7acf7 am: 2a4b485cc8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1588352

Change-Id: I6fb0e7f6c25f449c375105e96cad4e4c044cef88
2021-05-13 11:51:20 +00:00
Remi NGUYEN VAN
78a1add7d9 Merge "Move net unit tests to packages/Connectivity" am: 5b48156498
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1706685

Change-Id: I86852c79cf06a3bc7b7ccaa18d83f70a2043b258
2021-05-13 11:32:36 +00:00
Anton Hansson
2a4b485cc8 Merge "Suppress reflection errors and dedupe flags" am: 9e1ca7acf7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1588352

Change-Id: I2b61cb18103b008016761ecc032e8868107446bd
2021-05-13 11:29:17 +00:00
Lorenzo Colitti
34748be150 Make VcnTransportInfoTest pass on AOSP.
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-13 20:24:20 +09:00
Lorenzo Colitti
1ad18702f1 Immediately redact VcnTransportInfo.
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-13 20:24:20 +09:00
Lorenzo Colitti
3533c16720 Do not automatically redact TransportInfo objects.
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-13 20:24:19 +09:00
TreeHugger Robot
357a7d7bae Merge changes I255c033f,I4269b194 into sc-dev
* changes:
  Fix udfps auth scrim state
  Lock screen a11y updates
2021-05-13 11:15:39 +00:00
Remi NGUYEN VAN
5b48156498 Merge "Move net unit tests to packages/Connectivity" 2021-05-13 11:10:49 +00:00
Anton Hansson
9e1ca7acf7 Merge "Suppress reflection errors and dedupe flags" 2021-05-13 11:01:03 +00:00
Paul Duffin
4396a571a7 [automerger skipped] Merge "Add media-module-sdk build target." am: a6e369bb32 am: 8b6cd2dfe1 am: e85945fdd2 -s ours
am skip reason: Merged-In Ib37f2861a3c12526686b6ec78d9345aead6d51c9 with SHA-1 a2fd7fd012 is already in history

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1705354

Change-Id: I2b650989484d57825c35c436b4f801e1fe227fc8
2021-05-13 10:47:33 +00:00
paulhu
61c1b37d72 Update mobile data preference getter/setter
To satisfy OEM's requests, setting mobile data preference
should be by uid. Thus, update the getter/setter to
return/accept set of uids that need to apply mobile data
preference.

Bug: 171872461
Test: atest FrameworksNetTests
Change-Id: Id44efd2a6d820867f4405426c91e65b9ef155898
2021-05-13 10:35:29 +00:00
Paul Duffin
e85945fdd2 Merge "Add media-module-sdk build target." am: a6e369bb32 am: 8b6cd2dfe1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1705354

Change-Id: I3dd549676cef61df9de0c488ef3a20253b21cc2d
2021-05-13 10:32:49 +00:00
Paul Duffin
8b6cd2dfe1 Merge "Add media-module-sdk build target." am: a6e369bb32
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1705354

Change-Id: I970914ee5cfb5771d2ada4fbc25842d015407fe6
2021-05-13 10:09:52 +00:00
Wesley.CW Wang
1c2f944a76 Update RadioButtonPreference widget layout
- Adjust widget padding
 Screenshots:
   https://screenshot.googleplex.com/92NGNQa8pqrqns7.png
   https://screenshot.googleplex.com/BpcrhseYHMRxtn9.png
   https://screenshot.googleplex.com/ATmVmgiKV3CLYQH.png

Bug: 187778673
Test: atest RadioButtonPreferenceTest
Change-Id: I060489ccb875f3820d486b52795b313cb6ff9db2
2021-05-13 09:58:18 +00:00
Victor Chang
06e019f0f7 Merge "Add ART module-lib and system API to the collection" into sc-dev 2021-05-13 09:56:15 +00:00
Paul Duffin
a6e369bb32 Merge "Add media-module-sdk build target." 2021-05-13 09:48:42 +00:00
Tsung-Mao Fang
11d6467edd Merge "Add ability of setting content description for footer" into sc-dev 2021-05-13 09:43:43 +00:00
Jerry Chang
34f49d6cf5 Merge "Make sure tasks not in split root is invisible while in split" into sc-dev 2021-05-13 09:38:14 +00:00
Anton Hansson
aa26cc10db Suppress reflection errors and dedupe flags
Bug: 168689341
Test: m frameworks-base-api-current-compat
Change-Id: Ied6452849ef994424500b56a042983b92ecc41f2
2021-05-13 10:27:20 +01:00
Bill Yi
42990e7488 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I914e3b994f331a9395f0916cbb567c46532d6954
2021-05-13 09:15:01 +00:00
Remi NGUYEN VAN
5f7ffd4136 Merge "Move net unit tests to packages/Connectivity" into sc-dev 2021-05-13 09:09:35 +00:00
Remi NGUYEN VAN
1665a3d634 Move net unit tests to packages/Connectivity
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-13 08:30:33 +00:00
Corina Grigoras
094d6c52f1 Merge "Add gif mime type" into sc-dev 2021-05-13 08:25:03 +00:00
Corina
506eae3745 Add gif mime type
Bug: 168001592
Test: atest MimeMapTest
Change-Id: I0413381fd94f61e96d29eb4f139743c197c99040
2021-05-13 08:24:32 +00:00
PETER LIANG
0e78306403 Merge "Fix the animation is not smooth when moving the a11y fab to the edge." into sc-dev 2021-05-13 08:21:25 +00:00
Pierre Barbier de Reuille
d8b2952bb9 Merge "Check colors actually change for App Widget" into sc-dev 2021-05-13 08:08:08 +00:00
Tsung-Mao Fang
cb20b3ef4c Add ability of setting content description for footer
Test: Rebuilt lib and confirmed to set a content description for a footer
in Settings app. Then, talkback can say correct description.
Fix: 188009297
Change-Id: I7af451a553a13d5108ab279d149e4cdfdfcb620f

Change-Id: I06c5fbdfca25e287988ea8ef8eca56fcce10857a
2021-05-13 16:05:18 +08:00
TreeHugger Robot
cf8809f809 Merge "[pm] add uid in PackageInstallerV2 metrics" into sc-dev 2021-05-13 06:42:59 +00:00
Paul Hu
64cdd91b6e Merge "Add RESTRICTED_ALLOWED_APPS setting" am: e6d2b4663e am: fe7e35ea07 am: 67909cbb05
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1689208

Change-Id: I59c9ff9a64eac6b3367169450ca2c063ef34ff3c
2021-05-13 06:36:18 +00:00
Paul Hu
67909cbb05 Merge "Add RESTRICTED_ALLOWED_APPS setting" am: e6d2b4663e am: fe7e35ea07
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1689208

Change-Id: I9a30162499954c4ec3bcd97233256f973662f7ab
2021-05-13 06:19:25 +00:00
Remi NGUYEN VAN
007a886baf Move net unit tests to packages/Connectivity
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-13 05:55:44 +00:00