Commit Graph

1316 Commits

Author SHA1 Message Date
Abhijeet Kaur
2ae76e468b Merge "Migrate Shell app to use the new bugreport API." 2019-05-28 16:56:32 +00:00
Abhijeet Kaur
767c8bb96a Migrate Shell app to use the new bugreport API.
Add new calls to bugreport API, all the while keeping the previous code
and logic untouched.

Added feature flag in Settings which if untouched, runs the old dumpstate workflow
by default. To test the new workflow turn on the feature flag from UI or
`adb shell setprop settings_call_bugreport_api true`.

Add permission TRIGGER_SHELL_BUGREPORT so that not all can send
broadcasts to trigger bugreports.

Create new receiver BugreportRequestedReceiver for the new broadcast intent that the shell app will
use.

Whitelist Shell app to use the bugreport API.

Bug: 123617758

Test: manually built and flash to device. Turn on the feature flag, generate bugreports and check
the onProgress and onFinish notifications.
Test: Turn off the feature flag test old workflow.

Change-Id: I1c7c258a48815a0386d7d4771301cd76f9cae3d0
2019-05-28 14:31:57 +01:00
Mathew Inwood
8b1ed3a51c Merge "Fix StrictModeTest#testNonSdkApiUsage" 2019-05-28 08:30:22 +00:00
Tej Singh
019e7e8dfd Merge "Statsd: Add watchdog rollback to experiment ids" into qt-dev am: 42fb4bb1e9 am: ea2bdcd36f
am: 2fe1e333d5

Change-Id: I405037efc0af8e5bd0094f02036824d32d4ae1a3
2019-05-24 17:13:36 -07:00
Howard Chen
a7e62a828e Fix StrictModeTest#testNonSdkApiUsage
Test: atest android.os.cts.StrictModeTest#testNonSdkApiUsage
Bug: 131923046
Bug: 129892635

Change-Id: I6759339000eb239112c0c83ce1131f34164ee0cf
2019-05-24 23:19:35 +08:00
Tej Singh
ea2bdcd36f Merge "Statsd: Add watchdog rollback to experiment ids" into qt-dev
am: 42fb4bb1e9

Change-Id: Ia47f663b1dcbab9c4f9f8ce2b49cde6545d46ba1
2019-05-23 12:47:46 -07:00
TreeHugger Robot
42fb4bb1e9 Merge "Statsd: Add watchdog rollback to experiment ids" into qt-dev 2019-05-23 19:25:43 +00:00
Josh Gao
c488ccb834 Merge "MemoryIntArray: dup in writeToParcel." into qt-dev am: 6429b70cf6 am: 34ec95fb76
am: 69c187b0bd

Change-Id: Icb0ab63aa1fa09bdf2f36f8c7dc99199a829e487
2019-05-21 03:29:34 -07:00
Josh Gao
34ec95fb76 Merge "MemoryIntArray: dup in writeToParcel." into qt-dev
am: 6429b70cf6

Change-Id: Ia5ed094e4f2c5579617037dc0140c34c412f09cc
2019-05-20 16:27:54 -07:00
Tej Singh
73f8e9b086 Statsd: Add watchdog rollback to experiment ids
Stores experiment ids to disk for watchdog rollback initiate/success
events as discussed.

Test: gts in topic
Bug: 131768455
Change-Id: I32768fe5c5c21c43811e25d8f87faae0c8d82c1f
2019-05-20 22:52:40 +00:00
Josh Gao
536cf5e016 MemoryIntArray: dup in writeToParcel.
Previously, if a MemoryIntArray is written to a parcel from multiple
threads, we'll create multiple ParcelFileDescriptors that own the same
file descriptor, which fdsan doesn't like. Instead of adopting and then
detaching, use ParcelFileDescriptor::fromFd which dups behind the scenes.

Bug: http://b/132720476
Test: treehugger
Change-Id: Iad4930cc2d8c59a9348fedb0889d24cb566afa62
2019-05-15 14:05:26 -07:00
Aran Ink
3ff2f70f39 Remove GlobalActionsDialog values from FeatureFlagUtils.
am: f4744c686f

Change-Id: Idce0f146dcf5540803bc9f1b079742958088ba55
2019-05-14 07:43:53 -07:00
Aran Ink
f4744c686f Remove GlobalActionsDialog values from FeatureFlagUtils.
Merged-in: I5ca5e760d9a987c75a93c43783ad2b38728d48fc
Test: Automated tests pass. Manual testing shows GAD still works.
Fixes: 123397865
Fixes: 127644235

Change-Id: I0a8e285c96eea566ed1b19fa05e4143324f5937b
2019-05-14 14:31:07 +00:00
Eugene Susla
959d9c4bd3 Merge "Revert "MemoryIntArray: track the owned file descriptor in a PFD."" into qt-dev am: 1198fc4e71
am: 97fb2a69bf

Change-Id: I1129063e86c6299fcc646fb96466ffa356f66e62
2019-05-13 16:15:01 -07:00
Eugene Susla
97fb2a69bf Merge "Revert "MemoryIntArray: track the owned file descriptor in a PFD."" into qt-dev
am: 1198fc4e71

Change-Id: Ifb91c1e8bb2c72e607bce0f733b0c95c5b5fdce6
2019-05-13 15:59:27 -07:00
Eugene Susla
1198fc4e71 Merge "Revert "MemoryIntArray: track the owned file descriptor in a PFD."" into qt-dev 2019-05-13 22:21:48 +00:00
Aran Ink
3f5945539f Remove FeatureFlagUtils entries for Global Actions Dialog.
Test: Automated tests pass. GAD still displays correctly when holding down power button.

Bug: 123397865
Bug: 127644235
Change-Id: I5ca5e760d9a987c75a93c43783ad2b38728d48fc
2019-05-13 14:29:35 -04:00
Kweku Adams
87bb29662f Merge "Add extra comment for implementation." into qt-dev am: b60e619257
am: 27657de659

Change-Id: Ie0796ac5121a52a2aa0021ec7b66045efff32e91
2019-05-11 00:47:39 -07:00
Kweku Adams
27657de659 Merge "Add extra comment for implementation." into qt-dev
am: b60e619257

Change-Id: I6a12f48c1b90b46e3dd8cfd69c280a97705aec22
2019-05-10 18:10:06 -07:00
TreeHugger Robot
b60e619257 Merge "Add extra comment for implementation." into qt-dev 2019-05-10 23:33:39 +00:00
Svet Ganov
d2404405e7 Revert "MemoryIntArray: track the owned file descriptor in a PFD."
The reverted change causes a regression where we can get an IllegalStateException
during finalization as we are adopting the native fd in a ParcelFileDescriptor
which takes ownership of the fd. However, the order of finalization is undefined
and if the ParcelFileDescriptor is finalized before the MemoryIntArray we would
get an exception when running the finalization of the latter.

bug:124056170

This reverts commit c81f53f7f1.

Change-Id: I8debb9c5f4c87b1a657084139b27f40b7956fe59
2019-05-10 14:08:00 +00:00
Hyunyoung Song
0c2e4a04b8 Merge "ic_corp_badge shape change on adaptive icon shape change" into qt-dev am: e967fe3dab
am: df0be35708

Change-Id: I1967f0fb965e35cbcb95604c5bf1134989664fdf
2019-05-08 00:00:20 -07:00
Hyunyoung Song
df0be35708 Merge "ic_corp_badge shape change on adaptive icon shape change" into qt-dev
am: e967fe3dab

Change-Id: I1303877c07ea567d06b3a46db5ffbc2d9dc5347a
2019-05-07 22:42:24 -07:00
Hyunyoung Song
e967fe3dab Merge "ic_corp_badge shape change on adaptive icon shape change" into qt-dev 2019-05-08 05:10:00 +00:00
Hyunyoung Song
3ba5d5642c ic_corp_badge shape change on adaptive icon shape change
Bug:127867721
Test: UI looks exactly the same even after swapping out the path
Change-Id: I030c5d53a1d7f86c70b66bb6abf5d351bfc7571b
2019-05-06 02:13:58 -07:00
yuanjiahsu
943012b986 Merge "Clean Safetyhub feature flag." into qt-dev am: fe77152334
am: da52c2ecef

Change-Id: I8908c05e82fe2a139a8cd527d0a5cd979eda0433
2019-05-02 19:02:34 -07:00
yuanjiahsu
da52c2ecef Merge "Clean Safetyhub feature flag." into qt-dev
am: fe77152334

Change-Id: Ib36a78df4cca4e61ad93fd8d759ca6cdf993b4ab
2019-05-02 16:19:24 -07:00
Kweku Adams
f7c4e23fb7 Merge "Gating OutOfBoundsException on targetSdkVersion." into qt-dev am: 8f24a0fb56
am: 9c60ad272f

Change-Id: Ibe6555fd0ff175ab936837a61d5868f5bd20c86f
2019-04-30 07:17:00 -07:00
Kweku Adams
9c60ad272f Merge "Gating OutOfBoundsException on targetSdkVersion." into qt-dev
am: 8f24a0fb56

Change-Id: I3f49f2aeae973ffc07117a5aaf70aabfea239b6a
2019-04-30 05:51:09 -07:00
yuanjiahsu
a74894d5b2 Clean Safetyhub feature flag.
Clean all related code, need submit together.

Test: Manually
Bug: 118848485
Change-Id: Iaeb55de3eecf54dfefff92253f71fe2fabcb5f24
2019-04-30 18:34:57 +08:00
Kweku Adams
3858b2d1dc Add extra comment for implementation.
Add a comment noting that the check to throw the exception is
intentionally second so that it's out of the critical path.

Bug: 118339123
Test: N/A
Change-Id: I36c5ea67579bcd7906f711530392110d9987ffb4
2019-04-29 11:47:41 -07:00
Kweku Adams
4be0b1acaf Gating OutOfBoundsException on targetSdkVersion.
Apps targeting Pie or older will get the old undefined behavior. Apps
targeting Q or newer will get the OutOfBoundsException.

Bug: 118339123
Test: atest CtsUtilTestCases
Change-Id: Ibf5467aadec4a2f76ee180e963afeaf5a8a013a2
2019-04-26 12:22:16 -07:00
Eugene Susla
5d21de6918 Merge "ServiceConnector impl + migration of RemoteFillService" 2019-04-25 21:22:25 +00:00
Eugene Susla
a081250c30 ServiceConnector impl + migration of RemoteFillService
Original CL ag/5907902 has many merge conflicts so re-posting a trimmed
down version of it.
Initially migrating just the RemoteFillService, with the intention to
migrate others in separate CLs.

Fixes: 122480607
Test: atest CtsAutoFillServiceTestCases
Change-Id: Ibae8b0aa32a7c8283b0fb6eb3c288769b730149a
2019-04-24 10:32:14 -07:00
Kweku Adams
dec18c80b4 Merge "Fix QuotaController job spam throttling." into qt-dev am: 95aeab0ac8
am: 947bac3817

Change-Id: Ib80350bffaf46aad11c7e5b226239164b32e8670
2019-04-22 12:03:05 -07:00
Kweku Adams
947bac3817 Merge "Fix QuotaController job spam throttling." into qt-dev
am: 95aeab0ac8

Change-Id: Ib891e23c8a147e1334ecb827833bd5cad9663f37
2019-04-22 11:41:22 -07:00
Kweku Adams
95aeab0ac8 Merge "Fix QuotaController job spam throttling." into qt-dev 2019-04-22 18:21:59 +00:00
Lei Yu
a0c7a8527d Merge "Remove feature flag slice injection" into qt-dev am: d7595947a8
am: f07ca42ca8

Change-Id: I39c30922b60a6116e5e4d034e75a2633f0b87901
2019-04-22 11:19:15 -07:00
Lei Yu
f07ca42ca8 Merge "Remove feature flag slice injection" into qt-dev
am: d7595947a8

Change-Id: Icb4bfe01c3d19aa2b7577c36be4e7a875f99b051
2019-04-22 11:09:38 -07:00
Kweku Adams
7d6a31c154 Fix QuotaController job spam throttling.
QuotaController was inadvertently updating all Timers for a particular
user whenever any process state crossed the FOREGROUND_SERVICE
threshold, instead of only updating the Timer for the specific UID.

Also adding more data to QuotaController's dump to make future debugging
easier.

Bug: 129117282
Test: atest com.android.server.job.controllers.QuotaControllerTest
Test: atest CtsJobSchedulerTestCases
Change-Id: Ic8d9e6478e61cc62318ae5651f0526e41a71de8d
2019-04-22 11:06:15 -07:00
Lei Yu
b09ab68f5f Remove feature flag slice injection
Fixes: 121154979
Test: Manual
Change-Id: Ief9c662e28fa5a14879f93138ff2997234e72008
2019-04-19 13:13:59 -07:00
cosmohsieh
404ba79193 Merge "[PasspointV2] Clear feature flag settings_wifi_details_saved_screen" into qt-dev
am: 30550e1f3e

Change-Id: Icf7e0f385e5e94ce06bafe83e6bd1645bd9fe11e
2019-04-17 00:39:50 -07:00
TreeHugger Robot
30550e1f3e Merge "[PasspointV2] Clear feature flag settings_wifi_details_saved_screen" into qt-dev 2019-04-17 07:29:16 +00:00
TreeHugger Robot
a2347a72a0 Merge "[PasspointV2] Clear feature flag settings_wifi_details_saved_screen" 2019-04-16 18:51:25 +00:00
Harry Slatyer
23e4c3a806 Merge "Add DENSITY_140, DENSITY_180, DENSITY_200, DENSITY_220" into qt-dev am: 151f5b2ec8
am: 0786074f6b

Change-Id: Iac4bf3bf40ffcf4648710d837b1f1cabf06c4e6e
2019-04-15 18:10:27 -07:00
Harry Slatyer
0786074f6b Merge "Add DENSITY_140, DENSITY_180, DENSITY_200, DENSITY_220" into qt-dev
am: 151f5b2ec8

Change-Id: I2e3aa5e7d34a89af2090f0cd55a51ad2e439ab61
2019-04-15 16:55:33 -07:00
Harry Slatyer
e4eb7b4c1b Add DENSITY_140, DENSITY_180, DENSITY_200, DENSITY_220
This gives supported densities every 20dpi at the low end of densities,
which is where all current automotive screens sit.

BUG: 127714569
Test: None, just adding constants.

Change-Id: I6dd96493bf4474a55f22ce4ddbe27566d4ab9deb
2019-04-15 21:43:56 +00:00
Neil Fuller
6ac2421d63 Merge "Switch ByteStringUtils over to HexEncoding impl" am: 6150065560 am: 42aacac8ad
am: d982160c6a

Change-Id: Ibc609623891b69c694fdbffa81ce59c90f3db8d6
2019-04-15 11:32:18 -07:00
Neil Fuller
d982160c6a Merge "Switch ByteStringUtils over to HexEncoding impl" am: 6150065560
am: 42aacac8ad

Change-Id: Ic26eb802f39f1f86177a2de8e855573806e08998
2019-04-15 10:57:36 -07:00
Neil Fuller
6150065560 Merge "Switch ByteStringUtils over to HexEncoding impl" 2019-04-15 17:30:35 +00:00