Home
last modified time | relevance | path

Searched refs:response_text (Results 1 – 16 of 16) sorted by relevance

/external/libtextclassifier/native/actions/
Dtest-utils.h35 MATCHER_P(IsSmartReply, response_text, "") {
38 Value(arg.response_text, response_text);
Dutils.cc39 if (action->response_text() != nullptr) { in FillSuggestionFromSpec()
40 suggestion->response_text = action->response_text()->str(); in FillSuggestionFromSpec()
66 suggestion.response_text = match_text.ToUTF8String(); in SuggestTextRepliesFromCapturingMatch()
Dlua-ranker_test.cc29 MATCHER_P2(IsAction, type, response_text, "") {
31 testing::Value(arg.response_text, response_text);
Dranker_test.cc29 MATCHER_P3(IsAction, type, response_text, score, "") {
31 testing::Value(arg.response_text, response_text) &&
Dactions-suggestions_test.cc627 rule_action->action->response_text = "General Desaster!"; in TEST_F()
637 rule_action->action->response_text = "General Kenobi!"; in TEST_F()
667 EXPECT_EQ(response.actions[0].response_text, "General Kenobi!"); in TEST_F()
688 rule_action->action->response_text = "General Desaster!"; in TEST_F()
698 rule_action->action->response_text = "General Kenobi!"; in TEST_F()
737 EXPECT_EQ(response.actions[0].response_text, "General Kenobi!"); in TEST_F()
822 EXPECT_EQ(response.actions[0].response_text, "Okay"); in TEST_F()
889 action->response_text = "General Kenobi!"; in TEST_F()
937 EXPECT_EQ(response.actions[0].response_text, "General Kenobi!"); in TEST_F()
966 action->response_text = "General Kenobi!"; in TEST_F()
[all …]
Dgrammar-actions_test.cc75 int AddActionSpec(const std::string& type, const std::string& response_text, in AddActionSpec() argument
84 actions_spec->action->response_text = response_text; in AddActionSpec()
105 const std::string& response_text, in AddSmartReplySpec() argument
107 return AddActionSpec("text_reply", response_text, {}, action_grammar_rules); in AddSmartReplySpec()
Dregex-actions.cc165 if (action.response_text.empty()) { in FilterConfidenceOutput()
171 UTF8ToUnicodeText(action.response_text, /*do_copy=*/false)); in FilterConfidenceOutput()
Dtypes.h69 std::string response_text; member
Dranker.cc133 if (const int value = Compare(action.response_text, other.response_text)) { in Compare()
Dactions_model.fbs310 response_text:string (shared);
398 // When true, actions suggestions are deduplicated by `type`, `response_text`
Dactions_jni.cc219 action_response.actions[i].response_text)); in ActionSuggestionsToJObject()
/external/grpc-grpc/test/core/http/
Dparser_test.cc95 const char* response_text, int expect_status, in test_succeeds() argument
98 grpc_slice input_slice = grpc_slice_from_copied_string(response_text); in test_succeeds()
150 const char* response_text) { in test_fails() argument
152 grpc_slice input_slice = grpc_slice_from_copied_string(response_text); in test_fails()
/external/python/cpython3/Lib/test/
Dtest_httplib.py1971 response_text = (
1978 self.conn._create_connection = self._create_connection(response_text)
1983 def _create_connection(self, response_text): argument
1985 return FakeSocket(response_text, host=address[0], port=address[1])
2030 response_text = 'HTTP/1.0 200 OK\r\n{}\r\n\r\n'.format(expected_header)
2033 self.conn._create_connection = self._create_connection(response_text)
/external/grpc-grpc/test/cpp/util/
Dgrpc_tool.cc671 grpc::string response_text = parser->GetTextFormatFromMethod( in CallMethod() local
677 if (!callback(response_text)) { in CallMethod()
/external/libtextclassifier/native/utils/
Dlua-utils.cc555 PushString(action.response_text); in PushAction()
586 action.response_text = Read<std::string>(/*index=*/kIndexStackTop); in ReadAction()
/external/python/cpython2/Lib/test/
Dtest_httplib.py946 response_text = (
953 return FakeSocket(response_text, host=address[0], port=address[1])