Skip to content
Snippets Groups Projects
  1. Dec 19, 2019
  2. Dec 18, 2019
    • Artur Satayev's avatar
      Use new UnsupportedAppUsage annotation. · a5264903
      Artur Satayev authored
      Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library.
      
      Bug: 145132366
      Test: m && diff unsupportedappusage_index.csv \
            git diff HEAD^ HEAD | grep '^[+-][^+-]' | grep -v '.import'
      Change-Id: I087bb1cecbe59f1cf0c2e770c735d7a433722c6f
      a5264903
  3. Mar 27, 2019
    • Leon Scroggins III's avatar
      Pass Bitmap's native instance to JNI where feasible · 71fae62f
      Leon Scroggins III authored
      Test: CtsGraphicsTestCases, CtsUiRenderingTestCases,
            CtsRenderscriptTestCases
      
      This is significantly faster than passing the Java object down and then
      calling a JNI method to retrieve the pointer. See
      https://buganizer.corp.google.com/issues/16656908#comment19
      
      In some cases this changes what used to be native crashes (due to
      android::BitmapWrapper:assertValid's LOG_ALWAYS_FATAL_IF) into
      NullPointerExceptions (if a caller used a null Bitmap).
      
      In addition:
      - Remove unnecessary JNIEnv param from toBitmap(jlong)
      - Change instances of toBitmap(JNIEnv*, jobject) to the above
      - Replace calls to GraphicsJNI::getSkBitmap() to inline calls to
        toBitmap/getSkBitmap
      - make Canvas#nInitRaster @FastNative (FIXME: Could these be
        @CriticalNative?)
      
      Change-Id: I6194097be1b6e6952eba70e1e7052a5a250eed93
      71fae62f
  4. Mar 06, 2019
  5. Feb 11, 2019
    • Hans Boehm's avatar
      Correct registerNativeAllocation type · da3cee60
      Hans Boehm authored
      We're changing the argument type to long, since it should be roughly
      large enough to hold a size_t everywhere.
      
      Make style checker happy by reordering imports.
      
      Test: Treehugger
      Change-Id: Iccdc5fa592f56d448817f7762af1cff27b4fc2a8
      da3cee60
  6. Aug 06, 2018
    • Mathew Inwood's avatar
      Add @UnsupportedAppUsage annotations · 1532447a
      Mathew Inwood authored
      For packages:
        android.renderscript
      
      This is an automatically generated CL. See go/UnsupportedAppUsage
      for more details.
      
      Exempted-From-Owner-Approval: Mechanical changes to the codebase
      which have been approved by Android API council and announced on
      android-eng@
      
      Bug: 110868826
      Test: m
      Change-Id: I016f6e720e79c48afe44f4690b5dd99fc81ae780
      Merged-In: I1aa8ebca448547031b426a7b305c5c3d6fcf2652
      1532447a
  7. Aug 02, 2018
    • Mathew Inwood's avatar
      Add @UnsupportedAppUsage annotations · f0c90b1f
      Mathew Inwood authored
      For packages:
        android.renderscript
      
      This is an automatically generated CL. See go/UnsupportedAppUsage
      for more details.
      
      Exempted-From-Owner-Approval: Mechanical changes to the codebase
      which have been approved by Android API council and announced on
      android-eng@
      
      Bug: 110868826
      Test: m
      Change-Id: I1aa8ebca448547031b426a7b305c5c3d6fcf2652
      f0c90b1f
  8. Mar 21, 2018
  9. Mar 01, 2018
    • Adam Lesinski's avatar
      Refactor AssetManager · bebfcc46
      Adam Lesinski authored
      Bug: 64071469
      Test: atest CtsContentTestCases
      Change-Id: Ia6856157e8813856268fba003e1e591d690cb26e
      bebfcc46
  10. Feb 15, 2018
  11. Feb 09, 2018
  12. Feb 06, 2018
  13. Jan 27, 2018
  14. Jan 26, 2018
  15. Jan 24, 2018
  16. Jan 23, 2018
  17. Jan 10, 2018
  18. Oct 06, 2017
  19. Jul 24, 2017
  20. Jul 19, 2017
    • Steven Moreland's avatar
      frameworks/base: use proper nativehelper headers · 2279b253
      Steven Moreland authored
      libnativehelper exports headers under nativehelper. These were
      available before incorrectly as global headers in order to give
      access to jni.h.
      
      Test: modules using frameworks/base find headers
      Bug: 63762847
      Change-Id: I0f9f231acdebe460f279135462f43d3e32eff64d
      2279b253
  21. Jun 13, 2017
    • Yang Ni's avatar
      Do not CloseGuard KernelID or FieldID · 3a84a23f
      Yang Ni authored
      Bug: 28053584
      
      Stop CloseGuarding for two reasons:
      
      1) KernelID and FieldID objects are constructed in auto-generated
      (RenderScript reflected) Java code. It would be impossible for a user to
      explicitly call destroy() on them. Guarding them would leave a lot of
      noisy warnings in logcat.
      
      2) These KernelID and FieldID objects are not big compared to other
      RenderScript objects, e.g. Allocations. They occupy almost no native
      resources except for a native pointer. Leaving their destruction to Java
      GC would be completely acceptable, since any delay in reclaiming them is
      unlikely to cause memory pressure.
      
      Test: CTS on x86_64 emulator
      Change-Id: I587b5561a0b2bdbf0b2e95bf2995c20d5f5faf9d
      3a84a23f
  22. May 05, 2017
  23. May 04, 2017
    • Yang Ni's avatar
      Destroy Allocation with ScriptIntrinsicLut · 8b8f75a7
      Yang Ni authored
      Bug: 28053584
      
      On destroying the intrinsic, destroy its contained Allocation right away.
      
      Test: CTS on x86_64 emulator
      Change-Id: I5ca0da33b620c3291b7cafda31a6cc83eb7461a0
      8b8f75a7
  24. May 02, 2017
    • Steven Moreland's avatar
      RenderScript: IWYU · c941fb0f
      Steven Moreland authored
      Renderscript was depending on macros from android-base that were
      transitively included from MQDescriptor.h
      
      Test: links
      Bug: 37791060
      Change-Id: Ie34ddef67328c5fcc6b0122a32725b980615ff43
      (cherry picked from commit dc01e938)
      c941fb0f
  25. May 01, 2017
    • Steven Moreland's avatar
      RenderScript: IWYU · dc01e938
      Steven Moreland authored
      Renderscript was depending on macros from android-base that were
      transitively included from MQDescriptor.h
      
      Test: links
      Bug: 37791060
      Change-Id: Ie34ddef67328c5fcc6b0122a32725b980615ff43
      dc01e938
  26. Apr 20, 2017
  27. Apr 18, 2017
  28. Apr 04, 2017
  29. Mar 15, 2017
    • Pawin Vongmasa's avatar
      Make IGraphicBufferProducer a hybrid interface. · 34cca21e
      Pawin Vongmasa authored
      android::IGraphicBufferProducer will now become a hybrid
      interface on
      top of the HIDL interface
      android::hardware::graphics::bufferqueue::V1_0::IGraphicBufferProducer.
      
      Test: With CtsMediaTestCases.apk installed,
      adb shell am instrument -e size small -w
      'android.media.cts/android.support.test.runner.AndroidJUnitRunner'
      
      Bug: 33854657
      Change-Id: Ia8914ea49d2acf3d43682982a164d7e10f7b8542
      34cca21e
  30. Mar 06, 2017
    • Miao Wang's avatar
      [RenderScript] Update RenderScript JNI with the corresponding · 1e95fc86
      Miao Wang authored
      AllocationGetSurface driver implementation change.
      
       - AllocationGetSurface now returns opaque handle to ANativeWindow*,
       instead of IGraphicBufferProducer*, as IGraphicBufferProducer is not
       part of NDK. So the JNI side need to change accordingly.
      
      Bug: 34396220
      Test: mm, CTS tests pass.
      Change-Id: If9b6a733202d29bc40c0e0b87c4fb48db092cbe5
      1e95fc86
    • Miao Wang's avatar
      [RenderScript] Use ANativeWindow_fromSurface to get ANativeWindow · 33287e8a
      Miao Wang authored
      from Java Surface.
      
       - ANativeWindow_fromSurface and ANativeWindow_release has to be used in
       pairs to avoid leaks.
      
      Bug: 34396220
      Test: mm, CTS tests pass.
      Change-Id: Id67fd005a056df4d496a48f705d445a2d8c45232
      33287e8a
  31. Mar 03, 2017
    • Yang Ni's avatar
      Removed close guards for Element and Type objects · 45438c94
      Yang Ni authored
      Bug: 28053769
      
      These objects are tiny and unlikely to cause memory issues.
      
      In addition, llvm-rs-cc auto-generated code contains such objects, which are
      not visibible to developers and impossible to manually destroy, leaving
      distracting warnings in Strict Mode.
      
      Test: RsTest with StrictMode on and CTS tests
      
      Change-Id: Iec68cca4f1259124b9f503a230c1a28b97ede1f3
      45438c94
  32. Feb 24, 2017
    • Miao Wang's avatar
      Update RenderScript JNI code for Treble · cbb0206c
      Miao Wang authored
        - Include rsApiStubs.h instead of rs.h, and remove unused
        dependencies for rs.h in Android.mk.
        - Remove libRSDriver.so from LOCAL_REQUIRED_MODULE, since it is not
        required nor directly used by librs_jni.so.
        - Fix the discrepancy in ElementGetNativeData and
        ElementGetSubElements, respective to NDK APIs exposed in libRS.so.
      
        rsApiStubs.h contains all public RenderScript APIs exposed in libRS.so.
        It fixes the mismatch of the declarations and definitions of the two
        functions mentioned above. And it does not rely on the auto generated
        header (rsgApiFuncDecl.h) anymore.
      
      Bug: 34396220
      Test: mm
      Merged-In: Iedb1b976cfa9033dccefe78cbe80c8022f990e53
      Change-Id: Iedb1b976cfa9033dccefe78cbe80c8022f990e53
      cbb0206c
  33. Feb 18, 2017
    • Miao Wang's avatar
      Update RenderScript JNI code for Treble · 2570c120
      Miao Wang authored
        - Include rsApiStubs.h instead of rs.h, and remove unused
        dependencies for rs.h in Android.mk.
        - Remove libRSDriver.so from LOCAL_REQUIRED_MODULE, since it is not
        required nor directly used by librs_jni.so.
        - Fix the discrepancy in ElementGetNativeData and
        ElementGetSubElements, respective to NDK APIs exposed in libRS.so.
      
        rsApiStubs.h contains all public RenderScript APIs exposed in libRS.so.
        It fixes the mismatch of the declarations and definitions of the two
        functions mentioned above. And it does not rely on the auto generated
        header (rsgApiFuncDecl.h) anymore.
      
      Bug: 34396220
      Test: mm
      Change-Id: Iedb1b976cfa9033dccefe78cbe80c8022f990e53
      2570c120
  34. Jan 26, 2017
Loading