Skip to content
Snippets Groups Projects
  1. May 21, 2024
  2. May 07, 2024
    • Matt Buckley's avatar
      Add plumbing for ADPF FMQ · 7f89ab37
      Matt Buckley authored
      This patch adds plumbing for ADPF to work with FMQ, including new
      getSessionChannel and closeSessionChannel methods in HintManagerService.
      It also introduces a system to cache FMQ descriptors per app and track
      binder tokens provided by getSessionChannel, to close the FMQ channels
      when the clients die.
      
      Bug: 315894228
      Test: atest HintManagerServiceTest
      Change-Id: I74a8f9d679eae4c04894cdde3f2538825ec8675b
      7f89ab37
  3. Apr 20, 2024
    • Matt Buckley's avatar
      Add HWUI session tagging · 27da1340
      Matt Buckley authored
      Adds a hidden method for the creation of special "internal" hint
      sessions with extra metadata, and plumbs hwui to use it
      
      Bug: 330553312
      Test: atest PerformanceHintNativeTestCases
      Test: hwui unit tests
      Change-Id: I35e7f81623b8f81a9a12e485f221952a13035b02
      27da1340
  4. Apr 17, 2024
    • Matt Buckley's avatar
      Add support for createHintSessionWithConfig · e073c73f
      Matt Buckley authored
      This patch adds support for the new "createHintSessionWithConfig" call
      which supports session tagging and session IDs, and updates the
      performance_hint NDK implementation to use it.
      
      Bug: 330553312
      Bug: 315894228
      Test: atest PerformanceHintNativeTestCases
      Test: atest HintManagerServiceTest
      Change-Id: Idc1c16be6bb53983cc3ec102596b9613935f7301
      e073c73f
  5. Apr 05, 2024
  6. Apr 03, 2024
  7. Mar 19, 2024
  8. Mar 18, 2024
  9. Mar 15, 2024
  10. Mar 14, 2024
    • Matt Buckley's avatar
      Update HintManager to use NDK backend · 58977725
      Matt Buckley authored
      - Update HintManager and its aidl types to use NDK backend
      - Switch HintManager to using PowerHAL's WorkDuration
      - Update SDK WorkDuration.java to no longer be parcelable,
          since it isn't being sent over binders anymore.
      - Remove duplicate WorkDuration in powermanager in favor of PowerHAL's
      
      Bug: 315894228
      Test: atest HintManagerServiceTest
      Test: atest PerformanceHintNativeTestCases
      Test: atest PerformanceHintManagerTest
      Change-Id: Ibc5a3aa96e73a225fce980811694ee02bdabb963
      58977725
  11. Mar 13, 2024
  12. Mar 05, 2024
    • Prabir Pradhan's avatar
      MotionEvent: Get offsets in raw coordinate space · de54d1a1
      Prabir Pradhan authored
      Use the offsets in raw coordinates instead of the previously used
      offsets in untransformed coordinates, which does not have any meaning in
      Java.
      
      Bug: 249340921
      Test: atest libinput_tests
      Test: atest inputflinger_tests
      Change-Id: Ia21d63be5a2c45a2339227061de89ab772a8e7f7
      de54d1a1
  13. Mar 04, 2024
  14. Feb 21, 2024
    • Arpit Singh's avatar
      Use ScopedLocalRef in InputEvent jni function · 43c34c89
      Arpit Singh authored
      This CL updates some jni functions that manipulate Key and Motion events
      to use ScopedLocalRef instead of plain jobject for better life-cycle
      tracking.
      
      Test: presubmit
      Bug: 324375527
      Change-Id: I154b0606d3c0912f0df7a890faf7246b575863f5
      43c34c89
    • Arpit Singh's avatar
      Rename android.view.InputEvent obtain copy from native methods · 14ee29ab
      Arpit Singh authored
      Rename obtain Java InputEvent copy from native methods for Key and
      Motion events for consistency. This CL renames
      1. android_view_MotionEvent_obtainAsCopy ->
         android_view_MotionEvent_obtainAsCopy
      2. android_view_KeyEvent_fromNative ->
         android_view_KeyEvent_obtainAsCopy
      3. android_view_KeyEvent_toNative ->
         android_view_KeyEvent_obtainAsCopy
      
      Bug: 324375527
      Test: atest MotionEventTest KeyEventTest
      Change-Id: I2a2fee29fd8ffcce04a939d19d3f7a0ce0c5dcf1
      14ee29ab
  15. Feb 15, 2024
    • Alec Mouri's avatar
      Allow for restricting HDR headroom for SurfaceControl and SurfaceView · f5b4b66a
      Alec Mouri authored
      Applictions presenting HDR video in their UI may want to limit the
      level of "HDRness" of the video content, so that SDR quality is not
      compromised.
      
      Bug: 323964760
      Test: Manual poking at a test app
      Test: SurfaceViewTests
      Test: SurfaceControlTest
      Test: ASurfaceControlTest
      Change-Id: I6dd56b3cb93b3e405acf4f80503a0c2f5b79c205
      f5b4b66a
  16. Feb 14, 2024
  17. Feb 01, 2024
    • Matt Buckley's avatar
      Allow ADPF WorkDuration CPU duration to be zero · a115b12e
      Matt Buckley authored
      This patch updates the checks, tests, and documentation to ensure ADPF
      CPU == 0 is allowed, and instead checks to make sure that both CPU
      and GPU cannot be 0 at the same time.
      
      Bug: 323226967
      Test: atest PerformanceHintManagerTest
      Test: atest WorkDurationTest
      Test: atest HintManagerServiceTest
      Change-Id: I6aea1d6e5d445ba21af72ac8187cc1ce15ce8b05
      a115b12e
  18. Jan 24, 2024
  19. Jan 23, 2024
    • Matt Buckley's avatar
      Provide error handling for nullptr in the ADPF NDK · 83f77092
      Matt Buckley authored
      Currently there is very little error handling for null pointers
      in the NDK, so this CL aims to remedy that by changing the WorkDuration
      API to pass status messages, updating the relevant documentation,
      and making sure that all existing methods check all pointers
      that are passed.
      
      Bug: 321065424
      Test: atest PerformanceHintNativeTestCases
      Test: atest PerformanceHintManagerTest
      Test: atest HintManagerServiceTest
      Change-Id: I8be8bb7a24e861855176c52231c48479e603aa42
      83f77092
  20. Dec 22, 2023
  21. Dec 21, 2023
  22. Dec 20, 2023
  23. Nov 30, 2023
    • Peiyong Lin's avatar
      [Reland] Add API support for GPU work duration report in ADPF. · 70de085b
      Peiyong Lin authored
      Previously we introduced the reportActualWorkDuration API without
      specifying the work duration for each components, this patch introduces
      a separate API that allows clients to send work duration with each
      component to allow fine grained scheduling strategy.
      
      Bug: b/284324521
      Test: atest PerformanceHintNativeTestCases
      Test: atest PerformanceHintManagerTest
      Test: atest HintManagerServiceTest
      Change-Id: I7c6712267dc90ca2ce9b2cc54c640820343f6931
      70de085b
  24. Nov 20, 2023
  25. Nov 15, 2023
  26. Nov 11, 2023
    • Peiyong Lin's avatar
      Add API support for GPU work duration report in ADPF. · c35d1f8d
      Peiyong Lin authored
      Previously we introduced the reportActualWorkDuration API without
      specifying the work duration for each components, this patch introduces
      a separate API that allows clients to send work duration with each
      component to allow fine grained scheduling strategy.
      
      Bug: b/284324521
      Test: atest PerformanceHintNativeTestCases
      Test: atest PerformanceHintManagerTest
      Test: atest HintManagerServiceTest
      Change-Id: Id7261b9b5779cf618d1a611e66240602c36e06d0
      c35d1f8d
  27. Oct 30, 2023
  28. Sep 28, 2023
  29. Sep 12, 2023
  30. Aug 28, 2023
  31. Aug 23, 2023
  32. Aug 18, 2023
  33. Aug 17, 2023
  34. Aug 09, 2023
  35. Aug 08, 2023
    • Matt Buckley's avatar
      Add plumbing for ADPF Power Efficiency hint · 423c1b36
      Matt Buckley authored
      These patches introduce a new power efficiency mode for hint sessions
      to the public API, and internally expose a new setMode API for hint
      sessions that resembles the setMode API for iPower, to control
      different session operating modes.
      
      This set of patches:
       - Updates the PowerHAL AIDL to version 5, and updates relevant bp files
       - Exposes new setPreferPowerEfficiency(bool enabled) method from the
       SDK and NDK
       - Exposes new setMode(int mode, bool enabled) method from PowerHAL AIDL
       and HintManagerService
       - Adds support for new setMode call in PowerHAL
      
      Bug: b/288117936
      Test: atest cts/tests/tests/os/src/android/os/cts/PerformanceHintManagerTest.java
      Test: atest HintManagerServiceTest
      Change-Id: Ia1349e1bd8c4c85276788892b69897b5ef267c03
      423c1b36
  36. Jul 31, 2023
Loading