Commit graph

12 commits

Author SHA1 Message Date
Adithya Srinivasan
ac977e6de0 SF - plumbing game mode for metrics (Part 1)
This change adds a game mode in the Layer metadata that gets updated every
time a game app comes to the foreground. The gameMode is then set on the
Layer based on the metadata and reparenting.

The game mode will then be
updated in TimeStats as a dimension (Part 2, in a separate CL later).

Bug: 186025682
Test: libsurfaceflinger_unittest:GameModeTest

Change-Id: I09deffc01d1b318cc08d0475611289dec055c190
2021-06-02 17:38:39 +00:00
Kriti Dang
a6daf9fa42 Adding aidl file to share deviceProductInfo constants bw java and c++
Bug: 179775994
Test: N/A
Change-Id: Ibea82aeff36e8cb7ee57ff1d7798e67615278af6
2021-02-26 12:35:06 +01:00
Ulyana Trafimovich
eb922de0a5 Revert "Adding aidl file to share deviceProductInfo constants bw..."
Revert "Changes in tvsystem/ DeviceProductInfo to mirror changes..."

Revert "Adding new CTS test for the API display#getDeviceProductInfo"

Revert submission 13552775-expose DisplayInfo.deviceProductInfo

Reason for revert: broken test android.compat.sjp.cts.StrictJavaPackagesTest#testBootClassPathAndSystemServerClasspath_nonDuplicateClasses
    on git_sc-dev on cf_x86_64_phone-userdebug at 7162420

Bug: 181021245

Reverted Changes:
Id6767127f:Adding aidl file to share deviceProductInfo consta...
I6959d2829:Adding public API to expose DisplayInfo.deviceProd...
I720dbfe84:Adding new CTS test for the API display#getDeviceP...
I6c726e12c:Changes in tvsystem/ DeviceProductInfo to mirror c...

Change-Id: I6f4997ec3ff2ee540fe3466d5ef25aace4224a36
2021-02-23 17:14:58 +00:00
Kriti Dang
256dca81f6 Adding aidl file to share deviceProductInfo constants bw java and c++
Bug: 179775994
Test: N/A
Change-Id: Id6767127f82f0256cbcbe15eb682b88c93bb27fa
2021-02-17 18:12:26 +01:00
Vishnu Nair
adf632ba3a BlastBufferQueue: Pass client dequeue times to SurfaceFlinger
SF keeps track of client dequeue, queue, acquire etc. timestamps to
construct frame rendering timelines for developers. With BBQ, SF no
longer has access to this data, so pass the dequeue time along with
the buffers.

Ideally this data should flow to the perfetto trace directly from the client
but this is a temp solution while some perf issues with client logging
is sorted out.

Bug: 176931912
Test: manual tests
Change-Id: Ic88170c1fb20850662cb99325ac42b7232a02817
2021-01-07 14:05:08 -08:00
Adithya Srinivasan
9febda8e05 Plumb owner pid into Layer
For shared timeline visualization, the pid of the process owning the
layer is needed to show the information in the respective process
tracks. This change stores the newly added METADATA_OWNER_PID
information sent as a part of the Layer creation args

Bug: 170911969
Test: pid section of `adb shell dumpsys SurfaceFlinger --frametimeline -<all/jank>`

Change-Id: Ib1cd9b6239501b0b92283dca19d7de3916fff604
2020-11-02 18:32:24 -08:00
Automerger Merge Worker
6ebe801b66 Merge "Make PersistableBundle a stable parcelable." am: 0f56c2b4ba am: 3bf5cc8b88 am: 27d609f2b8
Change-Id: Ibf6ed0d9e68c04ad2953720e1f1a80da16088ae9
2020-01-17 03:47:58 +00:00
Cody Kesting
010224c8ec Make PersistableBundle a stable parcelable.
PersistableBundle is updated to declare the @JavaOnlyStableParcelable
annotation, which allows it to be used in stable aidl interfaces.

Bug: 143187964
Test: compiles
Change-Id: I8b3fa9746cc7694b18c285c8b7f646e23759ddb3
2020-01-08 23:49:27 +00:00
Daichi Hirono
f474d3dba8 Add AIDL for LayerMetadtaKey
to share the same definition between C++ and Java code

Bug: 143912669
Test: make
Change-Id: I7f2a189f134f1f924906a22dfc30ccf221cfd2d7
2019-12-23 02:12:33 +00:00
Mathias Agopian
05debe1d78 Split view::Surface out of Surface.cpp
it’s moved into a new view/Surface.cpp, header in
gui/view/Surface.h

their entanglement also meant that code that needs
only view::Surface ended up with all of Surface
dependencies.

Test: built and booted device
Bug: treble
Change-Id: I1a350d258f124fbe0a7bc5a2ca165311dcb0d8e3
2017-02-09 23:07:31 +00:00
Eino-Ville Talvala
88612912ac GUI: Move Surface.aidl here and implement for native
- Move android/view/Surface.aidl parcelable definition from frameworks/base
- Implement matching native behavior to android.view.Surface parceling,
  to enable use of android.view.Surface in generated native AIDL interfaces

Bug: 25091611
Change-Id: I87ffbb9a19c27a99ce0749d0ca1f17aaa6b3fe74
2016-03-01 17:16:44 -08:00
Samuel Tan
07b0cd6d4b Add PersistableBundle.aidl into binder includes
Add the PersistableBundle.aidl into the new /aidl/binder/
subdirectory (along with the necessary 'android' and 'os'
subdirectories) so that the aidl file will live alongside
its native implementation in libbinder. This change will
allow native-only Android checkouts (e.g. Brillo) to use
PersistableBundle.

The /aidl/ subdirectory should henceforth contain any
aidl files that live with native code.

BUG: 26292234
Change-Id: I07b49dad8afd679f33e41fa9044dffc02ec25e3e
2016-01-06 11:03:18 -08:00