summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramStore.java
diff options
context:
space:
mode:
authorTony Mak <tonymak@google.com>2020-10-22 20:50:56 +0100
committerTony Mak <tonymak@google.com>2020-10-23 22:05:32 +0100
commita19833565b099a9200eebde4526f73307dd346ed (patch)
treead404cbf3d1af64557800d6469856e1286cd409e /rs/java/android/renderscript/ProgramStore.java
parent6b634145572ba2d041362236a0254e04fa3a2ae9 (diff)
Increase the timeout in SystemTextClassifier to 1 minute
TetxClassifier APIs are supposed to call on a worker thread (@WorkerThread), so there is no reason to enforce a short timeout like 2s. We are seeing timeouts in some emulator tests. SuggestConversationActions takes around 3s on the emulator. I can imagine this can also happen on slow device or the input is sufficiently long. Also - Fixed a bug that forgot to call callback.onFailure() when the caller is not allowed to see the request. - mOnServiceFailure should be @NonNull. It is important to invoke callback.onFailure() to notify the client that the request has just failed. Currently, there is only callsite that creates the PendingRequest object and it is not null. Test: atest -p external/libtextclassifier --all-abi Test: atest TextClassifierServiceSwapTest Fixes: 171543321 Change-Id: I24ca3e8d116073650ecf588593fc1e4beba86a45
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions