Home
last modified time | relevance | path

Searched refs:window (Results 1 – 25 of 846) sorted by relevance

12345678910>>...34

/aosp14/frameworks/base/core/tests/coretests/src/android/database/
H A DCursorWindowTest.java42 window.close(); in testConstructor_WithName()
50 window.close(); in testConstructorWithEmptyName()
58 window.close(); in testConstructorWithNullName()
67 window.close(); in testDeprecatedConstructor()
73 doTestValues(window); in testValues()
74 window.close(); in testValues()
78 assertTrue(window.setNumColumns(7)); in doTestValues()
79 assertTrue(window.allocRow()); in doTestValues()
82 double db2 = window.getDouble(0, 0); in doTestValues()
86 assertTrue(window.putLong(int1, 0, 1)); in doTestValues()
[all …]
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
H A DRefreshRatePolicyTest.java83 void parcelLayoutParams(WindowState window) { in parcelLayoutParams() argument
85 window.mAttrs.writeToParcel(parcel, 0); in parcelLayoutParams()
87 window.mAttrs.copyFrom(new LayoutParams(parcel)); in parcelLayoutParams()
114 return window; in createWindow()
337 parcelLayoutParams(window); in testAnimatingDenylist()
385 parcelLayoutParams(window); in testAppMaxRefreshRate()
406 parcelLayoutParams(window); in testAppMinRefreshRate()
427 parcelLayoutParams(window); in testAppPreferredRefreshRate()
439 parcelLayoutParams(window); in testSwitchingTypeForExactVote()
466 parcelLayoutParams(window); in testSwitchingTypeForPreferredVote()
[all …]
H A DTaskSnapshotCacheTest.java27 import android.window.TaskSnapshot;
67 mCache.putSnapshot(window.getTask(), createSnapshot()); in testAppRemoved()
70 mCache.onAppRemoved(window.mActivityRecord); in testAppRemoved()
71 assertNull(mCache.getSnapshot(window.getTask().mTaskId, 0 /* userId */, in testAppRemoved()
78 mCache.putSnapshot(window.getTask(), createSnapshot()); in testAppDied()
81 mCache.onAppDied(window.mActivityRecord); in testAppDied()
82 assertNull(mCache.getSnapshot(window.getTask().mTaskId, 0 /* userId */, in testAppDied()
89 mCache.putSnapshot(window.getTask(), createSnapshot()); in testTaskRemoved()
92 mCache.onIdRemoved(window.getTask().mTaskId); in testTaskRemoved()
93 assertNull(mCache.getSnapshot(window.getTask().mTaskId, 0 /* userId */, in testTaskRemoved()
[all …]
/aosp14/frameworks/base/core/jni/
H A Dandroid_database_CursorWindow.cpp89 CursorWindow* window; in nativeCreate() local
100 if (status || !window) { in nativeCreate()
117 CursorWindow* window; in nativeCreateFromParcel() local
119 if (status || !window) { in nativeCreateFromParcel()
128 window->getNumRows(), window->getNumColumns(), window); in nativeCreateFromParcel()
134 if (window) { in nativeDispose()
136 delete window; in nativeDispose()
161 status_t status = window->clear(); in nativeClear()
169 return window->getNumRows(); in nativeGetNumRows()
181 status_t status = window->allocRow(); in nativeAllocRow()
[all …]
H A Dandroid_view_TextureView.cpp76 return window->perform(window, NATIVE_WINDOW_LOCK, outBuffer, inOutDirtyBounds); in native_window_lock()
79 static int32_t native_window_unlockAndPost(ANativeWindow* window) { in native_window_unlockAndPost() argument
80 return window->perform(window, NATIVE_WINDOW_UNLOCK_AND_POST); in native_window_unlockAndPost()
87 sp<ANativeWindow> window = new Surface(producer, true); in android_view_TextureView_createNativeWindow() local
89 window->incStrong((void*)android_view_TextureView_createNativeWindow); in android_view_TextureView_createNativeWindow()
99 sp<ANativeWindow> window(nativeWindow); in android_view_TextureView_destroyNativeWindow() local
100 window->decStrong((void*)android_view_TextureView_createNativeWindow); in android_view_TextureView_destroyNativeWindow()
123 sp<ANativeWindow> window((ANativeWindow*) nativeWindow); in android_view_TextureView_lockCanvas() local
124 int32_t status = native_window_lock(window.get(), &outBuffer, &rect); in android_view_TextureView_lockCanvas()
147 sp<ANativeWindow> window((ANativeWindow*) nativeWindow); in android_view_TextureView_unlockCanvasAndPost() local
[all …]
/aosp14/frameworks/base/core/java/android/view/
H A DIWindowSession.aidl38 import android.window.ClientWindowFrames;
39 import android.window.OnBackInvokedCallbackInfo;
63 void remove(IWindow window); in remove() argument
116 boolean outOfMemory(IWindow window); in outOfMemory() argument
198 oneway void dragRecipientExited(IWindow window); in dragRecipientExited() argument
240 IWindowId getWindowId(IBinder window); in getWindowId() argument
255 void pokeDrawLock(IBinder window); in pokeDrawLock() argument
265 oneway void finishMovingTask(IWindow window); in finishMovingTask() argument
267 oneway void updatePointerIcon(IWindow window); in updatePointerIcon() argument
347 void clearTouchableRegion(IWindow window); in clearTouchableRegion() argument
[all …]
H A DWindowInfo.java72 if (window == null) { in obtain()
73 window = new WindowInfo(); in obtain()
75 return window; in obtain()
79 WindowInfo window = obtain(); in obtain() local
81 window.taskId = other.taskId; in obtain()
82 window.type = other.type; in obtain()
83 window.layer = other.layer; in obtain()
84 window.token = other.token; in obtain()
89 window.title = other.title; in obtain()
106 return window; in obtain()
[all …]
H A DWindowlessWindowManager.java33 import android.window.ClientWindowFrames;
34 import android.window.OnBackInvokedCallbackInfo;
112 IBinder getFocusGrantToken(IBinder window) { in getFocusGrantToken() argument
120 State state = mStateForWindow.get(window); in getFocusGrantToken()
137 mResizeCompletionForWindow.put(window, callback); in setCompletionCallback()
145 state = mStateForWindow.get(window); in setTouchRegion()
215 mStateForWindow.put(window.asBinder(), state); in addToDisplay()
280 mRealWm.remove(window); in remove()
460 setTouchRegion(window.asBinder(), null); in clearTouchableRegion()
554 public void pokeDrawLock(android.os.IBinder window) { in pokeDrawLock() argument
[all …]
/aosp14/frameworks/base/libs/androidfw/
H A DCursorWindow.cpp58 window->mData = malloc(window->mSize); in create()
62 window->clear(); in create()
65 *outWindow = window; in create()
71 delete window; in create()
149 if ((window->mNumRows * window->mNumColumns * kSlotSizeBytes) > window->mSize) { in createFromParcel()
164 window->mAshmemFd = ::fcntl(window->mAshmemFd, F_DUPFD_CLOEXEC, 0); in createFromParcel()
170 window->mData = ::mmap(nullptr, window->mSize, PROT_READ, MAP_SHARED, window->mAshmemFd, 0); in createFromParcel()
183 window->mData = malloc(window->mSize); in createFromParcel()
186 if (parcel->read(window->mData, window->mSize)) goto fail; in createFromParcel()
191 window->mInflatedSize = window->mSize; in createFromParcel()
[all …]
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/startingsurface/phone/
H A DPhoneStartingWindowTypeAlgorithm.java21 import static android.window.StartingWindowInfo.STARTING_WINDOW_TYPE_NONE;
22 import static android.window.StartingWindowInfo.STARTING_WINDOW_TYPE_SNAPSHOT;
24 import static android.window.StartingWindowInfo.STARTING_WINDOW_TYPE_SPLASH_SCREEN;
25 import static android.window.StartingWindowInfo.STARTING_WINDOW_TYPE_WINDOWLESS;
26 import static android.window.StartingWindowInfo.TYPE_PARAMETER_ACTIVITY_CREATED;
27 import static android.window.StartingWindowInfo.TYPE_PARAMETER_ACTIVITY_DRAWN;
30 import static android.window.StartingWindowInfo.TYPE_PARAMETER_NEW_TASK;
31 import static android.window.StartingWindowInfo.TYPE_PARAMETER_PROCESS_RUNNING;
32 import static android.window.StartingWindowInfo.TYPE_PARAMETER_TASK_SWITCH;
34 import static android.window.StartingWindowInfo.TYPE_PARAMETER_WINDOWLESS;
[all …]
/aosp14/frameworks/base/libs/WindowManager/Jetpack/
H A DAndroid.bp26 name: "window-sidecar",
27 aars: ["window-sidecar-release.aar"],
32 name: "androidx.window.sidecar",
35 "src/androidx/window/util/**/*.java",
38 static_libs: ["window-sidecar"],
50 name: "androidx.window.sidecar.xml",
53 src: "androidx.window.sidecar.xml",
59 name: "androidx.window.extensions",
62 "src/androidx/window/util/**/*.java",
80 name: "androidx.window.extensions.xml",
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/wm/
H A DSession.java79 import android.window.ClientWindowFrames;
80 import android.window.OnBackInvokedCallbackInfo;
235 public void remove(IWindow window) { in remove() argument
236 mService.removeWindow(this, window); in remove()
240 public boolean cancelDraw(IWindow window) { in cancelDraw() argument
275 public boolean outOfMemory(IWindow window) { in outOfMemory() argument
292 public void finishDrawing(IWindow window, in finishDrawing() argument
659 return mService.getWindowId(window); in getWindowId()
663 public void pokeDrawLock(IBinder window) { in pokeDrawLock() argument
676 mService.updatePointerIcon(window); in updatePointerIcon()
[all …]
H A DDragDropController.java95 void sendDragStartedIfNeededLocked(WindowState window) { in sendDragStartedIfNeededLocked() argument
96 mDragState.sendDragStartedIfNeededLocked(window); in sendDragStartedIfNeededLocked()
127 null, window, false); in performDrag()
236 void reportDropResult(IWindow window, boolean consumed) { in reportDropResult() argument
237 IBinder token = window.asBinder(); in reportDropResult()
242 mCallback.get().preReportDropResult(window, consumed); in reportDropResult()
326 void dragRecipientEntered(IWindow window) { in dragRecipientEntered() argument
330 mCallback.get().dragRecipientEntered(window); in dragRecipientEntered()
333 void dragRecipientExited(IWindow window) { in dragRecipientExited() argument
337 mCallback.get().dragRecipientExited(window); in dragRecipientExited()
[all …]
/aosp14/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/util/
H A DDialog.kt24 import android.window.OnBackInvokedDispatcher
72 val window = window!! regex
73 val decorView = window.decorView as ViewGroup
76 window.attributes.width == MATCH_PARENT && window.attributes.height == MATCH_PARENT
121 window.attributes.width,
122 window.attributes.height,
123 window.attributes.gravity
135 window.setLayout(MATCH_PARENT, MATCH_PARENT)
148 window.attributes.width != MATCH_PARENT || window.attributes.height != MATCH_PARENT
153 layoutParams.width = window.attributes.width
[all …]
/aosp14/frameworks/base/core/java/android/database/
H A DCursorToBulkCursorAdaptor.java162 d.window = mCursor.getWindow(); in getBulkCursorDescriptor()
163 if (d.window != null) { in getBulkCursorDescriptor()
183 if (window != null) { in getWindow()
186 window = mFilledWindow; in getWindow()
187 if (window == null) { in getWindow()
189 window = mFilledWindow; in getWindow()
191 || position >= window.getStartPosition() + window.getNumRows()) { in getWindow()
192 window.clear(); in getWindow()
197 if (window != null) { in getWindow()
200 window.acquireReference(); in getWindow()
[all …]
/aosp14/frameworks/base/core/java/android/window/
H A DIWindowOrganizerController.aidl17 package android.window;
23 import android.window.IDisplayAreaOrganizerController;
24 import android.window.ITaskFragmentOrganizerController;
25 import android.window.ITaskOrganizerController;
26 import android.window.ITransitionMetricsReporter;
27 import android.window.ITransitionPlayer;
28 import android.window.IWindowContainerTransactionCallback;
29 import android.window.WindowContainerToken;
30 import android.window.WindowContainerTransaction;
/aosp14/frameworks/base/libs/hwui/renderthread/
H A DVulkanSurface.cpp88 err = window->setSwapInterval(window, 1); in ConnectAndSetWindowDefaults()
100 err = native_window_set_auto_refresh(window, false); in ConnectAndSetWindowDefaults()
124 err = native_window_set_auto_prerotation(window, true); in ConnectAndSetWindowDefaults()
139 if (!ConnectAndSetWindowDefaults(window)) { in Create()
151 if (!UpdateWindow(window, windowInfo)) { in Create()
155 return new VulkanSurface(window, windowInfo, grContext); in Create()
166 int err = window->query(window, NATIVE_WINDOW_DEFAULT_WIDTH, &width); in InitializeWindowInfoStruct()
171 err = window->query(window, NATIVE_WINDOW_DEFAULT_HEIGHT, &height); in InitializeWindowInfoStruct()
179 err = window->query(window, NATIVE_WINDOW_TRANSFORM_HINT, &query_value); in InitializeWindowInfoStruct()
196 err = window->query(window, NATIVE_WINDOW_MIN_UNDEQUEUED_BUFFERS, &query_value); in InitializeWindowInfoStruct()
[all …]
/aosp14/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/extensions/
H A DWindowExtensionsImpl.java17 package androidx.window.extensions;
24 import androidx.window.common.DeviceStateManagerFoldingFeatureProducer;
25 import androidx.window.common.RawFoldingFeatureProducer;
26 import androidx.window.extensions.area.WindowAreaComponent;
27 import androidx.window.extensions.area.WindowAreaComponentImpl;
28 import androidx.window.extensions.embedding.ActivityEmbeddingComponent;
29 import androidx.window.extensions.embedding.SplitController;
30 import androidx.window.extensions.layout.WindowLayoutComponent;
31 import androidx.window.extensions.layout.WindowLayoutComponentImpl;
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/
H A DShutdownUi.java78 Window window = d.getWindow(); in showShutdownUi() local
79 window.requestFeature(Window.FEATURE_NO_TITLE); in showShutdownUi()
84 window.getDecorView(); in showShutdownUi()
85 window.getAttributes().width = ViewGroup.LayoutParams.MATCH_PARENT; in showShutdownUi()
86 window.getAttributes().height = ViewGroup.LayoutParams.MATCH_PARENT; in showShutdownUi()
88 window.setType(WindowManager.LayoutParams.TYPE_VOLUME_OVERLAY); in showShutdownUi()
89 window.getAttributes().setFitInsetsTypes(0 /* types */); in showShutdownUi()
90 window.clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND); in showShutdownUi()
91 window.addFlags( in showShutdownUi()
98 window.setBackgroundDrawable(background); in showShutdownUi()
[all …]
/aosp14/frameworks/base/packages/SystemUI/compose/core/src/com/android/compose/
H A DSystemUiController.kt33 import androidx.compose.ui.window.DialogWindowProvider
176 window: Window? = findWindow(),
179 return remember(view, window) { AndroidSystemUiController(view, window) }
184 (LocalView.current.parent as? DialogWindowProvider)?.window
189 is Activity -> window
200 internal class AndroidSystemUiController(private val view: View, private val window: Window?) :
202 private val windowInsetsController = window?.let { WindowCompat.getInsetsController(it, view) }
211 window?.statusBarColor =
232 window?.navigationBarColor =
283 get() = Build.VERSION.SDK_INT >= 29 && window?.isNavigationBarContrastEnforced == true
[all …]
/aosp14/frameworks/base/tests/SilkFX/src/com/android/test/silkfx/common/
H A DColorModeControls.kt37 private var window: Window? = null
42 val window = window ?: throw IllegalStateException("Failed to attach window") regex
45 setColorMode(window.colorMode)
86 window!!.colorMode = newMode
90 override fun setWindow(window: Window) {
91 this.window = window
96 val colormode = window!!.colorMode
/aosp14/frameworks/base/services/accessibility/java/com/android/server/accessibility/
H A DAccessibilityWindowManager.java310 return window; in getPictureInPictureWindowLocked()
330 window.setActive(true); in setActiveWindowLocked()
333 window.setActive(false); in setActiveWindowLocked()
418 if (window != null && window.layer < targetWindow.layer in getWatchOutsideTouchWindowIdLocked()
702 if (window == null) { in updateWindowsLocked()
706 window = null; in updateWindowsLocked()
708 if (window != null) { in updateWindowsLocked()
711 window.setLayer(windowCount - 1 - window.getLayer()); in updateWindowsLocked()
727 mWindows.add(window); in updateWindowsLocked()
843 if (window.childTokens != null) { in populateReportedWindowLocked()
[all …]
/aosp14/frameworks/base/media/mca/filterfw/jni/
H A Djni_gl_environment.cpp42 explicit NativeWindowHandle(ANativeWindow* window) : window_(window) { in NativeWindowHandle() argument
144 if (!window) { in Java_android_filterfw_core_GLEnvironment_nativeAddSurface()
149 NativeWindowHandle* winHandle = new NativeWindowHandle(window); in Java_android_filterfw_core_GLEnvironment_nativeAddSurface()
176 window, in Java_android_filterfw_core_GLEnvironment_nativeAddSurface()
206 if (!window) { in Java_android_filterfw_core_GLEnvironment_nativeAddSurfaceWidthHeight()
216 ANativeWindow_setBuffersGeometry(window, width, height, 0); in Java_android_filterfw_core_GLEnvironment_nativeAddSurfaceWidthHeight()
245 window, in Java_android_filterfw_core_GLEnvironment_nativeAddSurfaceWidthHeight()
296 sp<ANativeWindow> window = surfaceTC; in Java_android_filterfw_core_GLEnvironment_nativeAddSurfaceFromMediaRecorder() local
299 if (window == NULL) { in Java_android_filterfw_core_GLEnvironment_nativeAddSurfaceFromMediaRecorder()
303 window->incStrong((void*)ANativeWindow_acquire); in Java_android_filterfw_core_GLEnvironment_nativeAddSurfaceFromMediaRecorder()
[all …]
/aosp14/frameworks/base/tests/SilkFX/src/com/android/test/silkfx/materials/
H A DBackgroundBlurActivity.kt87 window.addFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND)
88 window.addFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND)
91 window.setBackgroundDrawable(mBackgroundDrawable)
146 window.setBackgroundBlurRadius(mBackgroundBlurRadius)
152 window.getAttributes().setBlurBehindRadius(mBlurBehindRadius)
153 window.setAttributes(window.getAttributes())
163 window.getAttributes().dimAmount = amount
164 window.setAttributes(window.getAttributes())
187 getWindowManager().updateViewLayout(window.getDecorView(), window.getAttributes())
/aosp14/frameworks/base/tests/FlickerTests/test-apps/flickerapp/src/com/android/server/wm/flicker/testapp/
H A DActivityEmbeddingMainActivity.java26 import androidx.window.embedding.ActivityFilter;
27 import androidx.window.embedding.ActivityRule;
28 import androidx.window.embedding.EmbeddingAspectRatio;
29 import androidx.window.embedding.RuleController;
30 import androidx.window.embedding.SplitAttributes;
31 import androidx.window.embedding.SplitAttributes.LayoutDirection;
32 import androidx.window.embedding.SplitController;
33 import androidx.window.embedding.SplitPairFilter;
34 import androidx.window.embedding.SplitPairRule;
35 import androidx.window.embedding.SplitPlaceholderRule;
[all …]

12345678910>>...34