Home
last modified time | relevance | path

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

/system/apex/tests/src/com/android/tests/apex/
DApexdHostTest.java66 assumeTrue("Device requires root", getDevice().isAdbRoot()); in testOrphanedApexIsNotActivated()
68 assertThat(getDevice().pushFile(mTestUtils.getTestFile("apex.apexd_test_v2.apex"), in testOrphanedApexIsNotActivated()
70 getDevice().reboot(); in testOrphanedApexIsNotActivated()
72 getDevice().waitForBootComplete(Duration.ofMinutes(2).toMillis())).isTrue(); in testOrphanedApexIsNotActivated()
73 final Set<ITestDevice.ApexInfo> activeApexes = getDevice().getActiveApexes(); in testOrphanedApexIsNotActivated()
80 getDevice().executeShellV2Command("rm /data/apex/active/apexd_test_v2.apex"); in testOrphanedApexIsNotActivated()
86 assumeTrue("Device requires root", getDevice().isAdbRoot()); in testApexWithoutPbIsNotActivated()
89 assertThat(getDevice().pushFile(mTestUtils.getTestFile(testApexFile), in testApexWithoutPbIsNotActivated()
91 getDevice().reboot(); in testApexWithoutPbIsNotActivated()
93 getDevice().waitForBootComplete(Duration.ofMinutes(2).toMillis())).isTrue(); in testApexWithoutPbIsNotActivated()
[all …]
DApexRollbackTests.java76 getDevice().setProperty(propertyName, "")).isTrue(); in resetProperty()
85 ITestDevice device = getDevice(); in testAutomaticBootLoopRecovery()
142 ITestDevice device = getDevice(); in testSessionNotRevertedWithCheckpointingDisabled()
184 ITestDevice device = getDevice(); in testCheckpointingRevertsSession()
226 ITestDevice device = getDevice(); in testRebootingOnceDoesNotRevertSession()
269 assertThat(getDevice().setProperty("persist.debug.trigger_updatable_crashing_for_testing", in testApexdDoesNotBootLoopDeviceIfThereIsNothingToRevert()
271 getDevice().reboot(); in testApexdDoesNotBootLoopDeviceIfThereIsNothingToRevert()
273 getDevice().waitForBootComplete(Duration.ofMinutes(1).toMillis())).isTrue(); in testApexdDoesNotBootLoopDeviceIfThereIsNothingToRevert()
275 assertThat(getDevice().getBooleanProperty("sys.init.updatable_crashing", false)).isTrue(); in testApexdDoesNotBootLoopDeviceIfThereIsNothingToRevert()
286 getDevice().getBooleanProperty("init.userspace_reboot.is_supported", false)); in testFailingUserspaceReboot_doesNotRevertUpdate()
[all …]
DApexE2EBaseHostTest.java92 getDevice().getBooleanProperty(USERSPACE_REBOOT_SUPPORTED_PROP, false)); in testStageActivateUninstallApexPackageWithUserspaceReboot()
100 Set<ApexInfo> activatedApexes = getDevice().getActiveApexes(); in stageActivateUninstallApexPackage()
116 String installResult = getDevice().installPackage(testAppFile, false, "--wait"); in installApex()
133 String stdout = getDevice().executeAdbCommand(args); in installApexes()
139 assertThat(getDevice().setProperty("test.userspace_reboot.requested", "1")).isTrue(); in reboot()
140 getDevice().rebootUserspace(); in reboot()
142 getDevice().reboot(); in reboot()
144 boolean success = getDevice().waitForBootComplete(BOOT_COMPLETE_TIMEOUT.toMillis()); in reboot()
149 boolean res = getDevice().getBooleanProperty("test.userspace_reboot.requested", false); in reboot()
151 message += "Boot reason: " + getDevice().getProperty("sys.boot.reason.last"); in reboot()
[all …]
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/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.java126 boolean wasRoot = getDevice().isAdbRoot(); in testDSU()
128 Assert.assertTrue("Test requires root", getDevice().enableAdbRoot()); in testDSU()
141 getDevice().executeShellV2Command("gsi_tool install --userdata-size " + mUserdataSize + in testDSU()
143 getDevice().waitForDeviceAvailable(); in testDSU()
144 getDevice().enableAdbRoot(); in testDSU()
152 CommandResult result = getDevice().executeShellV2Command("gsi_tool enable"); in testDSU()
155 getDevice().reboot(); in testDSU()
159 getDevice().reboot(); in testDSU()
163 getDevice().executeShellV2Command("gsi_tool wipe"); in testDSU()
176 getDevice().enableAdbRoot(); in testDSU()
[all …]
/system/core/adb/fastdeploy/deployagent/test/com/android/fastdeploy/
DFastDeployTest.java49 getDevice().uninstallPackage(TEST_APP_PACKAGE); in setUp()
58 getDevice().uninstallPackage(TEST_APP_PACKAGE); in testAppInstalls()
68 getDevice().uninstallPackage(TEST_APP_PACKAGE); in testAppPatch()
73 final String result = getDevice().executeShellCommand("pm list packages"); in isAppInstalled()
83 … String result = getDevice().executeAdbCommand("install", "-t", "--fastdeploy", "--force-agent", in fastInstallPackage()
/system/apex/tests/util/com/android/tests/util/
DModuleTestUtils.java152 CommandResult res = mTest.getDevice().executeShellV2Command("pm get-stagedsessions"); in waitForStagedSessionReady()
175 CommandResult res = mTest.getDevice().executeShellV2Command("pm list staged-sessions " in abandonActiveStagedSession()
180 res = mTest.getDevice().executeShellV2Command("pm install-abandon " in abandonActiveStagedSession()
205 final String errorMessage = mTest.getDevice().uninstallPackage(SHIM); in uninstallShimApexIfNecessary()
207 mTest.getDevice().reboot(); in uninstallShimApexIfNecessary()
215 return mTest.getDevice().getActiveApexes().stream().filter( in getShimApex()
224 return mTest.getDevice().getBooleanProperty("ro.apex.updatable", false); in isApexUpdateSupported()
239 if (!mTest.getDevice().doesFileExist(filePath)) { in waitForFileDeleted()
/system/apex/tests/src/com/android/tests/util/
DModuleTestUtilsTest.java59 String installResult = getDevice().installPackage(apexFile, false, "--wait"); in testAbandonActiveStagedSession()
67 installResult = getDevice().installPackage(apexFile, false, "--wait"); in testAbandonActiveStagedSession()
/system/security/keystore/
DKeyStore.cpp309 auto dev = getDevice(keyBlob); in del()
344 if (getDevice(SecurityLevel::STRONGBOX)) return true; in isHardwareBacked()
345 if (!getDevice(SecurityLevel::TRUSTED_ENVIRONMENT)) { in isHardwareBacked()
350 auto version = getDevice(SecurityLevel::TRUSTED_ENVIRONMENT)->halVersion(); in isHardwareBacked()
DKeyStore.h82 std::shared_ptr<KeymasterWorker> getDevice(SecurityLevel securityLevel) const {
96 std::shared_ptr<KeymasterWorker> getDevice(const Blob& blob) {
Dkey_store_service.cpp603 auto device = mKeyStore->getDevice(flagsToSecurityLevel(flags)); in addRngEntropy()
644 auto dev = mKeyStore->getDevice(securityLevel); in generateKey()
699 auto dev = mKeyStore->getDevice(keyBlob); in getKeyCharacteristics()
742 auto dev = mKeyStore->getDevice(securityLevel); in importKey()
799 auto dev = mKeyStore->getDevice(keyBlob); in exportKey()
841 auto dev = mKeyStore->getDevice(keyBlob); in begin()
971 std::shared_ptr<KeymasterWorker> dev = mKeyStore->getDevice(SecurityLevel::TRUSTED_ENVIRONMENT); in getTokensForCredstore()
974 dev = mKeyStore->getDevice(SecurityLevel::SOFTWARE); in getTokensForCredstore()
1137 auto dev = mKeyStore->getDevice(keyBlob); in attestKey()
1201 auto dev = mKeyStore->getDevice(SecurityLevel::TRUSTED_ENVIRONMENT); in attestDeviceIds()
[all …]
Dkeymaster_worker.cpp534 auto teeKmDevice = keyStore_->getDevice(SecurityLevel::TRUSTED_ENVIRONMENT); in begin()
/system/vold/model/
DDisk.h61 dev_t getDevice() const { return mDevice; } in getDevice() function
/system/vold/
DVolumeManager.cpp144 dev_t device = mVirtualDisk->getDevice(); in updateVirtualDisk()
264 if (disk->getDevice() == device) { in handleDiskChanged()
277 if ((*i)->getDevice() == device) { in handleDiskRemoved()
286 if ((*j)->getDevice() == device) { in handleDiskRemoved()