/packages/modules/AdServices/sdksandbox/tests/hostsidetests/SdkSandboxStorageHostTest/src/com/android/tests/sdksandbox/host/ |
D | SdkSandboxStorageHostTest.java | 148 assertThat(getDevice().isDirectory(dePath)).isTrue(); in testSdkDataRootDirectory_IsCreatedOnUserCreate() 149 assertThat(getDevice().isDirectory(cePath)).isTrue(); in testSdkDataRootDirectory_IsCreatedOnUserCreate() 157 assertThat(getDevice().isDirectory(dePath)).isTrue(); in testSdkDataRootDirectory_IsCreatedOnUserCreate() 158 assertThat(getDevice().isDirectory(cePath)).isTrue(); in testSdkDataRootDirectory_IsCreatedOnUserCreate() 174 assertThat(getDevice().isDirectory(ceSdkSandboxDataRootPath)).isFalse(); in testSdkDataRootDirectory_IsDestroyedOnUserDeletion() 175 assertThat(getDevice().isDirectory(deSdkSandboxDataRootPath)).isFalse(); in testSdkDataRootDirectory_IsDestroyedOnUserDeletion() 183 assertThat(getDevice().isDirectory(cePath)).isFalse(); in testSdkSandboxDataMirrorAppDirectory_IsCreatedOnInstall() 184 assertThat(getDevice().isDirectory(dePath)).isFalse(); in testSdkSandboxDataMirrorAppDirectory_IsCreatedOnInstall() 187 assertThat(getDevice().isDirectory(cePath)).isTrue(); in testSdkSandboxDataMirrorAppDirectory_IsCreatedOnInstall() 188 assertThat(getDevice().isDirectory(dePath)).isTrue(); in testSdkSandboxDataMirrorAppDirectory_IsCreatedOnInstall() [all …]
|
/packages/modules/StatsD/tests/src/android/cts/statsd/alert/ |
D | AnomalyDetectionTests.java | 96 ConfigUtils.removeConfig(getDevice()); in setUp() 97 ReportUtils.clearReports(getDevice()); in setUp() 98 DeviceUtils.installTestApp(getDevice(), MetricsUtils.DEVICE_SIDE_TEST_APK, in setUp() 115 ConfigUtils.removeConfig(getDevice()); in tearDown() 116 ReportUtils.clearReports(getDevice()); in tearDown() 117 DeviceUtils.uninstallTestApp(getDevice(), MetricsUtils.DEVICE_SIDE_TEST_PACKAGE); in tearDown() 149 ConfigUtils.uploadConfig(getDevice(), config); in testCountAnomalyDetection() 151 String markTime = MetricsUtils.getCurrentLogcatDate(getDevice()); in testCountAnomalyDetection() 153 AtomTestUtils.sendAppBreadcrumbReportedAtom(getDevice(), in testCountAnomalyDetection() 157 ReportUtils.getEventMetricDataList(getDevice())).isEmpty(); in testCountAnomalyDetection() [all …]
|
/packages/modules/AdServices/sdksandbox/tests/hostsidetests/src/com/android/tests/sdksandbox/host/ |
D | SdkSandboxLifecycleHostTest.java | 80 assertThat(testInfo.getDevice().enableAdbRoot()).isTrue(); in beforeClassWithDevice() 86 testInfo.getDevice().disableAdbRoot(); in afterClassWithDevice() 94 assertThat(getDevice()).isNotNull(); in setUp() 96 mDeviceSdkLevel = new DeviceSdkLevel(getDevice()); in setUp() 98 if (!getDevice().isPackageInstalled(APP_PACKAGE)) { in setUp() 112 String processDump = getDevice().executeAdbCommand("shell", "ps", "-A"); in testSdkSandboxIsDestroyedOnAppDestroy() 118 processDump = getDevice().executeAdbCommand("shell", "ps", "-A"); in testSdkSandboxIsDestroyedOnAppDestroy() 130 String processDump = getDevice().executeAdbCommand("shell", "ps", "-A"); in testSdkSandboxIsCreatedPerApp() 135 processDump = getDevice().executeAdbCommand("shell", "ps", "-A"); in testSdkSandboxIsCreatedPerApp() 144 processDump = getDevice().executeAdbCommand("shell", "ps", "-A"); in testSdkSandboxIsCreatedPerApp() [all …]
|
D | SdkSandboxShellHostTest.java | 60 assertThat(testInfo.getDevice().enableAdbRoot()).isTrue(); in beforeClassWithDevice() 66 testInfo.getDevice().disableAdbRoot(); in afterClassWithDevice() 74 assertThat(getDevice()).isNotNull(); in setUp() 79 getDevice().executeShellV2Command(String.format("cmd deviceidle whitelist +%s", pkg)); in setUp() 82 mOriginalUsers.addAll(getDevice().listUsers()); in setUp() 87 for (Integer userId : getDevice().listUsers()) { in tearDown() 89 getDevice().removeUser(userId); in tearDown() 96 getDevice().executeShellV2Command(String.format("cmd deviceidle whitelist -%s", pkg)); in tearDown() 102 CommandResult output = getDevice().executeShellV2Command( in testStartAndStopSdkSandboxSucceedsForDebuggableApp() 109 output = getDevice().executeShellV2Command( in testStartAndStopSdkSandboxSucceedsForDebuggableApp() [all …]
|
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/host/src/android/healthconnect/cts/dailyjob/ |
D | DailyDeleteAccessLogTest.java | 42 if (!isHardwareSupported(getDevice())) { in setUp() 47 mDeviceStartTime = Instant.ofEpochMilli(getDevice().getDeviceDate()); in setUp() 49 clearData(getDevice()); in setUp() 54 if (!isHardwareSupported(getDevice())) { in tearDown() 57 clearData(getDevice()); in tearDown() 58 resetTime(getDevice(), mTestStartTime, mDeviceStartTime); in tearDown() 68 if (!isHardwareSupported(getDevice())) { in testAccessLogsAreDeleted() 72 triggerTestInTestApp(getDevice(), DAILY_LOG_TESTS_ACTIVITY, "testInsertRecordsSucceed"); in testAccessLogsAreDeleted() 74 getDevice(), DAILY_LOG_TESTS_ACTIVITY, "testHealthConnectAccessLogsEqualsOne"); in testAccessLogsAreDeleted() 76 increaseDeviceTimeByDays(getDevice(), 5); in testAccessLogsAreDeleted() [all …]
|
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/host/src/android/healthconnect/cts/logging/ |
D | HealthConnectDailyLogsStatsTests.java | 61 if (!isHardwareSupported(getDevice())) { in setUp() 66 assertThat(isHardwareSupported(getDevice())).isTrue(); in setUp() 68 HostSideTestUtil.setupRateLimitingFeatureFlag(getDevice()); in setUp() 70 mTestStartTimeOnDevice = Instant.ofEpochMilli(getDevice().getDeviceDate()); in setUp() 71 ConfigUtils.removeConfig(getDevice()); in setUp() 72 ReportUtils.clearReports(getDevice()); in setUp() 80 if (!isHardwareSupported(getDevice())) { in tearDown() 83 ConfigUtils.removeConfig(getDevice()); in tearDown() 84 ReportUtils.clearReports(getDevice()); in tearDown() 87 HostSideTestUtil.restoreRateLimitingFeatureFlag(getDevice()); in tearDown() [all …]
|
D | HealthConnectServiceStatsTests.java | 51 if (!isHardwareSupported(getDevice())) { in setUp() 55 HostSideTestUtil.setupRateLimitingFeatureFlag(getDevice()); in setUp() 57 ConfigUtils.removeConfig(getDevice()); in setUp() 58 ReportUtils.clearReports(getDevice()); in setUp() 64 HostSideTestUtil.restoreRateLimitingFeatureFlag(getDevice()); in tearDown() 65 ConfigUtils.removeConfig(getDevice()); in tearDown() 66 ReportUtils.clearReports(getDevice()); in tearDown() 76 if (!isHardwareSupported(getDevice())) { in testInsertRecords() 94 if (!isHardwareSupported(getDevice())) { in testInsertRecordsError() 112 if (!isHardwareSupported(getDevice())) { in testUpdateRecords() [all …]
|
/packages/modules/StatsD/tests/src/android/cts/statsd/metric/ |
D | MetricActivationTests.java | 70 ConfigUtils.removeConfig(getDevice()); in setUp() 71 ReportUtils.clearReports(getDevice()); in setUp() 77 ConfigUtils.removeConfig(getDevice()); in tearDown() 78 ReportUtils.clearReports(getDevice()); in tearDown() 175 ConfigUtils.uploadConfig(getDevice(), createConfig(act1TtlSecs, act2TtlSecs)); in testCancellation() 178 AtomTestUtils.sendAppBreadcrumbReportedAtom(getDevice(), in testCancellation() 183 AtomTestUtils.sendAppBreadcrumbReportedAtom(getDevice(), in testCancellation() 188 AtomTestUtils.sendAppBreadcrumbReportedAtom(getDevice(), in testCancellation() 193 AtomTestUtils.sendAppBreadcrumbReportedAtom(getDevice(), in testCancellation() 198 AtomTestUtils.sendAppBreadcrumbReportedAtom(getDevice(), in testCancellation() [all …]
|
D | DurationMetricsTests.java | 52 ConfigUtils.removeConfig(getDevice()); in setUp() 53 ReportUtils.clearReports(getDevice()); in setUp() 59 ConfigUtils.removeConfig(getDevice()); in tearDown() 60 ReportUtils.clearReports(getDevice()); in tearDown() 98 ConfigUtils.uploadConfig(getDevice(), builder); in testDurationMetric() 101 AtomTestUtils.sendAppBreadcrumbReportedAtom(getDevice(), in testDurationMetric() 104 AtomTestUtils.sendAppBreadcrumbReportedAtom(getDevice(), in testDurationMetric() 110 StatsLogReport metricReport = ReportUtils.getStatsLogReport(getDevice(), in testDurationMetric() 174 ConfigUtils.uploadConfig(getDevice(), builder); in testDurationMetricWithCondition() 177 AtomTestUtils.sendAppBreadcrumbReportedAtom(getDevice(), in testDurationMetricWithCondition() [all …]
|
D | CountMetricsTests.java | 58 ConfigUtils.removeConfig(getDevice()); in setUp() 59 ReportUtils.clearReports(getDevice()); in setUp() 60 DeviceUtils.installTestApp(getDevice(), MetricsUtils.DEVICE_SIDE_TEST_APK, in setUp() 67 ConfigUtils.removeConfig(getDevice()); in tearDown() 68 ReportUtils.clearReports(getDevice()); in tearDown() 69 DeviceUtils.uninstallTestApp(getDevice(), MetricsUtils.DEVICE_SIDE_TEST_PACKAGE); in tearDown() 87 ConfigUtils.uploadConfig(getDevice(), builder); in testSimpleEventCountMetric() 89 AtomTestUtils.sendAppBreadcrumbReportedAtom(getDevice(), in testSimpleEventCountMetric() 92 AtomTestUtils.sendAppBreadcrumbReportedAtom(getDevice(), in testSimpleEventCountMetric() 96 StatsLogReport metricReport = ReportUtils.getStatsLogReport(getDevice(), in testSimpleEventCountMetric() [all …]
|
D | GaugeMetricsTests.java | 63 ConfigUtils.removeConfig(getDevice()); in setUp() 64 ReportUtils.clearReports(getDevice()); in setUp() 70 ConfigUtils.removeConfig(getDevice()); in tearDown() 71 ReportUtils.clearReports(getDevice()); in tearDown() 123 ConfigUtils.uploadConfig(getDevice(), builder); in testGaugeMetric() 126 AtomTestUtils.sendAppBreadcrumbReportedAtom(getDevice(), in testGaugeMetric() 129 AtomTestUtils.sendAppBreadcrumbReportedAtom(getDevice(), in testGaugeMetric() 132 AtomTestUtils.sendAppBreadcrumbReportedAtom(getDevice(), in testGaugeMetric() 135 AtomTestUtils.sendAppBreadcrumbReportedAtom(getDevice(), in testGaugeMetric() 138 AtomTestUtils.sendAppBreadcrumbReportedAtom(getDevice(), in testGaugeMetric() [all …]
|
D | ValueMetricsTests.java | 57 ConfigUtils.removeConfig(getDevice()); in setUp() 58 ReportUtils.clearReports(getDevice()); in setUp() 64 ConfigUtils.removeConfig(getDevice()); in tearDown() 65 ReportUtils.clearReports(getDevice()); in tearDown() 100 ConfigUtils.uploadConfig(getDevice(), builder); in testValueMetric() 103 AtomTestUtils.sendAppBreadcrumbReportedAtom(getDevice(), in testValueMetric() 106 AtomTestUtils.sendAppBreadcrumbReportedAtom(getDevice(), in testValueMetric() 108 AtomTestUtils.sendAppBreadcrumbReportedAtom(getDevice(), in testValueMetric() 110 AtomTestUtils.sendAppBreadcrumbReportedAtom(getDevice(), in testValueMetric() 116 StatsLogReport metricReport = ReportUtils.getStatsLogReport(getDevice(), in testValueMetric() [all …]
|
/packages/modules/StatsD/tests/src/android/cts/statsd/uidmap/ |
D | UidMapTests.java | 52 ConfigUtils.removeConfig(getDevice()); in setUp() 53 ReportUtils.clearReports(getDevice()); in setUp() 54 DeviceUtils.installTestApp(getDevice(), MetricsUtils.DEVICE_SIDE_TEST_APK, in setUp() 61 ConfigUtils.removeConfig(getDevice()); in tearDown() 62 ReportUtils.clearReports(getDevice()); in tearDown() 63 DeviceUtils.uninstallTestApp(getDevice(), MetricsUtils.DEVICE_SIDE_TEST_PACKAGE); in tearDown() 75 ConfigUtils.uploadConfigForPushedAtom(getDevice(), in testUidSnapshotIncluded() 79 ConfigMetricsReportList reports = ReportUtils.getReportList(getDevice(), in testUidSnapshotIncluded() 108 getDevice().uninstallPackage(MetricsUtils.DEVICE_SIDE_TEST_PACKAGE); in testChangeFromInstallation() 109 ConfigUtils.uploadConfigForPushedAtom(getDevice(), in testChangeFromInstallation() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfp/ |
D | HeadsetNativeInterface.java | 88 private BluetoothDevice getDevice(byte[] address) { in getDevice() method in HeadsetNativeInterface 109 getDevice(address)); in onConnectionStateChanged() 120 getDevice(address)); in onAudioStateChanged() 127 HeadsetStackEvent.EVENT_TYPE_VR_STATE_CHANGED, state, getDevice(address)); in onVrStateChanged() 133 new HeadsetStackEvent(HeadsetStackEvent.EVENT_TYPE_ANSWER_CALL, getDevice(address)); in onAnswerCall() 139 new HeadsetStackEvent(HeadsetStackEvent.EVENT_TYPE_HANGUP_CALL, getDevice(address)); in onHangupCall() 149 getDevice(address)); in onVolumeChanged() 156 HeadsetStackEvent.EVENT_TYPE_DIAL_CALL, number, getDevice(address)); in onDialCall() 163 HeadsetStackEvent.EVENT_TYPE_SEND_DTMF, dtmf, getDevice(address)); in onSendDtmf() 172 getDevice(address)); in onNoiseReductionEnable() [all …]
|
/packages/modules/AdServices/sdksandbox/tests/testutils/src/android/app/sdksandbox/hosttestutils/ |
D | AdoptableStorageUtils.java | 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() 92 disks = mTest.getDevice().executeShellCommand("sm list-disks adoptable"); in getAdoptionDisk() 127 lines = mTest.getDevice().executeShellCommand("sm list-volumes private").split("\n"); in getAdoptionVolume() [all …]
|
D | SecondaryUserUtils.java | 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() 94 if (!mTest.getDevice().isDirectory(deSdkSandboxDataRootPath)) { in waitForUserDataDeletion()
|
/packages/modules/StatsD/tests/src/android/cts/statsd/validation/ |
D | ValidationTests.java | 80 ConfigUtils.removeConfig(getDevice()); in setUp() 81 ReportUtils.clearReports(getDevice()); in setUp() 82 DeviceUtils.installTestApp(getDevice(), MetricsUtils.DEVICE_SIDE_TEST_APK, in setUp() 86 getDevice()); // Turn off Battery Stats auto resetting in setUp() 91 ConfigUtils.removeConfig(getDevice()); in tearDown() 92 ReportUtils.clearReports(getDevice()); in tearDown() 93 DeviceUtils.uninstallTestApp(getDevice(), MetricsUtils.DEVICE_SIDE_TEST_PACKAGE); in tearDown() 94 DeviceUtils.resetBatteryStatus(getDevice()); in tearDown() 95 DeviceUtils.turnScreenOn(getDevice()); in tearDown() 96 DeviceUtils.turnBatteryStatsAutoResetOn(getDevice()); in tearDown() [all …]
|
D | ProcStatsValidationTests.java | 56 DeviceUtils.turnScreenOff(getDevice()); in toggleScreenAndSleep() 58 DeviceUtils.turnScreenOn(getDevice()); in toggleScreenAndSleep() 70 DeviceUtils.executeBackgroundService(getDevice(), MetricsUtils.DEVICE_SIDE_TEST_PACKAGE, in testProcessStateByPulling() 77 DeviceUtils.executeBackgroundService(getDevice(), MetricsUtils.DEVICE_SIDE_TEST_PACKAGE, in testProcessStateByPulling() 87 DeviceUtils.uninstallTestApp(getDevice(), MetricsUtils.DEVICE_SIDE_TEST_PACKAGE); in testProcessStateByPulling() 95 ConfigUtils.uploadConfig(getDevice(), config.toBuilder()); in testProcessStateByPulling() 97 AtomTestUtils.sendAppBreadcrumbReportedAtom(getDevice(), in testProcessStateByPulling() 101 List<Atom> statsdData = ReportUtils.getGaugeMetricAtoms(getDevice()); in testProcessStateByPulling() 261 ITestDevice device = getDevice(); in isPssProfilingDisabled() 270 getDevice().executeShellCommand("dumpsys procstats --clear"); in clearProcStats() [all …]
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | BluetoothDetailsProfilesController.java | 133 pref.setTitle(profile.getNameResource(mCachedDevice.getDevice())); in createProfilePreference() 141 BluetoothUtils.getStringMetaData(mCachedDevice.getDevice(), in createProfilePreference() 167 BluetoothDevice device = mCachedDevice.getDevice(); in refreshProfilePreference() 194 profilePref.setSummary(profile.getSummaryResourceForDevice(mCachedDevice.getDevice())); in refreshProfilePreference() 226 .anyMatch(item -> leAudio.isEnabled(item.getDevice()))) { in isLeAudioEnabled() 237 final BluetoothDevice bluetoothDevice = mCachedDevice.getDevice(); in enableProfile() 264 final BluetoothDevice bluetoothDevice = mCachedDevice.getDevice(); in disableProfile() 324 final BluetoothDevice device = mCachedDevice.getDevice(); in getProfiles() 369 "device:" + leAudioDevice.getDevice().getAnonymizedAddress() in disableLeAudioProfile() 371 profile.setEnabled(leAudioDevice.getDevice(), false); in disableLeAudioProfile() [all …]
|
/packages/apps/Settings/tests/Enable16KbTests/src/com/android/test/ |
D | Enable16KbTest.java | 57 getDevice().enableAdbRoot(); in enable16KbToggle() 58 String result = getDevice().getProperty("ro.product.build.16k_page.enabled"); in enable16KbToggle() 63 result = getDevice().getProperty("ro.boot.flash.locked"); in enable16KbToggle() 66 getDevice().executeShellCommand("am start -a com.android.setupwizard.FOUR_CORNER_EXIT"); in enable16KbToggle() 71 getDevice().enableAdbRoot(); in enable16KbToggle() 72 getDevice().executeShellCommand("am start -a com.android.setupwizard.FOUR_CORNER_EXIT"); in enable16KbToggle() 80 result = getDevice().executeShellCommand("getconf PAGE_SIZE"); in enable16KbToggle() 85 result = getDevice().executeShellCommand("getconf PAGE_SIZE"); in enable16KbToggle() 105 getDevice().waitForDeviceOnline(120000); in runTestAndWait() 109 String result = getDevice().executeShellCommand("cat /proc/mounts"); in verifyExt4()
|
/packages/modules/StatsD/tests/src/android/cts/statsd/alarm/ |
D | AlarmTests.java | 59 ConfigUtils.removeConfig(getDevice()); in setUp() 60 ReportUtils.clearReports(getDevice()); in setUp() 61 DeviceUtils.installTestApp(getDevice(), MetricsUtils.DEVICE_SIDE_TEST_APK, in setUp() 72 ConfigUtils.removeConfig(getDevice()); in tearDown() 73 ReportUtils.clearReports(getDevice()); in tearDown() 74 DeviceUtils.uninstallTestApp(getDevice(), MetricsUtils.DEVICE_SIDE_TEST_PACKAGE); in tearDown() 84 DeviceUtils.turnScreenOn(getDevice()); in testAlarm() 85 ConfigUtils.uploadConfig(getDevice(), config); in testAlarm() 87 String markTime = MetricsUtils.getCurrentLogcatDate(getDevice()); in testAlarm() 91 assertThat(MetricsUtils.didIncidentdFireSince(getDevice(), markTime)).isTrue(); in testAlarm()
|
/packages/modules/Virtualization/tests/hostside/java/com/android/microdroid/test/ |
D | MicrodroidHostTests.java | 144 CommandRunner android = new CommandRunner(getDevice()); in minMemorySize() 266 String apexInfoListXml = getDevice().pullFileContents("/apex/apex-info-list.xml"); in getActiveApexInfoList() 295 CommandRunner android = new CommandRunner(getDevice()); 306 .that(getDevice().pullDir(VIRT_APEX + "etc", virtApexEtcDir)) 312 getDevice().pushDir(virtApexDir, TEST_ROOT); 393 getDevice().pushFile(localPayloadMetadata, payloadMetadataPath); 399 getDevice().pushString(config.toString(), configPath); 405 getDevice().getSerialNumber(), 421 getDevice().uninstallPackage(PACKAGE_NAME); 422 getDevice().installPackage(findTestFile(APK_NAME), /* reinstall= */ true); [all …]
|
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/host/src/android/healthconnect/cts/database/ |
D | HealthConnectDatabaseBackwardCompatibilityTest.java | 65 ITestDevice device = getDevice(); in setUp() 91 getDevice().reboot(); in rebootAndEnableRoot() 92 getDevice().waitForDeviceAvailable(); in rebootAndEnableRoot() 94 if (!getDevice().isAdbRoot()) { in rebootAndEnableRoot() 95 return getDevice().enableAdbRoot(); in rebootAndEnableRoot() 109 String currentVersionSchema = getSchema(getDevice()); in checkBackwardCompatibility() 115 deleteHcDatabase(getDevice()); in checkBackwardCompatibility() 118 assertInstallSucceeds(getDevice(), sPreviousVersionFile, true); in checkBackwardCompatibility() 122 String previousVersionSchema = getSchema(getDevice()); in checkBackwardCompatibility() 244 deleteHcDatabase(getDevice()); in tearDown() [all …]
|
/packages/services/Mtp/src/com/android/mtp/ |
D | MtpManager.java | 119 getDevice(deviceId).close(); in closeDevice() 135 final MtpDevice device = getDevice(deviceId); in getObjectInfo() 145 final MtpDevice device = getDevice(deviceId); in getObjectHandles() 155 final MtpDevice device = getDevice(deviceId); in getObject() 165 final MtpDevice device = getDevice(deviceId); in getPartialObject() 173 final MtpDevice device = getDevice(deviceId); in getPartialObject64() 180 final MtpDevice device = getDevice(deviceId); in getThumbnail() 189 final MtpDevice device = getDevice(deviceId); in deleteDocument() 199 final MtpDevice device = getDevice(deviceId); in createDocument() 216 final MtpDevice device = getDevice(deviceId); in getParent() [all …]
|
/packages/modules/AdServices/sdksandbox/tests/hostsidetests/SdkSandboxSmallModuleHostTest/src/com/android/tests/sdksandbox/host/ |
D | SdkSandboxSmallModuleHostTest.java | 93 getDevice().reboot(); in testSmallModuleCanBeInstalled() 106 getDevice().reboot(); in testSmallModuleCanBeInstalled_andThenUpdatedToFullModule() 109 getDevice().reboot(); in testSmallModuleCanBeInstalled_andThenUpdatedToFullModule() 141 getDevice().reboot(); in installSmallModule() 145 return getDevice().doesFileExist(SYSTEM_APEX_PATH); in isSmallModuleUpdatePossible() 151 return getDevice().isDirectory(PRIV_APP_DIR); in isAdServicesApkPresent() 155 String[] children = getDevice().getChildren(ACTIVE_APEX_DIR); in removeUpdatedApexIfNecessary() 162 getDevice().deleteFile(childPath); in removeUpdatedApexIfNecessary() 163 getDevice().reboot(); in removeUpdatedApexIfNecessary()
|