diff options
author | Tony Mak <tonymak@google.com> | 2018-12-07 17:37:43 +0000 |
---|---|---|
committer | Tony Mak <tonymak@google.com> | 2018-12-12 21:32:35 +0800 |
commit | 82fa8d9451a97d4762d9d7b3c9657525c693bfdf (patch) | |
tree | 0e62df25b7191e7afa692a98d0d016c405aa7ccc /tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp | |
parent | af7deaba65fd18a8366356c3048bae2496c3563e (diff) |
Pass reference time / locales of messages to the model
1. It is required to set Person object when constructing a Message object
now. As it is very important to know whether the message is from
local user or remote user. Introduced PERSON_USER_REMOTE if
the caller just want a simple way to specify a remote user.
2. Use detectLanguages to detect the locale of the messages
If the model finds the detected language is not something
it supports, model may suppress smart reply.
3. Pass the reference time to the model. So model can resolve
the absolute time from a relative date string like "tomorrow 6pm".
BUG: 120809869
Test: atest ActionsSuggestionsHelperTest.java
Test: atest ConversationActionsTest.java
Change-Id: Ie079848e9b3d9bb8800f7f95d73e289e831968f8
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp')
0 files changed, 0 insertions, 0 deletions