summaryrefslogtreecommitdiff
path: root/core/java/android/util/PathParser.java
Commit message (Collapse)AuthorAgeFilesLines
* Add maxTargetSdk restriction to unused APIs.Mathew Inwood2020-10-291-1/+2
| | | | | | | | | | | | | | | | | | | 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-281-2/+1
| | | | | | | | | 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-271-1/+2
| | | | | | | | | | 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
* Use new UnsupportedAppUsage annotation.Artur Satayev2020-01-071-1/+1
| | | | | | | | 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 Change-Id: I288969b0c22fa3a63bc2e71bb5009fe4a927e154
* Add @UnsupportedAppUsage annotationsMathew Inwood2018-08-141-0/+2
| | | | | | | | | | | | | | | | | | | For packages: android.util.proto android.util.jar android.util.apk android.util 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: Ia0f48c244b0fbe33d40d797702a82303648196ed
* Convert utils fastjni -> @FastNativeJohn Reck2016-10-101-1/+13
| | | | | Test: builds & boots, refactor no behavior change Change-Id: Ieb569a70fd05b88a8d2bd7b285099c1fc1888a75
* Improve error logging for parsing failuresDoris Liu2016-04-081-8/+2
| | | | | Bug: 27043594 Change-Id: I901b65f734c49444a78e0714e007e15e2340ab9d
* Revert "Revert "VectorDrawable native rendering - Step 4 of MANY""Doris Liu2016-02-041-0/+1
| | | | | | This reverts commit 5a11e8d0ba21624025b89ac63bbd18befa55be0e. Change-Id: I7a48b59c4f930dad65ddc8590c25a12636244ea2
* Revert "VectorDrawable native rendering - Step 4 of MANY"Doris Liu2016-02-041-1/+0
| | | | | | | | b/26949340 and b/26975469, b/26975079 as well This reverts commit f276acd98457bcaabc9e79a17a736b3b484f005e. Change-Id: I4b55177daf0d289bc03604c71fd4bf579f65073a
* VectorDrawable native rendering - Step 4 of MANYDoris Liu2016-02-021-0/+1
| | | | | | | | | | | | | | This CL runs VectorDrawable animation on RenderThread. The changes in this CL include: - Convert all the animators in AnimatorSet for AVD into a set of RenderNodeAnimators. - Hook up the new animators with RenderThread - Add drawOp in RecordingCanvas for drawing VD so that during the animation on RenderThread, all the property changes on VD can be reflected on the screen. TODO: - Implement reverse and reset for AVD. Change-Id: I2df1d754f2db0ad098d9c15dde4bb2bdfafc2315
* VectorDrawable native rendering - Step 3 of MANYDoris Liu2015-12-281-0/+4
| | | | | | | | | | | | | - Refactored VPathRenderer & VectorDrawableState - Moved all the VD rendering into native - Set up hooks for VD's property changes in JNI for animated VD TODO: JNI calls can be further reduced when we convert the animation in AVD to use RenderNodeAnimator, in which case animation will be driven from native and therefore most of the JNI hooks for changing VD's properties during animation will no longer be needed. Change-Id: I52021f4d7bea057b83ace54085d870dd45acae0f
* VectorDrawable native rendering - Step 2 of MANYDoris Liu2015-11-181-634/+61
| | | | | | | | | | | | | | | | Introduced PathData in Java, which is effectively a thin layer around the native instance. PathData holds the verbs and points which is being used in path morphing/interpolation. The verbs and points can be interpreted into skia path commands, which is now done in native and therefore saves a handful of JNI calls during path creation. Removed the old PathDataNode mechanism and changed the PathEvaluator to use PathData instead. Also added tests and a microbench. Also ran CTS tests for VectorDrawable and AnimatedVectorDrawable, and passed all of the existing tests. Change-Id: Ia166f5172ff031fe18b154327967f911a62caec1
* Add hooks in JNI to start using native path parsingDoris Liu2015-11-111-11/+14
| | | | Change-Id: Iaa0d3c2c1936c248146ed7f186a13e8e79be818e
* Fix segment number for arcTo conversionTeng-Hui Zhu2015-10-201-1/+1
| | | | | | | AOSP bug: https://code.google.com/p/android/issues/detail?id=188594 Change-Id: Iaebb8ec7782658a1438cf973ed9a8799da0fdea3
* Fix implicit lineTo issueTeng-Hui Zhu2015-09-101-6/+20
| | | | | | b/23808876 Change-Id: I208e088bfc565ae0d09b826ceff6f9d3c5eb215f
* Frameworks/base: Use || instead of |Andreas Gampe2015-03-171-1/+1
| | | | | | | Nothing wrong with | in this case, but || is canonical. Bug: 19797138 Change-Id: I5f145736a5470f7cde06efce9a217d86eda2135f
* Fix the starting pen's position when a path close.ztenghui2014-11-131-6/+19
| | | | | | | | | We have to cache the starting point for the latest "move", then apply it after we close the path. b/18214929 Change-Id: I8e8e5c810d720a1c194b8f59d74867a0efbb7662
* Support negative value in exponential data in the pathData.ztenghui2014-10-101-5/+21
| | | | | | | | | | | Now "1e-5" will not be separated as "1e" and "-5". Add one test for this use case. Make sure we print out the pathData when path parsing has error. b/17919923 Change-Id: I10a00ce21166cfb5a009c49c1a93f40eeb956d83
* Support dot separation as the svg path data did.ztenghui2014-10-081-7/+17
| | | | | | | | | Like "0.0.0" will be separated to "0.0 .0" now, just to make sure we are more complied with svg path data. b/17892882 Change-Id: Id7b64e9882f5174aa794a0256e2a29d66c724876
* API REVIEW: VectorDrawableztenghui2014-07-251-0/+3
| | | | | | | | | | | | | | | | | | | | - Merge <size> and <viewport> attributes all in to top-level <vector> tag - Indent attributes under <group> in java doc. - Updata android:stroke to be android:strokeColor, likewise android:fill - Instead of android:clipToPath, make this a different clip-path tag. - Document units of the various attributes - Add example code for defining a VectorDrawable resource More than that: = Refactor the code to better support clipPath as a sub-class. = Update all the xml files to use the new attributes and clip-path tag. TODO: -- Remove clipToPath, since that should happen on build break Friday. bug:16488254 Change-Id: I6db5680ef83cb26c8f064a60fc7d6e7142974b0f
* Add negative sign separation support in the pathDataztenghui2014-07-231-27/+66
| | | | | | bug:14585171 Change-Id: I61dec27856be09c44bb1d32ff61b3c3cd458cc34
* AVD now support path morphing.ztenghui2014-06-201-1/+82
| | | | | | | | Basically extended the ValueAnimator to support a new type: pathType. Add the PathDataEvaluator internally to interpolate path data. Update test to show the path morphing. Change-Id: I89db0199cbc12e3041790a6115f3f50b80213cdb
* Add path support into xml files for PathInterpolator and ObjectAnimator.ztenghui2014-06-191-0/+528
The test case is showing that AnimatedVectorDrawable is able to use path to define time interpolator and object movement now. Change-Id: If3c0418265d0fd762c8f5f0bb8c39cce3ad34ef3