diff options
| author | Robert Wu <robertwu@google.com> | 2022-01-25 19:36:02 +0000 |
|---|---|---|
| committer | Robert Wu <robertwu@google.com> | 2022-01-26 23:20:12 +0000 |
| commit | 2136d8d77e40a6712ed2cc9314a2fb74201136b1 (patch) | |
| tree | abc8b5091824669a0e484e1273d6eb47e605c599 /core/java/android/inputmethodservice/InputMethodService.java | |
| parent | 91cfa7ff07612192644bb0106c224444cde7257d (diff) | |
amidi: Don't create extra write buffer
When sendWithTimestamp is called, a ~1000 byte buffer is created
even if nothing is sent. This CL adds a check to the size to save
space in the buffer if it's not needed.
Bug: 216328047
Test: atest NativeMidiEchoTest
Change-Id: I0bfddb6ca7416c5df5e938bdd09a5f1efdacaf5c
Diffstat (limited to 'core/java/android/inputmethodservice/InputMethodService.java')
0 files changed, 0 insertions, 0 deletions
