Home
last modified time | relevance | path

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

1234

/frameworks/base/services/core/java/com/android/server/tv/
DTvInputHal.java51 void onDeviceUnavailable(int deviceId); in onDeviceUnavailable() argument
52 void onStreamConfigurationChanged(int deviceId, TvStreamConfig[] configs); in onStreamConfigurationChanged() argument
53 void onFirstFrameCaptured(int deviceId, int streamId); in onFirstFrameCaptured() argument
58 private static native int nativeAddOrUpdateStream(long ptr, int deviceId, int streamId, in nativeAddOrUpdateStream() 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 addOrUpdateStream(int deviceId, Surface surface, TvStreamConfig streamConfig) { in addOrUpdateStream() argument
88 int generation = mStreamConfigGenerations.get(deviceId, 0); in addOrUpdateStream()
92 if (nativeAddOrUpdateStream(mPtr, deviceId, streamConfig.getStreamId(), surface) == 0) { in addOrUpdateStream()
100 public int removeStream(int deviceId, TvStreamConfig streamConfig) { in removeStream() argument
[all …]
DTvInputHardwareManager.java169 public void onDeviceUnavailable(int deviceId) { in onDeviceUnavailable() argument
171 Connection connection = mConnections.get(deviceId); in onDeviceUnavailable()
173 Slog.e(TAG, "onDeviceUnavailable: Cannot find a connection with " + deviceId); in onDeviceUnavailable()
177 mConnections.remove(deviceId); in onDeviceUnavailable()
197 public void onStreamConfigurationChanged(int deviceId, TvStreamConfig[] configs) { in onStreamConfigurationChanged() argument
199 Connection connection = mConnections.get(deviceId); in onStreamConfigurationChanged()
202 + deviceId); in onStreamConfigurationChanged()
206 String inputId = mHardwareInputIdMap.get(deviceId); in onStreamConfigurationChanged()
223 public void onFirstFrameCaptured(int deviceId, int streamId) { in onFirstFrameCaptured() argument
225 Connection connection = mConnections.get(deviceId); in onFirstFrameCaptured()
[all …]
/frameworks/native/services/inputflinger/
DEventHub.h74 int32_t deviceId; member
185 virtual uint32_t getDeviceClasses(int32_t deviceId) const = 0;
187 virtual InputDeviceIdentifier getDeviceIdentifier(int32_t deviceId) const = 0;
189 virtual int32_t getDeviceControllerNumber(int32_t deviceId) const = 0;
191 virtual void getConfiguration(int32_t deviceId, PropertyMap* outConfiguration) const = 0;
193 virtual status_t getAbsoluteAxisInfo(int32_t deviceId, int axis,
196 virtual bool hasRelativeAxis(int32_t deviceId, int axis) const = 0;
198 virtual bool hasInputProperty(int32_t deviceId, int property) const = 0;
200 virtual status_t mapKey(int32_t deviceId, int32_t scanCode, int32_t usageCode,
203 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()
87 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.cpp250 InputDeviceIdentifier EventHub::getDeviceIdentifier(int32_t deviceId) const { in getDeviceIdentifier()
252 Device* device = getDeviceLocked(deviceId); in getDeviceIdentifier()
257 uint32_t EventHub::getDeviceClasses(int32_t deviceId) const { in getDeviceClasses()
259 Device* device = getDeviceLocked(deviceId); in getDeviceClasses()
264 int32_t EventHub::getDeviceControllerNumber(int32_t deviceId) const { in getDeviceControllerNumber()
266 Device* device = getDeviceLocked(deviceId); in getDeviceControllerNumber()
271 void EventHub::getConfiguration(int32_t deviceId, PropertyMap* outConfiguration) const { in getConfiguration() argument
273 Device* device = getDeviceLocked(deviceId); in getConfiguration()
281 status_t EventHub::getAbsoluteAxisInfo(int32_t deviceId, int axis, in getAbsoluteAxisInfo() argument
288 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
102 NotifyMotionArgs(nsecs_t eventTime, int32_t deviceId, uint32_t source, uint32_t policyFlags,
141 int32_t deviceId; member
145 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
521 int32_t deviceId, uint32_t source, uint32_t policyFlags,
693 int32_t deviceId; member
696 mode(mode), reason(reason), keyCode(-1), deviceId(-1) { } in CancelationOptions()
711 bool isHovering(int32_t deviceId, uint32_t source, int32_t displayId) const;
750 int32_t deviceId; member
[all …]
DInputDispatcher.cpp666 entry->deviceId, entry->source, policyFlags, in synthesizeKeyRepeatLocked()
704 ALOGD("dispatchDeviceReset - eventTime=%lld, deviceId=%d", entry->eventTime, entry->deviceId); in dispatchDeviceResetLocked()
709 options.deviceId = entry->deviceId; in dispatchDeviceResetLocked()
818 entry->eventTime, entry->deviceId, entry->source, entry->policyFlags, in logOutboundKeyDetailsLocked()
895 entry->eventTime, entry->deviceId, entry->source, entry->policyFlags, in logOutboundMotionDetailsLocked()
1162 bool switchedDevice = mTempTouchState.deviceId >= 0 && mTempTouchState.displayId >= 0 in findTouchedWindowTargetsLocked()
1163 && (mTempTouchState.deviceId != entry->deviceId in findTouchedWindowTargetsLocked()
1186 mTempTouchState.deviceId = entry->deviceId; in findTouchedWindowTargetsLocked()
1491 mTempTouchState.deviceId = entry->deviceId; in findTouchedWindowTargetsLocked()
1896 motionEntry->deviceId, motionEntry->source, motionEntry->displayId)) { in enqueueDispatchEntryLocked()
[all …]
/frameworks/base/core/java/android/hardware/fingerprint/
DIFingerprintDaemonCallback.aidl23 void onEnrollResult(long deviceId, int fingerId, int groupId, int remaining); in onEnrollResult() argument
24 void onAcquired(long deviceId, int acquiredInfo); in onAcquired() argument
25 void onAuthenticated(long deviceId, int fingerId, int groupId); in onAuthenticated() argument
26 void onError(long deviceId, int error); in onError() argument
27 void onRemoved(long deviceId, int fingerId, int groupId); in onRemoved() argument
28 void onEnumerate(long deviceId, in int [] fingerIds, in int [] groupIds); in onEnumerate() argument
DIFingerprintServiceReceiver.aidl27 void onEnrollResult(long deviceId, int fingerId, int groupId, int remaining); in onEnrollResult() argument
28 void onAcquired(long deviceId, int acquiredInfo); in onAcquired() argument
29 void onAuthenticationSucceeded(long deviceId, in Fingerprint fp); in onAuthenticationSucceeded() argument
30 void onAuthenticationFailed(long deviceId); in onAuthenticationFailed() argument
31 void onError(long deviceId, int error); in onError() argument
32 void onRemoved(long deviceId, int fingerId, int groupId); in onRemoved() argument
DFingerprintManager.java641 long deviceId = 0; /* TODO: plumb hardware id to FPMS */ in isHardwareDetected() local
642 return mService.isHardwareDetected(deviceId, mContext.getOpPackageName()); in isHardwareDetected()
703 private void sendRemovedResult(long deviceId, int fingerId, int groupId) { in sendRemovedResult() argument
717 private void sendErrorResult(long deviceId, int errMsgId) { in sendErrorResult() argument
747 private void sendAcquiredResult(long deviceId, int acquireInfo) { in sendAcquiredResult() argument
865 public void onEnrollResult(long deviceId, int fingerId, int groupId, int remaining) {
867 new Fingerprint(null, groupId, fingerId, deviceId)).sendToTarget();
871 public void onAcquired(long deviceId, int acquireInfo) {
872 mHandler.obtainMessage(MSG_ACQUIRED, acquireInfo, 0, deviceId).sendToTarget();
876 public void onAuthenticationSucceeded(long deviceId, Fingerprint fp) {
[all …]
/frameworks/base/services/core/jni/
Dcom_android_server_tv_TvInputHal.cpp64 jmethodID deviceId; member
76 BufferProducerThread(tv_input_device_t* device, int deviceId, const tv_stream_t* stream);
106 tv_input_device_t* device, int deviceId, const tv_stream_t* stream) in BufferProducerThread() argument
109 mDeviceId(deviceId), in BufferProducerThread()
240 int addOrUpdateStream(int deviceId, int streamId, const sp<Surface>& surface);
241 int removeStream(int deviceId, int streamId);
242 const tv_stream_config_t* getStreamConfigs(int deviceId, int* numConfigs);
245 void onDeviceUnavailable(int deviceId);
246 void onStreamConfigurationsChanged(int deviceId);
247 void onCaptured(int deviceId, int streamId, uint32_t seq, bool succeeded);
[all …]
/frameworks/base/core/java/android/hardware/input/
DInputManager.java719 final int deviceId = mInputDevices.keyAt(i); in onInputDevicesChanged() local
720 if (!containsDeviceId(deviceIdAndGeneration, deviceId)) { in onInputDevicesChanged()
722 Log.d(TAG, "Device removed: " + deviceId); in onInputDevicesChanged()
725 sendMessageToInputDeviceListenersLocked(MSG_DEVICE_REMOVED, deviceId); in onInputDevicesChanged()
730 final int deviceId = deviceIdAndGeneration[i]; in onInputDevicesChanged() local
731 int index = mInputDevices.indexOfKey(deviceId); in onInputDevicesChanged()
738 Log.d(TAG, "Device changed: " + deviceId); in onInputDevicesChanged()
741 sendMessageToInputDeviceListenersLocked(MSG_DEVICE_CHANGED, deviceId); in onInputDevicesChanged()
746 Log.d(TAG, "Device added: " + deviceId); in onInputDevicesChanged()
748 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.java206 final int deviceId = event.getDeviceId(); in onKeyEvent() local
211 KeyState state = findKeyState(deviceId, source, keyCode, /*remove*/ false); in onKeyEvent()
225 addKeyState(deviceId, source, keyCode); in onKeyEvent()
230 KeyState state = findKeyState(deviceId, source, keyCode, /*remove*/ true); in onKeyEvent()
342 final int deviceId = event.getDeviceId(); in onTouchEvent() local
346 && (mTouchEventStreamDeviceId != deviceId in onTouchEvent()
351 + ", new device id " + deviceId in onTouchEvent()
354 mTouchEventStreamDeviceId = deviceId; in onTouchEvent()
593 final int deviceId = keyEvent.getDeviceId(); in onUnhandledEvent() local
596 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
307 deviceId, source, action, actionButton, flags, edgeFlags, metaState, buttonState, in publishMotionEvent()
325 msg.body.motion.deviceId = deviceId; in publishMotionEvent()
447 ssize_t batchIndex = findBatch(mMsg.body.motion.deviceId, mMsg.body.motion.source); in consume()
583 int32_t deviceId = msg->body.motion.deviceId; in updateTouchState() local
592 ssize_t index = findTouchState(deviceId, source); in updateTouchState()
598 touchState.initialize(deviceId, source); in updateTouchState()
[all …]
/frameworks/native/include/input/
DInputTransport.h66 int32_t deviceId; member
84 int32_t deviceId; member
212 int32_t deviceId,
233 int32_t deviceId,
386 int32_t deviceId; member
393 void initialize(int32_t deviceId, int32_t source) { in initialize()
394 this->deviceId = deviceId; in initialize()
436 ssize_t findBatch(int32_t deviceId, int32_t source) const;
437 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/base/services/core/java/com/android/server/fingerprint/
DFingerprintService.java154 protected void dispatchEnumerate(long deviceId, int[] fingerIds, int[] groupIds) { in dispatchEnumerate() argument
164 protected void dispatchRemoved(long deviceId, int fingerId, int groupId) { in dispatchRemoved() argument
174 protected void dispatchError(long deviceId, int error) { in dispatchError() argument
190 protected void dispatchAuthenticated(long deviceId, int fingerId, int groupId) { in dispatchAuthenticated() argument
200 protected void dispatchAcquired(long deviceId, int acquiredInfo) { in dispatchAcquired() argument
221 protected void dispatchEnrollResult(long deviceId, int fingerId, int groupId, int remaining) { in dispatchEnrollResult() argument
640 public void onEnrollResult(long deviceId, int fingerId, int groupId, int remaining) {
641 dispatchEnrollResult(deviceId, fingerId, groupId, remaining);
645 public void onAcquired(long deviceId, int acquiredInfo) {
646 dispatchAcquired(deviceId, acquiredInfo);
[all …]
/frameworks/base/core/jni/
Dandroid_media_DeviceCallback.cpp65 audio_port_handle_t deviceId) in onAudioDeviceUpdate() argument
72 ALOGV("%s audioIo %d deviceId %d", __FUNCTION__, audioIo, deviceId); in onAudioDeviceUpdate()
76 AUDIO_NATIVE_EVENT_ROUTING_CHANGE, deviceId, 0, NULL); in onAudioDeviceUpdate()
Dandroid_view_KeyCharacterMap.cpp50 NativeKeyCharacterMap(int32_t deviceId, const sp<KeyCharacterMap>& map) : in NativeKeyCharacterMap() argument
51 mDeviceId(deviceId), mMap(map) { in NativeKeyCharacterMap()
71 jobject android_view_KeyCharacterMap_create(JNIEnv* env, int32_t deviceId, in android_view_KeyCharacterMap_create() argument
73 NativeKeyCharacterMap* map = new NativeKeyCharacterMap(deviceId, in android_view_KeyCharacterMap_create()
89 int32_t deviceId = parcel->readInt32(); in nativeReadFromParcel() local
99 NativeKeyCharacterMap* map = new NativeKeyCharacterMap(deviceId, kcm); in nativeReadFromParcel()
/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/native/services/inputflinger/tests/
DInputReader_test.cpp164 void setPointerController(int32_t deviceId, const sp<FakePointerController>& controller) { in setPointerController() argument
165 mPointerControllers.add(deviceId, controller); in setPointerController()
190 virtual sp<PointerControllerInterface> obtainPointerController(int32_t deviceId) { in obtainPointerController() argument
191 return mPointerControllers.valueFor(deviceId); in obtainPointerController()
347 void addDevice(int32_t deviceId, const String8& name, uint32_t classes) { in addDevice() argument
350 mDevices.add(deviceId, device); in addDevice()
352 enqueueEvent(ARBITRARY_TIME, deviceId, EventHubInterface::DEVICE_ADDED, 0, 0); in addDevice()
355 void removeDevice(int32_t deviceId) { in removeDevice() argument
356 delete mDevices.valueFor(deviceId); in removeDevice()
357 mDevices.removeItem(deviceId); in removeDevice()
[all …]
/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()

1234