Commit Graph

16061 Commits

Author SHA1 Message Date
Jeff Sharkey
abfd883b8d Merge "OWNERS for a few Voice Interaction files." am: d702544c9f am: 32e4b44b47 am: cc506c3882 am: e0f6165387
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1643650

Change-Id: Ie95fffaff13c9b04ace0ff05d46f6cbe6c2a3c93
2021-03-19 21:50:29 +00:00
TreeHugger Robot
ceb6bd125c Merge "Add support for stretch overscroll to internal ViewPager" into sc-dev am: 72f1c8bca4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13828644

Change-Id: I2534f2d3092806f3b4cc468e4996b0ef43764b61
2021-03-19 21:50:05 +00:00
Jeff Sharkey
e0f6165387 Merge "OWNERS for a few Voice Interaction files." am: d702544c9f am: 32e4b44b47 am: cc506c3882
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1643650

Change-Id: Idf7c352b2e90ef93d833ecb8896444c5228e53e7
2021-03-19 21:17:00 +00:00
TreeHugger Robot
72f1c8bca4 Merge "Add support for stretch overscroll to internal ViewPager" into sc-dev 2021-03-19 21:15:34 +00:00
Jeff Sharkey
cc506c3882 Merge "OWNERS for a few Voice Interaction files." am: d702544c9f am: 32e4b44b47
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1643650

Change-Id: I60706a7e6b932a322720632017596f7e75bc9880
2021-03-19 20:36:01 +00:00
Jeff Sharkey
d702544c9f Merge "OWNERS for a few Voice Interaction files." 2021-03-19 19:21:48 +00:00
Treehugger Robot
a5e337b0b3 Merge "Keystore 2.0: Enable by default." 2021-03-19 16:06:00 +00:00
TreeHugger Robot
58710e9a15 Merge "Keystore 2.0: Enable by default." into rvc-qpr-dev-plus-aosp 2021-03-19 15:05:00 +00:00
Janis Danisevskis
8b15af2a92 Keystore 2.0: Enable by default.
Keystore 2.0 is to replace Keystore. This patch removes
checking the keystore2 enable property and installs the Keystore 2.0 SPI
by default.

cherry-pick from commit 7aa8d2aae2

Bug: 171563717
Test: N/A
Merged-In: I13a3db8ca736cceb06e864457046ff9ca641322d
Change-Id: I13a3db8ca736cceb06e864457046ff9ca641322d
2021-03-18 22:53:49 +00:00
Kai Shi
1224d2650b Merge "Add the LCE system API" am: 26ba4d0d09 am: 855075a2c2
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1643471

Change-Id: I19a67dc2479548452f96c82e91c2a236ffbbf8ad
2021-03-18 22:46:08 +00:00
Ilya Matyukhin
4b4189d5d7 Merge changes from topic "implement-lhbm" into sc-dev am: 2ce0a3739d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13887026

Change-Id: I9e9c20bebaa8bdae13f085b523dd36eed7b975c2
2021-03-18 22:21:22 +00:00
TreeHugger Robot
14cfa8c63c Merge "BatteryStatsImpl: SparseDoubleArray" into sc-dev am: 86f577ffae
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13909630

Change-Id: Ib6eba18e4f56be8899a15ef8d362fa39e423364f
2021-03-18 21:57:49 +00:00
Ilya Matyukhin
2ce0a3739d Merge changes from topic "implement-lhbm" into sc-dev
* changes:
  Introduce IUdfpsHbmListener
  Implement LHBM/GHBM switch
2021-03-18 21:27:21 +00:00
TreeHugger Robot
86f577ffae Merge "BatteryStatsImpl: SparseDoubleArray" into sc-dev 2021-03-18 18:08:07 +00:00
Ilya Matyukhin
0f75ed396f Introduce IUdfpsHbmListener
Bug: 181682258
Test: atest CommandQueueTest
Change-Id: Ia03b845ff036d7267a5dfb5691da33562fda2aab
2021-03-18 12:38:08 +00:00
Lucy Chang
e5757df425 Merge "Prompt notifications for non-accessibility services" into sc-dev am: 6d65ee195a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13451719

Change-Id: Iaa9aa227d15870c904e35a796ead5e61d053af35
2021-03-18 05:46:06 +00:00
Lucy Chang
6d65ee195a Merge "Prompt notifications for non-accessibility services" into sc-dev 2021-03-18 05:38:07 +00:00
Janis Danisevskis
5bd5093d4e Merge "Keystore 2.0: Enable by default." into sc-dev am: 88b5e92973
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13892784

Change-Id: If638b6c8a2aa797c1de040de48402cafb96a364d
2021-03-18 05:27:32 +00:00
Ahaan Ugale
70e3812542 OWNERS for a few Voice Interaction files.
Change-Id: I8855c9bd420e0c1708ca4443e1acac038ec0082f
2021-03-18 05:14:00 +00:00
Janis Danisevskis
88b5e92973 Merge "Keystore 2.0: Enable by default." into sc-dev 2021-03-18 05:12:55 +00:00
TreeHugger Robot
a4b2f095c0 Merge changes from topic "aff_inline_tooltip-sc-dev" into sc-dev am: c49aefef55
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13737577

Change-Id: Ida832917634b3920e88dafcc5db3654fd80335b6
2021-03-18 05:08:26 +00:00
TreeHugger Robot
c49aefef55 Merge changes from topic "aff_inline_tooltip-sc-dev" into sc-dev
* changes:
  Implement inline suggestion tooltip
  Add interface for the inline suggestion tooltip
2021-03-18 04:32:15 +00:00
lucychang
b98a658c27 Prompt notifications for non-accessibility services
Prompts a notification for the non-accessibility category service after
24 hours enabled to alert users the service has powerful permissions to
view and control the device. And the notification won't be resend to
the same service by saving the dismiss record to Settings.

Bug: 176965357
Test: atest AccessibilitySecurityPolicyTest
      atest PolicyWarningUIControllerTest
      and manually test

Change-Id: Id5daf7b14dc88cf3f71a53f46fa9a8f1dee91822
2021-03-18 03:01:10 +00:00
Kai Shi
857391f361 Add the LCE system API
Add the link capacity estimate system API.
Remove the system API of getCarrierBandwidth() and CarrierBandwidth as
they are replaced by the new LCE system API in PhoneStateListener.

Bug: 180434672
Bug: 176814680
Test: manual test of the new LCE system API in LinkBandwidthEstimator
Test: atest -c PhoneStateListenerTest

Merged-In: I5899acf02006a164e31f9b82aeaa7974dd6d2869
Change-Id: I5899acf02006a164e31f9b82aeaa7974dd6d2869
2021-03-17 18:56:11 -07:00
Adam Bookatz
ece94a7e3e BatteryStatsImpl: SparseDoubleArray
As a temporary measure, a Map<Uid,Double> had been
used in intermediate calculations to store each uids
measured energy values. For efficiency reasons, we convert
this to a SparseDoubleArray, which we implement here.

This is an alternative solution to ag/13907602.

Bug: 182845832
Test: atest BatteryStatsTests
Change-Id: Id5696e5fb6814da0889fde12f4bb8d2b5427c6fe
2021-03-17 18:36:12 -07:00
TYM Tsai
d66c967c71 Implement inline suggestion tooltip
In the InlineSuggestionFactory, it will filter the tooltips by the
field let only the first one can pass to the IME and drop others.
When the IME inflates the inline suggestion, if there is a tooltip of
the suggestion view, inflates the tooltip view at the same time. It
will create the InlineTooltipUi that will be a popup window and
contains the surface view of the tooltip.

Bug: 172024354
Test: atest CtsAutoFillServiceTestCases:InlineTooltipTest
Change-Id: I6f20dcad6d03432017e684964eca52dff2609205
2021-03-18 09:30:45 +08:00
Remi NGUYEN VAN
05a4c54143 Merge "Remove Protocol.BASE_* usage in Connectivity" am: 5dad6d6e5b am: 1cab8428b5 am: b9a3b1b03b am: 4514d865b1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1629266

Change-Id: I6142bc4ca678a6a525855b73a3c3e28fa7b5d56c
2021-03-17 22:30:46 +00:00
Remi NGUYEN VAN
52a4f82ff3 Merge "Move LocationPermissionChecker to libs/net" am: a89a2ae676 am: eb7e0ad2c1 am: 0eae8ebfd9 am: ed601a2eed
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1618840

Change-Id: I888b1f0cdecaf8fec87b0d355de2d392d2a3ebf4
2021-03-17 22:22:47 +00:00
Remi NGUYEN VAN
4514d865b1 Merge "Remove Protocol.BASE_* usage in Connectivity" am: 5dad6d6e5b am: 1cab8428b5 am: b9a3b1b03b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1629266

Change-Id: I0bb7aec183efdeed894447a3b5abc446b9ca46c8
2021-03-17 22:20:59 +00:00
Remi NGUYEN VAN
ed601a2eed Merge "Move LocationPermissionChecker to libs/net" am: a89a2ae676 am: eb7e0ad2c1 am: 0eae8ebfd9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1618840

Change-Id: Ia9beda02a8183eda4fe195404980d4d9012afb3f
2021-03-17 22:09:51 +00:00
Dmitri Plotnikov
e111094bc0 Merge "Fix certain BatteryStatsTests and enable presubmit" into sc-dev am: fa304e1f71
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13895205

Change-Id: I021e0a39111b4ca1dc4f59c481d6cc2248cbab93
2021-03-17 21:23:04 +00:00
TreeHugger Robot
a29e65b78b Merge "BatteryStats measured energy for Wifi & Bluetooth" into sc-dev am: 56a4ea5684
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13837769

Change-Id: I7c052d430702bace881e6d0d461e1047c9f00e35
2021-03-17 21:14:04 +00:00
Treehugger Robot
e0c5431df2 Merge "Adds OWNERS file" am: fa31d37ac7 am: f690d62fa2 am: 25c0656b54 am: b45183758e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1635326

Change-Id: Ic250a9a680f4267c69672fa4b82d4e0213189d96
2021-03-17 20:52:22 +00:00
Dmitri Plotnikov
fa304e1f71 Merge "Fix certain BatteryStatsTests and enable presubmit" into sc-dev 2021-03-17 17:38:59 +00:00
TreeHugger Robot
56a4ea5684 Merge "BatteryStats measured energy for Wifi & Bluetooth" into sc-dev 2021-03-17 16:32:53 +00:00
Treehugger Robot
b45183758e Merge "Adds OWNERS file" am: fa31d37ac7 am: f690d62fa2 am: 25c0656b54
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1635326

Change-Id: I497f2eff5c6f6d95345ba59e4e144fe9bd6d324a
2021-03-17 15:58:34 +00:00
Remi NGUYEN VAN
b9a3b1b03b Merge "Remove Protocol.BASE_* usage in Connectivity" am: 5dad6d6e5b am: 1cab8428b5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1629266

Change-Id: Ib94847ab028a1ead9a283148206ec688ce02582e
2021-03-17 15:50:15 +00:00
Janis Danisevskis
3194dc36b5 Keystore 2.0: Enable by default.
Keystore 2.0 is to replace Keystore. This patch removes
checking the keystore2 enable property and installs the Keystore 2.0 SPI
by default.

Bug: 171563717
Test: N/A
Merged-In: I13a3db8ca736cceb06e864457046ff9ca641322d
Change-Id: I13a3db8ca736cceb06e864457046ff9ca641322d
2021-03-17 08:47:28 -07:00
Remi NGUYEN VAN
4ea08c2ab4 Remove Protocol.BASE_* usage in Connectivity
ConnectivityManager and NetworkAgent do not share their handler with any
other component, so there is no reason to use addresses that do not
overlap. Protocol.BASE_* was written to allow for interaction "between
different StateMachine implementations without a conflict", but the
classes do not use StateMachine, and they do not have such interactions.

Bug: 177046265
Test: atest FrameworksNetTests
Change-Id: I18c341d4a2c01cb9559d682a9ad1ff259e6b5855
2021-03-17 20:56:50 +09:00
Jacky Kao
fb33610cdd Merge "Logs magnification feature behavior. (1/2)" into sc-dev 2021-03-17 07:19:14 +00:00
Janis Danisevskis
7aa8d2aae2 Keystore 2.0: Enable by default.
Keystore 2.0 is to replace Keystore. This patch removes
checking the keystore2 enable property and installs the Keystore 2.0 SPI
by default.

Bug: 171563717
Test: N/A
Change-Id: I13a3db8ca736cceb06e864457046ff9ca641322d
2021-03-17 04:01:17 +00:00
Aaron Huang
3a05ed06af Merge "Move some constants from TrafficStatsConstants to NetworkStackConstants" into sc-dev am: 75b14b135b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13839791

Change-Id: Ic25bc103801e8acee8774d6f72d83d5c7924b44e
2021-03-17 03:44:41 +00:00
Aaron Huang
75b14b135b Merge "Move some constants from TrafficStatsConstants to NetworkStackConstants" into sc-dev 2021-03-17 03:16:56 +00:00
Dmitri Plotnikov
33510a27c8 Fix certain BatteryStatsTests and enable presubmit
Bug: 180015146
Test: atest BatteryStatsTests

Change-Id: I57ba9e750c97f2e5d6a514b81d4cd537028b31ac
2021-03-17 02:48:44 +00:00
Remi NGUYEN VAN
0eae8ebfd9 Merge "Move LocationPermissionChecker to libs/net" am: a89a2ae676 am: eb7e0ad2c1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1618840

Change-Id: I01d73266a4b4923ab098bfb6f50155d90b1effec
2021-03-17 01:42:30 +00:00
Adam Bookatz
4127267e49 BatteryStats measured energy for Wifi & Bluetooth
Measured energy data for Wifi is received, processed, attributed
to uids, and delivered. Same for Bluetooth.

Since Wifi power analysis is done via two methods (ControllerActivity data
or packet data), depending on what is available on the device, the
measured energy method also takes into account these two methods for
attribution purposes.

For Bluetooth, the only raw data is ControllerActivity data, so it is
simpler.

In both cases, if that data already contains energy data from the
ControllerActivity, but the device also
has measured energy data, then the controller energy data is used for
normalization but is otherwise replaced by the measured energy data. In
other words, the measured energy data is treated preferentially.

Also fixes a minor bug in BSI.initMeasuredEnergyStatsLocked() which
had a stray early return line.

Test: atest BatteryStatsTests
Bug: 174818228
Change-Id: Id4728fcd5e6f226664e578a4c19c4aaa5246ff4b
2021-03-16 18:00:19 -07:00
Remi NGUYEN VAN
a89a2ae676 Merge "Move LocationPermissionChecker to libs/net" 2021-03-17 00:13:21 +00:00
Kai Shi
f67e110ecb Merge "Revert "Revert "Add the LCE system API""" into sc-dev am: a2dce61157
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13887905

Change-Id: I57aaa77267f65c2f79c84459e71bb1680cb48b44
2021-03-16 21:35:18 +00:00
Kai Shi
a2dce61157 Merge "Revert "Revert "Add the LCE system API""" into sc-dev 2021-03-16 20:43:50 +00:00
Kai Shi
5d530fab23 Revert "Revert "Add the LCE system API""
This reverts commit 8d60c5ceb4.

Reason for revert: <this CL doesn't break error prone build. Will redo the CTS one which does break the build>

Change-Id: I5899acf02006a164e31f9b82aeaa7974dd6d2869
Bug: 182869926
2021-03-16 20:38:38 +00:00