Home
last modified time | relevance | path

Searched refs:getIDevice (Results 1 – 25 of 131) sorted by relevance

123456

/tools/tradefederation/core/javatests/com/android/tradefed/testtype/suite/module/
DShippingApiLevelModuleControllerTest.java74 when(mMockDevice.getIDevice()).thenReturn(mMockIDevice); in testMinApiLevelHigherThanProductFirstApiLevel()
90 when(mMockDevice.getIDevice()).thenReturn(mMockIDevice); in testMinApiLevelHigherThanBoardFirstApiLevel()
103 when(mMockDevice.getIDevice()).thenReturn(mMockIDevice); in testBoardApiLevelsNotFound()
118 when(mMockDevice.getIDevice()).thenReturn(mMockIDevice); in testApiLevelsNotFound()
132 when(mMockDevice.getIDevice()).thenReturn(mMockIDevice); in testVsrMinApiLevelHigherThanBoardFirstApiLevel()
148 when(mMockDevice.getIDevice()).thenReturn(mMockIDevice); in testVsrBoardApiLevelsNotFound()
170 when(mMockDevice.getIDevice()).thenReturn(mMockIDevice); in testMinApiLevelHigherThanBoardFirstApiLevel2()
189 when(mMockDevice.getIDevice()).thenReturn(mMockIDevice); in testMinApiLevelEqualToBoardApiLevel()
205 when(mMockDevice.getIDevice()).thenReturn(mMockIDevice); in testMinApiLevelEqualToBoardFirstApiLevel()
227 when(mMockDevice.getIDevice()).thenReturn(mMockIDevice); in testMinApiLevelLessThanBoardFirstApiLevel()
[all …]
DKernelTestModuleControllerTest.java60 Mockito.when(mMockDevice.getIDevice()).thenReturn(mMockIDevice); in testModuleAbiMatchesArch()
72 Mockito.when(mMockDevice.getIDevice()).thenReturn(mMockIDevice); in testModuleAbiMatchesOneOfArch()
85 Mockito.when(mMockDevice.getIDevice()).thenReturn(mMockIDevice); in testModuleAbiMismatchesArch()
99 Mockito.when(mMockDevice.getIDevice()).thenReturn(mMockIDevice); in testDeviceWithLowMemAndIsLowMemFlagTrue()
112 Mockito.when(mMockDevice.getIDevice()).thenReturn(mMockIDevice); in testDeviceWithLowMemButIsLowMemFalse()
125 Mockito.when(mMockDevice.getIDevice()).thenReturn(mMockIDevice); in testDeviceNotLowMemButIsLowMemFlagTrue()
138 Mockito.when(mMockDevice.getIDevice()).thenReturn(mMockIDevice); in testDeviceWithHwasanAndIsHwasanFlagTrue()
151 Mockito.when(mMockDevice.getIDevice()).thenReturn(mMockIDevice); in testDeviceWithHwasanButIsHwasanFlagFalse()
164 Mockito.when(mMockDevice.getIDevice()).thenReturn(mMockIDevice); in testDeviceNotHwasanButIsHwasanFlagTrue()
DNativeBridgeModuleControllerTest.java60 when(mMockDevice.getIDevice()).thenReturn(new StubDevice("serial")); in testStubDevice()
68 when(mMockDevice.getIDevice()).thenReturn(mMockIDevice); in testNoBridgeSupport()
81 when(mMockDevice.getIDevice()).thenReturn(mMockIDevice); in testBridgeSupport()
96 when(mMockDevice.getIDevice()).thenReturn(mMockIDevice); in testBridgeSupport_differentBitness()
110 when(mMockDevice.getIDevice()).thenReturn(mMockIDevice); in testBridgeSupport_differentArch()
DDeviceFeatureModuleControllerTest.java64 when(mMockDevice.getIDevice()).thenReturn(mMockIDevice); in testDeviceHasRequiredFeature()
76 when(mMockDevice.getIDevice()).thenReturn(mMockIDevice); in testDeviceHasNoRequiredFeature()
88 when(mMockDevice.getIDevice()).thenReturn(mMockIDevice); in testDeviceHasForbiddenFeature()
100 when(mMockDevice.getIDevice()).thenReturn(mMockIDevice); in testDeviceHasNoForbiddenFeature()
DMinApiLevelModuleControllerTest.java65 when(mMockDevice.getIDevice()).thenReturn(mMockIDevice); in testDeviceApiLevelLowerThanMinApiLevel()
79 when(mMockDevice.getIDevice()).thenReturn(mMockIDevice); in testDeviceApiLevelHigherThanMinApiLevel()
93 when(mMockDevice.getIDevice()).thenReturn(mMockIDevice); in testVndkVersionHasStringCodeName()
107 when(mMockDevice.getIDevice()).thenReturn(mMockIDevice); in testDeviceApiLevelNotFound()
DMaxSdkModuleControllerTest.java65 when(mMockDevice.getIDevice()).thenReturn(mMockIDevice); in testDeviceApiLevelHigherThanMaxSdkLevel()
77 when(mMockDevice.getIDevice()).thenReturn(mMockIDevice); in testDeviceApiLevelLowerThanMaxSdkLevel()
89 when(mMockDevice.getIDevice()).thenReturn(mMockIDevice); in testDeviceApiLevelEqualsMaxSdkLevel()
101 when(mMockDevice.getIDevice()).thenReturn(mMockIDevice); in testDeviceApiLevelNotFound()
DCarModuleControllerTest.java63 when(mMockDevice.getIDevice()).thenReturn(new StubDevice("serial")); in testStubDevice()
71 when(mMockDevice.getIDevice()).thenReturn(mMockIDevice); in testNotAutomotive()
80 when(mMockDevice.getIDevice()).thenReturn(mMockIDevice); in testAutomotive()
DMainlineTestModuleControllerTest.java73 when(mMockDevice.getIDevice()).thenReturn(mMockIDevice); in testModuleExistsRun()
87 when(mMockDevice.getIDevice()).thenReturn(mMockIDevice); in testGoModuleExistsRun()
102 when(mMockDevice.getIDevice()).thenReturn(mMockIDevice); in testModuleNotInstalledTestRun()
/tools/tradefederation/core/src/com/android/tradefed/device/
DNativeDeviceStateMonitor.java133 return getIDevice(); in waitForDeviceOnline()
149 return getIDevice(); in waitForDeviceInRecovery()
165 protected IDevice getIDevice() { in getIDevice() method in NativeDeviceStateMonitor
176 return getIDevice().getSerialNumber(); in getSerialNumber()
222 getIDevice() in waitForDeviceShell()
318 getIDevice() in waitForBootComplete()
425 getIDevice() in waitForStoreMount()
429 getIDevice() in waitForStoreMount()
433 getIDevice() in waitForStoreMount()
472 String mountPoint = getIDevice().getMountPoint(mountName); in getMountPoint()
[all …]
DBackgroundDeviceAction.java102 .getIDevice() in run()
154 if ((mTestDevice.getIDevice() instanceof StubDevice) in blockUntilOnlineNoThrow()
/tools/tradefederation/core/javatests/com/android/tradefed/build/
DBootstrapBuildProviderTest.java65 when(mMockDevice.getIDevice()).thenReturn(mock(IDevice.class)); in testGetBuild()
86 when(mMockDevice.getIDevice()).thenReturn(mock(IDevice.class)); in testGetBuild_add_extra_file()
117 when(mMockDevice.getIDevice()).thenReturn(new StubDevice("serial")); in testGetBuild_stubDevice()
137 when(mMockDevice.getIDevice()).thenReturn(mock(IDevice.class)); in testCleanup_withExistingTestsDir()
160 when(mMockDevice.getIDevice()).thenReturn(mock(IDevice.class)); in testCleanup_withTestsDirIsNull()
179 when(mMockDevice.getIDevice()).thenReturn(mock(IDevice.class)); in testCleanup_withTestsDirIsNotDir()
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/
DCompileBootImageWithSpeedTargetPreparer.java50 if (device.getIDevice() instanceof StubDevice) { in setUp()
68 if (device.getIDevice() instanceof StubDevice) { in tearDown()
DRootTargetPreparer.java55 if (device.getIDevice() instanceof StubDevice) { in setUp()
70 if (device.getIDevice() instanceof StubDevice) { in tearDown()
/tools/tradefederation/core/remote/src/com/android/tradefed/command/remote/
DDeviceDescriptor.java229 d.getIDevice()); in DeviceDescriptor()
254 d.getIDevice()); in DeviceDescriptor()
279 d.getIDevice()); in DeviceDescriptor()
362 private IDevice getIDevice() { in getIDevice() method in DeviceDescriptor
/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/
DRunCommandTargetPreparerTest.java222 when(mMockDevice.getIDevice()).thenReturn(mMockIDevice); in testBgCmd()
249 verify(mMockDevice, atLeastOnce()).getIDevice(); in testBgCmd()
276 when(mMockDevice.getIDevice()).thenReturn(mMockIDevice); in testBgCmd_withTestUserToken_propertyNotSet()
303 verify(mMockDevice, atLeastOnce()).getIDevice(); in testBgCmd_withTestUserToken_propertyNotSet()
330 when(mMockDevice.getIDevice()).thenReturn(mMockIDevice); in testBgCmd_withTestUserToken()
352 verify(mMockDevice, atLeastOnce()).getIDevice(); in testBgCmd_withTestUserToken()
/tools/tradefederation/core/src/com/android/tradefed/device/metric/
DEmulatorMemoryCpuCapturer.java46 managedTestDevice.getIDevice().isEmulator(), in EmulatorMemoryCpuCapturer()
49 managedTestDevice.getIDevice().getSerialNumber())); in EmulatorMemoryCpuCapturer()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/host/
DPrettyTestEventLogger.java83 if (device.getIDevice() instanceof StubDevice) { in logOnAllDevices()
86 if (!DeviceState.ONLINE.equals(device.getIDevice().getState())) { in logOnAllDevices()
/tools/tradefederation/core/javatests/com/android/tradefed/device/recovery/
DUsbResetMultiDeviceRecoveryTest.java87 when(mDevice.getIDevice()).thenReturn(new StubDevice(SERIAL)); in testRecover_stub()
124 when(mDevice.getIDevice()).thenReturn(new FastbootDevice(SERIAL)); in testRecover_fastboot_allocated()
139 when(mDevice.getIDevice()).thenReturn(new FastbootDevice(SERIAL)); in testRecover_fastboot_unallocated()
/tools/tradefederation/core/javatests/com/android/tradefed/device/
DMockDeviceManager.java75 when(mockDevice.getIDevice()).thenReturn(mockIDevice); in setNumDevicesInternal()
114 when(mockDevice.getIDevice()).thenReturn(mockIDevice); in setNumDevicesCustom()
136 when(mockDevice.getIDevice()).thenReturn(mockIDevice); in setNumDevicesStub()
166 return mDeviceOptions.matches(element.getIDevice()); in matches()
DLocalAndroidVirtualDeviceTest.java451 Assert.assertEquals(ONLINE_SERIAL_NUMBER, mLocalAvd.getIDevice().getSerialNumber()); in testPreinvocationSetupSuccess()
466 assertFinalDeviceState(mLocalAvd.getIDevice()); in testPreinvocationSetupSuccess()
502 Assert.assertEquals(ONLINE_SERIAL_NUMBER, mLocalAvd.getIDevice().getSerialNumber()); in testShutdown()
522 assertFinalDeviceState(mLocalAvd.getIDevice()); in testShutdown()
562 Assert.assertEquals(STUB_SERIAL_NUMBER, mLocalAvd.getIDevice().getSerialNumber()); in testPreInvocationSetupBootFailure()
575 assertFinalDeviceState(mLocalAvd.getIDevice()); in testPreInvocationSetupBootFailure()
612 Assert.assertEquals(STUB_SERIAL_NUMBER, mLocalAvd.getIDevice().getSerialNumber()); in testPreInvocationSetupFailure()
625 assertFinalDeviceState(mLocalAvd.getIDevice()); in testPreInvocationSetupFailure()
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/python/
DPythonBinaryHostTestTest.java152 when(mMockDevice.getIDevice()).thenReturn(new StubDevice("serial")); in testRun()
205 when(mMockDevice.getIDevice()).thenReturn(new StubDevice("serial")); in testRun_failWithIncludeFilters()
264 when(mMockDevice.getIDevice()).thenReturn(new StubDevice("serial")); in testRun_withIncludeFilters()
333 when(mMockDevice.getIDevice()).thenReturn(new StubDevice("serial")); in testRun_withExcludeFilters()
396 when(mMockDevice.getIDevice()).thenReturn(new StubDevice("serial")); in testRun_withAdbPath()
454 when(mMockDevice.getIDevice()).thenReturn(new StubDevice("serial")); in testRun_withSharedLibInHostTestsDir()
518 when(mMockDevice.getIDevice()).thenReturn(new StubDevice("serial")); in testRun_withSharedLib()
577 when(mMockDevice.getIDevice()).thenReturn(new StubDevice("serial")); in testRunFail_exception()
636 when(mMockDevice.getIDevice()).thenReturn(new StubDevice("serial")); in testRunFail_failureOnly()
781 when(mMockDevice.getIDevice()).thenReturn(new StubDevice("serial")); in expectRunThatWritesTestOutputFile()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/suite/module/
DKernelTestModuleController.java106 if (device.getIDevice() instanceof StubDevice) { in deviceLowMem()
132 if (device.getIDevice() instanceof StubDevice) { in deviceWithHwasan()
/tools/tradefederation/core/javatests/com/android/tradefed/device/metric/
DFilePullerLogCollectorTest.java83 when(mMockDevice.getIDevice()).thenReturn(new StubDevice("serial")); in testSkipStub()
119 when(mMockDevice.getIDevice()).thenReturn(mMockIDevice); in testPullAndLog()
189 when(mMockDevice.getIDevice()).thenReturn(mMockIDevice); in testPostProcessFiles()
228 when(mMockDevice.getIDevice()).thenReturn(mMockIDevice); in testCompressDirectoryBeforeUpload()
/tools/tradefederation/core/src/com/android/tradefed/device/recovery/
DRunConfigDeviceRecovery.java72 if (device.getIDevice() instanceof StubDevice in recoverDevices()
73 && !(device.getIDevice() instanceof FastbootDevice)) { in recoverDevices()
DBatteryUnavailableDeviceRecovery.java36 if (DeviceState.OFFLINE.equals(device.getIDevice().getState())) { in shouldSkip()

123456