commit | 641248efeb103c47a1fd170fbf8bba7d35673151 | [log] [tgz] |
---|---|---|
author | Lais Andrade <lsandrade@google.com> | Fri Feb 16 17:49:36 2024 +0000 |
committer | Lais Andrade <lsandrade@google.com> | Fri Feb 16 18:26:13 2024 +0000 |
tree | 036eeba49446ecafaf8b688b3a538d613d2b2c7e | |
parent | f8680e6d01b64ea8745b8c0aa335e6a4b54d8958 [diff] |
Fix retry logic for vibrator HAL requests Update VibratorHalController to only reconnect with the IVibrator HAL service and retry the operation if a transaction error or dead object code is received. This will avoid retrying vibrator calls with bad values when the error code is illegal argument, for example, or when the vibrator is returning illegal state. Bug: 325204954 Test: atest libvibratorservice_test Change-Id: I6764c736a64745ada5233329372d5c22f4e8aa74