Skip to content
Snippets Groups Projects
  1. Dec 28, 2024
  2. Dec 26, 2024
  3. Dec 22, 2024
  4. Sep 14, 2023
    • Ady Abraham's avatar
      libgui: plumb setFrameRate thru BufferQueue · 6cdd3fd7
      Ady Abraham authored
      The current implementation just assumes that the Surface
      and BLASTBufferQueue lives in the same process and rely
      on inheritance to handle setFrameRate. This doesn't work
      for any usecase that the Surface is Parceled to a diffrent process.
      
      Bug: 281695725
      Test: atest CtsGraphicsTestCases --test-filter SetFrameRateTest*
      Change-Id: I4e08b92b618fa7b863ca3ef4f7b46d9f1c30c775
      6cdd3fd7
  5. Jun 14, 2023
    • Siarhei Vishniakou's avatar
      Convert InputVerifier to rust · 5c02a719
      Siarhei Vishniakou authored
      To establish some basic rust infrastructure for input code, convert the
      InputVerifier into rust.
      
      Currently, we use bindgen for interfacing between cpp and rust. In a
      future CL, this may be changed to an aidl interface instead.
      
      The logs and verifications can be enabled via:
      adb shell setprop log.tag.InputTransportVerifyEvents DEBUG
      adb shell setprop log.tag.InputVerifierLogEvents DEBUG
      adb shell setprop log.tag.InputDispatcherVerifyEvents DEBUG
      
      Bug: 271455682
      Test: m inputflinger_tests && $ANDROID_HOST_OUT/nativetest64/inputflinger_tests/inputflinger_tests
      Change-Id: I607fed9f6fc9c38e2c8392f59e9c4facdaf6c68a
      5c02a719
  6. Jan 17, 2023
    • Ady Abraham's avatar
      SF: remove DispSyncSource · 011f8ba7
      Ady Abraham authored
      DispSyncSource is a legacy reminder of DispSync which was removed
      a while ago. This changes removes the DispSyncSource and instead use
      the VsyncDispatch interface directly.
      
      Test: SF unit tests
      Bug: 255601557
      Bug: 256196556
      Change-Id: I4247c3927b9ee9443437bf960f8cedc29759c4ac
      011f8ba7
  7. Oct 06, 2020
    • Marin Shalamanov's avatar
      Revert^2 "[SF] Introduce VirtualDisplayId" · 0f10d0db
      Marin Shalamanov authored
      This change introduces a new class VirtualDisplayId which is
      inherited by HwcVirtualDisplayId and GpuVirtualDisplayId.
      HwcVirtualDisplayId replaces the current ids assigned to
      virtual displays backed by HWC. GpuVirtualDisplayIds are random
      generated IDs assigned to non HWC virtual displays, which currently
      don't have IDs. This way all compositionengine/Display and
      DisplayDevice objects have a DisplayId.
      
      The logic for ID generation is encapsulated in DisplayIdGenerator.h.
      
      Bug: 162916145
      Bug: 160679868
      Bug: 137375833
      Test: scrcpy on device
      Test: atest DisplayIdGeneratorTest
      Test: atest libsurfaceflinger_unittest
      Test: m WITH_TIDY=1 surfaceflinger
      Change-Id: I6e7247d18e3521978dfd8af2dc7b1d36ccaa7313
      0f10d0db
  8. Oct 05, 2020
    • Siarhei Vishniakou's avatar
      Revert "[SF] Introduce VirtualDisplayId" · 3a67f365
      Siarhei Vishniakou authored
      Revert "CE-ARC: Track changes to DisplayId conversions"
      
      Revert submission 12319471-virtual-display-id
      
      Reason for revert: Breaks build on crosshatch-userdebug
      Reverted Changes:
      I7d9a3062c:CE-ARC: Track changes to DisplayId conversions
      I550b1f471:[SF] Introduce VirtualDisplayId
      
      Change-Id: Ife6b6b51babdc0566801f1c7d2db6239f6f926bd
      3a67f365
    • Marin Shalamanov's avatar
      [SF] Introduce VirtualDisplayId · 7cee53e6
      Marin Shalamanov authored
      This change introduces a new class VirtualDisplayId which is
      inherited by HwcVirtualDisplayId and GpuVirtualDisplayId.
      HwcVirtualDisplayId replaces the current ids assigned to
      virtual displays backed by HWC. GpuVirtualDisplayIds are random
      generated IDs assigned to non HWC virtual displays, which currently
      don't have IDs. This way all compositionengine/Display and
      DisplayDevice objects have a DisplayId.
      
      The logic for ID generation is encapsulated in DisplayIdGenerator.h.
      
      Bug: 162916145
      Bug: 160679868
      Bug: 137375833
      Test: scrcpy on device
      Test: atest DisplayIdGeneratorTest
      Test: atest libsurfaceflinger_unittest
      Change-Id: I550b1f4714fcad0c3328d0cad93fc601ea7593c2
      7cee53e6
  9. Feb 02, 2019
    • Alec Mouri's avatar
      Add refresh rate stats to TimeStats. · fb571ea6
      Alec Mouri authored
      Bug: 122905821
      Test: libsurfaceflinger_test
      Test: dumpsys SurfaceFlinger --timestats -dump --proto
      Change-Id: I99b38497f054f86bebba0813134f1c1eaf632b47
      fb571ea6
  10. Aug 02, 2018
    • Lloyd Pique's avatar
      [SurfaceFlinger] Allow DispSync to be GMock'd · 41be5d28
      Lloyd Pique authored
      Move the DispSync implementation into an 'impl' namespace to match the
      other GMock related changes I've done. The DispSync in the previous
      namespace is now the abstract interface.
      
      SurfaceFlinger is adjusted slightly to create an instance of the
      impl::DispSync, but store it in a std::unique_ptr<DispSync> for the
      abstract class, with small adjustments to the code to deference the now
      pointer.
      
      The existing display transaction unit test is updated to define the
      GMock, inject one, and to set the call expectations for a few tests are
      added to match how it was called.
      
      Test: atest libsurfaceflinger_unittest
      Bug: None
      
      Change-Id: I91b38c5194dbf86a6f0b658f3ab9f227b54d5354
      41be5d28
  11. Apr 17, 2018
    • Lloyd Pique's avatar
      SF: Shuffle test mocks into subdirs · cbe00014
      Lloyd Pique authored
      This shuffles the various GMock files into a subdir mock/ that also
      mirrors the subdirectory hierarchy of the implementation being mocked.
      
      Test: libsurfaceflinger_unittest passes on Pixel XL
      Bug: 74827900
      Change-Id: I4c90228993a44c27708c703763e0315322fef0ce
      cbe00014
  12. Feb 07, 2018
    • Lloyd Pique's avatar
      SF: Define mock::EventThread · f979735a
      Lloyd Pique authored
      This allows the unit tests to use a Mock for the normal EventThread
      instance.
      
      Test: Builds
      Bug: None
      Change-Id: I6f6853a33d0cd9af4548eb318b4564eb6c9af1e6
      f979735a
    • Lloyd Pique's avatar
      SF: Define Hwc2::mock::Composer · d0094aae
      Lloyd Pique authored
      This allows the unit test to use a mock in place of android::Hwc2::Composer.
      
      Test: Code builds
      Bug: None
      Change-Id: Ia6f0df083d579cf69e97abc2ff7f2d3f5789a320
      d0094aae
  13. Jan 05, 2018
    • Vishnu Nair's avatar
      Add bugreport section progress reporter · 20cf5036
      Vishnu Nair authored
      - Allow dumpstatelisteners to monitor section size and duration and errors while the
      bugreport is generated. Data will be used to write smoke tests for bugreport.
      - Refactor main function to allow test to call dumpstate main function. Required until
      bugreport api is completed
      - Restore stdout and stderr fds before exiting dumpstate
      
      Bug: 70154685
      Test: mmm -j56 frameworks/native/cmds/dumpstate && \
            adb sync data && \
            adb shell /data/nativetest64/dumpstate_test/dumpstate_test && \
            printf "\n\n#### ALL TESTS PASSED ####\n"
      
      Change-Id: I7e0938baf6e055f14dce2348d0fe99f261870bf1
      20cf5036
  14. May 15, 2017
    • Yifan Hong's avatar
      Add tests to lshal. · 3b3fbb7e
      Yifan Hong authored
      Test: lshal_test
      Bug: 37725279
      Change-Id: I1914e6274974ed5eb0ce2d655f1333d2344b49f5
      Merged-In: I1914e6274974ed5eb0ce2d655f1333d2344b49f5
      3b3fbb7e
  15. Mar 10, 2017
    • Mathias Agopian's avatar
      convert BlobCache to STL · b7f9a240
      Mathias Agopian authored
      This finally gets rid of the utils/BlobCache.h
      dependency
      
      Test: compiled & run
      Bug: vndk-stable
      Change-Id: Idfc6ace472479fae99694f56edb973800b2bef20
      b7f9a240
  16. May 12, 2016
  17. Jan 25, 2016
    • Michael Lentine's avatar
      Add support for loading layers from the apk. · 1c69b9e3
      Michael Lentine authored
      Added the vulkan_layer_path interface which is used to set the path from
      ThreadedRenderer. The vulkan loader then uses this path to search for layer
      libraries that come preinstalled with the app.
      
      Change-Id: Iee7d56c1950296ba5ece3a119741406d705479a8
      (cherry picked from commit 1f920c1e52bbd59405761e5403def5dbc22e331b)
      1c69b9e3
  18. Dec 14, 2015
    • Felipe Leme's avatar
      Migrated dumpstate to C++. · 515eb0db
      Felipe Leme authored
      Changes required:
      
      - Explicity casting function pointers.
      - Moving variables initialization before 'goto' statements.
      - Changing string references from 'char *' to 'const char *'.
      - Using 'extern "C"' so device-dependent implementation of
        'dumpstate_board()' can be written in C or C++.
      
      BUG: 25563823
      
      Change-Id: Ibeb70fd23e64e9b530736b554a372cb232fe1a44
      515eb0db
  19. Nov 10, 2015
    • Felipe Leme's avatar
      Migrated dumpstate to C++. · 8620bb41
      Felipe Leme authored
      Changes required:
      
      - Explicity casting function pointers.
      - Moving variables initialization before 'goto' statements.
      - Changing string references from 'char *' to 'const char *'.
      - Using 'extern "C"' so device-dependent implementation of
        'dumpstate_board()' can be written in C or C++.
      
      BUG: 25563823
      Change-Id: I5712c2adbe181c6d17983cbb136b17757900b4ba
      8620bb41
  20. Aug 13, 2013
  21. Jul 22, 2013
  22. Jul 15, 2013
Loading