Home
last modified time | relevance | path

Searched refs:mTest (Results 1 – 8 of 8) sorted by relevance

/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/
DPortraitLandscapeRunner.java23 private AbstractLauncherUiTest<LAUNCHER_TYPE> mTest; field in PortraitLandscapeRunner
32 mTest = test; in PortraitLandscapeRunner()
50 mTest.mDevice.pressHome(); in apply()
51 mTest.waitForLauncherCondition("Launcher activity wasn't created", in apply()
55 mTest.executeOnLauncher(launcher -> in apply()
60 FailureWatcher.onError(mTest.mLauncher, description); in apply()
70 mTest.mDevice.setOrientationNatural(); in apply()
71 mTest.executeOnLauncher(launcher -> in apply()
77 mTest.mLauncher.setExpectedRotation(Surface.ROTATION_0); in apply()
85 mTest.mDevice.setOrientationNatural(); in apply()
[all …]
/packages/modules/AdServices/sdksandbox/tests/testutils/src/android/app/sdksandbox/hosttestutils/
DAdoptableStorageUtils.java29 private final BaseHostJUnit4Test mTest; field in AdoptableStorageUtils
34 mTest = test; in AdoptableStorageUtils()
39 mTest.getDevice().hasFeature("feature:android.software.adoptable_storage"); in isAdoptableStorageSupported()
42 mTest.getDevice().executeShellCommand("sm has-adoptable").trim()); in isAdoptableStorageSupported()
49 assertEmpty(mTest.getDevice().executeShellCommand("sm partition " + mDiskId + " private")); in createNewVolume()
60 mTest.getDevice().executeShellCommand("sm set-virtual-disk true"); in enableVirtualDisk()
68 result = mTest.getDevice().executeShellCommand("sm list-disks adoptable").trim(); in enableVirtualDisk()
79 mTest.getDevice().executeShellCommand("sm partition " + mDiskId + " public"); in cleanUpVolume()
80 mTest.getDevice().executeShellCommand("sm forget all"); in cleanUpVolume()
89 String disks = mTest.getDevice().executeShellCommand("sm list-disks adoptable"); in getAdoptionDisk()
[all …]
DSecondaryUserUtils.java31 private final BaseHostJUnit4Test mTest; field in SecondaryUserUtils
37 mTest = test; in SecondaryUserUtils()
41 return mTest.getDevice().isMultiUserSupported(); in isMultiUserSupported()
48 mOriginalUserId = mTest.getDevice().getCurrentUser(); in createAndStartSecondaryUser()
50 mSecondaryUserId = mTest.getDevice().createUser(name); in createAndStartSecondaryUser()
52 mTest.getDevice().startUser(mSecondaryUserId, /*waitFlag=*/ true); in createAndStartSecondaryUser()
67 assertThat(mTest.getDevice().switchUser(mOriginalUserId)).isTrue(); in removeSecondaryUserIfNecessary()
74 mTest.getDevice().switchUser(mSecondaryUserId); in switchToSecondaryUser()
76 if (mTest.getDevice().getCurrentUser() == mSecondaryUserId) { in switchToSecondaryUser()
87 .that(mTest.getDevice().executeShellCommand("pm remove-user --wait " + userId)) in removeUser()
[all …]
DDeviceSupportHostUtils.java28 private final BaseHostJUnit4Test mTest; field in DeviceSupportHostUtils
35 mTest = test; in DeviceSupportHostUtils()
39 DeviceSdkLevel deviceSdkLevel = new DeviceSdkLevel(mTest.getDevice()); in isSdkSandboxSupported()
48 return FeatureUtil.isWatch(mTest.getDevice()); in isWatch()
52 return FeatureUtil.isTV(mTest.getDevice()); in isTv()
56 return FeatureUtil.isAutomotive(mTest.getDevice()); in isAutomotive()
60 return PackageUtil.exists(mTest.getDevice(), GMS_CORE_PACKAGE); in hasGmsCore()
64 return PackageUtil.exists(mTest.getDevice(), PLAY_STORE_PACKAGE); in hasPlayStore()
69 ITestDevice device = mTest.getDevice(); in isGoDevice()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DTestNetworkRunnable.java53 private final Test mTest; field in TestNetworkRunnable
56 mTest = test; in TestNetworkRunnable()
68 final InetAddress[] addresses = mTest.getTestNetworkAddresses(); in runTest()
86 mTest.runTest(testIface, tunNetworkCallback); in runTest()
89 mTest.cleanupTest(); in runTest()
/packages/modules/AdServices/sdksandbox/tests/hostsidetests/SdkSandboxStorageHostTest/src/com/android/tests/sdksandbox/host/
DSdkSandboxStorageHostTest.java1344 private final BaseHostJUnit4Test mTest; field in SdkSandboxStorageHostTest.DeviceLockUtils
1347 mTest = test; in DeviceLockUtils()
1352 mTest.getDevice().executeShellCommand("locksettings set-disabled false"); in rebootToLockedDevice()
1353 String response = mTest.getDevice().executeShellCommand("locksettings set-pin 1234"); in rebootToLockedDevice()
1357 response = mTest.getDevice().executeShellCommand("locksettings set-pin 1234"); in rebootToLockedDevice()
1367 mTest.getDevice().rebootUntilOnline(); in rebootToLockedDevice()
1368 waitForBootCompleted(mTest.getDevice()); in rebootToLockedDevice()
1375 mTest.getDevice().executeShellCommand("locksettings clear --old 1234"); in clearScreenLock()
1376 mTest.getDevice().executeShellCommand("locksettings set-disabled true"); in clearScreenLock()
1379 mTest.getDevice().rebootUntilOnline(); in clearScreenLock()
[all …]
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/celllayout/
DCellLayoutTestCaseReader.java84 String mTest; field in CellLayoutTestCaseReader
87 mTest = test; in CellLayoutTestCaseReader()
132 String[] lines = mTest.split("\n"); in parse()
/packages/services/Car/cpp/watchdog/server/tests/
DWatchdogProcessServiceTest.cpp331 explicit MessageHandlerImpl(WatchdogProcessServiceTest* test) : mTest(test) {} in MessageHandlerImpl()
338 mTest->mWatchdogProcessService->onAidlVhalPidFetched(kTestAidlVhalPid); in handleMessage()
344 std::unique_lock lock(mTest->mMutex); in handleMessage()
345 mTest->mLooperCondition.notify_all(); in handleMessage()
349 WatchdogProcessServiceTest* mTest; member in android::automotive::watchdog::WatchdogProcessServiceTest::MessageHandlerImpl