本文整理汇总了Java中com.googlecode.jsonrpc4j.JsonRpcError类的典型用法代码示例。如果您正苦于以下问题:Java JsonRpcError类的具体用法?Java JsonRpcError怎么用?Java JsonRpcError使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
JsonRpcError类属于com.googlecode.jsonrpc4j包,在下文中一共展示了JsonRpcError类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: childByText
import com.googlecode.jsonrpc4j.JsonRpcError; //导入依赖的package包/类
@JsonRpcErrors({@JsonRpcError(exception=UiObjectNotFoundException.class, code=ERROR_CODE_BASE-2)})
String childByText(Selector collection, Selector child, String text, boolean allowScrollSearch) throws UiObjectNotFoundException;
示例2: childByDescription
import com.googlecode.jsonrpc4j.JsonRpcError; //导入依赖的package包/类
@JsonRpcErrors({@JsonRpcError(exception=UiObjectNotFoundException.class, code=ERROR_CODE_BASE-2)})
String childByDescription(Selector collection, Selector child, String text, boolean allowScrollSearch) throws UiObjectNotFoundException;
示例3: testMethod
import com.googlecode.jsonrpc4j.JsonRpcError; //导入依赖的package包/类
@JsonRpcErrors({@JsonRpcError(exception = CustomTestException.class, code = 1234)})
Object testMethod();
示例4: drag
import com.googlecode.jsonrpc4j.JsonRpcError; //导入依赖的package包/类
/**
* Performs a swipe from one coordinate to another coordinate. You can control the smoothness and speed of the swipe by specifying the number of steps. Each step execution is throttled to 5 milliseconds per step, so for a 100 steps, the swipe will take around 0.5 seconds to complete.
* @param startX X-axis value for the starting coordinate
* @param startY Y-axis value for the starting coordinate
* @param endX X-axis value for the ending coordinate
* @param endY Y-axis value for the ending coordinate
* @param steps is the number of steps for the swipe action
* @return true if swipe is performed, false if the operation fails or the coordinates are invalid
* @throws NotImplementedException
*/
@JsonRpcErrors({@JsonRpcError(exception=NotImplementedException.class, code=ERROR_CODE_BASE-3)})
boolean drag(int startX, int startY, int endX, int endY, int steps) throws NotImplementedException;
示例5: takeScreenshot
import com.googlecode.jsonrpc4j.JsonRpcError; //导入依赖的package包/类
/**
* Take a screenshot of current window and store it as PNG The screenshot is adjusted per screen rotation
* @param filename where the PNG should be written to
* @param scale scale the screenshot down if needed; 1.0f for original size
* @param quality quality of the PNG compression; range: 0-100
* @return the file name of the screenshot. null if failed.
* @throws NotImplementedException
*/
@JsonRpcErrors({@JsonRpcError(exception=NotImplementedException.class, code=ERROR_CODE_BASE-3)})
String takeScreenshot(String filename, float scale, int quality) throws NotImplementedException;
示例6: freezeRotation
import com.googlecode.jsonrpc4j.JsonRpcError; //导入依赖的package包/类
/**
* Disables the sensors and freezes the device rotation at its current rotation state, or enable it.
* @param freeze true to freeze the rotation, false to unfreeze the rotation.
* @throws RemoteException
*/
@JsonRpcErrors({@JsonRpcError(exception=RemoteException.class, code=ERROR_CODE_BASE-1)})
void freezeRotation(boolean freeze) throws RemoteException;
示例7: setOrientation
import com.googlecode.jsonrpc4j.JsonRpcError; //导入依赖的package包/类
/**
* Simulates orienting the device to the left/right/natural and also freezes rotation by disabling the sensors.
* @param dir Left or l, Right or r, Natural or n, case insensitive
* @throws RemoteException
* @throws NotImplementedException
*/
@JsonRpcErrors({@JsonRpcError(exception=RemoteException.class, code=ERROR_CODE_BASE-1), @JsonRpcError(exception=NotImplementedException.class, code=ERROR_CODE_BASE-3)})
void setOrientation(String dir) throws RemoteException, NotImplementedException;
示例8: openNotification
import com.googlecode.jsonrpc4j.JsonRpcError; //导入依赖的package包/类
/**
* Opens the notification shade.
* @return true if successful, else return false
* @throws NotImplementedException
*/
@JsonRpcErrors({@JsonRpcError(exception=NotImplementedException.class, code=ERROR_CODE_BASE-3)})
boolean openNotification() throws NotImplementedException;
示例9: openQuickSettings
import com.googlecode.jsonrpc4j.JsonRpcError; //导入依赖的package包/类
/**
* Opens the Quick Settings shade.
* @return true if successful, else return false
* @throws NotImplementedException
*/
@JsonRpcErrors({@JsonRpcError(exception=NotImplementedException.class, code=ERROR_CODE_BASE-3)})
boolean openQuickSettings() throws NotImplementedException;
示例10: pressKey
import com.googlecode.jsonrpc4j.JsonRpcError; //导入依赖的package包/类
/**
* Simulates a short press using key name.
* @param key possible key name is home, back, left, right, up, down, center, menu, search, enter, delete(or del), recent(recent apps), volume_up, volume_down, volume_mute, camera, power
* @return true if successful, else return false
* @throws RemoteException
*/
@JsonRpcErrors({@JsonRpcError(exception=RemoteException.class, code=ERROR_CODE_BASE-1)})
boolean pressKey(String key) throws RemoteException;
示例11: wakeUp
import com.googlecode.jsonrpc4j.JsonRpcError; //导入依赖的package包/类
/**
* This method simulates pressing the power button if the screen is OFF else it does nothing if the screen is already ON. If the screen was OFF and it just got turned ON, this method will insert a 500ms delay to allow the device time to wake up and accept input.
* @throws RemoteException
*/
@JsonRpcErrors({@JsonRpcError(exception=RemoteException.class, code=ERROR_CODE_BASE-1)})
void wakeUp() throws RemoteException;
示例12: sleep
import com.googlecode.jsonrpc4j.JsonRpcError; //导入依赖的package包/类
/**
* This method simply presses the power button if the screen is ON else it does nothing if the screen is already OFF.
* @throws RemoteException
*/
@JsonRpcErrors({@JsonRpcError(exception=RemoteException.class, code=ERROR_CODE_BASE-1)})
void sleep() throws RemoteException;
示例13: isScreenOn
import com.googlecode.jsonrpc4j.JsonRpcError; //导入依赖的package包/类
/**
* Checks the power manager if the screen is ON.
* @return true if the screen is ON else false
* @throws RemoteException
*/
@JsonRpcErrors({@JsonRpcError(exception=RemoteException.class, code=ERROR_CODE_BASE-1)})
boolean isScreenOn() throws RemoteException;
示例14: clearTextField
import com.googlecode.jsonrpc4j.JsonRpcError; //导入依赖的package包/类
/**
* Clears the existing text contents in an editable field. The UiSelector of this object must reference a UI element that is editable. When you call this method, the method first sets focus at the start edge of the field. The method then simulates a long-press to select the existing text, and deletes the selected text. If a "Select-All" option is displayed, the method will automatically attempt to use it to ensure full text selection. Note that it is possible that not all the text in the field is selected; for example, if the text contains separators such as spaces, slashes, at symbol etc. Also, not all editable fields support the long-press functionality.
* @param obj the selector of the UiObject.
* @throws UiObjectNotFoundException
*/
@JsonRpcErrors({@JsonRpcError(exception=UiObjectNotFoundException.class, code=ERROR_CODE_BASE-2)})
void clearTextField(Selector obj) throws UiObjectNotFoundException;
示例15: getText
import com.googlecode.jsonrpc4j.JsonRpcError; //导入依赖的package包/类
/**
* Reads the text property of the UI element
* @param obj the selector of the UiObject.
* @return text value of the current node represented by this UiObject
* @throws UiObjectNotFoundException
*/
@JsonRpcErrors({@JsonRpcError(exception=UiObjectNotFoundException.class, code=ERROR_CODE_BASE-2)})
String getText(Selector obj) throws UiObjectNotFoundException;