summaryrefslogtreecommitdiff
path: root/rs/java
Commit message (Collapse)AuthorAgeFilesLines
* Merge "[LSC] Add LOCAL_LICENSE_KINDS to frameworks/base" am: 7226ad3729 am: ↵Treehugger Robot2021-04-011-0/+9
|\ | | | | | | | | | | | | | | a087245e03 am: 3dd40d172b am: 9864e155a8 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1661581 Change-Id: Ic621a484909047fa86a94729ae4ea9307f4175da
| * Merge "[LSC] Add LOCAL_LICENSE_KINDS to frameworks/base" am: 7226ad3729 am: ↵Treehugger Robot2021-04-011-0/+9
| |\ | | | | | | | | | | | | | | | | | | | | | a087245e03 am: 3dd40d172b Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1661581 Change-Id: I99cb5fd94c4ee02688709ad00e3ffbc3e2f388e7
| | * [LSC] Add LOCAL_LICENSE_KINDS to frameworks/baseBob Badour2021-03-311-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added SPDX-license-identifier-Apache-2.0 to: drm/java/Android.bp graphics/java/Android.bp identity/Android.bp identity/java/Android.bp keystore/java/Android.bp location/java/Android.bp location/tests/Android.bp lowpan/java/Android.bp media/mca/effect/java/Android.bp media/mca/filterfw/java/Android.bp media/mca/filterpacks/java/Android.bp mime/java/Android.bp mms/java/Android.bp opengl/java/Android.bp rs/java/Android.bp sax/java/Android.bp services/tests/servicestests/test-apps/PackageParsingTestManifests/Android.bp telecomm/java/Android.bp telephony/common/Android.bp tests/FlickerTests/test-apps/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD to: telephony/java/Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: I2ee0af9ce8f74de2172b359b41d2c52a8b8f7e6c
* | | Merge changes I97086e30,Ic55df4cf,I81a08c29 am: 4199ef90b9 am: 4bc578052d ↵Anton Hansson2021-03-311-0/+5
|\| | | | | | | | | | | | | | | | | | | | | | | am: ec1f981309 am: 5013902a24 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1655736 Change-Id: I8bff7924842316486f5058b241ee728fc74d0c4b
| * | Merge changes I97086e30,Ic55df4cf,I81a08c29 am: 4199ef90b9 am: 4bc578052d ↵Anton Hansson2021-03-311-0/+5
| |\| | | | | | | | | | | | | | | | | | | | | | am: ec1f981309 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1655736 Change-Id: I5d242cf5b18c4b556105cfcfe78df2ac18a8544e
| | * Move framework java filegroups into subdirectoriesAnton Hansson2021-03-301-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All the java code used to build the framework jar and run metalava was previously defined in the toplevel Android.bp files. Move these into the subdirs where the source actually lives. This simplifies the rules themselves (no path and needless prefix) and declutters the top level Android.bp. Test: m Change-Id: I97086e309eacb879d16facb8497d9940fa5ddaf6
* | | Merge changes from topic "renderscript-deprecation" into sc-dev am: e2be820dc6Xusong Wang2021-03-1162-4/+248
|\| | | | | | | | | | | | | | | | | | | | | | | Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13713701 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I6b605a179d39960cb38c2c4fae8658236b4e46c2
| * | Merge changes from topic "renderscript-deprecation" into sc-devXusong Wang2021-03-1162-4/+248
| |\ \ | | |/ | |/| | | | | | | | | | * changes: Silence compiler errors because of renderscript deprecation. Deprecate RS Java APIs.
| | * Deprecate RS Java APIs.Xusong Wang2021-03-0162-4/+248
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL marks RenderScript Java APIs as deprecated. Bug: 168711199 Test: m Test: CtsRenderscriptTestCases Test: CtsRsCppTestCases Test: CtsRsBlasTestCases Change-Id: Id271a794679d445c480d62c87ae6c8150f6901f8
* | | Merge "No longer call registerNativeAllocation" am: 0272e96327 am: ↵Hans Boehm2021-03-081-7/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | e8d010e9ec am: 0c42ad0ca7 am: be1e8edca3 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1621426 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I863a21ce57a541fd5fdfe13cabdba8c21e0be0a0
| * | No longer call registerNativeAllocationHans Boehm2021-03-061-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The original rationale is obsolete, since contexts are now almost always shared. This call was unbalanced; there was no corresponding freeNativeAllocation call. Thus, in the rare cases in which this actually makes a difference, it's likely to lead to perpetually increasing native allocation counts, which is more likely to be confusing than helpful to the garbage collector. (Discussed with Tim and Jean-Luc, and concluded that it was best just to remove the code.) Test: Treehugger Bug: 181351667 Change-Id: I376a16732231aad0fdacd022de301464e5ac71dd
| * | Add maxTargetSdk restriction to unused APIs.Mathew Inwood2020-11-043-6/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These are APIs that have @UnsupportedAppUsage but for which we don't have any evidence of them currently being used, so should be safe to remove from the unsupported list. Bug: 170729553 Test: Treehugger Merged-In: I626caf7c1fe46c5ab1f39c2895b42a34319f771a Change-Id: I54e5ecd11e76ca1de3c5893e3a98b0108e735413
* | | Merge "Fix bug in Blend that did not use options."TreeHugger Robot2021-02-171-2/+1
|\ \ \ | |_|/ |/| |
| * | Fix bug in Blend that did not use options.Jean-Luc Brouillet2021-02-121-2/+1
| |/ | | | | | | | | | | | | | | | | | | | | | | | | For one of the many variants of Blend, a cut&paste error made that the options were not passed. This was not caught because no test exercised this. I've added the test (in a related CL) and fixed the bug. Bug: 178718752 Test: Ran the RS Java tests Change-Id: Ide2fef96137ffd89e4431cf15be5df398036d909
* | Add maxTargetSdk restriction to unused APIs.Mathew Inwood2020-10-293-6/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These are APIs that have @UnsupportedAppUsage but for which we don't have any evidence of them currently being used, so should be safe to remove from the unsupported list. This is a resubmit of ag/12929664 with some APIs excluded that caused test failures; see bugs 171886397, 171888296, 171864568. APIs excluded: Landroid/bluetooth/le/ScanRecord;->parseFromBytes([B)Landroid/bluetooth/le/ScanRecord; Landroid/os/Process;->myPpid()I Landroid/os/SharedMemory;->getFd()I Landroid/hardware/input/InputManager;->INJECT_INPUT_EVENT_MODE_WAIT_FOR_FINISH:I Bug: 170729553 Test: Treehugger Change-Id: I8285daa8530260251ecad6f3f38f98e263629ca7
* | Revert "Add maxTargetSdk restriction to unused APIs."Hongwei Wang2020-10-283-9/+6
| | | | | | | | | | | | | | | | | | This reverts commit 72f07d6a8a32db4a0dedd7682a0b3385be2b9cd6. Reason for revert: Droidcop-triggered revert due to breakage https://android-build.googleplex.com/builds/quarterdeck?testMethod=testAppZygotePreload&testClass=android.app.cts.ServiceTest&atpConfigName=suite%2Ftest-mapping-presubmit-retry_cloud-tf&testModule=CtsAppTestCases&fkbb=6936597&lkbb=6936969&lkgb=6936551&testResults=true&branch=git_master&target=cf_x86_phone-userdebug>, bug b/171886397 Bug: 171886397 Change-Id: Ibe0f0430a3451477c1ee8ef56a596e91ea1e7672
* | Add maxTargetSdk restriction to unused APIs.Mathew Inwood2020-10-273-6/+9
|/ | | | | | | | | | These are APIs that have @UnsupportedAppUsage but for which we don't have any evidence of them currently being used, so should be safe to remove from the unsupported list. Bug: 170729553 Test: Treehugger Change-Id: I4c8fd0006f950de9955242e93968fb0996ceb372
* Merge "Use new UnsupportedAppUsage annotation."TreeHugger Robot2020-01-0918-30/+32
|\
| * Use new UnsupportedAppUsage annotation.Artur Satayev2020-01-0818-30/+32
| | | | | | | | | | | | | | | | | | | | 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: I853372f3c6fef905553bb31be4f1bb48df735f7a
* | Update renderscript to use stable graphics APIsDerek Sollenberger2020-01-081-22/+11
|/ | | | | | | | | | This change removes usage of skia data structures and replaces them with stable C APIs. It also removes two unused java APIs that were missing their native components. Test: CTS presubmit tests Bug: 137655431 Change-Id: I18cbe0cf9dc731c4c6c1f645be0df2f462764118
* Revert "Use new UnsupportedAppUsage annotation."Austin Wang2019-12-1918-32/+30
| | | | | | | | This reverts commit a5264903e22bc741add895133474ea13a370de4c. Reason for revert: Droidcop-triggered revert due to breakage https://android-build.googleplex.com/builds/quarterdeck?branch=git_master&target=sdk_phone_armv7-sdk&lkgb=6083299&lkbb=6085371&fkbb=6083313, bug b/146533269 Change-Id: Ie5b031d7b277cf0e09b0a9776b26bf74f5f69e70
* Use new UnsupportedAppUsage annotation.Artur Satayev2019-12-1818-30/+32
| | | | | | | | | 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
* Pass Bitmap's native instance to JNI where feasibleLeon Scroggins III2019-03-271-15/+23
| | | | | | | | | | | | | | | | | | | | | | | 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
* Merge "Correct registerNativeAllocation type" am: fe015a098c am: 90e8135f1eHans Boehm2019-03-121-8/+9
|\ | | | | | | | | | | am: ecb7e4a77b Change-Id: I2ba5370ad1f6f3b8f0ad757c0993b5c399baaea7
| * Correct registerNativeAllocation typeHans Boehm2019-02-111-8/+9
| | | | | | | | | | | | | | | | | | | | 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
| * Merge "Add @UnsupportedAppUsage annotations"Mathew Inwood2018-08-0618-0/+115
| |\ | | | | | | | | | | | | | | | am: 3d05f769a3 Change-Id: Id21c0f5dee82e2f2174d795763420bfed806a17b
| | * Add @UnsupportedAppUsage annotationsMathew Inwood2018-08-0618-0/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Add check for input allocation type for ScriptIntrinsicBlur.Miao Wang2019-03-061-0/+4
| | | | | | | | | | | | | | | | | | | | | Bug: 124466617 Test: mm Test: CtsRenderscriptTestCases Change-Id: I4784b96b5f96749d503bd1de8360e74b72f3f5c2
* | | Add @UnsupportedAppUsage annotationsMathew Inwood2018-08-0218-0/+115
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* / docs: fixing bug 36982027 and 30636712, typoskopriva2018-03-201-3/+3
|/ | | | | | | | | Test: make ds-docs Bug: 36982027 Bug: 30636712 Change-Id: I70d6d216c714a31b7e762a203a27f6124642131e
* Merge "Do not CloseGuard KernelID or FieldID"Treehugger Robot2017-06-131-2/+0
|\
| * Do not CloseGuard KernelID or FieldIDYang Ni2017-06-131-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Destroy Allocation right away on exceptionYang Ni2017-05-051-0/+1
| | | | | | | | | | | | | | | | | | Bug: 28053584 To avoid holding the resource (surface) for too long. Test: CTS on x86_64 emulator Change-Id: I2fdec107c2a16b7dadbf78a9aee79c33423a3676
* | Destroy Allocation with ScriptIntrinsicLutYang Ni2017-05-041-0/+4
|/ | | | | | | | | Bug: 28053584 On destroying the intrinsic, destroy its contained Allocation right away. Test: CTS on x86_64 emulator Change-Id: I5ca0da33b620c3291b7cafda31a6cc83eb7461a0
* Validates Intrinsic Blur only takes 2D AllocationsYang Ni2017-04-181-0/+9
| | | | | | | Bug: 24555166 Test: RSTest on x86_64 emulator Change-Id: I0c8c970ce85989c3213fb4986e517ac0be5beb26
* Merge "Removed close guards for Element and Type objects"Yang Ni2017-03-072-3/+0
|\ | | | | | | | | | | am: 97c9b57cec Change-Id: I28b4149b6a0ace42dff2ca4ce9a1803b0baa4430
| * Removed close guards for Element and Type objectsYang Ni2017-03-032-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * Merge \"Delete simple reduction implementation.\" into nyc-devDavid Gross2016-06-132-41/+4
| |\ | | | | | | | | | | | | | | | am: d749245b88 Change-Id: I28a4e52a41678ecb10b0869566e1cb79d4287b60
* | \ Fix @links in reference docs. am: 54de77470dElliot Waite2017-01-261-3/+3
|\ \ \ | | | | | | | | | | | | | | | | | | | | am: ab978c035e Change-Id: If0d0613362e0ea95cf48eaf9a16d3eea48b589ea
| * | | Fix @links in reference docs.Elliot Waite2017-01-251-3/+3
| | |/ | |/| | | | | | | Change-Id: I40cea46efd80c448640ff69753698fe8404da40b
* | | Merge \\"Delete simple reduction implementation.\\" into nyc-dev am: d749245b88David Gross2016-06-132-41/+4
|\| | | |/ |/| | | | | | | am: 9a53329b0a Change-Id: I66f67b6d55f4ce0496c6e136b82ca58a7a5fbfd6
| * Delete simple reduction implementation.David Gross2016-06-022-41/+4
| | | | | | | | | | Bug: 27298560 Change-Id: I8a89c9df753d12ee8af06008d424e77bb916cd8f
* | Merge "[RenderScript] Fix ScriptIntrinsicBlur documentation." into nyc-devMiao Wang2016-05-191-1/+2
|\| | | | | | | | | | | | | | | | | am: 75445fd6a0 * commit '75445fd6a043a892bb7d7f18c1d62c5f72337413': [RenderScript] Fix ScriptIntrinsicBlur documentation. Change-Id: I8ccd115fd6f92ef4b4ef7194a77fd01ffbda5916
| * [RenderScript] Fix ScriptIntrinsicBlur documentation.Miao Wang2016-05-181-1/+2
| | | | | | | | | | Bug: 28177406 Change-Id: Icccf35857cf29f827a78704e7751c8791cda0d7b
* | Merge "Update documentation about copyTo and copyFrom." into nyc-devMiao Wang2016-05-191-115/+862
|\| | | | | | | | | | | | | | | | | am: 1a523b7502 * commit '1a523b7502135a5cc0a94ea380263638b0ffdab1': Update documentation about copyTo and copyFrom. Change-Id: I0aa87cd4bde408ba5395ae3f951d86e10ece58de
| * Update documentation about copyTo and copyFrom.Miao Wang2016-05-181-115/+862
| | | | | | | | | | | | | | | | | | | | | | Bug: 23159764 Bug: 26862970 - Add detailed description of AutoPadding - Add comments to all the copy related APIs. - Fix typos in the comments. Change-Id: I2d045e0d90efd94f1407f88d3e35bcd42ea93fb9
* | Merge "[RenderScript] Interrupt mMessageThread when tearing down context." ↵Miao Wang2016-05-111-0/+3
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 9f2a1979a7 am: b02f7b0a0e * commit 'b02f7b0a0e17ac97184e113ea527145a302f8bbc': [RenderScript] Interrupt mMessageThread when tearing down context. Change-Id: Icc19c3d04f3b33f928ef6f61b4a42471d51736b5
| * | [RenderScript] Interrupt mMessageThread when tearing down context.Miao Wang2016-05-101-0/+3
| | | | | | | | | | | | | | | | | | | | | - Interrupt mMessageThread, so it gets to see immediately that mRun is false and exit rightaway. Change-Id: Ic586ef225a5c6f3a77f89de00b7fb3f3547c9838
* | | Merge "Fixed BaseObj finalizer and destroy()" into nyc-devYang Ni2016-04-222-15/+5
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | | | | am: 8ca7638 * commit '8ca763803d8960ddc9f6c498c3294e69aac0f7cf': Fixed BaseObj finalizer and destroy() Change-Id: Id607034269102c84d673b7148beb0b050121e0bc
| * | Fixed BaseObj finalizer and destroy()Yang Ni2016-04-222-15/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 28242626 Bug: 27972184 Bug: 27973681 This is resolving issues in ScriptGroup (V1) again. In ScriptGroup.destroy(), we also need to consider the old API where mClosures is not initialized. Also cleaned up the finalizer for ScriptGroup and Allocation: Since BaseObj.finalize() calls BaseObj.helpDestroy(), instead of BaseObj.destroy(), there is no possibility that the finalizers of child objects may race their parents finalizers. Note that helpDestroy() does not try to recurse on child objects. Change-Id: I9dbb2b60f8478f656f8a418c2b5fc8d6848aeef0