summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Yuri Lin <yurilin@google.com> 2024-08-22 18:18:43 -0400
committer Yuri Lin <yurilin@google.com> 2024-09-03 14:15:14 -0400
commit1181fd1b6769e6f093cd409e2b9f7aa0f91d7ed9 (patch)
treeb545adfdd750a9d195e9a6672139c65f523bbdd8 /libs/androidfw/StringPool.cpp
parent00c0e6761dfe853e49ebfb2850a6921f671a4db2 (diff)
Limit the size of vibration effects stored on a NotificationChannel
This change adds a cropToLengthOrNull() @hide method to the VibrationEffect interface, implemented only by compositions, to provide a best-effort crop of the number of segments involved in a vibration effect. For notification channels, changes the max vibration length to 500 from 1000. We probably don't need that much space, and serializing vibration effects means that the data ends up taking up a lot more space than just the array for the vibration pattern. Adds android.app.notif_channel_crop_vibration_effects bugfix flag that limits when we attempt to crop the vibration effects. Bug: 345881518 Test: manual with flag on/off; NotificationChannelTest; VibrationEffectTest Flag: android.app.notif_channel_crop_vibration_effects Change-Id: I885f733112af89fe9f255db626fcdc297b1a18c8
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions