summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author sandeepbandaru <sandeepbandaru@google.com> 2024-05-14 21:27:32 +0000
committer sandeepbandaru <sandeepbandaru@google.com> 2024-05-15 15:21:56 +0000
commit19b56ffb2fecf6efb90743a5e8b8ee9dc7158d7f (patch)
tree5c40815bcf11f3c4f6dcc5f34ee01dc93ada4cf1 /libs/androidfw/StringPool.cpp
parent5f5d459a6df211b6f8470412fe6848a6eaa69b0c (diff)
Add logic to unbind based on callback completions
This CL converts the erstwhile ServiceConnector#run methods to now use postAsync(@NonNull Job<I, CompletableFuture<R>> job) this allows wrapping the callback invocation as a future completion whenever the terminal callback methods are invoked. We rely on a common idle_timeout setting value, provided by remote implementation such that all methods should reach their terminal state (invoke success or failure callback) within this duration. With the exception of download callback, which might take much longer than other methods subject to networks speeds etc. Incase of downloads, we enforce this idle timeout at the progress-callback level, such that if there is no progress within timeout interval, we will consider the download to have reached a terminal state. Bug: 340551198 Change-Id: I7ab213ca6b2360e908b29b788543948f544db635
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions