Sha256: 2360c7ebff00bc5651e7d611eab5355477ad34a3f9fa756e52317f31365e7e2f

Contents?: true

Size: 611 Bytes

Versions: 4

Compression:

Stored size: 611 Bytes

Contents

package com.amplify.honeydew_server.actions;

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

import java.util.Map;

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
honeydew-0.17.0 server/src/main/java/com/amplify/honeydew_server/actions/WakeUp.java
honeydew-0.16.0 server/src/main/java/com/amplify/honeydew_server/actions/WakeUp.java
honeydew-0.15.0 server/src/main/java/com/amplify/honeydew_server/actions/WakeUp.java
honeydew-0.14.0 server/src/main/java/com/amplify/honeydew_server/actions/WakeUp.java