Commit Graph

17034 Commits

Author SHA1 Message Date
Mark Renouf
ef559766b8 Merge "Fixes long screenshot landscape and split window bugs" into sc-dev am: db27afd2b3 am: caa9e3d086
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15066724

Change-Id: Ia87081909846d2297e87f5af046a29d7943e7be2
2021-06-22 19:52:48 +00:00
Mark Renouf
1c996ad287 Fixes long screenshot landscape and split window bugs
Fixes incorrect view transform in ViewRenderer

The tranform was mapping to on-screen coordinates, where
in-window position is needed.

Bug: 183045126
Bug: 189289758
Bug: 189235588

Test: manual, long screenshot the bottom app in split window mode
Change-Id: Ibaa9987b229f9e8ec0a1002ee84d797ca6026fb9
2021-06-22 17:16:01 +00:00
Nikita Ioffe
23403fdc99 Merge "Add sys config to handle apexes that are allowed to be updated" into sc-dev 2021-06-22 14:15:41 +00:00
Sergey Volnov
90a6e6bacc Merge "Implement preriodic trusted process restarting for hotword detectors." into sc-dev am: 56686819a8 am: 952946bf67
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14679832

Change-Id: I6abb7134f755e00bd63b5bb73b61de5e51af465d
2021-06-22 13:53:17 +00:00
Sergey Volnov
56686819a8 Merge "Implement preriodic trusted process restarting for hotword detectors." into sc-dev 2021-06-22 13:33:08 +00:00
Nikita Ioffe
637be99afd Add sys config to handle apexes that are allowed to be updated
Unlike staged installer check, we can't check if given APEX package is
allowed to be updated at session creation time, since we don't have
knowledge of the package being installed yet. Instead, the check is
implemented in PackageInstallerSession#handleInstall.

Like staged install check, allowed apex update check has similar
exemptions (adb is allowed to update any APEX,
`adb shell pm --bypass-allowed-apex-update-check` makes next install
session bypass the check).

In order to implement these exemptions, a new
INSTALL_DISABLE_ALLOWED_APEX_UPDATE_CHECK flag that can only be set by
system is added. PackageInstallerSession will skip the APEX update
checks if INSTALL_DISABLE_ALLOWED_APEX_UPDATE_CHECK is set.

Bug: 189274479
Test: atest CtsStagedInstallHostTestCases
Test: atest GtsStagedInstallHostTestCases
Test: atest FrameworksServicesTests:SystemConfigTest
Change-Id: I22921a3ac4d43011b565733d7a7183e5cdb4fe80
Merged-In: I22921a3ac4d43011b565733d7a7183e5cdb4fe80
(cherry picked from commit aafaaec0d5)
2021-06-22 13:39:41 +01:00
Sergey Volnov
1b2b909a16 Implement preriodic trusted process restarting for hotword detectors.
Bug: 188892570
Test: 1) adb shell cmd voiceinteraction restart-detection
2) Tried locally with restarting every 30 seconds, verified everything
works
3) adb shell ps | grep <test_package_name> - shows:

u0_a221       3328  1026 14501612 69208 0                   0 R com.google.th
u0_i9002      9049  1026 14448104 53860 0                   0 S com.google.th:com.google.th.SampleHotwordDetectionService:hotword_detector_3

Change-Id: I9f08943212c20b83da35c18df56460eaedbbf8f0
2021-06-22 12:43:08 +01:00
TreeHugger Robot
890daeb051 Merge "Do not canonicalize overlay config test paths" into sc-dev 2021-06-21 23:07:21 +00:00
Nikita Ioffe
2655740ff6 Merge "Add sys config to handle apexes that are allowed to be updated" 2021-06-21 19:19:05 +00:00
TreeHugger Robot
6430a5d2c0 Merge "Revert "Revert "Release cblocks back to the free pool""" into sc-dev am: cc265a58de am: 3f0a8dd54b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14807907

Change-Id: I874d30dfc049d5c8a1e1fdc5873890c7566ae965
2021-06-18 17:46:03 +00:00
TreeHugger Robot
cc265a58de Merge "Revert "Revert "Release cblocks back to the free pool""" into sc-dev 2021-06-18 17:28:19 +00:00
Nikita Ioffe
aafaaec0d5 Add sys config to handle apexes that are allowed to be updated
Unlike staged installer check, we can't check if given APEX package is
allowed to be updated at session creation time, since we don't have
knowledge of the package being installed yet. Instead, the check is
implemented in PackageInstallerSession#handleInstall.

Like staged install check, allowed apex update check has similar
exemptions (adb is allowed to update any APEX,
`adb shell pm --bypass-allowed-apex-update-check` makes next install
session bypass the check).

In order to implement these exemptions, a new
INSTALL_DISABLE_ALLOWED_APEX_UPDATE_CHECK flag that can only be set by
system is added. PackageInstallerSession will skip the APEX update
checks if INSTALL_DISABLE_ALLOWED_APEX_UPDATE_CHECK is set.

Bug: 189274479
Test: atest CtsStagedInstallHostTestCases
Test: atest GtsStagedInstallHostTestCases
Test: atest FrameworksServicesTests:SystemConfigTest
Change-Id: I22921a3ac4d43011b565733d7a7183e5cdb4fe80
2021-06-18 18:12:08 +01:00
Jason Hsu
a925474f4a Merge "Add the log for new supported accessibility button type 'Accessibility Floating Menu'" into sc-dev am: 72679b768a am: b6d925786c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14779652

Change-Id: Ia1d6e15a741e91c8f97e40104e59b4b675d84d5a
2021-06-18 02:41:55 +00:00
Jason Hsu
72679b768a Merge "Add the log for new supported accessibility button type 'Accessibility Floating Menu'" into sc-dev 2021-06-18 02:10:28 +00:00
TreeHugger Robot
fc3b8d1481 Merge "Fix emphasized button drawable to avoid ripple shape glitch." into sc-dev am: fee0ac2158 am: b0c2138ec9 am: 6fa7920841
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15017990

Change-Id: Ia2a76d07beae40c6f4f7fb3142fd4aa81253f6b6
2021-06-17 22:01:08 +00:00
TreeHugger Robot
6fa7920841 Merge "Fix emphasized button drawable to avoid ripple shape glitch." into sc-dev am: fee0ac2158 am: b0c2138ec9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15017990

Change-Id: Ic1fb2bb52680c9a72e24277c7d5867726541ac53
2021-06-17 21:57:19 +00:00
TreeHugger Robot
b0c2138ec9 Merge "Fix emphasized button drawable to avoid ripple shape glitch." into sc-dev am: fee0ac2158
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15017990

Change-Id: I72ff141203838d83375258e075f6a2b2ce05f889
2021-06-17 21:52:13 +00:00
TreeHugger Robot
fee0ac2158 Merge "Fix emphasized button drawable to avoid ripple shape glitch." into sc-dev 2021-06-17 21:39:07 +00:00
Jeff DeCew
5eeb0d554b Fix emphasized button drawable to avoid ripple shape glitch.
Fixes: 191001646
Test: tap a button in the alarm notification
Change-Id: I3d8f77f96dc799bc36a44104874514c9320d11ce
2021-06-17 15:57:47 -04:00
Dmitri Plotnikov
bc67780d6f Merge changes from topic "battery_usage_stats_before_reset" into sc-dev am: 4f3d2e64cd am: 3eab6ed072
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14924713

Change-Id: I74120ef29d6d5540b5405c9dd3b326fa0c831c75
2021-06-17 17:50:24 +00:00
Dmitri Plotnikov
041ab63598 Add BatteryUsageStatsQuery parameters: time range am: c24fb81627 am: 7703f73516
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14922773

Change-Id: I91d52f5313c6390b5dd13560c08defc3c2e95984
2021-06-17 17:50:19 +00:00
Dmitri Plotnikov
6b6c08ef43 Implement BatteryUsageStatsStore am: f7e7d084ee am: 72a9116d5d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14922032

Change-Id: I2d4e0641b494dcf2a168e552b4c79780fa1d9484
2021-06-17 17:50:15 +00:00
Dmitri Plotnikov
3eab6ed072 Merge changes from topic "battery_usage_stats_before_reset" into sc-dev am: 4f3d2e64cd
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14924713

Change-Id: Icfd739896ef936d1bf93bf4b2f7ac691661a6dc1
2021-06-17 17:42:57 +00:00
Dmitri Plotnikov
7703f73516 Add BatteryUsageStatsQuery parameters: time range am: c24fb81627
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14922773

Change-Id: If06f6990b1e64ade4043759628447ffd1c771ba5
2021-06-17 17:42:55 +00:00
Dmitri Plotnikov
72a9116d5d Implement BatteryUsageStatsStore am: f7e7d084ee
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14922032

Change-Id: I5db17e054223a5b2612efc1d55c798d025d655eb
2021-06-17 17:42:53 +00:00
Dmitri Plotnikov
4f3d2e64cd Merge changes from topic "battery_usage_stats_before_reset" into sc-dev
* changes:
  Implement battery_usage_stats_before_reset pull atom
  Add BatteryUsageStatsQuery parameters: time range
  Implement BatteryUsageStatsStore
  Convert BatteryUsageStats to and from XML
  Add BatteryUsageStats.add(BatteryUsageStats)
2021-06-17 17:23:00 +00:00
jasonwshsu
eb304bd341 Add the log for new supported accessibility button type 'Accessibility Floating Menu'
* Logs the atom AccessibilityShortcutReported in westworld

Bug: 189860801
Test: make statsd_testdrive && statsd_testdrive 266
Change-Id: I4e5814cb6a1d877af540e278de5ffa398d6d0351
2021-06-17 16:16:07 +00:00
Fiona Campbell
cd4fc9a460 Merge "Fix memory leak in BrightnessSynchronizer" into sc-dev am: d77459a21f am: 2b60e5c052
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14551803

Change-Id: Ifa38ce57f813e0364a8ea2a58e691a1fe672256c
2021-06-17 14:05:57 +00:00
Fiona Campbell
b53055188f Merge "Fix memory leak in BrightnessSynchronizer" into sc-dev am: d77459a21f am: 0052dcef93
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14551803

Change-Id: Iabaddbe0c15fd538d6b29d0d3a5b3790147c9819
2021-06-17 14:05:57 +00:00
Fiona Campbell
0052dcef93 Merge "Fix memory leak in BrightnessSynchronizer" into sc-dev am: d77459a21f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14551803

Change-Id: I7cb6750bf25d644c7c244b6bcc4d79bbc5a90559
2021-06-17 13:54:59 +00:00
Fiona Campbell
d77459a21f Merge "Fix memory leak in BrightnessSynchronizer" into sc-dev 2021-06-17 13:41:45 +00:00
Dmitri Plotnikov
5ee2f6caac Implement battery_usage_stats_before_reset pull atom
Bug: 187223764
Test: m statsd_testdrive; statsd_testdrive 10111
Change-Id: I3c27deb57672d962f1029219b50d21d784c997b7
Merged-In: I3c27deb57672d962f1029219b50d21d784c997b7
(cherry picked from commit 0d25efa419)
2021-06-17 05:24:48 +00:00
Dmitri Plotnikov
c24fb81627 Add BatteryUsageStatsQuery parameters: time range
Bug: 187223764
Test: atest FrameworksCoreTests:BatteryUsageStatsProviderTest
Change-Id: If370360695a3f0327f07457abac1fd02164864e1
Merged-In: If370360695a3f0327f07457abac1fd02164864e1
(cherry picked from commit 6ea400b27c)
2021-06-17 05:24:37 +00:00
Dmitri Plotnikov
f7e7d084ee Implement BatteryUsageStatsStore
Bug: 187223764
Test: atest FrameworksCoreTests:BatteryUsageStatsStoreTest

Change-Id: I66bbb173f402e795c900ccf3bc82b8fb210142a4
Merged-In: I66bbb173f402e795c900ccf3bc82b8fb210142a4
(cherry picked from commit 2a0460f701)
2021-06-17 05:24:24 +00:00
TreeHugger Robot
fca6a3fdea Merge changes from topic "cuj-sysui-launches" into sc-dev am: b538b60ea6 am: 8b164133d0 am: f71c4ac3d4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14965045

Change-Id: I9ac7614b2878b4229660de2555e5922e68e430bd
2021-06-16 17:06:22 +00:00
TreeHugger Robot
f71c4ac3d4 Merge changes from topic "cuj-sysui-launches" into sc-dev am: b538b60ea6 am: 8b164133d0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14965045

Change-Id: I60a9093912f0adfc7c3876c56201c827ef4746b7
2021-06-16 16:59:47 +00:00
TreeHugger Robot
7f4b4a05e2 Merge changes from topic "cuj-sysui-launches" into sc-dev am: b538b60ea6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14965045

Change-Id: I9ac1d16b7b03ceb43c0584c60d3978a214c28666
2021-06-16 16:50:21 +00:00
TreeHugger Robot
8b164133d0 Merge changes from topic "cuj-sysui-launches" into sc-dev am: b538b60ea6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14965045

Change-Id: I26803319f43b8d88ac4511e65f622871f80dc431
2021-06-16 16:49:58 +00:00
TreeHugger Robot
b538b60ea6 Merge changes from topic "cuj-sysui-launches" into sc-dev
* changes:
  Instrument SysUI app launches
  Add SysUI app launches CUJ to InteractionJankMonitor
2021-06-16 16:45:48 +00:00
Jordan Demeulenaere
00b6fa549d Add SysUI app launches CUJ to InteractionJankMonitor
Bug: 191002773
Test: make build
Change-Id: I9e3e72c5d0d242ca0a7b562be80f1d243fbb5704
2021-06-16 15:26:42 +02:00
TreeHugger Robot
f863a43a49 Merge "Make inline suggestions tooltip is not magnified" into sc-dev am: cac7ab9c5c am: a17a93ccea
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14514105

Change-Id: I0d005f5a03fb5c5a8ec46e2df677e838f66bd379
2021-06-15 21:41:38 +00:00
TreeHugger Robot
a17a93ccea Merge "Make inline suggestions tooltip is not magnified" into sc-dev am: cac7ab9c5c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14514105

Change-Id: I5ed34a3dacd098be66e030143e8fc4af41292bca
2021-06-15 21:37:19 +00:00
TreeHugger Robot
78bb87d1c6 Merge "Make inline suggestions tooltip is not magnified" into sc-dev am: cac7ab9c5c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14514105

Change-Id: I690b8b91aed71839ce7b19c32e7de209cb08a863
2021-06-15 21:36:45 +00:00
TreeHugger Robot
7c73cc1f6e Merge "Make inline suggestions tooltip is not magnified" into sc-dev am: cac7ab9c5c am: 40c5c91871
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14514105

Change-Id: Ic5c75dcc71639e01c919e66cad134d339699b8ba
2021-06-15 21:33:54 +00:00
TreeHugger Robot
cac7ab9c5c Merge "Make inline suggestions tooltip is not magnified" into sc-dev 2021-06-15 21:22:09 +00:00
TreeHugger Robot
be1741df05 Merge "Add BatteryUsageStatsProtoTests to presubmit" into sc-dev am: 0a9650dcde am: d3438e52c2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14971175

Change-Id: Ica45b66cbe3298d135625448de67973cf5b736e4
2021-06-15 18:30:22 +00:00
TreeHugger Robot
36628604bc Merge "Add BatteryUsageStatsProtoTests to presubmit" into sc-dev am: 0a9650dcde am: c42ccdd692
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14971175

Change-Id: I97f6073cc2d3a2d8dd0d74c73aba2a95b57c41f0
2021-06-15 18:29:51 +00:00
TreeHugger Robot
d3438e52c2 Merge "Add BatteryUsageStatsProtoTests to presubmit" into sc-dev am: 0a9650dcde
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14971175

Change-Id: Ic4629bc93e9540b3d9e150cf256b83571a3baead
2021-06-15 18:19:56 +00:00
TreeHugger Robot
dfc69a5021 Merge "Add BatteryUsageStatsProtoTests to presubmit" into sc-dev am: 0a9650dcde
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14971175

Change-Id: I911b98ffe7a8ac94491509e60bd34a05e3cdb7e2
2021-06-15 18:19:02 +00:00
Fiona Campbell
37427762b3 Fix memory leak in BrightnessSynchronizer
Previously, a queue would be written to, a lot more often than items
were removed from it. This caused it to grow massively.

This cl changes the way that the synchronizer works, updating both
values when needed and avoiding potential race conditions.

It's relevant to note that mDisplayManager.setBrightness will only change the value if it is different, but Settings.System.putIntForUser will set it regardless, therefore causing a second "int changed" message to be sent.

Bug: 177523959
Test: manual
Test: loop this command: adb shell settings put system screen_brightness \
$((RANDOM%100))
Test: loop this command: adb shell settings put system \
screen_brightness_float 0.$((RANDOM%100))

Change-Id: I6cafb48c204ce5245c4450a6098473e06c334667
2021-06-15 16:13:04 +01:00