Home
last modified time | relevance | path

Searched refs:WindowInfo (Results 1 – 25 of 59) sorted by relevance

123

/frameworks/native/libs/gui/fuzzer/
Dlibgui_surfaceComposerClient_fuzzer.cpp54 constexpr gui::WindowInfo::Flag kFlags[] = {
55 gui::WindowInfo::Flag::ALLOW_LOCK_WHILE_SCREEN_ON,
56 gui::WindowInfo::Flag::DIM_BEHIND,
57 gui::WindowInfo::Flag::BLUR_BEHIND,
58 gui::WindowInfo::Flag::NOT_FOCUSABLE,
59 gui::WindowInfo::Flag::NOT_TOUCHABLE,
60 gui::WindowInfo::Flag::NOT_TOUCH_MODAL,
61 gui::WindowInfo::Flag::TOUCHABLE_WHEN_WAKING,
62 gui::WindowInfo::Flag::KEEP_SCREEN_ON,
63 gui::WindowInfo::Flag::LAYOUT_IN_SCREEN,
[all …]
DREADME.md92WindowInfo::Flag::ALLOW_LOCK_WHILE_SCREEN_ON`, 1.`gui::WindowInfo::Flag::DIM_BEHIND`, 2.`gui::Wind…
/frameworks/base/core/tests/coretests/src/android/view/
DWindowInfoTest.java58 WindowInfo w1 = WindowInfo.obtain(); in testObtain()
62 WindowInfo w2 = WindowInfo.obtain(w1); in testObtain()
72 WindowInfo w1 = WindowInfo.obtain(); in testParceling()
77 WindowInfo w2 = WindowInfo.CREATOR.createFromParcel(parcel); in testParceling()
87 WindowInfo w = WindowInfo.obtain(); in testDefaultValues()
95 WindowInfo w = WindowInfo.obtain(); in testRecycle()
109 WindowInfo w = WindowInfo.obtain(); in testRecycle_fallbackToDefaultValues()
116 private static void assertDefaultValue(WindowInfo windowinfo) { in assertDefaultValue()
138 private boolean areWindowsEqual(WindowInfo w1, WindowInfo w2) { in areWindowsEqual()
152 private void initTestWindowInfo(WindowInfo windowInfo) { in initTestWindowInfo()
/frameworks/base/core/java/android/view/
DWindowInfo.java38 public class WindowInfo implements Parcelable { class
41 private static final Pools.SynchronizedPool<WindowInfo> sPool =
42 new Pools.SynchronizedPool<WindowInfo>(MAX_POOL_SIZE);
66 private WindowInfo() { in WindowInfo() method in WindowInfo
70 public static WindowInfo obtain() { in obtain()
71 WindowInfo window = sPool.acquire(); in obtain()
73 window = new WindowInfo(); in obtain()
78 public static WindowInfo obtain(WindowInfo other) { in obtain()
79 WindowInfo window = obtain(); in obtain()
223 public static final @android.annotation.NonNull Parcelable.Creator<WindowInfo> CREATOR =
[all …]
DWindowInfo.aidl19 parcelable WindowInfo;
/frameworks/native/libs/gui/
DWindowInfo.cpp29 void WindowInfo::setInputConfig(ftl::Flags<InputConfig> config, bool value) { in setInputConfig()
37 void WindowInfo::addTouchableRegion(const Rect& region) { in addTouchableRegion()
41 bool WindowInfo::touchableRegionContainsPoint(int32_t x, int32_t y) const { in touchableRegionContainsPoint()
45 bool WindowInfo::frameContainsPoint(int32_t x, int32_t y) const { in frameContainsPoint()
49 bool WindowInfo::supportsSplitTouch() const { in supportsSplitTouch()
53 bool WindowInfo::isSpy() const { in isSpy()
57 bool WindowInfo::interceptsStylus() const { in interceptsStylus()
61 bool WindowInfo::overlaps(const WindowInfo* other) const { in overlaps()
67 bool WindowInfo::operator==(const WindowInfo& info) const { in operator ==()
82 status_t WindowInfo::writeToParcel(android::Parcel* parcel) const { in writeToParcel()
[all …]
DWindowInfosListenerReporter.cpp25 using gui::WindowInfo;
37 std::pair<std::vector<gui::WindowInfo>, std::vector<gui::DisplayInfo>>* outInitialInfo) { in addWindowInfosListener() argument
/frameworks/native/services/surfaceflinger/tests/
DWindowInfosListener_test.cpp28 using gui::WindowInfo;
31 using WindowInfosPredicate = std::function<bool(const std::vector<WindowInfo>&)>;
53 WindowInfo windowInfo; in TEST_F()
67 auto windowPresent = [&](const std::vector<WindowInfo>& windowInfos) { in TEST_F()
74 auto windowNotPresent = [&](const std::vector<WindowInfo>& windowInfos) { in TEST_F()
83 WindowInfo windowInfo; in TEST_F()
98 auto windowIsPresentAndTouchableRegionEmpty = [&](const std::vector<WindowInfo>& windowInfos) { in TEST_F()
111 [&](const std::vector<WindowInfo>& windowInfos) { in TEST_F()
DCredentials_test.cpp386 WindowInfo windowInfo; in TEST_F()
408 auto windowIsPresentAndNotTrusted = [&](const std::vector<WindowInfo>& windowInfos) { in TEST_F()
414 return !foundWindowInfo->inputConfig.test(WindowInfo::InputConfig::TRUSTED_OVERLAY); in TEST_F()
422 auto windowIsPresentAndTrusted = [&](const std::vector<WindowInfo>& windowInfos) { in TEST_F()
428 return foundWindowInfo->inputConfig.test(WindowInfo::InputConfig::TRUSTED_OVERLAY); in TEST_F()
/frameworks/native/services/surfaceflinger/tests/utils/
DWindowInfosListenerUtils.h28 using gui::WindowInfo;
30 using WindowInfosPredicate = std::function<bool(const std::vector<WindowInfo>&)>;
47 static const WindowInfo* findMatchingWindowInfo(const WindowInfo& targetWindowInfo, in findMatchingWindowInfo()
48 const std::vector<WindowInfo>& windowInfos) { in findMatchingWindowInfo()
49 for (const WindowInfo& windowInfo : windowInfos) { in findMatchingWindowInfo()
/frameworks/native/libs/gui/tests/
DWindowInfo_test.cpp30 using gui::WindowInfo;
34 TEST(WindowInfo, ParcellingWithoutToken) { in TEST() argument
35 WindowInfo i, i2; in TEST()
45 TEST(WindowInfo, Parcelling) { in TEST() argument
47 WindowInfo i; in TEST()
52 i.layoutParamsFlags = WindowInfo::Flag::SLIPPERY; in TEST()
53 i.layoutParamsType = WindowInfo::Type::INPUT_METHOD; in TEST()
67 i.inputConfig = WindowInfo::InputConfig::NOT_FOCUSABLE; in TEST()
79 WindowInfo i2; in TEST()
/frameworks/base/core/java/android/window/
DWindowInfosListenerForTest.java49 public static class WindowInfo { class in WindowInfosListenerForTest
83 WindowInfo(@NonNull IBinder windowToken, @NonNull String name, int displayId, in WindowInfo() method in WindowInfosListenerForTest.WindowInfo
104 private ArrayMap<Consumer<List<WindowInfo>>, WindowInfosListener> mListeners;
119 @NonNull Consumer<List<WindowInfo>> consumer) { in addWindowInfosListener()
145 public void removeWindowInfosListener(@NonNull Consumer<List<WindowInfo>> consumer) { in removeWindowInfosListener()
153 private static List<WindowInfo> buildWindowInfos( in buildWindowInfos()
155 var windowInfos = new ArrayList<WindowInfo>(windowHandles.length); in buildWindowInfos()
175 windowInfos.add(new WindowInfo(handle.getWindowToken(), handle.name, handle.displayId, in buildWindowInfos()
/frameworks/base/libs/hwui/renderthread/
DVulkanSurface.h95 struct WindowInfo { struct
112 VulkanSurface(ANativeWindow* window, const WindowInfo& windowInfo, GrDirectContext* grContext); argument
116 WindowInfo* outWindowInfo);
117 static bool UpdateWindow(ANativeWindow* window, const WindowInfo& windowInfo);
130 WindowInfo mWindowInfo;
/frameworks/native/libs/gui/include/gui/
DWindowInfo.h40 struct WindowInfo : public Parcelable { struct
41 WindowInfo() = default;
260 bool overlaps(const WindowInfo* other) const; argument
262 bool operator==(const WindowInfo& inputChannel) const;
279 WindowInfoHandle(const WindowInfo& other);
281 inline const WindowInfo* getInfo() const { return &mInfo; } in getInfo()
282 inline WindowInfo* editInfo() { return &mInfo; } in editInfo()
315 WindowInfo mInfo;
DWindowInfosUpdate.h28 WindowInfosUpdate(std::vector<WindowInfo> windowInfos, std::vector<DisplayInfo> displayInfos, in WindowInfosUpdate()
35 std::vector<WindowInfo> windowInfos;
DWindowInfosListenerReporter.h37 std::pair<std::vector<gui::WindowInfo>, std::vector<gui::DisplayInfo>>* outInitialInfo);
47 std::vector<gui::WindowInfo> mLastWindowInfos GUARDED_BY(mListenersMutex);
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DAccessibilityWindowManagerTest.java53 import android.view.WindowInfo;
114 private final SparseArray<ArrayList<WindowInfo>> mWindowInfos =
225 WindowInfo focusedWindowInfo = in onWindowsChanged_duringTouchInteractAndFocusChange_shouldChangeActiveWindow()
305 final WindowInfo windowInfo = mWindowInfos.get(Display.DEFAULT_DISPLAY).get(i); in onWindowsChanged_shouldReportCorrectLayer()
320 final WindowInfo windowInfo = mWindowInfos.get(Display.DEFAULT_DISPLAY).get(i); in onWindowsChanged_shouldReportCorrectOrder()
327 final WindowInfo windowInfo = mWindowInfos.get(Display.DEFAULT_DISPLAY).get(0); in onWindowsChangedAndForceSend_shouldUpdateWindows()
339 final WindowInfo windowInfo = mWindowInfos.get(Display.DEFAULT_DISPLAY).get(0); in onWindowsChangedNoForceSend_layerChanged_shouldNotUpdateWindows()
356 final WindowInfo windowInfo = WindowInfo.obtain(); in onWindowsChangedNoForceSend_windowChanged_shouldUpdateWindows()
370 final WindowInfo focusedWindowInfo = in onWindowsChangedNoForceSend_focusChanged_shouldUpdateWindows()
372 final WindowInfo windowInfo = mWindowInfos.get(Display.DEFAULT_DISPLAY).get(0); in onWindowsChangedNoForceSend_focusChanged_shouldUpdateWindows()
[all …]
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAccessibilityWindowManager.java44 import android.view.WindowInfo;
205 private final SparseArray<WindowInfo> mWindowInfoById = new SparseArray<>();
206 private final List<WindowInfo> mCachedWindowInfos = new ArrayList<>();
294 WindowInfo findWindowInfoByIdLocked(int windowId) { in findWindowInfoByIdLocked()
413 final WindowInfo targetWindow = mWindowInfoById.get(targetWindowId); in getWatchOutsideTouchWindowIdLocked()
417 final WindowInfo window = mWindowInfoById.valueAt(i); in getWatchOutsideTouchWindowIdLocked()
438 IBinder topFocusedWindowToken, @NonNull List<WindowInfo> windows) { in onWindowsForAccessibilityChanged()
481 private void updateWindowsByWindowAttributesLocked(List<WindowInfo> windows) { in updateWindowsByWindowAttributesLocked()
483 final WindowInfo windowInfo = windows.get(i); in updateWindowsByWindowAttributesLocked()
491 private void updateWindowWithWindowAttributes(@NonNull WindowInfo windowInfo, in updateWindowWithWindowAttributes()
[all …]
/frameworks/native/libs/gui/android/gui/
DWindowInfo.aidl19 parcelable WindowInfo cpp_header "gui/WindowInfo.h";
DWindowInfosUpdate.aidl20 import android.gui.WindowInfo;
/frameworks/base/core/jni/
Dandroid_window_WindowInfosListener.cpp35 using gui::WindowInfo;
67 static jobjectArray fromWindowInfos(JNIEnv* env, const std::vector<WindowInfo>& windowInfos) { in fromWindowInfos()
145 std::pair<std::vector<gui::WindowInfo>, std::vector<gui::DisplayInfo>> initialInfo; in nativeRegister()
Dandroid_hardware_input_InputWindowHandle.h44 gui::WindowInfo windowInfo);
/frameworks/native/services/surfaceflinger/FrontEnd/
DLayerSnapshotBuilder.cpp173 void fillInputFrameInfo(gui::WindowInfo& info, const ui::Transform& screenToDisplay, in fillInputFrameInfo()
201 if (snapshot.inputInfo.inputConfig.test(gui::WindowInfo::InputConfig::NO_INPUT_CHANNEL)) { in handleDropInputMode()
208 snapshot.inputInfo.inputConfig |= gui::WindowInfo::InputConfig::DROP_INPUT; in handleDropInputMode()
220 snapshot.inputInfo.inputConfig |= gui::WindowInfo::InputConfig::DROP_INPUT; in handleDropInputMode()
228 snapshot.inputInfo.inputConfig |= gui::WindowInfo::InputConfig::DROP_INPUT_IF_OBSCURED; in handleDropInputMode()
240 snapshot.inputInfo.inputConfig |= gui::WindowInfo::InputConfig::DROP_INPUT; in handleDropInputMode()
248 snapshot.inputInfo.inputConfig |= gui::WindowInfo::InputConfig::DROP_INPUT_IF_OBSCURED; in handleDropInputMode()
277 snapshot.inputInfo.setInputConfig(gui::WindowInfo::InputConfig::NOT_VISIBLE, !visibleForInput); in updateVisibility()
297 gui::WindowInfo::InputConfig::NO_INPUT_CHANNEL); in needsInputInfo()
1017 snapshot.inputInfo.inputConfig = gui::WindowInfo::InputConfig::NO_INPUT_CHANNEL; in updateInput()
[all …]
/frameworks/native/libs/input/android/os/
DIInputFlinger.aidl21 import android.gui.WindowInfo;
/frameworks/native/services/surfaceflinger/
DLayer.h136 gui::WindowInfo inputInfo;
653 gui::WindowInfo::Type getWindowType() const { return mWindowType; } in getWindowType()
809 void setInputInfo(const gui::WindowInfo& info);
815 gui::WindowInfo fillInputInfo(const InputDisplayArgs& displayArgs);
1046 const gui::WindowInfo::Type mWindowType;
1099 void handleDropInputMode(gui::WindowInfo& info) const;
1111 void fillTouchOcclusionMode(gui::WindowInfo& info);
1114 void fillInputFrameInfo(gui::WindowInfo&, const ui::Transform& screenToDisplay);

123