Skip to content
Snippets Groups Projects
  1. Apr 03, 2024
  2. 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
  3. 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
  4. Feb 14, 2024
  5. 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
  6. Jan 24, 2024
  7. 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
  8. Dec 22, 2023
  9. Dec 21, 2023
  10. Dec 20, 2023
  11. 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
  12. Nov 20, 2023
  13. Nov 15, 2023
  14. 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
  15. Oct 30, 2023
  16. Sep 28, 2023
  17. Sep 12, 2023
  18. Aug 28, 2023
  19. Aug 23, 2023
  20. Aug 18, 2023
  21. Aug 17, 2023
  22. Aug 09, 2023
  23. 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
  24. Jul 31, 2023
  25. Jul 26, 2023
  26. Jul 20, 2023
  27. Jul 10, 2023
  28. Jul 05, 2023
  29. Jun 01, 2023
    • Nate Fischer's avatar
      WebView: remove OWNERS · 0c5296c6
      Nate Fischer authored
      No change to logic. This updates the WebView team's OWNERS files. This
      also adds our buganizer component (this was already visible in
      cts/tests/tests/webkit/OWNERS).
      
      Test: N/A
      Change-Id: I65dca15fd5f312cb401e0ab556d146f73b14cdf7
      0c5296c6
  30. May 26, 2023
  31. May 02, 2023
    • Prabir Pradhan's avatar
      Clean up KeyEvent JNI APIs · f5c06a17
      Prabir Pradhan authored
      Directly return a KeyEvent from KeyEvent_toNative, and change the
      KeyEvent parameter from a pointer to a reference in KeyEvent_fromNative.
      
      Bug: 279927189
      Bug: 245989146
      Test: Presubmit
      Change-Id: I9c98700ea4645c6c4cb975fabfa25d1ff959bfc3
      f5c06a17
  32. Apr 29, 2023
    • Austin Borger's avatar
      UidObserver / Camera: Track the OOM adj of a uid via UidObserver. · 690c1ed1
      Austin Borger authored
      Previously, onUidProcAdjChanged merely signaled that the OOM adj of a
      uid changed, but did not provide the actual OOM adj score. Having this
      information allows the camera service to cut out redundant calls to
      onCameraAccessPrioritiesChanged and avoid overwhelming apps.
      
      The number of calls to onCameraAccessPrioritiesChanged is reduced by
      only signaling when it's likely the uid owning a camera would lose
      access to it if another uid tried to open that camera. This is opposed
      to the status quo, which signals every time a watched uid changes its
      OOM adj, which is highly inefficient.
      
      Bug: 274486653
      Test: -- on physical device:
            -- testCamera2AccessCallbackInSplitMode x10
            -- ActivityManagerServiceTest
            -- ActivityManagerProcessStateTest
            -- ActivityManagerFgsBgStartTest
            -- UidObserverControllerTest
            -- Alternate focus in split screen between Camera2 + GCA x20
      Change-Id: I994bf56d8e1687460149626a3a658851ca9513c4
      690c1ed1
  33. Apr 12, 2023
  34. Mar 30, 2023
  35. Mar 28, 2023
  36. Mar 24, 2023
Loading