Home
last modified time | relevance | path

Searched refs:getDevice (Results 1 – 14 of 14) sorted by relevance

/system/apex/tests/src/com/android/tests/apex/
DApexdHostTest.java64 mWasAdbRoot = getDevice().isAdbRoot(); in setUp()
66 assumeTrue("Device requires root", getDevice().enableAdbRoot()); in setUp()
74 getDevice().disableAdbRoot(); in tearDown()
81 assumeTrue("Device requires root", getDevice().isAdbRoot()); in testOrphanedApexIsNotActivated()
83 assertThat(getDevice().pushFile(mHostUtils.getTestFile("apex.apexd_test_v2.apex"), in testOrphanedApexIsNotActivated()
85 getDevice().reboot(); in testOrphanedApexIsNotActivated()
87 getDevice().waitForBootComplete(Duration.ofMinutes(2).toMillis())).isTrue(); in testOrphanedApexIsNotActivated()
88 final Set<ITestDevice.ApexInfo> activeApexes = getDevice().getActiveApexes(); in testOrphanedApexIsNotActivated()
95 getDevice().executeShellV2Command("rm /data/apex/active/apexd_test_v2.apex"); in testOrphanedApexIsNotActivated()
101 assumeTrue("Device requires root", getDevice().isAdbRoot()); in testApexWithoutPbIsNotActivated()
[all …]
DSharedLibsApexTest.java43 this::getDevice);
181 assumeTrue("Device requires root", getDevice().isAdbRoot()); in testInstallAndRunDefaultApexs()
193 getDevice().disableAdbRoot(); in testInstallAndRunDefaultApexs()
194 String runAsResult = getDevice().executeShellCommand( in testInstallAndRunDefaultApexs()
197 runAsResult = getDevice().executeShellCommand( in testInstallAndRunDefaultApexs()
200 if (CpuFeatures.isX86_64(getDevice()) || CpuFeatures.isArm64(getDevice())) { in testInstallAndRunDefaultApexs()
201 runAsResult = getDevice().executeShellCommand( in testInstallAndRunDefaultApexs()
205 runAsResult = getDevice().executeShellCommand( in testInstallAndRunDefaultApexs()
219 runAsResult = getDevice().executeShellCommand( in testInstallAndRunDefaultApexs()
222 runAsResult = getDevice().executeShellCommand( in testInstallAndRunDefaultApexs()
[all …]
DApexRollbackTests.java59 mWasAdbRoot = getDevice().isAdbRoot(); in setUp()
61 assumeTrue("Requires root", getDevice().enableAdbRoot()); in setUp()
74 getDevice().disableAdbRoot(); in tearDown()
87 getDevice().setProperty(propertyName, "")).isTrue(); in resetProperty()
96 ITestDevice device = getDevice(); in testAutomaticBootLoopRecovery()
153 ITestDevice device = getDevice(); in testSessionNotRevertedWithCheckpointingDisabled()
191 ITestDevice device = getDevice(); in testCheckpointingRevertsSession()
229 ITestDevice device = getDevice(); in testRebootingOnceDoesNotRevertSession()
268 assertThat(getDevice().setProperty("persist.debug.trigger_updatable_crashing_for_testing", in testApexdDoesNotBootLoopDeviceIfThereIsNothingToRevert()
270 getDevice().reboot(); in testApexdDoesNotBootLoopDeviceIfThereIsNothingToRevert()
[all …]
DApexE2EBaseHostTest.java95 getDevice().getBooleanProperty(USERSPACE_REBOOT_SUPPORTED_PROP, false)); in testStageActivateUninstallApexPackageWithUserspaceReboot()
103 Set<ApexInfo> activatedApexes = getDevice().getActiveApexes(); in stageActivateUninstallApexPackage()
130 assertThat(getDevice().setProperty("test.userspace_reboot.requested", "1")).isTrue(); in reboot()
131 getDevice().rebootUserspace(); in reboot()
133 getDevice().reboot(); in reboot()
135 boolean success = getDevice().waitForBootComplete(BOOT_COMPLETE_TIMEOUT.toMillis()); in reboot()
140 boolean res = getDevice().getBooleanProperty("test.userspace_reboot.requested", false); in reboot()
142 message += "Boot reason: " + getDevice().getProperty("sys.boot.reason.last"); in reboot()
153 String res = getDevice().uninstallPackage(apexName); in uninstallApex()
160 getDevice().reboot(); // for the uninstall to take affect in uninstallApex()
DMediaSwCodecHostTest.java50 CommandResult commandResult = getDevice().executeShellV2Command(CMD_LSHAL_CODECS); in checkCodecs()
DMediaHostTest.java55 getDevice().executeShellV2Command("dumpsys media.extractor"); in checkMediaExtractor()
DTimezoneDataHostTest.java72 getDevice().executeShellV2Command("dumpsys runtime --proto"); in getRuntimeServiceInfoProto()
/system/apex/tests/src/com/android/tests/apex/host/
DApexCompressionTests.java66 mWasAdbRoot = getDevice().isAdbRoot(); in setUp()
68 assumeTrue("Requires root", getDevice().enableAdbRoot()); in setUp()
79 getDevice().disableAdbRoot(); in tearDown()
106 CommandResult result = getDevice().executeShellV2Command("ls " + file); in deleteFiles()
114 getDevice().remountSystemWritable(); in deleteFiles()
116 getDevice().executeShellCommand("rm -rf " + file); in deleteFiles()
118 getDevice().reboot(); in deleteFiles()
124 getDevice().remountSystemWritable(); in pushTestApex()
125 assertTrue(getDevice().pushFile(apex, "/system/apex/" + fileName)); in pushTestApex()
126 getDevice().reboot(); in pushTestApex()
[all …]
/system/core/fs_mgr/tests/src/com/android/tests/vendoroverlay/
DVendorOverlayHostTest.java44 wasRoot = getDevice().isAdbRoot(); in setup()
46 Assume.assumeTrue("Test requires root", getDevice().enableAdbRoot()); in setup()
52 getDevice().remountSystemWritable(); in setup()
56 CommandResult result = getDevice().executeShellV2Command("df"); in setup()
68 CommandResult result = getDevice().executeShellV2Command("mkdir -p " + dir); in assumeMkdirSuccess()
77 String vndkVersion = getDevice().executeShellV2Command("getprop ro.vndk.version").getStdout(); in testVendorOverlay()
80 CommandResult result = getDevice().executeShellV2Command( in testVendorOverlay()
87 result = getDevice().executeShellV2Command( in testVendorOverlay()
92 result = getDevice().executeShellV2Command( in testVendorOverlay()
96 getDevice().reboot(); in testVendorOverlay()
[all …]
/system/gsid/tests/
DDSUEndtoEndTest.java120 boolean wasRoot = getDevice().isAdbRoot(); in testDSU()
122 Assert.assertTrue("Test requires root", getDevice().enableAdbRoot()); in testDSU()
128 getDevice().executeShellV2Command("gsi_tool install --userdata-size " + mUserdataSize + in testDSU()
130 getDevice().waitForDeviceAvailable(); in testDSU()
131 getDevice().enableAdbRoot(); in testDSU()
135 getDevice().rebootUntilOnline(); in testDSU()
139 CommandResult result = getDevice().executeShellV2Command("gsi_tool enable"); in testDSU()
142 getDevice().reboot(); in testDSU()
146 getDevice().reboot(); in testDSU()
150 getDevice().executeShellV2Command("gsi_tool wipe"); in testDSU()
[all …]
/system/security/keystore2/src/km_compat/
Dcertificate_test.cpp49 static std::variant<std::shared_ptr<IKeyMintDevice>, ScopedAStatus> getDevice() { in getDevice() function
107 auto device = getDevice(); in TEST()
122 auto device = getDevice(); in TEST()
135 auto device = getDevice(); in TEST()
150 auto device = getDevice(); in TEST()
164 auto device = getDevice(); in TEST()
Dkm_compat.cpp1348 sp<Keymaster> getDevice(KeyMintSecurityLevel securityLevel) { in getDevice() function
1370 if (auto dev = getDevice(securityLevel)) { in createKeyMintDevice()
1377 auto device = getDevice(securityLevel); in createSharedSecret()
1385 auto device = getDevice(securityLevel); in createSecureClock()
/system/vold/model/
DDisk.h68 dev_t getDevice() const { return mDevice; } in getDevice() function
/system/vold/
DVolumeManager.cpp156 dev_t device = mVirtualDisk->getDevice(); in updateVirtualDisk()
279 if (disk->getDevice() == device) { in handleDiskChanged()
292 if ((*i)->getDevice() == device) { in handleDiskRemoved()
301 if ((*j)->getDevice() == device) { in handleDiskRemoved()