Home
last modified time | relevance | path

Searched refs:DeviceState (Results 1 – 18 of 18) sorted by relevance

/tools/test/connectivity/acts/framework/acts/test_utils/instrumentation/device/command/adb_commands/
Dcommon.py24 DeviceState
39 DeviceState(
48 DeviceState('svc data', 'enable', 'disable')
57 DeviceState('svc wifi', 'enable', 'disable')
61 ethernet = DeviceState('ifconfig eth0', 'up', 'down')
63 bluetooth = DeviceState('service call bluetooth_manager', '6', '8')
65 nfc = DeviceState('svc nfc', 'enable', 'disable')
79 screen_always_on = DeviceState('svc power stayon', 'true', 'false')
Dgoog.py22 import DeviceState
35 DeviceState('content insert --uri content://com.google.settings/'
38 DeviceState('content insert --uri content://com.google.settings/'
/tools/tradefederation/core/remote/src/com/android/tradefed/device/
DTestDeviceState.java18 import com.android.ddmlib.IDevice.DeviceState;
39 DeviceState getDdmsState() { in getDdmsState()
42 return DeviceState.ONLINE; in getDdmsState()
44 return DeviceState.RECOVERY; in getDdmsState()
46 return DeviceState.SIDELOAD; in getDdmsState()
55 static TestDeviceState getStateByDdms(DeviceState ddmsState) { in getStateByDdms()
/tools/test/connectivity/acts/framework/acts/test_utils/instrumentation/device/command/
Dadb_command_types.py21 class DeviceState(object): class
58 class DeviceSetprop(DeviceState):
72 class DeviceSetting(DeviceState):
88 class DeviceGServices(DeviceState):
/tools/test/connectivity/acts/framework/tests/test_utils/instrumentation/device/command/
Dadb_command_types_test.py28 DeviceState
40 device_state = DeviceState(base_cmd)
50 device_state = DeviceState(base_cmd)
58 device_binary_state = DeviceState('', on_cmd, off_cmd)
144 DeviceState('svc test_svc', 'enable', 'disable')
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DDeviceStateMonitorTest.java22 import com.android.ddmlib.IDevice.DeviceState;
53 EasyMock.expect(mMockDevice.getState()).andReturn(DeviceState.ONLINE); in setUp()
99 EasyMock.expect(mockDevice.getState()).andReturn(DeviceState.ONLINE); in testIsAdbTcp_usb()
111 EasyMock.expect(mockDevice.getState()).andReturn(DeviceState.ONLINE); in testIsAdbTcp_tcp()
162 EasyMock.expect(mMockDevice.getState()).andReturn(DeviceState.ONLINE); in testWaitForShellAvailable()
189 EasyMock.expect(mMockDevice.getState()).andReturn(DeviceState.ONLINE); in testWaitForShell_becomeAvailable()
230 EasyMock.expect(mMockDevice.getState()).andReturn(DeviceState.ONLINE); in testWaitForShell_timeout()
335 EasyMock.expect(mMockDevice.getState()).andReturn(DeviceState.ONLINE); in testWaitForPmResponsive()
363 EasyMock.expect(mMockDevice.getState()).andReturn(DeviceState.ONLINE); in testWaitForPm_becomeResponsive()
405 EasyMock.expect(mMockDevice.getState()).andReturn(DeviceState.ONLINE); in testWaitForPm_timeout()
[all …]
DManagedTestDeviceFactoryTest.java22 import com.android.ddmlib.IDevice.DeviceState;
93 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE); in testNestedDevice()
115 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE); in testFrameworkAvailable()
144 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE); in testFrameworkNotAvailable()
180 EasyMock.expect(mMockIDevice.getState()).andStubReturn(DeviceState.ONLINE); in testCheckFramework_emptyReturns()
DDeviceManagerTest.java28 import com.android.ddmlib.IDevice.DeviceState;
590 EasyMock.expect(newMockDevice.getState()).andReturn(DeviceState.ONLINE); in testSetIDevice()
621 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE); in testInit_excludeDevice()
648 EasyMock.expect(excludedDevice.getState()).andStubReturn(DeviceState.ONLINE); in testInit_includeDevice()
649 EasyMock.expect(mMockIDevice.getState()).andStubReturn(DeviceState.ONLINE); in testInit_includeDevice()
703 EasyMock.expect(newDevice.getState()).andReturn(DeviceState.OFFLINE).times(2); in testSetState_offline()
936 EasyMock.expect(iDevice.getState()).andReturn(DeviceState.ONLINE); in setCheckAvailableDeviceExpectations()
988 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE); in testFreeDevice_unavailable()
1049 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE); in testFreeDevice_recovery()
1113 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE); in testFreeDevice_unknown()
[all …]
DTestDeviceTest.java24 import com.android.ddmlib.IDevice.DeviceState;
400 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE).times(2); in testGetProductType_adbFail()
/tools/tradefederation/core/src/com/android/tradefed/device/recovery/
DBatteryUnavailableDeviceRecovery.java18 import com.android.ddmlib.IDevice.DeviceState;
31 if (DeviceState.OFFLINE.equals(device.getIDevice().getState())) { in shouldSkip()
/tools/tradefederation/core/remote/src/com/android/tradefed/command/remote/
DDeviceDescriptor.java20 import com.android.ddmlib.IDevice.DeviceState;
33 private final DeviceState mDeviceState; // Ddmlib updated state.
120 DeviceState deviceState, in DeviceDescriptor()
156 DeviceState deviceState, in DeviceDescriptor()
245 public DeviceState getDeviceState() { in getDeviceState()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/host/
DPrettyTestEventLogger.java18 import com.android.ddmlib.IDevice.DeviceState;
86 if (!DeviceState.ONLINE.equals(device.getIDevice().getState())) { in logOnAllDevices()
/tools/tradefederation/core/src/com/android/tradefed/device/
DManagedTestDeviceFactory.java21 import com.android.ddmlib.IDevice.DeviceState;
159 if (!DeviceState.ONLINE.equals(idevice.getState())) { in checkFrameworkSupport()
/tools/tradefederation/core/tests/src/com/android/tradefed/cluster/
DClusterHostUtilTest.java19 import com.android.ddmlib.IDevice.DeviceState;
200 DeviceState.ONLINE, in testSupportedRunTargetMatchPattern()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/cloud/
DRemoteAndroidVirtualDeviceTest.java27 import com.android.ddmlib.IDevice.DeviceState;
283 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE); in testPreInvocationSetup()
312 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.OFFLINE).times(2); in testPreInvocationSetup_fails()
531 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE).times(2); in testDeviceNotStoreShutdownState()
634 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE); in testDevice_skipTearDown()
720 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.OFFLINE).times(2); in testDeviceBoot_offline()
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/
DStubDevice.java203 public DeviceState getState() { in getState()
204 return DeviceState.OFFLINE; in getState()
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/
DRemoteAndroidVirtualDevice.java19 import com.android.ddmlib.IDevice.DeviceState;
129 if (!DeviceState.ONLINE.equals(getIDevice().getState())) { in preInvocationSetup()
/tools/tradefederation/core/tests/res/testdata/
Dtradefed-prebuilt-cts-8.0_r21.jarMETA-INF/ META-INF/MANIFEST.MF jline/ jline/CompletionHandler.class CompletionHandler ...