Sha256: edc8d44146b225e9384f94d38f862b4e004732c46029c0f75f26148047cd2509

Contents?: true

Size: 560 Bytes

Versions: 11

Compression:

Stored size: 560 Bytes

Contents

package com.amplify.honeydew_server.actions;

import android.os.RemoteException;
import com.amplify.honeydew_server.*;
import com.android.uiautomator.core.*;

import java.util.Map;

public class Sleep extends Action {
    public Sleep(UiDevice uiDevice) {
        super(uiDevice);
    }

    @Override
    public Result execute(Map<String, Object> arguments) throws UiObjectNotFoundException {
        try {
            getUiDevice().sleep();
        } catch (RemoteException e) {
            return Result.FAILURE;
        }
        return Result.OK;
    }
}

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
honeydew-0.29.1 server/src/main/java/com/amplify/honeydew_server/actions/Sleep.java
honeydew-0.29.0 server/src/main/java/com/amplify/honeydew_server/actions/Sleep.java
honeydew-0.28.0 server/src/main/java/com/amplify/honeydew_server/actions/Sleep.java
honeydew-0.27.4 server/src/main/java/com/amplify/honeydew_server/actions/Sleep.java
honeydew-0.27.3 server/src/main/java/com/amplify/honeydew_server/actions/Sleep.java
honeydew-0.27.2 server/src/main/java/com/amplify/honeydew_server/actions/Sleep.java
honeydew-0.27.1 server/src/main/java/com/amplify/honeydew_server/actions/Sleep.java
honeydew-0.27.0 server/src/main/java/com/amplify/honeydew_server/actions/Sleep.java
honeydew-0.25.0 server/src/main/java/com/amplify/honeydew_server/actions/Sleep.java
honeydew-0.24.1 server/src/main/java/com/amplify/honeydew_server/actions/Sleep.java
honeydew-0.24.0 server/src/main/java/com/amplify/honeydew_server/actions/Sleep.java