diff options
| author | 2024-12-11 15:39:09 -0800 | |
|---|---|---|
| committer | 2024-12-17 18:42:59 +0000 | |
| commit | 075fbee7b062c7e4945cf35fbe5b3b9298181719 (patch) | |
| tree | c09c303dfe0aafbe5abab2df20616a33c0604fc8 /libs/androidfw/StringPool.cpp | |
| parent | 559895c29f230f97954b74cf891a2f3daf106af3 (diff) | |
[RONs] Enforce segment and point limits
Enforces segment limit as follows:
- When adding: drop any segment that has non-positive length.
- When creating the model: if N > limit, replace with single segment (Single segment length has same max as total. Single segment color: if all segments have the same color, use that. Otherwise, use 0 / default)
Enforce point limit as follows:
- When adding: drop any point that has a negative position.
- When creating the model: take first N valid points
Bug: 383566179
Change-Id: Ie919ce8784394fcaf39647bbd743ca9bad490897
Test: presubmit && post ProgressStyle with points and segments more than their limits
Flag: android.app.api_rich_ongoing
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions