Commit Graph

16234 Commits

Author SHA1 Message Date
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
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
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
Yanting Yang
8cd70e05b1 Merge "Add Settings page scroll CUJ to InteractionJankMonitor" into sc-dev 2021-05-21 03:02:05 +00: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
dec2e2169e Merge "Reset common association source while resetting procstats associations" into sc-dev 2021-05-21 00:18:14 +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
Jeff DeCew
9b357d5480 Improve notification style comparisons
Bug: 178272497
Test: atest SystemUITests
Change-Id: I9b1a55834360e48e83c09dc1d61b9b35f1f6ec09
2021-05-20 15:02:00 -04:00
Jeff DeCew
fd4d01d8a0 Merge "Use "collapsible indent" for actions of any notification type." into sc-dev 2021-05-20 18:56:27 +00:00
Jaewan Kim
d05e7856d7 Merge "Stop ignoring media key events in PhoneFallbackEventHandler while in call" into sc-dev 2021-05-20 13:46:57 +00:00
Kholoud Mohamed
b04a005c3f Merge "Revert "Create non-bypassable op restrictions"" into sc-dev 2021-05-20 09:48:56 +00:00
Ocean Chen
0d02112ea4 Revert "Create non-bypassable op restrictions"
This reverts commit a023924afd.

Reason for revert: Test Monitor triggers the test build

Bug: 188708756
Bug: 188733943
Change-Id: I2d17d4f77287020953fb559cf98ff8475f32ed1b
2021-05-20 07:47:51 +00:00
Jeff DeCew
fa01c20632 Use "collapsible indent" for actions of any notification type.
Fixes: 175291676
Test: manual visual testing
Change-Id: I30dc2c021338d8c8710781ff6e1d209e01757310
2021-05-19 19:01:34 -04:00
Evan Severson
05a30e41f3 Merge "Create non-bypassable op restrictions" into sc-dev 2021-05-19 19:24:22 +00:00
Abel Tesfaye
784886816d Merge "Add LatencyTracker for CameraAutoRotate in RotationResolverManagerPerUserService" into sc-dev 2021-05-19 17:38:51 +00:00
Evan Severson
a023924afd Create non-bypassable op restrictions
Even if the app is privileged or has the audio retriction bypass it
can't bypass these restrictions.

These will be used for the mic and camera toggles since under no
circumstances should sensitive information reach the application layer
while the toggles are muting.

Test: Verify privileged app couldn't access mic when toggle is blocking
Fixes: 188122748
Change-Id: Ib1bad074b3744fd565e8c8ff1c726be91c830d3e
2021-05-19 01:56:21 +00:00
Abel Tesfaye
423b78ae10 Add LatencyTracker for CameraAutoRotate in RotationResolverManagerPerUserService
Bug: 179267540

Test: locally on flame and saw 2021-04-20 16:58:43.610 1660-3381/?
I/LatencyTracker: ACTION_ROTATE_SCREEN_CAMERA_CHECK latency=521 in the
logs

Change-Id: Ibcc838f098e3608a678ab5429a48d16112befd53
2021-05-18 20:49:03 +00:00
Vadim Caen
eacda76449 Merge "Draw splashscreen edge to edge" into sc-dev 2021-05-18 11:22:54 +00:00
Soonil Nagarkar
fe40442304 Merge "Add support for excluding tags from restrictions" into sc-dev 2021-05-17 16:46:55 +00:00
Connor O'Brien
83a5e6ed18 Merge "Don't remove UID data in readKernelCpuUid*TimesLocked" into sc-dev 2021-05-14 21:06:02 +00:00
Jeff Sharkey
673a8c593c Merge "Add OWNERS to com.android.internal.app.procstats" am: a469054f27 am: d59dfa2fb1 am: cd6fbb1b4d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1691206

Change-Id: Id6b191986617d52228c7d7143a70faeadf8b9259
2021-05-14 19:52:17 +00:00
Jeff Sharkey
cd6fbb1b4d Merge "Add OWNERS to com.android.internal.app.procstats" am: a469054f27 am: d59dfa2fb1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1691206

Change-Id: I9f38ff847d021cb1700ca65e28080e0ebc65b8be
2021-05-14 19:32:54 +00:00
Yanting Yang
f4813413e3 Add Settings page scroll CUJ to InteractionJankMonitor
bug: 187306869
Test: make build
Change-Id: Ie0257ce242e66a70315bbbc2d20f9dc6a2f771b0
2021-05-15 02:57:05 +08:00
Dmitri Plotnikov
4d78cddfef Merge "Use getUahDischarge when available" into sc-dev 2021-05-14 18:43:38 +00:00
Jeff Sharkey
a469054f27 Merge "Add OWNERS to com.android.internal.app.procstats" 2021-05-14 18:26:22 +00:00
Cyrus Boadway
01cd8a9d0a Merge "Add Widget CUJ parameter to jank monitoring" into sc-dev 2021-05-14 17:40:15 +00:00
Soonil Nagarkar
393d109f64 Add support for excluding tags from restrictions
Allow user restrictions to provide an excluded map of packages and tags
rather than just packages.

Bug: 187421886
Test: manual
Change-Id: I8f90ba6cdd288068664b352fdb540d0f11fe3dfc
2021-05-14 10:35:46 -07:00
Riddle Hsu
a274fd1c1a Draw splashscreen edge to edge
- Switch from PhoneWindow to FrameLayout
 - Ensure the Action bar is not shown on the splashscree
 - Do not show the contrast scrim under the system bars
 - Use the latest insets API to layout fullscreen

Test: Updated CtsWindowManagerDeviceTestCases:SplashscreenTests
Bug: 181852475
Bug: 184941669
Change-Id: Ifc04bd2227394415cc74c20d2974f4726ec9c789
2021-05-14 17:51:23 +08:00
Tiffany Nguyen
dcec9f1f38 Merge "Log the battery saver changed atom on initialization." into sc-dev 2021-05-14 01:14:12 +00:00
Dmitri Plotnikov
14bc81b983 Merge "Add stats session end timestamp and duration to BatteryUsageStats" into sc-dev 2021-05-13 23:08:50 +00:00
Dmitri Plotnikov
9f08c607f8 Use getUahDischarge when available
Bug: 188092638
Test: atest FrameworksCoreTests:BatteryChargeCalculatorTest
Change-Id: I66b9d232dcd4c674cd9bd7bae7843ae1124e1c34
2021-05-13 15:38:18 -07:00
Kohsuke Yatoh
c27e46f595 Merge changes I09ac3f34,Id3e36922 into sc-dev
* changes:
  Close FDs / mmap handles promptly.
  Remove unused IFontManager#updateFontFile().
2021-05-13 20:42:10 +00:00
Alexander Dorokhine
c09e57ce61 Merge "Link framework-appsearch against the module_current SDK." into sc-dev 2021-05-13 20:03:08 +00:00
Dmitri Plotnikov
c076e7112e Add stats session end timestamp and duration to BatteryUsageStats
Bug: 187223764
Test: atest FrameworksCoreTests:BatteryStatsTests
Change-Id: Iba97050c067cae7945276798273dd328fe040ef9
2021-05-13 11:49:09 -07:00
Kohsuke Yatoh
77e80b860c Remove unused IFontManager#updateFontFile().
The caller was removed in
commit 3de07491d3
This CL also does some cleanup:
- Extract OtfFontFileParser to a separate file.
- Remove boilerplate in UpdatableFontDirTest.

Bug: 187879195
Test: m -j
Test: atest FrameworksServicesTests:UpdatableFontDirTest
Change-Id: Id3e369222c35f550c6d53e8649ab07647701c070
2021-05-13 16:23:47 +00:00
Tiffany Nguyen
64dd223ed1 Log the battery saver changed atom on initialization.
In order for the predicate to be read from the beginning, we need to
ensure the value has some initial state after device reboot
and after logging service starts up.

Bug: 175040249

Test: Manual
Change-Id: Id42f655f3fb42ef3e1ea0cf7bc7b2e536417de7d
Merged-In: Id42f655f3fb42ef3e1ea0cf7bc7b2e536417de7d
2021-05-13 14:33:28 +00:00
Cyrus Boadway
60dc9196e3 Add Widget CUJ parameter to jank monitoring
Android S introduces a new Quickstep animation for launching an activity
from an app widget. This is a similar but distinct CUJ to
LAUNCHER_APP_LAUNCH_FROM_ICON.

Bug: 169042867
Test: presubmit
Change-Id: I3338d31eb2ed74aef0b0697c6070ab7b422514ba
2021-05-13 13:04:42 +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
Dmitri Plotnikov
b5d43c6b71 Merge "Do realistic data mocking in BluetoothPowerCalculatorTest" into sc-dev 2021-05-13 01:22:04 +00:00
TreeHugger Robot
1e1c864bc1 Merge "Fix BatteryStats Screen On timer reset" into sc-dev 2021-05-13 00:55:43 +00:00
Michael Wachenschwanz
96906f72e3 Fix BatteryStats Screen On timer reset
StopwatchTimer reset uses elapsedRealtime not uptime

Bug: 187844042
Test: builds + boots
Change-Id: I82286d74fef6256971361e70a787a2b39a7cbba4
2021-05-12 16:19:02 -07:00
Dmitri Plotnikov
9828eb9044 Do realistic data mocking in BluetoothPowerCalculatorTest
Bug: 187461241
Test: atest FrameworksCoreTests:BluetoothPowerCalculatorTest

Change-Id: I7974bd2ba434855a4b30e47b3e68e0a0569eb3f5
2021-05-12 16:09:27 -07:00
Dmitri Plotnikov
dd9dcdfb72 Merge "Fix device-level wakelock battery attribution" into sc-dev 2021-05-12 22:52:41 +00:00
Dmitri Plotnikov
59dd00ce46 Fix device-level wakelock battery attribution
Bug: 187844042
Test: atest FrameworksCoreTests:WakelockPowerCalculatorTest
Change-Id: I4e14d962db37adeafb793022b50da0065628238c
2021-05-12 14:21:12 -07:00
Connor O'Brien
0602a88a8f Merge "Log less on negative deltas in kernel CPU time readers" into sc-dev 2021-05-12 18:53:33 +00:00
Alexander Dorokhine
c0bf81a526 Link framework-appsearch against the module_current SDK.
This requires removal of all hidden APIs from the framework code.

Preconditions are jarjar'd into the jar.
Other APIs are replaced with system-visible equivalents.

Bug: 181787682
Bug: 146218515
Test: Presubmit
Change-Id: I6649bed3260ac08a0f66abd7a8ec545c401761fe
2021-05-12 11:34:51 -07:00
Jaewan Kim
0de9a836b7 Stop ignoring media key events in PhoneFallbackEventHandler while in call
Without the extra check, keys  will be routed to the telecom service via
MediaSessionService. The telecom service can decide the media key handling.

Bug: 187527519
Test: Manually press media play/pause key on 3.5mm headset while in call with Pixel 3a
Change-Id: I01002a83e0b752f8355dca307b42400a9489097a
2021-05-12 23:37:29 +09:00
Siim Sammul
c0c44e6f03 Merge "Store the collected binder latency samples in buckets to form a histogram. Add the ability to generate histograms with varying bucket counts and sizes." am: e3873010be am: 65c37c7b1c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1703090

Change-Id: I927dc49ffeebf19bb355816f5f5f47ecd150fdb8
2021-05-12 10:13:16 +00:00