Tony Mak
a19833565b
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
2020-10-23 22:05:32 +01:00
..
2020-10-15 10:48:01 -07:00
2020-05-18 13:56:09 -04:00
2020-10-15 10:48:01 -07:00
2020-10-15 10:48:01 -07:00
2020-10-15 10:48:01 -07:00
2020-05-01 18:25:32 +00:00
2020-10-23 22:05:32 +01:00
2020-10-15 10:48:01 -07:00
2020-04-03 14:23:57 +09:00
2020-03-10 11:46:10 -04:00
2020-09-08 18:46:08 +00:00
2020-10-09 11:17:32 -07:00
2020-10-15 10:48:01 -07:00
2020-10-15 10:48:01 -07:00
2020-10-15 10:48:01 -07:00
2020-10-15 10:48:01 -07:00
2020-10-09 11:17:32 -07:00
2020-10-15 10:48:01 -07:00
2020-06-15 19:26:38 -07:00
2020-07-24 22:03:51 +00:00
2020-10-09 11:17:32 -07:00
2020-08-03 11:36:54 +08:00
2020-05-06 09:38:39 -04:00
2020-07-08 23:06:14 +00:00
2020-05-20 17:34:17 -07:00
2020-03-22 09:47:43 -07:00
2020-09-29 15:05:18 +02:00
2020-09-29 15:05:18 +02:00
2020-08-04 09:55:35 -05:00
2020-09-22 21:05:19 -07:00
2020-08-21 14:37:04 -05:00
2020-10-05 11:44:37 +00:00
2020-06-22 16:55:54 +02:00
2020-09-29 15:05:18 +02:00
2020-09-29 15:05:18 +02:00
2020-03-11 22:58:59 +01:00
2020-09-29 15:05:18 +02:00
2020-09-29 15:27:30 +00:00
2020-09-28 02:04:21 +08:00
2020-10-15 10:48:01 -07:00
2020-09-29 15:05:18 +02:00
2020-10-07 20:27:32 +02:00
2020-10-15 10:48:01 -07:00
2020-06-30 13:36:04 +02:00
2020-04-10 02:20:03 +08:00
2020-04-10 02:20:03 +08:00
2020-04-20 15:07:59 +00:00
2020-04-20 15:07:59 +00:00
2020-09-28 02:04:21 +08:00
2020-10-14 17:33:58 -07:00
2020-10-13 17:48:57 -07:00
2020-10-13 02:25:52 +00:00
2020-09-10 08:01:36 +09:00
2020-08-03 11:36:54 +08:00
2020-10-15 10:48:01 -07:00
2020-10-15 10:48:01 -07:00
2020-09-16 15:09:03 +00:00
2020-10-13 16:08:04 -07:00
2020-05-12 19:11:13 +01:00
2020-06-15 19:36:37 +08:00
2020-10-15 10:48:01 -07:00
2020-10-14 19:02:17 +00:00
2020-09-30 15:00:51 -07:00
2020-04-20 15:07:59 +00:00
2020-04-20 15:07:59 +00:00
2020-04-20 15:07:59 +00:00
2020-04-20 15:07:59 +00:00
2020-04-20 15:07:59 +00:00
2020-10-13 18:44:19 -07:00
2020-10-15 10:48:01 -07:00
2020-09-15 14:48:13 -07:00
2020-10-14 17:13:59 -07:00
2020-10-13 17:48:57 -07:00
2020-06-02 14:20:05 -04:00
2020-05-07 14:12:21 -07:00
2020-05-01 18:25:32 +00:00
2020-10-12 11:03:31 -07:00
2020-09-23 13:58:41 +00:00
2020-09-11 23:50:25 +00:00
2020-09-15 21:01:48 +00:00
2020-05-06 09:38:39 -04:00
2020-08-19 11:13:22 -07:00
2020-10-15 02:44:09 +00:00
2020-06-22 16:55:54 +02:00
2020-10-15 10:48:01 -07:00
2020-08-03 11:36:54 +08:00
2020-10-15 10:48:01 -07:00
2020-03-31 17:48:52 +02:00
2020-06-20 03:51:00 +00:00
2020-03-18 12:17:19 +01:00
2020-09-24 18:13:06 +00:00
2020-10-13 17:48:57 -07:00
2020-09-24 13:18:12 -07:00
2020-04-27 17:20:42 +00:00
2020-09-24 13:18:12 -07:00
2020-07-17 08:44:19 -07:00
2020-05-04 11:41:13 +08:00