Home
last modified time | relevance | path

Searched refs:deviceId (Results 1 – 25 of 61) sorted by relevance

123

/frameworks/base/services/core/java/com/android/server/tv/
DTvInputHal.java51 public void onDeviceUnavailable(int deviceId); in onDeviceUnavailable() argument
52 public void onStreamConfigurationChanged(int deviceId, TvStreamConfig[] configs); in onStreamConfigurationChanged() argument
53 public void onFirstFrameCaptured(int deviceId, int streamId); in onFirstFrameCaptured() argument
58 private static native int nativeAddStream(long ptr, int deviceId, int streamId, in nativeAddStream() argument
60 private static native int nativeRemoveStream(long ptr, int deviceId, int streamId); in nativeRemoveStream() argument
61 private static native TvStreamConfig[] nativeGetStreamConfigs(long ptr, int deviceId, in nativeGetStreamConfigs() argument
83 public int addStream(int deviceId, Surface surface, TvStreamConfig streamConfig) { in addStream() argument
88 int generation = mStreamConfigGenerations.get(deviceId, 0); in addStream()
92 if (nativeAddStream(mPtr, deviceId, streamConfig.getStreamId(), surface) == 0) { in addStream()
100 public int removeStream(int deviceId, TvStreamConfig streamConfig) { in removeStream() argument
[all …]
DTvInputHardwareManager.java152 public void onDeviceUnavailable(int deviceId) { in onDeviceUnavailable() argument
154 Connection connection = mConnections.get(deviceId); in onDeviceUnavailable()
156 Slog.e(TAG, "onDeviceUnavailable: Cannot find a connection with " + deviceId); in onDeviceUnavailable()
160 mConnections.remove(deviceId); in onDeviceUnavailable()
180 public void onStreamConfigurationChanged(int deviceId, TvStreamConfig[] configs) { in onStreamConfigurationChanged() argument
182 Connection connection = mConnections.get(deviceId); in onStreamConfigurationChanged()
185 + deviceId); in onStreamConfigurationChanged()
198 public void onFirstFrameCaptured(int deviceId, int streamId) { in onFirstFrameCaptured() argument
200 Connection connection = mConnections.get(deviceId); in onFirstFrameCaptured()
203 + deviceId); in onFirstFrameCaptured()
[all …]
/frameworks/native/services/inputflinger/
DEventHub.h74 int32_t deviceId; member
179 virtual uint32_t getDeviceClasses(int32_t deviceId) const = 0;
181 virtual InputDeviceIdentifier getDeviceIdentifier(int32_t deviceId) const = 0;
183 virtual int32_t getDeviceControllerNumber(int32_t deviceId) const = 0;
185 virtual void getConfiguration(int32_t deviceId, PropertyMap* outConfiguration) const = 0;
187 virtual status_t getAbsoluteAxisInfo(int32_t deviceId, int axis,
190 virtual bool hasRelativeAxis(int32_t deviceId, int axis) const = 0;
192 virtual bool hasInputProperty(int32_t deviceId, int property) const = 0;
194 virtual status_t mapKey(int32_t deviceId, int32_t scanCode, int32_t usageCode,
197 virtual status_t mapAxis(int32_t deviceId, int32_t scanCode,
[all …]
DInputListener.cpp45 NotifyKeyArgs::NotifyKeyArgs(nsecs_t eventTime, int32_t deviceId, uint32_t source, in NotifyKeyArgs() argument
49 eventTime(eventTime), deviceId(deviceId), source(source), policyFlags(policyFlags), in NotifyKeyArgs()
55 eventTime(other.eventTime), deviceId(other.deviceId), source(other.source), in NotifyKeyArgs()
69 NotifyMotionArgs::NotifyMotionArgs(nsecs_t eventTime, int32_t deviceId, uint32_t source, in NotifyMotionArgs() argument
75 eventTime(eventTime), deviceId(deviceId), source(source), policyFlags(policyFlags), in NotifyMotionArgs()
86 eventTime(other.eventTime), deviceId(other.deviceId), source(other.source), in NotifyMotionArgs()
124 NotifyDeviceResetArgs::NotifyDeviceResetArgs(nsecs_t eventTime, int32_t deviceId) : in NotifyDeviceResetArgs() argument
125 eventTime(eventTime), deviceId(deviceId) { in NotifyDeviceResetArgs()
129 eventTime(other.eventTime), deviceId(other.deviceId) { in NotifyDeviceResetArgs()
DEventHub.cpp243 InputDeviceIdentifier EventHub::getDeviceIdentifier(int32_t deviceId) const { in getDeviceIdentifier()
245 Device* device = getDeviceLocked(deviceId); in getDeviceIdentifier()
250 uint32_t EventHub::getDeviceClasses(int32_t deviceId) const { in getDeviceClasses()
252 Device* device = getDeviceLocked(deviceId); in getDeviceClasses()
257 int32_t EventHub::getDeviceControllerNumber(int32_t deviceId) const { in getDeviceControllerNumber()
259 Device* device = getDeviceLocked(deviceId); in getDeviceControllerNumber()
264 void EventHub::getConfiguration(int32_t deviceId, PropertyMap* outConfiguration) const { in getConfiguration() argument
266 Device* device = getDeviceLocked(deviceId); in getConfiguration()
274 status_t EventHub::getAbsoluteAxisInfo(int32_t deviceId, int axis, in getAbsoluteAxisInfo() argument
281 Device* device = getDeviceLocked(deviceId); in getAbsoluteAxisInfo()
[all …]
DInputListener.h56 int32_t deviceId; member
68 NotifyKeyArgs(nsecs_t eventTime, int32_t deviceId, uint32_t source, uint32_t policyFlags,
83 int32_t deviceId; member
101 NotifyMotionArgs(nsecs_t eventTime, int32_t deviceId, uint32_t source, uint32_t policyFlags,
139 int32_t deviceId; member
143 NotifyDeviceResetArgs(nsecs_t eventTime, int32_t deviceId);
DInputDispatcher.h460 int32_t deviceId; member
462 DeviceResetEntry(nsecs_t eventTime, int32_t deviceId);
470 int32_t deviceId; member
492 int32_t deviceId, uint32_t source, uint32_t policyFlags, int32_t action,
504 int32_t deviceId; member
520 int32_t deviceId, uint32_t source, uint32_t policyFlags,
685 int32_t deviceId; member
688 mode(mode), reason(reason), keyCode(-1), deviceId(-1) { } in CancelationOptions()
703 bool isHovering(int32_t deviceId, uint32_t source, int32_t displayId) const;
742 int32_t deviceId; member
[all …]
DInputDispatcher.cpp665 entry->deviceId, entry->source, policyFlags, in synthesizeKeyRepeatLocked()
703 ALOGD("dispatchDeviceReset - eventTime=%lld, deviceId=%d", entry->eventTime, entry->deviceId); in dispatchDeviceResetLocked()
708 options.deviceId = entry->deviceId; in dispatchDeviceResetLocked()
817 entry->eventTime, entry->deviceId, entry->source, entry->policyFlags, in logOutboundKeyDetailsLocked()
887 entry->eventTime, entry->deviceId, entry->source, entry->policyFlags, in logOutboundMotionDetailsLocked()
1154 bool switchedDevice = mTempTouchState.deviceId >= 0 && mTempTouchState.displayId >= 0 in findTouchedWindowTargetsLocked()
1155 && (mTempTouchState.deviceId != entry->deviceId in findTouchedWindowTargetsLocked()
1178 mTempTouchState.deviceId = entry->deviceId; in findTouchedWindowTargetsLocked()
1502 mTempTouchState.deviceId = entry->deviceId; in findTouchedWindowTargetsLocked()
1907 motionEntry->deviceId, motionEntry->source, motionEntry->displayId)) { in enqueueDispatchEntryLocked()
[all …]
/frameworks/base/services/core/jni/
Dcom_android_server_tv_TvInputHal.cpp62 jmethodID deviceId; member
74 BufferProducerThread(tv_input_device_t* device, int deviceId, const tv_stream_t* stream);
104 tv_input_device_t* device, int deviceId, const tv_stream_t* stream) in BufferProducerThread() argument
107 mDeviceId(deviceId), in BufferProducerThread()
238 int addStream(int deviceId, int streamId, const sp<Surface>& surface);
239 int removeStream(int deviceId, int streamId);
240 const tv_stream_config_t* getStreamConfigs(int deviceId, int* numConfigs);
263 void onDeviceUnavailable(int deviceId);
264 void onStreamConfigurationsChanged(int deviceId);
265 void onCaptured(int deviceId, int streamId, uint32_t seq, bool succeeded);
[all …]
/frameworks/base/core/java/android/hardware/input/
DInputManager.java721 final int deviceId = mInputDevices.keyAt(i); in onInputDevicesChanged() local
722 if (!containsDeviceId(deviceIdAndGeneration, deviceId)) { in onInputDevicesChanged()
724 Log.d(TAG, "Device removed: " + deviceId); in onInputDevicesChanged()
727 sendMessageToInputDeviceListenersLocked(MSG_DEVICE_REMOVED, deviceId); in onInputDevicesChanged()
732 final int deviceId = deviceIdAndGeneration[i]; in onInputDevicesChanged() local
733 int index = mInputDevices.indexOfKey(deviceId); in onInputDevicesChanged()
740 Log.d(TAG, "Device changed: " + deviceId); in onInputDevicesChanged()
743 sendMessageToInputDeviceListenersLocked(MSG_DEVICE_CHANGED, deviceId); in onInputDevicesChanged()
748 Log.d(TAG, "Device added: " + deviceId); in onInputDevicesChanged()
750 mInputDevices.put(deviceId, null); in onInputDevicesChanged()
[all …]
DIInputManager.aidl30 InputDevice getInputDevice(int deviceId); in getInputDevice() argument
34 boolean hasKeys(int deviceId, int sourceMask, in int[] keyCodes, out boolean[] keyExists); in hasKeys() argument
64 void vibrate(int deviceId, in long[] pattern, int repeat, IBinder token); in vibrate() argument
65 void cancelVibrate(int deviceId, IBinder token); in cancelVibrate() argument
/frameworks/base/core/java/android/view/
DInputEventConsistencyVerifier.java202 final int deviceId = event.getDeviceId(); in onKeyEvent() local
207 KeyState state = findKeyState(deviceId, source, keyCode, /*remove*/ false); in onKeyEvent()
221 addKeyState(deviceId, source, keyCode); in onKeyEvent()
226 KeyState state = findKeyState(deviceId, source, keyCode, /*remove*/ true); in onKeyEvent()
338 final int deviceId = event.getDeviceId(); in onTouchEvent() local
342 && (mTouchEventStreamDeviceId != deviceId in onTouchEvent()
347 + ", new device id " + deviceId in onTouchEvent()
350 mTouchEventStreamDeviceId = deviceId; in onTouchEvent()
531 final int deviceId = keyEvent.getDeviceId(); in onUnhandledEvent() local
534 final KeyState state = findKeyState(deviceId, source, keyCode, /*remove*/ false); in onUnhandledEvent()
[all …]
/frameworks/native/libs/input/
DKeyCharacterMap.cpp298 bool KeyCharacterMap::getEvents(int32_t deviceId, const char16_t* chars, size_t numChars, in getEvents() argument
308 deviceId, toString(chars, numChars).string(), ch); in getEvents()
314 addMetaKeys(outEvents, deviceId, metaState, true, now, &currentMetaState); in getEvents()
315 addKey(outEvents, deviceId, keyCode, currentMetaState, true, now); in getEvents()
316 addKey(outEvents, deviceId, keyCode, currentMetaState, false, now); in getEvents()
317 addMetaKeys(outEvents, deviceId, metaState, false, now, &currentMetaState); in getEvents()
321 deviceId, toString(chars, numChars).string(), int32_t(outEvents.size())); in getEvents()
445 int32_t deviceId, int32_t keyCode, int32_t metaState, bool down, nsecs_t time) { in addKey() argument
448 event.initialize(deviceId, AINPUT_SOURCE_KEYBOARD, in addKey()
454 int32_t deviceId, int32_t metaState, bool down, nsecs_t time, in addMetaKeys() argument
[all …]
DInputTransport.cpp241 int32_t deviceId, in publishKeyEvent() argument
256 deviceId, source, action, flags, keyCode, scanCode, metaState, repeatCount, in publishKeyEvent()
268 msg.body.key.deviceId = deviceId; in publishKeyEvent()
283 int32_t deviceId, in publishMotionEvent() argument
306 deviceId, source, action, flags, edgeFlags, metaState, buttonState, in publishMotionEvent()
324 msg.body.motion.deviceId = deviceId; in publishMotionEvent()
445 ssize_t batchIndex = findBatch(mMsg.body.motion.deviceId, mMsg.body.motion.source); in consume()
581 int32_t deviceId = msg->body.motion.deviceId; in updateTouchState() local
590 ssize_t index = findTouchState(deviceId, source); in updateTouchState()
596 touchState.initialize(deviceId, source); in updateTouchState()
[all …]
/frameworks/native/include/input/
DInputTransport.h66 int32_t deviceId; member
84 int32_t deviceId; member
211 int32_t deviceId,
232 int32_t deviceId,
384 int32_t deviceId; member
391 void initialize(int32_t deviceId, int32_t source) { in initialize()
392 this->deviceId = deviceId; in initialize()
434 ssize_t findBatch(int32_t deviceId, int32_t source) const;
435 ssize_t findTouchState(int32_t deviceId, int32_t source) const;
DKeyCharacterMap.h120 bool getEvents(int32_t deviceId, const char16_t* chars, size_t numChars,
235 int32_t deviceId, int32_t keyCode, int32_t metaState, bool down, nsecs_t time);
237 int32_t deviceId, int32_t metaState, bool down, nsecs_t time,
240 int32_t deviceId, int32_t metaState, bool down, nsecs_t time,
244 int32_t deviceId, int32_t metaState, bool down, nsecs_t time,
250 int32_t deviceId, int32_t metaState, nsecs_t time,
/frameworks/native/services/inputflinger/tests/
DInputReader_test.cpp165 void setPointerController(int32_t deviceId, const sp<FakePointerController>& controller) { in setPointerController() argument
166 mPointerControllers.add(deviceId, controller); in setPointerController()
191 virtual sp<PointerControllerInterface> obtainPointerController(int32_t deviceId) { in obtainPointerController() argument
192 return mPointerControllers.valueFor(deviceId); in obtainPointerController()
348 void addDevice(int32_t deviceId, const String8& name, uint32_t classes) { in addDevice() argument
351 mDevices.add(deviceId, device); in addDevice()
353 enqueueEvent(ARBITRARY_TIME, deviceId, EventHubInterface::DEVICE_ADDED, 0, 0); in addDevice()
356 void removeDevice(int32_t deviceId) { in removeDevice() argument
357 delete mDevices.valueFor(deviceId); in removeDevice()
358 mDevices.removeItem(deviceId); in removeDevice()
[all …]
/frameworks/base/services/core/java/com/android/server/input/
DInputManagerService.java166 int deviceId, int sourceMask, int scanCode); in nativeGetScanCodeState() argument
168 int deviceId, int sourceMask, int keyCode); in nativeGetKeyCodeState() argument
170 int deviceId, int sourceMask, int sw); in nativeGetSwitchState() argument
172 int deviceId, int sourceMask, int[] keyCodes, boolean[] keyExists); in nativeHasKeys() argument
191 private static native void nativeVibrate(long ptr, int deviceId, long[] pattern, in nativeVibrate() argument
193 private static native void nativeCancelVibrate(long ptr, int deviceId, int token); in nativeCancelVibrate() argument
387 public int getKeyCodeState(int deviceId, int sourceMask, int keyCode) { in getKeyCodeState() argument
388 return nativeGetKeyCodeState(mPtr, deviceId, sourceMask, keyCode); in getKeyCodeState()
400 public int getScanCodeState(int deviceId, int sourceMask, int scanCode) { in getScanCodeState() argument
401 return nativeGetScanCodeState(mPtr, deviceId, sourceMask, scanCode); in getScanCodeState()
[all …]
/frameworks/testing/espresso/espresso-lib/src/main/java/com/google/android/apps/common/testing/ui/espresso/base/
DEventInjector.java48 int deviceId = event.getDeviceId(); in injectKeyEvent() local
69 deviceId, in injectKeyEvent()
80 deviceId, in injectKeyEvent()
/frameworks/base/core/jni/
Dandroid_view_KeyCharacterMap.cpp48 NativeKeyCharacterMap(int32_t deviceId, const sp<KeyCharacterMap>& map) : in NativeKeyCharacterMap() argument
49 mDeviceId(deviceId), mMap(map) { in NativeKeyCharacterMap()
69 jobject android_view_KeyCharacterMap_create(JNIEnv* env, int32_t deviceId, in android_view_KeyCharacterMap_create() argument
71 NativeKeyCharacterMap* map = new NativeKeyCharacterMap(deviceId, in android_view_KeyCharacterMap_create()
87 int32_t deviceId = parcel->readInt32(); in nativeReadFromParcel() local
97 NativeKeyCharacterMap* map = new NativeKeyCharacterMap(deviceId, kcm); in nativeReadFromParcel()
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/
DBandwidthTestUtil.java81 public static String buildDownloadUrl(String server, int size, String deviceId, in buildDownloadUrl() argument
83 String downloadUrl = server + "/download?size=" + size + "&device_id=" + deviceId + in buildDownloadUrl()
126 public static boolean postFileToServer(String server, String deviceId, String timestamp, in postFileToServer() argument
139 new StringPart("device_id", deviceId), in postFileToServer()
/frameworks/native/libs/input/tests/
DInputPublisherAndConsumer_test.cpp74 const int32_t deviceId = 1; in PublishAndConsumeKeyEvent() local
85 status = mPublisher->publishKeyEvent(seq, deviceId, source, action, flags, in PublishAndConsumeKeyEvent()
103 EXPECT_EQ(deviceId, keyEvent->getDeviceId()); in PublishAndConsumeKeyEvent()
133 const int32_t deviceId = 1; in PublishAndConsumeMotionEvent() local
166 status = mPublisher->publishMotionEvent(seq, deviceId, source, action, flags, edgeFlags, in PublishAndConsumeMotionEvent()
186 EXPECT_EQ(deviceId, motionEvent->getDeviceId()); in PublishAndConsumeMotionEvent()
/frameworks/base/docs/html/training/game-controllers/
Dmultiple-controllers.jd67 public void onInputDeviceAdded(int deviceId) {
68 getShipForID(deviceId);
72 public void onInputDeviceRemoved(int deviceId) {
73 removeShipForID(deviceId);
115 int deviceId = event.getDeviceId();
116 if (deviceId != -1) {
117 Ship currentShip = getShipForId(deviceId);
/frameworks/base/media/java/android/media/tv/
DTvInputHardwareInfo.java150 public Builder deviceId(int deviceId) { in deviceId() argument
151 mDeviceId = deviceId; in deviceId()
/frameworks/base/core/java/android/hardware/hdmi/
DHdmiDeviceInfo.java128 int deviceId = source.readInt();
130 return new HdmiDeviceInfo(physicalAddress, portId, adopterId, deviceId);
223 public HdmiDeviceInfo(int physicalAddress, int portId, int adopterId, int deviceId) { in HdmiDeviceInfo() argument
236 mAdopterId = deviceId; in HdmiDeviceInfo()

123