summaryrefslogtreecommitdiff
path: root/core/java/android/text/SpanSet.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/+2
| | | | | | | | 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-151-0/+2
| | | | | | | | | | | | | | | | | | | | For packages: android.text.util android.text.style android.text.method android.text.format android.text 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: I9afbd4ca8826c37cb70db43252e39b9a674e5ae0
* Revert "Don't let UnderlineSpans affect text width"Siyamed Sinir2017-06-011-11/+0
| | | | | | | This reverts commit 203ffaa103e796545701de30351d92787c1e3ce3. Bug: 62234081 Change-Id: I8dd95dba52f268fb57f55e315431cedbc5128adc
* Don't let UnderlineSpans affect text widthRoozbeh Pournader2017-05-241-0/+11
| | | | | | | | | | | | Previously, text that was partially annotated with an UnderlineSpan could have a different width than text without it, since underlined text was separated into a separate piece of text and was measured separately, causing kerning at the span boundaries to disappear. Change-Id: I118de8524c500fb6a4b05b1bf65fe93dc67f204c Bug: 32907446 Test: cts-tradefed run cts-dev --module CtsTextTestCases Test: manual
* Prevent possible memory leak in SpanSetRomain Guy2015-04-071-3/+10
| | | | | | | | | | | | | | | | | | | | | If SpanSet.init() is called several times in a row with different values, it is possible to change "numberOfSpans" in a way that will prevent SpanSet.recycle() from nulling out all the spans. This can lead to memory leaks of large objects through spans references. User @piwai reported this leak: com.squareup.marketfont.MarketSpan `-[1] of array android.text.style.CharacterStyle[] `-spans of object android.text.SpanSet `-mCharacterStyleSpanSet of object android.text.TextLine `-[1] of array android.text.TextLine[] `-sCached of class android.text.TextLine The MarketSpan instance is kept alive through a recycled TextLine which itself contains a SpanSet. Change-Id: Idfb2233ca16895dbe735c312662eaf0b4a2ecd65
* New SpanSet class extracted from TextLine.Gilles Debunne2012-03-131-0/+111
Change-Id: I424dbd7ff0693fd465b6c83ebabba221b2eca6fe