Commit graph

76014 commits

Author SHA1 Message Date
Orion Hodson
ed38697b9f Merge "Add dependencies on jni_headers" 2020-06-01 09:20:10 +00:00
Treehugger Robot
43beafe0b0 Merge changes from topics "cursor_type_hotspot", "set_viewport_in_input_reader"
* changes:
  Let InputReader set mouse cursor's display.
  Add metadata for mouse cursor.
2020-05-29 19:23:45 +00:00
Chun-Wei Wang
b87b05f286 Merge "Delete APK snapshots during restoration (3/n)" 2020-05-29 08:01:48 +00:00
Steven Moreland
3769b77023 Merge changes from topic "parcel-allocation"
* changes:
  Reland "binder: Parcel avoid too small initial allocation"
  libbinder: TEST_MAPPING CtsOsTestCases
2020-05-28 20:11:08 +00:00
Garfield Tan
0a080c3666 Let InputReader set mouse cursor's display.
InputReader was already responsible to bind device/event and display. It
makes sense to further extend it to control the display where mouse
cursor is shown.

Bug: 146385350
Test: Mouse cursor shows up at expected display.
Test: atest inputflinger_tests
Change-Id: Ie7a9546550b70c8834462b06de929472196fe713
Merged-In: Ie7a9546550b70c8834462b06de929472196fe713
2020-05-28 12:01:35 -07:00
Garfield Tan
b0412cfa69 Add metadata for mouse cursor.
Mouse cursor metadata is stored in a parcel with a int32_t for mouse
cursor type, and two floats for mouse hotspotX/Y. Therefore move the
parcel to byte vector conversion into SurfaceComposerClient. If anyone
needs to store metadata in raw byte vector we can change the interface
later.

Bug: 130822623
Test: SurfaceFlinger can get cursor type and hotspot.
Change-Id: Ia7e0c952fcaefd14280322d9b2269f4dba38e8da
Merged-In: Ia7e0c952fcaefd14280322d9b2269f4dba38e8da
2020-05-28 12:01:35 -07:00
Steven Moreland
042ae82311 Reland "binder: Parcel avoid too small initial allocation"
Bug: 150149045
This reverts commit ce3262092e.

Reason for revert: reland original fix after fixing android.os.cts.ParcelTest

The place where the default size is changed here from the original CL.
Now, when explicit setDataCapacity calls are made, we no longer use an
artificially larger size.

Test: atest android.os.cts.ParcelTest
Test: atest binderAllocationLimits

Change-Id: I08c5eeb3be0b61ccf2f5e34b5bc7b45f58f8cbcb
2020-05-27 20:09:35 +00:00
Steven Moreland
2b9d365bcc libbinder: TEST_MAPPING CtsOsTestCases
Since there are several parcel tests and other binder tests there.

Bug: 157536820
Test: CtsOsTestCases
Change-Id: I22d2e866dd0c5370cac22b0cef545f4e0c1adf63
2020-05-27 18:40:16 +00:00
Steven Moreland
839fc14337 Merge "Revert "binder: Parcel avoid too small initial allocation"" 2020-05-27 17:43:24 +00:00
Steven Moreland
ce3262092e Revert "binder: Parcel avoid too small initial allocation"
This reverts commit 7dacc699a4.

Reason for revert: broke android.os.cts.ParcelTest which is blocking some presubmit.

Change-Id: I71a6481a5e00adf5096eb824ada8fef3c670dfdd
2020-05-27 17:42:57 +00:00
Orion Hodson
a58ef3567b Add dependencies on jni_headers
Preparation for removing implicit include paths for jni.h from soong.

Bug: 152482542
Test: m checkbuild
Change-Id: I06873e61e519b6e54d7325f90231bce732790366
Merged-In: I06873e61e519b6e54d7325f90231bce732790366
Exempt-From-Owner-Approval: build clean-up
(cherry picked from commit e32877afcc)
2020-05-27 16:52:08 +01:00
Steven Moreland
45e0cf7236 Merge "binder: Parcel avoid too small initial allocation" 2020-05-26 17:30:19 +00:00
Treehugger Robot
cc56eff39b Merge "CompositionEngine: fix HWC transform calculation" 2020-05-21 23:20:58 +00:00
Rashed Abdel-Tawab
9135ddd59a CompositionEngine: fix HWC transform calculation
Use the correct display transform in calculateOutputRelativeBufferTransform().
When SF_PRIMARY_DISPLAY_ORIENTATION is set, DisplayDevice only updates the
logical to physical transform; OutputCompositionState.orientation doesn't
change.

Test: - OutputLayerTest.displayInstallOrientationBufferTransformSetTo90
      - Run "dumpsys SurfaceFlinger" on a device with SF_PRIMARY_DISPLAY_ORIENTATION
        set to 90 and verify that the HWC transform is 0 (identity)
      - screencap
Change-Id: I079b5ea22de8d47a7fb7233d01decfbd4b578be8
Merged-In: I079b5ea22de8d47a7fb7233d01decfbd4b578be8
2020-05-21 22:02:05 +00:00
Steven Moreland
fcb357810a Merge "servicemanager: hard failure for missing context" 2020-05-20 22:29:23 +00:00
Steven Moreland
7dacc699a4 binder: Parcel avoid too small initial allocation
When a transaction is being sent, frequently many allocations are in a
row. In order to avoid all these allocations, creating a minimum
allocation size here. A test is also added which ensures that a basic
transaction takes exactly one allocation.

Bug: 150149045
Test: atest binderAllocationLimits
Change-Id: I88ab066328158a8b73dd81201b796f247c4dbbd0
2020-05-20 22:15:58 +00:00
Steven Moreland
b5a0f22ce1 servicemanager: hard failure for missing context
Bug: 152636392
Test: boot
Change-Id: I9940bde64547e3e28fc3eabf33cb8c2ef983dc56
2020-05-19 23:09:50 +00:00
Steven Moreland
377fc5aadd Merge "log when waiting on a servicemanager" 2020-05-19 22:15:30 +00:00
Steven Moreland
39a572183a log when waiting on a servicemanager
Since vndservicemanager is no longer installed by default, this gets hit
on those devices.

Bug: 156571068
Test: TH
Change-Id: I31af865326e9a69042e5c53b63637b95d6de9ad1
2020-05-19 18:11:01 +00:00
Nikita Ioffe
6540819ca8 Merge "Add flag to cmd for dynamic services" 2020-05-19 11:59:33 +00:00
JW Wang
fda19ecdd6 Delete APK snapshots during restoration (3/n)
The snapshots are no longer needed after restore is done.

We do this in keeping with the fact that apk/apex code data is
deleted immediately after the rollback is committed.

See go/rollbackmanager-snapshot-deletion for more details.

Bug: 151805360
Test: N/A. Will be added in the next CL.
Change-Id: I5a7540aa08922c4b0c617c9cb37e1bec2ff23fc1
2020-05-19 14:18:26 +08:00
Jooyung Han
ef685e33a0 Merge "gui/math: Set min_sdk_version" 2020-05-19 04:14:57 +00:00
Jooyung Han
394c177463 gui/math: Set min_sdk_version
Modules contributing mainline modules (APK/APEX) should set
min_sdk_version as well as apex_available.

For now setting min_sdk_version doesn't change build outputs.
But build-time checks will be added soon.

Exempt-From-Owner-Approval: cherry-pick from internal

Bug: 152655956
Test: m
Merged-In: Ib7685f5f4f924ac145eb4f10ad83a6c0548b2206
Change-Id: Ib7685f5f4f924ac145eb4f10ad83a6c0548b2206
(cherry picked from commit 54042e0ae4)
2020-05-19 04:14:38 +00:00
Treehugger Robot
ed760b0671 Merge "Add isStable in Parcelable interface" 2020-05-18 22:11:37 +00:00
Steven Moreland
5921fa4151 Merge "libbinder: do not destruct SM global" 2020-05-18 16:50:16 +00:00
Jon Spivack
e82eaa845b Add flag to cmd for dynamic services
When cmd is called with the -w flag, it will call ServiceManager::waitForService instead of checkService. This will make dynamic services start and block until they are ready for use.

Bug: 149526916
Test: atest ApexRollbackTests (with and without this flag applied within for dynamic apexd)
Change-Id: Iad0c3d7aa75e5830da10a84bd753d3011438259f
Merged-In: Iad0c3d7aa75e5830da10a84bd753d3011438259f
(cherry picked from commit 77f83368b1)
2020-05-18 13:16:59 +01:00
Jeongik Cha
9e8086658d Add isStable in Parcelable interface
Bug: 156242606
Test: m
Change-Id: I0edc64c8c7f8c9c08384f9d48832549eb026b9d0
2020-05-18 09:22:52 +00:00
Steven Moreland
1698ffd088 libbinder: do not destruct SM global
Let linux clean it up, since this may be accessed by some threads after
the main thread is destructed.

Bug: 154507808 # longterm
Bug: 156785633

Test: w/ repro which calls defaultServiceManager off main thread
Change-Id: Ic109f4bdca3893e6b0b192ac27f3ff03ada6f9e2
2020-05-16 00:27:55 +00:00
Jooyung Han
196feae688 Merge "setDefaultImpl aborts on a second call" 2020-05-14 23:18:24 +00:00
Jooyung Han
81087399e9 setDefaultImpl aborts on a second call
The actual problem is that default implementation is set globally.
setDefaultImpl might not work as expected when it is called twice with
different instances.

Because we don't have a proper solution for the problem, we prevent
calling setDefaultImpl() twice by aborting.

Bug: 140139809
Test: ./runtests.sh (in /system/tools/aidl)
Change-Id: I659d3eaad3a45dcba608fa79a08f083f84bc4d58
2020-05-14 10:21:57 +09:00
Alec Mouri
dd44f7465d Merge "[RenderEngine] Reorder when ImageManager thread starts" 2020-05-12 21:43:58 +00:00
Treehugger Robot
22dfdb7283 Merge "Updated OWNERS files" 2020-05-12 19:26:09 +00:00
Alec Mouri
6193c3b2e7 [RenderEngine] Reorder when ImageManager thread starts
Previously the background thread for managing EglImages was intialized
as a member variable before the constructor completed running. In very
rare circumstances this can potentially stop the running thread if the
thread ran before mRunning was initialized. To be less error-prone,
require that ImageManger::initThread be explicitly called to guarantee
that class member variables are well-defined when the thread begins
executing.

In case the issue resurfaces after this change, added a debug log to add
context.

Bug: 146416748
Bug: 155852355
Test: builds. There is no reliable repro, so this fix is speculative
Test: systrace to verify thread is running and configured correctly.
Change-Id: I141c86240b90c7f87c22b3768c2e188293987b76
Merged-In: I141c86240b90c7f87c22b3768c2e188293987b76
2020-05-12 19:05:37 +00:00
chaviw
bf5b42355b Updated OWNERS files
Test: Nothing
Bug: None
Change-Id: Ib055cbb8884b7a3ffa24f70d1e3ed610ac5024be
2020-05-12 10:00:16 -07:00
Treehugger Robot
fa5cda8260 Merge "sf: Fix issue with dequeueBuffer when multiple display present" 2020-05-11 20:05:02 +00:00
Baldev Sahu
0560e0e8ea sf: Fix issue with dequeueBuffer when multiple display present
swapBuffers is called even for device composition when a flip client
target request is present. dequeueBuffer call is skipped
as there is no client composition. This is fine for single display
but if multiple display i.e. vds is present, this will be an issue
as current surface will not be switched and swapBuffers will fail

When flip client target request is present, make sure buffer is
dequeued before swapBuffers.

Bug: 151698217
Test: atest libsurfaceflinger_unittest
Change-Id: I933cbae2f09f81eef6555b1bb1e5991d2c450930
Merged-In: Ia8a1470affb2596b27986cc4153417f48cf4ed1c
2020-05-11 12:06:06 -07:00
Treehugger Robot
8729d923ad Merge "libbinder_ndk: test -> tests" 2020-05-08 05:09:59 +00:00
Steven Moreland
03139dc103 libbinder_ndk: test -> tests
Since there is more than one test here.

Bug: 155793159
Test: N/A
Change-Id: I3d9195f670e108a3e4e72bdd41a9bcead0638dd4
2020-05-07 18:22:15 -07:00
Treehugger Robot
856e0b377e Merge "Add svv@ to OWNERS for EndToEndNativeInputTest" 2020-05-07 22:47:27 +00:00
Siarhei Vishniakou
6cdeb8c6aa Add svv@ to OWNERS for EndToEndNativeInputTest
Since svv@ changes this file a lot, add to owners.

Bug: none
Test: none
Change-Id: Id77b83cb4e09194e76ffca8670473ede59c6b3e4
2020-05-07 10:44:28 -07:00
Kris Alder
3e3cdc9b33 Merge "media_plugin_headers: Add host support" 2020-05-06 21:35:51 +00:00
S Vasudev Prasad
3d1c2f61f0 media_plugin_headers: Add host support
Test: Build media_plugin_headers
Bug: 151789258

Change-Id: I46553563666e81393a0237224cc19b3694123322
2020-05-05 11:08:16 +05:30
Treehugger Robot
dbd5b4325b Merge "Handle the boot profile format when analyzing profiles" 2020-05-04 23:40:38 +00:00
Calin Juravle
f85ddb9cce Handle the boot profile format when analyzing profiles
When analyzing profiles for dexopt, use the boot image profile format
if the system is configured to profile the boot image.

Test: atest installd_dexopt_test
Bug: 155423653

(cherry-picked from commit: c8a0442cad)

Merged-In: I83ff959389bafcfce291485f78e1b05d6ca42625
Change-Id: I83ff959389bafcfce291485f78e1b05d6ca42625
2020-05-04 14:16:12 -07:00
Treehugger Robot
aaa7aee168 Merge "libbinder: Document future direction of getService." 2020-05-01 20:27:36 +00:00
Suren Baghdasaryan
a72f314893 Merge "Replace direct pid writes with setting task profiles" 2020-05-01 18:00:58 +00:00
Suren Baghdasaryan
7a5ff88143 Replace direct pid writes with setting task profiles
For easy transition from SchedTune to UtilClamp, direct access to these
cgroups should be abstracted by using task profiles. Replace writepid
commands with new task_profiles command.

Bug: 155419956
Test: change .rc file and confirm task profile is applied
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: I3e06e25a75cf79674d8381b3356c64790fd5a597
2020-05-01 17:46:48 +00:00
Jooyung Han
ad9387dd8a Merge "Set min_sdk_version to be part of mainline modules" 2020-05-01 17:35:35 +00:00
Steven Moreland
4c51ebbbe6 Merge changes from topic "vintf-manifest-error-logs-part-ii"
* changes:
  Log VINTF manifest success/failure cases.
  servicemanager: remove performance hack
2020-05-01 02:06:46 +00:00
Steven Moreland
2edde8e605 Log VINTF manifest success/failure cases.
These logs are critical to understand the operation of the system, and
do not spam (1/hal start or 1/hal request). Most importantly, if a
manifest fails to be read for whatever reason, this is logged (null
manifest case).

Bug: 151696835
Test: boot, and verify logs of successful hal retrivals
Test: boot, and verify logs w/ patch which causes VINTF to fail the
  first time, and verify that this causes a single crash which gives us
  the ability to still find and detect a critical error, but allows the
  system functionality to continue to work.
Change-Id: I0a26b875947878656d6eda03ffebce97ebb6139e
2020-04-30 17:11:04 -07:00