Home
last modified time | relevance | path

Searched refs:getDeviceId (Results 1 – 25 of 75) sorted by relevance

123

/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/
DMtpManagerTest.java53 mManager.closeDevice(mUsbDevice.getDeviceId()); in tearDown()
69 mManager.readEvent(mUsbDevice.getDeviceId(), signal); in testCancelEvent()
108 MtpEvent event = mManager.readEvent(mUsbDevice.getDeviceId(), signal); in testEventObjectAdded()
120 if (record.deviceId == mUsbDevice.getDeviceId()) { in testCreateDocumentAndGetPartialObject()
129 mUsbDevice.getDeviceId(), storageId, MtpManager.OBJECT_HANDLE_ROOT_CHILDREN)) { in testCreateDocumentAndGetPartialObject()
130 if (mManager.getObjectInfo(mUsbDevice.getDeviceId(), handle) in testCreateDocumentAndGetPartialObject()
132 mManager.deleteDocument(mUsbDevice.getDeviceId(), handle); in testCreateDocumentAndGetPartialObject()
144 mUsbDevice.getDeviceId(), in testCreateDocumentAndGetPartialObject()
154 mUsbDevice.getDeviceId(), objectHandle, 0, 5, bytes)); in testCreateDocumentAndGetPartialObject()
157 mUsbDevice.getDeviceId(), objectHandle, 6, 100, bytes)); in testCreateDocumentAndGetPartialObject()
DTestUtil.java56 waitForStorages(instrumentation, manager, device.getDeviceId()); in setupMtpDevice()
104 manager.openDevice(device.getDeviceId()); in findMtpDevice()
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
DMtpManager.java79 if (candidate.getDeviceId() == deviceId) { in openDevice()
260 roots.add(new MtpRoot(device.getDeviceId(), info)); in getRoots()
267 final MtpDevice mtpDevice = mDevices.get(device.getDeviceId()); in createDeviceRecord()
275 roots = getRoots(device.getDeviceId()); in createDeviceRecord()
292 device.getDeviceId(), name, device.getSerialNumber(), opened, roots, in createDeviceRecord()
DReceiverActivity.java44 provider.openDevice(device.getDeviceId()); in onCreate()
45 final String deviceRootId = provider.getDeviceDocumentId(device.getDeviceId()); in onCreate()
DUsbIntentReceiver.java38 MtpDocumentsProvider.getInstance().closeDevice(device.getDeviceId()); in onReceive()
/frameworks/base/core/java/android/view/
DInputEvent.java58 public abstract int getDeviceId(); in getDeviceId() method in InputEvent
66 return InputDevice.getDevice(getDeviceId()); in getDevice()
DInputEventConsistencyVerifier.java206 final int deviceId = event.getDeviceId(); in onKeyEvent()
342 final int deviceId = event.getDeviceId(); in onTouchEvent()
593 final int deviceId = keyEvent.getDeviceId(); in onUnhandledEvent()
/frameworks/base/core/java/android/hardware/usb/
DUsbDevice.java134 public int getDeviceId() { in getDeviceId() method in UsbDevice
135 return getDeviceId(mName); in getDeviceId()
329 public static int getDeviceId(String name) { in getDeviceId() method in UsbDevice
/frameworks/base/core/jni/
Dandroid_view_KeyCharacterMap.cpp57 inline int32_t getDeviceId() const { in getDeviceId() function in android::NativeKeyCharacterMap
107 parcel->writeInt32(map->getDeviceId()); in nativeWriteToParcel()
183 if (map->getMap()->getEvents(map->getDeviceId(), in nativeGetEvents()
Dandroid_view_InputEventSender.cpp117 event->getDeviceId(), event->getSource(), event->getAction(), event->getFlags(), in sendKeyEvent()
138 event->getDeviceId(), event->getSource(), in sendMotionEvent()
/frameworks/base/services/core/java/com/android/server/fingerprint/
DFingerprintsUserState.java96 old.getDeviceId())); in renameFingerprint()
156 fp.getDeviceId())); in getCopy()
187 serializer.attribute(null, ATTR_DEVICE_ID, Long.toString(fp.getDeviceId())); in doWriteState()
/frameworks/base/services/usb/java/com/android/server/usb/
DMtpNotificationManager.java92 device.getDeviceId(), in showNotification()
102 TAG, device.getDeviceId(), notification); in showNotification()
/frameworks/base/services/core/java/com/android/server/tv/
DTvInputHal.java163 retrieveStreamConfigsLocked(info.getDeviceId()); in handleMessage()
167 configs = mStreamConfigs.get(info.getDeviceId()); in handleMessage()
DTvInputHardwareManager.java158 mConnections.put(info.getDeviceId(), connection); in onDeviceAvailable()
294 String inputId = mHardwareInputIdMap.get(hardwareInfo.getDeviceId()); in addHardwareInput()
834 result = mHal.removeStream(mInfo.getDeviceId(), mActiveConfig); in setSurface()
847 result = mHal.removeStream(mInfo.getDeviceId(), mActiveConfig); in setSurface()
854 result = mHal.addOrUpdateStream(mInfo.getDeviceId(), surface, config); in setSurface()
1037 int result = mHal.addOrUpdateStream(mInfo.getDeviceId(), surface, config); in startCapture()
1051 int result = mHal.removeStream(mInfo.getDeviceId(), config); in stopCapture()
1198 String inputId = mHardwareInputIdMap.get(hardwareInfo.getDeviceId()); in onReceived()
/frameworks/base/media/java/android/mtp/
DMtpDevice.java108 public int getDeviceId() { in getDeviceId() method in MtpDevice
109 return mDevice.getDeviceId(); in getDeviceId()
/frameworks/native/services/inputflinger/
DInputReader.cpp1916 return getEventHub()->getAbsoluteAxisInfo(getDeviceId(), axis, axisInfo); in getAbsoluteAxisInfo()
1988 return getEventHub()->getSwitchState(getDeviceId(), switchCode); in getSwitchState()
2030 getDeviceId(), patternStr.string(), repeat, token); in vibrate()
2045 ALOGD("cancelVibrate: deviceId=%d, token=%d", getDeviceId(), token); in cancelVibrate()
2079 getDeviceId(), duration); in nextStep()
2081 getEventHub()->vibrate(getDeviceId(), duration); in nextStep()
2084 ALOGD("nextStep: sending cancel vibrate deviceId=%d", getDeviceId()); in nextStep()
2086 getEventHub()->cancelVibrate(getDeviceId()); in nextStep()
2099 ALOGD("stopVibrating: sending cancel vibrate deviceId=%d", getDeviceId()); in stopVibrating()
2101 getEventHub()->cancelVibrate(getDeviceId()); in stopVibrating()
[all …]
/frameworks/av/media/libmedia/
DAudioSystem.cpp505 deviceId = oldDesc->getDeviceId(); in ioConfigChanged()
509 if (ioDesc->getDeviceId() != AUDIO_PORT_HANDLE_NONE) { in ioConfigChanged()
510 deviceId = ioDesc->getDeviceId(); in ioConfigChanged()
519 ioDesc->mFrameCount, ioDesc->getDeviceId()); in ioConfigChanged()
543 deviceId = oldDesc->getDeviceId(); in ioConfigChanged()
546 if (deviceId != ioDesc->getDeviceId()) { in ioConfigChanged()
547 deviceId = ioDesc->getDeviceId(); in ioConfigChanged()
557 … ioDesc->mChannelMask, ioDesc->mFrameCount, ioDesc->mFrameCountHAL, ioDesc->getDeviceId()); in ioConfigChanged()
1143 return desc->getDeviceId(); in getDeviceIdForIo()
/frameworks/av/include/media/
DAudioIoDescriptor.h45 audio_port_handle_t getDeviceId() { in getDeviceId() function
/frameworks/base/media/java/android/media/tv/
DDvbDeviceInfo.java78 public int getDeviceId() { in getDeviceId() method in DvbDeviceInfo
DTvInputHardwareInfo.java76 public int getDeviceId() { in getDeviceId() method in TvInputHardwareInfo
/frameworks/base/core/java/android/hardware/fingerprint/
DFingerprint.java70 public long getDeviceId() { return mDeviceId; } in getDeviceId() method in Fingerprint
/frameworks/base/telephony/java/com/android/internal/telephony/
DIPhoneSubInfo.aidl28 String getDeviceId(String callingPackage); in getDeviceId() method
/frameworks/base/core/tests/coretests/src/android/util/
DKeyUtils.java62 final KeyCharacterMap keyCharMap = KeyCharacterMap.load(pushMenuKey.getDeviceId()); in chordMenuKey()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DPhoneSubInfoControllerTest.java75 doReturn("353626073736741").when(mPhone).getDeviceId(); in testGetDeviceId()
76 doReturn("353626073736742").when(mSecondPhone).getDeviceId(); in testGetDeviceId()
85 doReturn("353626073736741").when(mPhone).getDeviceId(); in testGetDeviceIdWithOutPermission()
86 doReturn("353626073736742").when(mSecondPhone).getDeviceId(); in testGetDeviceIdWithOutPermission()
/frameworks/native/libs/input/tests/
DInputPublisherAndConsumer_test.cpp103 EXPECT_EQ(deviceId, keyEvent->getDeviceId()); in PublishAndConsumeKeyEvent()
187 EXPECT_EQ(deviceId, motionEvent->getDeviceId()); in PublishAndConsumeMotionEvent()

123