Home
last modified time | relevance | path

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

1234

/frameworks/base/tests/RollbackTest/StagedRollbackTest/src/com/android/tests/rollback/host/
DStagedRollbackTest.java57 getDevice().executeShellCommand("svc wifi disable"); in setUp()
58 getDevice().executeShellCommand("svc data disable"); in setUp()
64 getDevice().executeShellCommand("svc wifi enable"); in tearDown()
65 getDevice().executeShellCommand("svc data enable"); in tearDown()
75 getDevice().reboot(); in testBadApkOnly()
88 getDevice().waitForDeviceAvailable(); in testBadApkOnly()
99 getDevice().reboot(); in testNativeWatchdogTriggersRollback()
100 getDevice().waitForDeviceAvailable(); in testNativeWatchdogTriggersRollback()
115 assertTrue(getDevice().waitForDeviceNotAvailable(TimeUnit.MINUTES.toMillis(5))); in testNativeWatchdogTriggersRollback()
116 getDevice().waitForDeviceAvailable(); in testNativeWatchdogTriggersRollback()
[all …]
/frameworks/base/tests/RollbackTest/MultiUserRollbackTest/src/com/android/tests/rollback/host/
DMultiUserRollbackTest.java44 getDevice().switchUser(mOriginalUserId); in tearDown()
45 getDevice().executeShellCommand("pm uninstall com.android.cts.install.lib.testapp.A"); in tearDown()
51 mOriginalUserId = getDevice().getCurrentUser(); in setup()
68 getDevice().executeShellCommand("pm rollback-app com.android.cts.install.lib.testapp.A"); in testMultipleUsers()
87 getDevice().removeUser(mSecondaryUserId); in removeSecondaryUserIfNecessary()
94 mOriginalUserId = getDevice().getCurrentUser(); in createAndSwitchToSecondaryUserIfNecessary()
95 mSecondaryUserId = getDevice().createUser("MultiUserRollbackTest_User" in createAndSwitchToSecondaryUserIfNecessary()
102 if (getDevice().getCurrentUser() == userId) { in switchToUser()
106 assertTrue(getDevice().switchUser(userId)); in switchToUser()
108 String userState = getDevice().executeShellCommand("am get-started-user-state " in switchToUser()
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
DMtpManager.java115 getDevice(deviceId).close(); in closeDevice()
131 final MtpDevice device = getDevice(deviceId); in getObjectInfo()
141 final MtpDevice device = getDevice(deviceId); in getObjectHandles()
151 final MtpDevice device = getDevice(deviceId); in getObject()
161 final MtpDevice device = getDevice(deviceId); in getPartialObject()
169 final MtpDevice device = getDevice(deviceId); in getPartialObject64()
176 final MtpDevice device = getDevice(deviceId); in getThumbnail()
185 final MtpDevice device = getDevice(deviceId); in deleteDocument()
195 final MtpDevice device = getDevice(deviceId); in createDocument()
212 final MtpDevice device = getDevice(deviceId); in getParent()
[all …]
/frameworks/base/core/tests/overlaytests/host/src/com/android/server/om/hosttest/
DInstallOverlayTests.java104 assertEquals("v1", getDevice() in installPlatformSignedAppOverlayAndUpdate()
112 assertEquals("v2", getDevice() in installPlatformSignedAppOverlayAndUpdate()
126 assertEquals("v1", getDevice() in installPlatformSignedFrameworkOverlayAndUpdate()
134 assertEquals("v2", getDevice() in installPlatformSignedFrameworkOverlayAndUpdate()
168 getDevice().enableAdbRoot(); in changesPersistedWhenUninstallingDisabledOverlay()
169 assertFalse(getDevice().executeShellCommand("cat /data/system/overlays.xml") in changesPersistedWhenUninstallingDisabledOverlay()
172 assertTrue(getDevice().executeShellCommand("cat /data/system/overlays.xml") in changesPersistedWhenUninstallingDisabledOverlay()
176 assertFalse(getDevice().executeShellCommand("cat /data/system/overlays.xml") in changesPersistedWhenUninstallingDisabledOverlay()
233 return getDevice().executeShellCommand(cmd); in shell()
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/
DMtpClient.java228 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/av/services/audiopolicy/enginedefault/src/
DEngine.cpp216 if ((availableInputDevices.getDevice(AUDIO_DEVICE_IN_TELEPHONY_RX, in getDevicesForStrategyInt()
218 ((availPrimaryInputDevices.getDevice( in getDevicesForStrategyInt()
376 if ((remoteSubmix = availableOutputDevices.getDevice( in getDevicesForStrategyInt()
502 device = availableDevices.getDevice( in getDeviceForInputSource()
506 device = availableDevices.getDevice( in getDeviceForInputSource()
519 (availableOutputDevices.getDevice(AUDIO_DEVICE_OUT_TELEPHONY_TX, in getDeviceForInputSource()
527 device = availableDevices.getDevice( in getDeviceForInputSource()
554 device = availableDevices.getDevice( in getDeviceForInputSource()
571 device = availableDevices.getDevice( in getDeviceForInputSource()
580 device = availableDevices.getDevice( in getDeviceForInputSource()
[all …]
/frameworks/ml/nn/runtime/
DVersionedInterfaces.h467 sp<T_IDevice> getDevice() const;
469 sp<hal::V1_0::IDevice> getDevice() const { in getDevice() function
473 sp<hal::V1_1::IDevice> getDevice() const { in getDevice() function
477 sp<hal::V1_2::IDevice> getDevice() const { in getDevice() function
481 sp<hal::V1_3::IDevice> getDevice() const { in getDevice() function
530 sp<T_IDevice> getDevice() const EXCLUDES(mMutex) { in getDevice() function
532 return mCore.getDevice<T_IDevice>(); in getDevice()
DVersionedInterfaces.cpp687 if (const auto device = core.template getDevice<V1_3::IDevice>()) { in initialize()
692 if (const auto device = core.template getDevice<V1_2::IDevice>()) { in initialize()
697 if (const auto device = core.template getDevice<V1_1::IDevice>()) { in initialize()
702 if (const auto device = core.template getDevice<V1_0::IDevice>()) { in initialize()
826 return {getDevice<T_IDevice>(), mDeathHandler}; in getDeviceAndDeathHandler()
889 auto pingReturn = mCore.getDevice<T_IDevice>()->ping(); in recoverable()
927 auto pingReturn = mCore.getDevice<V1_0::IDevice>()->ping(); in wait()
989 if (getDevice<V1_3::IDevice>() != nullptr) { in getSupportedOperations()
1006 if (getDevice<V1_2::IDevice>() != nullptr) { in getSupportedOperations()
1039 if (getDevice<V1_1::IDevice>() != nullptr) { in getSupportedOperations()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DCachedBluetoothDeviceManager.java80 if (cachedDevice.getDevice().equals(device)) { in findDevice()
85 if (subDevice != null && subDevice.getDevice().equals(device)) { in findDevice()
137 if (!cachedDevice.getDevice().equals(device)) { in isSubDevice()
140 if (subDevice != null && subDevice.getDevice().equals(device)) { in isSubDevice()
188 && subDevice.getDevice().getBondState() == BluetoothDevice.BOND_NONE) { in clearNonBondedSubDevices()
DHearingAidDeviceManager.java45 long hiSyncId = getHiSyncId(newDevice.getDevice()); in initHearingAidDeviceIfNeeded()
96 final long newHiSyncId = getHiSyncId(cachedDevice.getDevice()); in updateHearingAidsDevices()
/frameworks/base/tests/OdmApps/src/com/android/test/odm/app/
DOdmAppsTest.java26 assertNotNull(getDevice().getAppPackageInfo("com.android.test.odm.app")); in testOdmApp()
33 assertNotNull(getDevice().getAppPackageInfo("com.android.test.odm.privapp")); in testOdmPrivApp()
/frameworks/native/services/inputflinger/reader/mapper/
DRotaryEncoderInputMapper.cpp65 mRotaryEncoderScrollAccumulator.configure(getDevice()); in configure()
79 mRotaryEncoderScrollAccumulator.reset(getDevice()); in reset()
109 if (scrolled && getDevice()->isExternal()) { in sync()
DCursorInputMapper.cpp117 mCursorScrollAccumulator.configure(getDevice()); in configure()
171 getDevice()->notifyReset(when); in configure()
222 if (getDevice()->getConfiguration().tryGetProperty(String8("cursor.mode"), cursorModeString)) { in configureParameters()
231 getDevice()->getConfiguration().tryGetProperty(String8("cursor.orientationAware"), in configureParameters()
270 mCursorButtonAccumulator.reset(getDevice()); in reset()
271 mCursorMotionAccumulator.reset(getDevice()); in reset()
272 mCursorScrollAccumulator.reset(getDevice()); in reset()
372 if ((buttonsPressed || moved || scrolled) && getDevice()->isExternal()) { in sync()
DExternalStylusInputMapper.cpp49 mTouchButtonAccumulator.configure(getDevice()); in configure()
53 InputDevice* device = getDevice(); in reset()
DMultiTouchInputMapper.cpp227 mMultiTouchMotionAccumulator.reset(getDevice()); in reset()
350 mMultiTouchMotionAccumulator.configure(getDevice(), slotCount, true /*usingSlotsProtocol*/); in configureRawPointerAxes()
352 mMultiTouchMotionAccumulator.configure(getDevice(), MAX_POINTERS, in configureRawPointerAxes()
DKeyboardInputMapper.cpp160 const PropertyMap& config = getDevice()->getConfiguration(); in configureParameters()
278 mContext->shouldDropVirtualKey(when, getDevice(), keyCode, scanCode)) { in processKey()
323 if (down && getDevice()->isExternal() && !isMediaKey(keyCode)) { in processKey()
/frameworks/base/tests/NativeProcessesMemoryTest/src/com/android/tests/nativeprocesses/
DNativeProcessesMemoryTest.java91 getDevice().enableAdbRoot(); in run()
136 public ITestDevice getDevice() { in getDevice() method in NativeProcessesMemoryTest
147 String memInfo = getDevice().executeShellCommand(DUMPSYS_MEMINFO_OOM_CMD); in collectNativeProcesses()
182 String showmap = getDevice().executeShellCommand("showmap " + pid); in snapMemoryUsage()
/frameworks/base/core/java/android/view/
DInputEvent.java66 public final InputDevice getDevice() { in getDevice() method in InputEvent
67 return InputDevice.getDevice(getDeviceId()); in getDevice()
/frameworks/base/core/java/android/bluetooth/
DBluetoothGatt.java728 if (svc.getDevice().equals(device) in getService()
968 public BluetoothDevice getDevice() { in getDevice() method in BluetoothGatt
1042 if (service.getDevice().equals(mDevice)) { in getServices()
1068 if (service.getDevice().equals(mDevice) && service.getUuid().equals(uuid)) { in getService()
1099 BluetoothDevice device = service.getDevice(); in readCharacteristic()
1179 BluetoothDevice device = service.getDevice(); in writeCharacteristic()
1222 BluetoothDevice device = service.getDevice(); in readDescriptor()
1263 BluetoothDevice device = service.getDevice(); in writeDescriptor()
1402 BluetoothDevice device = service.getDevice(); in setCharacteristicNotification()
/frameworks/ml/nn/runtime/test/
DTestFailingDriver.cpp155 ASSERT_EQ(steps[1]->executionStep()->getDevice(), DeviceManager::getCpuDevice()); in TEST_F()
158 ASSERT_EQ(steps[3]->executionStep()->getDevice(), DeviceManager::getCpuDevice()); in TEST_F()
161 ASSERT_EQ(steps[5]->executionStep()->getDevice(), mTestDevice); in TEST_F()
/frameworks/base/core/java/android/companion/
DBluetoothLeDeviceFilter.java147 return getDeviceDisplayNameInternal(sr.getDevice()); in getDeviceDisplayName()
161 getDeviceDisplayNameInternal(sr.getDevice()) in getDeviceDisplayName()
170 boolean result = matches(device.getDevice()) in matches()
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DDeviceDescriptor.cpp262 sp<DeviceDescriptor> DeviceVector::getDevice(audio_devices_t type, const String8& address, in getDevice() function in android::DeviceVector
340 if ((device = getDevice(deviceType, String8(""), AUDIO_FORMAT_DEFAULT)) != nullptr) { in getFirstExistingDevice()
359 getDevice(deviceType, String8(""), AUDIO_FORMAT_DEFAULT); in getDeviceForOpening()
/frameworks/native/include/binder/
DMemoryHeapBase.h69 const char* getDevice() const;
/frameworks/native/libs/binder/include/binder/
DMemoryHeapBase.h69 const char* getDevice() const;
/frameworks/base/tests/SystemMemoryTest/host/src/com/android/tests/sysmem/host/
DMemoryTest.java52 public ITestDevice getDevice() { in getDevice() method in MemoryTest

1234