Home
last modified time | relevance | path

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

123456

/packages/modules/StatsD/tests/src/android/cts/statsd/atom/
DAtomTestCase.java152 getDevice().uninstallPackage(DEVICE_SIDE_TEST_PACKAGE); in tearDown()
235 CommandResult cr = getDevice().executeShellV2Command(cmd); in resetPerfettoGuardrails()
241 return getDevice().executeShellCommand("if [ -e " + path + " ] ; then" in probe()
299 getDevice().pushFile(configFile, remotePath); in uploadConfig()
300 getDevice().executeShellCommand( in uploadConfig()
303 getDevice().executeShellCommand("rm " + remotePath); in uploadConfig()
307 getDevice().executeShellCommand( in removeConfig()
818 strUid = getDevice().executeShellCommand("id -u"); in getHostUid()
823 if (getDevice().isAdbRoot()) { in getHostUid()
832 return getDevice().executeShellCommand("getprop " + prop).replace("\n", ""); in getProperty()
[all …]
DDeviceAtomTestCase.java56 getDevice().uninstallPackage(DEVICE_SIDE_TEST_PACKAGE); in setUp()
63 getDevice().uninstallPackage(DEVICE_SIDE_TEST_PACKAGE); in tearDown()
169 int currentUser = getDevice().getCurrentUser(); in getUid()
170 String uidLine = getDevice().executeShellCommand("cmd package list packages -U --user " in getUid()
193 getDevice().uninstallPackage(DEVICE_SIDE_TEST_PACKAGE); in uninstallPackage()
200 getDevice().executeShellCommand(String.format( in allowBackgroundServices()
210 getDevice().executeShellCommand(String.format( in executeBackgroundService()
219 getDevice().executeShellCommand("am set-standby-bucket " in allowImmediateSyncs()
259 getDevice().executeShellCommand( in withActivity()
262 getDevice().executeShellCommand( in withActivity()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetNativeInterface.java70 private BluetoothDevice getDevice(byte[] address) { in getDevice() method in HeadsetNativeInterface
77 getDevice(address)); in onConnectionStateChanged()
86 getDevice(address)); in onAudioStateChanged()
93 getDevice(address)); in onVrStateChanged()
99 new HeadsetStackEvent(HeadsetStackEvent.EVENT_TYPE_ANSWER_CALL, getDevice(address)); in onAnswerCall()
105 new HeadsetStackEvent(HeadsetStackEvent.EVENT_TYPE_HANGUP_CALL, getDevice(address)); in onHangupCall()
112 getDevice(address)); in onVolumeChanged()
119 getDevice(address)); in onDialCall()
126 getDevice(address)); in onSendDtmf()
133 getDevice(address)); in onNoiseReductionEnable()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/
DNativeInterface.java303 private BluetoothDevice getDevice(byte[] address) { in getDevice() method in NativeInterface
314 event.device = getDevice(address); in onConnectionStateChanged()
331 event.device = getDevice(address); in onAudioStateChanged()
347 event.device = getDevice(address); in onVrStateChanged()
364 event.device = getDevice(address); in onNetworkState()
382 event.device = getDevice(address); in onNetworkRoaming()
398 event.device = getDevice(address); in onNetworkSignal()
413 event.device = getDevice(address); in onBatteryLevel()
428 event.device = getDevice(address); in onCurrentOperator()
444 event.device = getDevice(address); in onCall()
[all …]
/packages/modules/Gki/test/src/com/android/gki/tests/
DGkiInstallTest.java124 getDevice().waitForDeviceAvailable(DEVICE_AVAIL_TIMEOUT_MS); in skipTestIfPackageNotInstalled()
129 ApexInfo oldApexInfo = getApexInfo(getDevice(), mPackageName); in skipTestIfPackageNotInstalled()
155 String kernel = getDevice().executeShellCommand("cat /proc/version"); in skipTestIfWrongKernelVersion()
195 mOverlayfs.addAll(getOverlayfsState(getDevice())); in prepareOverlayfs()
198 getDevice().enableAdbRoot(); in prepareOverlayfs()
199 getDevice().executeAdbCommand("enable-verity"); in prepareOverlayfs()
200 rebootUntilAvailable(getDevice(), DEVICE_AVAIL_TIMEOUT_MS); in prepareOverlayfs()
207 String result = getDevice().installPackage(mApexFile, false, in testInstallAndReboot()
217 rebootUntilAvailable(getDevice(), DEVICE_AVAIL_TIMEOUT_MS); in testInstallAndReboot()
219 ApexInfo newApexInfo = getApexInfo(getDevice(), mPackageName); in testInstallAndReboot()
[all …]
/packages/services/Mtp/src/com/android/mtp/
DMtpManager.java119 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/Virtualization/tests/hostside/java/android/virt/test/
DMicrodroidTestCase.java74 getDevice().executeShellCommand(prepareImagesCmd); in testMicrodroidBoots()
81 getDevice().executeShellCommand(makeOsCompositeCmd); in testMicrodroidBoots()
86 getDevice().executeShellCommand(makeEnvCompositeCmd); in testMicrodroidBoots()
92 getDevice().executeShellCommand(makeDataCompositeCmd); in testMicrodroidBoots()
98 getDevice().executeShellCommand(makeDataCompositeQcow2Cmd); in testMicrodroidBoots()
103 getDevice().executeShellCommand(makePayloadCompositeCmd); in testMicrodroidBoots()
114 getDevice().executeShellV2Command("du -b " + String.join(" ", compositeImages)); in testMicrodroidBoots()
130 getDevice().executeShellV2Command(runMicrodroidCmd); in testMicrodroidBoots()
142 + getDevice().getSerialNumber() in testMicrodroidBoots()
177 getDevice().executeShellCommand("rm -rf " + TEST_ROOT); in setUp()
[all …]
/packages/services/Car/service/src/com/android/car/
DBluetoothProfileInhibitManager.java100 public BluetoothDevice getDevice() { in getDevice() method in BluetoothProfileInhibitManager.BluetoothConnection
213 + " for device " + mParams.getDevice() in binderDied()
374 params.getDevice()); in addInhibitRecord()
381 + " already disabled for device " + params.getDevice() in addInhibitRecord()
386 params.getDevice(), in addInhibitRecord()
390 params.getDevice()); in addInhibitRecord()
393 + " for device " + params.getDevice()); in addInhibitRecord()
470 + params.getDevice() + " - was manually disabled"); in restoreProfilePriority()
477 params.getDevice(), in restoreProfilePriority()
481 params.getDevice()); in restoreProfilePriority()
[all …]
/packages/modules/SdkExtensions/tests/e2e/Extensions/test-src/com/android/tests/apex/sdkextensions/
DSdkExtensionsHostTest.java80 String installResult = getDevice().installPackage(testAppFile, true); in installTestApp()
87 getDevice().uninstallPackage(APP_PACKAGE); in cleanup()
130 String installResult = getDevice().installPackage(appFile, true); in canInstallApp()
134 assertNull(getDevice().uninstallPackage(packageName)); in canInstallApp()
140 CommandResult res = getDevice().executeShellV2Command(command); in getExtensionVersionFromSysprop()
147 CommandResult res = getDevice().executeShellV2Command(command); in broadcast()
237 String res = getDevice().uninstallPackage(apex.name); in uninstallApexes()
249 getDevice().reboot(); in reboot()
250 boolean success = getDevice().waitForBootComplete(BOOT_COMPLETE_TIMEOUT.toMillis()); in reboot()
/packages/apps/Launcher3/tests/tapl/com/android/launcher3/tapl/
DBackground.java77 final int centerX = mLauncher.getDevice().getDisplayWidth() / 2; in goToOverviewUnchecked()
119 if (mLauncher.getDevice().isNaturalOrientation()) { in goToOverviewUnchecked()
120 startX = endX = mLauncher.getDevice().getDisplayWidth() / 2; in goToOverviewUnchecked()
128 startY = endY = mLauncher.getDevice().getDisplayHeight() / 2; in goToOverviewUnchecked()
182 if (mLauncher.getDevice().isNaturalOrientation() || !transposeInLandscape) { in quickSwitch()
186 endX = mLauncher.getDevice().getDisplayWidth() - cornerRadius; in quickSwitch()
196 if (mLauncher.getDevice().isNaturalOrientation() || !transposeInLandscape) { in quickSwitch()
198 startX = mLauncher.getDevice().getDisplayWidth() - cornerRadius; in quickSwitch()
/packages/apps/TimeZoneData/testing/xts/src/com/android/timezone/xts/
DTimeZoneUpdateHostTest.java109 public ITestDevice getDevice() { in getDevice() method in TimeZoneUpdateHostTest
197 getDevice().installPackage(appFile, true /* reinstall */); in testInstallNewerRulesVersion()
215 ITestDevice device = getDevice(); in testInstallNewerRulesVersion_secondaryUser()
258 getDevice().installPackage(appFile, true /* reinstall */); in testInstallOlderRulesVersion()
273 getDevice().reboot(); in rebootDeviceAndWaitForRestart()
399 String output = getDevice().executeShellCommand( in getDeviceTimeZoneState()
408 String output = getDevice().executeShellCommand("dumpsys timezone"); in dumpEntireTimeZoneStatusToString()
420 for (String installedPackage : getDevice().getInstalledPackageNames()) { in isPackageInstalled()
429 return getDevice().uninstallPackage(packageName); in uninstallPackage()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DMtpClient.java254 public MtpDevice getDevice(String deviceName) { in getDevice() method in MtpClient
267 public MtpDevice getDevice(int id) { in getDevice() method in MtpClient
300 MtpDevice device = getDevice(deviceName); in getStorageList()
332 MtpDevice device = getDevice(deviceName); in getObjectInfo()
347 MtpDevice device = getDevice(deviceName); in deleteObject()
368 MtpDevice device = getDevice(deviceName); in getObjectList()
404 MtpDevice device = getDevice(deviceName); in getObject()
419 MtpDevice device = getDevice(deviceName); in getThumbnail()
437 MtpDevice device = getDevice(deviceName); in importFile()
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothBondedDevicesPreferenceController.java193 && !finalPhoneProfile.isEnabled(cachedDevice.getDevice()) in setButtonsCheckedAndListeners()
194 && !finalMediaProfile.isEnabled(cachedDevice.getDevice())) { in setButtonsCheckedAndListeners()
195 finalPhoneProfile.setEnabled(cachedDevice.getDevice(), true); in setButtonsCheckedAndListeners()
196 finalMediaProfile.setEnabled(cachedDevice.getDevice(), true); in setButtonsCheckedAndListeners()
208 boolean phoneEnabled = phoneProfile.isEnabled(cachedDevice.getDevice()); in setButtonsCheckedAndListeners()
211 finalPhoneProfile.setEnabled(cachedDevice.getDevice(), isChecked)); in setButtonsCheckedAndListeners()
221 boolean mediaEnabled = mediaProfile.isEnabled(cachedDevice.getDevice()); in setButtonsCheckedAndListeners()
224 finalMediaProfile.setEnabled(cachedDevice.getDevice(), isChecked)); in setButtonsCheckedAndListeners()
DBluetoothDeviceProfilePreference.java43 setTitle(profile.getNameResource(cachedDevice.getDevice())); in BluetoothDeviceProfilePreference()
77 mProfile.getConnectionStatus(mCachedDevice.getDevice()) == STATE_CONNECTED); in refreshUi()
79 setChecked(mProfile.isEnabled(mCachedDevice.getDevice())); in refreshUi()
/packages/modules/StatsD/tests/src/android/cts/statsd/uidmap/
DUidMapTests.java67 getDevice().uninstallPackage(DEVICE_SIDE_TEST_PACKAGE); in testChangeFromInstallation()
72 final String result = getDevice().installPackage( in testChangeFromInstallation()
94 getDevice().installPackage(buildHelper.getTestFile(DEVICE_SIDE_TEST_APK), false, true); in testChangeFromReinstall()
97 getDevice().installPackage(buildHelper.getTestFile(DEVICE_SIDE_TEST_APK), true, true); in testChangeFromReinstall()
117 getDevice().installPackage(buildHelper.getTestFile(DEVICE_SIDE_TEST_APK), true, true); in testChangeFromUninstall()
120 getDevice().uninstallPackage(DEVICE_SIDE_TEST_PACKAGE); in testChangeFromUninstall()
/packages/modules/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()
/packages/modules/SdkExtensions/tests/cts/Classpaths/src/android/os/ext/classpath/cts/
DClasspathsTest.java74 ITestDevice device = getDevice(); in before()
81 ImmutableList<String> jars = getJarsOnClasspath(getDevice(), BOOTCLASSPATH); in testBootclasspath()
105 ImmutableList<String> jars = getJarsOnClasspath(getDevice(), DEX2OATBOOTCLASSPATH); in testDex2oatBootclasspath()
117 ImmutableList<String> bootJars = getJarsOnClasspath(getDevice(), BOOTCLASSPATH); in testDex2oatBootclasspath()
132 ImmutableList<String> jars = getJarsOnClasspath(getDevice(), SYSTEMSERVERCLASSPATH); in testSystemServerClasspath()
150 ImmutableList<String> bootJars = getJarsOnClasspath(getDevice(), BOOTCLASSPATH); in testDex2oatJarsAreFirstOnBootclasspath()
151 ImmutableList<String> dex2oatJars = getJarsOnClasspath(getDevice(), DEX2OATBOOTCLASSPATH); in testDex2oatJarsAreFirstOnBootclasspath()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothDetailsProfilesController.java95 pref.setTitle(profile.getNameResource(mCachedDevice.getDevice())); in createProfilePreference()
106 BluetoothDevice device = mCachedDevice.getDevice(); in refreshProfilePreference()
142 final BluetoothDevice bluetoothDevice = mCachedDevice.getDevice(); in enableProfile()
158 final BluetoothDevice bluetoothDevice = mCachedDevice.getDevice(); in disableProfile()
199 final BluetoothDevice device = mCachedDevice.getDevice(); in getProfiles()
228 BluetoothDevice device = mCachedDevice.getDevice(); in maybeAddHighQualityAudioPref()
237 a2dp.setHighQualityAudioEnabled(mCachedDevice.getDevice(), enable); in maybeAddHighQualityAudioPref()
DBluetoothDeviceUpdater.java243 final BluetoothDevice device = cachedDevice.getDevice(); in addPreference()
264 final BluetoothDevice device = cachedDevice.getDevice(); in removePreference()
273 final BluetoothDevice subDevice = subCachedDevice.getDevice(); in removePreference()
294 device.getDevice().getAddress()); in launchDeviceDetails()
312 final BluetoothDevice device = cachedDevice.getDevice(); in isDeviceConnected()
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
DA2dpNativeInterface.java146 private BluetoothDevice getDevice(byte[] address) { in getDevice() method in A2dpNativeInterface
173 event.device = getDevice(address); in onConnectionStateChanged()
184 event.device = getDevice(address); in onAudioStateChanged()
198 event.device = getDevice(address); in onCodecConfigChanged()
211 int enabled = service.getOptionalCodecsEnabled(getDevice(address)); in isMandatoryCodecPreferred()
/packages/modules/StatsD/tests/src/android/cts/statsd/apex/
DBootstrapApexTests.java40 return ApiLevelUtil.isAtLeast(getDevice(), sdkLevel) in sdkLevelAtLeast()
41 || ApiLevelUtil.codenameEquals(getDevice(), codename); in sdkLevelAtLeast()
46 return getDevice().getBooleanProperty("ro.apex.updatable", false); in isApexUpdateSupported()
50 File file = getDevice().pullFile(BOOTSTRAP_APEX_FILE); in readBootstrapApexes()
/packages/modules/Connectivity/tests/cts/hostside/src/com/android/cts/net/
DHostsideNetworkTestCase.java82 assertNull(getDevice().installPackage(buildHelper.getTestFile(apk), in installPackage()
88 final String result = getDevice().uninstallPackage(packageName); in uninstallPackage()
132 "androidx.test.runner.AndroidJUnitRunner", getDevice().getIDevice()); in runDeviceTests()
143 getDevice().runInstrumentationTests(testRunner, listener); in runDeviceTests()
184 final String output = getDevice().executeShellCommand(command); in runCommand()
/packages/modules/Scheduling/tests/hostsidetests/src/com/android/tests/scheduling/host/
DRebootReadinessHostTest.java56 getDevice().reboot(); in testUnattendedRebootMetrics_Basic()
57 getDevice().executeAdbCommand("logcat", "-c"); in testUnattendedRebootMetrics_Basic()
60 getDevice().executeShellCommand("wm dismiss-keyguard"); in testUnattendedRebootMetrics_Basic()
64 String logs = getDevice().executeAdbCommand( in testUnattendedRebootMetrics_Basic()
/packages/apps/Bluetooth/src/com/android/bluetooth/le_audio/
DLeAudioNativeInterface.java83 private BluetoothDevice getDevice(byte[] address) { in getDevice() method in LeAudioNativeInterface
93 event.device = getDevice(address); in onConnectionStateChanged()
108 event.device = getDevice(address); in onSetMemberAvailable()
138 event.device = getDevice(address); in onAudioConf()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothPairingDetailTest.java239 when(mCachedBluetoothDevice.getDevice()).thenReturn(device); in onProfileConnectionStateChanged_deviceInSelectedListAndConnected_finish()
253 when(mCachedBluetoothDevice.getDevice()).thenReturn(mBluetoothDevice); in onProfileConnectionStateChanged_deviceNotInSelectedList_doNothing()
268 when(mCachedBluetoothDevice.getDevice()).thenReturn(device); in onProfileConnectionStateChanged_deviceDisconnected_doNothing()
285 when(mCachedBluetoothDevice.getDevice()).thenReturn(device); in onProfileConnectionStateChanged_deviceInPreferenceMapAndConnected_removed()
304 when(mCachedBluetoothDevice.getDevice()).thenReturn(device); in onProfileConnectionStateChanged_deviceNotInPreferenceMap_doNothing()
306 when(cachedDevice.getDevice()).thenReturn(device2); in onProfileConnectionStateChanged_deviceNotInPreferenceMap_doNothing()

123456