Skip to content
Snippets Groups Projects
  1. Dec 28, 2024
  2. Dec 26, 2024
  3. Dec 22, 2024
  4. Jan 30, 2023
    • Colin Cross's avatar
      Use extern "C" instead of __BEGIN_DECLS · acd23e19
      Colin Cross authored
      __BEGIN_DECLS is a glibc implementation detail that has been copied
      into bionic.  It is provided by sys/cdefs.h, which is included by most
      glibc and bionic headers.  Musl libc does not define __BEGIN_DECLS,
      but we have added a local definition in sys/cdefs.h, but not the
      widespread automatic inclusion of sys/cdefs.h.
      
      tipc.h uses __BEGIN_DECLS without including any other headers, so it
      will fail for bionic and glibc if it is included first.  It will
      always fail for musl unless sys/cdefs.h is manually included.
      
      Avoid the problem completely by using extern "C" directly.
      
      Test: builds
      Change-Id: Iaec6a7b03b776ff80dc3997de8828b8220622733
      acd23e19
  5. Jan 10, 2023
    • Andrei Homescu's avatar
      libbinder: Add binderRpcTestService for Trusty · 9d8adb12
      Andrei Homescu authored
      Add Trusty code and build files for binderRpcTestService
      so we can run the binderRpcTest tests on Android against
      a Trusty service.
      
      Bug: 230135749
      Test: build Trusty
      Test: mmm tests
      Change-Id: Id4dbe453229c1f1b93da2811cec265c0e331edfe
      9d8adb12
  6. Aug 25, 2022
    • Andrei Homescu's avatar
      libbinder: build Trusty files on Android · 875996f6
      Andrei Homescu authored
      Build the Trusty source code on Android as the
      libbinder_on_trusty_mock library so that we can catch
      Trusty build errors early.
      
      Bug: 230135749
      Test: m libbinder_on_trusty_mock
      Change-Id: Iedfff0e76582ff8de55be652cb4330369386cd52
      875996f6
  7. Jul 11, 2022
    • Pawan's avatar
      Fuzzing readFromParcel method for AIDL generated parcelables. · e9544389
      Pawan authored
      Three parcelabels with no data fields, single data field and multiple data fields are added in these changes. Parcelables are fuzzed using binder parcel fuzzer.
      
      Test: Tested by running local fuzzer
      Bug: 211942347
      Change-Id: If0a6632d33483c52b9783d56d576cce29509f23c
      e9544389
  8. May 08, 2020
  9. Jan 30, 2020
    • Steven Moreland's avatar
      libbinder_ndk: test Bp destruction · 169bb8f0
      Steven Moreland authored
      When sending a binder to another process, there are two things that
      delay the destruction:
      - there is a separate queue, flushed with 'flushCommands' that must be
      emptied in the remote process
      - the client thread must process the refcount loss asynchronously
      
      This CL works around both of these problems by explicitly flushing
      commands and waiting for the thread to process the refcount.
      
      Bug: 148287051
      Test: libbinder_ndk_unit_test
      Change-Id: I2687b429faae659d80406f0b418c96a1eb40e9bd
      169bb8f0
  10. Dec 11, 2018
    • Lloyd Pique's avatar
      SF: Optionally skip slow unittests · 067fe1e9
      Lloyd Pique authored
      TimeStatsTest::canDumpWithInvalidMaxLayers can take many seconds to run
      (even a full minute, depending on the target).
      
      Add a new flag "--no-slow" for libsurfaceflinger_unittests which will
      cause it to skip slow tests like these, and add a check to that test
      which checks for that flag to skip it.
      
      To run use it with atest, you need to use:
      
          atest libsurfaceflinger_unittest -- --module-arg libsurfaceflinger_unittest:native-test-flag:--no-slow
      
      Bug: None
      Test: atest libsurfaceflinger_unittest
      
      Change-Id: I433c1707eb52866fb9f5c61956db338cc5c58723
      067fe1e9
  11. 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
  12. 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
  13. 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
  14. May 12, 2016
  15. 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
  16. 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
  17. 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
  18. Aug 13, 2013
  19. Jul 22, 2013
  20. Jul 15, 2013
Loading