Home
last modified time | relevance | path

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

12345678910>>...15

/frameworks/base/services/core/java/com/android/server/input/
DNativeInputManagerService.java45 int getScanCodeState(int deviceId, int sourceMask, int scanCode); in getScanCodeState() argument
47 int getKeyCodeState(int deviceId, int sourceMask, int keyCode); in getKeyCodeState() argument
49 int getSwitchState(int deviceId, int sourceMask, int sw); in getSwitchState() argument
51 void addKeyRemapping(int deviceId, int fromKeyCode, int toKeyCode); in addKeyRemapping() argument
53 boolean hasKeys(int deviceId, int sourceMask, int[] keyCodes, boolean[] keyExists); in hasKeys() argument
55 int getKeyCodeForKeyLocation(int deviceId, int locationKeyCode); in getKeyCodeForKeyLocation() argument
99 void toggleCapsLock(int deviceId); in toggleCapsLock() argument
138 void vibrate(int deviceId, long[] pattern, int[] amplitudes, int repeat, int token); in vibrate() argument
140 void vibrateCombined(int deviceId, long[] pattern, SparseArray<int[]> amplitudes, in vibrateCombined() argument
143 void cancelVibrate(int deviceId, int token); in cancelVibrate() argument
[all …]
DBatteryController.java124 for (int deviceId : inputManager.getInputDeviceIds()) { in systemRunning()
125 mInputDeviceListener.onInputDeviceAdded(deviceId); in systemRunning()
134 public void registerBatteryListener(int deviceId, @NonNull IInputDeviceBatteryListener listener, in registerBatteryListener() argument
157 if (!listenerRecord.mMonitoredDevices.add(deviceId)) { in registerBatteryListener()
160 + " is already monitoring deviceId " + deviceId); in registerBatteryListener()
163 DeviceMonitor monitor = mDeviceMonitors.get(deviceId); in registerBatteryListener()
166 monitor = new DeviceMonitor(deviceId); in registerBatteryListener()
167 mDeviceMonitors.put(deviceId, monitor); in registerBatteryListener()
173 + " is monitoring deviceId " + deviceId); in registerBatteryListener()
189 + " of state of deviceId " + state.deviceId); in notifyBatteryListener()
[all …]
/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
56 void onFirstFrameCaptured(int deviceId, int streamId); in onFirstFrameCaptured() argument
57 void onTvMessage(int deviceId, int type, Bundle data); in onTvMessage() argument
62 private static native int nativeAddOrUpdateStream(long ptr, int deviceId, int streamId, in nativeAddOrUpdateStream() argument
64 private static native int nativeRemoveStream(long ptr, int deviceId, int streamId); in nativeRemoveStream() argument
65 private static native TvStreamConfig[] nativeGetStreamConfigs(long ptr, int deviceId, in nativeGetStreamConfigs() argument
68 private static native int nativeSetTvMessageEnabled(long ptr, int deviceId, int streamId, in nativeSetTvMessageEnabled() argument
89 public int addOrUpdateStream(int deviceId, Surface surface, TvStreamConfig streamConfig) { in addOrUpdateStream() argument
94 int generation = mStreamConfigGenerations.get(deviceId, 0); in addOrUpdateStream()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/stylus/
DStylusManager.kt107 override fun onInputDeviceAdded(deviceId: Int) { in <lambda>()
110 val device: InputDevice = inputManager.getInputDevice(deviceId) ?: return in <lambda>()
113 "Stylus InputDevice added: $deviceId ${device.name}, " + in <lambda>()
118 registerBatteryListener(deviceId) in <lambda>()
122 inputDeviceAddressMap[deviceId] = btAddress in <lambda>()
123 executeStylusCallbacks { cb -> cb.onStylusAdded(deviceId) } in <lambda>()
127 onStylusBluetoothConnected(deviceId, btAddress) in <lambda>()
128 executeStylusCallbacks { cb -> cb.onStylusBluetoothConnected(deviceId, btAddress) } in <lambda>()
132 override fun onInputDeviceChanged(deviceId: Int) { in <lambda>()
135 val device: InputDevice = inputManager.getInputDevice(deviceId) ?: return in <lambda>()
[all …]
/frameworks/native/services/inputflinger/tests/
DFakeEventHub.cpp35 void FakeEventHub::addDevice(int32_t deviceId, const std::string& name, in addDevice() argument
40 mDevices.add(deviceId, device); in addDevice()
42 enqueueEvent(ARBITRARY_TIME, READ_TIME, deviceId, EventHubInterface::DEVICE_ADDED, 0, 0); in addDevice()
45 void FakeEventHub::removeDevice(int32_t deviceId) { in removeDevice() argument
46 delete mDevices.valueFor(deviceId); in removeDevice()
47 mDevices.removeItem(deviceId); in removeDevice()
49 enqueueEvent(ARBITRARY_TIME, READ_TIME, deviceId, EventHubInterface::DEVICE_REMOVED, 0, 0); in removeDevice()
52 bool FakeEventHub::isDeviceEnabled(int32_t deviceId) const { in isDeviceEnabled()
53 Device* device = getDevice(deviceId); in isDeviceEnabled()
55 ALOGE("Incorrect device id=%" PRId32 " provided to %s", deviceId, __func__); in isDeviceEnabled()
[all …]
DInterfaceMocks.h35 (int32_t deviceId), (override));
59 MOCK_METHOD(ftl::Flags<InputDeviceClass>, getDeviceClasses, (int32_t deviceId), (const));
60 MOCK_METHOD(InputDeviceIdentifier, getDeviceIdentifier, (int32_t deviceId), (const));
61 MOCK_METHOD(int32_t, getDeviceControllerNumber, (int32_t deviceId), (const));
62 MOCK_METHOD(std::optional<PropertyMap>, getConfiguration, (int32_t deviceId), (const));
64 (int32_t deviceId, int axis, RawAbsoluteAxisInfo* outAxisInfo), (const));
65 MOCK_METHOD(bool, hasRelativeAxis, (int32_t deviceId, int axis), (const));
66 MOCK_METHOD(bool, hasInputProperty, (int32_t deviceId, int property), (const));
67 MOCK_METHOD(bool, hasMscEvent, (int32_t deviceId, int mscEvent), (const));
68 MOCK_METHOD(void, addKeyRemapping, (int32_t deviceId, int fromKeyCode, int toKeyCode), (const));
[all …]
DFakeEventHub.h106 void addDevice(int32_t deviceId, const std::string& name, ftl::Flags<InputDeviceClass> classes,
108 void removeDevice(int32_t deviceId);
110 bool isDeviceEnabled(int32_t deviceId) const override;
111 status_t enableDevice(int32_t deviceId) override;
112 status_t disableDevice(int32_t deviceId) override;
116 void addConfigurationProperty(int32_t deviceId, const char* key, const char* value);
117 void addConfigurationMap(int32_t deviceId, const PropertyMap* configuration);
119 void addAbsoluteAxis(int32_t deviceId, int axis, int32_t minValue, int32_t maxValue, int flat,
121 void addRelativeAxis(int32_t deviceId, int32_t axis);
122 void setAbsoluteAxisValue(int32_t deviceId, int32_t axis, int32_t value);
[all …]
/frameworks/native/services/inputflinger/dispatcher/
DTouchedWindow.cpp38 bool TouchedWindow::hasHoveringPointers(int32_t deviceId) const { in hasHoveringPointers()
39 const auto stateIt = mDeviceStates.find(deviceId); in hasHoveringPointers()
56 bool TouchedWindow::hasHoveringPointer(int32_t deviceId, int32_t pointerId) const { in hasHoveringPointer() argument
57 const auto stateIt = mDeviceStates.find(deviceId); in hasHoveringPointer()
66 void TouchedWindow::addHoveringPointer(int32_t deviceId, int32_t pointerId) { in addHoveringPointer() argument
67 mDeviceStates[deviceId].hoveringPointerIds.set(pointerId); in addHoveringPointer()
70 void TouchedWindow::addTouchingPointer(int32_t deviceId, int32_t pointerId) { in addTouchingPointer() argument
71 mDeviceStates[deviceId].touchingPointerIds.set(pointerId); in addTouchingPointer()
74 void TouchedWindow::addTouchingPointers(int32_t deviceId, in addTouchingPointers() argument
76 mDeviceStates[deviceId].touchingPointerIds |= pointers; in addTouchingPointers()
[all …]
DTouchedWindow.h37 bool hasHoveringPointers(int32_t deviceId) const;
38 bool hasHoveringPointer(int32_t deviceId, int32_t pointerId) const;
39 void addHoveringPointer(int32_t deviceId, int32_t pointerId);
40 void removeHoveringPointer(int32_t deviceId, int32_t pointerId);
43 bool hasTouchingPointer(int32_t deviceId, int32_t pointerId) const;
45 bool hasTouchingPointers(int32_t deviceId) const;
46 std::bitset<MAX_POINTER_ID + 1> getTouchingPointers(int32_t deviceId) const;
47 void addTouchingPointer(int32_t deviceId, int32_t pointerId);
48 void addTouchingPointers(int32_t deviceId, std::bitset<MAX_POINTER_ID + 1> pointers);
49 void removeTouchingPointer(int32_t deviceId, int32_t pointerId);
[all …]
/frameworks/native/services/inputflinger/tests/fuzzers/
DInputReaderFuzzer.cpp58 bool isInputDeviceEnabled(int32_t deviceId) { return reader->isInputDeviceEnabled(deviceId); } in isInputDeviceEnabled() argument
66 int32_t getScanCodeState(int32_t deviceId, uint32_t sourceMask, int32_t scanCode) { in getScanCodeState() argument
67 return reader->getScanCodeState(deviceId, sourceMask, scanCode); in getScanCodeState()
70 int32_t getKeyCodeState(int32_t deviceId, uint32_t sourceMask, int32_t keyCode) { in getKeyCodeState() argument
71 return reader->getKeyCodeState(deviceId, sourceMask, keyCode); in getKeyCodeState()
74 int32_t getSwitchState(int32_t deviceId, uint32_t sourceMask, int32_t sw) { in getSwitchState() argument
75 return reader->getSwitchState(deviceId, sourceMask, sw); in getSwitchState()
78 void toggleCapsLockState(int32_t deviceId) { reader->toggleCapsLockState(deviceId); } in toggleCapsLockState() argument
80 bool hasKeys(int32_t deviceId, uint32_t sourceMask, const std::vector<int32_t>& keyCodes, in hasKeys() argument
82 return reader->hasKeys(deviceId, sourceMask, keyCodes, outFlags); in hasKeys()
[all …]
DMapperHelpers.h88 ftl::Flags<InputDeviceClass> getDeviceClasses(int32_t deviceId) const override { in getDeviceClasses() argument
91 InputDeviceIdentifier getDeviceIdentifier(int32_t deviceId) const override { in getDeviceIdentifier() argument
94 int32_t getDeviceControllerNumber(int32_t deviceId) const override { in getDeviceControllerNumber() argument
97 std::optional<PropertyMap> getConfiguration(int32_t deviceId) const override { in getConfiguration() argument
100 status_t getAbsoluteAxisInfo(int32_t deviceId, int axis, in getAbsoluteAxisInfo() argument
104 bool hasRelativeAxis(int32_t deviceId, int axis) const override { return mFdp->ConsumeBool(); } in hasRelativeAxis() argument
105 bool hasInputProperty(int32_t deviceId, int property) const override { in hasInputProperty() argument
108 bool hasMscEvent(int32_t deviceId, int mscEvent) const override { return mFdp->ConsumeBool(); } in hasMscEvent() argument
109 status_t mapKey(int32_t deviceId, int32_t scanCode, int32_t usageCode, int32_t metaState, in mapKey() argument
113 status_t mapAxis(int32_t deviceId, int32_t scanCode, AxisInfo* outAxisInfo) const override { in mapAxis() argument
[all …]
/frameworks/native/services/inputflinger/reader/include/
DEventHub.h63 int32_t deviceId; member
260 virtual ftl::Flags<InputDeviceClass> getDeviceClasses(int32_t deviceId) const = 0;
262 virtual InputDeviceIdentifier getDeviceIdentifier(int32_t deviceId) const = 0;
264 virtual int32_t getDeviceControllerNumber(int32_t deviceId) const = 0;
272 virtual std::optional<PropertyMap> getConfiguration(int32_t deviceId) const = 0;
274 virtual status_t getAbsoluteAxisInfo(int32_t deviceId, int axis,
277 virtual bool hasRelativeAxis(int32_t deviceId, int axis) const = 0;
279 virtual bool hasInputProperty(int32_t deviceId, int property) const = 0;
281 virtual bool hasMscEvent(int32_t deviceId, int mscEvent) const = 0;
283 virtual void addKeyRemapping(int32_t deviceId, int32_t fromKeyCode,
[all …]
DInputReader.h65 bool isInputDeviceEnabled(int32_t deviceId) override;
67 int32_t getScanCodeState(int32_t deviceId, uint32_t sourceMask, int32_t scanCode) override;
68 int32_t getKeyCodeState(int32_t deviceId, uint32_t sourceMask, int32_t keyCode) override;
69 int32_t getSwitchState(int32_t deviceId, uint32_t sourceMask, int32_t sw) override;
71 void addKeyRemapping(int32_t deviceId, int32_t fromKeyCode, int32_t toKeyCode) const override;
73 int32_t getKeyCodeForKeyLocation(int32_t deviceId, int32_t locationKeyCode) const override;
75 void toggleCapsLockState(int32_t deviceId) override;
77 bool hasKeys(int32_t deviceId, uint32_t sourceMask, const std::vector<int32_t>& keyCodes,
82 void vibrate(int32_t deviceId, const VibrationSequence& sequence, ssize_t repeat,
84 void cancelVibrate(int32_t deviceId, int32_t token) override;
[all …]
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DProxyManager.java106 void removeDeviceIdLocked(int deviceId); in removeDeviceIdLocked() argument
159 final int deviceId = vdm.getDeviceIdForDisplayId(displayId); in registerProxy() local
173 mA11yWindowManager, displayId, deviceId); in registerProxy()
208 public void clearConnections(int deviceId) { in clearConnections() argument
214 if (proxy != null && proxy.getDeviceId() == deviceId) { in clearConnections()
240 int deviceId = DEVICE_ID_INVALID; in clearConnectionAndUpdateState() local
243 deviceId = mProxyA11yServiceConnections.get(displayId).getDeviceId(); in clearConnectionAndUpdateState()
250 updateStateForRemovedDisplay(displayId, deviceId); in clearConnectionAndUpdateState()
264 private void updateStateForRemovedDisplay(int displayId, int deviceId) { in updateStateForRemovedDisplay() argument
282 if (!isProxyedDeviceId(deviceId)) { in updateStateForRemovedDisplay()
[all …]
/frameworks/base/core/java/android/hardware/input/
DInputDeviceSensorManager.java92 SensorManager getSensorManager(int deviceId) { in getSensorManager() argument
93 return new InputSensorManager(deviceId); in getSensorManager()
99 private void updateInputDeviceSensorInfoLocked(int deviceId) { in updateInputDeviceSensorInfoLocked() argument
100 final InputDevice inputDevice = InputDevice.getDevice(deviceId); in updateInputDeviceSensorInfoLocked()
103 mGlobal.getSensorList(deviceId); in updateInputDeviceSensorInfoLocked()
104 populateSensorsForInputDeviceLocked(deviceId, sensorInfos); in updateInputDeviceSensorInfoLocked()
109 public void onInputDeviceAdded(int deviceId) { in onInputDeviceAdded() argument
111 if (!mSensors.containsKey(deviceId)) { in onInputDeviceAdded()
112 updateInputDeviceSensorInfoLocked(deviceId); in onInputDeviceAdded()
114 Slog.e(TAG, "Received 'device added' notification for device " + deviceId in onInputDeviceAdded()
[all …]
DIInputManager.aidl51 InputDevice getInputDevice(int deviceId); in getInputDevice() argument
55 boolean isInputDeviceEnabled(int deviceId); in isInputDeviceEnabled() argument
56 void enableInputDevice(int deviceId); in enableInputDevice() argument
57 void disableInputDevice(int deviceId); in disableInputDevice() argument
60 boolean hasKeys(int deviceId, int sourceMask, in int[] keyCodes, out boolean[] keyExists); in hasKeys() argument
64 int getKeyCodeForKeyLocation(int deviceId, in int locationKeyCode); in getKeyCodeForKeyLocation() argument
157 void vibrate(int deviceId, in VibrationEffect effect, IBinder token); in vibrate() argument
158 void vibrateCombined(int deviceId, in CombinedVibration vibration, IBinder token); in vibrateCombined() argument
159 void cancelVibrate(int deviceId, IBinder token); in cancelVibrate() argument
160 int[] getVibratorIds(int deviceId); in getVibratorIds() argument
[all …]
DInputManagerGlobal.java241 final int deviceId = mInputDevices.keyAt(i); in onInputDevicesChanged() local
242 if (!containsDeviceId(deviceIdAndGeneration, deviceId)) { in onInputDevicesChanged()
244 Log.d(TAG, "Device removed: " + deviceId); in onInputDevicesChanged()
248 InputDeviceListenerDelegate.MSG_DEVICE_REMOVED, deviceId); in onInputDevicesChanged()
253 final int deviceId = deviceIdAndGeneration[i]; in onInputDevicesChanged() local
254 int index = mInputDevices.indexOfKey(deviceId); in onInputDevicesChanged()
261 Log.d(TAG, "Device changed: " + deviceId); in onInputDevicesChanged()
265 InputDeviceListenerDelegate.MSG_DEVICE_CHANGED, deviceId); in onInputDevicesChanged()
270 Log.d(TAG, "Device added: " + deviceId); in onInputDevicesChanged()
272 mInputDevices.put(deviceId, null); in onInputDevicesChanged()
[all …]
/frameworks/native/services/inputflinger/include/
DInputReaderBase.h297 virtual bool isInputDeviceEnabled(int32_t deviceId) = 0;
312 virtual int32_t getScanCodeState(int32_t deviceId, uint32_t sourceMask, int32_t scanCode) = 0;
313 virtual int32_t getKeyCodeState(int32_t deviceId, uint32_t sourceMask, int32_t keyCode) = 0;
314 virtual int32_t getSwitchState(int32_t deviceId, uint32_t sourceMask, int32_t sw) = 0;
316 virtual void addKeyRemapping(int32_t deviceId, int32_t fromKeyCode,
319 virtual int32_t getKeyCodeForKeyLocation(int32_t deviceId, int32_t locationKeyCode) const = 0;
322 virtual void toggleCapsLockState(int32_t deviceId) = 0;
325 virtual bool hasKeys(int32_t deviceId, uint32_t sourceMask,
334 virtual void vibrate(int32_t deviceId, const VibrationSequence& sequence, ssize_t repeat,
336 virtual void cancelVibrate(int32_t deviceId, int32_t token) = 0;
[all …]
/frameworks/native/services/inputflinger/reader/
DInputReader.cpp176 mPolicy->notifyStylusGestureStarted(motionArgs->deviceId, motionArgs->eventTime); in loopOnce()
198 int32_t deviceId = rawEvent->deviceId; in processEventsLocked() local
201 rawEvent[batchSize].deviceId != deviceId) { in processEventsLocked()
209 out += processEventsForDeviceLocked(deviceId, rawEvent, batchSize); in processEventsLocked()
213 addDeviceLocked(rawEvent->when, rawEvent->deviceId); in processEventsLocked()
216 removeDeviceLocked(rawEvent->when, rawEvent->deviceId); in processEventsLocked()
333 int32_t deviceId = (eventHubId < END_RESERVED_ID) ? eventHubId : nextInputDeviceIdLocked(); in createDeviceLocked() local
334 device = std::make_shared<InputDevice>(&mContext, deviceId, bumpGenerationLocked(), in createDeviceLocked()
359 InputDevice* InputReader::findInputDeviceLocked(int32_t deviceId) const { in findInputDeviceLocked()
361 std::find_if(mDevices.begin(), mDevices.end(), [deviceId](const auto& devicePair) { in findInputDeviceLocked()
[all …]
/frameworks/base/core/java/android/content/
DIClipboard.aidl30 int deviceId); in setPrimaryClip() argument
32 int userId, int deviceId, String sourcePackage); in setPrimaryClipAsPackage() argument
33 void clearPrimaryClip(String callingPackage, String attributionTag, int userId, int deviceId); in clearPrimaryClip() argument
34 ClipData getPrimaryClip(String pkg, String attributionTag, int userId, int deviceId); in getPrimaryClip() argument
36 int userId, int deviceId); in getPrimaryClipDescription() argument
37 boolean hasPrimaryClip(String callingPackage, String attributionTag, int userId, int deviceId); in hasPrimaryClip() argument
39 String callingPackage, String attributionTag, int userId, int deviceId); in addPrimaryClipChangedListener() argument
41 String callingPackage, String attributionTag, int userId, int deviceId); in removePrimaryClipChangedListener() argument
47 int deviceId); in hasClipboardText() argument
50 int deviceId); in getPrimaryClipSource() argument
/frameworks/native/services/inputflinger/
DPreferStylusOverTouchBlocker.cpp103 mDevicesWithMixedToolType.insert(args.deviceId); in processMotion()
107 if (mDevicesWithMixedToolType.find(args.deviceId) != mDevicesWithMixedToolType.end()) { in processMotion()
109 if (mCanceledDevices.find(args.deviceId) != mCanceledDevices.end()) { in processMotion()
113 mCanceledDevices.erase(args.deviceId); in processMotion()
114 mLastTouchEvents.erase(args.deviceId); in processMotion()
127 mActiveStyli.insert(args.deviceId); in processMotion()
131 for (auto& [deviceId, lastTouchEvent] : mLastTouchEvents) { in processMotion()
132 if (mCanceledDevices.find(deviceId) != mCanceledDevices.end()) { in processMotion()
141 mCanceledDevices.insert(deviceId); in processMotion()
147 mActiveStyli.erase(args.deviceId); in processMotion()
[all …]
DInputProcessor.cpp154 return motionArgs.deviceId; in getDeviceId()
158 return deviceResetArgs.deviceId; in getDeviceId()
219 updateClassification(motionArgs.deviceId, motionArgs.eventTime, in processEvents()
225 const int32_t deviceId = *(event.getDeviceId()); in processEvents() local
226 halResponseOk = mService->resetDevice(deviceId).isOk(); in processEvents()
227 clearDeviceState(deviceId); in processEvents()
263 void MotionClassifier::updateClassification(int32_t deviceId, nsecs_t eventTime, in updateClassification() argument
266 const nsecs_t lastDownTime = getValueForKey(mLastDownTimes, deviceId, static_cast<nsecs_t>(0)); in updateClassification()
274 mClassifications[deviceId] = classification; in updateClassification()
277 void MotionClassifier::setClassification(int32_t deviceId, MotionClassification classification) { in setClassification() argument
[all …]
/frameworks/base/services/core/java/com/android/server/vibrator/
DInputDeviceDelegate.java64 public void onInputDeviceAdded(int deviceId) { in onInputDeviceAdded() argument
65 updateInputDevice(deviceId); in onInputDeviceAdded()
69 public void onInputDeviceChanged(int deviceId) { in onInputDeviceChanged() argument
70 updateInputDevice(deviceId); in onInputDeviceChanged()
74 public void onInputDeviceRemoved(int deviceId) { in onInputDeviceRemoved() argument
76 mInputDeviceVibrators.remove(deviceId); in onInputDeviceRemoved()
147 for (int deviceId : mInputManager.getInputDeviceIds()) { in updateInputDeviceVibrators()
148 InputDevice device = mInputManager.getInputDevice(deviceId); in updateInputDeviceVibrators()
165 private void updateInputDevice(int deviceId) { in updateInputDevice() argument
175 InputDevice device = mInputManager.getInputDevice(deviceId); in updateInputDevice()
[all …]
/frameworks/base/services/core/jni/tvinput/
DJTvInputHal.cpp61 int JTvInputHal::addOrUpdateStream(int deviceId, int streamId, const sp<Surface>& surface) { in addOrUpdateStream() argument
63 KeyedVector<int, Connection>& connections = mConnections.editValueFor(deviceId); in addOrUpdateStream()
85 status = mTvInput->getStreamConfigurations(deviceId, &list); in addOrUpdateStream()
87 ALOGE("Couldn't get stream configs for device id:%d result:%d", deviceId, in addOrUpdateStream()
105 status = mTvInput->openStream(deviceId, streamId, &sidebandStream); in addOrUpdateStream()
107 ALOGE("Couldn't open stream. device id:%d stream id:%d result:%d", deviceId, streamId, in addOrUpdateStream()
120 int JTvInputHal::removeStream(int deviceId, int streamId) { in removeStream() argument
122 KeyedVector<int, Connection>& connections = mConnections.editValueFor(deviceId); in removeStream()
139 if (!mTvInput->closeStream(deviceId, streamId).isOk()) { in removeStream()
140 ALOGE("Couldn't close stream. device id:%d stream id:%d", deviceId, streamId); in removeStream()
[all …]
/frameworks/base/core/tests/coretests/src/android/hardware/input/
DInputManagerTest.kt84 deviceId: Int, in notifyDeviceChanged()
88 val generation = deviceGenerationMap[deviceId]?.plus(1) in notifyDeviceChanged()
89 ?: throw IllegalArgumentException("Device $deviceId was never added!") in notifyDeviceChanged()
90 deviceGenerationMap[deviceId] = generation in notifyDeviceChanged()
92 `when`(iInputManager.getInputDevice(deviceId)) in notifyDeviceChanged()
93 .thenReturn(createInputDevice(deviceId, associatedDisplayId, usiVersion, generation)) in notifyDeviceChanged()
101 deviceId: Int, in addInputDevice()
105 deviceGenerationMap[deviceId] = 0 in addInputDevice()
106 notifyDeviceChanged(deviceId, associatedDisplayId, usiVersion) in addInputDevice()
133 deviceId: Int, in createInputDevice()
[all …]

12345678910>>...15