/tools/tradefederation/core/javatests/com/android/tradefed/testtype/suite/module/ |
D | ShippingApiLevelModuleControllerTest.java | 74 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 …]
|
D | KernelTestModuleControllerTest.java | 60 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()
|
D | NativeBridgeModuleControllerTest.java | 60 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()
|
D | DeviceFeatureModuleControllerTest.java | 64 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()
|
D | MinApiLevelModuleControllerTest.java | 65 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()
|
D | MaxSdkModuleControllerTest.java | 65 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()
|
D | CarModuleControllerTest.java | 63 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()
|
D | MainlineTestModuleControllerTest.java | 73 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/ |
D | NativeDeviceStateMonitor.java | 133 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 …]
|
D | BackgroundDeviceAction.java | 102 .getIDevice() in run() 154 if ((mTestDevice.getIDevice() instanceof StubDevice) in blockUntilOnlineNoThrow()
|
/tools/tradefederation/core/javatests/com/android/tradefed/build/ |
D | BootstrapBuildProviderTest.java | 65 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/ |
D | CompileBootImageWithSpeedTargetPreparer.java | 50 if (device.getIDevice() instanceof StubDevice) { in setUp() 68 if (device.getIDevice() instanceof StubDevice) { in tearDown()
|
D | RootTargetPreparer.java | 55 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/ |
D | DeviceDescriptor.java | 229 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/ |
D | RunCommandTargetPreparerTest.java | 222 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/ |
D | EmulatorMemoryCpuCapturer.java | 46 managedTestDevice.getIDevice().isEmulator(), in EmulatorMemoryCpuCapturer() 49 managedTestDevice.getIDevice().getSerialNumber())); in EmulatorMemoryCpuCapturer()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/host/ |
D | PrettyTestEventLogger.java | 83 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/ |
D | UsbResetMultiDeviceRecoveryTest.java | 87 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/ |
D | MockDeviceManager.java | 75 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()
|
D | LocalAndroidVirtualDeviceTest.java | 451 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/ |
D | PythonBinaryHostTestTest.java | 152 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/ |
D | KernelTestModuleController.java | 106 if (device.getIDevice() instanceof StubDevice) { in deviceLowMem() 132 if (device.getIDevice() instanceof StubDevice) { in deviceWithHwasan()
|
/tools/tradefederation/core/javatests/com/android/tradefed/device/metric/ |
D | FilePullerLogCollectorTest.java | 83 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/ |
D | RunConfigDeviceRecovery.java | 72 if (device.getIDevice() instanceof StubDevice in recoverDevices() 73 && !(device.getIDevice() instanceof FastbootDevice)) { in recoverDevices()
|
D | BatteryUnavailableDeviceRecovery.java | 36 if (DeviceState.OFFLINE.equals(device.getIDevice().getState())) { in shouldSkip()
|