diff options
| author | 2023-05-08 17:48:00 -0700 | |
|---|---|---|
| committer | 2023-05-08 18:24:56 -0700 | |
| commit | 765f25210dab7f56d83f52415ec6e33702c52edc (patch) | |
| tree | 25586c5f84aee6d4f730db58b6118899a81cbd03 /api/api_test.go | |
| parent | ab9ab096e670e1560b772860791df29bee530062 (diff) | |
UidObserverController: Fix incorrect usage of binarySearch return value
Arrays.binarySearch does not return -1 in all cases where the value
cannot be found. It returns a negative index indicating where the value
would be inserted. This was discovered through additional unit testing
on master.
Bug: 274486653
Test: --
-- atest UidObserverControllerTest (with new tests)
-- atest CtsCameraTestCases (CameraEvictionTest)
Change-Id: Ifbb7eab343279c74b53d00a3c64cd6236edcad02
Diffstat (limited to 'api/api_test.go')
0 files changed, 0 insertions, 0 deletions