Home
last modified time | relevance | path

Searched refs:window (Results 1 – 25 of 211) sorted by relevance

123456789

/frameworks/native/libs/nativewindow/
DANativeWindow.cpp32 static int32_t query(ANativeWindow* window, int what) { in query() argument
34 int res = window->query(window, what, &value); in query()
42 void ANativeWindow_acquire(ANativeWindow* window) { in ANativeWindow_acquire() argument
44 window->incStrong((void*)ANativeWindow_acquire); in ANativeWindow_acquire()
47 void ANativeWindow_release(ANativeWindow* window) { in ANativeWindow_release() argument
49 window->decStrong((void*)ANativeWindow_acquire); in ANativeWindow_release()
52 int32_t ANativeWindow_getWidth(ANativeWindow* window) { in ANativeWindow_getWidth() argument
53 return query(window, NATIVE_WINDOW_WIDTH); in ANativeWindow_getWidth()
56 int32_t ANativeWindow_getHeight(ANativeWindow* window) { in ANativeWindow_getHeight() argument
57 return query(window, NATIVE_WINDOW_HEIGHT); in ANativeWindow_getHeight()
[all …]
/frameworks/native/libs/nativewindow/include/system/
Dwindow.h372 int (*setSwapInterval)(struct ANativeWindow* window,
392 int (*dequeueBuffer_DEPRECATED)(struct ANativeWindow* window,
406 int (*lockBuffer_DEPRECATED)(struct ANativeWindow* window,
428 int (*queueBuffer_DEPRECATED)(struct ANativeWindow* window,
436 int (*query)(const struct ANativeWindow* window,
453 int (*perform)(struct ANativeWindow* window,
473 int (*cancelBuffer_DEPRECATED)(struct ANativeWindow* window,
495 int (*dequeueBuffer)(struct ANativeWindow* window,
517 int (*queueBuffer)(struct ANativeWindow* window,
545 int (*cancelBuffer)(struct ANativeWindow* window,
[all …]
/frameworks/base/core/tests/coretests/src/android/database/
DCursorWindowTest.java39 CursorWindow window = new CursorWindow("MyWindow"); in testConstructor_WithName() local
40 assertEquals("MyWindow", window.getName()); in testConstructor_WithName()
41 assertEquals(0, window.getStartPosition()); in testConstructor_WithName()
42 window.close(); in testConstructor_WithName()
47 CursorWindow window = new CursorWindow(""); in testConstructorWithEmptyName() local
48 assertEquals("<unnamed>", window.getName()); in testConstructorWithEmptyName()
49 assertEquals(0, window.getStartPosition()); in testConstructorWithEmptyName()
50 window.close(); in testConstructorWithEmptyName()
55 CursorWindow window = new CursorWindow(null); in testConstructorWithNullName() local
56 assertEquals("<unnamed>", window.getName()); in testConstructorWithNullName()
[all …]
/frameworks/base/core/jni/
Dandroid_database_CursorWindow.cpp92 CursorWindow* window; in nativeCreate() local
93 status_t status = CursorWindow::create(name, cursorWindowSize, &window); in nativeCreate()
94 if (status || !window) { in nativeCreate()
100 LOG_WINDOW("nativeInitializeEmpty: window = %p", window); in nativeCreate()
101 return reinterpret_cast<jlong>(window); in nativeCreate()
107 CursorWindow* window; in nativeCreateFromParcel() local
108 status_t status = CursorWindow::createFromParcel(parcel, &window); in nativeCreateFromParcel()
109 if (status || !window) { in nativeCreateFromParcel()
116 window->getNumRows(), window->getNumColumns(), window); in nativeCreateFromParcel()
117 return reinterpret_cast<jlong>(window); in nativeCreateFromParcel()
[all …]
Dandroid_view_TextureView.cpp106 static int32_t native_window_lock(ANativeWindow* window, ANativeWindow_Buffer* outBuffer, in native_window_lock() argument
108 return window->perform(window, NATIVE_WINDOW_LOCK, outBuffer, inOutDirtyBounds); in native_window_lock()
111 static int32_t native_window_unlockAndPost(ANativeWindow* window) { in native_window_unlockAndPost() argument
112 return window->perform(window, NATIVE_WINDOW_UNLOCK_AND_POST); in native_window_unlockAndPost()
119 sp<ANativeWindow> window = new Surface(producer, true); in android_view_TextureView_createNativeWindow() local
121 window->incStrong((void*)android_view_TextureView_createNativeWindow); in android_view_TextureView_createNativeWindow()
122 SET_LONG(textureView, gTextureViewClassInfo.nativeWindow, jlong(window.get())); in android_view_TextureView_createNativeWindow()
131 sp<ANativeWindow> window(nativeWindow); in android_view_TextureView_destroyNativeWindow() local
132 window->decStrong((void*)android_view_TextureView_createNativeWindow); in android_view_TextureView_destroyNativeWindow()
156 sp<ANativeWindow> window((ANativeWindow*) nativeWindow); in android_view_TextureView_lockCanvas() local
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/
DTaskSnapshotCacheTest.java51 final WindowState window = createWindow(null, FIRST_APPLICATION_WINDOW, "window"); in testAppRemoved() local
52 mCache.putSnapshot(window.getTask(), createSnapshot()); in testAppRemoved()
53 assertNotNull(mCache.getSnapshot(window.getTask().mTaskId, 0 /* userId */, in testAppRemoved()
55 mCache.onAppRemoved(window.mAppToken); in testAppRemoved()
56 assertNull(mCache.getSnapshot(window.getTask().mTaskId, 0 /* userId */, in testAppRemoved()
62 final WindowState window = createWindow(null, FIRST_APPLICATION_WINDOW, "window"); in testAppDied() local
63 mCache.putSnapshot(window.getTask(), createSnapshot()); in testAppDied()
64 assertNotNull(mCache.getSnapshot(window.getTask().mTaskId, 0 /* userId */, in testAppDied()
66 mCache.onAppDied(window.mAppToken); in testAppDied()
67 assertNull(mCache.getSnapshot(window.getTask().mTaskId, 0 /* userId */, in testAppDied()
[all …]
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/
DSystemBarHelper.java77 final Window window = dialog.getWindow(); in hideSystemBars() local
78 temporarilyDisableDialogFocus(window); in hideSystemBars()
79 addVisibilityFlag(window, DIALOG_IMMERSIVE_FLAGS); in hideSystemBars()
80 addImmersiveFlagsToDecorView(window, DIALOG_IMMERSIVE_FLAGS); in hideSystemBars()
84 window.setNavigationBarColor(0); in hideSystemBars()
85 window.setStatusBarColor(0); in hideSystemBars()
98 public static void hideSystemBars(final Window window) { in hideSystemBars() argument
100 addVisibilityFlag(window, DEFAULT_IMMERSIVE_FLAGS); in hideSystemBars()
101 addImmersiveFlagsToDecorView(window, DEFAULT_IMMERSIVE_FLAGS); in hideSystemBars()
105 window.setNavigationBarColor(0); in hideSystemBars()
[all …]
/frameworks/av/media/libstagefright/codecs/mp3dec/src/
Dpvmp3_mdct_18.cpp133 void pvmp3_mdct_18(int32 vec[], int32 *history, const int32 *window) in pvmp3_mdct_18() argument
199 vec[ i] = fxp_mac32_Q32(tmp, (vec[i+10]), window[ i]); in pvmp3_mdct_18()
209 vec[ 6] = fxp_mac32_Q32(tmp, vec[16] << 1, window[ i]); in pvmp3_mdct_18()
216 vec[ 7] = fxp_mac32_Q32(tmp, tmp4 << 1, window[ 7]); in pvmp3_mdct_18()
218 vec[ 8] = fxp_mac32_Q32(tmp1, vec[17] << 1, window[ 8]); in pvmp3_mdct_18()
223 vec[ 9] = fxp_mac32_Q32(tmp, vec[17] << 1, window[ 9]); in pvmp3_mdct_18()
225 vec[17] = fxp_mac32_Q32(tmp1, vec[10] << 1, window[17]); in pvmp3_mdct_18()
227 vec[16] = fxp_mac32_Q32(tmp2, vec[11] << 1, window[16]); in pvmp3_mdct_18()
231 vec[15] = fxp_mac32_Q32(tmp1, vec[12] << 1, window[15]); in pvmp3_mdct_18()
233 vec[14] = fxp_mac32_Q32(tmp2, vec[13] << 1, window[14]); in pvmp3_mdct_18()
[all …]
Dpvmp3_get_scale_factors.cpp140 int32 window; in pvmp3_get_scale_factors() local
154 for (window = 0; window < 3; window++) in pvmp3_get_scale_factors()
156 … scalefac->s[window][sfb] = getNbits(pMainData, slen[0][gr_info->scalefac_compress]); in pvmp3_get_scale_factors()
161 for (window = 0; window < 3; window++) in pvmp3_get_scale_factors()
163 … scalefac->s[window][sfb] = getNbits(pMainData, slen[1][gr_info->scalefac_compress]); in pvmp3_get_scale_factors()
173 for (window = 0; window < 3; window++) in pvmp3_get_scale_factors()
175 … scalefac->s[window][sfb] = getNbits(pMainData, slen[i][gr_info->scalefac_compress]); in pvmp3_get_scale_factors()
Dpvmp3_mpeg2_get_scale_factors.cpp129 int32 window; in pvmp3_mpeg2_get_scale_factors() local
156 for (window = 0; window < 3; window++) in pvmp3_mpeg2_get_scale_factors()
158 scalefac->s[window][sfb] = scalefac_buffer[k]; in pvmp3_mpeg2_get_scale_factors()
178 for (window = 0; window < 3; window++) in pvmp3_mpeg2_get_scale_factors()
180 scalefac->s[window][sfb] = scalefac_buffer[k]; in pvmp3_mpeg2_get_scale_factors()
/frameworks/support/v17/leanback/api21/android/support/v17/leanback/transition/
DTransitionHelperApi21.java52 public static Object getSharedElementEnterTransition(Window window) { in getSharedElementEnterTransition() argument
53 return window.getSharedElementEnterTransition(); in getSharedElementEnterTransition()
56 public static void setSharedElementEnterTransition(Window window, Object transition) { in setSharedElementEnterTransition() argument
57 window.setSharedElementEnterTransition((Transition) transition); in setSharedElementEnterTransition()
60 public static Object getSharedElementReturnTransition(Window window) { in getSharedElementReturnTransition() argument
61 return window.getSharedElementReturnTransition(); in getSharedElementReturnTransition()
64 public static void setSharedElementReturnTransition(Window window, Object transition) { in setSharedElementReturnTransition() argument
65 window.setSharedElementReturnTransition((Transition) transition); in setSharedElementReturnTransition()
68 public static Object getSharedElementExitTransition(Window window) { in getSharedElementExitTransition() argument
69 return window.getSharedElementExitTransition(); in getSharedElementExitTransition()
[all …]
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/
DSystemBarHelperTest.java91 final Window window = createWindowWithSystemUiVisibility(0x456); in testAddVisibilityFlagWindow() local
92 SystemBarHelper.addVisibilityFlag(window, 0x1400); in testAddVisibilityFlagWindow()
96 window.getAttributes().systemUiVisibility); in testAddVisibilityFlagWindow()
103 final Window window = createWindowWithSystemUiVisibility(0x456); in testRemoveVisibilityFlagWindow() local
104 SystemBarHelper.removeVisibilityFlag(window, 0x1400); in testRemoveVisibilityFlagWindow()
108 window.getAttributes().systemUiVisibility); in testRemoveVisibilityFlagWindow()
115 final Window window = createWindowWithSystemUiVisibility(0x456); in testHideSystemBarsWindow() local
116 SystemBarHelper.hideSystemBars(window); in testHideSystemBarsWindow()
120 window.getAttributes().systemUiVisibility); in testHideSystemBarsWindow()
124 window.getDecorView().getSystemUiVisibility()); in testHideSystemBarsWindow()
[all …]
/frameworks/base/core/java/android/view/
DIWindowSession.aidl38 int add(IWindow window, int seq, in WindowManager.LayoutParams attrs, in add() argument
41 int addToDisplay(IWindow window, int seq, in WindowManager.LayoutParams attrs, in addToDisplay() argument
44 int addWithoutInputChannel(IWindow window, int seq, in WindowManager.LayoutParams attrs, in addWithoutInputChannel() argument
46 … int addToDisplayWithoutInputChannel(IWindow window, int seq, in WindowManager.LayoutParams attrs, in addToDisplayWithoutInputChannel() argument
49 void remove(IWindow window); in remove() argument
94 int relayout(IWindow window, int seq, in WindowManager.LayoutParams attrs, in relayout() argument
114 boolean outOfMemory(IWindow window); in outOfMemory() argument
121 void setTransparentRegion(IWindow window, in Region region); in setTransparentRegion() argument
133 void setInsets(IWindow window, int touchableInsets, in Rect contentInsets, in setInsets() argument
140 void getDisplayFrame(IWindow window, out Rect outDisplayFrame); in getDisplayFrame() argument
[all …]
DWindowInfo.java56 WindowInfo window = sPool.acquire(); in obtain() local
57 if (window == null) { in obtain()
58 window = new WindowInfo(); in obtain()
60 return window; in obtain()
64 WindowInfo window = obtain(); in obtain() local
65 window.type = other.type; in obtain()
66 window.layer = other.layer; in obtain()
67 window.token = other.token; in obtain()
68 window.parentToken = other.parentToken; in obtain()
69 window.focused = other.focused; in obtain()
[all …]
/frameworks/native/libs/nativewindow/include/vndk/
Dwindow.h117 int ANativeWindow_OemStorageSet(ANativeWindow* window, uint32_t slot, intptr_t value);
128 int ANativeWindow_OemStorageGet(ANativeWindow* window, uint32_t slot, intptr_t* value);
136 int ANativeWindow_setSwapInterval(ANativeWindow* window, int interval);
250 int ANativeWindow_query(const ANativeWindow* window, ANativeWindowQuery query, int* value);
251 int ANativeWindow_queryf(const ANativeWindow* window, ANativeWindowQuery query, float* value);
273 int ANativeWindow_dequeueBuffer(ANativeWindow* window, ANativeWindowBuffer** buffer, int* fenceFd);
295 int ANativeWindow_queueBuffer(ANativeWindow* window, ANativeWindowBuffer* buffer, int fenceFd);
323 int ANativeWindow_cancelBuffer(ANativeWindow* window, ANativeWindowBuffer* buffer, int fenceFd);
337 int ANativeWindow_setUsage(ANativeWindow* window, uint64_t usage);
343 int ANativeWindow_setBufferCount(ANativeWindow* window, size_t bufferCount);
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DSession.java182 public int add(IWindow window, int seq, WindowManager.LayoutParams attrs, in add() argument
185 return addToDisplay(window, seq, attrs, viewVisibility, Display.DEFAULT_DISPLAY, in add()
190 public int addToDisplay(IWindow window, int seq, WindowManager.LayoutParams attrs, in addToDisplay() argument
193 return mService.addWindow(this, window, seq, attrs, viewVisibility, displayId, in addToDisplay()
198 public int addWithoutInputChannel(IWindow window, int seq, WindowManager.LayoutParams attrs, in addWithoutInputChannel() argument
200 return addToDisplayWithoutInputChannel(window, seq, attrs, viewVisibility, in addWithoutInputChannel()
205 …public int addToDisplayWithoutInputChannel(IWindow window, int seq, WindowManager.LayoutParams att… in addToDisplayWithoutInputChannel() argument
207 return mService.addWindow(this, window, seq, attrs, viewVisibility, displayId, in addToDisplayWithoutInputChannel()
211 public void remove(IWindow window) { in remove() argument
212 mService.removeWindow(this, window); in remove()
[all …]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/transition/
DTransitionHelper.java77 Object getSharedElementEnterTransition(Window window); in getSharedElementEnterTransition() argument
79 void setSharedElementEnterTransition(Window window, Object transition); in setSharedElementEnterTransition() argument
81 Object getSharedElementReturnTransition(Window window); in getSharedElementReturnTransition() argument
83 void setSharedElementReturnTransition(Window window, Object transition); in setSharedElementReturnTransition() argument
85 Object getSharedElementExitTransition(Window window); in getSharedElementExitTransition() argument
87 Object getSharedElementReenterTransition(Window window); in getSharedElementReenterTransition() argument
89 Object getEnterTransition(Window window); in getEnterTransition() argument
91 void setEnterTransition(Window window, Object transition); in setEnterTransition() argument
93 Object getReturnTransition(Window window); in getReturnTransition() argument
95 void setReturnTransition(Window window, Object transition); in setReturnTransition() argument
[all …]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgeWindowSession.java84 public boolean performHapticFeedback(IWindow window, int effectId, boolean always) { in performHapticFeedback() argument
99 public boolean outOfMemory(IWindow window) throws RemoteException { in outOfMemory() argument
104 public void getDisplayFrame(IWindow window, Rect outDisplayFrame) { in getDisplayFrame() argument
124 public void setInsets(IWindow window, int touchable, Rect contentInsets, in setInsets() argument
130 public IBinder prepareDrag(IWindow window, int flags, in prepareDrag() argument
138 public boolean performDrag(IWindow window, IBinder dragToken, in performDrag() argument
147 public boolean startMovingTask(IWindow window, float startX, float startY) in startMovingTask() argument
154 public void reportDropResult(IWindow window, boolean consumed) throws RemoteException { in reportDropResult() argument
164 public void dragRecipientEntered(IWindow window) throws RemoteException { in dragRecipientEntered() argument
169 public void dragRecipientExited(IWindow window) throws RemoteException { in dragRecipientExited() argument
[all …]
/frameworks/base/core/java/android/database/
DCursorToBulkCursorAdaptor.java146 d.window = mCursor.getWindow(); in getBulkCursorDescriptor()
147 if (d.window != null) { in getBulkCursorDescriptor()
150 d.window.acquireReference(); in getBulkCursorDescriptor()
166 CursorWindow window = mCursor.getWindow(); in getWindow() local
167 if (window != null) { in getWindow()
170 window = mFilledWindow; in getWindow()
171 if (window == null) { in getWindow()
173 window = mFilledWindow; in getWindow()
174 } else if (position < window.getStartPosition() in getWindow()
175 || position >= window.getStartPosition() + window.getNumRows()) { in getWindow()
[all …]
/frameworks/native/libs/nativewindow/include/android/
Dnative_window.h111 void ANativeWindow_acquire(ANativeWindow* window);
116 void ANativeWindow_release(ANativeWindow* window);
123 int32_t ANativeWindow_getWidth(ANativeWindow* window);
130 int32_t ANativeWindow_getHeight(ANativeWindow* window);
137 int32_t ANativeWindow_getFormat(ANativeWindow* window);
156 int32_t ANativeWindow_setBuffersGeometry(ANativeWindow* window,
169 int32_t ANativeWindow_lock(ANativeWindow* window, ANativeWindow_Buffer* outBuffer,
178 int32_t ANativeWindow_unlockAndPost(ANativeWindow* window);
188 int32_t ANativeWindow_setBuffersTransform(ANativeWindow* window, int32_t transform);
/frameworks/native/vulkan/libvulkan/
Dswapchain.cpp182 android::sp<ANativeWindow> window; member
210 ANativeWindow* window = surface.window.get(); in Swapchain() local
212 window, in Swapchain()
247 ANativeWindow* window, in ReleaseSwapchainImage() argument
275 if (window) { in ReleaseSwapchainImage()
276 window->cancelBuffer(window, image.buffer.get(), release_fence); in ReleaseSwapchainImage()
330 swapchain.surface.window.get(), ti.native_frame_id_, in get_num_ready_timings()
491 surface->window = pCreateInfo->window; in CreateAndroidSurfaceKHR()
496 native_window_api_connect(surface->window.get(), NATIVE_WINDOW_API_EGL); in CreateAndroidSurfaceKHR()
518 native_window_api_disconnect(surface->window.get(), NATIVE_WINDOW_API_EGL); in DestroySurfaceKHR()
[all …]
/frameworks/base/core/java/android/view/accessibility/
DAccessibilityCache.java98 final AccessibilityWindowInfo window = windows.get(i); in setWindows() local
99 addWindow(window); in setWindows()
105 public void addWindow(AccessibilityWindowInfo window) { in addWindow() argument
108 Log.i(LOG_TAG, "Caching window: " + window.getId()); in addWindow()
110 final int windowId = window.getId(); in addWindow()
115 mWindowCache.put(windowId, AccessibilityWindowInfo.obtain(window)); in addWindow()
253 AccessibilityWindowInfo window = mWindowCache.valueAt(i); in getWindows() local
254 sortedWindows.put(window.getLayer(), window); in getWindows() local
262 AccessibilityWindowInfo window = sortedWindows.valueAt(i); in getWindows() local
263 windows.add(AccessibilityWindowInfo.obtain(window)); in getWindows()
[all …]
/frameworks/base/media/mca/filterfw/jni/
Djni_gl_environment.cpp42 explicit NativeWindowHandle(ANativeWindow* window) : window_(window) { in NativeWindowHandle() argument
143 ANativeWindow* window = ANativeWindow_fromSurface(env, surface); in Java_android_filterfw_core_GLEnvironment_nativeAddSurface() local
144 if (!window) { in Java_android_filterfw_core_GLEnvironment_nativeAddSurface()
149 NativeWindowHandle* winHandle = new NativeWindowHandle(window); in Java_android_filterfw_core_GLEnvironment_nativeAddSurface()
176 window, in Java_android_filterfw_core_GLEnvironment_nativeAddSurface()
205 ANativeWindow* window = ANativeWindow_fromSurface(env, surface); in Java_android_filterfw_core_GLEnvironment_nativeAddSurfaceWidthHeight() local
206 if (!window) { in Java_android_filterfw_core_GLEnvironment_nativeAddSurfaceWidthHeight()
216 ANativeWindow_setBuffersGeometry(window, width, height, 0); in Java_android_filterfw_core_GLEnvironment_nativeAddSurfaceWidthHeight()
218 NativeWindowHandle* winHandle = new NativeWindowHandle(window); in Java_android_filterfw_core_GLEnvironment_nativeAddSurfaceWidthHeight()
245 window, in Java_android_filterfw_core_GLEnvironment_nativeAddSurfaceWidthHeight()
[all …]
/frameworks/base/tests/WindowManagerStressTest/src/test/windowmanagerstresstest/
DMainActivity.java100 for (BaseIWindow window : mWindows) { in slamWm()
103 WindowManagerGlobal.getWindowSession().relayout(window, in slamWm()
104 window.mSeq, mLayoutParams, -1, -1, View.VISIBLE, 0, mTmpRect, in slamWm()
128 final BaseIWindow window = new BaseIWindow(); in addWindows() local
132 … final int res = session.addToDisplayWithoutInputChannel(window, window.mSeq, layoutParams, in addWindows()
137 mWindows.add(window); in addWindows()
142 for (BaseIWindow window : mWindows) { in removeWindows()
144 WindowManagerGlobal.getWindowSession().remove(window); in removeWindows()
/frameworks/base/libs/androidfw/
DCursorWindow.cpp61 CursorWindow* window = new CursorWindow(name, ashmemFd, in create() local
63 result = window->clear(); in create()
67 window->mHeader->freeOffset, in create()
68 window->mHeader->numRows, in create()
69 window->mHeader->numColumns, in create()
70 window->mSize, window->mData); in create()
71 *outCursorWindow = window; in create()
74 delete window; in create()
110 CursorWindow* window = new CursorWindow(name, dupAshmemFd, in createFromParcel() local
114 window->mHeader->freeOffset, in createFromParcel()
[all …]

123456789