@@ -73,50 +73,45 @@ default void ignoreUnimportantViews(Boolean compress) {
7373 /**
7474 * invoke {@code setWaitForIdleTimeout} in {@code com.android.uiautomator.core.Configurator}
7575 *
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
7777 */
7878 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 );
8180 }
8281
8382 /**
8483 * invoke {@code setWaitForSelectorTimeout} in {@code com.android.uiautomator.core.Configurator}
8584 *
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
8786 */
8887 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 );
9189 }
9290
9391 /**
9492 * invoke {@code setScrollAcknowledgmentTimeout} in {@code com.android.uiautomator.core.Configurator}
9593 *
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
9795 */
9896 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 );
10198 }
10299
103100 /**
104101 * invoke {@code configuratorSetKeyInjectionDelay} in {@code com.android.uiautomator.core.Configurator}
105102 *
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
107104 */
108105 default void configuratorSetKeyInjectionDelay (int delay ) {
109- setSetting (Setting .CONFIGURATOR ,
110- ConfiguratorParameters .KEY_INJECTION_DELAY .format (delay ));
106+ setSetting (Setting .KEY_INJECTION_DELAY , delay );
111107 }
112108
113109 /**
114110 * invoke {@code setActionAcknowledgmentTimeout} in {@code com.android.uiautomator.core.Configurator}
115111 *
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
117113 */
118114 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 );
121116 }
122117}
0 commit comments