/frameworks/base/services/core/java/com/android/server/tv/ |
D | TvInputHal.java | 53 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 …]
|
D | TvInputHardwareManager.java | 177 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/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/ |
D | TestMtpManager.java | 50 mDevices.put(device.deviceId, device); in addValidDevice() 53 void setObjectHandles(int deviceId, int storageId, int parentHandle, int[] objectHandles) { in setObjectHandles() argument 54 mObjectHandles.put(pack(deviceId, storageId, parentHandle), objectHandles); in setObjectHandles() 57 void setObjectInfo(int deviceId, MtpObjectInfo objectInfo) { in setObjectInfo() argument 58 mObjectInfos.put(pack(deviceId, objectInfo.getObjectHandle()), objectInfo); in setObjectInfo() 61 void setImportFileBytes(int deviceId, int objectHandle, byte[] bytes) { in setImportFileBytes() argument 62 mImportFileBytes.put(pack(deviceId, objectHandle), bytes); in setImportFileBytes() 65 byte[] getImportFileBytes(int deviceId, int objectHandle) { in getImportFileBytes() argument 66 return mImportFileBytes.get(pack(deviceId, objectHandle)); in getImportFileBytes() 69 void setThumbnail(int deviceId, int objectHandle, byte[] bytes) { in setThumbnail() argument [all …]
|
D | DocumentLoaderTest.java | 110 int[] getObjectHandles(int deviceId, int storageId, int parentObjectHandle) in testError_GetObjectHandles() 129 MtpObjectInfo getObjectInfo(int deviceId, int objectHandle) throws IOException { in testError_GetObjectInfo() 133 return super.getObjectInfo(deviceId, objectHandle); in testError_GetObjectInfo() 208 void blockDocument(int deviceId, int objectHandle) { in blockDocument() argument 209 blockedDocuments.put(pack(deviceId, objectHandle), new CountDownLatch(1)); in blockDocument() 212 void unblockDocument(int deviceId, int objectHandle) { in unblockDocument() argument 213 blockedDocuments.get(pack(deviceId, objectHandle)).countDown(); in unblockDocument() 217 MtpObjectInfo getObjectInfo(int deviceId, int objectHandle) throws IOException { in getObjectInfo() argument 218 final CountDownLatch latch = blockedDocuments.get(pack(deviceId, objectHandle)); in getObjectInfo() 226 return super.getObjectInfo(deviceId, objectHandle); in getObjectInfo()
|
/frameworks/native/services/inputflinger/ |
D | EventHub.h | 74 int32_t deviceId; member 188 virtual uint32_t getDeviceClasses(int32_t deviceId) const = 0; 190 virtual InputDeviceIdentifier getDeviceIdentifier(int32_t deviceId) const = 0; 192 virtual int32_t getDeviceControllerNumber(int32_t deviceId) const = 0; 194 virtual void getConfiguration(int32_t deviceId, PropertyMap* outConfiguration) const = 0; 196 virtual status_t getAbsoluteAxisInfo(int32_t deviceId, int axis, 199 virtual bool hasRelativeAxis(int32_t deviceId, int axis) const = 0; 201 virtual bool hasInputProperty(int32_t deviceId, int property) const = 0; 203 virtual status_t mapKey(int32_t deviceId, 207 virtual status_t mapAxis(int32_t deviceId, int32_t scanCode, [all …]
|
D | InputListener.cpp | 45 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()
|
D | EventHub.cpp | 250 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 …]
|
D | InputListener.h | 56 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);
|
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/ |
D | MtpManager.java | 76 synchronized MtpDeviceRecord openDevice(int deviceId) throws IOException { in openDevice() argument 79 if (candidate.getDeviceId() == deviceId) { in openDevice() 85 ensureNotNull(rawDevice, "Not found USB device: " + deviceId); in openDevice() 110 mDevices.put(deviceId, device); in openDevice() 114 synchronized void closeDevice(int deviceId) throws IOException { in closeDevice() argument 115 getDevice(deviceId).close(); in closeDevice() 116 mDevices.remove(deviceId); in closeDevice() 130 MtpObjectInfo getObjectInfo(int deviceId, int objectHandle) throws IOException { in getObjectInfo() argument 131 final MtpDevice device = getDevice(deviceId); in getObjectInfo() 139 int[] getObjectHandles(int deviceId, int storageId, int parentObjectHandle) in getObjectHandles() argument [all …]
|
D | MtpDeviceRecord.java | 23 public final int deviceId; field in MtpDeviceRecord 31 MtpDeviceRecord(int deviceId, String name, @Nullable String deviceKey, boolean opened, in MtpDeviceRecord() argument 34 this.deviceId = deviceId; in MtpDeviceRecord()
|
D | MtpRoot.java | 32 MtpRoot(int deviceId, in MtpRoot() argument 38 mDeviceId = deviceId; in MtpRoot() 46 MtpRoot(int deviceId, MtpStorageInfo storageInfo) { in MtpRoot() argument 47 mDeviceId = deviceId; in MtpRoot()
|
/frameworks/av/services/oboeservice/ |
D | AAudioEndpointManager.cpp | 38 …ServiceEndpoint *AAudioEndpointManager::openEndpoint(AAudioService &audioService, int32_t deviceId, in openEndpoint() argument 46 endpoint = mInputs[deviceId]; in openEndpoint() 49 endpoint = mOutputs[deviceId]; in openEndpoint() 56 endpoint, deviceId, (int)direction); in openEndpoint() 62 if (capture->open(deviceId) != AAUDIO_OK) { in openEndpoint() 66 mInputs[deviceId] = capture; in openEndpoint() 71 if (player->open(deviceId) != AAUDIO_OK) { in openEndpoint() 75 mOutputs[deviceId] = player; in openEndpoint() 100 int32_t deviceId = serviceEndpoint->getDeviceId(); in closeEndpoint() local 104 mInputs.erase(deviceId); in closeEndpoint() [all …]
|
D | AAudioServiceStreamMMAP.cpp | 89 audio_port_handle_t deviceId = configurationInput.getDeviceId(); in open() local 133 &deviceId, in open() 188 configurationOutput.setDeviceId(deviceId); in open() 275 void AAudioServiceStreamMMAP::onRoutingChanged(audio_port_handle_t deviceId) { in onRoutingChanged() argument 277 deviceId, mPortHandle); in onRoutingChanged() 278 if (mPortHandle > 0 && mPortHandle != deviceId) { in onRoutingChanged() 281 mPortHandle = deviceId; in onRoutingChanged()
|
/frameworks/base/core/java/android/hardware/fingerprint/ |
D | IFingerprintServiceReceiver.aidl | 27 void onEnrollResult(long deviceId, int fingerId, int groupId, int remaining); in onEnrollResult() argument 28 void onAcquired(long deviceId, int acquiredInfo, int vendorCode); in onAcquired() argument 29 void onAuthenticationSucceeded(long deviceId, in Fingerprint fp, int userId); in onAuthenticationSucceeded() 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
|
D | FingerprintManager.java | 766 long deviceId = 0; /* TODO: plumb hardware id to FPMS */ in isHardwareDetected() local 767 return mService.isHardwareDetected(deviceId, mContext.getOpPackageName()); in isHardwareDetected() 826 public void onLockoutReset(long deviceId, IRemoteCallback serverCallback) in addLockoutResetCallback() 916 private void sendEnumeratedResult(long deviceId, int fingerId, int groupId) { in sendEnumeratedResult() argument 918 mEnumerateCallback.onEnumerate(new Fingerprint(null, groupId, fingerId, deviceId)); in sendEnumeratedResult() 922 private void sendErrorResult(long deviceId, int errMsgId, int vendorCode) { in sendErrorResult() argument 961 private void sendAcquiredResult(long deviceId, int acquireInfo, int vendorCode) { in sendAcquiredResult() argument 1082 public void onEnrollResult(long deviceId, int fingerId, int groupId, int remaining) { 1084 new Fingerprint(null, groupId, fingerId, deviceId)).sendToTarget(); 1088 public void onAcquired(long deviceId, int acquireInfo, int vendorCode) { [all …]
|
/frameworks/base/services/core/jni/ |
D | com_android_server_tv_TvInputHal.cpp | 81 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/base/core/java/android/view/ |
D | InputEventConsistencyVerifier.java | 206 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/base/core/java/android/hardware/input/ |
D | InputManager.java | 951 final int deviceId = mInputDevices.keyAt(i); in onInputDevicesChanged() local 952 if (!containsDeviceId(deviceIdAndGeneration, deviceId)) { in onInputDevicesChanged() 954 Log.d(TAG, "Device removed: " + deviceId); in onInputDevicesChanged() 957 sendMessageToInputDeviceListenersLocked(MSG_DEVICE_REMOVED, deviceId); in onInputDevicesChanged() 962 final int deviceId = deviceIdAndGeneration[i]; in onInputDevicesChanged() local 963 int index = mInputDevices.indexOfKey(deviceId); in onInputDevicesChanged() 970 Log.d(TAG, "Device changed: " + deviceId); in onInputDevicesChanged() 973 sendMessageToInputDeviceListenersLocked(MSG_DEVICE_CHANGED, deviceId); in onInputDevicesChanged() 978 Log.d(TAG, "Device added: " + deviceId); in onInputDevicesChanged() 980 mInputDevices.put(deviceId, null); in onInputDevicesChanged() [all …]
|
D | IInputManager.aidl | 34 InputDevice getInputDevice(int deviceId); in getInputDevice() argument 38 boolean hasKeys(int deviceId, int sourceMask, in int[] keyCodes, out boolean[] keyExists); in hasKeys() argument 79 void vibrate(int deviceId, in long[] pattern, int repeat, IBinder token); in vibrate() argument 80 void cancelVibrate(int deviceId, IBinder token); in cancelVibrate() argument
|
/frameworks/native/include/input/ |
D | InputTransport.h | 66 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;
|
/frameworks/native/libs/input/ |
D | KeyCharacterMap.cpp | 298 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, ¤tMetaState); 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, ¤tMetaState); 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(deviceId, AINPUT_SOURCE_KEYBOARD, in addKey() 496 int32_t deviceId, int32_t metaState, bool down, nsecs_t time, in addMetaKeys() argument [all …]
|
D | InputTransport.cpp | 244 int32_t deviceId, in publishKeyEvent() argument 259 deviceId, source, action, flags, keyCode, scanCode, metaState, repeatCount, in publishKeyEvent() 271 msg.body.key.deviceId = deviceId; in publishKeyEvent() 286 int32_t deviceId, in publishMotionEvent() argument 310 deviceId, source, action, actionButton, flags, edgeFlags, metaState, buttonState, in publishMotionEvent() 328 msg.body.motion.deviceId = deviceId; in publishMotionEvent() 450 ssize_t batchIndex = findBatch(mMsg.body.motion.deviceId, mMsg.body.motion.source); in consume() 587 int32_t deviceId = msg->body.motion.deviceId; in updateTouchState() local 596 ssize_t index = findTouchState(deviceId, source); in updateTouchState() 602 touchState.initialize(deviceId, source); in updateTouchState() [all …]
|
/frameworks/base/core/jni/ |
D | android_media_DeviceCallback.cpp | 65 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()
|
/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
D | AppCompatDelegateImplN.java | 46 List<KeyboardShortcutGroup> data, Menu menu, int deviceId) { in onProvideKeyboardShortcuts() argument 51 super.onProvideKeyboardShortcuts(data, panel.menu, deviceId); in onProvideKeyboardShortcuts() 54 super.onProvideKeyboardShortcuts(data, menu, deviceId); in onProvideKeyboardShortcuts()
|
/frameworks/av/media/libaaudio/src/legacy/ |
D | AudioStreamLegacy.cpp | 143 void AudioStreamLegacy::onAudioDeviceUpdate(audio_port_handle_t deviceId) in onAudioDeviceUpdate() argument 145 ALOGD("onAudioDeviceUpdate() deviceId %d", (int)deviceId); in onAudioDeviceUpdate() 146 if (getDeviceId() != AAUDIO_UNSPECIFIED && getDeviceId() != deviceId && in onAudioDeviceUpdate() 159 setDeviceId(deviceId); in onAudioDeviceUpdate()
|