/frameworks/base/services/core/java/com/android/server/wm/ |
D | SeamlessRotator.java | 66 public void unrotate(Transaction transaction, WindowState win) { in unrotate() argument 67 transaction.setMatrix(win.getSurfaceControl(), mTransform, mFloat9); in unrotate() 70 final float[] winSurfacePos = {win.mLastSurfacePosition.x, win.mLastSurfacePosition.y}; in unrotate() 72 transaction.setPosition(win.getSurfaceControl(), winSurfacePos[0], winSurfacePos[1]); in unrotate() 96 public void finish(WindowState win, boolean timeout) { in finish() argument 98 final Transaction t = win.getPendingTransaction(); in finish() 99 t.setMatrix(win.mSurfaceControl, mTransform, mFloat9); in finish() 100 t.setPosition(win.mSurfaceControl, win.mLastSurfacePosition.x, win.mLastSurfacePosition.y); in finish() 101 if (win.mWinAnimator.mSurfaceController != null && !timeout) { in finish() 102 t.deferTransactionUntil(win.mSurfaceControl, in finish() [all …]
|
D | TaskPositioningController.java | 112 WindowState win = null; in startMovingTask() local 114 win = mService.windowForClientLocked(null, window, false); in startMovingTask() 118 win, false /*resize*/, false /*preserveOrientation*/, startX, startY)) { in startMovingTask() 123 mActivityManager.setFocusedTask(win.getTask().mTaskId); in startMovingTask() 146 private boolean startPositioningLocked(WindowState win, boolean resize, in startPositioningLocked() argument 150 + "win=" + win + ", resize=" + resize + ", preserveOrientation=" in startPositioningLocked() 153 if (win == null || win.getAppToken() == null) { in startPositioningLocked() 154 Slog.w(TAG_WM, "startPositioningLocked: Bad window " + win); in startPositioningLocked() 157 if (win.mInputChannel == null) { in startPositioningLocked() 158 Slog.wtf(TAG_WM, "startPositioningLocked: " + win + " has no input channel, " in startPositioningLocked() [all …]
|
D | InsetsStateController.java | 166 private void onControlChanged(int type, @Nullable WindowState win) { in onControlChanged() argument 168 if (win == previous) { in onControlChanged() 178 controller.updateControlForTarget(win, false /* force */); in onControlChanged() 183 if (win != null) { in onControlChanged() 184 addToControlMaps(win, type); in onControlChanged() 185 mPendingControlChanged.add(win); in onControlChanged() 189 private void removeFromControlMaps(@NonNull WindowState win, int type) { in removeFromControlMaps() argument 190 final ArrayList<Integer> array = mWinControlTypeMap.get(win); in removeFromControlMaps() 196 mWinControlTypeMap.remove(win); in removeFromControlMaps() 201 private void addToControlMaps(@NonNull WindowState win, int type) { in addToControlMaps() argument [all …]
|
D | WindowToken.java | 137 final WindowState win = mChildren.get(i); in removeAllWindowsIfPossible() local 139 "removeAllWindowsIfPossible: removing win=" + win); in removeAllWindowsIfPossible() 140 win.removeIfPossible(); in removeAllWindowsIfPossible() 162 final WindowState win = mChildren.get(i); in setExiting() local 163 if (win.isAnimating()) { in setExiting() 166 changed |= win.onSetAppExiting(); in setExiting() 199 void addWindow(final WindowState win) { in addWindow() argument 201 "addWindow: win=" + win + " Callers=" + Debug.getCallers(5)); in addWindow() 203 if (win.isChildWindow()) { in addWindow() 207 if (!mChildren.contains(win)) { in addWindow() [all …]
|
D | DisplayPolicy.java | 797 public void adjustWindowParamsLw(WindowState win, WindowManager.LayoutParams attrs, in adjustWindowParamsLw() argument 801 if (mScreenDecorWindows.contains(win)) { in adjustWindowParamsLw() 804 mScreenDecorWindows.remove(win); in adjustWindowParamsLw() 807 mScreenDecorWindows.add(win); in adjustWindowParamsLw() 894 public int prepareAddWindowLw(WindowState win, WindowManager.LayoutParams attrs) { in prepareAddWindowLw() argument 900 mScreenDecorWindows.add(win); in prepareAddWindowLw() 913 mStatusBar = win; in prepareAddWindowLw() 914 mStatusBarController.setWindow(win); in prepareAddWindowLw() 916 mService.mPolicy.setKeyguardCandidateLw(win); in prepareAddWindowLw() 923 mDisplayContent.setInsetProvider(TYPE_TOP_BAR, win, frameProvider); in prepareAddWindowLw() [all …]
|
D | WindowManagerService.java | 1410 final WindowState win = new WindowState(this, session, client, token, parentWindow, in addWindow() local 1413 if (win.mDeathRecipient == null) { in addWindow() 1421 if (win.getDisplayContent() == null) { in addWindow() 1427 displayPolicy.adjustWindowParamsLw(win, win.mAttrs, Binder.getCallingPid(), in addWindow() 1429 win.setShowToOwnerOnlyLocked(mPolicy.checkShowToOwnerOnly(attrs)); in addWindow() 1431 res = displayPolicy.prepareAddWindowLw(win, attrs); in addWindow() 1439 win.openInputChannel(outInputChannel); in addWindow() 1467 mH.obtainMessage(H.WINDOW_HIDE_TIMEOUT, win), in addWindow() 1468 win.mAttrs.hideTimeoutMilliseconds); in addWindow() 1476 displayContent.mWinAddedSinceNullFocus.add(win); in addWindow() [all …]
|
D | BarController.java | 91 void setWindow(WindowState win) { in setWindow() argument 92 mWin = win; in setWindow() 142 int applyTranslucentFlagLw(WindowState win, int vis, int oldVis) { in applyTranslucentFlagLw() argument 144 if (win != null && (win.getAttrs().privateFlags in applyTranslucentFlagLw() 146 int fl = PolicyControl.getWindowFlags(win, null); in applyTranslucentFlagLw() 153 && isTransparentAllowed(win)) { in applyTranslucentFlagLw() 166 boolean isTransparentAllowed(WindowState win) { in isTransparentAllowed() argument 167 return win == null || !win.isLetterboxedOverlappingWith(mContentFrame); in isTransparentAllowed() 207 boolean wasVis, boolean wasAnim, WindowState win, boolean change) { in computeStateLw() argument 208 if (win.isDrawnLw()) { in computeStateLw() [all …]
|
D | Letterbox.java | 150 void attachInput(WindowState win) { in attachInput() argument 152 surface.attachInput(win); in attachInput() 172 InputInterceptor(String namePrefix, WindowState win) { in InputInterceptor() argument 173 mWmService = win.mWmService; in InputInterceptor() 174 final String name = namePrefix + (win.mAppToken != null ? win.mAppToken : win); in InputInterceptor() 183 null /* clientWindow */, win.getDisplayId()); in InputInterceptor() 255 void attachInput(WindowState win) { in attachInput() argument 259 mInputInterceptor = new InputInterceptor("Letterbox_" + mType + "_", win); in attachInput()
|
D | PolicyControl.java | 64 static int getSystemUiVisibility(WindowState win, LayoutParams attrs) { in getSystemUiVisibility() argument 65 attrs = attrs != null ? attrs : win.getAttrs(); in getSystemUiVisibility() 66 int vis = win != null ? win.getSystemUiVisibility() in getSystemUiVisibility() 85 static int getWindowFlags(WindowState win, LayoutParams attrs) { in getWindowFlags() argument 86 attrs = attrs != null ? attrs : win.getAttrs(); in getWindowFlags() 99 static int adjustClearableFlags(WindowState win, int clearableFlags) { in adjustClearableFlags() argument 100 final LayoutParams attrs = win != null ? win.getAttrs() : null; in adjustClearableFlags()
|
D | AppWindowToken.java | 378 void onFirstWindowDrawn(WindowState win, WindowStateAnimator winAnimator) { in onFirstWindowDrawn() argument 386 + win.mToken + ": first real window is shown, no animation"); in onFirstWindowDrawn() 390 win.cancelAnimation(); in onFirstWindowDrawn() 407 final WindowState win = mChildren.get(i); in updateReportedVisibilityLocked() local 408 win.updateReportedVisibility(mReportedVisibilityResults); in updateReportedVisibilityLocked() 587 final WindowState win = getDisplayContent().findFocusedWindow(); in setVisibility() local 588 if (win != null) { in setVisibility() 589 final AppWindowToken focusedToken = win.mAppToken; in setVisibility() 650 final WindowState win = mChildren.get(i); in commitVisibility() local 651 changed |= win.onAppVisibilityChanged(visible, runningAppAnimation); in commitVisibility() [all …]
|
/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/tests/wmtests/src/com/android/server/wm/ |
D | DisplayPolicyTests.java | 65 final WindowState win = createWindow(null, TYPE_BASE_APPLICATION, "opaqueFullscreen"); in createOpaqueFullscreen() local 66 final WindowManager.LayoutParams attrs = win.mAttrs; in createOpaqueFullscreen() 72 attrs.systemUiVisibility = attrs.subtreeSystemUiVisibility = win.mSystemUiVisibility = in createOpaqueFullscreen() 74 return win; in createOpaqueFullscreen() 78 final WindowState win = spy(createWindow(null, TYPE_APPLICATION, "dimmingDialog")); in createDimmingDialogWindow() local 79 final WindowManager.LayoutParams attrs = win.mAttrs; in createDimmingDialogWindow() 84 when(win.isDimming()).thenReturn(true); in createDimmingDialogWindow() 85 return win; in createDimmingDialogWindow() 90 final WindowState win = createWindow(null, TYPE_INPUT_METHOD, "inputMethod"); in createInputMethodWindow() local 91 final WindowManager.LayoutParams attrs = win.mAttrs; in createInputMethodWindow() [all …]
|
D | RemoteAnimationControllerTest.java | 89 final WindowState win = createWindow(null /* parent */, TYPE_BASE_APPLICATION, "testWin"); in testRun() local 90 mDisplayContent.mOpeningApps.add(win.mAppToken); in testRun() 92 final AnimationAdapter adapter = mController.createRemoteAnimationRecord(win.mAppToken, in testRun() 106 assertEquals(win.mAppToken.getPrefixOrderIndex(), app.prefixOrderIndex); in testRun() 107 assertEquals(win.mAppToken.getTask().mTaskId, app.taskId); in testRun() 109 assertEquals(win.mWinAnimator.mLastClipRect, app.clipRect); in testRun() 124 final WindowState win = createWindow(null /* parent */, TYPE_BASE_APPLICATION, "testWin"); in testCancel() local 125 final AnimationAdapter adapter = mController.createRemoteAnimationRecord(win.mAppToken, in testCancel() 137 final WindowState win = createWindow(null /* parent */, TYPE_BASE_APPLICATION, "testWin"); in testTimeout() local 138 final AnimationAdapter adapter = mController.createRemoteAnimationRecord(win.mAppToken, in testTimeout() [all …]
|
D | DisplayPolicyTestsBase.java | 101 void addWindow(WindowState win) { in addWindow() argument 102 mDisplayPolicy.adjustWindowParamsLw(win, win.mAttrs, Binder.getCallingPid(), in addWindow() 105 mDisplayPolicy.prepareAddWindowLw(win, win.mAttrs)); in addWindow() 106 win.mHasSurface = true; in addWindow()
|
D | DisplayContentTests.java | 504 final WindowState win = createWindow(null /* parent */, TYPE_BASE_APPLICATION, dc, "w"); in testLayoutSeq_assignedDuringLayout() local 509 assertThat(win.mLayoutSeq, is(dc.mLayoutSeq)); in testLayoutSeq_assignedDuringLayout() 745 final WindowState win = createWindow(null, TYPE_BASE_APPLICATION, dc, "win"); in testUpdateSystemGestureExclusion() local 746 win.getAttrs().flags |= FLAG_LAYOUT_IN_SCREEN | FLAG_LAYOUT_INSET_DECOR; in testUpdateSystemGestureExclusion() 747 win.setSystemGestureExclusion(Collections.singletonList(new Rect(10, 20, 30, 40))); in testUpdateSystemGestureExclusion() 752 win.setHasSurface(true); in testUpdateSystemGestureExclusion() 777 final WindowState win = createWindow(null, TYPE_BASE_APPLICATION, dc, "win"); in testCalculateSystemGestureExclusion() local 778 win.getAttrs().flags |= FLAG_LAYOUT_IN_SCREEN | FLAG_LAYOUT_INSET_DECOR; in testCalculateSystemGestureExclusion() 779 win.setSystemGestureExclusion(Collections.singletonList(new Rect(10, 20, 30, 40))); in testCalculateSystemGestureExclusion() 788 win.setHasSurface(true); in testCalculateSystemGestureExclusion() [all …]
|
D | TestWindowManagerPolicy.java | 99 public boolean canBeHiddenByKeyguardLw(WindowState win) { in canBeHiddenByKeyguardLw() argument 140 public void setKeyguardCandidateLw(WindowState win) { 166 public long interceptKeyBeforeDispatching(WindowState win, KeyEvent event, int policyFlags) { 171 public KeyEvent dispatchUnhandledKey(WindowState win, KeyEvent event, int policyFlags) { 180 public void applyKeyguardPolicyLw(WindowState win, WindowState imeTarget) {
|
/frameworks/base/opengl/java/android/opengl/ |
D | EGL14.java | 233 Object win, in _eglCreateWindowSurface() argument 241 Object win, in _eglCreateWindowSurfaceTexture() argument 248 Object win, in eglCreateWindowSurface() argument 253 if (win instanceof SurfaceView) { in eglCreateWindowSurface() 254 SurfaceView surfaceView = (SurfaceView)win; in eglCreateWindowSurface() 256 } else if (win instanceof SurfaceHolder) { in eglCreateWindowSurface() 257 SurfaceHolder holder = (SurfaceHolder)win; in eglCreateWindowSurface() 259 } else if (win instanceof Surface) { in eglCreateWindowSurface() 260 sur = (Surface) win; in eglCreateWindowSurface() 266 } 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 win->incStrong((void*)ANativeWindow_fromSurface); in ANativeWindow_fromSurface() 35 return win.get(); in ANativeWindow_fromSurface()
|
D | surface_texture.cpp | 49 ANativeWindow* win(surface.get()); in ASurfaceTexture_acquireANativeWindow() local 50 ANativeWindow_acquire(win); in ASurfaceTexture_acquireANativeWindow() 51 return win; in ASurfaceTexture_acquireANativeWindow()
|
/frameworks/native/opengl/libs/EGL/ |
D | egl_object.cpp | 58 egl_surface_t::egl_surface_t(egl_display_t* dpy, EGLConfig config, EGLNativeWindowType win, in egl_surface_t() argument 63 win(win), in egl_surface_t() 78 if (win) { in egl_surface_t() 79 win->incStrong(this); in egl_surface_t() 84 if (win != nullptr) { in ~egl_surface_t() 86 win->decStrong(this); in ~egl_surface_t() 91 if (win != nullptr && connected) { in disconnect() 92 native_window_set_buffers_format(win, 0); in disconnect() 93 if (native_window_api_disconnect(win, NATIVE_WINDOW_API_EGL)) { in disconnect() 94 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));
|
/frameworks/native/services/surfaceflinger/ |
D | BufferLayer.cpp | 214 const Rect win{getBounds()}; in prepareClientLayer() local 222 bufferWidth = float(win.right) - float(win.left); in prepareClientLayer() 223 bufferHeight = float(win.bottom) - float(win.top); in prepareClientLayer() 226 const float scaleHeight = (float(win.bottom) - float(win.top)) / bufferHeight; in prepareClientLayer() 227 const float scaleWidth = (float(win.right) - float(win.left)) / bufferWidth; in prepareClientLayer() 228 const float translateY = float(win.top) / bufferHeight; in prepareClientLayer() 229 const float translateX = float(win.left) / bufferWidth; in prepareClientLayer()
|