@@ -73,50 +73,45 @@ default void ignoreUnimportantViews(Boolean compress) {
73
73
/**
74
74
* invoke {@code setWaitForIdleTimeout} in {@code com.android.uiautomator.core.Configurator}
75
75
*
76
- * @param timeout in milliseconds, 0 would reset to its default value
76
+ * @param timeout in milliseconds. A negative value would reset to its default value
77
77
*/
78
78
default void configuratorSetWaitForIdleTimeout (int timeout ) {
79
- setSetting (Setting .CONFIGURATOR ,
80
- ConfiguratorParameters .WAIT_FOR_IDLE_TIMEOUT .format (timeout ));
79
+ setSetting (Setting .WAIT_FOR_IDLE_TIMEOUT , timeout );
81
80
}
82
81
83
82
/**
84
83
* invoke {@code setWaitForSelectorTimeout} in {@code com.android.uiautomator.core.Configurator}
85
84
*
86
- * @param timeout in milliseconds, 0 would reset to its default value
85
+ * @param timeout in milliseconds. A negative value would reset to its default value
87
86
*/
88
87
default void configuratorSetWaitForSelectorTimeout (int timeout ) {
89
- setSetting (Setting .CONFIGURATOR ,
90
- ConfiguratorParameters .WAIT_FOR_SELECTOR_TIMEOUT .format (timeout ));
88
+ setSetting (Setting .WAIT_FOR_SELECTOR_TIMEOUT , timeout );
91
89
}
92
90
93
91
/**
94
92
* invoke {@code setScrollAcknowledgmentTimeout} in {@code com.android.uiautomator.core.Configurator}
95
93
*
96
- * @param timeout in milliseconds, 0 would reset to its default value
94
+ * @param timeout in milliseconds. A negative value would reset to its default value
97
95
*/
98
96
default void configuratorSetScrollAcknowledgmentTimeout (int timeout ) {
99
- setSetting (Setting .CONFIGURATOR ,
100
- ConfiguratorParameters .WAIT_SCROLL_ACKNOWLEDGMENT_TIMEOUT .format (timeout ));
97
+ setSetting (Setting .WAIT_SCROLL_ACKNOWLEDGMENT_TIMEOUT , timeout );
101
98
}
102
99
103
100
/**
104
101
* invoke {@code configuratorSetKeyInjectionDelay} in {@code com.android.uiautomator.core.Configurator}
105
102
*
106
- * @param delay in milliseconds, 0 would reset to its default value
103
+ * @param delay in milliseconds. A negative value would reset to its default value
107
104
*/
108
105
default void configuratorSetKeyInjectionDelay (int delay ) {
109
- setSetting (Setting .CONFIGURATOR ,
110
- ConfiguratorParameters .KEY_INJECTION_DELAY .format (delay ));
106
+ setSetting (Setting .KEY_INJECTION_DELAY , delay );
111
107
}
112
108
113
109
/**
114
110
* invoke {@code setActionAcknowledgmentTimeout} in {@code com.android.uiautomator.core.Configurator}
115
111
*
116
- * @param timeout in milliseconds, 0 would reset to its default value
112
+ * @param timeout in milliseconds. A negative value would reset to its default value
117
113
*/
118
114
default void configuratorSetActionAcknowledgmentTimeout (int timeout ) {
119
- setSetting (Setting .CONFIGURATOR ,
120
- ConfiguratorParameters .WAIT_ACTION_ACKNOWLEDGMENT_TIMEOUT .format (timeout ));
115
+ setSetting (Setting .WAIT_ACTION_ACKNOWLEDGMENT_TIMEOUT , timeout );
121
116
}
122
117
}
0 commit comments