/frameworks/base/tests/StagedInstallTest/src/com/android/tests/stagedinstallinternal/host/ |
D | StagedInstallInternalTest.java | 121 if (!getDevice().isAdbRoot()) { in deleteFiles() 122 getDevice().enableAdbRoot(); in deleteFiles() 129 CommandResult result = getDevice().executeShellV2Command("ls " + file); in deleteFiles() 142 getDevice().remountSystemWritable(); in deleteFiles() 145 getDevice().remountVendorWritable(); in deleteFiles() 148 getDevice().executeShellCommand("rm -rf " + file); in deleteFiles() 150 getDevice().reboot(); in deleteFiles() 161 if (!getDevice().isAdbRoot()) { in pushTestApex() 162 getDevice().enableAdbRoot(); in pushTestApex() 165 getDevice().remountSystemWritable(); in pushTestApex() [all …]
|
/frameworks/base/tests/RollbackTest/StagedRollbackTest/src/com/android/tests/rollback/host/ |
D | StagedRollbackTest.java | 83 mLogger.start(getDevice()); in setUp() 84 getDevice().uninstallPackage("com.android.cts.install.lib.testapp.A"); in setUp() 85 getDevice().uninstallPackage("com.android.cts.install.lib.testapp.B"); in setUp() 86 getDevice().uninstallPackage("com.android.cts.install.lib.testapp.C"); in setUp() 91 getDevice().uninstallPackage("com.android.cts.install.lib.testapp.A"); in tearDown() 92 getDevice().uninstallPackage("com.android.cts.install.lib.testapp.B"); in tearDown() 93 getDevice().uninstallPackage("com.android.cts.install.lib.testapp.C"); in tearDown() 110 getDevice().enableAdbRoot(); in deleteFiles() 113 CommandResult result = getDevice().executeShellV2Command("ls " + file); in deleteFiles() 121 getDevice().remountSystemWritable(); in deleteFiles() [all …]
|
/frameworks/base/tests/RollbackTest/MultiUserRollbackTest/src/com/android/tests/rollback/host/ |
D | MultiUserRollbackTest.java | 63 getDevice().isMultiUserSupported()); in setup() 66 mOriginalUserId = getDevice().getCurrentUser(); in setup() 83 getDevice().reboot(); in testStagedRollback() 86 getDevice().startUser(mSecondaryUserId); in testStagedRollback() 89 getDevice().reboot(); in testStagedRollback() 91 getDevice().startUser(mSecondaryUserId); in testStagedRollback() 94 getDevice().reboot(); in testStagedRollback() 96 getDevice().startUser(mSecondaryUserId); in testStagedRollback() 105 assertTrue(getDevice().switchUser(mSecondaryUserId)); in testBadUpdateRollback() 114 getDevice().executeShellCommand("pm rollback-app com.android.cts.install.lib.testapp.A"); in testMultipleUsers() [all …]
|
/frameworks/base/tests/RollbackTest/NetworkStagedRollbackTest/src/com/android/tests/rollback/host/ |
D | NetworkStagedRollbackTest.java | 65 mLogger.start(getDevice()); in setUp() 82 getDevice().executeShellCommand("svc wifi disable"); in testNetworkFailedRollback() 83 getDevice().executeShellCommand("svc data disable"); in testNetworkFailedRollback() 87 getDevice().reboot(); in testNetworkFailedRollback() 92 assertTrue(getDevice().waitForDeviceNotAvailable(TimeUnit.MINUTES.toMillis(5))); in testNetworkFailedRollback() 94 getDevice().waitForDeviceAvailable(); in testNetworkFailedRollback() 105 getDevice().executeShellCommand("svc wifi enable"); in testNetworkFailedRollback() 106 getDevice().executeShellCommand("svc data enable"); in testNetworkFailedRollback() 117 getDevice().reboot(); in testNetworkPassedDoesNotRollback() 123 getDevice().executeShellCommand("svc wifi enable"); in testNetworkPassedDoesNotRollback() [all …]
|
/frameworks/native/services/inputflinger/tests/ |
D | FakeEventHub.cpp | 53 Device* device = getDevice(deviceId); in isDeviceEnabled() 63 Device* device = getDevice(deviceId); in enableDevice() 77 Device* device = getDevice(deviceId); in disableDevice() 94 getDevice(deviceId)->configuration.addProperty(key, value); in addConfigurationProperty() 98 getDevice(deviceId)->configuration.addAll(configuration); in addConfigurationMap() 103 Device* device = getDevice(deviceId); in addAbsoluteAxis() 116 getDevice(deviceId)->relativeAxes.add(axis, true); in addRelativeAxis() 120 getDevice(deviceId)->keyCodeStates.replaceValueFor(keyCode, state); in setKeyCodeState() 124 getDevice(deviceId)->layoutInfo = info; in setRawLayoutInfo() 128 getDevice(deviceId)->scanCodeStates.replaceValueFor(scanCode, state); in setScanCodeState() [all …]
|
/frameworks/base/services/tests/BackgroundInstallControlServiceTests/host/src/com/android/server/pm/test/ |
D | BackgroundInstallControlServiceHostTest.java | 53 assertThat(getDevice().getAppPackageInfo(MOCK_PACKAGE_NAME_1)).isNotNull(); in testGetMockBackgroundInstalledPackages() 54 assertThat(getDevice().getAppPackageInfo(MOCK_PACKAGE_NAME_2)).isNotNull(); in testGetMockBackgroundInstalledPackages() 57 getDevice() in testGetMockBackgroundInstalledPackages() 64 assertThat(getDevice().uninstallPackage(MOCK_PACKAGE_NAME_1)).isNull(); in testGetMockBackgroundInstalledPackages() 65 assertThat(getDevice().uninstallPackage(MOCK_PACKAGE_NAME_2)).isNull(); in testGetMockBackgroundInstalledPackages() 67 assertThat(getDevice().getAppPackageInfo(MOCK_PACKAGE_NAME_1)).isNull(); in testGetMockBackgroundInstalledPackages() 68 assertThat(getDevice().getAppPackageInfo(MOCK_PACKAGE_NAME_2)).isNull(); in testGetMockBackgroundInstalledPackages() 87 CommandResult result = getDevice().executeShellV2Command(cmd); in installPackage()
|
/frameworks/base/tests/BinaryTransparencyHostTest/src/android/transparency/test/ |
D | BinaryTransparencyHostTest.java | 67 CommandResult result = getDevice().executeShellV2Command( in testCollectAllApexInfo() 98 assertNotNull(getDevice().getAppPackageInfo("com.android.test.split.feature")); in testCollectAllSilentInstalledMbaInfo() 99 assertNotNull(getDevice().getAppPackageInfo("com.android.egg")); in testCollectAllSilentInstalledMbaInfo() 101 assertTrue(getDevice().setProperty("debug.transparency.bg-install-apps", in testCollectAllSilentInstalledMbaInfo() 148 CommandResult result = getDevice().executeShellV2Command( in cancelPendingJob() 159 CommandResult result = getDevice().executeShellV2Command( in expectJobToBeScheduled() 182 CommandResult result = getDevice().executeShellV2Command( in uninstallRebootlessApexThenReboot() 187 getDevice().reboot(); in uninstallRebootlessApexThenReboot() 190 CommandResult runResult = getDevice().executeShellV2Command("setenforce 0"); in uninstallRebootlessApexThenReboot() 196 CommandResult result = getDevice().executeShellV2Command("pm path com.android.egg"); in updatePreloadApp() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/hearingaid/ |
D | HearingDevicesPresetsController.java | 78 if (device.equals(mActiveHearingDevice.getDevice())) { in onPresetSelected() 93 if (device.equals(mActiveHearingDevice.getDevice())) { in onPresetInfoChanged() 107 if (device.equals(mActiveHearingDevice.getDevice())) { in onPresetSelectionFailed() 119 if (hapGroupId == mHapClientProfile.getHapGroup(mActiveHearingDevice.getDevice())) { in onPresetSelectionForGroupFailed() 131 if (device.equals(mActiveHearingDevice.getDevice())) { in onSetPresetNameFailed() 143 if (hapGroupId == mHapClientProfile.getHapGroup(mActiveHearingDevice.getDevice())) { in onSetPresetNameForGroupFailed() 200 mActiveHearingDevice.getDevice()); in selectPreset() 201 int hapGroupId = mHapClientProfile.getHapGroup(mActiveHearingDevice.getDevice()); in selectPreset() 223 return mHapClientProfile.getAllPresetInfo(mActiveHearingDevice.getDevice()); in getAllPresetInfo() 235 return mHapClientProfile.getActivePresetIndex(mActiveHearingDevice.getDevice()); in getActivePresetIndex() [all …]
|
/frameworks/hardware/interfaces/stats/aidl/vts/java/src/com/android/vts/istats/ |
D | VendorAtomTests.java | 54 ConfigUtils.removeConfig(getDevice()); in setUp() 55 ReportUtils.clearReports(getDevice()); in setUp() 61 ConfigUtils.removeConfig(getDevice()); in tearDown() 62 ReportUtils.clearReports(getDevice()); in tearDown() 73 ConfigUtils.uploadConfigForPushedAtom(getDevice(), ISTATS_TEST_PKG, 1000); in testReportVendorAtomWrongId() 80 ConfigUtils.uploadConfigForPushedAtom(getDevice(), ISTATS_TEST_PKG, in testReportVendorAtomInt() 91 ConfigUtils.uploadConfigForPushedAtom(getDevice(), ISTATS_TEST_PKG, in testReportVendorAtomRepeated() 120 runDeviceTestsOnVendorAtom(getDevice(), methodName); in checkDeviceFor() 148 runDeviceTestsOnVendorAtom(getDevice(), testMethodName); in runVendorAtomDeviceTests() 151 return ReportUtils.getEventMetricDataList(getDevice()); in runVendorAtomDeviceTests()
|
/frameworks/base/core/tests/overlaytests/host/src/com/android/server/om/hosttest/ |
D | InstallOverlayTests.java | 99 assertEquals("v1", getDevice() in installPlatformSignedAppOverlayAndUpdate() 107 assertEquals("v2", getDevice() in installPlatformSignedAppOverlayAndUpdate() 121 assertEquals("v1", getDevice() in installPlatformSignedFrameworkOverlayAndUpdate() 129 assertEquals("v2", getDevice() in installPlatformSignedFrameworkOverlayAndUpdate() 163 getDevice().enableAdbRoot(); in changesPersistedWhenUninstallingDisabledOverlay() 164 assertFalse(getDevice().executeShellCommand("cat /data/system/overlays.xml") in changesPersistedWhenUninstallingDisabledOverlay() 167 assertTrue(getDevice().executeShellCommand("cat /data/system/overlays.xml") in changesPersistedWhenUninstallingDisabledOverlay() 171 assertFalse(getDevice().executeShellCommand("cat /data/system/overlays.xml") in changesPersistedWhenUninstallingDisabledOverlay() 232 return getDevice().executeShellCommand(cmd); in shell()
|
/frameworks/base/tests/ManagedProfileLifecycleStressTest/src/com/android/test/stress/ |
D | ManagedProfileLifecycleStressTest.java | 58 getDevice().executeShellCommand("settings put global verifier_verify_adb_installs 0"); in testCreateStartDelete() 81 getDevice().executeShellCommand("settings put global verifier_verify_adb_installs 0"); in testCreateStartDeleteStable() 108 getDevice().executeShellCommand( in waitForBroadcastIdle() 123 final String output = getDevice().executeShellCommand( in createManagedProfile() 134 String commandOutput = getDevice().executeShellCommand(command); in setProfileOwner() 139 final String output = getDevice().executeShellCommand("pm remove-user " + userId).trim(); in removeUser() 144 final String output = getDevice().executeShellCommand("am start-user -w " + userId).trim(); in startUser()
|
/frameworks/base/tests/utils/hostutils/src/com/android/internal/util/test/ |
D | SystemPreparer.java | 94 final ITestDevice device = mDeviceProvider.getDevice(); in pushResourceFile() 104 final ITestDevice device = mDeviceProvider.getDevice(); in pushFile() 126 final ITestDevice device = mDeviceProvider.getDevice(); in deleteFile() 135 final ITestDevice device = mDeviceProvider.getDevice(); in installResourceApk() 147 final ITestDevice device = mDeviceProvider.getDevice(); in stageMultiplePackages() 164 final ITestDevice device = mDeviceProvider.getDevice(); in setOverlayEnabled() 190 ITestDevice device = mDeviceProvider.getDevice(); in reboot() 260 final ITestDevice device = mDeviceProvider.getDevice(); in after() 345 ITestDevice device = mDeviceProvider.getDevice(); 364 ITestDevice device = mDeviceProvider.getDevice(); [all …]
|
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/ |
D | MtpClient.java | 228 public MtpDevice getDevice(String deviceName) { in getDevice() method in MtpClient 241 public MtpDevice getDevice(int id) { in getDevice() method in MtpClient 274 MtpDevice device = getDevice(deviceName); in getStorageList() 306 MtpDevice device = getDevice(deviceName); in getObjectInfo() 321 MtpDevice device = getDevice(deviceName); in deleteObject() 342 MtpDevice device = getDevice(deviceName); in getObjectList() 378 MtpDevice device = getDevice(deviceName); in getObject() 393 MtpDevice device = getDevice(deviceName); in getThumbnail() 411 MtpDevice device = getDevice(deviceName); in importFile()
|
/frameworks/base/services/tests/PackageManagerServiceTests/host/src/com/android/server/pm/test/ |
D | SettingsTest.java | 76 int userId = getDevice().getCurrentUser(); in performTest() 85 BlockDeviceWriter.damageFileAgainstBlockDevice(getDevice(), packagesXml.getAbsolutePath(), in performTest() 87 BlockDeviceWriter.dropCaches(getDevice()); in performTest() 94 ITestDevice device = getDevice(); in enableFsVerity()
|
/frameworks/base/tests/FsVerityTest/src/com/android/fsverity/ |
D | FsVerityHostTest.java | 59 HostFlagsValueProvider.createCheckFlagsRule(this::getDevice); 65 ITestDevice device = getDevice(); in testFsVeritySmallFile() 77 ITestDevice device = getDevice(); in testFsVerityLargerFileWithOneMoreMerkleTreeLevel() 87 return "/data/user/" + getDevice().getCurrentUser() + "/" + TARGET_PACKAGE + "/files/" in getTargetFilePath()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
D | CsipDeviceManager.java | 56 final int groupId = getBaseGroupId(newDevice.getDevice()); in initCsipDeviceIfNeeded() 118 + cachedDevice.getDevice().getAnonymizedAddress()); in getCachedDevice() 131 final int newGroupId = getBaseGroupId(cachedDevice.getDevice()); in updateCsipDevices() 247 + " address=" + firstMember.getDevice().getAnonymizedAddress()); in getFirstMemberDevice() 325 BluetoothDevice bluetoothDeviceOfPreferredMainDevice = preferredMainDevice.getDevice(); in addMemberDevicesIntoMainDevice() 361 if (deviceItem.getDevice() == null || deviceItem.getDevice().equals( in addMemberDevicesIntoMainDevice() 396 final BluetoothDevice device = cachedDevice.getDevice(); in isDeviceConnected()
|
D | HearingAidDeviceManager.java | 285 if (hap != null && !hap.supportsSynchronizedPresets(device.getDevice())) { in syncDeviceIfNeeded() 288 int mainPresetIndex = hap.getActivePresetIndex(mainDevice.getDevice()); in syncDeviceIfNeeded() 289 int presetIndex = hap.getActivePresetIndex(device.getDevice()); in syncDeviceIfNeeded() 296 hap.selectPreset(device.getDevice(), mainPresetIndex); in syncDeviceIfNeeded() 307 + device.getDevice().getAnonymizedAddress()); in setAudioRoutingConfig() 400 long hiSyncId = asha.getHiSyncId(cachedDevice.getDevice()); in generateHearingAidInfo() 403 .setAshaDeviceSide(asha.getDeviceSide(cachedDevice.getDevice())) in generateHearingAidInfo() 404 .setAshaDeviceMode(asha.getDeviceMode(cachedDevice.getDevice())) in generateHearingAidInfo() 420 int audioLocation = leAudioProfile.getAudioLocation(cachedDevice.getDevice()); in generateHearingAidInfo() 421 int hearingAidType = hapClientProfile.getHearingAidType(cachedDevice.getDevice()); in generateHearingAidInfo()
|
D | CachedBluetoothDeviceManager.java | 94 if (cachedDevice.getDevice().equals(device)) { in findDevice() 101 if (memberDevice.getDevice().equals(device)) { in findDevice() 108 if (subDevice != null && subDevice.getDevice().equals(device)) { in findDevice() 202 if (!cachedDevice.getDevice().equals(device)) { in isSubDevice() 207 if (memberDevice.getDevice().equals(device)) { in isSubDevice() 215 if (subDevice != null && subDevice.getDevice().equals(device)) { in isSubDevice() 287 if (memberDevice.getDevice().getBondState() == BluetoothDevice.BOND_NONE) { in clearNonBondedSubDevices() 295 && subDevice.getDevice().getBondState() == BluetoothDevice.BOND_NONE) { in clearNonBondedSubDevices() 365 boolean shouldRemove = d.getDevice().getAddress().equals(identityAddress); in removeDuplicateInstanceForIdentityAddress() 528 device.setPhonebookAccessPermission(mainDevice.getDevice().getPhonebookAccessPermission()); in syncConfigFromMainDevice()
|
/frameworks/av/services/audiopolicy/enginedefault/src/ |
D | Engine.cpp | 246 if ((availableInputDevices.getDevice(AUDIO_DEVICE_IN_TELEPHONY_RX, in filterOutputDevicesForStrategy() 248 || ((availPrimaryInputDevices.getDevice( in filterOutputDevicesForStrategy() 417 if ((remoteSubmix = availableOutputDevices.getDevice( in getDevicesForStrategyInt() 642 device = availableDevices.getDevice( in getDeviceForInputSource() 646 device = availableDevices.getDevice( in getDeviceForInputSource() 660 (availableOutputDevices.getDevice(AUDIO_DEVICE_OUT_TELEPHONY_TX, in getDeviceForInputSource() 671 device = availableDevices.getDevice( in getDeviceForInputSource() 684 device = availableDevices.getDevice( in getDeviceForInputSource() 704 device = availableDevices.getDevice( in getDeviceForInputSource() 726 device = availableDevices.getDevice( in getDeviceForInputSource() [all …]
|
/frameworks/base/tests/OdmApps/src/com/android/test/odm/app/ |
D | OdmAppsTest.java | 26 assertNotNull(getDevice().getAppPackageInfo("com.android.test.odm.app")); in testOdmApp() 33 assertNotNull(getDevice().getAppPackageInfo("com.android.test.odm.privapp")); in testOdmPrivApp()
|
/frameworks/base/core/tests/overlaytests/remount/src/com/android/overlaytest/remounted/ |
D | OverlayRemountedTestBase.java | 39 this::getDevice); 46 getDevice().waitForDeviceAvailable(); in startBefore() 60 result = getDevice().executeShellCommand( in assertResource()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/ |
D | BluetoothMediaDevice.java | 83 return BluetoothUtils.isAdvancedUntetheredDevice(mCachedDevice.getDevice()) in getIcon() 90 return BluetoothUtils.isAdvancedUntetheredDevice(mCachedDevice.getDevice()) in getIconWithoutBackground() 114 final BluetoothClass bluetoothClass = mCachedDevice.getDevice().getBluetoothClass(); in isCarKitDevice() 130 mCachedDevice.getDevice(), BluetoothDevice.METADATA_IS_UNTETHERED_HEADSET); in isFastPairDevice()
|
/frameworks/native/services/gpuservice/vts/src/com/android/tests/gpuservice/ |
D | GpuWorkTracepointTest.java | 54 CommandResult commandResult = getDevice().executeShellV2Command( in testReadTracingEvents() 69 CommandResult commandResult = getDevice().executeShellV2Command( in testGpuWorkPeriodTracepointFormat() 79 assumeTrue(message, PropertyUtil.getVsrApiLevel(getDevice()) >= 34); in testGpuWorkPeriodTracepointFormat()
|
/frameworks/base/packages/CompanionDeviceManager/src/com/android/companiondevicemanager/ |
D | DeviceFilterPair.java | 45 T getDevice() { in getDevice() method in DeviceFilterPair 57 return getDeviceDisplayNameInternal(bleScanResult.getDevice()); in getDisplayName() 68 return MacAddress.fromString(getDeviceMacAddress(getDevice())); in getMacAddress()
|
/frameworks/base/tests/utils/hostutils/src/com/android/tests/rollback/host/ |
D | AbandonSessionsRule.java | 33 abandonSessions(mHost.getDevice()); in before() 39 abandonSessions(mHost.getDevice()); in after()
|