Home
last modified time | relevance | path

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

/tools/tradefederation/core/javatests/com/android/tradefed/cluster/
DClusterHostUtilTest.java43 private static final String DEVICE_SERIAL = "serial"; field in ClusterHostUtilTest
50 Assert.assertFalse(ClusterHostUtil.isLocalhostIpPort(DEVICE_SERIAL)); in testIsLocalhostIpPort()
59 Assert.assertFalse(ClusterHostUtil.isLocalhostIpPort(DEVICE_SERIAL)); in testIsLocalhostIpPort_hostname()
101 DEVICE_SERIAL, in testGetDefaultRunTarget()
118 DEVICE_SERIAL, in testGetDefaultRunTargetWithSameProductAndProductVariant()
135 DEVICE_SERIAL, in testSimpleConstantRunTargetMatchPattern()
152 DEVICE_SERIAL, in testDeviceTagRunTargetMatchPattern_simple()
161 deviceTag.put(DEVICE_SERIAL, "foo"); in testDeviceTagRunTargetMatchPattern_simple()
171 DEVICE_SERIAL, in testDeviceTagRunTargetMatchPattern_missingSerial()
189 DEVICE_SERIAL, in testInvalidRunTargetMetachPattern()
[all …]
DClusterCommandLauncherTest.java56 private static final String DEVICE_SERIAL = "device_serial"; field in ClusterCommandLauncherTest
89 Mockito.doReturn(DEVICE_SERIAL).when(mMockTestDevice).getSerialNumber(); in setUp()
155 .setEnvVariable("ANDROID_SERIALS", DEVICE_SERIAL + "," + DEVICE_SERIAL); in testRun()
173 DEVICE_SERIAL, in testRun()
175 DEVICE_SERIAL in testRun()
240 DEVICE_SERIAL, in testRun_withTFDeviceCount()
242 DEVICE_SERIAL in testRun_withTFDeviceCount()
314 DEVICE_SERIAL in testRun_withSetupScripts()
374 Mockito.eq(DEVICE_SERIAL)); in testRun_withUseSubprocessReporting()
414 Mockito.verify(mMockRunUtil).setEnvVariable("ANDROID_SERIALS", DEVICE_SERIAL); in testRun_withJavaOptions()
[all …]
DClusterCommandSchedulerTest.java122 private static final String DEVICE_SERIAL = "serial"; field in ClusterCommandSchedulerTest
124 new HashSet<String>(Arrays.asList(ClusterCommandSchedulerTest.DEVICE_SERIAL));
309 return createDevice(DEVICE_SERIAL, product, variant, state);
478 DEVICE_SERIAL,
598 when(mockTestDevice.getSerialNumber()).thenReturn(DEVICE_SERIAL);
599 when(mockTestDevice.getIDevice()).thenReturn(new StubDevice(DEVICE_SERIAL));
619 context.addAllocatedDevice(DEVICE_SERIAL, mockTestDevice);
682 when(mockTestDevice.getSerialNumber()).thenReturn(DEVICE_SERIAL);
683 when(mockTestDevice.getIDevice()).thenReturn(new StubDevice(DEVICE_SERIAL));
709 context.addAllocatedDevice(DEVICE_SERIAL, mockTestDevice);
[all …]
DClusterCommandConfigBuilderTest.java69 private static final String DEVICE_SERIAL = "serial"; field in ClusterCommandConfigBuilderTest
100 mCommand.setTargetDeviceSerials(List.of(DEVICE_SERIAL)); in setUp()
/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/
DRunHostScriptTargetPreparerTest.java62 private static final String DEVICE_SERIAL = "DEVICE_SERIAL"; field in RunHostScriptTargetPreparerTest
98 when(mTestInfo.getDevice().getSerialNumber()).thenReturn(DEVICE_SERIAL); in setUp()
102 mWorkDir = FileUtil.createTempDir(this.getClass().getSimpleName() + "_" + DEVICE_SERIAL); in setUp()
103 mScriptFile = File.createTempFile(DEVICE_SERIAL + ".script", ".sh", mWorkDir); in setUp()
122 "script-file", mScriptFile.getAbsolutePath().replace(DEVICE_SERIAL, "$SERIAL")); in testSetUp()
126 verify(mRunUtil).setEnvVariable("ANDROID_SERIAL", DEVICE_SERIAL); in testSetUp()
139 "work-dir", mWorkDir.getAbsolutePath().replace(DEVICE_SERIAL, "$SERIAL")); in testSetUp_workingDir()
DRunHostCommandTargetPreparerTest.java60 private static final String DEVICE_SERIAL = "123456"; field in RunHostCommandTargetPreparerTest
93 when(mTestInfo.getDevice().getSerialNumber()).thenReturn(DEVICE_SERIAL); in setUp()
107 verify(mRunUtil).runTimedCmd(eq(10L), eq("command"), eq("argument"), eq(DEVICE_SERIAL)); in testSetUp()
150 .runTimedCmd(anyLong(), eq("command"), eq("argument"), eq(DEVICE_SERIAL)); in testSetUp_flashingPermit()
172 verify(mRunUtil).runTimedCmd(eq(10L), eq("command"), eq("argument"), eq(DEVICE_SERIAL)); in testTearDown()
202 .runTimedCmd(anyLong(), eq("command"), eq("argument"), eq(DEVICE_SERIAL)); in testTearDown_flashingPermit()
219 eq(Arrays.asList("command", "argument", DEVICE_SERIAL)), eq(os)); in testBgCommand()
/tools/tradefederation/core/javatests/com/android/tradefed/device/
DDeviceSelectionOptionsTest.java47 private static final String DEVICE_SERIAL = "12345"; field in DeviceSelectionOptionsTest
89 when(mMockDevice.getSerialNumber()).thenReturn(DEVICE_SERIAL); in setUp()
103 assertFalse(options.getSerials(mMockDevice).contains(DEVICE_SERIAL)); in testGetSerials()
143 options.addSerial(DEVICE_SERIAL); in testGetSerialsDoesNotOverride()
148 assertTrue(options.getSerials(mMockDevice).contains(DEVICE_SERIAL)); in testGetSerialsDoesNotOverride()
163 options.addSerial(DEVICE_SERIAL); in testGetSerialsWithNoEnvValue()
167 assertTrue(options.getSerials(mMockDevice).contains(DEVICE_SERIAL)); in testGetSerialsWithNoEnvValue()
DDeviceManagerTest.java72 private static final String DEVICE_SERIAL = "serial"; field in DeviceManagerTest
170 when(mMockIDevice.getSerialNumber()).thenReturn(DEVICE_SERIAL); in setUp()
171 when(mMockStateMonitor.getSerialNumber()).thenReturn(DEVICE_SERIAL); in setUp()
283 mDeviceSelections.addSerial(DEVICE_SERIAL); in testAllocateDevice_match()
298 mDeviceSelections.addSerial(DEVICE_SERIAL); in testAllocateDevice_match_temporary()
440 assertNotNull(manager.forceAllocateDevice(DEVICE_SERIAL)); in testForceAllocateDevice_available()
454 assertNull(manager.forceAllocateDevice(DEVICE_SERIAL)); in testForceAllocateDevice_alreadyAllocated()
505 when(newMockDevice.getSerialNumber()).thenReturn(DEVICE_SERIAL); in testSetIDevice()
615 when(newDevice.getSerialNumber()).thenReturn(DEVICE_SERIAL); in testSetState_offline()
/tools/tradefederation/contrib/tests/src/com/android/uicd/tests/
DUiConductorTestTest.java79 private static final String DEVICE_SERIAL = "SERIAL"; field in UiConductorTestTest
113 when(mDevice.getSerialNumber()).thenReturn(DEVICE_SERIAL); in setUp()
144 eq(DEVICES_OPTION), eq(DEVICE_SERIAL)); in testRun()
254 eq(DEVICES_OPTION), eq(DEVICE_SERIAL)); in testRun_playMode()
268 eq(DEVICES_OPTION), eq(DEVICE_SERIAL), in testRun_globalVariables()
294 context.addDeviceBuildInfo(DEVICE_SERIAL, new BuildInfo()); in testRun_withPreviousResults()
/tools/security/gdb/
Dparameters_extract.py11 DEVICE_SERIAL = os.environ.get('GDBSCRIPT_DEVICE_SERIAL', None) variable
103 if DEVICE_SERIAL:
104 os.system('adb -s "{}" pull /data/local/tmp/init.log'.format(DEVICE_SERIAL))
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/mobly/
DMoblyBinaryHostTestTest.java81 private static final String DEVICE_SERIAL = "X123SER"; field in MoblyBinaryHostTestTest
502 Mockito.doReturn(DEVICE_SERIAL).when(mMockDevice).getSerialNumber(); in testBuildCommandLineArrayWithOutConfig()
513 "--device_serial=" + DEVICE_SERIAL, in testBuildCommandLineArrayWithOutConfig()
1380 Mockito.doReturn(DEVICE_SERIAL).when(mMockDevice).getSerialNumber(); in testBuildCommandLineArrayWithConfig()
1391 "--device_serial=" + DEVICE_SERIAL, in testBuildCommandLineArrayWithConfig()
1400 Mockito.doReturn(DEVICE_SERIAL).when(mMockDevice).getSerialNumber(); in testBuildCommandLineArrayWithTests()
1411 "--device_serial=" + DEVICE_SERIAL, in testBuildCommandLineArrayWithTests()
1434 Mockito.doReturn(DEVICE_SERIAL).when(mMockDevice).getSerialNumber(); in testUpdateConfigFile()
1465 assertThat(updatedConfigString).contains(DEVICE_SERIAL); in testUpdateConfigFile()
1476 Mockito.doReturn(DEVICE_SERIAL).when(mMockDevice).getSerialNumber(); in testUpdateConfigFileMultidevice()
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/util/sl4a/
DSl4aClientTest.java45 private static final String DEVICE_SERIAL = "54321"; field in Sl4aClientTest
121 when(mMockDevice.getSerialNumber()).thenReturn(DEVICE_SERIAL); in setupStartExpectation()
/tools/acloud/internal/
Dconstants.py115 DEVICE_SERIAL = "device_serial" variable
/tools/acloud/reconnect/
Dreconnect_test.py66 constants.DEVICE_SERIAL: "127.0.0.1:8686"
109 constants.DEVICE_SERIAL: "127.0.0.1:22222"
Dreconnect.py199 device_dict[constants.DEVICE_SERIAL] = (
/tools/acloud/public/
Dreport.py212 device[constants.DEVICE_SERIAL] = device_serial
/tools/acloud/public/actions/
Dcommon_operations.py310 device_dict[constants.DEVICE_SERIAL] = (
/tools/acloud/internal/lib/
Dutils.py1197 adb_serial = device.get(constants.DEVICE_SERIAL)