Add optional search contact method for CUJ
Bug: 142812359
Test: in follow-up CL containing CUJs
Change-Id: Ie1fad3824855ef98043b5ac6d5969157919d56dd
Merged-In: Ie1fad3824855ef98043b5ac6d5969157919d56dd
(cherry picked from commit 9bfe751c0b32793516598917d81af455a3c7331a)
diff --git a/libraries/app-helpers/interfaces/common/src/android/platform/helpers/IContactsHelper.java b/libraries/app-helpers/interfaces/common/src/android/platform/helpers/IContactsHelper.java
index 0c07aa6..7ef499c 100644
--- a/libraries/app-helpers/interfaces/common/src/android/platform/helpers/IContactsHelper.java
+++ b/libraries/app-helpers/interfaces/common/src/android/platform/helpers/IContactsHelper.java
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2017 The Android Open Source Project
+ * Copyright (C) 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -38,6 +38,19 @@
}
/**
+ * Setup expectation: Contacts is open
+ *
+ * <p>Clicks search field and inputs contact to search. Provide alternative ways to input
+ * contact.
+ *
+ * @param contact The contact to search.
+ * @param useKeyboard Use KeyEvent to input contact if true, use UiObject2 setText otherwise.
+ */
+ public default void searchForContact(String contact, boolean useKeyboard) {
+ throw new UnsupportedOperationException("Not yet implemented.");
+ }
+
+ /**
* Setup expectations: The search results of contact showed.
* <p>
* Selects the contact by the specific index.