Home
last modified time | relevance | path

Searched refs:inputSource (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/input/
DInputShellCommand.java117 private int getInputDeviceId(int inputSource) { in getInputDeviceId() argument
121 if (inputDev.supportsSource(inputSource)) { in getInputDeviceId()
158 private void injectMotionEvent(int inputSource, int action, long downTime, long when, in injectMotionEvent() argument
167 pointerProperties[i].toolType = getToolType(inputSource); in injectMotionEvent()
175 && (inputSource & InputDevice.SOURCE_CLASS_POINTER) != 0) { in injectMotionEvent()
180 DEFAULT_PRECISION_X, DEFAULT_PRECISION_Y, getInputDeviceId(inputSource), in injectMotionEvent()
181 DEFAULT_EDGE_FLAGS, inputSource, displayId, DEFAULT_FLAGS); in injectMotionEvent()
190 private int getSource(int inputSource, int defaultSource) { in getSource() argument
191 return inputSource == InputDevice.SOURCE_UNKNOWN ? defaultSource : inputSource; in getSource()
194 private int getToolType(int inputSource) { in getToolType() argument
[all …]
/frameworks/av/services/audiopolicy/enginedefault/src/
DEngine.cpp497 const DeviceVector& availableInputDevices, audio_source_t inputSource) const { in getPreferredAvailableDevicesForInputSource()
501 inputSource, DEVICE_ROLE_PREFERRED, preferredDevices); in getPreferredAvailableDevicesForInputSource()
508 __func__, preferredAvailableDevVec.toString().c_str(), inputSource); in getPreferredAvailableDevicesForInputSource()
516 const DeviceVector& availableInputDevices, audio_source_t inputSource) const { in getDisabledDevicesForInputSource()
520 inputSource, DEVICE_ROLE_DISABLED, disabledDevicesTypeAddr); in getDisabledDevicesForInputSource()
528 sp<DeviceDescriptor> Engine::getDeviceForInputSource(audio_source_t inputSource) const in getDeviceForInputSource()
542 switch (inputSource) { in getDeviceForInputSource()
551 inputSource = AUDIO_SOURCE_VOICE_COMMUNICATION; in getDeviceForInputSource()
560 availableDevices, inputSource); in getDeviceForInputSource()
569 availableDevices, inputSource); in getDeviceForInputSource()
[all …]
DEngine.h102 sp<DeviceDescriptor> getDeviceForInputSource(audio_source_t inputSource) const;
108 const DeviceVector& availableInputDevices, audio_source_t inputSource) const;
110 const DeviceVector& availableInputDevices, audio_source_t inputSource) const;
/frameworks/av/media/libaudioclient/tests/
Dtest_create_audiorecord.cpp74 audio_source_t inputSource; in testRecord() local
82 &inputSource) != NUM_ARGUMENTS) { in testRecord()
94 attributes.source = inputSource; in testRecord()
Drecord_test_input_v1.0_ref.txt4 # sampleRate format channelMask frameCount notificationFrames flags sessionId inputSource
Daudio_test_utils.h145 AudioCapture(audio_source_t inputSource, uint32_t sampleRate, audio_format_t format,
Daudiorecord_tests.cpp182 EXPECT_EQ(mInputSource, mAC->getAudioRecordHandle()->inputSource()); in TEST_P()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DEventStreamTransformation.java119 default void clearEvents(int inputSource) { in clearEvents() argument
122 next.clearEvents(inputSource); in clearEvents()
DAutoclickController.java115 public void clearEvents(int inputSource) { in clearEvents() argument
116 if (inputSource == InputDevice.SOURCE_MOUSE && mClickScheduler != null) { in clearEvents()
120 super.clearEvents(inputSource); in clearEvents()
DMotionEventInjector.java142 public void clearEvents(int inputSource) { in clearEvents() argument
148 mOpenGesturesInProgress.put(inputSource, false); in clearEvents()
/frameworks/av/services/audiopolicy/common/include/
Dpolicy.h142 static inline int32_t source_priority(audio_source_t inputSource) in source_priority() argument
144 switch (inputSource) { in source_priority()
/frameworks/av/services/audiopolicy/engineconfigurable/interface/
DAudioPolicyPluginInterface.h84 virtual bool setDeviceForInputSource(const audio_source_t &inputSource,
/frameworks/av/services/audiopolicy/service/
DAudioPolicyInterfaceImpl.cpp611 audio_source_t inputSource = attr.source; in getInputForAttr() local
612 if (inputSource == AUDIO_SOURCE_DEFAULT) { in getInputForAttr()
613 inputSource = AUDIO_SOURCE_MIC; in getInputForAttr()
617 if ((inputSource < AUDIO_SOURCE_DEFAULT) in getInputForAttr()
618 || (inputSource >= AUDIO_SOURCE_CNT in getInputForAttr()
619 && inputSource != AUDIO_SOURCE_HOTWORD in getInputForAttr()
620 && inputSource != AUDIO_SOURCE_FM_TUNER in getInputForAttr()
621 && inputSource != AUDIO_SOURCE_ECHO_REFERENCE in getInputForAttr()
622 && inputSource != AUDIO_SOURCE_ULTRASOUND)) { in getInputForAttr()
638 if (!(recordingAllowed(attributionSource, inputSource) in getInputForAttr()
[all …]
DAudioPolicyEffects.h74 audio_source_t inputSource,
DAudioPolicyEffects.cpp93 audio_source_t inputSource, in addInputEffects() argument
99 audio_source_t aliasSource = (inputSource == AUDIO_SOURCE_HOTWORD) ? in addInputEffects()
100 AUDIO_SOURCE_VOICE_RECOGNITION : inputSource; in addInputEffects()
/frameworks/av/media/libaudioclient/include/media/
DAudioRecord.h188 AudioRecord(audio_source_t inputSource,
228 status_t set(audio_source_t inputSource,
267 audio_source_t inputSource() const { return mAttributes.source; } in inputSource() function
/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/
DWindowMagnificationGestureHandler.java148 public void clearEvents(int inputSource) { in clearEvents() argument
149 if (inputSource == SOURCE_TOUCHSCREEN) { in clearEvents()
152 super.clearEvents(inputSource); in clearEvents()
DFullScreenMagnificationGestureHandler.java237 public void clearEvents(int inputSource) { in clearEvents() argument
238 if (inputSource == SOURCE_TOUCHSCREEN) { in clearEvents()
242 super.clearEvents(inputSource); in clearEvents()
/frameworks/av/media/libaudioclient/fuzzer/
DREADME.md24 12. Input Source (parameter name: `inputSource`)
43 | `inputSource` | 14 values of type `audio_source_t` | Value chosen from valid values by obtaining …
Daudioflinger_fuzzer.cpp332 audio_source_t inputSource = getValue(&mFdp, kInputSources); in invokeAudioRecord() local
337 attributes.source = inputSource; in invokeAudioRecord()
357 record->inputSource(); in invokeAudioRecord()
/frameworks/av/media/libaudioclient/
DAudioRecord.cpp143 audio_source_t inputSource, in AudioRecord() argument
168 (void)set(inputSource, sampleRate, format, channelMask, frameCount, callback, in AudioRecord()
226 audio_source_t inputSource, in set() argument
253 inputSource, sampleRate, format, channelMask, frameCount, notificationFrames, in set()
282 mAttributes.source = inputSource; in set()
283 if (inputSource == AUDIO_SOURCE_VOICE_COMMUNICATION in set()
284 || inputSource == AUDIO_SOURCE_CAMCORDER) { in set()
/frameworks/av/services/audiopolicy/engineconfigurable/src/
DEngine.h99 bool setDeviceForInputSource(const audio_source_t &inputSource, uint64_t device) override;
DEngine.cpp516 bool Engine::setDeviceForInputSource(const audio_source_t &inputSource, uint64_t device) in setDeviceForInputSource() argument
522 return setPropertyForKey<audio_devices_t, audio_source_t>(deviceType, inputSource); in setDeviceForInputSource()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/gestures/
DTouchExplorer.java220 public void clearEvents(int inputSource) { in clearEvents() argument
221 if (inputSource == InputDevice.SOURCE_TOUCHSCREEN) { in clearEvents()
224 super.clearEvents(inputSource); in clearEvents()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DAccessibilityInputFilterTest.java129 public void clearEvents(int inputSource) { in clearEvents() argument

12