Skip to content
Snippets Groups Projects
  1. 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
  2. Aug 29, 2022
    • Leon Scroggins's avatar
      Revert "Call isEmpty() instead of constructing a new object to compare" · ad70c8a7
      Leon Scroggins authored
      This reverts commit ff37ce97.
      
      Reason for revert: Breaks tests
      
      The motivation for this CL was that patch set 1 of https://skia-review.googlesource.com/c/skia/+/573636 moved operator== out of
      SkRect.h, and this file no longer had access to it.
      
      isEmpty will return true for more values than {0, 0, 0, 0}, though,
      which changes the behavior for AImageDecoder_setCrop. Instead of
      returning ANDROID_IMAGE_DECODER_BAD_PARAMETER, the bad rect will be
      ignored. Tests caught this change in behavior.
      
      Restore the old behavior of returning an error. The final version of
      the Skia change that landed restored an inline version of SkIRect::operator==, so the old behavior is fine with the new code.
      
      Bug: b/243964535
      Test: AImageDecoderTest
      Change-Id: Iba267a14e7e0ba084384bb1bbb293eda2311b8de
      ad70c8a7
  3. Aug 26, 2022
  4. Aug 20, 2022
    • Kohsuke Yatoh's avatar
      Consolidate getFamilyAt() calls to minikin. · 1e62e215
      Kohsuke Yatoh authored
      - Typeface: Use FontCollection::createCollectionWithFamilies() instead
        of creating fallback list inside hwui.
      - system_fonts: Use SystemFonts::getFontSet() intead of getFontMap().
      
      Bug: 174672300
      Test: atest CtsGraphicsTestCases:android.graphics.cts.TypefaceTest
      Test: atest CtsGraphicsTestCases:android.graphics.fonts.NativeSystemFontTest
      Change-Id: I940f8de441b7bd102eca2d08bc5dd4d0fc4a2685
      1e62e215
  5. Jul 20, 2022
  6. Apr 19, 2022
  7. Apr 07, 2022
  8. Apr 05, 2022
    • Huihong Luo's avatar
      Sync with FrameTimelineInfo aidl migration · 4fed9b45
      Huihong Luo authored
      libgui FrameTimelineInfo has been converted to aidl  parcelable.
      
      Bug: 222537482
      Test: atest libgui_test libsurfaceflinger_unittest SurfaceFlinger_test
      Change-Id: I6bf8433d7786485faef61633917659cca5d7f512
      4fed9b45
  9. Mar 30, 2022
    • Ken Chen's avatar
      Update data type and comments on tagSocket/untagSocket APIs · 9c315eb1
      Ken Chen authored
      - Fix comment in version script to say LL-NDK, not NDK
      - Use uint32_t for tag
      
      Bug: 223423155
      Test: CtsNetTestCases:android.net.TrafficStatsTest
      Test: CtsNativeNetPlatformTestCases
      Change-Id: Ifb819ed0adeb8f173b98c3f131a4bf2e0715dd4e
      9c315eb1
  10. Mar 29, 2022
    • Austin Borger's avatar
      Add new onUidProcAdjChanged callback to be consumed by the camera · db9165ba
      Austin Borger authored
      service.
      
      The camera service needs to know when individual process oom adj scores
      are changed in order to address bug #124224342. When two separate
      processes are displayed in split screen and focus is switched between
      them, both proc states will remain the same while their oom scores
      change. This is a problem if both have access to the camera - we want
      only one owner of the camera stream at any given time and for the app
      in focus to be the one to own it.
      
      This patch adds a new IUidObserver registration level for individual
      process oom score changes. In addition a new callback has been added to
      IUidObserver to track these changes.
      
      Change-Id: I68d964f474d20f819f54b614a4e314ce00aac8fb
      Bug: 124224342
      Test: -- ActivityManagerServiceTest
            -- ActivityManagerProcessStateTest
            -- ActivityManagerFgsBgStartTest
            -- UidObserverControllerTest
            -- NetworkPolicyManagerServiceTest
            -- ShortcutManagerTest2
            -- HintManagerServiceTest
            -- VibrationSettingsTest
            -- CameraEvictionTest#testCamera2AccessCallbackInSplitMode (x100)
      db9165ba
  11. Mar 04, 2022
    • Kevin Lubick's avatar
      Fix transitive dependencies on SkImageEncoder · 1175dc00
      Kevin Lubick authored
      In https://skia-review.googlesource.com/c/skia/+/512416
      
      ,
      we would like to decouple SkImage and SkImageEncoder. This CL
      was created by searching for use of these objects:
       - SkEncodedImageFormat
       - SkStream
       - SkData
       - SkBitmap
       - SkPixmap
      
      and making sure those files followed the Include What You Use
      (IWYU) guidelines.
      
      Signed-off-by: default avatarKevin Lubick <kjlubick@google.com>
      Change-Id: I8edbcd1c9a526b8084d7e2c023895d1ad2f8c9b1
      1175dc00
    • Eric Biggers's avatar
      Remove broken code for mounting encrypted OBB files · 8bc9340b
      Eric Biggers authored
      Mounting encrypted OBB files has never worked reliably across devices,
      partly due to its reliance on Twofish encryption support in the kernel.
      This is because Twofish support (CONFIG_CRYPTO_TWOFISH) has never been
      required or even recommended for Android.  It has never been enabled in
      GKI, but even before GKI it wasn't required or recommended.  Moreover,
      this is now the only Android feature that still uses dm-crypt
      (CONFIG_DM_CRYPT), and some devices don't have that enabled either.
      
      Therefore, it appears that this feature is unused.  That's perhaps not
      surprising, considering that the documentation for OBBs
      (https://developer.android.com/google/play/expansion-files) says that
      they are deprecated, and also it explains OBBs as being app files that
      are opaque to the platform; the ability of the platform to mount OBBs
      that happen to be in a particular format is never mentioned.  That means
      that OBB mounting is probably rarely used even with unencrypted OBBs.
      Finally, the usefulness of OBBs having their own encryption layer (in
      addition to what the platform already provides via FBE) is not clear
      either, especially with such an unusual choice of cipher.
      
      To avoid the confusion that is being caused by having the broken code
      for mounting encrypted OBBs still sitting around, let's remove it.
      
      Test: atest StorageManagerTest # on Cuttlefish
      Test: atest StorageManagerIntegrationTest # on Cuttlefish
      Bug: 216475849
      Change-Id: I6e6a6462ab8343299dc5e0145b87dc28b16b0bc1
      8bc9340b
  12. Mar 01, 2022
    • Bo Liu's avatar
      adpf: Use one client token per process for all hint sessions · 9acc558c
      Bo Liu authored
      So it doesn't leak when gc is delayed in service process.
      
      Update HintManagerService to allow multiple sessions tied to the same
      token.
      
      Bug: 218129784
      Test: chrome no longer gets killed
      Change-Id: I67a66041cc67d01e4cfcd3ded303a1bed6050f60
      9acc558c
  13. Feb 26, 2022
    • Rachel Lee's avatar
      Use start time in SurfaceControl setFrameTimeline. · b6c93aa7
      Rachel Lee authored
      Users of the API will see in the "Actual Timeline" the actual start time
      rather than expected start time.
      
      Bug: 210043506
      Test: perfetto log of with & w/o CL, using Chromium apk, bug 198192946
      Change-Id: I013bf6e28de32c82c9d645cc4cacf0cc01e0dd9f
      b6c93aa7
  14. Feb 16, 2022
  15. Feb 14, 2022
    • Vaibhav's avatar
      Add implementation for new NDK functions added to input.h · e85c3487
      Vaibhav authored
      Added new methods for getActionButton and getClassification in input.h.
      In this CL we are adding implementations for the corresponding functions
      
      Test: atest android.view.cts.MotionEventTest
      
      Bug: 213266814
      
      Change-Id: Ia7c7b83fe19bac7d5e5c7c107e86328e160ba2b5
      e85c3487
  16. Feb 09, 2022
  17. Feb 08, 2022
  18. Feb 02, 2022
    • Lorenzo Colitti's avatar
      Really expose the new NDK socket tagging functions added in T. · 2b9e8860
      Lorenzo Colitti authored
      These functions were already exposed as part of libandroid_net,
      but that is not really part of the NDK.
      
      Expose them in libandroid as well, so apps can actually use them.
      This is consistent with all the other native networking APIs,
      which are exposed in both libandroid_net and libandroid.
      
      Test: atest CtsNativeNetPlatformTestCases
      Test: strings out/target/product/bramble/system/lib64/libandroid.so | grep android_tag
      Change-Id: I2273cdd48b30a88b82eb3af838031d9fe8897442
      2b9e8860
  19. Jan 27, 2022
  20. Jan 22, 2022
    • Ady Abraham's avatar
      surface_control: handle acquire fence on BLAST callbacks · 62e15f0a
      Ady Abraham authored
      When latching unsignaled buffers, the acquire fence is
      not signaled by the time BLAST callback is invoked. In
      that case pass a fence instead. For latch signaled, we still
      pass the acquire time itself to avoid sending file descriptors
      over binder.
      
      Bug: 198190384
      Test: TBD
      Change-Id: I949fd396ec36ee759327a952239509d10259be1b
      62e15f0a
  21. Jan 14, 2022
    • Rachel Lee's avatar
      Use AVsyncId typedef. · 7e47b3dd
      Rachel Lee authored
      Test: atest ASurfaceControlTest
      Bug: 214063411
      Change-Id: I5dd6a0e467f3acc46bf4ce65dde0df265b590697
      7e47b3dd
  22. Jan 13, 2022
  23. Jan 12, 2022
  24. Jan 02, 2022
  25. Dec 16, 2021
    • Prabir Pradhan's avatar
      Pass JNIEnv explicitly into AInputQueue_fromJava · d0c5dbab
      Prabir Pradhan authored
      Instead of assuming a JNIEnv*, the method should have the env passed
      into it, which is the standard practice for native APIs.
      
      Bug: 210727635
      Test: atest InputQueueTest
      Change-Id: Iae5fc5bd39c758c530185694751d6d79715ce31b
      d0c5dbab
  26. Dec 10, 2021
  27. Dec 09, 2021
  28. Nov 11, 2021
    • Bo Liu's avatar
      Performance hint ndk APIs · 2b739bbb
      Bo Liu authored
      Test: atest PerformanceHintNativeTestCases
      Change-Id: I8f410cf5ee8cee90465d1ce48a42c9ff8bbe80c4
      2b739bbb
  29. Nov 01, 2021
  30. Sep 27, 2021
  31. Sep 15, 2021
    • chaviw's avatar
      Update setBuffer to use the new setBuffer API · 5513c615
      chaviw authored
      Transaction.setAcquireFence is removed and instead the fence can be sent
      directly in the setBuffer call.
      
      Test: Chrome works
      Fixes: 200065015
      Change-Id: I248f07d7ce5a3faa0d7482fe4e0e7b33f3cfea55
      5513c615
  32. Sep 14, 2021
    • Torne (Richard Coles)'s avatar
      webview: make relro load failure a warning. · ddd332f7
      Torne (Richard Coles) authored
      Failing to open the relro file when loading WebView isn't a major
      problem (we can still load the library, it just loses a RAM
      optimization), and can happen in some edge cases like when the current
      address space reservation was not large enough to create the file.
      
      The other messages logged from Java about this are at warning level;
      make this native error also a warning. The other errors in this function
      are entirely unexpected conditions, so leave them as errors.
      
      Fixes: 197972345
      Test: n/a
      Change-Id: Iaf0d4a3b6e42ba93ef6782b5b9120cd69cae3002
      ddd332f7
  33. Sep 07, 2021
  34. Sep 06, 2021
  35. Aug 31, 2021
  36. Jul 26, 2021
    • Bo Liu's avatar
      ADPF: Handle preferred interval on unsupported device · d6a09600
      Bo Liu authored
      The original java implementation just passed along whatever the server
      returns which is -1 on unsupported devices. So do that here as well.
      
      Test: PerformanceHintManagerTest passes on unsupported device
      Bug: 194691581
      Change-Id: I8ac07737e6ce52debf55478880d71f038f258056
      d6a09600
  37. Jul 22, 2021
  38. Jul 19, 2021
    • Bo Liu's avatar
      Null check color_space_ptr in draw functor v2 · fe719336
      Bo Liu authored
      Missed toXYZD50 usage last time. Still assume sRGB if null.
      
      Bug: 187798471
      Test: Manually tested setting color_space_ptr to null in
            GL/VKFunctorDrawable
      Change-Id: Idee2660d368dd55e45f5d07d52839105ba951ff3
      fe719336
Loading