DO NOT MERGE: Add proper @hide's for mismatched released APIs
bug: 7538348
Change-Id: I1c7f9207149888f8595f5a1ce4147cafb7410b99
diff --git a/uiautomator/library/src/com/android/uiautomator/core/UiDevice.java b/uiautomator/library/src/com/android/uiautomator/core/UiDevice.java
index 7fbe328..eac2e9a 100644
--- a/uiautomator/library/src/com/android/uiautomator/core/UiDevice.java
+++ b/uiautomator/library/src/com/android/uiautomator/core/UiDevice.java
@@ -122,6 +122,7 @@
* purpose of adapting to different styles of UI, test should favor
* {@link UiDevice#getDisplaySizeDp()} over this method, and only use product name as a fallback
* mechanism
+ * @hide
*/
public String getProductName() {
return Build.PRODUCT;
@@ -469,6 +470,7 @@
* Check if the device is in its natural orientation. This is determined by checking if the
* orientation is at 0 or 180 degrees.
* @return true if it is in natural orientation
+ * @hide
*/
public boolean isNaturalOrientation() {
Display display = WindowManagerImpl.getDefault().getDefaultDisplay();
@@ -504,6 +506,7 @@
* so may cause the screen contents to get re-oriented depending on the current
* physical position of the test device.
* @throws RemoteException
+ * @hide
*/
public void setOrientationLeft() throws RemoteException {
getAutomatorBridge().getInteractionController().setRotationLeft();
@@ -516,6 +519,7 @@
* so may cause the screen contents to get re-oriented depending on the current
* physical position of the test device.
* @throws RemoteException
+ * @hide
*/
public void setOrientationRight() throws RemoteException {
getAutomatorBridge().getInteractionController().setRotationRight();
@@ -528,6 +532,7 @@
* that doing so may cause the screen contents to rotate
* depending on the current physical position of the test device.
* @throws RemoteException
+ * @hide
*/
public void setOrientationNatural() throws RemoteException {
getAutomatorBridge().getInteractionController().setRotationNatural();
diff --git a/uiautomator/library/src/com/android/uiautomator/core/UiObject.java b/uiautomator/library/src/com/android/uiautomator/core/UiObject.java
index 8a8fd76..93966ea 100644
--- a/uiautomator/library/src/com/android/uiautomator/core/UiObject.java
+++ b/uiautomator/library/src/com/android/uiautomator/core/UiObject.java
@@ -634,6 +634,7 @@
*
* @return Rect
* @throws UiObjectNotFoundException
+ * @hide
*/
public Rect getVisibleBounds() throws UiObjectNotFoundException {
AccessibilityNodeInfo node = findAccessibilityNodeInfo(WAIT_FOR_SELECTOR_TIMEOUT);
diff --git a/uiautomator/library/src/com/android/uiautomator/core/UiSelector.java b/uiautomator/library/src/com/android/uiautomator/core/UiSelector.java
index 813b35d..b9856df 100644
--- a/uiautomator/library/src/com/android/uiautomator/core/UiSelector.java
+++ b/uiautomator/library/src/com/android/uiautomator/core/UiSelector.java
@@ -62,6 +62,9 @@
mSelectorAttributes = selector.cloneSelector().mSelectorAttributes;
}
+ /**
+ * @hide
+ **/
protected UiSelector cloneSelector() {
UiSelector ret = new UiSelector();
ret.mSelectorAttributes = mSelectorAttributes.clone();