Home
last modified time | relevance | path

Searched defs:device (Results 1 – 25 of 300) sorted by relevance

12345678910>>...12

/tools/tradefederation/core/src/com/android/tradefed/util/
DBluetoothUtils.java71 public static String runBluetoothInstrumentation(ITestDevice device, String command) in runBluetoothInstrumentation()
81 public static boolean runBluetoothInstrumentationWithRetry(ITestDevice device, String command) in runBluetoothInstrumentationWithRetry()
98 public static boolean unpairWithRetry(ITestDevice device) in unpairWithRetry()
110 public static String getBluetoothMac(ITestDevice device) throws DeviceNotAvailableException { in getBluetoothMac()
128 public static boolean enable(ITestDevice device) in enable()
140 public static boolean disable(ITestDevice device) in disable()
152 public static Set<String> getBondedDevices(ITestDevice device) in getBondedDevices()
176 private static boolean isGoldAndAbove(ITestDevice device) throws DeviceNotAvailableException { in isGoldAndAbove()
192 public static boolean enableBtsnoopLogging(ITestDevice device) in enableBtsnoopLogging()
211 public static boolean enableBtsnoopLogging(ITestDevice device, File sl4aApkFile) in enableBtsnoopLogging()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/cluster/
DClusterHostUtilTest.java84 DeviceDescriptor device = in testGetDefaultRunTarget() local
101 DeviceDescriptor device = in testGetDefaultRunTargetWithSameProductAndProductVariant() local
118 DeviceDescriptor device = in testSimpleConstantRunTargetMatchPattern() local
135 DeviceDescriptor device = in testDeviceTagRunTargetMatchPattern_simple() local
154 DeviceDescriptor device = in testDeviceTagRunTargetMatchPattern_missingSerial() local
172 DeviceDescriptor device = in testInvalidRunTargetMetachPattern() local
196 DeviceDescriptor device = in testSupportedRunTargetMatchPattern() local
223 DeviceDescriptor device = in testSupportedRunTargetMatchPattern_unknownProperty() local
246 DeviceDescriptor device = in testSupportedRunTargetMatchPattern_productAndStub() local
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DFastbootDeviceFlasher.java142 public void flash(ITestDevice device, IDeviceBuildInfo deviceBuild) throws TargetSetupError, in flash()
192 protected void preFlashSetup(ITestDevice device, IDeviceBuildInfo deviceBuild) in preFlashSetup()
203 protected void handleUserDataFlashing(ITestDevice device, IDeviceBuildInfo deviceBuild) in handleUserDataFlashing()
222 protected void flashPartition(ITestDevice device, File imgFile, String partition) in flashPartition()
237 protected void wipePartition(ITestDevice device, String partition) in wipePartition()
251 protected boolean hasPartition(ITestDevice device, String partition) in hasPartition()
273 protected void downloadFlashingResources(ITestDevice device, IDeviceBuildInfo localBuild) in downloadFlashingResources()
324 ITestDevice device, IFlashingResourcesParser resourceParser, String deviceProductType) in verifyRequiredBoards()
386 protected boolean checkAndFlashBootloader(ITestDevice device, IDeviceBuildInfo deviceBuild) in checkAndFlashBootloader()
408 protected void flashBootloader(ITestDevice device, File bootloaderImageFile) in flashBootloader()
[all …]
DCreateUserPreparer.java48 ITestDevice device = testInfo.getDevice(); in setUp() local
84 ITestDevice device = testInfo.getDevice(); in tearDown() local
93 private int createUser(ITestDevice device) in createUser()
111 private void cleanupOldUsersIfLimitReached(ITestDevice device) in cleanupOldUsersIfLimitReached()
136 private Integer findExistingTradefedUser(ITestDevice device) in findExistingTradefedUser()
DDeviceUpdateTargetPreparer.java60 ITestDevice device = testInfo.getDevice(); in setUp() local
133 protected abstract void preUpdateActions(File deviceUpdateImage, ITestDevice device) in preUpdateActions()
143 protected abstract void performDeviceUpdate(File deviceUpdateImage, ITestDevice device) in performDeviceUpdate()
154 protected abstract void postUpdateActions(File deviceUpdateImage, ITestDevice device) in postUpdateActions()
DGkiDeviceFlashPreparer.java82 ITestDevice device = testInfo.getDevice(); in setUp() local
144 private void flashGki(ITestDevice device, IDeviceBuildInfo buildInfo) in flashGki()
186 public void validateGkiBootImg(ITestDevice device, IDeviceBuildInfo buildInfo) in validateGkiBootImg()
202 protected void validateGkiBootImg(ITestDevice device, IDeviceBuildInfo buildInfo, File tmpDir) in validateGkiBootImg()
257 private void executeHostCommand(ITestDevice device, final String command) in executeHostCommand()
299 ITestDevice device, String requestedFileName, File sourceFile, File tmpDir) in getRequestedFile()
336 private String executeFastbootCmd(ITestDevice device, String... cmdArgs) in executeFastbootCmd()
DGsiDeviceFlashPreparer.java101 ITestDevice device = testInfo.getDevice(); in setUp() local
163 private void flashGsi(ITestDevice device, IDeviceBuildInfo buildInfo) in flashGsi()
231 private void validateGsiImg(ITestDevice device, IDeviceBuildInfo buildInfo, File tmpDir) in validateGsiImg()
264 private String getCurrentSlot(ITestDevice device) in getCurrentSlot()
293 ITestDevice device, String requestedFileName, File sourceFile, File tmpDir) in getRequestedFile()
330 private String executeFastbootCmd(ITestDevice device, String... cmdArgs) in executeFastbootCmd()
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/
DDeviceWiper.java39 ITestDevice device = testInfo.getDevice(); in setUp() local
51 private void doFormat(ITestDevice device) throws DeviceNotAvailableException, TargetSetupError { in doFormat()
60 private void doErase(ITestDevice device) throws DeviceNotAvailableException, TargetSetupError { in doErase()
65 private void performFastbootOp(ITestDevice device, String op, String partition) in performFastbootOp()
DAppSetup.java91 public void setUp(ITestDevice device, IBuildInfo buildInfo) throws TargetSetupError, in setUp()
149 addPackageNameToUninstall(apkFile.getFile(), device); in setUp() local
173 private void addPackageNameToUninstall(File apkFile, ITestDevice device) in addPackageNameToUninstall()
199 public void tearDown(ITestDevice device, IBuildInfo buildInfo, Throwable e) in tearDown()
232 private boolean uninstallAllApps(ITestDevice device) throws DeviceNotAvailableException { in uninstallAllApps()
253 … private Set<String> getAllAppsToUninstall(ITestDevice device) throws DeviceNotAvailableException { in getAllAppsToUninstall()
DAllTestAppsInstallSetup.java78 public void setUp(ITestDevice device, IBuildInfo buildInfo) throws TargetSetupError, in setUp()
109 void installApksRecursively(File directory, ITestDevice device) in installApksRecursively()
139 void installApk(File appFile, ITestDevice device) throws TargetSetupError, in installApk()
176 void resolveAbi(ITestDevice device) throws DeviceNotAvailableException { in resolveAbi()
205 public void tearDown(ITestDevice device, IBuildInfo buildInfo, Throwable e) in tearDown()
DRestartSystemServerTargetPreparer.java36 private void restartSystemServer(ITestDevice device) throws DeviceNotAvailableException { in restartSystemServer()
44 public void setUp(ITestDevice device, IBuildInfo buildInfo) in setUp()
53 public void tearDown(ITestDevice device, IBuildInfo buildInfo, Throwable e) in tearDown()
DInstallAllTestZipAppsSetup.java90 public void setUp(ITestDevice device, IBuildInfo buildInfo) in setUp()
127 File getZipFile(ITestDevice device, IBuildInfo buildInfo) throws TargetSetupError { in getZipFile()
142 void installApksRecursively(File directory, ITestDevice device) in installApksRecursively()
189 void installApk(File appFile, ITestDevice device) in installApk()
219 void addApkToInstalledList(File appFile, ITestDevice device) throws TargetSetupError { in addApkToInstalledList()
244 public void tearDown(ITestDevice device, IBuildInfo buildInfo, Throwable e) in tearDown()
DPerfettoPreparer.java50 public void setUp(ITestDevice device, IBuildInfo buildInfo) in setUp()
68 private void fail(String message, Throwable cause, ITestDevice device) throws TargetSetupError { in fail()
83 public void tearDown(ITestDevice device, IBuildInfo buildInfo, Throwable e) in tearDown()
DCdmaDeviceFlasher.java73 public void flash(ITestDevice device, IDeviceBuildInfo deviceBuild) throws TargetSetupError, in flash()
122 protected void flashBaseband(ITestDevice device, File basebandImageFile) in flashBaseband()
131 private void flashNamedPartition(ITestDevice device, File dir, String partition) in flashNamedPartition()
153 protected void flashSystem(ITestDevice device, IDeviceBuildInfo deviceBuild) in flashSystem()
/tools/tradefederation/core/test_framework/com/android/tradefed/util/statsd/
DMetricUtil.java53 public static List<EventMetricData> getEventMetricData(ITestDevice device, long configId) in getEventMetricData()
78 public static InputStreamSource getReportByteStream(ITestDevice device, long configId) in getReportByteStream()
84 public static StatsdStatsReport getStatsdMetadata(ITestDevice device) in getStatsdMetadata()
92 private static ConfigMetricsReportList getReportList(ITestDevice device, long configId) in getReportList()
102 private static byte[] getReportByteArray(ITestDevice device, long configId) in getReportByteArray()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DAbiFormatterTest.java51 ITestDevice device = EasyMock.createMock(ITestDevice.class); in testGetDefaultAbi() local
74 ITestDevice device = EasyMock.createMock(ITestDevice.class); in testGetSupportedAbis() local
100 ITestDevice device = EasyMock.createMock(ITestDevice.class); in testGetSupportedAbis_null() local
/tools/tradefederation/core/src/com/android/tradefed/device/
DIDeviceSelection.java37 public Collection<String> getSerials(IDevice device); in getSerials()
96 public String getDeviceProductType(IDevice device); in getDeviceProductType()
104 public String getDeviceProductVariant(IDevice device); in getDeviceProductVariant()
112 public Integer getBatteryLevel(IDevice device); in getBatteryLevel()
/tools/tradefederation/core/tests/src/com/android/tradefed/command/remote/
DRemoteManagerFuncTest.java75 ITestDevice device = EasyMock.createMock(ITestDevice.class); in testAllocateFree() local
133 ITestDevice device = EasyMock.createMock(ITestDevice.class); in testAllocateClose() local
157 ITestDevice device = EasyMock.createMock(ITestDevice.class); in testAllocateFreeAll() local
251 ITestDevice device = EasyMock.createMock(ITestDevice.class); in testExecCommand() local
277 final ITestDevice device = EasyMock.createMock(ITestDevice.class); in testConsecutiveExecCommand() local
408 ITestDevice device = EasyMock.createMock(ITestDevice.class); in testGetLastCommandResult_noActiveCommand() local
433 ITestDevice device = EasyMock.createMock(ITestDevice.class); in testGetLastCommandResult_executing() local
464 final ITestDevice device = EasyMock.createMock(ITestDevice.class); in testGetLastCommandResult_notAvail() local
/tools/tradefederation/core/src/com/android/tradefed/device/battery/
DIBatteryInfo.java34 public void enableCharging(ITestDevice device) throws DeviceNotAvailableException; in enableCharging()
37 public void disableCharging(ITestDevice device) throws DeviceNotAvailableException; in disableCharging()
40 public BatteryState checkBatteryState(ITestDevice device) throws DeviceNotAvailableException; in checkBatteryState()
/tools/tradefederation/core/src/com/android/tradefed/suite/checker/
DEnforcedSeLinuxChecker.java36 public StatusCheckerResult postExecutionCheck(ITestDevice device) in postExecutionCheck()
51 private boolean isEnforced(ITestDevice device) throws DeviceNotAvailableException { in isEnforced()
59 private void setEnforced(ITestDevice device, boolean enforced) in setEnforced()
DISystemStatusChecker.java48 public default StatusCheckerResult preExecutionCheck(ITestDevice device) in preExecutionCheck()
62 public default StatusCheckerResult postExecutionCheck(ITestDevice device) in postExecutionCheck()
DSystemServerFileDescriptorChecker.java34 public StatusCheckerResult preExecutionCheck(ITestDevice device) in preExecutionCheck()
45 public StatusCheckerResult postExecutionCheck(ITestDevice device) in postExecutionCheck()
73 private static Integer getIntegerFromCommand(ITestDevice device, String command) in getIntegerFromCommand()
/tools/test/connectivity/acts/framework/acts/test_utils/net/
Dui_utils.py62 def get_screen_dump_xml(device): argument
144 def wait_and_get_xml_node(device, timeout, child=None, sibling=None, **kwargs): argument
191 def has_element(device, **kwargs): argument
209 def get_element_attributes(device, **kwargs): argument
224 def wait_and_click(device, duration_ms=None, **kwargs): argument
/tools/tradefederation/core/src/com/android/tradefed/invoker/shard/token/
DTelephonyTokenProvider.java38 public boolean hasToken(ITestDevice device, TokenProperty token) { in hasToken()
98 SimCardInformation getSimInfo(ITestDevice device) throws DeviceNotAvailableException { in getSimInfo()
102 private List<String> getOptionalDualSimProperty(ITestDevice device, String property) in getOptionalDualSimProperty()
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/companion/
DCompanionDeviceTracker.java61 public ITestDevice allocateCompanionDevice(ITestDevice device, DeviceSelectionOptions opt) { in allocateCompanionDevice()
80 public void freeCompanionDevice(ITestDevice device) { in freeCompanionDevice()
101 public ITestDevice getCompanionDevice(ITestDevice device) { in getCompanionDevice()

12345678910>>...12