Home
last modified time | relevance | path

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

12

/frameworks/base/services/core/java/com/android/server/input/
DInputShellCommand.java116 private int getInputDeviceId(int inputSource) { in getInputDeviceId() argument
120 if (inputDev.supportsSource(inputSource)) { in getInputDeviceId()
157 private void injectMotionEvent(int inputSource, int action, long downTime, long when, in injectMotionEvent() argument
166 pointerProperties[i].toolType = getToolType(inputSource); in injectMotionEvent()
174 && (inputSource & InputDevice.SOURCE_CLASS_POINTER) != 0) { in injectMotionEvent()
179 DEFAULT_PRECISION_X, DEFAULT_PRECISION_Y, getInputDeviceId(inputSource), in injectMotionEvent()
180 DEFAULT_EDGE_FLAGS, inputSource, displayId, DEFAULT_FLAGS); in injectMotionEvent()
189 private int getSource(int inputSource, int defaultSource) { in getSource() argument
190 return inputSource == InputDevice.SOURCE_UNKNOWN ? defaultSource : inputSource; in getSource()
193 private int getToolType(int inputSource) { in getToolType() argument
[all …]
/frameworks/av/media/libaudioclient/tests/
Dtest_create_audiorecord.cpp77 audio_source_t inputSource; in testRecord() local
86 &flags, &sessionId, &inputSource) != NUM_ARGUMENTS) { in testRecord()
98 attributes.source = inputSource; in testRecord()
Drecord_test_input_v1.0_ref.txt4 # sampleRate format channelMask frameCount notificationFrames flags sessionId inputSource
/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/enginedefault/src/
DEngine.cpp480 sp<DeviceDescriptor> Engine::getDeviceForInputSource(audio_source_t inputSource) const in getDeviceForInputSource()
494 switch (inputSource) { in getDeviceForInputSource()
503 inputSource = AUDIO_SOURCE_VOICE_COMMUNICATION; in getDeviceForInputSource()
513 switch (inputSource) { in getDeviceForInputSource()
634 ALOGW("getDeviceForInputSource() invalid input source %d", inputSource); in getDeviceForInputSource()
638 ALOGV("getDeviceForInputSource() no device found for source %d", inputSource); in getDeviceForInputSource()
647 inputSource, device->type()); in getDeviceForInputSource()
DEngine.h92 sp<DeviceDescriptor> getDeviceForInputSource(audio_source_t inputSource) const;
/frameworks/av/media/libaudioclient/include/media/
DAudioRecord.h211 AudioRecord(audio_source_t inputSource,
229 AudioRecord(audio_source_t inputSource,
269 status_t set(audio_source_t inputSource,
289 status_t set(audio_source_t inputSource,
329 audio_source_t inputSource() const { return mAttributes.source; } in inputSource() function
/frameworks/av/services/audiopolicy/engineconfigurable/interface/
DAudioPolicyPluginInterface.h84 virtual bool setDeviceForInputSource(const audio_source_t &inputSource,
/frameworks/av/services/audiopolicy/service/
DAudioPolicyInterfaceImpl.cpp591 audio_source_t inputSource = attr.source; in getInputForAttr() local
592 if (inputSource == AUDIO_SOURCE_DEFAULT) { in getInputForAttr()
593 inputSource = AUDIO_SOURCE_MIC; in getInputForAttr()
597 if ((inputSource < AUDIO_SOURCE_DEFAULT) in getInputForAttr()
598 || (inputSource >= AUDIO_SOURCE_CNT in getInputForAttr()
599 && inputSource != AUDIO_SOURCE_HOTWORD in getInputForAttr()
600 && inputSource != AUDIO_SOURCE_FM_TUNER in getInputForAttr()
601 && inputSource != AUDIO_SOURCE_ECHO_REFERENCE in getInputForAttr()
602 && inputSource != AUDIO_SOURCE_ULTRASOUND)) { in getInputForAttr()
618 if (!(recordingAllowed(attributionSource, inputSource) in getInputForAttr()
[all …]
DAudioPolicyEffects.h63 audio_source_t inputSource,
DAudioPolicyEffects.cpp94 audio_source_t inputSource, in addInputEffects() argument
100 audio_source_t aliasSource = (inputSource == AUDIO_SOURCE_HOTWORD) ? in addInputEffects()
101 AUDIO_SOURCE_VOICE_RECOGNITION : inputSource; in addInputEffects()
/frameworks/av/media/libaudioclient/
DAudioRecord.cpp143 audio_source_t inputSource, in AudioRecord() argument
169 (void)set(inputSource, sampleRate, format, channelMask, frameCount, callback, user, in AudioRecord()
176 audio_source_t inputSource, in AudioRecord() argument
201 (void)set(inputSource, sampleRate, format, channelMask, frameCount, callback, in AudioRecord()
290 audio_source_t inputSource, in set() argument
317 inputSource, sampleRate, format, channelMask, frameCount, notificationFrames, in set()
346 mAttributes.source = inputSource; in set()
347 if (inputSource == AUDIO_SOURCE_VOICE_COMMUNICATION in set()
348 || inputSource == AUDIO_SOURCE_CAMCORDER) { in set()
483 audio_source_t inputSource, in set() argument
[all …]
/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.java196 public void clearEvents(int inputSource) { in clearEvents() argument
197 if (inputSource == SOURCE_TOUCHSCREEN) { in clearEvents()
201 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.cpp306 audio_source_t inputSource = getValue(&mFdp, kInputSources); in invokeAudioRecord() local
311 attributes.source = inputSource; in invokeAudioRecord()
331 record->inputSource(); in invokeAudioRecord()
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DAudioPolicyMix.h79 sp<DeviceDescriptor> getDeviceAndMixForInputSource(audio_source_t inputSource,
/frameworks/av/services/audiopolicy/engineconfigurable/src/
DEngine.h85 bool setDeviceForInputSource(const audio_source_t &inputSource, uint64_t device) override;
DEngine.cpp389 bool Engine::setDeviceForInputSource(const audio_source_t &inputSource, uint64_t device) in setDeviceForInputSource() argument
395 return setPropertyForKey<audio_devices_t, audio_source_t>(deviceType, inputSource); in setDeviceForInputSource()
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioPolicyMix.cpp402 audio_source_t inputSource, in getDeviceAndMixForInputSource() argument
414 mix->mCriteria[j].mValue.mSource == inputSource) || in getDeviceAndMixForInputSource()
416 mix->mCriteria[j].mValue.mSource != inputSource) || in getDeviceAndMixForInputSource()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/gestures/
DTouchExplorer.java217 public void clearEvents(int inputSource) { in clearEvents() argument
218 if (inputSource == InputDevice.SOURCE_TOUCHSCREEN) { in clearEvents()
221 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