Home
last modified time | relevance | path

Searched refs:win (Results 1 – 25 of 45) sorted by relevance

12

/frameworks/native/opengl/tools/glgen/stubs/egl/
DeglCreateWindowSurface.java6 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 …]
DeglCreateWindowSurface.cpp4 …(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()
77 …(JNIEnv *_env, jobject _this, jobject dpy, jobject config, jobject win, jintArray attrib_list_ref,… in android_eglCreateWindowSurfaceTexture() argument
103 if (win == NULL) { in android_eglCreateWindowSurfaceTexture()
110 producer = android::SurfaceTexture_getProducer(_env, win); in android_eglCreateWindowSurfaceTexture()
/frameworks/native/opengl/libs/EGL/
Degl_object.cpp59 EGLNativeWindowType win, EGLSurface surface, in egl_surface_t() argument
61 egl_object_t(dpy), surface(surface), config(config), win(win), cnx(cnx), in egl_surface_t()
64 if (win) { in egl_surface_t()
65 win->incStrong(this); in egl_surface_t()
70 if (win != NULL) { in ~egl_surface_t()
72 win->decStrong(this); in ~egl_surface_t()
77 if (win != NULL && connected) { in disconnect()
78 native_window_set_buffers_format(win, 0); in disconnect()
79 if (native_window_api_disconnect(win, NATIVE_WINDOW_API_EGL)) { in disconnect()
80 ALOGW("EGLNativeWindowType %p disconnect failed", win); in disconnect()
Degl_object.h135 EGLNativeWindowType win, EGLSurface surface,
138 ANativeWindow* getNativeWindow() { return win; } in getNativeWindow()
139 ANativeWindow* getNativeWindow() const { return win; } in getNativeWindow()
146 ANativeWindow* win;
/frameworks/base/services/core/java/com/android/server/wm/
DWindowToken.java116 final WindowState win = mChildren.get(i); in removeAllWindowsIfPossible() local
118 "removeAllWindowsIfPossible: removing win=" + win); in removeAllWindowsIfPossible()
119 win.removeIfPossible(); in removeAllWindowsIfPossible()
136 final WindowState win = mChildren.get(i); in setExiting() local
137 if (win.mWinAnimator.isAnimationSet()) { in setExiting()
140 changed |= win.onSetAppExiting(); in setExiting()
165 void addWindow(final WindowState win) { in addWindow() argument
167 "addWindow: win=" + win + " Callers=" + Debug.getCallers(5)); in addWindow()
169 if (win.isChildWindow()) { in addWindow()
173 if (!mChildren.contains(win)) { in addWindow()
[all …]
DWindowManagerService.java1354 final WindowState win = new WindowState(this, session, client, token, parentWindow, in addWindow() local
1357 if (win.mDeathRecipient == null) { in addWindow()
1365 if (win.getDisplayContent() == null) { in addWindow()
1370 mPolicy.adjustWindowParamsLw(win.mAttrs); in addWindow()
1371 win.setShowToOwnerOnlyLocked(mPolicy.checkShowToOwnerOnly(attrs)); in addWindow()
1373 res = mPolicy.prepareAddWindowLw(win, attrs); in addWindow()
1381 win.openInputChannel(outInputChannel); in addWindow()
1409 mH.obtainMessage(H.WINDOW_HIDE_TIMEOUT, win), in addWindow()
1410 win.mAttrs.hideTimeoutMilliseconds); in addWindow()
1418 mWinAddedSinceNullFocus.add(win); in addWindow()
[all …]
DAppWindowToken.java252 void onFirstWindowDrawn(WindowState win, WindowStateAnimator winAnimator) { in onFirstWindowDrawn() argument
260 + win.mToken + ": first real window is shown, no animation"); in onFirstWindowDrawn()
283 final WindowState win = mChildren.get(i); in updateReportedVisibilityLocked() local
284 win.updateReportedVisibility(mReportedVisibilityResults); in updateReportedVisibilityLocked()
382 final WindowState win = mChildren.get(i); in setVisibility() local
383 changed |= win.onAppVisibilityChanged(visible, runningAppAnimation); in setVisibility()
466 final WindowState win = mChildren.get(j); in findMainWindow() local
467 final int type = win.mAttrs.type; in findMainWindow()
474 if (win.mAnimatingExit) { in findMainWindow()
475 candidate = win; in findMainWindow()
[all …]
DTask.java462 final WindowState win = token.findMainWindow(); in getMaxVisibleBounds() local
463 if (win == null) { in getMaxVisibleBounds()
467 out.set(win.mVisibleFrame); in getMaxVisibleBounds()
471 if (win.mVisibleFrame.left < out.left) { in getMaxVisibleBounds()
472 out.left = win.mVisibleFrame.left; in getMaxVisibleBounds()
474 if (win.mVisibleFrame.top < out.top) { in getMaxVisibleBounds()
475 out.top = win.mVisibleFrame.top; in getMaxVisibleBounds()
477 if (win.mVisibleFrame.right > out.right) { in getMaxVisibleBounds()
478 out.right = win.mVisibleFrame.right; in getMaxVisibleBounds()
480 if (win.mVisibleFrame.bottom > out.bottom) { in getMaxVisibleBounds()
[all …]
DRootWindowContainer.java167 final WindowState win = dc.findFocusedWindow(); in computeFocusedWindow() local
168 if (win != null) { in computeFocusedWindow()
169 return win; in computeFocusedWindow()
432 final WindowState win = getWindow((w) -> w.mSession.mPid == pid && w.isVisibleLw()); in canShowStrictModeViolation() local
433 return win != null; in canShowStrictModeViolation()
653 WindowState win = mService.mResizingWindows.get(i); in performSurfacePlacement() local
654 if (win.mAppFreezing) { in performSurfacePlacement()
659 if (win.mAppToken != null) { in performSurfacePlacement()
660 win.mAppToken.destroySavedSurfaces(); in performSurfacePlacement()
662 win.reportResized(); in performSurfacePlacement()
[all …]
DWallpaperController.java182 boolean isWallpaperTarget(WindowState win) { in isWallpaperTarget() argument
183 return win == mWallpaperTarget; in isWallpaperTarget()
186 boolean isBelowWallpaperTarget(WindowState win) { in isBelowWallpaperTarget() argument
187 return mWallpaperTarget != null && mWallpaperTarget.mLayer >= win.mBaseLayer; in isBelowWallpaperTarget()
697 void setTopWallpaper(WindowState win) { in setTopWallpaper() argument
698 topWallpaper = win; in setTopWallpaper()
701 void setWallpaperTarget(WindowState win) { in setWallpaperTarget() argument
702 wallpaperTarget = win; in setWallpaperTarget()
DWindowSurfacePlacer.java659 final WindowState win = mService.getDefaultDisplayContentLocked().findFocusedWindow(); in processApplicationsAnimatingInPlace() local
660 if (win != null) { in processApplicationsAnimatingInPlace()
661 final AppWindowToken wtoken = win.mAppToken; in processApplicationsAnimatingInPlace()
722 WindowState win = appToken.findMainWindow(); in createThumbnailAppAnimator() local
723 Rect appRect = win != null ? win.getContentFrameLw() : in createThumbnailAppAnimator()
725 Rect insets = win != null ? win.mContentInsets : null; in createThumbnailAppAnimator()
/frameworks/base/opengl/java/android/opengl/
DEGL14.java231 Object win, in _eglCreateWindowSurface() argument
239 Object win, in _eglCreateWindowSurfaceTexture() argument
246 Object win, in eglCreateWindowSurface() argument
251 if (win instanceof SurfaceView) { in eglCreateWindowSurface()
252 SurfaceView surfaceView = (SurfaceView)win; in eglCreateWindowSurface()
254 } else if (win instanceof SurfaceHolder) { in eglCreateWindowSurface()
255 SurfaceHolder holder = (SurfaceHolder)win; in eglCreateWindowSurface()
257 } else if (win instanceof Surface) { in eglCreateWindowSurface()
258 sur = (Surface) win; in eglCreateWindowSurface()
264 } else if (win instanceof SurfaceTexture) { in eglCreateWindowSurface()
[all …]
DGLU.java149 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/
Dnative_window_jni.cpp31 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()
/frameworks/base/services/core/java/com/android/server/policy/
DBarController.java83 public void setWindow(WindowState win) { in setWindow() argument
84 mWin = win; in setWindow()
125 public int applyTranslucentFlagLw(WindowState win, int vis, int oldVis) { in applyTranslucentFlagLw() argument
127 if (win != null && (win.getAttrs().privateFlags in applyTranslucentFlagLw()
129 int fl = PolicyControl.getWindowFlags(win, null); in applyTranslucentFlagLw()
183 private int computeStateLw(boolean wasVis, boolean wasAnim, WindowState win, boolean change) { in computeStateLw() argument
184 if (win.isDrawnLw()) { in computeStateLw()
185 final boolean vis = win.isVisibleLw(); in computeStateLw()
186 final boolean anim = win.isAnimatingLw(); in computeStateLw()
DPolicyControl.java65 public static int getSystemUiVisibility(WindowState win, LayoutParams attrs) { in getSystemUiVisibility() argument
66 attrs = attrs != null ? attrs : win.getAttrs(); in getSystemUiVisibility()
67 int vis = win != null ? win.getSystemUiVisibility() : attrs.systemUiVisibility; in getSystemUiVisibility()
85 public static int getWindowFlags(WindowState win, LayoutParams attrs) { in getWindowFlags() argument
86 attrs = attrs != null ? attrs : win.getAttrs(); in getWindowFlags()
99 public static int adjustClearableFlags(WindowState win, int clearableFlags) { in adjustClearableFlags() argument
100 final LayoutParams attrs = win != null ? win.getAttrs() : null; in adjustClearableFlags()
DPhoneWindowManager.java2782 public boolean canBeHiddenByKeyguardLw(WindowState win) { in canBeHiddenByKeyguardLw() argument
2783 switch (win.getAttrs().type) { in canBeHiddenByKeyguardLw()
2791 return getWindowLayerLw(win) < getWindowLayerFromTypeLw(TYPE_STATUS_BAR); in canBeHiddenByKeyguardLw()
2795 private boolean shouldBeHiddenByKeyguard(WindowState win, WindowState imeTarget) { in shouldBeHiddenByKeyguard() argument
2798 if (win.getAppToken() != null) { in shouldBeHiddenByKeyguard()
2802 final LayoutParams attrs = win.getAttrs(); in shouldBeHiddenByKeyguard()
2808 boolean allowWhenLocked = (win.isInputMethodWindow() || imeTarget == this) in shouldBeHiddenByKeyguard()
2821 return (keyguardLocked && !allowWhenLocked && win.getDisplayId() == Display.DEFAULT_DISPLAY) in shouldBeHiddenByKeyguard()
2882 final PhoneWindow win = new PhoneWindow(context); in addSplashScreen() local
2883 win.setIsStartingWindow(true); in addSplashScreen()
[all …]
/frameworks/base/core/java/com/android/internal/view/menu/
DMenuDialogHelper.java93 Window win = mDialog.getWindow(); in onKey() local
94 if (win != null) { in onKey()
95 View decor = win.getDecorView(); in onKey()
105 Window win = mDialog.getWindow(); in onKey() local
106 if (win != null) { in onKey()
107 View decor = win.getDecorView(); in onKey()
/frameworks/native/services/surfaceflinger/
DLayer.cpp381 static Rect reduce(const Rect& win, const Region& exclude) { in reduce() argument
383 return win; in reduce()
386 return win.reduce(exclude.getBounds()); in reduce()
388 return Region(win).subtract(exclude).getBounds(); in reduce()
393 Rect win(s.active.w, s.active.h); in computeScreenBounds() local
396 win.intersect(s.crop, &win); in computeScreenBounds()
400 win = t.transform(win); in computeScreenBounds()
403 win.intersect(s.finalCrop, &win); in computeScreenBounds()
418 bounds.intersect(win, &win); in computeScreenBounds()
423 win = reduce(win, screenTransparentRegion); in computeScreenBounds()
[all …]
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/
DMenuDialogHelper.java96 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/core/java/android/view/
DWindowManagerPolicy.java736 default int getWindowLayerLw(WindowState win) { in getWindowLayerLw() argument
737 return getWindowLayerFromTypeLw(win.getBaseType(), win.canAddInternalSystemWindow()); in getWindowLayerLw()
955 public boolean canBeHiddenByKeyguardLw(WindowState win); in canBeHiddenByKeyguardLw() argument
995 public int prepareAddWindowLw(WindowState win, in prepareAddWindowLw() argument
1004 public void removeWindowLw(WindowState win); in removeWindowLw() argument
1018 public int selectAnimationLw(WindowState win, int transit); in selectAnimationLw() argument
1101 public long interceptKeyBeforeDispatching(WindowState win, KeyEvent event, int policyFlags); in interceptKeyBeforeDispatching() argument
1117 public KeyEvent dispatchUnhandledKey(WindowState win, KeyEvent event, int policyFlags); in dispatchUnhandledKey() argument
1155 public void layoutWindowLw(WindowState win, WindowState attached); in layoutWindowLw() argument
1211 public void applyPostLayoutPolicyLw(WindowState win, in applyPostLayoutPolicyLw() argument
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/
DTestWindowManagerPolicy.java182 public boolean canBeHiddenByKeyguardLw(WindowState win) { in canBeHiddenByKeyguardLw() argument
219 public int prepareAddWindowLw(WindowState win,
225 public void removeWindowLw(WindowState win) {
230 public int selectAnimationLw(WindowState win, int transit) {
267 public long interceptKeyBeforeDispatching(WindowState win, KeyEvent event,
273 public KeyEvent dispatchUnhandledKey(WindowState win, KeyEvent event,
295 public void layoutWindowLw(WindowState win,
318 public void applyPostLayoutPolicyLw(WindowState win,
508 public boolean performHapticFeedbackLw(WindowState win, int effectId,
607 public boolean isNavBarForcedShownLw(WindowState win) {
DWindowTestsBase.java148 final WindowState win = createWindow(parent, type, name); in createCommonWindow() local
149 mCommonWindows.add(win); in createCommonWindow()
151 win.mAttrs.flags |= FLAG_NOT_FOCUSABLE; in createCommonWindow()
152 return win; in createCommonWindow()
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/
DStatusBarTest.java131 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/base/core/java/android/app/
DLocalActivityManager.java358 Window win; in performDestroy() local
359 win = r.window; in performDestroy()
371 return win; in performDestroy()
388 Window win = null; in destroyActivity() local
390 win = performDestroy(r, finish); in destroyActivity()
396 return win; in destroyActivity()

12