Skip to content

Commit 761f92f

Browse files
brettchabotcopybara-androidxtest
authored andcommitted
Mark DeviceController as an public API instead of experimental.
This is necessary because DeviceAction is public, which uses DeviceController. PiperOrigin-RevId: 602504409
1 parent cf3dfe9 commit 761f92f

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

runner/monitor/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
**Breaking Changes**
1212

1313
**API Changes**
14+
* Make DeviceController an public API from ExperimentalTestApi
1415

1516
**Breaking API Changes**
1617

runner/monitor/java/androidx/test/api/current_public.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,16 @@ package androidx.test.platform.app {
3737

3838
package androidx.test.platform.device {
3939

40+
public interface DeviceController {
41+
method public void setDeviceMode(int);
42+
method public void setScreenOrientation(int);
43+
}
44+
45+
public enum DeviceController.ScreenOrientation {
46+
enum_constant public static final androidx.test.platform.device.DeviceController.ScreenOrientation LANDSCAPE;
47+
enum_constant public static final androidx.test.platform.device.DeviceController.ScreenOrientation PORTRAIT;
48+
}
49+
4050
public class UnsupportedDeviceOperationException extends java.lang.RuntimeException implements androidx.test.platform.TestFrameworkException {
4151
ctor public UnsupportedDeviceOperationException(String!);
4252
ctor public UnsupportedDeviceOperationException(String!, Throwable!);

runner/monitor/java/androidx/test/platform/device/DeviceController.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package androidx.test.platform.device;
1818

19-
import androidx.test.annotation.ExperimentalTestApi;
2019

2120
/**
2221
* Provides base-level device operations that can be used to build user actions such as folding a
@@ -25,10 +24,7 @@
2524
* <p>This is a low level API, typically used by higher level test frameworks. It is generally not
2625
* recommended for direct use by most tests. Please use high-level Espresso device APIs to interact
2726
* with the device.
28-
*
29-
* <p>This API is experimental and is subject to change or removal in future releases.
3027
*/
31-
@ExperimentalTestApi
3228
public interface DeviceController {
3329
/**
3430
* Sets the connected device to the provided mode. unsupported device mode.

0 commit comments

Comments
 (0)