Skip to content
Snippets Groups Projects
  1. Dec 22, 2023
  2. Dec 21, 2023
  3. Oct 30, 2023
  4. Sep 12, 2023
  5. Aug 28, 2023
  6. Jul 26, 2023
  7. 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
  8. 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
  9. 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
  10. Apr 12, 2023
  11. Mar 30, 2023
  12. Mar 28, 2023
  13. Mar 16, 2023
  14. Mar 14, 2023
    • Sam Gao's avatar
      Remove usage of mFileName in ObbInfo · 5a4db981
      Sam Gao authored
      
      This field was not being set but was used in storage_manager.cpp:89,
      which constructed a String16 using the nullptr. This internally
      calls strlen on the null pointer, which causes a seg fault. Since
      mFileName is not being set and getFileName has no other callsites,
      remove the field altogether so nobody else tries to use it and pass
      in the expected value at its only callsite.
      
      Test: Calling AStorageManager_mountObb from NDK does not result in
      a crash.
      
      Signed-off-by: default avatarSam Gao <ssgao@meta.com>
      
      Upstream from Meta.
      
      Change-Id: I4374148f466dacd62c659d3c94fd309674cb2d34
      5a4db981
  15. Mar 10, 2023
  16. Feb 14, 2023
  17. Feb 07, 2023
    • Matt Buckley's avatar
      Revert "Use "SessionHint" enum in ndk API" · 712f58a6
      Matt Buckley authored
      Revert submission 21161765-sessionhint_api
      
      Reason for revert: this broke the main-finalization-1 build... somehow. see b/268111957
      
      Reverted changes: /q/submissionid:21161765-sessionhint_api
      
      Change-Id: I23ca8da4957aa030d7788d22fc946259e34ee3cf
      712f58a6
  18. Feb 03, 2023
    • Rachel Lee's avatar
      NDK attached Choreographer from SurfaceControl. · 93d2d0b4
      Rachel Lee authored
      The API to get a native attached choreographer from
      ASurfaceControl.
      
      Bug: 255838011
      Test: atest ChoreographerTests
      Test: atest ChoreographerNativeTest
      Change-Id: I7ed0ebea9f735e102f2285edb3a1cc35b338c3c9
      93d2d0b4
  19. Feb 01, 2023
    • Matt Buckley's avatar
      Use "SessionHint" enum in ndk API · 9c64b1bc
      Matt Buckley authored
      Change NDK to use "SessionHint" enum consistently across definitions.
      
      Bug: 266596626
      Test: manual
      Change-Id: I87b157f54d68115c0f972f6fb33153375858fe2e
      9c64b1bc
  20. Jan 26, 2023
  21. Jan 19, 2023
    • Spandan Das's avatar
      Replace #apex with #systemapi · d950d379
      Spandan Das authored
      The intended use is
      - #apex is APEX-visible symbols provided by apex libraries
      - #systemapi is APEX-visible symbols provided by platform libraries
      
      Since libandroid is a platform library, update the annotation to
      sytemapi.
      
      Bug: 239274367
      Bug: 265485106
      Test: TH
      Change-Id: I28db5cd0d3a76afa1a7ecac042ee02dd74faa2f1
      d950d379
  22. Jan 14, 2023
  23. Jan 11, 2023
  24. Jan 09, 2023
    • Harry Cutts's avatar
      Add pinch classification and scale factor axis · 7ef81116
      Harry Cutts authored
      Bug: 251196347
      Test: check events received by a custom tester app, and touches shown by
            pointer location overlay
      Test: atest inputflinger_tests
      Change-Id: I0cb7ade63139ab35025ff1e12609e2b411b1f5f8
      7ef81116
  25. Jan 04, 2023
  26. Dec 17, 2022
    • Peiyong Lin's avatar
      Implement setThreads APIs for PerformanceHintManager.Session. · 095de769
      Peiyong Lin authored
      Previously the list of threads of a Session was only determined when the
      Session was created. This means newly forked threads from existing
      threads of the Session will not get the benefit and the clients have to
      create new Session for that.
      
      This patch adds a new method to allow clients to update the threads of
      the Session.
      
      Bug:b/244216750
      Test: atest PerformanceHintManagerTest
      Test: atest PerformanceHintNativeTest
      Test: atest HintManagerServiceTest
      
      Change-Id: Iae8cbb4ce86a44a7cd9d6e68673c48800bed3a4e
      095de769
  27. Dec 15, 2022
    • Matt Buckley's avatar
      Make sendHint private in platform · 61726a38
      Matt Buckley authored
       * Convert PerformanceHintManager sendHint to a private API
       * Have HWUI depend on private implementation
      
      Bug: b/261640114
      Test: atest PerformanceHintNativeTestCases
      Test: atest FrameworksCoreTests:android.os.PerformanceHintManagerTest
      
      Change-Id: Ic65eef1fbd1c26040e86ddf3cf7c59581fee4374
      61726a38
  28. Dec 03, 2022
    • Matt Buckley's avatar
      Add rate limiter to sendHint API call · 56093a77
      Matt Buckley authored
      Adds a rate limiter to the HintSession.sendHint API for safety, and
      update tests to reflect this.
      
      Bug: b/243973548
      Test: atest PerformanceHintNativeTestCases
      Test: atest FrameworksCoreTests:android.os.PerformanceHintManagerTest
      Change-Id: Ic68683bacf7df3e11efc3d59689b5470c3fa4274
      56093a77
  29. Nov 29, 2022
    • Bart Van Assche's avatar
      Switch to C++20 · b66923ab
      Bart Van Assche authored
      Prepare for using std::array<> and std::span<> in headers included from
      this library. Remove the AFont constructors to prevent that the build
      fails as follows:
      
      frameworks/base/native/android/system_fonts.cpp:265:35: error: no matching member function for call to 'insert'
                                  fonts.insert(
                                  ~~~~~~^~~~~~
      
      Removing these constructors is necessary because of the following rule:
      "An aggregate is one of the following types [...] class type (struct or
      union) that has [...] no user-declared or inherited constructors (since
      C++20)". Source:
      https://en.cppreference.com/w/cpp/language/aggregate_initialization
      
      .
      
      Bug:  260725458
      Change-Id: I384d05f5d3e471f8f58294119d04eb8ab16697ba
      Signed-off-by: default avatarBart Van Assche <bvanassche@google.com>
      b66923ab
  30. Nov 23, 2022
  31. Nov 11, 2022
    • Bo Liu's avatar
      Rename SC ndk jni API · 23af702a
      Bo Liu authored
      Rename to ASurfaceControl_fromJava / ASurfaceTransaction_fromJava.
      
      Test: Compiles
      Bug: 258245761
      Change-Id: Ic9cedd83bad3facb46947ecdac6324f4318d8db6
      23af702a
  32. Nov 09, 2022
    • Matt Buckley's avatar
      Add support for ADPF HintSession sendHint to JNI · 354cc0a1
      Matt Buckley authored
       * Add sendHint API to HintManagerService and PerformanceHintManager
       * Plumb relevant calls through the existing implementation
       * Extend existing tests to cover new API calls
       * Update the relevant build files to use power API v4
      
      Bug: b/243973548
      Test: atest PerformanceHintNativeTestCases
      Test: atest FrameworksCoreTests:android.os.PerformanceHintManagerTest
      Test: atest HintManagerServiceTest
      
      Change-Id: Ice7ed8f32e877bd845afad77fcc6ae16f1a1b78c
      354cc0a1
  33. Nov 04, 2022
    • Leon Scroggins III's avatar
      Add Dichen to cc's for imagedecoder_fuzzer · f38eee40
      Leon Scroggins III authored
      Dichen is taking over my image decoding responsibilities, so add him to
      cc. Leave myself in cc so I can provide context when needed.
      
      Bug: 257475598
      Test: N/A
      Change-Id: I2adf43d61d214b3f7352d528ba1af32c0ce4bf32
      f38eee40
  34. Oct 12, 2022
    • Bo Liu's avatar
      SurfaceControl ndk-jni API review · dd89c3b5
      Bo Liu authored
      ASurfaceControl_fromSurfaceControl should acquire a reference before
      returning.
      
      Abort if the arguments are invalid, make the return code nonnull.
      
      Test: ASurfaceControlTest#testSurfaceControl_fromSurfaceControl
            and ASurfaceControlTest#testSurfaceTransaction_fromTransaction
      Bug: 253053203
      Change-Id: If48ff4a534c5765c4831e518e44f77d0429e8981
      dd89c3b5
  35. Sep 27, 2022
    • Spandan Das's avatar
      Declare the headers of the ndk_library · 76d971d0
      Spandan Das authored
      This creates a dependency edge between the ndk_library and its headers,
      which should be a no-op in regular Soong builds. This dependency edge
      will be used in the Multi-tree project to export the relevant .h files into a well
      known location
      
      The headers are in a different git project (frameworks/native)
      
      Test: m nothing
      Bug: 239044713
      Change-Id: Ifd00d8d4d3771b2dbd924cea4f2ade0bafc15ed6
      76d971d0
    • Rob Carr's avatar
      surface_control NDK: Track frameworks/native changes · 7c70373e
      Rob Carr authored
      A BBQ changes requires adding an additional member to
      SurfaceControlStats which requires updating this destructuring
      assignment.
      
      Bug: 247246160
      Test: Existing tests pass
      Change-Id: Ic485fe3ae97c4243ab9993717c674c66b28c7fee
      7c70373e
  36. Sep 26, 2022
  37. Sep 23, 2022
    • Harry Cutts's avatar
      Add CLASSIFICATION_TWO_FINGER_SCROLL for touchpad scrolling · 7013c869
      Harry Cutts authored
      This will be used to denote the single-finger touches that
      TouchInputMapper creates to simulate scrolling when the user makes
      two-finger swipes on the touchpad.
      
      Bug: 246758376
      Test: check new value is sent to a test app when scrolling on a touchpad
      Change-Id: Id93cba764522e36d850f7013ab8a117f64716fac
      7013c869
Loading