Commit Graph

16030 Commits

Author SHA1 Message Date
Dmitri Plotnikov
0d1235b411 Merge "Remove references to BatterStatsHelper from BatteryUsageStatsProvider" into sc-dev 2021-03-24 18:35:48 +00:00
Alison Cichowlas
edfb697d6b Merge "Update strings - chooser/resolver WP strings." into sc-dev 2021-03-24 15:22:26 +00:00
Dmitri Plotnikov
b8b58ebd2f Remove references to BatterStatsHelper from BatteryUsageStatsProvider
Also, add BatteryUsageStatsQuery.getMaxStatsAge() to allow throttling
of battery stats sync.

Bug: 174186345
Test: atest FrameworksCoreTests:com.android.internal.os.BatteryStatsTests
Change-Id: I097c6b9575422837a522cf313a320e83221cdfab
2021-03-23 19:29:11 -07:00
Ahaan Ugale
8f02ccf5dc Merge "Allow HotwordDetectionService to return HotwordRejectedResult." into sc-dev 2021-03-23 21:58:59 +00:00
TreeHugger Robot
20e5c931b5 Merge "Use the PersistableBundle instead of the Bundle" into sc-dev 2021-03-23 21:42:26 +00:00
Alison Cichowlas
f1f6c4ac7e Update strings - chooser/resolver WP strings.
Test: manual verification of string update, atest ChooserActivityTest
Bug: 182361692
Change-Id: I6ec45c5ae2a9877bb2114243589a0da0247bed95
2021-03-23 16:06:14 -04:00
Matt Casey
ba520c1f94 Merge "Remove long screenshot flag" into sc-dev 2021-03-23 20:00:09 +00:00
Dmitri Plotnikov
f2dca81569 Merge "Change getStatsStartRealtime to getStatsStartTimestamp" into sc-dev 2021-03-23 17:29:38 +00:00
Dmitri Plotnikov
a5ceb34339 Change getStatsStartRealtime to getStatsStartTimestamp
The implementation is now based on BatteryStats.getStartClockTime

Bug: 183434301
Test: atest FrameworksCoreTests:com.android.internal.os.BatteryUsageStatsTest

Change-Id: I55184f981b2583b184d859788837443e58eccb6c
2021-03-22 22:56:39 -07:00
lpeter
58f920e023 Use the PersistableBundle instead of the Bundle
It will be more secure to use PersistableBundle
instead of Bundle for passing the configrations
data from VoiceInteractor to HotwordDetectionService.

Bug: 176938300
Test: Test: atest CtsVoiceInteractionTestCases
Test: atest CtsVoiceInteractionTestCases --instant
Change-Id: I19a412cca5e2cd5f9f79a112a9d7da8fd3a00a38
2021-03-23 12:32:25 +08:00
Jeff DeCew
2a12cfadb4 Merge "New MediaStyle template:" into sc-dev 2021-03-23 02:14:06 +00:00
Adam Bookatz
6b8c61c8fc Merge "SparseDoubleArray" into sc-dev 2021-03-22 21:45:29 +00:00
Ahaan Ugale
8151b18c52 Allow HotwordDetectionService to return HotwordRejectedResult.
This is simply passed through the system to the AlwaysOnHotwordDetector.

Bug: 182788844
Bug: 168305377
CTS-Coverage-Bug: 183425641
Test: builds
Change-Id: I2b7147b330051d870bfe970e9b5e16aaab52e9bc
2021-03-22 13:48:23 -07:00
TreeHugger Robot
b4c0d6464e Merge "Implement dark launch logic for sharesheet aiai model." into sc-dev 2021-03-22 17:45:13 +00:00
Song Hu
4d4121f85c Implement dark launch logic for sharesheet aiai model.
Route the sharesheet user interaction from PeopleService to Remote Prediction Service, while PeopleService is making inference for sharesheet.
It is guarded by the flag "adb shell device_config put systemui dark_launch_remote_prediction_service_enabled true"

Test: test on local device
Bug: 180933488
Change-Id: I7db52c69224e69ad3125362185e2ffd1a474bb78
Merged-In: I7db52c69224e69ad3125362185e2ffd1a474bb78
(cherry picked from commit 51daca2ea3)
2021-03-22 17:45:00 +00:00
Jeff DeCew
ff165814e1 New MediaStyle template:
* Remove all media-specific color extraction and colorization logic
* Remove all 'large icon' gradienting logic
* Simplify base (headerless) style to use a LinearLayout instead of tweaking margins
* Make compact media layout a tweak of the base (headerless) layout
* Make big_media layout a tweak of the big_base layout
* Fix an unnecessary swooping animation that happened on expand
* Ensure RTL layout also works

Fixes: 172652345
Test: manual testing w/ updated notify2
Change-Id: I11c1494c0ac32aaf3e9d2010560cc8f1d8c50037
2021-03-22 11:13:08 -04:00
Song Hu
64515ec80b Surface DS targets as per their own score and ranking, remove customized ranking logic (max shortcuts count limit per app, app share adjustment).
This is guarded by the flag  "apply_sharing_app_limits_in_sysui".

Bug: 182146792
Test: verify on local phone
Test: atest ChooserActivityTest
Change-Id: Ic03395343432015400f37299e5748932d2bd9eaa
Merged-In: Ic03395343432015400f37299e5748932d2bd9eaa
(cherry picked from commit d001e08b92)
2021-03-22 13:09:13 +00:00
Song Hu
7e53b6437a Merge "Remove append/quota mechanism from direct share target surfacing, due to ChooserTargetSevice sunset." into sc-dev 2021-03-22 13:04:30 +00:00
Adrian Roos
07f3583061 Merge "IME Insets: Remove obsolete applyImeVisibility call" into sc-dev 2021-03-22 08:38:04 +00:00
Matt Casey
81ab12f11c Remove long screenshot flag
It's been default true for a while but some users seem to have a false
value on their phones. We intend for everyone to have it right now.

Bug: 183277962
Test: Builds, long screenshot functionality shows up.
Change-Id: I1a7bb3eddc2f613943b8c1c78a2ac43aa07466a6
2021-03-20 17:17:45 -04:00
Song Hu
239267b043 Remove append/quota mechanism from direct share target surfacing, due to ChooserTargetSevice sunset.
Bug: 182146792
Test: verify on local phone
Change-Id: Id9f76c9e1be5b0dfdff5ff1256b90a4b397045d6
Merged-In: Id9f76c9e1be5b0dfdff5ff1256b90a4b397045d6
(cherry picked from commit b5a385a186)
2021-03-20 02:49:43 +00:00
Adam Bookatz
8bcb4c9219 SparseDoubleArray
Introduces a SparseDoubleArray class.
It is based on a SparseLongArray, storing the double values
in the bits of the long in the SparseLongArray.

This is a hidden class.
Not all long-term desired features of SparseDoubleArray
have necessarily been implemented here; only the ones needed
right now have been written.

Bug: 182845832
Test: atest BatteryStatsTests
Test: atest FrameworksCoreTests:android.util.SparseDoubleArrayTest
Change-Id: Id68b22328f2660839e2005990766d99140b00c16
2021-03-19 17:31:56 -07: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
Adrian Roos
142218b1f9 IME Insets: Remove obsolete applyImeVisibility call
Test: atest InsetsControllerTest ImeInsetsSourceConsumerTest
Bug: 167947407
Change-Id: I8abb210eb20a17f5dfd6d071c57838afb9deb263
2021-03-19 17:12:26 +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
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
6d65ee195a Merge "Prompt notifications for non-accessibility services" into sc-dev 2021-03-18 05:38:07 +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
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
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
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