/frameworks/native/opengl/tools/glgen/stubs/egl/ |
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 …]
|
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()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | SeamlessRotator.java | 74 public void unrotate(Transaction transaction, WindowContainer win) { in unrotate() argument 75 applyTransform(transaction, win.getSurfaceControl()); in unrotate() 77 final float[] winSurfacePos = {win.mLastSurfacePosition.x, win.mLastSurfacePosition.y}; in unrotate() 79 transaction.setPosition(win.getSurfaceControl(), winSurfacePos[0], winSurfacePos[1]); in unrotate() 81 transaction.setFixedTransformHint(win.mSurfaceControl, mFixedTransformHint); in unrotate() 107 void finish(Transaction t, WindowContainer win) { in finish() argument 108 if (win.mSurfaceControl == null || !win.mSurfaceControl.isValid()) { in finish() 112 setIdentityMatrix(t, win.mSurfaceControl); in finish() 113 t.setPosition(win.mSurfaceControl, win.mLastSurfacePosition.x, win.mLastSurfacePosition.y); in finish() 115 t.unsetFixedTransformHint(win.mSurfaceControl); in finish()
|
D | DisplayPolicy.java | 446 private Insets getControllableInsets(WindowState win) { in DisplayPolicy() 447 if (win == null) { in DisplayPolicy() 450 final InsetsSourceProvider provider = win.getControllableInsetProvider(); in DisplayPolicy() 454 return provider.getSource().calculateInsets(win.getBounds(), in DisplayPolicy() 945 public void adjustWindowParamsLw(WindowState win, WindowManager.LayoutParams attrs) { in adjustWindowParamsLw() argument 980 if (attrs.isFullscreen() && win.mActivityRecord != null in adjustWindowParamsLw() 981 && win.mActivityRecord.fillsParent() in adjustWindowParamsLw() 987 + win.mActivityRecord.getName() + " that isn't translucent trying" in adjustWindowParamsLw() 1002 && !win.isTrustedOverlay()) { in adjustWindowParamsLw() 1014 win.mWinAnimator.mAlpha = maxOpacity; in adjustWindowParamsLw() [all …]
|
D | TaskPositioningController.java | 110 WindowState win = null; in startMovingTask() local 113 win = mService.windowForClientLocked(null, window, false); in startMovingTask() 116 win, false /*resize*/, false /*preserveOrientation*/, startX, startY); in startMovingTask() 130 mService.mAtmService.setFocusedTask(win.getTask().mTaskId); in startMovingTask() 167 private CompletableFuture<Boolean> startPositioningLocked(WindowState win, boolean resize, in startPositioningLocked() argument 171 + "win=" + win + ", resize=" + resize + ", preserveOrientation=" in startPositioningLocked() 174 if (win == null || win.mActivityRecord == null) { in startPositioningLocked() 175 Slog.w(TAG_WM, "startPositioningLocked: Bad window " + win); in startPositioningLocked() 178 if (win.mInputChannel == null) { in startPositioningLocked() 179 Slog.wtf(TAG_WM, "startPositioningLocked: " + win + " has no input channel, " in startPositioningLocked() [all …]
|
D | WindowManagerService.java | 1739 final WindowState win = new WindowState(this, session, client, token, parentWindow, in addWindow() local 1743 displayPolicy.adjustWindowParamsLw(win, win.mAttrs); in addWindow() 1744 attrs.flags = sanitizeFlagSlippery(attrs.flags, win.getName(), callingUid, callingPid); in addWindow() 1745 attrs.inputFeatures = sanitizeInputFeatures(attrs.inputFeatures, win.getName(), in addWindow() 1746 callingUid, callingPid, win.isTrustedOverlay()); in addWindow() 1747 win.setRequestedVisibleTypes(requestedVisibleTypes); in addWindow() 1757 win.openInputChannel(outInputChannel); in addWindow() 1785 mH.obtainMessage(H.WINDOW_HIDE_TIMEOUT, win), in addWindow() 1786 win.mAttrs.hideTimeoutMilliseconds); in addWindow() 1794 if (!win.isChildWindow() in addWindow() [all …]
|
D | Letterbox.java | 232 void attachInput(WindowState win) { in attachInput() argument 234 mFullWindowSurface.attachInput(win); in attachInput() 237 surface.attachInput(win); in attachInput() 311 InputInterceptor(String namePrefix, WindowState win) { in InputInterceptor() argument 312 mWmService = win.mWmService; in InputInterceptor() 314 … final String name = namePrefix + (win.mActivityRecord != null ? win.mActivityRecord : win); in InputInterceptor() 321 win.getDisplayId()); in InputInterceptor() 394 void attachInput(WindowState win) { in attachInput() argument 398 mInputInterceptor = new InputInterceptor("Letterbox_" + mType + "_", win); in attachInput()
|
D | InsetsSourceProvider.java | 225 WindowState win = mWindowContainer.asWindowState(); in updateSourceFrame() local 227 if (win == null) { in updateSourceFrame() 280 if (win.mGivenVisibleInsets.left != 0 || win.mGivenVisibleInsets.top != 0 in updateSourceFrame() 281 || win.mGivenVisibleInsets.right != 0 in updateSourceFrame() 282 || win.mGivenVisibleInsets.bottom != 0) { in updateSourceFrame() 284 mTmpRect.inset(win.mGivenVisibleInsets); in updateSourceFrame() 314 final WindowState win = mWindowContainer.asWindowState(); in getInsetsHint() local 315 if (win != null && win.mGivenInsetsPending) { in getInsetsHint() 418 final WindowState win = mWindowContainer.asWindowState(); in getWindowFrameSurfacePosition() local 419 if (win != null && mControl != null) { in getWindowFrameSurfacePosition() [all …]
|
D | InsetsPolicy.java | 531 private static boolean canBeTopFullscreenOpaqueWindow(@Nullable WindowState win) { in canBeTopFullscreenOpaqueWindow() argument 534 final boolean nonAttachedAppWindow = win != null in canBeTopFullscreenOpaqueWindow() 535 && win.mAttrs.type >= WindowManager.LayoutParams.FIRST_APPLICATION_WINDOW in canBeTopFullscreenOpaqueWindow() 536 && win.mAttrs.type <= WindowManager.LayoutParams.LAST_APPLICATION_WINDOW; in canBeTopFullscreenOpaqueWindow() 537 return nonAttachedAppWindow && win.mAttrs.isFullscreen() && !win.isFullyTransparent() in canBeTopFullscreenOpaqueWindow() 538 && !win.inMultiWindowMode(); in canBeTopFullscreenOpaqueWindow() 596 void updateSystemBars(WindowState win, boolean inSplitScreenMode, boolean inFreeformMode) { in updateSystemBars() argument 599 : forceShowingNavigationBars(win) in updateSystemBars() 606 mForcedShowingTypes | (remoteInsetsControllerControlsSystemBars(win) in updateSystemBars() 610 updateBarControlTarget(win); in updateSystemBars() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | WindowManagerServiceTests.java | 271 final WindowState win = createWindow(null, TYPE_BASE_APPLICATION, "appWin"); in testRelayoutExitingWindow_legacy() local 273 win.mWinAnimator.mSurfaceController = surfaceController; in testRelayoutExitingWindow_legacy() 274 win.mWinAnimator.mDrawState = WindowStateAnimator.HAS_DRAWN; in testRelayoutExitingWindow_legacy() 276 spyOn(win.mTransitionController); in testRelayoutExitingWindow_legacy() 277 doReturn(true).when(win.mTransitionController).isShellTransitionsEnabled(); in testRelayoutExitingWindow_legacy() 278 doReturn(true).when(win.mTransitionController).inTransition( in testRelayoutExitingWindow_legacy() 279 eq(win.mActivityRecord)); in testRelayoutExitingWindow_legacy() 280 win.mViewVisibility = View.VISIBLE; in testRelayoutExitingWindow_legacy() 281 win.mHasSurface = true; in testRelayoutExitingWindow_legacy() 282 win.mActivityRecord.mAppStopped = true; in testRelayoutExitingWindow_legacy() [all …]
|
D | RemoteAnimationControllerTest.java | 119 final WindowState win = createWindow(null /* parent */, TYPE_APPLICATION_OVERLAY, in createAppOverlayWindow() local 121 win.mActivityRecord = null; in createAppOverlayWindow() 122 win.mHasSurface = true; in createAppOverlayWindow() 123 return win; in createAppOverlayWindow() 128 final WindowState win = createWindow(null /* parent */, TYPE_BASE_APPLICATION, "testWin"); in testForwardsShowBackdrop() local 129 mDisplayContent.mOpeningApps.add(win.mActivityRecord); in testForwardsShowBackdrop() 133 win.mActivityRecord, in testForwardsShowBackdrop() 161 final WindowState win = createWindow(null /* parent */, TYPE_BASE_APPLICATION, "testWin"); in testRun() local 162 mDisplayContent.mOpeningApps.add(win.mActivityRecord); in testRun() 166 win.mActivityRecord, in testRun() [all …]
|
D | InsetsPolicyTest.java | 90 final WindowState win = createAppWindow(task1, WINDOWING_MODE_MULTI_WINDOW, "app"); in testControlsForDispatch_adjacentTasksVisible() local 91 final InsetsSourceControl[] controls = addWindowAndGetControlsForDispatch(win); in testControlsForDispatch_adjacentTasksVisible() 102 final WindowState win = createWindow(null, WINDOWING_MODE_FREEFORM, in testControlsForDispatch_freeformTaskVisible() local 104 final InsetsSourceControl[] controls = addWindowAndGetControlsForDispatch(win); in testControlsForDispatch_freeformTaskVisible() 494 final WindowState win = createWindow(null, TYPE_NAVIGATION_BAR, "navBar"); in addNavigationBar() local 495 win.mAttrs.flags |= FLAG_NOT_FOCUSABLE; in addNavigationBar() 496 win.mAttrs.providedInsets = new InsetsFrameProvider[] { in addNavigationBar() 501 mDisplayContent.getDisplayPolicy().addWindowLw(win, win.mAttrs); in addNavigationBar() 502 return win; in addNavigationBar() 507 final WindowState win = createWindow(null, TYPE_STATUS_BAR, "statusBar"); in addStatusBar() local [all …]
|
D | WindowTokenTests.java | 286 final WindowState win = createWindow(null, TYPE_APPLICATION, token, "win"); in testRemoveWindowToken_noAnimateExitWhenSet() local 287 makeWindowVisible(win); in testRemoveWindowToken_noAnimateExitWhenSet() 288 assertTrue(win.isOnScreen()); in testRemoveWindowToken_noAnimateExitWhenSet() 289 spyOn(win); in testRemoveWindowToken_noAnimateExitWhenSet() 290 spyOn(win.mWinAnimator); in testRemoveWindowToken_noAnimateExitWhenSet() 291 spyOn(win.mToken); in testRemoveWindowToken_noAnimateExitWhenSet() 295 mWm.removeWindowToken(win.mToken.token, false /* removeWindows */, false /* animateExit */, in testRemoveWindowToken_noAnimateExitWhenSet() 297 verify(win).onSetAppExiting(Mockito.eq(false) /* animateExit */); in testRemoveWindowToken_noAnimateExitWhenSet() 298 verify(win).hide(false /* doAnimation */, false /* requestAnim */); in testRemoveWindowToken_noAnimateExitWhenSet() 299 assertFalse(win.isOnScreen()); in testRemoveWindowToken_noAnimateExitWhenSet() [all …]
|
D | WindowStateTests.java | 579 final WindowState win = createWindow(null, TYPE_APPLICATION_OVERLAY, "app"); in testApplyWithNextDraw() local 582 win.applyWithNextDraw(t -> handledT[0] = t); in testApplyWithNextDraw() 583 assertTrue(win.syncNextBuffer()); in testApplyWithNextDraw() 585 final SurfaceControl.Transaction currT = win.getSyncTransaction(); in testApplyWithNextDraw() 587 win.mWinAnimator.mLastHidden = true; in testApplyWithNextDraw() 588 assertTrue(win.finishDrawing(drawT, Integer.MAX_VALUE)); in testApplyWithNextDraw() 592 assertFalse(win.syncNextBuffer()); in testApplyWithNextDraw() 595 win.applyWithNextDraw(t -> handledT[0] = t); in testApplyWithNextDraw() 596 win.destroySurfaceUnchecked(); in testApplyWithNextDraw() 597 assertFalse(win.syncNextBuffer()); in testApplyWithNextDraw() [all …]
|
D | DisplayPolicyTestsBase.java | 70 void addWindow(WindowState win) { in addWindow() argument 71 mDisplayPolicy.adjustWindowParamsLw(win, win.mAttrs); in addWindow() 73 win.mAttrs, Binder.getCallingPid(), Binder.getCallingUid())); in addWindow() 74 mDisplayPolicy.addWindowLw(win, win.mAttrs); in addWindow() 75 win.mHasSurface = true; in addWindow()
|
D | DisplayPolicyTests.java | 85 final WindowState win = createWindow(null, TYPE_BASE_APPLICATION, "opaqueFullscreen"); in createOpaqueFullscreen() local 86 final WindowManager.LayoutParams attrs = win.mAttrs; in createOpaqueFullscreen() 93 return win; in createOpaqueFullscreen() 97 final WindowState win = createDreamWindow(null, TYPE_BASE_APPLICATION, "dream"); in createDreamWindow() local 98 final WindowManager.LayoutParams attrs = win.mAttrs; in createDreamWindow() 104 return win; in createDreamWindow() 108 final WindowState win = spy(createWindow(null, TYPE_APPLICATION, "dimmingDialog")); in createDimmingDialogWindow() local 109 final WindowManager.LayoutParams attrs = win.mAttrs; in createDimmingDialogWindow() 114 when(win.isDimming()).thenReturn(true); in createDimmingDialogWindow() 115 return win; in createDimmingDialogWindow() [all …]
|
D | DisplayPolicyLayoutTests.java | 149 final WindowState win = createWindow(null, TYPE_STATUS_BAR_SUB_PANEL, "statusBar"); in addingWindow_withInsetsTypes() local 151 win.mAttrs.providedInsets = new InsetsFrameProvider[] { in addingWindow_withInsetsTypes() 155 addWindow(win); in addingWindow_withInsetsTypes() 156 win.getFrame().set(0, 0, 500, 100); in addingWindow_withInsetsTypes() 157 win.updateSourceFrame(win.getFrame()); in addingWindow_withInsetsTypes() 160 assertTrue(win.hasInsetsSourceProvider()); in addingWindow_withInsetsTypes() 161 final SparseArray<InsetsSourceProvider> providers = win.getInsetsSourceProviders(); in addingWindow_withInsetsTypes()
|
/frameworks/base/core/jni/platform/host/ |
D | native_window_jni.cpp | 26 sp<ANativeWindow> win = android_view_Surface_getNativeWindow(env, surface); in ANativeWindow_fromSurface() local 27 if (win != NULL) { in ANativeWindow_fromSurface() 28 ANativeWindow_acquire(win.get()); in ANativeWindow_fromSurface() 30 return win.get(); in ANativeWindow_fromSurface()
|
/frameworks/base/opengl/java/android/opengl/ |
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 …]
|
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()
|
/frameworks/base/native/android/ |
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()
|
/frameworks/native/services/surfaceflinger/ |
D | LayerFE.cpp | 57 FloatRect reduce(const FloatRect& win, const Region& exclude) { in reduce() argument 59 return win; in reduce() 62 return Region(Rect{win}).subtract(exclude).getBounds().toFloatRect(); in reduce() 302 const Rect win{layerSettings.geometry.boundaries}; in prepareBufferStateClientComposition() local 310 bufferWidth = float(win.right) - float(win.left); in prepareBufferStateClientComposition() 311 bufferHeight = float(win.bottom) - float(win.top); in prepareBufferStateClientComposition() 314 const float scaleHeight = (float(win.bottom) - float(win.top)) / bufferHeight; in prepareBufferStateClientComposition() 315 const float scaleWidth = (float(win.right) - float(win.left)) / bufferWidth; in prepareBufferStateClientComposition() 316 const float translateY = float(win.top) / bufferHeight; in prepareBufferStateClientComposition() 317 const float translateX = float(win.left) / bufferWidth; in prepareBufferStateClientComposition()
|
/frameworks/native/opengl/libs/EGL/ |
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()
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
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()
|
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/ |
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));
|