Commit Graph

13732 Commits

Author SHA1 Message Date
Treehugger Robot
b736478a80 Merge "KernelCpuUidBpfMapReader: Verify presence of Uids before deleting" am: 907124607f am: 5f016c8deb
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1321018

Change-Id: I376684b31398743e5c873e8ccc874d0c6a1c8c89
2020-06-08 16:19:19 +00:00
Steve Elliott
eec7f12366 Merge "Fix missing icon for one-to-one convos" into rvc-dev am: 05e10b59af
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11727185

Change-Id: I43fc706e88d78547aed43737ffadcb93b54da0bf
2020-06-06 15:29:19 +00:00
Steve Elliott
05e10b59af Merge "Fix missing icon for one-to-one convos" into rvc-dev 2020-06-06 15:12:04 +00:00
Svetoslav Ganov
2d56a15699 Merge "Correctly offset app op history on reboot" into rvc-dev am: 0ce4fba38f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11747376

Change-Id: I3cd684c2f48b456efe4831a1bcb1dbffa9857c8c
2020-06-06 15:06:03 +00:00
Svetoslav Ganov
0ce4fba38f Merge "Correctly offset app op history on reboot" into rvc-dev 2020-06-06 14:50:03 +00:00
Jing Ji
d948fca5dd Merge "Use the UID as the package name in procstat assoc proto dump" into rvc-dev am: d29532e699
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11725049

Change-Id: I0b5ee05a425ae7904eb361e79664800271e52f6d
2020-06-05 23:18:54 +00:00
Jing Ji
d29532e699 Merge "Use the UID as the package name in procstat assoc proto dump" into rvc-dev 2020-06-05 23:16:36 +00:00
Mike Digman
2fd7f7c3a8 Merge "Make Sharesheet group and pin menu match material, redlines" into rvc-dev am: 5aa8394608
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11739866

Change-Id: I1e7c5bfc726f11e992df8fc37a5eb703d06e9572
2020-06-05 19:29:02 +00:00
Mike Digman
5aa8394608 Merge "Make Sharesheet group and pin menu match material, redlines" into rvc-dev 2020-06-05 19:19:41 +00:00
Miranda Kephart
762b9fb13d Merge "Only show error if screenshot process dies within timeout period" into rvc-dev am: 3a51a85aaf
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11739868

Change-Id: I72b2353a5bfe4961b74776e07f5db33dd3a777ef
2020-06-05 19:09:58 +00:00
Miranda Kephart
3a51a85aaf Merge "Only show error if screenshot process dies within timeout period" into rvc-dev 2020-06-05 18:55:08 +00:00
Mike Digman
ad2e9a0a57 Make Sharesheet group and pin menu match material, redlines
Requires wholesale creation of dialog layout. Using a fixed
width approach.

Test: manual
Bug: 152978014
Fixes: 158023059
Change-Id: Ifcff21b2f999839c3eba601a2ee96a08677e1267
2020-06-05 10:18:43 -07:00
Svet Ganov
185ddf644b Correctly offset app op history on reboot
The offset was computed based off the offset represented by
the most recent historical file while we have to use the time
this file was written.

Also now we persist the history on reboot and shutdown,
significantly minimizing the possibility of data loss.

Added test API to emulate reboot of the history to allow for
precise and tightly controlled test to prevent flakes due to
boot time deviations.

Test: atest android.app.appops.cts.HistoricalAppopsTest#testRebootHistory

Fixes:156853195

Change-Id: I4142371f8bc2b1d710cc8c300e7e79cb03764c04
2020-06-05 09:55:27 -07:00
TreeHugger Robot
0411d1d7e3 Merge "Cleanup outdated TODOs" into rvc-dev am: 6d410d8165
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11755478

Change-Id: Ieef9c07316a249d2336d2f9e3440e6e429022037
2020-06-05 16:10:29 +00:00
TreeHugger Robot
6d410d8165 Merge "Cleanup outdated TODOs" into rvc-dev 2020-06-05 15:53:50 +00:00
arangelov
a2a821336f Cleanup outdated TODOs
Fixes: 158292009
Test: compiled
Change-Id: I7889c7ee818c154194bbe66eabbe04aa7ddb65a4
2020-06-05 15:27:43 +01:00
PETER LIANG
37746ba287 Merge "Shouldn't turn on other accessibility features in SuW." into rvc-dev am: c9f8b52b26
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11716081

Change-Id: Iff43cb6194874cb2ee333bc460cbc13963ea8a06
2020-06-05 12:41:13 +00:00
PETER LIANG
c9f8b52b26 Merge "Shouldn't turn on other accessibility features in SuW." into rvc-dev 2020-06-05 12:36:06 +00:00
TreeHugger Robot
552252d2b9 Merge "Add test for tapping Work share tab when work profile is off" into rvc-dev am: 8f27cd8e55
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11734120

Change-Id: I8054bf473b2b229034391461e170f611252d01f1
2020-06-05 12:35:01 +00:00
TreeHugger Robot
8f27cd8e55 Merge "Add test for tapping Work share tab when work profile is off" into rvc-dev 2020-06-05 12:23:43 +00:00
Antoan Angelov
e42a9e3117 Merge "Setup button bar padding before empty state handling" into rvc-dev am: 16fce9c63b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11734105

Change-Id: I2134a003dce577b7c89c8bf10a57300b349adac4
2020-06-05 10:25:16 +00:00
Antoan Angelov
16fce9c63b Merge "Setup button bar padding before empty state handling" into rvc-dev 2020-06-05 10:04:52 +00:00
Alessio Balsini
861bdbfb56 KernelCpuUidBpfMapReader: Verify presence of Uids before deleting
Make sure the first and last Uids are valid exist in the sparse array
before removing the array range of which they are the boundaries.
If they are valid, but not exist, create fake elements to make sure all
the elemens in the range are deleted.

Bug: 157887803
Test: build
Signed-off-by: Alessio Balsini <balsini@google.com>
Change-Id: I3b5ddc499178163cb9b0e9cabbe4f3457ae34dad
2020-06-05 10:38:32 +01:00
Felipe Leme
49c3937465 Merge "Added command / binder method to temporarily disable VoiceInteraction." into rvc-dev am: df98b27008
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11625271

Change-Id: I662c80981340e0552883e69bbca3d46cd8f15f5b
2020-06-05 07:27:23 +00:00
Felipe Leme
df98b27008 Merge "Added command / binder method to temporarily disable VoiceInteraction." into rvc-dev 2020-06-05 07:11:40 +00:00
felipeal
755578ac28 Added command / binder method to temporarily disable VoiceInteraction.
It will be used by Automotive when the display is off.

Test: adb shell cmd voiceinteraction disable true && \
      adb shell cmd voiceinteraction show
Test: atest CtsVoiceInteractionTestCases CtsAssistTestCases
Bug: 154011437

Change-Id: Ia87b0544b242c356c4f9180e250e2df54279803f
2020-06-04 23:05:14 +00:00
Jing Ji
1cd1f607e9 Use the UID as the package name in procstat assoc proto dump
And try to compress the process name if possible

Bug: 155980964
Test: Manual
Change-Id: I689724e7c271ba8d85608c3f484250e13c1a1c92
2020-06-04 15:44:26 -07:00
TreeHugger Robot
29deaea2ce Merge "Show 2nd row if we have 1 row in active profile and empty state in other" into rvc-dev am: d1fee56540
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11733623

Change-Id: Ic4ab9abc78cc8740088efb292932d5d8d17d74b0
2020-06-04 22:00:53 +00:00
TreeHugger Robot
d1fee56540 Merge "Show 2nd row if we have 1 row in active profile and empty state in other" into rvc-dev 2020-06-04 21:37:39 +00:00
Miranda Kephart
700a093b0c Only show error if screenshot process dies within timeout period
Currently, we show a "Couldn't take screenshot" error any time the
screenshot process disconnects. However, if the screenshot process
remains up, this can result in strange superfluous notifications,
where hours later the screenshot process gets frozen/killed due to
memory pressure, and we show the notification despite the user not
trying to take a screenshot at that point.

This change adds a check so that we only show the error notification
if the screenshot process is disconnected within the timeout period
(10 seconds).

Bug: 156064134
Fix: 156064134
Test: manual -- killed the process with 'adb shell ps | grep screenshot'
and then 'adb shell kill <pid>' to verify that the error notification
appeared, then made sure it did not appear post-change.

Change-Id: I2419634ad888300abc8b50aadab5888ce653e363
2020-06-04 16:48:49 -04:00
arangelov
f32a43868b Add test for tapping Work share tab when work profile is off
Also fix some work tab-related tests.

Fixes: 158166545
Fixes: 148156663
Test: atest ChooserActivityTest
Test: atest ResolverActivityTest
Change-Id: I5850bbc7d72d563f6e58dd19fafc56c0703ce669
2020-06-04 19:09:35 +01:00
arangelov
5d9ca17ddc Setup button bar padding before empty state handling
Otherwise we don't add the padding if we show the empty state
on the current profile. This caused a slight height jump when
swiping to the other profile.

Fixes: 158174328
Test: manual
Test: atest ChooserActivityTest
Test: atest ResolverActivityTest
Change-Id: I08c3f30716a8fb9a15e30088be6d274dc0869cac
2020-06-04 18:18:59 +01:00
TreeHugger Robot
76b6956c01 Merge "Refocus conversation expand button in TalkBack" into rvc-dev am: 2c99d90744
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11678253

Change-Id: Id5785ab8b9bb54d6d9346bd6141b965777420746
2020-06-04 16:58:41 +00:00
TreeHugger Robot
2c99d90744 Merge "Refocus conversation expand button in TalkBack" into rvc-dev 2020-06-04 16:33:45 +00:00
Steve Elliott
3d360da16d Fix missing icon for one-to-one convos
Fixes: 158089612
Test: manual
Change-Id: If588073ff1df557b755b844277e893e001822d79
2020-06-04 11:11:11 -04:00
arangelov
416a1b347c Show 2nd row if we have 1 row in active profile and empty state in other
Fixes: 157982025
Test: manual
Test: atest ChooserActivityTest
Test: atest ResolverActivityTest
Change-Id: Ifa525bad5d89d2ea6192044c6e2bb63310c57693
2020-06-04 14:36:00 +01:00
Peter_Liang
1eedde0d0f Shouldn't turn on other accessibility features in SuW.
Root Cause:
During the SuW, user could turn on other accessibility features except for Magnification, Select to Speak, and Talkback through edit shortcut menu list.

Solution:
Hide the edit shortcuts button if in the SuW period to avoid to turn on others.

Bug: 158046037
Test: manual test
Change-Id: I06e5fde2320c0736ecaf9feb912349c5965cb491
2020-06-04 18:10:28 +08:00
Zak Cohen
9db7e97167 Merge "Screenshot - pass bitmap as bundled hardware buffer from Launcher" into rvc-dev am: 4fdd3c8e34
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11711139

Change-Id: Ib1d115ff3ddd466ff35d75adf01ee1f334804e54
2020-06-04 03:23:11 +00:00
Jeff DeCew
4055c0861f Refocus conversation expand button in TalkBack
Test: manual
Fix: 156872754
Change-Id: I43e83c307adff4ce591a2650899b9356adf30e01
2020-06-03 19:47:15 -04:00
Zak Cohen
4cfb590a28 Screenshot - pass bitmap as bundled hardware buffer from Launcher
When passing a screenshot from Launcher to Sysui it should be passed
as a hardware buffer inside a bundle to avoid copying the underlying pixels.

Change also adds userid and component when a screenshot is passed.

Bug: 157380566
Bug: 156757117
Test: local
Change-Id: I531f1d1a41d179a257fe7202b68a6d1a78cc0f79
2020-06-03 16:09:57 -07:00
TreeHugger Robot
e12aa6fadb Merge "Set calling user as intent extra to indicate intent resolver edge case" into rvc-dev am: c235831ae5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11689273

Change-Id: If46fad4d1d60e7c2465e671c188cc2e22385b808
2020-06-03 19:46:31 +00:00
TreeHugger Robot
c235831ae5 Merge "Set calling user as intent extra to indicate intent resolver edge case" into rvc-dev 2020-06-03 19:33:26 +00:00
TreeHugger Robot
a825b17dfe Merge "Also call Intent#fixUris for the intent resolver case" into rvc-dev am: 31a2e1ba46
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11689597

Change-Id: I733564e57c23b14e88ae2339e2d513ac5da77501
2020-06-03 19:18:22 +00:00
TreeHugger Robot
31a2e1ba46 Merge "Also call Intent#fixUris for the intent resolver case" into rvc-dev 2020-06-03 19:16:31 +00:00
Will Brockman
c5af32b2d8 Merge "Add RankingSelected to UiEventLogger." into rvc-dev am: c66aeed213
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11692386

Change-Id: I6b4322e38ba674a06dbe86da72316c71f75978a2
2020-06-03 17:58:37 +00:00
Will Brockman
c66aeed213 Merge "Add RankingSelected to UiEventLogger." into rvc-dev 2020-06-03 17:55:47 +00:00
arangelov
738034ba6c Set calling user as intent extra to indicate intent resolver edge case
Instead of relying on the user hint in the intent, we now explicitly
set the calling user as an intent extra.

Fixes: 149741820
Test: atest ChooserActivityTest
Test: atest ResolverActivityTest
Test: manual
Change-Id: Iaa37fc1330abbb419035d899fad166afc53aaea8
2020-06-03 18:46:28 +01:00
arangelov
7c510c2227 Also call Intent#fixUris for the intent resolver case
Fixes: 158082179
Test: manual
Test: atest ChooserActivityTest
Test: atest ResolverActivityTest
Change-Id: I74c97f5d2f3bbbcd35df20151a455877562f34ad
2020-06-03 18:24:40 +01:00
Antoan Angelov
ccfaf52f97 Merge "Only allow scroll in one direction at a time" into rvc-dev am: 5f7043db84
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11691616

Change-Id: I10ac3e0329d024c96720493d03f1f7eca380eb60
2020-06-03 14:44:43 +00:00
arangelov
d85a74a473 Only allow scroll in one direction at a time
Fixes: 156605289
Test: manual
Test: atest ChooserActivityTest
Test: atest ResolverActivityTest
Change-Id: Ibf301f7aa4440e4483355829d0e24fc8e53350e7
2020-06-03 13:19:36 +01:00