Home
last modified time | relevance | path

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

123456789

/frameworks/base/services/core/java/com/android/server/tv/
DTvInputHal.java53 void onDeviceUnavailable(int deviceId); in onDeviceUnavailable() argument
54 void onStreamConfigurationChanged(int deviceId, TvStreamConfig[] configs); in onStreamConfigurationChanged() argument
55 void onFirstFrameCaptured(int deviceId, int streamId); in onFirstFrameCaptured() argument
60 private static native int nativeAddOrUpdateStream(long ptr, int deviceId, int streamId, in nativeAddOrUpdateStream() argument
62 private static native int nativeRemoveStream(long ptr, int deviceId, int streamId); in nativeRemoveStream() argument
63 private static native TvStreamConfig[] nativeGetStreamConfigs(long ptr, int deviceId, in nativeGetStreamConfigs() argument
85 public int addOrUpdateStream(int deviceId, Surface surface, TvStreamConfig streamConfig) { in addOrUpdateStream() argument
90 int generation = mStreamConfigGenerations.get(deviceId, 0); in addOrUpdateStream()
94 if (nativeAddOrUpdateStream(mPtr, deviceId, streamConfig.getStreamId(), surface) == 0) { in addOrUpdateStream()
102 public int removeStream(int deviceId, TvStreamConfig streamConfig) { in removeStream() argument
[all …]
DTvInputHardwareManager.java177 public void onDeviceUnavailable(int deviceId) { in onDeviceUnavailable() argument
179 Connection connection = mConnections.get(deviceId); in onDeviceUnavailable()
181 Slog.e(TAG, "onDeviceUnavailable: Cannot find a connection with " + deviceId); in onDeviceUnavailable()
185 mConnections.remove(deviceId); in onDeviceUnavailable()
205 public void onStreamConfigurationChanged(int deviceId, TvStreamConfig[] configs) { in onStreamConfigurationChanged() argument
207 Connection connection = mConnections.get(deviceId); in onStreamConfigurationChanged()
210 + deviceId); in onStreamConfigurationChanged()
215 String inputId = mHardwareInputIdMap.get(deviceId); in onStreamConfigurationChanged()
233 public void onFirstFrameCaptured(int deviceId, int streamId) { in onFirstFrameCaptured() argument
235 Connection connection = mConnections.get(deviceId); in onFirstFrameCaptured()
[all …]
/frameworks/native/services/inputflinger/reader/include/
DEventHub.h53 int32_t deviceId; member
166 virtual uint32_t getDeviceClasses(int32_t deviceId) const = 0;
168 virtual InputDeviceIdentifier getDeviceIdentifier(int32_t deviceId) const = 0;
170 virtual int32_t getDeviceControllerNumber(int32_t deviceId) const = 0;
172 virtual void getConfiguration(int32_t deviceId, PropertyMap* outConfiguration) const = 0;
174 virtual status_t getAbsoluteAxisInfo(int32_t deviceId, int axis,
177 virtual bool hasRelativeAxis(int32_t deviceId, int axis) const = 0;
179 virtual bool hasInputProperty(int32_t deviceId, int property) const = 0;
181 virtual status_t mapKey(int32_t deviceId, int32_t scanCode, int32_t usageCode,
185 virtual status_t mapAxis(int32_t deviceId, int32_t scanCode, AxisInfo* outAxisInfo) const = 0;
[all …]
DInputReader.h65 virtual bool isInputDeviceEnabled(int32_t deviceId) override;
67 virtual int32_t getScanCodeState(int32_t deviceId, uint32_t sourceMask,
69 virtual int32_t getKeyCodeState(int32_t deviceId, uint32_t sourceMask,
71 virtual int32_t getSwitchState(int32_t deviceId, uint32_t sourceMask, int32_t sw) override;
73 virtual void toggleCapsLockState(int32_t deviceId) override;
75 virtual bool hasKeys(int32_t deviceId, uint32_t sourceMask, size_t numCodes,
80 virtual void vibrate(int32_t deviceId, const nsecs_t* pattern, size_t patternSize,
82 virtual void cancelVibrate(int32_t deviceId, int32_t token) override;
84 virtual bool canDispatchToDisplay(int32_t deviceId, int32_t displayId) override;
89 int32_t deviceId, const InputDeviceIdentifier& identifier);
[all …]
/frameworks/base/core/java/android/hardware/fingerprint/
DIFingerprintServiceReceiver.aidl25 void onEnrollResult(long deviceId, int fingerId, int groupId, int remaining); in onEnrollResult() argument
26 void onAcquired(long deviceId, int acquiredInfo, int vendorCode); in onAcquired() argument
27 void onAuthenticationSucceeded(long deviceId, in Fingerprint fp, int userId, in onAuthenticationSucceeded() argument
29 void onFingerprintDetected(long deviceId, int userId, boolean isStrongBiometric); in onFingerprintDetected() argument
30 void onAuthenticationFailed(long deviceId); in onAuthenticationFailed() argument
31 void onError(long deviceId, int error, int vendorCode); in onError() argument
32 void onRemoved(long deviceId, int fingerId, int groupId, int remaining); in onRemoved() argument
33 void onEnumerated(long deviceId, int fingerId, int groupId, int remaining); in onEnumerated() argument
DFingerprintManager.java788 public void onLockoutReset(long deviceId, IRemoteCallback serverCallback) in addLockoutResetCallback()
884 private void sendEnumeratedResult(long deviceId, int fingerId, int groupId) { in sendEnumeratedResult() argument
886 mEnumerateCallback.onEnumerate(new Fingerprint(null, groupId, fingerId, deviceId)); in sendEnumeratedResult()
910 private void sendAcquiredResult(long deviceId, int acquireInfo, int vendorCode) { in sendAcquiredResult() argument
930 private void sendErrorResult(long deviceId, int errMsgId, int vendorCode) { in sendErrorResult() argument
1092 public void onEnrollResult(long deviceId, int fingerId, int groupId, int remaining) {
1094 new Fingerprint(null, groupId, fingerId, deviceId)).sendToTarget();
1098 public void onAcquired(long deviceId, int acquireInfo, int vendorCode) {
1100 deviceId).sendToTarget();
1104 public void onAuthenticationSucceeded(long deviceId, Fingerprint fp, int userId,
[all …]
/frameworks/native/services/inputflinger/
DInputClassifier.cpp104 return motionArgs->deviceId; in getDeviceId()
109 return deviceResetArgs->deviceId; in getDeviceId()
186 updateClassification(motionArgs->deviceId, motionArgs->eventTime, in processEvents()
192 const int32_t deviceId = *(event.getDeviceId()); in processEvents() local
193 halResponseOk = mService->resetDevice(deviceId).isOk(); in processEvents()
194 clearDeviceState(deviceId); in processEvents()
230 void MotionClassifier::updateClassification(int32_t deviceId, nsecs_t eventTime, in updateClassification() argument
233 const nsecs_t lastDownTime = getValueForKey(mLastDownTimes, deviceId, static_cast<nsecs_t>(0)); in updateClassification()
241 mClassifications[deviceId] = classification; in updateClassification()
244 void MotionClassifier::setClassification(int32_t deviceId, MotionClassification classification) { in setClassification() argument
[all …]
DInputListener.cpp54 NotifyKeyArgs::NotifyKeyArgs(int32_t id, nsecs_t eventTime, int32_t deviceId, uint32_t source, in NotifyKeyArgs() argument
58 deviceId(deviceId), in NotifyKeyArgs()
71 deviceId(other.deviceId), in NotifyKeyArgs()
83 return id == rhs.id && eventTime == rhs.eventTime && deviceId == rhs.deviceId && in operator ==()
96 NotifyMotionArgs::NotifyMotionArgs(int32_t id, nsecs_t eventTime, int32_t deviceId, uint32_t source, in NotifyMotionArgs() argument
107 deviceId(deviceId), in NotifyMotionArgs()
133 deviceId(other.deviceId), in NotifyMotionArgs()
162 bool equal = id == rhs.id && eventTime == rhs.eventTime && deviceId == rhs.deviceId && in operator ==()
220 NotifyDeviceResetArgs::NotifyDeviceResetArgs(int32_t id, nsecs_t eventTime, int32_t deviceId) in NotifyDeviceResetArgs() argument
221 : NotifyArgs(id, eventTime), deviceId(deviceId) {} in NotifyDeviceResetArgs()
[all …]
/frameworks/base/services/core/jni/
Dcom_android_server_tv_TvInputHal.cpp81 jmethodID deviceId; member
94 BufferProducerThread(tv_input_device_t* device, int deviceId, const tv_stream_t* stream);
124 tv_input_device_t* device, int deviceId, const tv_stream_t* stream) in BufferProducerThread() argument
127 mDeviceId(deviceId), in BufferProducerThread()
258 int addOrUpdateStream(int deviceId, int streamId, const sp<Surface>& surface);
259 int removeStream(int deviceId, int streamId);
260 const hidl_vec<TvStreamConfig> getStreamConfigs(int deviceId);
263 void onDeviceUnavailable(int deviceId);
264 void onStreamConfigurationsChanged(int deviceId);
265 void onCaptured(int deviceId, int streamId, uint32_t seq, bool succeeded);
[all …]
/frameworks/native/services/inputflinger/reader/
DInputReader.cpp154 int32_t deviceId = rawEvent->deviceId; in processEventsLocked() local
157 rawEvent[batchSize].deviceId != deviceId) { in processEventsLocked()
165 processEventsForDeviceLocked(deviceId, rawEvent, batchSize); in processEventsLocked()
169 addDeviceLocked(rawEvent->when, rawEvent->deviceId); in processEventsLocked()
172 removeDeviceLocked(rawEvent->when, rawEvent->deviceId); in processEventsLocked()
280 int32_t deviceId = (eventHubId < END_RESERVED_ID) ? eventHubId : nextInputDeviceIdLocked(); in createDeviceLocked() local
281 device = std::make_shared<InputDevice>(&mContext, deviceId, bumpGenerationLocked(), in createDeviceLocked()
305 InputDevice* InputReader::findInputDevice(int32_t deviceId) { in findInputDevice() argument
307 std::find_if(mDevices.begin(), mDevices.end(), [deviceId](const auto& devicePair) { in findInputDevice()
308 return devicePair.second->getId() == deviceId; in findInputDevice()
[all …]
DEventHub.cpp355 InputDeviceIdentifier EventHub::getDeviceIdentifier(int32_t deviceId) const { in getDeviceIdentifier()
357 Device* device = getDeviceLocked(deviceId); in getDeviceIdentifier()
362 uint32_t EventHub::getDeviceClasses(int32_t deviceId) const { in getDeviceClasses()
364 Device* device = getDeviceLocked(deviceId); in getDeviceClasses()
369 int32_t EventHub::getDeviceControllerNumber(int32_t deviceId) const { in getDeviceControllerNumber()
371 Device* device = getDeviceLocked(deviceId); in getDeviceControllerNumber()
376 void EventHub::getConfiguration(int32_t deviceId, PropertyMap* outConfiguration) const { in getConfiguration() argument
378 Device* device = getDeviceLocked(deviceId); in getConfiguration()
386 status_t EventHub::getAbsoluteAxisInfo(int32_t deviceId, int axis, in getAbsoluteAxisInfo() argument
393 Device* device = getDeviceLocked(deviceId); in getAbsoluteAxisInfo()
[all …]
/frameworks/base/core/java/android/hardware/face/
DIFaceServiceReceiver.aidl25 void onEnrollResult(long deviceId, int faceId, int remaining); in onEnrollResult() argument
26 void onAcquired(long deviceId, int acquiredInfo, int vendorCode); in onAcquired() argument
27 void onAuthenticationSucceeded(long deviceId, in Face face, int userId, in onAuthenticationSucceeded() argument
29 void onAuthenticationFailed(long deviceId); in onAuthenticationFailed() argument
30 void onError(long deviceId, int error, int vendorCode); in onError() argument
31 void onRemoved(long deviceId, int faceId, int remaining); in onRemoved() argument
32 void onEnumerated(long deviceId, int faceId, int remaining); in onEnumerated() argument
/frameworks/native/services/inputflinger/dispatcher/
DInputState.cpp31 bool InputState::isHovering(int32_t deviceId, uint32_t source, int32_t displayId) const { in isHovering() argument
33 if (memento.deviceId == deviceId && memento.source == source && in isHovering()
104 entry.deviceId, entry.source, entry.displayId, actionMasked); in trackMotion()
161 entry.deviceId, entry.source, entry.displayId, actionMasked); in trackMotion()
175 entry.deviceId, entry.source, entry.displayId); in trackMotion()
198 if (memento.deviceId == entry.deviceId && memento.source == entry.source && in findKeyMemento()
210 if (memento.deviceId == entry.deviceId && memento.source == entry.source && in findMotionMemento()
220 memento.deviceId = entry.deviceId; in addKeyMemento()
234 memento.deviceId = entry.deviceId; in addMotionMemento()
273 events.push_back(new KeyEntry(mIdGenerator.nextId(), currentTime, memento.deviceId, in synthesizeCancelationEvents()
[all …]
DEntry.cpp32 return {{VerifiedInputEvent::Type::KEY, entry.deviceId, entry.eventTime, entry.source, in verifiedKeyEventFromKeyEntry()
47 return {{VerifiedInputEvent::Type::MOTION, entry.deviceId, entry.eventTime, entry.source, in verifiedMotionEventFromMotionEntry()
108 DeviceResetEntry::DeviceResetEntry(int32_t id, nsecs_t eventTime, int32_t deviceId) in DeviceResetEntry() argument
109 : EventEntry(id, Type::DEVICE_RESET, eventTime, 0), deviceId(deviceId) {} in DeviceResetEntry()
114 msg += StringPrintf("DeviceResetEvent(deviceId=%d), policyFlags=0x%08x", deviceId, policyFlags); in appendDescription()
133 KeyEntry::KeyEntry(int32_t id, nsecs_t eventTime, int32_t deviceId, uint32_t source, in KeyEntry() argument
138 deviceId(deviceId), in KeyEntry()
162 deviceId, source, displayId, KeyEvent::actionToString(action), flags, in appendDescription()
177 MotionEntry::MotionEntry(int32_t id, nsecs_t eventTime, int32_t deviceId, uint32_t source, in MotionEntry() argument
187 deviceId(deviceId), in MotionEntry()
[all …]
/frameworks/native/services/inputflinger/tests/
DEventHub_test.cpp46 ALOGI("Device added: %i", event.deviceId); in dumpEvents()
49 ALOGI("Device removed: %i", event.deviceId); in dumpEvents()
57 event.deviceId, event.when, event.type, event.code, event.value); in dumpEvents()
86 void waitForDeviceClose(int32_t deviceId);
139 existingDevices.insert(event.deviceId); in consumeInitialDeviceAddedEvents()
157 InputDeviceIdentifier identifier = mEventHub->getDeviceIdentifier(deviceAddedEvent.deviceId); in waitForDeviceCreation()
158 const int32_t deviceId = deviceAddedEvent.deviceId; in waitForDeviceCreation() local
163 return deviceId; in waitForDeviceCreation()
166 void EventHubTest::waitForDeviceClose(int32_t deviceId) { in waitForDeviceClose() argument
171 EXPECT_EQ(deviceId, deviceRemovedEvent.deviceId); in waitForDeviceClose()
/frameworks/native/services/inputflinger/include/
DInputReaderBase.h72 virtual bool isInputDeviceEnabled(int32_t deviceId) = 0;
87 virtual int32_t getScanCodeState(int32_t deviceId, uint32_t sourceMask,
89 virtual int32_t getKeyCodeState(int32_t deviceId, uint32_t sourceMask,
91 virtual int32_t getSwitchState(int32_t deviceId, uint32_t sourceMask,
95 virtual void toggleCapsLockState(int32_t deviceId) = 0;
98 virtual bool hasKeys(int32_t deviceId, uint32_t sourceMask,
107 virtual void vibrate(int32_t deviceId, const nsecs_t* pattern, size_t patternSize,
109 virtual void cancelVibrate(int32_t deviceId, int32_t token) = 0;
112 virtual bool canDispatchToDisplay(int32_t deviceId, int32_t displayId) = 0;
338 virtual sp<PointerControllerInterface> obtainPointerController(int32_t deviceId) = 0;
/frameworks/base/core/java/android/hardware/input/
DIInputManager.aidl35 InputDevice getInputDevice(int deviceId); in getInputDevice() argument
39 boolean isInputDeviceEnabled(int deviceId); in isInputDeviceEnabled() argument
40 void enableInputDevice(int deviceId); in enableInputDevice() argument
41 void disableInputDevice(int deviceId); in disableInputDevice() argument
44 boolean hasKeys(int deviceId, int sourceMask, in int[] keyCodes, out boolean[] keyExists); in hasKeys() argument
86 void vibrate(int deviceId, in long[] pattern, int repeat, IBinder token); in vibrate() argument
87 void cancelVibrate(int deviceId, IBinder token); in cancelVibrate() argument
DInputManager.java1060 final int deviceId = mInputDevices.keyAt(i); in onInputDevicesChanged() local
1061 if (!containsDeviceId(deviceIdAndGeneration, deviceId)) { in onInputDevicesChanged()
1063 Log.d(TAG, "Device removed: " + deviceId); in onInputDevicesChanged()
1066 sendMessageToInputDeviceListenersLocked(MSG_DEVICE_REMOVED, deviceId); in onInputDevicesChanged()
1071 final int deviceId = deviceIdAndGeneration[i]; in onInputDevicesChanged() local
1072 int index = mInputDevices.indexOfKey(deviceId); in onInputDevicesChanged()
1079 Log.d(TAG, "Device changed: " + deviceId); in onInputDevicesChanged()
1082 sendMessageToInputDeviceListenersLocked(MSG_DEVICE_CHANGED, deviceId); in onInputDevicesChanged()
1087 Log.d(TAG, "Device added: " + deviceId); in onInputDevicesChanged()
1089 mInputDevices.put(deviceId, null); in onInputDevicesChanged()
[all …]
/frameworks/av/services/audioflinger/
DDeviceEffectManager.h46 int32_t sessionId, int32_t deviceId,
48 status_t addEffectToHal(audio_port_handle_t deviceId, audio_module_handle_t hwModuleId, in addEffectToHal() argument
50 return mAudioFlinger.addEffectToHal(deviceId, hwModuleId, effect); in addEffectToHal()
52 status_t removeEffectFromHal(audio_port_handle_t deviceId, audio_module_handle_t hwModuleId, in removeEffectFromHal() argument
54 return mAudioFlinger.removeEffectFromHal(deviceId, hwModuleId, effect); in removeEffectFromHal()
151 int32_t sessionId, int32_t deviceId, in createEffectHal() argument
153 return mManager.createEffectHal(pEffectUuid, sessionId, deviceId, effect); in createEffectHal()
194 status_t addEffectToHal(audio_port_handle_t deviceId, in addEffectToHal() argument
196 return mManager.addEffectToHal(deviceId, hwModuleId, effect); in addEffectToHal()
198 status_t removeEffectFromHal(audio_port_handle_t deviceId, in removeEffectFromHal() argument
[all …]
/frameworks/base/core/java/android/view/
DInputEventConsistencyVerifier.java209 final int deviceId = event.getDeviceId(); in onKeyEvent() local
214 KeyState state = findKeyState(deviceId, source, keyCode, /*remove*/ false); in onKeyEvent()
228 addKeyState(deviceId, source, keyCode); in onKeyEvent()
233 KeyState state = findKeyState(deviceId, source, keyCode, /*remove*/ true); in onKeyEvent()
346 final int deviceId = event.getDeviceId(); in onTouchEvent() local
350 && (mTouchEventStreamDeviceId != deviceId in onTouchEvent()
355 + ", new device id " + deviceId in onTouchEvent()
358 mTouchEventStreamDeviceId = deviceId; in onTouchEvent()
598 final int deviceId = keyEvent.getDeviceId(); in onUnhandledEvent() local
601 final KeyState state = findKeyState(deviceId, source, keyCode, /*remove*/ false); in onUnhandledEvent()
[all …]
/frameworks/av/services/oboeservice/
DAAudioServiceEndpointMMAP.cpp76 audio_port_handle_t deviceId; in open() local
86 mRequestedDeviceId = deviceId = getDeviceId(); in open()
135 &deviceId, in open()
149 if (deviceId == AAUDIO_UNSPECIFIED) { in open()
152 setDeviceId(deviceId); in open()
217 __func__, getSampleRate(), getSamplesPerFrame(), deviceId, getBufferCapacity()); in open()
351 const int32_t deviceId = static_cast<int32_t>(portHandle); in onRoutingChanged() local
352 ALOGD("%s() called with dev %d, old = %d", __func__, deviceId, getDeviceId()); in onRoutingChanged()
353 if (getDeviceId() != deviceId) { in onRoutingChanged()
355 std::thread asyncTask([this, deviceId]() { in onRoutingChanged()
[all …]
/frameworks/native/services/inputflinger/reader/mapper/
DTouchCursorInputMapperCommon.h61 int32_t deviceId, uint32_t source, int32_t displayId, in synthesizeButtonKey() argument
68 NotifyKeyArgs args(context->getNextId(), when, deviceId, source, displayId, policyFlags, in synthesizeButtonKey()
75 int32_t deviceId, uint32_t source, int32_t displayId, in synthesizeButtonKeys() argument
78 synthesizeButtonKey(context, action, when, deviceId, source, displayId, policyFlags, in synthesizeButtonKeys()
81 synthesizeButtonKey(context, action, when, deviceId, source, displayId, policyFlags, in synthesizeButtonKeys()
/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()
487 int32_t deviceId, int32_t keyCode, int32_t metaState, bool down, nsecs_t time) { in addKey() argument
490 event.initialize(InputEvent::nextId(), deviceId, AINPUT_SOURCE_KEYBOARD, ADISPLAY_ID_NONE, in addKey()
496 int32_t deviceId, int32_t metaState, bool down, nsecs_t time, in addMetaKeys() argument
[all …]
/frameworks/av/media/libaaudio/src/legacy/
DAudioStreamLegacy.cpp212 audio_port_handle_t deviceId) { in onAudioDeviceUpdate() argument
217 ALOGD("%s(deviceId = %d)", __func__, (int)deviceId); in onAudioDeviceUpdate()
219 && getDeviceId() != deviceId in onAudioDeviceUpdate()
227 __func__, (int) getDeviceId(), (int) deviceId); in onAudioDeviceUpdate()
234 __func__, (int) getDeviceId(), (int) deviceId); in onAudioDeviceUpdate()
238 setDeviceId(deviceId); in onAudioDeviceUpdate()
/frameworks/base/services/core/java/com/android/server/biometrics/fingerprint/
DFingerprintService.java537 public void onAcquired(long deviceId, int acquiredInfo, int vendorCode) in onAcquired() argument
546 public void onError(long deviceId, int error, int vendorCode, int cookie) in onError() argument
576 public void onAcquired(long deviceId, int acquiredInfo, int vendorCode) in onAcquired() argument
579 mFingerprintServiceReceiver.onAcquired(deviceId, acquiredInfo, vendorCode); in onAcquired()
584 public void onAuthenticationSucceeded(long deviceId, in onAuthenticationSucceeded() argument
592 .onFingerprintDetected(deviceId, userId, isStrongBiometric()); in onAuthenticationSucceeded()
594 mFingerprintServiceReceiver.onAuthenticationSucceeded(deviceId, in onAuthenticationSucceeded()
603 public void onAuthenticationFailed(long deviceId) throws RemoteException { in onAuthenticationFailed() argument
605 mFingerprintServiceReceiver.onAuthenticationFailed(deviceId); in onAuthenticationFailed()
610 public void onError(long deviceId, int error, int vendorCode, int cookie) in onError() argument
[all …]

123456789