/aosp12/hardware/libhardware/tests/hwc/ |
H A D | cnativewindow.c | 126 if (win->fb && win->fb->setSwapInterval) in cnw_set_swap_interval() 138 pthread_cond_wait(&win->cvar, &win->lock); in cnw_dequeue_buffer1() 235 res = win->fb->post(win->fb, buffer->handle); in cnw_queue_buffer1() 244 put_back(&win->free_buffer_queue, win->front); in cnw_queue_buffer1() 424 win->dclist[0] = &(win->dc); in hwc_init() 449 err = win->gr->alloc(win->gr, win->width, win->height, in cnw_alloc() 453 win->width, win->height, err); in cnw_alloc() 494 win->width, win->height, win->format); in cnw_init() 515 win->spare = cnw_alloc(win, win->format, usage); in cnw_init() 522 *((float*) &win->base.xdpi) = win->xdpi; in cnw_init() [all …]
|
/aosp12/frameworks/native/opengl/tools/glgen/stubs/egl/ |
H A D | eglCreateWindowSurface.java | 6 Object win, in _eglCreateWindowSurface() argument 14 Object win, in _eglCreateWindowSurfaceTexture() argument 21 Object win, in eglCreateWindowSurface() argument 26 if (win instanceof SurfaceView) { in eglCreateWindowSurface() 27 SurfaceView surfaceView = (SurfaceView)win; in eglCreateWindowSurface() 29 } else if (win instanceof SurfaceHolder) { in eglCreateWindowSurface() 30 SurfaceHolder holder = (SurfaceHolder)win; in eglCreateWindowSurface() 32 } else if (win instanceof Surface) { in eglCreateWindowSurface() 33 sur = (Surface) win; in eglCreateWindowSurface() 39 } else if (win instanceof SurfaceTexture) { in eglCreateWindowSurface() [all …]
|
H A D | eglCreateWindowSurface.cpp | 4 …(JNIEnv *_env, jobject _this, jobject dpy, jobject config, jobject win, jintArray attrib_list_ref,… in android_eglCreateWindowSurface() argument 43 if (win == NULL) { in android_eglCreateWindowSurface() 51 window = android::android_view_Surface_getNativeWindow(_env, win); in android_eglCreateWindowSurface() 78 …(JNIEnv *_env, jobject _this, jobject dpy, jobject config, jobject win, jintArray attrib_list_ref,… in android_eglCreateWindowSurfaceTexture() argument 104 if (win == NULL) { in android_eglCreateWindowSurfaceTexture() 111 producer = android::SurfaceTexture_getProducer(_env, win); in android_eglCreateWindowSurfaceTexture()
|
/aosp12/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | SeamlessRotator.java | 75 public void unrotate(Transaction transaction, WindowContainer win) { in unrotate() argument 76 transaction.setMatrix(win.getSurfaceControl(), mTransform, mFloat9); in unrotate() 78 final float[] winSurfacePos = {win.mLastSurfacePosition.x, win.mLastSurfacePosition.y}; in unrotate() 80 transaction.setPosition(win.getSurfaceControl(), winSurfacePos[0], winSurfacePos[1]); in unrotate() 82 transaction.setFixedTransformHint(win.mSurfaceControl, mFixedTransformHint); in unrotate() 104 void finish(Transaction t, WindowContainer win) { in finish() argument 105 if (win.mSurfaceControl == null || !win.mSurfaceControl.isValid()) { in finish() 110 t.setMatrix(win.mSurfaceControl, mTransform, mFloat9); in finish() 111 t.setPosition(win.mSurfaceControl, win.mLastSurfacePosition.x, win.mLastSurfacePosition.y); in finish() 113 t.unsetFixedTransformHint(win.mSurfaceControl); in finish()
|
H A D | DisplayPolicy.java | 1328 if (mStatusBar == win || mStatusBarAlt == win) { 1332 } else if (mNavigationBar == win || mNavigationBarAlt == win) { 1440 } else if (win == mStatusBarAlt || win == mNavigationBarAlt || win == mClimateBarAlt 1944 if (!mDreamingLockscreen || (win.isVisible() && win.hasDrawn())) { 2935 if (win == null) { 2938 return intersectsAnyInsets(win.getFrame(), win.getInsetsState(), type); 2974 if (win == null) { 2981 if (win == null) { 3052 if (win == null) { 3320 if (win.mActivityRecord == null || !win.isVisible()) { [all …]
|
H A D | TaskPositioningController.java | 115 WindowState win = null; in startMovingTask() local 117 win = mService.windowForClientLocked(null, window, false); in startMovingTask() 126 mActivityManager.setFocusedTask(win.getTask().mTaskId); in startMovingTask() 154 private boolean startPositioningLocked(WindowState win, boolean resize, in startPositioningLocked() argument 158 + "win=" + win + ", resize=" + resize + ", preserveOrientation=" in startPositioningLocked() 161 if (win == null || win.getAppToken() == null) { in startPositioningLocked() 162 Slog.w(TAG_WM, "startPositioningLocked: Bad window " + win); in startPositioningLocked() 165 if (win.mInputChannel == null) { in startPositioningLocked() 171 final DisplayContent displayContent = win.getDisplayContent(); in startPositioningLocked() 179 mTaskPositioner.register(displayContent, win); in startPositioningLocked() [all …]
|
H A D | WindowManagerService.java | 1678 displayPolicy.adjustWindowParamsLw(win, win.mAttrs); in addWindow() 1778 win.mToken.addWindow(win); in addWindow() 1780 displayPolicy.setDropInputModePolicy(win, win.mAttrs); in addWindow() 2246 win.mToken.adjustWindowParams(win, attrs); in relayoutWindow() 2283 win, win.mWinAnimator.getShown()); in relayoutWindow() 2296 win.setWindowScale(win.mRequestedWidth, win.mRequestedHeight); in relayoutWindow() 2539 win.calculateSurfaceBounds(win.getLayoutingAttrs( in relayoutWindow() 2664 win, (win != null ? win.mWinAnimator.drawStateToString() : "null")); in finishDrawingWindow() 5772 return win; in windowForClientLocked() 5801 win, win.mRemoved, win.isVisible(), win.mHasSurface, in checkDrawnWindowsLocked() [all …]
|
H A D | Letterbox.java | 215 void attachInput(WindowState win) { in attachInput() argument 217 mFullWindowSurface.attachInput(win); in attachInput() 220 surface.attachInput(win); in attachInput() 281 InputInterceptor(String namePrefix, WindowState win) { in InputInterceptor() argument 282 mWmService = win.mWmService; in InputInterceptor() 283 … final String name = namePrefix + (win.mActivityRecord != null ? win.mActivityRecord : win); in InputInterceptor() 290 win.getDisplayId()); in InputInterceptor() 359 void attachInput(WindowState win) { in attachInput() argument 363 mInputInterceptor = new InputInterceptor("Letterbox_" + mType + "_", win); in attachInput()
|
H A D | InsetsPolicy.java | 373 private static boolean canBeTopFullscreenOpaqueWindow(@Nullable WindowState win) { in canBeTopFullscreenOpaqueWindow() argument 376 final boolean nonAttachedAppWindow = win != null in canBeTopFullscreenOpaqueWindow() 377 && win.mAttrs.type >= WindowManager.LayoutParams.FIRST_APPLICATION_WINDOW in canBeTopFullscreenOpaqueWindow() 378 && win.mAttrs.type <= WindowManager.LayoutParams.LAST_APPLICATION_WINDOW; in canBeTopFullscreenOpaqueWindow() 379 return nonAttachedAppWindow && win.mAttrs.isFullscreen() && !win.isFullyTransparent() in canBeTopFullscreenOpaqueWindow() 380 && !win.inMultiWindowMode(); in canBeTopFullscreenOpaqueWindow() 449 final WindowState win = mPolicy.getStatusBar(); in forceShowsStatusBarTransiently() local 450 return win != null && (win.mAttrs.privateFlags & PRIVATE_FLAG_FORCE_SHOW_STATUS_BAR) != 0; in forceShowsStatusBarTransiently() 454 final WindowState win = mPolicy.getNotificationShade(); in forceShowsNavigationBarTransiently() local 455 return win != null in forceShowsNavigationBarTransiently() [all …]
|
H A D | WindowToken.java | 231 final WindowState win = mChildren.get(i); in removeAllWindowsIfPossible() local 233 "removeAllWindowsIfPossible: removing win=%s", win); in removeAllWindowsIfPossible() 234 win.removeIfPossible(); in removeAllWindowsIfPossible() 262 final WindowState win = mChildren.get(i); in setExiting() local 263 changed |= win.onSetAppExiting(animateExit); in setExiting() 306 void addWindow(final WindowState win) { in addWindow() argument 310 if (win.isChildWindow()) { in addWindow() 319 if (!mChildren.contains(win)) { in addWindow() 321 addChild(win, mWindowComparator); in addWindow() 341 final WindowState win = mChildren.get(i); in getReplacingWindow() local [all …]
|
H A D | InsetsStateController.java | 317 void updateAboveInsetsState(WindowState win, boolean notifyInsetsChange) { in updateAboveInsetsState() argument 318 if (win == null || win.getDisplayContent() != mDisplayContent) { in updateAboveInsetsState() 325 final SparseArray<InsetsSource> winProvidedSources = win.mProvidedInsetsSources; in updateAboveInsetsState() 329 if (w == win) { in updateAboveInsetsState() 331 if (!win.mAboveInsetsState.equals(aboveInsetsState)) { in updateAboveInsetsState() 332 win.mAboveInsetsState.set(aboveInsetsState); in updateAboveInsetsState() 333 insetsChangedWindows.add(win); in updateAboveInsetsState() 399 void computeSimulatedState(WindowState win, DisplayFrames displayFrames, in computeSimulatedState() argument 404 if (provider.mWin == win) { in computeSimulatedState()
|
/aosp12/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
H A D | DisplayPolicyTests.java | 80 return win; in createOpaqueFullscreen() 90 when(win.isDimming()).thenReturn(true); in createDimmingDialogWindow() 91 return win; in createDimmingDialogWindow() 104 win.mHasSurface = visible; in createInputMethodWindow() 105 return win; in createInputMethodWindow() 233 win.mHasSurface = true; in createApplicationWindow() 234 return win; in createApplicationWindow() 244 win.mHasSurface = true; in createBaseApplicationWindow() 245 return win; in createBaseApplicationWindow() 286 win.mHasSurface = true; in createNavigationBarWindow() [all …]
|
H A D | RemoteAnimationControllerTest.java | 113 win.mActivityRecord = null; in createAppOverlayWindow() 114 win.mHasSurface = true; in createAppOverlayWindow() 115 return win; in createAppOverlayWindow() 121 mDisplayContent.mOpeningApps.add(win.mActivityRecord); in testRun() 271 win.mActivityRecord.removeImmediately(); in testRemovedBeforeStarted() 282 final Task task = win.getTask(); in testOpeningTaskWithTopFinishingActivity() 475 mDisplayContent.mOpeningApps.add(win.mActivityRecord); in testWallpaperIncluded_expectTarget() 507 mDisplayContent.mOpeningApps.add(win.mActivityRecord); in testWallpaperAnimatorCanceled_expectAnimationKeepsRunning() 539 mDisplayContent.mOpeningApps.add(win.mActivityRecord); in testNonAppIncluded_keygaurdGoingAway() 589 mDisplayContent.mOpeningApps.add(win.mActivityRecord); in testNonAppIncluded_keygaurdGoingAwayToWallpaper() [all …]
|
H A D | WindowTokenTests.java | 270 final WindowState win = createWindow(null, TYPE_APPLICATION, token, "win"); in testRemoveWindowToken_noAnimateExitWhenSet() local 271 makeWindowVisible(win); in testRemoveWindowToken_noAnimateExitWhenSet() 272 assertTrue(win.isOnScreen()); in testRemoveWindowToken_noAnimateExitWhenSet() 273 spyOn(win); in testRemoveWindowToken_noAnimateExitWhenSet() 274 spyOn(win.mWinAnimator); in testRemoveWindowToken_noAnimateExitWhenSet() 275 spyOn(win.mToken); in testRemoveWindowToken_noAnimateExitWhenSet() 281 verify(win).onSetAppExiting(Mockito.eq(false) /* animateExit */); in testRemoveWindowToken_noAnimateExitWhenSet() 282 verify(win).hide(false /* doAnimation */, false /* requestAnim */); in testRemoveWindowToken_noAnimateExitWhenSet() 283 assertFalse(win.isOnScreen()); in testRemoveWindowToken_noAnimateExitWhenSet() 285 assertTrue(win.mToken.hasChild()); in testRemoveWindowToken_noAnimateExitWhenSet() [all …]
|
H A D | WindowStateTests.java | 668 makeWindowVisible(win, win.getParentWindow()); in testReportResizedWithRemoteException() 669 win.mLayoutSeq = win.getDisplayContent().mLayoutSeq; in testReportResizedWithRemoteException() 676 spyOn(win.mClient); in testReportResizedWithRemoteException() 684 win.reportResized(); in testReportResizedWithRemoteException() 697 makeWindowVisible(win, win.getParentWindow()); in testRequestResizeForBlastSync() 698 win.mLayoutSeq = win.getDisplayContent().mLayoutSeq; in testRequestResizeForBlastSync() 699 win.reportResized(); in testRequestResizeForBlastSync() 704 win.reportResized(); in testRequestResizeForBlastSync() 705 win.prepareSync(); in testRequestResizeForBlastSync() 712 win.reportResized(); in testRequestResizeForBlastSync() [all …]
|
H A D | InsetsPolicyTest.java | 89 final WindowState win = createWindow(null, WINDOWING_MODE_SPLIT_SCREEN_PRIMARY, in testControlsForDispatch_dockedTaskVisible() local 91 final InsetsSourceControl[] controls = addWindowAndGetControlsForDispatch(win); in testControlsForDispatch_dockedTaskVisible() 102 final WindowState win = createWindow(null, WINDOWING_MODE_MULTI_WINDOW, in testControlsForDispatch_multiWindowTaskVisible() local 115 final WindowState win = createWindow(null, WINDOWING_MODE_FREEFORM, in testControlsForDispatch_freeformTaskVisible() local 418 WindowState win = addWindow(type, name); in addNonFocusableWindow() local 419 win.mAttrs.flags |= FLAG_NOT_FOCUSABLE; in addNonFocusableWindow() 420 return win; in addNonFocusableWindow() 424 final WindowState win = createWindow(null, type, name); in addWindow() local 425 mDisplayContent.getDisplayPolicy().addWindowLw(win, win.mAttrs); in addWindow() 426 return win; in addWindow() [all …]
|
H A D | DisplayPolicyTestsBase.java | 107 void addWindow(WindowState win) { in addWindow() argument 108 mDisplayPolicy.adjustWindowParamsLw(win, win.mAttrs); in addWindow() 110 win.mAttrs, Binder.getCallingPid(), Binder.getCallingUid())); in addWindow() 111 mDisplayPolicy.addWindowLw(win, win.mAttrs); in addWindow() 112 win.mHasSurface = true; in addWindow()
|
H A D | DisplayAreaTest.java | 452 final WindowState win = createWindowState(token); in testGetOrientation() local 453 spyOn(win); in testGetOrientation() 454 doNothing().when(win).setParent(any()); in testGetOrientation() 456 token.addChild(win, 0); in testGetOrientation() 459 doReturn(true).when(win).isVisible(); in testGetOrientation() 465 doReturn(false).when(win).isVisible(); in testGetOrientation() 479 final WindowState win = createWindowState(token); in testSetIgnoreOrientationRequest() local 480 spyOn(win); in testSetIgnoreOrientationRequest() 481 doNothing().when(win).setParent(any()); in testSetIgnoreOrientationRequest() 483 token.addChild(win, 0); in testSetIgnoreOrientationRequest() [all …]
|
/aosp12/frameworks/base/opengl/java/android/opengl/ |
H A D | EGL14.java | 234 Object win, in _eglCreateWindowSurface() argument 242 Object win, in _eglCreateWindowSurfaceTexture() argument 249 Object win, in eglCreateWindowSurface() argument 254 if (win instanceof SurfaceView) { in eglCreateWindowSurface() 255 SurfaceView surfaceView = (SurfaceView)win; in eglCreateWindowSurface() 257 } else if (win instanceof SurfaceHolder) { in eglCreateWindowSurface() 258 SurfaceHolder holder = (SurfaceHolder)win; in eglCreateWindowSurface() 260 } else if (win instanceof Surface) { in eglCreateWindowSurface() 261 sur = (Surface) win; in eglCreateWindowSurface() 267 } else if (win instanceof SurfaceTexture) { in eglCreateWindowSurface() [all …]
|
H A D | GLU.java | 149 int[] view, int viewOffset, float[] win, int winOffset) { in gluProject() argument 173 win[winOffset] = in gluProject() 177 win[winOffset + 1] = in gluProject() 180 win[winOffset + 2] = (scratch[V2_OFFSET + 2] * rw + 1.0f) * 0.5f; in gluProject()
|
/aosp12/frameworks/native/opengl/libs/EGL/ |
H A D | egl_object.cpp | 51 egl_surface_t::egl_surface_t(egl_display_t* dpy, EGLConfig config, EGLNativeWindowType win, in egl_surface_t() argument 56 win(win), in egl_surface_t() 71 if (win) { in egl_surface_t() 72 win->incStrong(this); in egl_surface_t() 77 if (win != nullptr) { in ~egl_surface_t() 79 win->decStrong(this); in ~egl_surface_t() 84 if (win != nullptr && connected) { in disconnect() 88 native_window_set_buffers_format(win, 0); in disconnect() 89 if (native_window_api_disconnect(win, NATIVE_WINDOW_API_EGL)) { in disconnect() 90 ALOGW("EGLNativeWindowType %p disconnect failed", win); in disconnect()
|
/aosp12/frameworks/base/native/android/ |
H A D | native_window_jni.cpp | 31 sp<ANativeWindow> win = android_view_Surface_getNativeWindow(env, surface); in ANativeWindow_fromSurface() local 32 if (win != NULL) { in ANativeWindow_fromSurface() 33 ANativeWindow_acquire(win.get()); in ANativeWindow_fromSurface() 35 return win.get(); in ANativeWindow_fromSurface()
|
/aosp12/frameworks/base/core/java/com/android/internal/view/menu/ |
H A D | MenuDialogHelper.java | 96 Window win = mDialog.getWindow(); in onKey() local 97 if (win != null) { in onKey() 98 View decor = win.getDecorView(); in onKey() 108 Window win = mDialog.getWindow(); in onKey() local 109 if (win != null) { in onKey() 110 View decor = win.getDecorView(); in onKey()
|
/aosp12/frameworks/base/tests/StatusBar/src/com/android/statusbartest/ |
H A D | StatusBarTest.java | 131 Window win = getWindow(); 132 win.setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, 134 Log.d(TAG, "flags=" + Integer.toHexString(win.getAttributes().flags)); 139 Window win = getWindow(); 140 win.setFlags(0, WindowManager.LayoutParams.FLAG_FULLSCREEN); 141 Log.d(TAG, "flags=" + Integer.toHexString(win.getAttributes().flags));
|
/aosp12/frameworks/native/services/surfaceflinger/ |
H A D | BufferLayer.cpp | 266 const Rect win{getBounds()}; in prepareClientComposition() local 274 bufferWidth = float(win.right) - float(win.left); in prepareClientComposition() 275 bufferHeight = float(win.bottom) - float(win.top); in prepareClientComposition() 278 const float scaleHeight = (float(win.bottom) - float(win.top)) / bufferHeight; in prepareClientComposition() 279 const float scaleWidth = (float(win.right) - float(win.left)) / bufferWidth; in prepareClientComposition() 280 const float translateY = float(win.top) / bufferHeight; in prepareClientComposition() 281 const float translateX = float(win.left) / bufferWidth; in prepareClientComposition()
|