/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 | TaskPositioningController.java | 102 WindowState win = null; in startMovingTask() local 104 win = mService.windowForClientLocked(null, window, false); in startMovingTask() 108 win, false /*resize*/, false /*preserveOrientation*/, startX, startY)) { in startMovingTask() 111 mService.mAtmService.setFocusedTask(win.getTask().mTaskId); in startMovingTask() 136 private boolean startPositioningLocked(WindowState win, boolean resize, in startPositioningLocked() argument 140 + "win=" + win + ", resize=" + resize + ", preserveOrientation=" in startPositioningLocked() 143 if (win == null || win.mActivityRecord == null) { in startPositioningLocked() 144 Slog.w(TAG_WM, "startPositioningLocked: Bad window " + win); in startPositioningLocked() 147 if (win.mInputChannel == null) { in startPositioningLocked() 148 Slog.wtf(TAG_WM, "startPositioningLocked: " + win + " has no input channel, " in startPositioningLocked() [all …]
|
D | DisplayPolicy.java | 922 public void adjustWindowParamsLw(WindowState win, WindowManager.LayoutParams attrs) { in adjustWindowParamsLw() argument 960 if (attrs.isFullscreen() && win.mActivityRecord != null in adjustWindowParamsLw() 961 && win.mActivityRecord.fillsParent() in adjustWindowParamsLw() 962 && (win.mAttrs.privateFlags & PRIVATE_FLAG_FORCE_DRAW_BAR_BACKGROUNDS) != 0 in adjustWindowParamsLw() 988 win.mWinAnimator.mAlpha = maxOpacity; in adjustWindowParamsLw() 992 if (!win.mSession.mCanSetUnrestrictedGestureExclusion) { in adjustWindowParamsLw() 997 if (mStatusBarAlt == win) { in adjustWindowParamsLw() 1000 if (mNavigationBarAlt == win) { in adjustWindowParamsLw() 1003 if (mClimateBarAlt == win) { in adjustWindowParamsLw() 1006 if (mExtraNavBarAlt == win) { in adjustWindowParamsLw() [all …]
|
D | WindowManagerService.java | 1683 final WindowState win = new WindowState(this, session, client, token, parentWindow, in addWindow() local 1686 if (win.mDeathRecipient == null) { in addWindow() 1694 if (win.getDisplayContent() == null) { in addWindow() 1700 displayPolicy.adjustWindowParamsLw(win, win.mAttrs); in addWindow() 1701 attrs.flags = sanitizeFlagSlippery(attrs.flags, win.getName(), callingUid, callingPid); in addWindow() 1702 attrs.inputFeatures = sanitizeSpyWindow(attrs.inputFeatures, win.getName(), callingUid, in addWindow() 1704 win.setRequestedVisibilities(requestedVisibilities); in addWindow() 1714 win.openInputChannel(outInputChannel); in addWindow() 1742 mH.obtainMessage(H.WINDOW_HIDE_TIMEOUT, win), in addWindow() 1743 win.mAttrs.hideTimeoutMilliseconds); in addWindow() [all …]
|
D | Letterbox.java | 225 void attachInput(WindowState win) { in attachInput() argument 227 mFullWindowSurface.attachInput(win); in attachInput() 230 surface.attachInput(win); in attachInput() 292 InputInterceptor(String namePrefix, WindowState win) { in InputInterceptor() argument 293 mWmService = win.mWmService; in InputInterceptor() 294 … final String name = namePrefix + (win.mActivityRecord != null ? win.mActivityRecord : win); in InputInterceptor() 301 win.getDisplayId()); in InputInterceptor() 367 void attachInput(WindowState win) { in attachInput() argument 371 mInputInterceptor = new InputInterceptor("Letterbox_" + mType + "_", win); in attachInput()
|
D | WindowToken.java | 218 final WindowState win = mChildren.get(i); in removeAllWindowsIfPossible() local 220 "removeAllWindowsIfPossible: removing win=%s", win); in removeAllWindowsIfPossible() 221 win.removeIfPossible(); in removeAllWindowsIfPossible() 247 final WindowState win = mChildren.get(i); in setExiting() local 248 changed |= win.onSetAppExiting(animateExit); in setExiting() 282 void addWindow(final WindowState win) { in addWindow() argument 284 "addWindow: win=%s Callers=%s", win, Debug.getCallers(5)); in addWindow() 286 if (win.isChildWindow()) { in addWindow() 298 if (!mChildren.contains(win)) { in addWindow() 299 ProtoLog.v(WM_DEBUG_ADD_REMOVE, "Adding %s to %s", win, this); in addWindow() [all …]
|
D | InsetsSourceProvider.java | 210 WindowState win = mWindowContainer.asWindowState(); in updateSourceFrame() local 212 if (win == null) { in updateSourceFrame() 233 mSourceFrame.inset(win.mGivenContentInsets); in updateSourceFrame() 260 if (win.mGivenVisibleInsets.left != 0 || win.mGivenVisibleInsets.top != 0 in updateSourceFrame() 261 || win.mGivenVisibleInsets.right != 0 in updateSourceFrame() 262 || win.mGivenVisibleInsets.bottom != 0) { in updateSourceFrame() 264 mTmpRect.inset(win.mGivenVisibleInsets); in updateSourceFrame() 352 final WindowState win = mWindowContainer.asWindowState(); in getWindowFrameSurfacePosition() local 353 if (win != null && mControl != null) { in getWindowFrameSurfacePosition() 355 if (controller != null && controller.shouldFreezeInsetsPosition(win)) { in getWindowFrameSurfacePosition() [all …]
|
D | ImeInsetsSourceProvider.java | 262 private static boolean isImeTargetWindowClosing(@NonNull WindowState win) { in isImeTargetWindowClosing() argument 263 return win.mAnimatingExit || win.mActivityRecord != null in isImeTargetWindowClosing() 264 && (win.mActivityRecord.isInTransition() in isImeTargetWindowClosing() 265 && !win.mActivityRecord.isVisibleRequested() in isImeTargetWindowClosing() 266 || win.mActivityRecord.willCloseOrEnterPip()); in isImeTargetWindowClosing()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
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 | DisplayPolicyTests.java | 80 final WindowState win = createWindow(null, TYPE_BASE_APPLICATION, "opaqueFullscreen"); in createOpaqueFullscreen() local 81 final WindowManager.LayoutParams attrs = win.mAttrs; in createOpaqueFullscreen() 88 return win; in createOpaqueFullscreen() 92 final WindowState win = createDreamWindow(null, TYPE_BASE_APPLICATION, "dream"); in createDreamWindow() local 93 final WindowManager.LayoutParams attrs = win.mAttrs; in createDreamWindow() 99 return win; in createDreamWindow() 103 final WindowState win = spy(createWindow(null, TYPE_APPLICATION, "dimmingDialog")); in createDimmingDialogWindow() local 104 final WindowManager.LayoutParams attrs = win.mAttrs; in createDimmingDialogWindow() 109 when(win.isDimming()).thenReturn(true); in createDimmingDialogWindow() 110 return win; in createDimmingDialogWindow() [all …]
|
D | WindowManagerServiceTests.java | 199 final WindowState win = createWindow(null, TYPE_BASE_APPLICATION, "appWin"); in testRelayoutExitingWindow() local 202 spyOn(win); in testRelayoutExitingWindow() 203 doReturn(true).when(win).isExitAnimationRunningSelfOrParent(); in testRelayoutExitingWindow() 204 win.mWinAnimator.mSurfaceController = surfaceController; in testRelayoutExitingWindow() 205 win.mViewVisibility = View.VISIBLE; in testRelayoutExitingWindow() 206 win.mHasSurface = true; in testRelayoutExitingWindow() 207 win.mActivityRecord.mAppStopped = true; in testRelayoutExitingWindow() 208 win.mActivityRecord.setVisibleRequested(false); in testRelayoutExitingWindow() 209 win.mActivityRecord.setVisible(false); in testRelayoutExitingWindow() 210 mWm.mWindowMap.put(win.mClient.asBinder(), win); in testRelayoutExitingWindow() local [all …]
|
D | WindowStateTests.java | 541 final WindowState win = createWindow(null, TYPE_APPLICATION_OVERLAY, "app"); in testApplyWithNextDraw() local 544 win.applyWithNextDraw(t -> handledT[0] = t); in testApplyWithNextDraw() 545 assertTrue(win.useBLASTSync()); in testApplyWithNextDraw() 547 final SurfaceControl.Transaction currT = win.getSyncTransaction(); in testApplyWithNextDraw() 549 win.mWinAnimator.mLastHidden = true; in testApplyWithNextDraw() 550 assertTrue(win.finishDrawing(drawT, Integer.MAX_VALUE)); in testApplyWithNextDraw() 554 assertFalse(win.useBLASTSync()); in testApplyWithNextDraw() 557 win.applyWithNextDraw(t -> handledT[0] = t); in testApplyWithNextDraw() 558 win.destroySurfaceUnchecked(); in testApplyWithNextDraw() 559 assertFalse(win.useBLASTSync()); in testApplyWithNextDraw() [all …]
|
D | WindowTokenTests.java | 284 final WindowState win = createWindow(null, TYPE_APPLICATION, token, "win"); in testRemoveWindowToken_noAnimateExitWhenSet() local 285 makeWindowVisible(win); in testRemoveWindowToken_noAnimateExitWhenSet() 286 assertTrue(win.isOnScreen()); in testRemoveWindowToken_noAnimateExitWhenSet() 287 spyOn(win); in testRemoveWindowToken_noAnimateExitWhenSet() 288 spyOn(win.mWinAnimator); in testRemoveWindowToken_noAnimateExitWhenSet() 289 spyOn(win.mToken); in testRemoveWindowToken_noAnimateExitWhenSet() 293 mWm.removeWindowToken(win.mToken.token, false /* removeWindows */, false /* animateExit */, in testRemoveWindowToken_noAnimateExitWhenSet() 295 verify(win).onSetAppExiting(Mockito.eq(false) /* animateExit */); in testRemoveWindowToken_noAnimateExitWhenSet() 296 verify(win).hide(false /* doAnimation */, false /* requestAnim */); in testRemoveWindowToken_noAnimateExitWhenSet() 297 assertFalse(win.isOnScreen()); in testRemoveWindowToken_noAnimateExitWhenSet() [all …]
|
D | DisplayPolicyLayoutTests.java | 153 WindowState win = createWindow(null, TYPE_STATUS_BAR_SUB_PANEL, "StatusBarSubPanel"); in addingWindow_withInsetsTypes() local 154 win.mAttrs.providedInsets = new InsetsFrameProvider[] { in addingWindow_withInsetsTypes() 158 win.getFrame().set(0, 0, 500, 100); in addingWindow_withInsetsTypes() 160 addWindow(win); in addingWindow_withInsetsTypes() 161 win.updateSourceFrame(win.getFrame()); in addingWindow_withInsetsTypes() 185 WindowState win = createWindow(null, TYPE_STATUS_BAR, "StatusBar"); in addingWindow_InWindowTypeWithPredefinedInsets() local 186 win.mAttrs.providedInsets = new InsetsFrameProvider[] { in addingWindow_InWindowTypeWithPredefinedInsets() 189 win.getFrame().set(0, 0, 500, 100); in addingWindow_InWindowTypeWithPredefinedInsets() 191 addWindow(win); in addingWindow_InWindowTypeWithPredefinedInsets() 192 win.updateSourceFrame(win.getFrame()); in addingWindow_InWindowTypeWithPredefinedInsets()
|
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 | InsetsPolicyTest.java | 88 final WindowState win = createWindow(null, WINDOWING_MODE_MULTI_WINDOW, in testControlsForDispatch_multiWindowTaskVisible() local 90 final InsetsSourceControl[] controls = addWindowAndGetControlsForDispatch(win); in testControlsForDispatch_multiWindowTaskVisible() 101 final WindowState win = createWindow(null, WINDOWING_MODE_FREEFORM, in testControlsForDispatch_freeformTaskVisible() local 103 final InsetsSourceControl[] controls = addWindowAndGetControlsForDispatch(win); in testControlsForDispatch_freeformTaskVisible() 404 WindowState win = addWindow(type, name); in addNonFocusableWindow() local 405 win.mAttrs.flags |= FLAG_NOT_FOCUSABLE; in addNonFocusableWindow() 406 return win; in addNonFocusableWindow() 410 final WindowState win = createWindow(null, type, name); in addWindow() local 411 mDisplayContent.getDisplayPolicy().addWindowLw(win, win.mAttrs); in addWindow() 412 return win; in addWindow() [all …]
|
D | DisplayContentTests.java | 895 final WindowState win = createWindow(null /* parent */, TYPE_BASE_APPLICATION, dc, "w"); in testLayoutSeq_assignedDuringLayout() local 899 assertThat(win.mLayoutSeq, is(dc.mLayoutSeq)); in testLayoutSeq_assignedDuringLayout() 1356 final WindowState win = createWindow(null, TYPE_BASE_APPLICATION, dc, "win"); in testUpdateSystemGestureExclusion() local 1357 win.getAttrs().flags |= FLAG_LAYOUT_IN_SCREEN | FLAG_LAYOUT_INSET_DECOR; in testUpdateSystemGestureExclusion() 1358 win.setSystemGestureExclusion(Collections.singletonList(new Rect(10, 20, 30, 40))); in testUpdateSystemGestureExclusion() 1362 win.setHasSurface(true); in testUpdateSystemGestureExclusion() 1388 final WindowState win = createWindow(null, TYPE_BASE_APPLICATION, dc, "win"); in testCalculateSystemGestureExclusion() local 1389 win.getAttrs().flags |= FLAG_LAYOUT_IN_SCREEN | FLAG_LAYOUT_INSET_DECOR; in testCalculateSystemGestureExclusion() 1390 win.setSystemGestureExclusion(Collections.singletonList(new Rect(10, 20, 30, 40))); in testCalculateSystemGestureExclusion() 1398 win.setHasSurface(true); in testCalculateSystemGestureExclusion() [all …]
|
/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/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/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));
|