Commit Graph

15991 Commits

Author SHA1 Message Date
Lucy Chang
6d65ee195a Merge "Prompt notifications for non-accessibility services" into sc-dev 2021-03-18 05:38:07 +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
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
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
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
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
Mark Renouf
ce4e40ac0f Merge "Splits up internal binder api for scroll capture" into sc-dev 2021-03-16 18:21:37 +00:00
Zimuzo Ezeozue
e080255297 Merge "Fix FileSystemProvider open for external USB files" into sc-dev 2021-03-16 16:13:51 +00:00
TreeHugger Robot
3f31bd0578 Merge "Revert "Add the LCE system API"" into sc-dev 2021-03-16 12:58:14 +00:00
Martijn Coenen
8d60c5ceb4 Revert "Add the LCE system API"
Revert "Add CTS test for onLinkCapacityEstimateChanged"

Revert "[Telephony] Notify onLinkCapacityEstimateChanged"

Revert "Remove the system API of getCarrierBandwidth()"

Revert submission 13662828-LceApi

Reason for revert: b/182869926, breaks errorprone
Reverted Changes:
I1998c7e49:Add CTS test for onLinkCapacityEstimateChanged
Id69fa8b7a:Integrate New LCE Api
I0cc020ba3:Remove the system API of getCarrierBandwidth()
Id613dc152:Add the LCE system API
If7cede0f4:[Telephony] Notify onLinkCapacityEstimateChanged

Change-Id: I30813c321509ac44fa0119b0ce905fd28b0f139c
2021-03-16 09:45:23 +00:00
Kai Shi
a6c9e47218 Merge "Add the LCE system API" into sc-dev 2021-03-16 05:39:07 +00:00
Mark Renouf
400a505d4d Splits up internal binder api for scroll capture
Splits the connection callback out from the session
callbacks.

Use ListenableFuture at the ScrollCaptureClient layer
to safely chain together futures, provide a better
exception handling/reporting path, and allow for
cancellation of background tasks.

Bug: 180671218
Test: atest ScrollCaptureClientTest ScrollCaptureConnectionTest
Test: atest ScrollCaptureFrameworkSmokeTest
Change-Id: Ibc8536d12a5554f62b3d7e1f4f717d3589ec45e0
2021-03-16 02:07:53 +00:00
George Mount
b1d4c812ff Merge "Make internal recycler view use stretch edge effect" into sc-dev 2021-03-15 23:00:22 +00:00
Kai Shi
df3e93af96 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
Change-Id: Id613dc152e524045a89295e5dd03171b22377e16
2021-03-15 15:00:01 -07:00
Teddy Katz
3d4d489fa3 Allow configuring home button longpress duration with a flag
(cherry picked from commit 9e64d0934a)

Bug: 182169548
Test: tried various flag values locally on a Pixel 3 + atest SystemUITests
Merged-In: I738d86e5ef3069a03de41fa6a5bc7cdd58e3bc88
Change-Id: I738d86e5ef3069a03de41fa6a5bc7cdd58e3bc88
2021-03-15 19:41:06 +00:00
Treehugger Robot
25c0656b54 Merge "Adds OWNERS file" am: fa31d37ac7 am: f690d62fa2
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1635326

Change-Id: I03e6053d9e30230c8d970fd25679964d671f7a2e
2021-03-15 17:26:38 +00:00
Aaron Huang
c03b2044dc Move some constants from TrafficStatsConstants to NetworkStackConstants
Keep the constants are only used by framework in TrafficStatsConstants
and move the others to NetworkStackConstants which is in libs/net.

Bug: 182349970
Test: FrameworksNetTests
      NetworkStackTests
      TetheringTests
Change-Id: Ib667c115e5f1e01237d88b77bba753363da309cc
2021-03-15 22:50:37 +08:00
Jeff DeCew
3530bccf2b Merge changes I6e96864c,I6bc865d5,I15ca6994 into sc-dev
* changes:
  Hide app name from collapsed CallStyle.
  CallStyle now supports contextual actions (e.g. smart replies)
  Fix the layout issue with the expand button of the CallStyle
2021-03-15 13:18:03 +00:00
TYM Tsai
d12fef90c5 Adds OWNERS file
Those files under view/inline/ are related the Autofill inline
suggestions.

Bug: 177641730
Test: N/A
Change-Id: I0b6ac33a29757f2489441c69450ccacea4f756da
2021-03-15 17:37:16 +08:00
Jacky Kao
d8e01d08aa Logs magnification feature behavior. (1/2)
Uses the atom MagnificationUsageReported in westworld to log the
activated mode and its duration of the magnification.

The timing of logging the MagnificationUsageReported is
when the magnification feature is deactivated.

Bug: 154021596
Test: a11y CTS & unit tests
Test: make statsd_testdrive && ./out/host/linux-x86/bin/statsd_testdrive 345
Merged-In: I708e9731da23658774e462968a6b9df648b0ed19
Change-Id: I708e9731da23658774e462968a6b9df648b0ed19
(cherry picked from commit e19cdef475)
2021-03-15 06:32:57 +00:00
TreeHugger Robot
776bd5c5bc Merge "Follow up of IInputConnectionWrapper" into sc-dev 2021-03-15 06:00:57 +00:00
Ming-Shin Lu
c04d9963a6 Follow up of IInputConnectionWrapper
Remove unnecessary methods that incidentally added by CL[1]

[1]:  Ice1ea23dcb2351b56ef03b507d8aec8f8fb7b30a

Bug: 167948374
Bug: 163450598
Bug: 181724627
Test: atest CtsInputMethodTestCases
Change-Id: I230e78aada7b171fa2723bc5a32da991896b4ddd
2021-03-15 12:04:44 +08:00
Kohsuke Yatoh
6b22120e8f InputMethodInfo attr to suppress spell checker.
If InputMethodService declares suppressesSpellChecker="true", the system
SpellCheckerService will be disabled.

With TextView, when IMSs are switched while the user is editing,
SuggestionSpans that were previously added will not be removed even if
the next IMS declares suppressesSpellChecker="true".
This is because we don't know if the SuggestionSpans were from Spell
Checker, App, or IMS.

Bug: 153473490
Test: atest CtsInputMethodTestCases:SpellCheckerTest
Change-Id: Ia22b8758111087818beea8c07b1c173f1a94b8e4
2021-03-13 10:07:54 -08:00
TreeHugger Robot
11a7f13364 Merge "Revert "Avoid IME restart for configChanges"" into sc-dev 2021-03-13 16:05:30 +00:00
Yohei Yukawa
1e7d125662 Revert "Avoid IME restart for configChanges"
Revert "Add cts for InputMethodService configChanges"

Revert submission 13727407-167948419

Reason for revert:
Possible root cause of Bug 182604598.

Reverted Changes:
Ib94fddadb:Avoid IME restart for configChanges
Ieca327b2e:Add cts for InputMethodService configChanges

Bug: 167948419
Bug: 182604598
Test: presubmit
Change-Id: I3accc55ac65d0e2ec30c3f6023680fda27ad3e97
2021-03-13 01:08:48 +00:00
James O'Leary
c7b3b1b5bd Merge "Fix crash when quantizing" into sc-dev 2021-03-12 21:15:26 +00:00
TreeHugger Robot
ff51356f0d Merge "Utilize measured cpu batteryconsumption in CpuPowerCalculator" into sc-dev 2021-03-12 20:51:44 +00:00
SongFerng Wang
3e9d0bedf6 Merge "The phone didn't reload the allowed Network Type" into sc-dev 2021-03-12 18:49:49 +00:00
James O'Leary
14c6e6fcf5 Fix crash when quantizing
Incoming pixels are negative numbers. Performing this operation
ensures we receive an accurate alpha value, without it, all pixels have negative alphas.

Fixes: 182523380
Test: Add logs, see that alphas _before_ this patch are logged
as negative numbers, causing all pixels to be marked as transparent and ignored in quantization. Add patch, see logs
indicate valid alphas.

Change-Id: Ice7b7db245de9dd089cffc490b2e24780f9c025b
2021-03-12 13:30:22 -05:00
Kholoud Mohamed
18f5dc3caa Merge "Exposed some testAPIs in BatteryStatsManager" into sc-dev 2021-03-12 16:08:34 +00:00
Andrei-Valentin Onea
cbad1af95e Merge changes Idd7d86f9,I73569744 am: 420476e0cd am: 086acc1ba8 am: 3fb101a052
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1532338

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iab663363b5f3156531bd8f8f0a876582bc843b7d
2021-03-12 15:19:20 +00:00
Andrei-Valentin Onea
3fb101a052 Merge changes Idd7d86f9,I73569744 am: 420476e0cd am: 086acc1ba8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1532338

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Idec178eb39c014c9817db666fd3d5b5a39be52ba
2021-03-12 14:38:40 +00:00
TreeHugger Robot
ac33aa4735 Merge "Merge ControlledInputConnectionWrapper into parent class" into sc-dev 2021-03-12 14:29:02 +00:00
Andrei-Valentin Onea
420476e0cd Merge changes Idd7d86f9,I73569744
* changes:
  Do not enable changes newer than the current sdk
  Add support for loading a static overrides file located in /product.
2021-03-12 13:28:50 +00:00
Ming-Shin Lu
af47729a15 Merge ControlledInputConnectionWrapper into parent class
Since ControlledInputConnectionWrapper is the only derived class
of IInputConnectionWrapper hence it doesn't have a reason keep them
separate.

Bug: 167948374
Bug: 163450598
Test: atest CtsInputMethodTestCases
Change-Id: Ice1ea23dcb2351b56ef03b507d8aec8f8fb7b30a
2021-03-12 20:12:50 +08:00