Commit Graph

16450 Commits

Author SHA1 Message Date
Treehugger Robot
fa5c128382 Merge "Add OWNERS" am: e4ea60d580 am: ed2ff28228
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1720190

Change-Id: I8040b35bc79f1faa208519cf109a36ad0948bc84
2021-05-26 23:48:44 +00:00
Todd Kennedy
769ea23166 Add OWNERS
Change-Id: Ia152457b8d86275b4b9e4e4c2fe55b0bd2667900
Mergec-In: I4b29dab263d02a79d7b1593d35ae28101d33679a
2021-05-26 21:22:35 +00:00
Dmitri Plotnikov
9f4f53eca5 Merge "Fix system service power calculation when measured energy is available" into sc-dev am: 16d1188b7d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14726213

Change-Id: I0b0456218c6b53348f5c2951e9c65e5b76e974c1
2021-05-26 20:59:24 +00:00
Jeff DeCew
4e19c0f201 Merge "Resolve Notification.Colors once, instead of lazily." into sc-dev am: f294d0ba5f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14140988

Change-Id: Icaeb16f0e3fbb114c4de551e75adaa948c312ce6
2021-05-26 11:05:23 +00:00
Alison Cichowlas
ea34067bc5 Merge "Set RESULT_OK on exit via copy button." into sc-dev am: 7014d28df9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14670950

Change-Id: Idae04072caf9961880d522c22c23410475ee539f
2021-05-26 11:03:24 +00:00
Siim Sammul
6d47f7fb10 Change settings observer for other processes to not pass a userhandle.
This is a direct cherry pick from internal with no changes: https://googleplex-android-review.git.corp.google.com/c/platform/frameworks/base/+/14426680

Bug: 180584913
Test: Not a functionality change
Change-Id: Ibf0442f9de45694e33131c0ac327d840eea8fbfe
Merged-In: Ibf0442f9de45694e33131c0ac327d840eea8fbfe
2021-05-26 10:45:16 +00:00
Dmitri Plotnikov
1643f794d0 Fix system service power calculation when measured energy is available
Bug: 188930285
Test: atest FrameworksCoreTests:SystemServicePowerCalculatorTest
Change-Id: Ic48bd627b8458cde18f812eb63cbc1e37496326d
2021-05-25 18:26:38 -07:00
Jeff DeCew
f294d0ba5f Merge "Resolve Notification.Colors once, instead of lazily." into sc-dev 2021-05-25 16:44:59 +00:00
Alison Cichowlas
7014d28df9 Merge "Set RESULT_OK on exit via copy button." into sc-dev 2021-05-25 15:04:25 +00:00
Siim Sammul
8cecd22d29 Add a version of SettingsObserver to BinderCallsStats and make it public so it could be
used to collect binder latency data from bluetooth and telephony.

This is a direct cherry pick from internal with no changes: https://googleplex-android-review.git.corp.google.com/c/platform/frameworks/base/+/14236409

Test: latency collection is unit tested, this is just an alternative settings configuration
Bug: 180584913
Change-Id: Ide51afb7eb26a96c7692bceb0a22585a74f08aa7
Merged-In: Ide51afb7eb26a96c7692bceb0a22585a74f08aa7
2021-05-25 15:20:22 +01:00
Jeff DeCew
cab7d8e011 Resolve Notification.Colors once, instead of lazily.
* Instead of resolving colors as-needed, resolve the entire palette potentially used by the notification at the start.
* Centralize color logic and palette storage into Notification.Colors for easier unit testing.
* Adds unit tests for the Notification.Colors, including validating color contrast ratios for various colors.
* Fix a bug with ColorContrastUtil where the luminosity for dark/light font cutoff was 0.5, which resulted in a max contrast ratio of 1.9 for some colors.  Now contrast ratios of 4.5:1 can be achieved for all colors.
* Removes a few of the color accessors in Notification.Builder which were infrequently used, and replaces them with direct use of Notification.Colors.
* Notification specific colors (primary, secondary, default) have only been used by colorized notifications for a few months.  Remove the dark mode overrides of these, ensuring that colorized notifications have the same exact appearance in light and dark themes.
* Replace the use of the "default" color with the "secondary text color"; this practically only affects the alerted bell icon, is more consistent, and reduces complexity.

Fixes: 187881776
Test: manual
Test: atest android.app.NotificationTest
Change-Id: Ib8840d04093094c324d8bdce5b2e84c93a94db8d
2021-05-25 09:57:11 -04:00
Siim Sammul
5141d67365 Merge "Add buckets params to the binder latency atom" 2021-05-25 08:02:25 +00:00
Dmitri Plotnikov
df0d816d7e Merge "Fix time-in-foreground to include PROCESS_STATE_FOREGROUND_SERVICE" into sc-dev am: 4113199752
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14671229

Change-Id: Id36c6015948985303e58d3ef388b9aa6fdd116a7
2021-05-24 20:08:07 +00:00
Dmitri Plotnikov
4113199752 Merge "Fix time-in-foreground to include PROCESS_STATE_FOREGROUND_SERVICE" into sc-dev 2021-05-24 20:02:36 +00:00
Patrick Baumann
dff37ee6d2 Merge "Updates OWNERS files" into sc-dev 2021-05-24 18:30:19 +00:00
Victor Chang
0d9d0d0521 Merge "Disable sentence-case for Georgian" into sc-dev am: 0946a97d06
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14489968

Change-Id: I6b9d84385c215a139c9e96eaa19dbb1b263c3a48
2021-05-24 16:02:00 +00:00
Victor Chang
0946a97d06 Merge "Disable sentence-case for Georgian" into sc-dev 2021-05-24 15:57:25 +00:00
Siim Sammul
951c268d2b Merge "Add sharding to BinderCallsStats collection and make it configurable. The hash code of the callsession will be used to select which apis will be collected for based on the configured modulo. This is needed to reduce the amount of data collected from public devices." into sc-dev am: d49a40998a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14440248

Change-Id: I680a1342507c882d988f486600da0afdfa1efe67
2021-05-24 13:29:32 +00:00
Siim Sammul
d49a40998a Merge "Add sharding to BinderCallsStats collection and make it configurable. The hash code of the callsession will be used to select which apis will be collected for based on the configured modulo. This is needed to reduce the amount of data collected from public devices." into sc-dev 2021-05-24 13:09:19 +00:00
TreeHugger Robot
453acbbf29 Merge changes I1de322c9,Id0983d4b into sc-dev
* changes:
  Improve IKEv2/IPsec VPN by proposing more IPsec algorithms
  Improve IKEv2/IPsec VPN by proposing more IKE algorithms
2021-05-22 05:05:51 +00:00
Soonil Nagarkar
5f247fea09 Merge "Update location bypass allowlist" into sc-dev am: 20b934e7db
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14671675

Change-Id: I1d4a6c88f9da605c1b3dec581bfbe90c867bde55
2021-05-22 04:36:59 +00:00
Soonil Nagarkar
20b934e7db Merge "Update location bypass allowlist" into sc-dev 2021-05-22 04:04:54 +00:00
Treehugger Robot
da915abc76 Merge "Use BinderDeathDispatcher for alarm listeners" 2021-05-21 23:45:59 +00:00
Yan Yan
ff41121597 Improve IKEv2/IPsec VPN by proposing more IPsec algorithms
This commit allows IKEv2/IPsec VPN to propose more algorithms that
newly added in IpSecAlgorithm. Those new algorithms have stronger
security guarantees and better performances.

This commit also removes algorithm name validation because all
algorithms are URL encoded to ensure no special characters create
problems due to their use by VpnProfile for list or field delimiting
(e.g. rfc7539esp(chacha20,poly1305))

Bug: 185265778
Test: atest FrameworksNetTests, CtsNetTestCases
Test: All new algorithms are manually verified
Change-Id: I1de322c95aacc8924e95bcdbcfdbd1ec441de99c
Merged-In: I1de322c95aacc8924e95bcdbcfdbd1ec441de99c
2021-05-21 23:33:23 +00:00
Yan Yan
10987d8c02 Merge "Improve IKEv2/IPsec VPN by proposing more IPsec algorithms" am: 94a4cdd4e8 am: 7b8b5fd6de
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1690265

Change-Id: I0e467627fdbf70d6ec704f1f2be58223df9642ed
2021-05-21 23:12:45 +00:00
Yan Yan
94a4cdd4e8 Merge "Improve IKEv2/IPsec VPN by proposing more IPsec algorithms" 2021-05-21 22:00:30 +00:00
Joe Bolinger
4a4261ed17 Merge changes I57f018e4,Ib1e92278 into sc-dev am: 16cd6bb81f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14669695

Change-Id: I18c6dd68afe0697d7c39a4bce15ea1dc1e694314
2021-05-21 21:41:53 +00:00
Yohei Yukawa
2098780f50 Merge "Remove InputMethodManager#reportActivityView()" into sc-dev am: e738cfc898
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14429499

Change-Id: I16173b64a5172e61f200e4111bb215828bc4842e
2021-05-21 21:41:26 +00:00
Joe Bolinger
16cd6bb81f Merge changes I57f018e4,Ib1e92278 into sc-dev
* changes:
  Remove confirm button when falling back to fingerprint auth.
  Delay starting fingerprint sensor when using multi-sensor devices.
2021-05-21 21:35:57 +00:00
Yohei Yukawa
e738cfc898 Merge "Remove InputMethodManager#reportActivityView()" into sc-dev 2021-05-21 21:33:16 +00:00
Patrick Baumann
43628ca24c Updates OWNERS files
Bug: 186864416
Test: Builds
Change-Id: I04dfc5c2c7143825334ebc62742e335b8c889492
2021-05-21 14:13:18 -07:00
Calin Juravle
dd8b94557d Merge "Update the use of registerAppInfo" into sc-dev 2021-05-21 20:29:17 +00:00
Yohei Yukawa
44c499d853 Remove InputMethodManager#reportActivityView()
This CL logically reverts my previous CL [1], which re-enabled
CursorAnchorInfo API for ActivityView since ActivityView is finally
removed [2].

There should be no user/developer impact in this CL as

   InputMethodManager#reportActivityView()

is called nowhere.

 [1]: Id0411a80456182111bb5b681c6d1230b58e7ec2e
      b4f328a2f3
 [2]: Ic66f3740819634366edb20a34a7c8177af258c2f
      5456990f7e

Bug: 115693908
Bug: 179161778
Test: atest CtsInputMethodTestCases
Test: atest CtsWindowManagerDeviceTestCases:ActivityViewTest
Change-Id: Idd60d96a39f827197d189beb5de016446576d9cd
2021-05-21 18:13:17 +00:00
Yan Yan
cc258065e1 Improve IKEv2/IPsec VPN by proposing more IPsec algorithms
This commit allows IKEv2/IPsec VPN to propose more algorithms that
newly added in IpSecAlgorithm. Those new algorithms have stronger
security guarantees and better performances.

This commit also removes algorithm name validation because all
algorithms are URL encoded to ensure no special characters create
problems due to their use by VpnProfile for list or field delimiting
(e.g. rfc7539esp(chacha20,poly1305))

Bug: 185265778
Test: atest FrameworksNetTests, CtsNetTestCases
Test: All new algorithms are manually verified
Change-Id: I1de322c95aacc8924e95bcdbcfdbd1ec441de99c
2021-05-21 17:46:54 +00:00
Soonil Nagarkar
1ea818347e Update location bypass allowlist
Create a new DeviceConfig entry to replace the prior Settings entry on
which the location ignore settings allowlist is based. This allows us to
allowlist based on attribution tag, and eliminate holes for large
applications.

Test: manual + CTS + GTS
Bug: 187421886
Change-Id: I31e61db79b93e202bd8c66efae1bb5aaf0c88ff5
2021-05-21 09:25:47 -07:00
Siim Sammul
039b201f7b Add buckets params to the binder latency atom
Cherry picked from internal: https://googleplex-android-review.git.corp.google.com/c/platform/frameworks/base/+/14201550

Test: n/a - no functionality change
Bug: 180584913
Change-Id: I20d8f5632f76774cad64af30a6aa1f1ab172152f
Merged-In: I20d8f5632f76774cad64af30a6aa1f1ab172152f
2021-05-21 15:16:32 +00:00
Calin Juravle
2d2bd54bd5 Update the use of registerAppInfo
Pass additional parameters to ART to assist with better profiling
and debuggability.

(cherry picked from commit 3e308c6270)

Test: m
Bug: 182793486
Bug: 185979271

Merged-In: Iae0beab92194d75f191147578922c760f04470b9
Change-Id: Iae0beab92194d75f191147578922c760f04470b9
2021-05-21 14:13:03 +00:00
Siim Sammul
d5dd055c7e Merge "Push the latency histograms to statsd" 2021-05-21 09:41:27 +00:00
Siim Sammul
91223d54e5 Add sharding to BinderCallsStats collection and make it configurable. The
hash code of the callsession will be used to select which apis will be
collected for based on the configured modulo. This is needed to reduce
the amount of data collected from public devices.

Test: unit tests
Bug: 180584913
Change-Id: I66ea9ad9a7f4b66b135358ac899ed425c731760a
2021-05-21 09:36:04 +00:00
Suprabh Shukla
715ecc2bac Use BinderDeathDispatcher for alarm listeners
This ensures only one JNI strong reference for the death recipient when
the same binder is used for multiple linkToDeath calls.

Test: atest CtsAlarmManagerTestCases
atest FrameworksCoreTests:BinderDeathDispatcherTest
atest FrameworksMockingServicesTests:AlarmManagerServiceTest

Bug: 186792832
Change-Id: Ieea2d8f4e495a4c4687378db9d0b8c6949a0406a
Merged-In: Ieea2d8f4e495a4c4687378db9d0b8c6949a0406a
2021-05-20 23:52:32 -07:00
Yanting Yang
f0f05520aa Merge "Add Settings page scroll CUJ to InteractionJankMonitor" into sc-dev am: 8cd70e05b1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14453116

Change-Id: Iad3e8eb4f542c1df22c7686b1a0ac85d43893b6b
2021-05-21 03:25:04 +00:00
Yanting Yang
8cd70e05b1 Merge "Add Settings page scroll CUJ to InteractionJankMonitor" into sc-dev 2021-05-21 03:02:05 +00:00
Dmitri Plotnikov
a00309cdc2 Fix time-in-foreground to include PROCESS_STATE_FOREGROUND_SERVICE
Bug: 188656360
Test: atest FrameworksCoreTests:BatteryUsageStatsProviderTest
Change-Id: I29312fb36e13181a57c68bb9968b103256f14077
2021-05-20 18:56:46 -07:00
Joe Bolinger
fdc48a48c5 Delay starting fingerprint sensor when using multi-sensor devices.
Fix: 183951321

Test: atest com.android.server.biometrics
Test: atest com.android.systemui.biometrics
Test: manual with integration app

Change-Id: Ib1e92278d695b0ce5b6f799f51007262ade31f05
2021-05-20 18:56:31 -07:00
Jing Ji
a969b77e52 Merge "Reset common association source while resetting procstats associations" into sc-dev am: dec2e2169e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14554723

Change-Id: I82eb6c1abdb211c60ce885e799830ebeb8118e55
2021-05-21 00:33:57 +00:00
Jing Ji
dec2e2169e Merge "Reset common association source while resetting procstats associations" into sc-dev 2021-05-21 00:18:14 +00:00
Alison Cichowlas
013c379752 Set RESULT_OK on exit via copy button.
Bug: 188778935
Test: manual & atest ChooserActivityTest
Change-Id: I6a45a14bd145234e9a7743bb6e68fe05ac05de46
2021-05-20 20:02:58 -04:00
Calin Juravle
e409733954 Merge "Update the use of registerAppInfo" am: 95590e1a62 am: d922359e81
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1704169

Change-Id: Iaf5781b354a3d3e93309f920341f7b7576fa1f44
2021-05-20 22:18:37 +00:00
Calin Juravle
95590e1a62 Merge "Update the use of registerAppInfo" 2021-05-20 21:46:00 +00:00
Jing Ji
ea9ed7b0f2 Reset common association source while resetting procstats associations
Bug: 188130785
Bug: 183101565
Bug: 186438656
Test: atest ProcStatsValidationTests
Test: atest ProcessStatsDumpsysTest
Test: atest CtsIncidentHostTestCases:ProcStatsProtoTest
Test: atest CtsStatsdHostTestCases
Change-Id: I0a555c86bc6ba341a6344f28f73faca914d65c3f
2021-05-20 13:05:24 -07:00