Allow to influence how loadSafeLabel works
Also remove all references to old loadSafeLabel method to prevent proliferation of old method via copy+paste. The implementation assumes that there are three cases: - Short labels that don't have anything wrong with them - Labels that are fine, but are a little too long - Intentionally bad label that try to break stuff and slow things down. In the first two cases no characters are marked for removal, in the third case we have an implementation that does not use a lot of memory and has linear performance when there are a lot of bad characters. Test: gts-tradefed run gts-dev -m GtsContentTestCases Bug: 77964730 Change-Id: I3feb17b2a12018cd5407c88fe3603f2ebbc9d14e
Loading
Please register or sign in to comment