diff options
author | Martin Geisler <mgeisler@google.com> | 2022-04-04 10:53:59 +0200 |
---|---|---|
committer | Martin Geisler <mgeisler@google.com> | 2022-04-04 11:02:08 +0200 |
commit | 58836880a0f77c6a7169a1612751b16808727d02 (patch) | |
tree | 6657023dd28a83fb6e520e79e1ba17a71f257a49 /framework/java/android/bluetooth/BluetoothHapClient.java | |
parent | 8d26041b7b6c8c3fa77038ac72151fef76316bc5 (diff) |
pdl: fix computation of `SourceLocation` line numbers
Before, we would always exit the loop at the first iteration since the
`line_starts` passed in start with a zero offset. We should actually
search through the line starts to find the last line which starts
before the given offset.
This also adds new unit tests to cover this.
Test: atest pdl_inline_tests
Change-Id: I171803822c3cb58deec167a2bc063cbd8f99110f
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothHapClient.java')
0 files changed, 0 insertions, 0 deletions