airtest.core.android.ime module

ensure_unicode(value)[源代码]

Decode UTF-8 values

参数:value – value to be decoded
返回:decoded valued
class CustomIme(adb, apk_path, service_name)[源代码]

基类:object

Input Methods Class Object

start()[源代码]

Enable input method

返回:None
end()[源代码]

Disable input method

返回:None
text(value)[源代码]
class YosemiteIme(adb)[源代码]

基类:airtest.core.android.ime.CustomIme

Yosemite Input Method Class Object

start()[源代码]

Enable input method

返回:None
text(value)[源代码]

Input text with Yosemite input method

参数:value – text to be inputted
返回:output form adb shell command
code(code)[源代码]

Sending editor action

参数:code – editor action code, e.g., 2 = IME_ACTION_GO, 3 = IME_ACTION_SEARCH Editor Action Code Ref: http://developer.android.com/reference/android/view/inputmethod/EditorInfo.html
返回:output form adb shell command