Commit Graph

11399 Commits

Author SHA1 Message Date
Kohsuke Yatoh
f1e4d0e3e3 Merge "Read font attributes from buffer." into sc-dev am: 7adad678e0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14924347

Change-Id: Ieb629bbe14848cfa286806b3583e9da1c6f03bea
2021-06-14 20:56:53 +00:00
Kohsuke Yatoh
7adad678e0 Merge "Read font attributes from buffer." into sc-dev 2021-06-14 20:53:59 +00:00
TreeHugger Robot
3dd7a87144 Merge "Move tests with reboot to @LargetTest suite" into sc-dev am: 506284e2f9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14936974

Change-Id: I0fb75eb9a2540c511c31826012177b09ca393921
2021-06-14 06:23:56 +00:00
TreeHugger Robot
506284e2f9 Merge "Move tests with reboot to @LargetTest suite" into sc-dev 2021-06-14 06:12:36 +00:00
John Reck
b61791acc2 Merge "Improve picture capture debug path" into sc-dev am: b99e72f722
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14928133

Change-Id: I981ab05bd3c582aa2ce152d1834c7acd60efed53
2021-06-11 18:29:02 +00:00
Samiul Islam
23e0755152 Move tests with reboot to @LargetTest suite
Bug: 190759634
Test: atest StagedInstallInternalTest
Change-Id: I903052f7178a6800c29164012b2e03aef357c982
2021-06-11 11:47:24 +00:00
John Reck
760051854e Improve picture capture debug path
* Fixes hardware bitmap capture
* Fixes mutable bitmap capture (no flickering)
* Adds basic single-frame LRU cache to avoid
  repeated readbacks of GPU resources
* Does up-front readback of GPU resources
* Moves serialization off RenderThread again thanks
  to up-front readback avoiding needing GPU access
  off-thread
* Reduces RAM usage & improves performance by serializing
  directly to output stream instead of first copying to
  a byte[]

Bug: 174223722
Test: PictureCaptureDemo mirrors the content
Change-Id: If7ec208b61d5b917e82087cc312880fc5a38c943
2021-06-11 01:52:14 +00:00
Cody Kesting
c3b6259903 Merge "Allow MANAGE_TEST_NETWORKS to register and get VCN policies." am: 7b02279e0a am: 9a83740d0e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1719273

Change-Id: I75e45e456321eceaf4489379afa952df27ec9b41
2021-06-10 23:29:55 +00:00
Kohsuke Yatoh
a3f5f22cbc Read font attributes from buffer.
minikin::Font::typeface() is expensive because it will open the font file.
Font attribute getters should avoid calling it.

Bug: 188201287
Test: atest UpdatableSystemFontTest
Test: atest CtsGraphicsTestCases:FontTest
Test: atest CtsGraphicsTestCases:SystemFontsTest
Change-Id: Ic8554f6dfacbe27ddfea6b375633c96bced2cc09
2021-06-10 21:02:24 +00:00
Cody Kesting
1fd3dadc22 Allow MANAGE_TEST_NETWORKS to register and get VCN policies.
This CL updates VcnManagementService to allow permission
MANAGE_TEST_NETWORKS to register/unregister VCN policy listers as
well as apply VCN policies. Previously, only permission
NETWORK_FACTORY was allowed to perform this operations.

Bug: 189125789
Test: atest FrameworksVcnTests CtsVcnTestCases
Change-Id: I6ad3a58f4ef87d931917fbd772a810af81b27da1
2021-06-09 11:52:53 -07:00
Benedict Wong
c52419c68a Merge "Remove underlying network caps" into sc-dev 2021-06-07 17:24:45 +00:00
Nataniel Borges
ab7180277f Merge "Promote stable flicker tests (ime)" into sc-dev am: a50b03521f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14840468

Change-Id: Ied6dbb2c3c3804f4e4cc5427c491b08b3f83753b
2021-06-07 13:13:38 +00:00
Nataniel Borges
a151d8b353 Merge "Promote stable flicker tests (app launch)" into sc-dev am: 128a9fdbcb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14840462

Change-Id: I8a823950de18b89bdba87e540235f5f07bfbb0cf
2021-06-07 13:12:57 +00:00
Nataniel Borges
a50b03521f Merge "Promote stable flicker tests (ime)" into sc-dev 2021-06-07 12:56:31 +00:00
Nataniel Borges
128a9fdbcb Merge "Promote stable flicker tests (app launch)" into sc-dev 2021-06-07 12:56:23 +00:00
Nataniel Borges
27a9ab938a Merge "Promote stable flicker tests (rotation)" into sc-dev am: 9ac4eb345a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14843813

Change-Id: I8756952b014ce71161eed1752c380a45627df07f
2021-06-04 15:48:17 +00:00
Nataniel Borges
9ac4eb345a Merge "Promote stable flicker tests (rotation)" into sc-dev 2021-06-04 15:32:49 +00:00
Nataniel Borges
fb8237605a Promote stable flicker tests (ime)
The tests have been stable since last week when the underlying bugs were closed.

Bug: 185401242
Bug: 185400889
Test: atest FlickerTests:com.android.server.wm.flicker.ime
Change-Id: I8cea435a9fa295626c45d9d11549c1a4d4f4e63b
2021-06-04 17:05:11 +02:00
Nataniel Borges
6d9e90b62e Merge "Promote stable flicker tests (app close)" into sc-dev am: 488a0a3b8d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14840458

Change-Id: Ic1c96651da589536fdd24a2e67f3fada7752dd81
2021-06-04 15:03:51 +00:00
Nataniel Borges
b77a5fb78a Promote stable flicker tests (app launch)
The tests have been stable since last week when the underlying bugs were closed.

Bug: 185401242
Bug: 185400889
Test: atest FlickerTests:com.android.server.wm.flicker.launch
Change-Id: I8ef26ac7144766f7269bef2589842e07d098efc3
2021-06-04 16:26:32 +02:00
Nataniel Borges
f420024bf5 Promote stable flicker tests (rotation)
The tests have been stable since last weeks when the underlying bugs were closed.

Bug: 185401242
Bug: 185400889
Test: atest FlickerTests:com.android.server.wm.flicker.rotation
Change-Id: I4aa13016f214f99bcff5adcd98e71096eacada2d
2021-06-04 16:04:56 +02:00
Nataniel Borges
b94ab5c28f Promote stable flicker tests (app close)
The tests have been stable since last weeks when the underlying bugs were closed.

Bug: 185401242
Bug: 185400889
Test: atest FlickerTests:com.android.server.wm.flicker
Change-Id: I6c99e84f0da01c122d8ff6a28eebbdb9bcc6582a
2021-06-04 15:23:54 +02:00
Benedict Wong
66a2885fa5 Merge changes I5ce7fe05,I2d5dc5b9,Ibcc4bdc0 into sc-dev am: 211f7f9e20
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14702006

Change-Id: I83e9611f1bb3442b77a9ee72f6bfa0575033b8f8
2021-05-26 11:05:10 +00:00
Benedict Wong
4ab47decd6 Remove underlying network caps
This change removes unused fields in the persistable bundle and
VcnGatewayConnectionConfig classes to ensure future flexibility.

Bug: 182219992
Test: atest FrameworksVcnTests
Change-Id: Ic2fec8a87fd19a1780333c61759c4092598d349e
Merged-In: Ic2fec8a87fd19a1780333c61759c4092598d349e
(cherry picked from commit 1f06b95c62)
2021-05-25 23:17:58 +00:00
Benedict Wong
e237e35dff Copy up/downstream bandwidth and TCP buffer sizes from underlying
This change copies the relevant pieces of information used to tune the
system for performance

Bug: 188943592
Test: atest FrameworksVcnTests
Change-Id: I2d5dc5b9000fa9d0da9d34772b3704110694c526
Merged-In: I2d5dc5b9000fa9d0da9d34772b3704110694c526
(cherry picked from commit 9d92b77ad7)
2021-05-25 15:48:40 -07:00
Benedict Wong
211f7f9e20 Merge changes I5ce7fe05,I2d5dc5b9,Ibcc4bdc0 into sc-dev
* changes:
  Add additional dump information for UnderlyingNetworkTracker
  Copy up/downstream bandwidth and TCP buffer sizes from underlying
  Prevent concurrent modification exceptions in VcnManagementService
2021-05-25 16:43:51 +00:00
Benedict Wong
9d92b77ad7 Copy up/downstream bandwidth and TCP buffer sizes from underlying
This change copies the relevant pieces of information used to tune the
system for performance

Bug: 188943592
Test: atest FrameworksVcnTests
Change-Id: I2d5dc5b9000fa9d0da9d34772b3704110694c526
2021-05-24 17:23:04 -07:00
TreeHugger Robot
976edfdbf2 Merge "Split flicker tests into groups" into sc-dev am: 608a439238
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14601816

Change-Id: I319ed54afe9b16a64f979c2e315ba6f4bc8c4788
2021-05-22 10:01:19 +00:00
TreeHugger Robot
608a439238 Merge "Split flicker tests into groups" into sc-dev 2021-05-22 09:44:36 +00:00
Nataniel Borges
8aaaeea849 Split flicker tests into groups
The flicker test suite grew and now trigger a treehuger SLO violation. To address this problem create different groups for different tests using: --module-arg <TEST SUITE>:include-annotation:<GROUP>

Where:
   <TEST SUITE> = FlickerTests or WMShellFlickerTests
   <GROUP> = com.android.server.wm.flicker.annotation.Group1 or com.android.server.wm.flicker.annotation.Group2 or com.android.server.wm.flicker.annotation.Group3

For example:

1) to run only tests in the first group in flicker use: `--module-arg FlickerTests:include-annotation:com.android.server.wm.flicker.annotation.Group1`

2) to run only the third group of tests from wmshell flicker: ``--module-arg FlickerTests:include-annotation:com.android.server.wm.flicker.annotation.Group3`

Bug: 180620475
Test: atest FlickerTests WMShellFlickerTests with the respective parameters
Change-Id: I82f668713ba262bafe2758e2c618bfc060cc2c8a
2021-05-20 09:36:44 +02:00
Chris Wailes
5d8c1369c1 Make BackgroundDexOpt aware of thermal state
This change makes the BackgroundDexOpt service consider the thermal
state of the device before running.  If the device is in a moderate thermal
state or worse background dexopt will not run.

Bug: 165935246
Bug: 181795682
Test: Treehugger && atest BackgroundDexOptServiceIntegrationTests
Change-Id: Ie5ccbab7aa6d414241780136407f397d326340bf
2021-05-19 16:41:25 +00:00
Nikita Iashchenko
832ce8f925 Merge "Move IoUtils#deleteContents from CorePlatformApi set to framework" am: a4466fbe61 am: 719831b948
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1686657

Change-Id: I08b1d281a3b71556d783b1d4f352bc7a4ba8e879
2021-05-18 23:27:10 +00:00
Nikita Iashchenko
a4466fbe61 Merge "Move IoUtils#deleteContents from CorePlatformApi set to framework" 2021-05-18 22:13:56 +00:00
Christian Wailes
fbd298a06a Merge "Make BackgroundDexOpt aware of thermal state" am: 6c914b4bc6 am: 1958d5853c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1706449

Change-Id: Ied9f85811da98f2332c921c5589b2661761abbd0
2021-05-17 20:19:12 +00:00
Siarhei Vishniakou
12318a45bd Merge "Check mInputEventReceiver before sending timeline -- 2" into sc-dev am: 234adf7cb2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14350504

Change-Id: I6c8c1670ead483b5dcb3cab3f8a018e6fcfcfc04
2021-05-17 17:43:52 +00:00
Siarhei Vishniakou
234adf7cb2 Merge "Check mInputEventReceiver before sending timeline -- 2" into sc-dev 2021-05-17 17:35:24 +00:00
Christian Wailes
6c914b4bc6 Merge "Make BackgroundDexOpt aware of thermal state" 2021-05-17 16:15:40 +00:00
Benedict Wong
b9b8c45d66 Merge "Make VcnTransportInfo unparcel to null if no data contained" into sc-dev am: e0ee346120
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14554154

Change-Id: I419ab78dbca7e418f702ad93b90dc481ff90578b
2021-05-14 23:18:15 +00:00
Benedict Wong
6452f6f978 Merge "Remove underlying network caps" am: 886e94b0a3 am: a6006f1d44
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1709008

Change-Id: I9dc2ede9a3e01b1f6988e847d2176a33c159a7fb
2021-05-14 23:13:41 +00:00
Nathan Harold
e386a1fbe8 Merge "Update VCN Owners Post-Initial-Development" am: 4b8d448b3b am: b9ec9c28ef
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1709010

Change-Id: I5fd07130187aed119c27d25082981964b7d12597
2021-05-14 23:12:57 +00:00
Benedict Wong
e0ee346120 Merge "Make VcnTransportInfo unparcel to null if no data contained" into sc-dev 2021-05-14 23:00:21 +00:00
Benedict Wong
d9695aced3 Make VcnTransportInfo unparcel to null if no data contained
When VcnTransportInfo is redacted, it contains no useful information. In
order to preserve the abstraction, the VcnTransportInfo should be
unparcelled to null


Bug: 8675309
Test: atest VcnTransportInfoTest
Change-Id: Ia9dbb9f259027acc74004eb1207e0a13cea56088
2021-05-14 22:53:51 +00:00
Chris Wailes
d63d206f97 Make BackgroundDexOpt aware of thermal state
This change makes the BackgroundDexOpt service consider the thermal
state of the device before running.  If the device is in a moderate thermal
state or worse background dexopt will not run.

Bug: 165935246
Test: Treehugger && atest BackgroundDexOptServiceIntegrationTests
Change-Id: Ie5ccbab7aa6d414241780136407f397d326340bf
2021-05-14 15:42:29 -07:00
Benedict Wong
886e94b0a3 Merge "Remove underlying network caps" 2021-05-14 22:40:54 +00:00
Benedict Wong
b2632543c0 Remove underlying network caps
Bug: 182219992
Test: atest FrameworksVcnTests
Change-Id: Ic2fec8a87fd19a1780333c61759c4092598d349e
2021-05-14 15:28:34 -07:00
Nathan Harold
e0f865d554 Update VCN Owners Post-Initial-Development
Owners files update for VCN now that primary development
is complete and the codebase is stable.

Bug: 8675309
Test: compilation
Change-Id: Ie686729b33f0a7e1c3414374ce4bf3d7ef514a22
2021-05-14 15:05:26 -07:00
TreeHugger Robot
d285109ef2 Merge "Close FDs even when throwing SecurityException." into sc-dev 2021-05-14 16:40:14 +00:00
Kohsuke Yatoh
d3275de48e Close FDs even when throwing SecurityException.
Bug: 187879195
Test: atest UpdatableSystemFontTest
Change-Id: I34d04f152210fe2f89f4d96e920978dde21d06c8
2021-05-13 23:08:33 -07:00
Benedict Wong
d9c05c23e6 Merge "Custom network selection" am: bc3638ce5d am: b3f0495383 am: 2a86eae65e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1706226

Change-Id: Icdf319d564e4eab468d9d4e722716a2ef7d2c3cd
2021-05-14 05:25:38 +00:00
Benedict Wong
9028cac4fe Custom network selection
This change adds a basic prioritization framework in the VCN, and signal
strength thresholds for WiFi.

Bug: 188104094
Test: atest FrameworksVcnTests
Change-Id: Iee4e3dbecf1102ddc127a8c8daf08a00b6fccbbd
2021-05-13 18:57:05 -07:00