/packages/modules/AdServices/sdksandbox/tests/hostsidetests/SdkSandboxStorageHostTest/src/com/android/tests/sdksandbox/host/ |
D | SdkSandboxStorageHostTest.java | 113 mCurrentUser = getDevice().getCurrentUser(); in setUp() 177 assertThat(getDevice().isDirectory(dePath)).isTrue(); in testSdkDataRootDirectory_IsCreatedOnUserCreate() 178 assertThat(getDevice().isDirectory(cePath)).isTrue(); in testSdkDataRootDirectory_IsCreatedOnUserCreate() 186 assertThat(getDevice().isDirectory(dePath)).isTrue(); in testSdkDataRootDirectory_IsCreatedOnUserCreate() 187 assertThat(getDevice().isDirectory(cePath)).isTrue(); in testSdkDataRootDirectory_IsCreatedOnUserCreate() 203 assertThat(getDevice().isDirectory(ceSdkSandboxDataRootPath)).isFalse(); in testSdkDataRootDirectory_IsDestroyedOnUserDeletion() 204 assertThat(getDevice().isDirectory(deSdkSandboxDataRootPath)).isFalse(); in testSdkDataRootDirectory_IsDestroyedOnUserDeletion() 214 assertThat(getDevice().isDirectory(cePath)).isFalse(); in testSdkSandboxDataMirrorAppDirectory_IsCreatedOnInstall() 215 assertThat(getDevice().isDirectory(dePath)).isFalse(); in testSdkSandboxDataMirrorAppDirectory_IsCreatedOnInstall() 218 assertThat(getDevice().isDirectory(cePath)).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 | 84 assertThat(testInfo.getDevice().enableAdbRoot()).isTrue(); in beforeClassWithDevice() 90 testInfo.getDevice().disableAdbRoot(); in afterClassWithDevice() 96 assertThat(getDevice()).isNotNull(); in setUp() 98 mDeviceSdkLevel = new DeviceSdkLevel(getDevice()); in setUp() 100 if (!getDevice().isPackageInstalled(APP_PACKAGE)) { in setUp() 114 String processDump = getDevice().executeAdbCommand("shell", "ps", "-A"); in testSdkSandboxIsDestroyedOnAppDestroy() 120 processDump = getDevice().executeAdbCommand("shell", "ps", "-A"); in testSdkSandboxIsDestroyedOnAppDestroy() 132 String processDump = getDevice().executeAdbCommand("shell", "ps", "-A"); in testSdkSandboxIsCreatedPerApp() 137 processDump = getDevice().executeAdbCommand("shell", "ps", "-A"); in testSdkSandboxIsCreatedPerApp() 146 processDump = getDevice().executeAdbCommand("shell", "ps", "-A"); in testSdkSandboxIsCreatedPerApp() [all …]
|
D | SdkSandboxShellHostTest.java | 62 assertThat(testInfo.getDevice().enableAdbRoot()).isTrue(); in beforeClassWithDevice() 68 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/logging/ |
D | HealthConnectDailyLogsStatsTests.java | 71 if (!isHardwareSupported(getDevice())) { in setUp() 76 assertThat(isHardwareSupported(getDevice())).isTrue(); in setUp() 78 HostSideTestUtil.setupRateLimitingFeatureFlag(getDevice()); in setUp() 80 mTestStartTimeOnDevice = Instant.ofEpochMilli(getDevice().getDeviceDate()); in setUp() 81 ConfigUtils.removeConfig(getDevice()); in setUp() 82 ReportUtils.clearReports(getDevice()); in setUp() 90 if (!isHardwareSupported(getDevice())) { in tearDown() 93 ConfigUtils.removeConfig(getDevice()); in tearDown() 94 ReportUtils.clearReports(getDevice()); in tearDown() 97 HostSideTestUtil.restoreRateLimitingFeatureFlag(getDevice()); in tearDown() [all …]
|
D | HealthConnectServiceStatsTests.java | 74 HostFlagsValueProvider.createCheckFlagsRule(this::getDevice); 101 if (!isHardwareSupported(getDevice())) { in setUp() 105 HostSideTestUtil.setupRateLimitingFeatureFlag(getDevice()); in setUp() 107 ConfigUtils.removeConfig(getDevice()); in setUp() 108 ReportUtils.clearReports(getDevice()); in setUp() 112 grantPermissionsWithAdb(getDevice(), TEST_APP_PKG_NAME, TEST_APP_PERMISSIONS); in setUp() 118 HostSideTestUtil.restoreRateLimitingFeatureFlag(getDevice()); in tearDown() 119 ConfigUtils.removeConfig(getDevice()); in tearDown() 120 ReportUtils.clearReports(getDevice()); in tearDown() 135 if (!isHardwareSupported(getDevice())) { in testPhrApiAndStatusLogs_testCreateMedicalDataSourceSuccess() [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 | 82 private BluetoothDevice getDevice(byte[] address) { in getDevice() method in HeadsetNativeInterface 99 getDevice(address)); in onConnectionStateChanged() 110 getDevice(address)); in onAudioStateChanged() 117 HeadsetStackEvent.EVENT_TYPE_VR_STATE_CHANGED, state, getDevice(address)); in onVrStateChanged() 123 new HeadsetStackEvent(HeadsetStackEvent.EVENT_TYPE_ANSWER_CALL, getDevice(address)); in onAnswerCall() 129 new HeadsetStackEvent(HeadsetStackEvent.EVENT_TYPE_HANGUP_CALL, getDevice(address)); in onHangupCall() 139 getDevice(address)); in onVolumeChanged() 146 HeadsetStackEvent.EVENT_TYPE_DIAL_CALL, number, getDevice(address)); in onDialCall() 153 HeadsetStackEvent.EVENT_TYPE_SEND_DTMF, dtmf, getDevice(address)); in onSendDtmf() 162 getDevice(address)); in onNoiseReductionEnable() [all …]
|
/packages/apps/Settings/tests/Enable16KbTests/src/com/android/test/ |
D | Enable16KbTest.java | 66 String result = getDevice().getProperty("ro.product.build.16k_page.enabled"); in enable16KbToggle() 71 result = getDevice().getProperty("ro.boot.flash.locked"); in enable16KbToggle() 74 getDevice().executeShellCommand("am start -a com.android.setupwizard.FOUR_CORNER_EXIT"); in enable16KbToggle() 78 getDevice().executeShellCommand("am start -a com.android.setupwizard.FOUR_CORNER_EXIT"); in enable16KbToggle() 86 result = getDevice().executeShellCommand("getconf PAGE_SIZE"); in enable16KbToggle() 91 result = getDevice().executeShellCommand("getconf PAGE_SIZE"); in enable16KbToggle() 118 getDevice().waitForDeviceAvailable(DEVICE_WAIT_TIMEOUT); in prepareDevice() 119 getDevice().enableAdbRoot(); in prepareDevice() 120 getDevice().waitForDeviceAvailable(DEVICE_WAIT_TIMEOUT); in prepareDevice() 122 getDevice().executeShellCommand("input keyevent KEYCODE_WAKEUP"); in prepareDevice() [all …]
|
/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/modules/AdServices/sdksandbox/tests/testutils/host-side/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/Bluetooth/android/app/src/com/android/bluetooth/vc/ |
D | VolumeControlNativeCallback.java | 53 private BluetoothDevice getDevice(byte[] address) { in getDevice() method in VolumeControlNativeCallback 73 event.device = getDevice(address); in onConnectionStateChanged() 85 event.device = getDevice(address); in onVolumeStateChanged() 113 event.device = getDevice(address); in onDeviceAvailable() 125 event.device = getDevice(address); in onExtAudioOutVolumeOffsetChanged() 137 event.device = getDevice(address); in onExtAudioOutLocationChanged() 149 event.device = getDevice(address); in onExtAudioOutDescriptionChanged() 163 getDevice(address), id, gainSetting, mute, gainMode)); in onExtAudioInStateChanged() 168 sendMessageToService(s -> s.onExtAudioInSetGainSettingFailed(getDevice(address), id)); in onExtAudioInSetGainSettingFailed() 173 sendMessageToService(s -> s.onExtAudioInSetMuteFailed(getDevice(address), id)); in onExtAudioInSetMuteFailed() [all …]
|
/packages/modules/UprobeStats/src/test/ |
D | SmokeTest.java | 78 HostFlagsValueProvider.createCheckFlagsRule(this::getDevice); 82 ConfigUtils.removeConfig(getDevice()); in setUp() 83 ReportUtils.clearReports(getDevice()); in setUp() 84 getDevice().deleteFile(CONFIG_DIR + CONFIG_NAME); in setUp() 86 getDevice().executeShellCommand("killall uprobestats"); in setUp() 106 ITestDevice device = getDevice(); in startUprobeStats() 107 assertThat(getDevice().enableAdbRoot()).isTrue(); in startUprobeStats() 108 assertThat(getDevice().pushFile(tmp, CONFIG_DIR + CONFIG_NAME)).isTrue(); in startUprobeStats() 114 ConfigUtils.uploadConfig(getDevice(), configBuilder); in startUprobeStats() 159 DeviceUtils.setChargingState(getDevice(), 2); in batteryStats() [all …]
|
/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/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()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfpclient/ |
D | NativeInterface.java | 332 private BluetoothDevice getDevice(byte[] address) { in getDevice() method in NativeInterface 348 event.device = getDevice(address); in onConnectionStateChanged() 364 event.device = getDevice(address); in onAudioStateChanged() 381 event.device = getDevice(address); in onVrStateChanged() 398 event.device = getDevice(address); in onNetworkState() 416 event.device = getDevice(address); in onNetworkRoaming() 432 event.device = getDevice(address); in onNetworkSignal() 446 event.device = getDevice(address); in onBatteryLevel() 460 event.device = getDevice(address); in onCurrentOperator() 476 event.device = getDevice(address); in onCall() [all …]
|