Home
last modified time | relevance | path

Searched refs:inputConfig (Results 1 – 25 of 44) sorted by relevance

12

/frameworks/base/core/java/android/view/
DInputWindowHandle.java121 public int inputConfig; field in InputWindowHandle
200 inputConfig = other.inputConfig; in InputWindowHandle()
227 .append(", isClone=").append((inputConfig & InputConfig.CLONE) != 0) in toString()
276 public void setInputConfig(@InputConfigFlags int inputConfig, boolean value) { in setInputConfig() argument
278 this.inputConfig |= inputConfig; in setInputConfig()
281 this.inputConfig &= ~inputConfig; in setInputConfig()
289 inputConfig |= InputConfig.TRUSTED_OVERLAY; in setTrustedOverlay()
/frameworks/base/core/java/android/window/
DWindowInfosListenerForTest.java124 @NonNull Rect bounds, int inputConfig, @NonNull Matrix transform) { in WindowInfo() argument
129 this.isTrustedOverlay = (inputConfig & InputConfig.TRUSTED_OVERLAY) != 0; in WindowInfo()
130 this.isVisible = (inputConfig & InputConfig.NOT_VISIBLE) == 0; in WindowInfo()
132 this.isTouchable = (inputConfig & InputConfig.NOT_TOUCHABLE) == 0; in WindowInfo()
133 this.isFocusable = (inputConfig & InputConfig.NOT_FOCUSABLE) == 0; in WindowInfo()
134 this.isPreventSplitting = (inputConfig in WindowInfo()
136 this.isDuplicateTouchToWallpaper = (inputConfig in WindowInfo()
138 this.isWatchOutsideTouch = (inputConfig in WindowInfo()
226 bounds, handle.inputConfig, handle.transform)); in buildWindowInfos()
/frameworks/base/services/core/java/com/android/server/wm/
DInputWindowHandleWrapper.java72 return (mHandle.inputConfig & InputConfig.NOT_FOCUSABLE) == 0; in isFocusable()
76 return (mHandle.inputConfig & InputConfig.PAUSE_DISPATCHING) != 0; in isPaused()
80 return (mHandle.inputConfig & InputConfig.TRUSTED_OVERLAY) != 0; in isTrustedOverlay()
84 return (mHandle.inputConfig & InputConfig.DUPLICATE_TOUCH_TO_WALLPAPER) in hasWallpaper()
274 void setInputConfigMasked(@InputConfigFlags int inputConfig, @InputConfigFlags int mask) { in setInputConfigMasked() argument
275 final int inputConfigMasked = inputConfig & mask; in setInputConfigMasked()
276 if (inputConfigMasked == (mHandle.inputConfig & mask)) { in setInputConfigMasked()
279 mHandle.inputConfig &= ~mask; in setInputConfigMasked()
280 mHandle.inputConfig |= inputConfigMasked; in setInputConfigMasked()
DInputConfigAdapter.java36 FlagMapping(int flag, int inputConfig, boolean inverted) { in FlagMapping() argument
38 mInputConfig = inputConfig; in FlagMapping()
123 int inputConfig = 0; in applyMapping() local
127 inputConfig |= mapping.mInputConfig; in applyMapping()
130 return inputConfig; in applyMapping()
DActivityRecordInputSink.java110 inputWindowHandle.inputConfig = InputConfig.NOT_FOCUSABLE | InputConfig.NO_INPUT_CHANNEL; in createInputWindowHandle()
/frameworks/native/libs/gui/
DWindowInfo.cpp66 inputConfig |= config; in setInputConfig()
69 inputConfig &= ~config; in setInputConfig()
77 return !inputConfig.test(InputConfig::PREVENT_SPLITTING); in supportsSplitTouch()
81 return inputConfig.test(InputConfig::SPY); in isSpy()
85 return inputConfig.test(InputConfig::INTERCEPTS_STYLUS); in interceptsStylus()
101 info.inputConfig == inputConfig && info.displayId == displayId && in operator ==()
120 static_assert(sizeof(inputConfig) == 4u); in writeToParcel()
148 parcel->writeInt32(inputConfig.get()) ?: in writeToParcel()
221 inputConfig = ftl::Flags<InputConfig>(inputConfigInt); in readFromParcel()
260 << ", inputConfig=" << info.inputConfig.string() << ", alpha=" << info.alpha << ", frame=[" in operator <<()
/frameworks/av/services/camera/virtualcamera/
DVirtualCameraSession.cc211 const SupportedStreamConfiguration& inputConfig) { in resolutionFromInputConfig() argument
212 return Resolution(inputConfig.width, inputConfig.height); in resolutionFromInputConfig()
258 for (const SupportedStreamConfiguration& inputConfig : supportedInputConfigs) { in pickInputConfigurationForStreams() local
259 Resolution inputConfigResolution = resolutionFromInputConfig(inputConfig); in pickInputConfigurationForStreams()
268 isBetterInputConfig(inputConfig, bestConfig.value())) { in pickInputConfigurationForStreams()
269 bestConfig = inputConfig; in pickInputConfigurationForStreams()
364 std::optional<SupportedStreamConfiguration> inputConfig; in configureStreams() local
374 inputConfig = pickInputConfigurationForStreams( in configureStreams()
376 if (!inputConfig.has_value()) { in configureStreams()
395 *currentInputResolution == resolutionFromInputConfig(*inputConfig)) { in configureStreams()
[all …]
/frameworks/base/core/java/android/hardware/camera2/impl/
DCameraDeviceImpl.java525 public boolean configureStreamsChecked(InputConfiguration inputConfig, in configureStreamsChecked() argument
533 if (outputs.size() == 0 && inputConfig != null) { in configureStreamsChecked()
538 checkInputConfiguration(inputConfig); in configureStreamsChecked()
574 if (inputConfig != currentInputConfig && in configureStreamsChecked()
575 (inputConfig == null || !inputConfig.equals(currentInputConfig))) { in configureStreamsChecked()
581 if (inputConfig != null) { in configureStreamsChecked()
582 int streamId = mRemoteDevice.createInputStream(inputConfig.getWidth(), in configureStreamsChecked()
583 inputConfig.getHeight(), inputConfig.getFormat(), in configureStreamsChecked()
584 inputConfig.isMultiResolution()); in configureStreamsChecked()
586 streamId, inputConfig); in configureStreamsChecked()
[all …]
/frameworks/base/services/core/java/com/android/server/inputmethod/
DHandwritingEventReceiverSurface.java56 mWindowHandle.inputConfig = in HandwritingEventReceiverSurface()
80 mWindowHandle.inputConfig &= ~InputConfig.SPY; in startIntercepting()
90 mWindowHandle.inputConfig |= InputConfig.NOT_TOUCHABLE; in setNotTouchable()
92 mWindowHandle.inputConfig &= ~InputConfig.NOT_TOUCHABLE; in setNotTouchable()
/frameworks/base/core/jni/
Dandroid_hardware_input_InputWindowHandle.cpp70 jfieldID inputConfig; member
159 mInfo.inputConfig = static_cast<gui::WindowInfo::InputConfig>( in updateInfo()
160 env->GetIntField(obj, gInputWindowHandleClassInfo.inputConfig)); in updateInfo()
315 const auto inputConfig = windowInfo.inputConfig.get(); in android_view_InputWindowHandle_fromWindowInfo() local
316 static_assert(sizeof(inputConfig) == sizeof(int32_t)); in android_view_InputWindowHandle_fromWindowInfo()
317 env->SetIntField(inputWindowHandle, gInputWindowHandleClassInfo.inputConfig, in android_view_InputWindowHandle_fromWindowInfo()
318 static_cast<int32_t>(inputConfig)); in android_view_InputWindowHandle_fromWindowInfo()
429 GET_FIELD_ID(gInputWindowHandleClassInfo.inputConfig, clazz, "inputConfig", "I"); in register_android_view_InputWindowHandle()
/frameworks/native/services/surfaceflinger/tests/unittests/
DLayerSnapshotTest.cpp1171 EXPECT_TRUE(getSnapshot(1)->inputInfo.inputConfig.test( in TEST_F()
1229 EXPECT_TRUE(getSnapshot(11)->inputInfo.inputConfig.test( in TEST_F()
1231 EXPECT_TRUE(getSnapshot(111)->inputInfo.inputConfig.test( in TEST_F()
1233 EXPECT_FALSE(getSnapshot(1)->inputInfo.inputConfig.test( in TEST_F()
1235 EXPECT_FALSE(getSnapshot(12)->inputInfo.inputConfig.test( in TEST_F()
1237 EXPECT_FALSE(getSnapshot(2)->inputInfo.inputConfig.test( in TEST_F()
1243 inputInfo.inputConfig |= gui::WindowInfo::InputConfig::SENSITIVE_FOR_PRIVACY; in TEST_F()
1248 EXPECT_TRUE(getSnapshot(11)->inputInfo.inputConfig.test( in TEST_F()
1250 EXPECT_TRUE(getSnapshot(111)->inputInfo.inputConfig.test( in TEST_F()
1252 EXPECT_FALSE(getSnapshot(1)->inputInfo.inputConfig.test( in TEST_F()
[all …]
/frameworks/native/libs/gui/tests/
DWindowInfo_test.cpp66 i.inputConfig = WindowInfo::InputConfig::NOT_FOCUSABLE; in TEST()
97 ASSERT_EQ(i.inputConfig, i2.inputConfig); in TEST()
/frameworks/base/core/java/android/hardware/camera2/
DCameraDevice.java303 public abstract void createReprocessableCaptureSession(@NonNull InputConfiguration inputConfig, in createReprocessableCaptureSession() argument
321 @NonNull InputConfiguration inputConfig, in createReprocessableCaptureSessionByConfigurations()
500 InputConfiguration inputConfig, in createCustomCaptureSession() argument
/frameworks/av/services/camera/virtualcamera/tests/
DVirtualCameraDeviceTest.cc128 VirtualCameraConfiguration inputConfig; member
140 kCameraId, param.inputConfig, kDefaultDeviceId); in TEST_P()
168 .inputConfig =
208 .inputConfig =
/frameworks/native/services/surfaceflinger/FrontEnd/
DLayerSnapshotBuilder.cpp198 if (snapshot.inputInfo.inputConfig.test(gui::WindowInfo::InputConfig::NO_INPUT_CHANNEL)) { in handleDropInputMode()
205 snapshot.inputInfo.inputConfig |= gui::WindowInfo::InputConfig::DROP_INPUT; in handleDropInputMode()
217 snapshot.inputInfo.inputConfig |= gui::WindowInfo::InputConfig::DROP_INPUT; in handleDropInputMode()
225 snapshot.inputInfo.inputConfig |= gui::WindowInfo::InputConfig::DROP_INPUT_IF_OBSCURED; in handleDropInputMode()
237 snapshot.inputInfo.inputConfig |= gui::WindowInfo::InputConfig::DROP_INPUT; in handleDropInputMode()
245 snapshot.inputInfo.inputConfig |= gui::WindowInfo::InputConfig::DROP_INPUT_IF_OBSCURED; in handleDropInputMode()
296 requested.windowInfoHandle->getInfo()->inputConfig.test( in needsInputInfo()
1082 parentSnapshot.inputInfo.inputConfig.test(InputConfig::SENSITIVE_FOR_PRIVACY)) { in updateInput()
1083 snapshot.inputInfo.inputConfig |= InputConfig::SENSITIVE_FOR_PRIVACY; in updateInput()
1098 snapshot.inputInfo.inputConfig = InputConfig::NO_INPUT_CHANNEL; in updateInput()
[all …]
DLayerSnapshot.cpp267 inputInfo.inputConfig.test(gui::WindowInfo::InputConfig::NO_INPUT_CHANNEL)) && in hasInputInfo()
283 << "(" << inputInfo.inputConfig.string() << ")"; in getDebugString()
316 << "(" << obj.inputInfo.inputConfig.string() << ")"; in operator <<()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
DCamera2ReprocessCaptureTest.java887 InputConfiguration inputConfig = new InputConfiguration(mFirstImageReader.getWidth(), in setupReprocessableSession() local
889 String inputConfigString = inputConfig.toString(); in setupReprocessableSession()
894 inputConfig.getWidth(), inputConfig.getHeight(), inputConfig.getFormat(), in setupReprocessableSession()
897 inputConfig.getWidth() == mFirstImageReader.getWidth() && in setupReprocessableSession()
898 inputConfig.getHeight() == mFirstImageReader.getHeight() && in setupReprocessableSession()
899 inputConfig.getFormat() == mFirstImageReader.getImageFormat()); in setupReprocessableSession()
902 mSession = configureReprocessableCameraSession(mCamera, inputConfig, outSurfaces, in setupReprocessableSession()
/frameworks/native/services/inputflinger/dispatcher/
DFocusResolver.cpp168 if (!window->getInfo()->inputConfig.test(gui::WindowInfo::InputConfig::NOT_VISIBLE)) { in isTokenFocusable()
172 if (window->getInfo()->inputConfig.test(gui::WindowInfo::InputConfig::NOT_FOCUSABLE)) { in isTokenFocusable()
DTouchState.cpp204 !window.windowHandle->getInfo()->inputConfig.test( in isSlippery()
219 if (window.windowHandle->getInfo()->inputConfig.test( in getWallpaperWindow()
DInputDispatcher.cpp578 const auto inputConfig = windowInfo.inputConfig; in windowAcceptsTouchAt() local
580 inputConfig.test(WindowInfo::InputConfig::NOT_VISIBLE)) { in windowAcceptsTouchAt()
584 if (inputConfig.test(WindowInfo::InputConfig::NOT_TOUCHABLE) && !windowCanInterceptTouch) { in windowAcceptsTouchAt()
628 return !info.inputConfig.test(gui::WindowInfo::InputConfig::NOT_TOUCHABLE) && !info.isSpy(); in canReceiveForegroundTouches()
768 if (!window.windowHandle->getInfo()->inputConfig.test( in filterUntrustedTargets()
804 if (touchedWindow.windowHandle->getInfo()->inputConfig.test( in shouldSplitTouch()
1454 if (info.inputConfig.test(WindowInfo::InputConfig::WATCH_OUTSIDE_TOUCH)) { in findOutsideTargetsLocked()
2331 if (focusedWindowHandle->getInfo()->inputConfig.test( in findFocusedWindowTargetLocked()
2559 windowHandle->getInfo()->inputConfig.test( in findTouchedWindowTargetsLocked()
3098 if (otherInfo->inputConfig.test(WindowInfo::InputConfig::NOT_VISIBLE)) { in canBeObscuredBy()
[all …]
/frameworks/base/services/core/java/com/android/server/input/
DGestureMonitorSpyWindow.java65 mWindowHandle.inputConfig = InputConfig.NOT_FOCUSABLE | InputConfig.SPY; in GestureMonitorSpyWindow()
/frameworks/native/services/surfaceflinger/
DLayerProtoHelper.cpp189 proto->set_input_config(inputInfo.inputConfig.get()); in writeToProto()
204 proto->set_visible(!inputInfo.inputConfig.test(InputConfig::NOT_VISIBLE)); in writeToProto()
205 proto->set_focusable(!inputInfo.inputConfig.test(InputConfig::NOT_FOCUSABLE)); in writeToProto()
206 proto->set_has_wallpaper(inputInfo.inputConfig.test(InputConfig::DUPLICATE_TOUCH_TO_WALLPAPER)); in writeToProto()
/frameworks/native/services/surfaceflinger/tests/
DCredentials_test.cpp376 return !foundWindowInfo->inputConfig.test(WindowInfo::InputConfig::TRUSTED_OVERLAY); in TEST_F()
392 return foundWindowInfo->inputConfig.test(WindowInfo::InputConfig::TRUSTED_OVERLAY); in TEST_F()
/frameworks/base/media/jni/audioeffect/
DVisualizer.cpp424 audio_config_base_t inputConfig, outputConfig; in initSampleRate() local
425 status_t status = getConfigs(&inputConfig, &outputConfig); in initSampleRate()
/frameworks/native/services/inputflinger/tests/
DPointerChoreographer_test.cpp1757 windowInfo.inputConfig |= gui::WindowInfo::InputConfig::SENSITIVE_FOR_PRIVACY; in TEST_P()
1769 windowInfo.inputConfig.clear(); in TEST_P()
1795 windowInfo.inputConfig |= gui::WindowInfo::InputConfig::SENSITIVE_FOR_PRIVACY; in TEST_P()
1807 windowInfo.inputConfig.clear(); in TEST_P()
1829 windowInfo.inputConfig |= gui::WindowInfo::InputConfig::SENSITIVE_FOR_PRIVACY; in TEST_P()
1830 windowInfo.inputConfig |= gui::WindowInfo::InputConfig::NOT_VISIBLE; in TEST_P()
1851 windowInfo.inputConfig |= gui::WindowInfo::InputConfig::SENSITIVE_FOR_PRIVACY; in TEST_P()
1860 windowInfo2.inputConfig.clear(); in TEST_P()
1890 windowInfo.inputConfig |= gui::WindowInfo::InputConfig::SENSITIVE_FOR_PRIVACY; in TEST_F_WITH_FLAGS()
1919 windowInfo.inputConfig.clear(); in TEST_F_WITH_FLAGS()
[all …]

12