Flutter Engine
The Flutter Engine
|
Functions | |
BuildOptions () | |
ProcessOptions (options) | |
ParseAndroidListSdkResult (text) | |
AndroidListSdk () | |
AndroidSdkFindPackage (packages, key) | |
EnsureSdkPackageInstalled (packages, key) | |
SdkPackagesForAbi (abi) | |
TargetForAbi (abi) | |
EnsureAndroidSdkPackagesInstalled (abi) | |
ParseAndroidListAvdResult (text) | |
AndroidListAvd () | |
FindAvd (avds, key) | |
CreateAvd (avdName, abi) | |
AvdExists (avdName) | |
EnsureAvdExists (avdName, abi) | |
StartEmulator (abi, avdName, pollFn) | |
ParseAndroidDevices (text) | |
GetAndroidDevices () | |
FilterOfflineDevices (devices) | |
GetOnlineAndroidDevices () | |
GetAndroidDeviceProperty (device, property) | |
GetAndroidDeviceAbis (device) | |
FindAndroidRunning (abi) | |
AddSdkToolsToPath () | |
FindAndroid (abi, bootstrap) | |
Main () | |
Variables | |
bool | DEBUG = False |
bool | VERBOSE = False |
Find an Android device with a given ABI. The name of the Android device is printed to stdout. Optionally configure and launch an emulator if there's no existing device for a given ABI. Will download and install Android SDK components as needed.
android_finder.AddSdkToolsToPath | ( | ) |
Definition at line 312 of file android_finder.py.
android_finder.AndroidListAvd | ( | ) |
Returns a list of available Android Virtual Devices.
Definition at line 194 of file android_finder.py.
android_finder.AndroidListSdk | ( | ) |
Definition at line 90 of file android_finder.py.
android_finder.AndroidSdkFindPackage | ( | packages, | |
key | |||
) |
Args: packages: list of (id-num, id-key, type, description). key: (id-key, type, description-prefix).
Definition at line 95 of file android_finder.py.
android_finder.AvdExists | ( | avdName | ) |
Definition at line 219 of file android_finder.py.
android_finder.BuildOptions | ( | ) |
Definition at line 26 of file android_finder.py.
android_finder.CreateAvd | ( | avdName, | |
abi | |||
) |
Definition at line 207 of file android_finder.py.
android_finder.EnsureAndroidSdkPackagesInstalled | ( | abi | ) |
Return true if at least one package was not already installed.
Definition at line 157 of file android_finder.py.
android_finder.EnsureAvdExists | ( | avdName, | |
abi | |||
) |
Definition at line 224 of file android_finder.py.
android_finder.EnsureSdkPackageInstalled | ( | packages, | |
key | |||
) |
Makes sure the package with a given key is installed. key is (id-key, type, description-prefix) Returns True if the package was not already installed.
Definition at line 110 of file android_finder.py.
android_finder.FilterOfflineDevices | ( | devices | ) |
Definition at line 278 of file android_finder.py.
android_finder.FindAndroid | ( | abi, | |
bootstrap | |||
) |
Definition at line 333 of file android_finder.py.
android_finder.FindAndroidRunning | ( | abi | ) |
Definition at line 305 of file android_finder.py.
android_finder.FindAvd | ( | avds, | |
key | |||
) |
Definition at line 200 of file android_finder.py.
android_finder.GetAndroidDeviceAbis | ( | device | ) |
Definition at line 296 of file android_finder.py.
android_finder.GetAndroidDeviceProperty | ( | device, | |
property | |||
) |
Definition at line 291 of file android_finder.py.
android_finder.GetAndroidDevices | ( | ) |
Definition at line 274 of file android_finder.py.
android_finder.GetOnlineAndroidDevices | ( | ) |
Definition at line 287 of file android_finder.py.
android_finder.Main | ( | ) |
Definition at line 362 of file android_finder.py.
android_finder.ParseAndroidDevices | ( | text | ) |
Return Dictionary [name] -> status
Definition at line 262 of file android_finder.py.
android_finder.ParseAndroidListAvdResult | ( | text | ) |
Parse the output of an 'android list avd' command. Return List of {Name: Path: Target: ABI: Skin: Sdcard:}
Definition at line 167 of file android_finder.py.
android_finder.ParseAndroidListSdkResult | ( | text | ) |
Parse the output of an 'android list sdk' command. Return list of (id-num, id-key, type, description).
Definition at line 67 of file android_finder.py.
android_finder.ProcessOptions | ( | options | ) |
Definition at line 56 of file android_finder.py.
android_finder.SdkPackagesForAbi | ( | abi | ) |
Definition at line 130 of file android_finder.py.
android_finder.StartEmulator | ( | abi, | |
avdName, | |||
pollFn | |||
) |
Start an emulator for a given abi and svdName. Echo the emulator's stderr and stdout output to our stderr. Call pollFn repeatedly until it returns False. Leave the emulator running when we return. Implementation note: Normally we would call the 'emulator' binary, which is a wrapper that launches the appropriate abi-specific emulator. But there is a bug that causes the emulator to exit immediately with a result code of -11 if run from a ssh shell or a No Machine shell. (And only if called from three levels of nested python scripts.) Calling the ABI-specific versions of the emulator directly works around this bug.
Definition at line 236 of file android_finder.py.
android_finder.TargetForAbi | ( | abi | ) |
Definition at line 151 of file android_finder.py.
bool android_finder.DEBUG = False |
Definition at line 22 of file android_finder.py.
bool android_finder.VERBOSE = False |
Definition at line 23 of file android_finder.py.