Home
last modified time | relevance | path

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

12345678910>>...14

/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/native/android/
Dnative_window.cpp35 void ANativeWindow_acquire(ANativeWindow* window) { in ANativeWindow_acquire() argument
36 window->incStrong((void*)ANativeWindow_acquire); in ANativeWindow_acquire()
39 void ANativeWindow_release(ANativeWindow* window) { in ANativeWindow_release() argument
40 window->decStrong((void*)ANativeWindow_acquire); in ANativeWindow_release()
43 static int32_t getWindowProp(ANativeWindow* window, int what) { in getWindowProp() argument
45 int res = window->query(window, what, &value); in getWindowProp()
49 int32_t ANativeWindow_getWidth(ANativeWindow* window) { in ANativeWindow_getWidth() argument
50 return getWindowProp(window, NATIVE_WINDOW_WIDTH); in ANativeWindow_getWidth()
53 int32_t ANativeWindow_getHeight(ANativeWindow* window) { in ANativeWindow_getHeight() argument
54 return getWindowProp(window, NATIVE_WINDOW_HEIGHT); in ANativeWindow_getHeight()
[all …]
/frameworks/base/core/jni/
Dandroid_database_CursorWindow.cpp70 CursorWindow* window; in nativeCreate() local
71 status_t status = CursorWindow::create(name, cursorWindowSize, &window); in nativeCreate()
72 if (status || !window) { in nativeCreate()
78 LOG_WINDOW("nativeInitializeEmpty: window = %p", window); in nativeCreate()
79 return reinterpret_cast<jlong>(window); in nativeCreate()
85 CursorWindow* window; in nativeCreateFromParcel() local
86 status_t status = CursorWindow::createFromParcel(parcel, &window); in nativeCreateFromParcel()
87 if (status || !window) { in nativeCreateFromParcel()
93 window->getNumRows(), window->getNumColumns(), window); in nativeCreateFromParcel()
94 return reinterpret_cast<jlong>(window); in nativeCreateFromParcel()
[all …]
Dandroid_view_TextureView.cpp105 static int32_t native_window_lock(ANativeWindow* window, ANativeWindow_Buffer* outBuffer, in native_window_lock() argument
107 return window->perform(window, NATIVE_WINDOW_LOCK, outBuffer, inOutDirtyBounds); in native_window_lock()
110 static int32_t native_window_unlockAndPost(ANativeWindow* window) { in native_window_unlockAndPost() argument
111 return window->perform(window, NATIVE_WINDOW_UNLOCK_AND_POST); in native_window_unlockAndPost()
118 sp<ANativeWindow> window = new Surface(producer, true); in android_view_TextureView_createNativeWindow() local
120 window->incStrong((void*)android_view_TextureView_createNativeWindow); in android_view_TextureView_createNativeWindow()
121 SET_LONG(textureView, gTextureViewClassInfo.nativeWindow, jlong(window.get())); in android_view_TextureView_createNativeWindow()
130 sp<ANativeWindow> window(nativeWindow); in android_view_TextureView_destroyNativeWindow() local
131 window->decStrong((void*)android_view_TextureView_createNativeWindow); in android_view_TextureView_destroyNativeWindow()
155 sp<ANativeWindow> window((ANativeWindow*) nativeWindow); in android_view_TextureView_lockCanvas() local
[all …]
/frameworks/support/v17/leanback/api21/android/support/v17/leanback/transition/
DTransitionHelperApi21.java27 public static Object getSharedElementEnterTransition(Window window) { in getSharedElementEnterTransition() argument
28 return window.getSharedElementEnterTransition(); in getSharedElementEnterTransition()
31 public static Object getSharedElementReturnTransition(Window window) { in getSharedElementReturnTransition() argument
32 return window.getSharedElementReturnTransition(); in getSharedElementReturnTransition()
35 public static Object getSharedElementExitTransition(Window window) { in getSharedElementExitTransition() argument
36 return window.getSharedElementExitTransition(); in getSharedElementExitTransition()
39 public static Object getSharedElementReenterTransition(Window window) { in getSharedElementReenterTransition() argument
40 return window.getSharedElementReenterTransition(); in getSharedElementReenterTransition()
43 public static Object getEnterTransition(Window window) { in getEnterTransition() argument
44 return window.getEnterTransition(); in getEnterTransition()
[all …]
/frameworks/av/media/libstagefright/codecs/mp3dec/src/
Dpvmp3_mdct_18.cpp132 void pvmp3_mdct_18(int32 vec[], int32 *history, const int32 *window) in pvmp3_mdct_18() argument
198 vec[ i] = fxp_mac32_Q32(tmp, (vec[i+10]), window[ i]); in pvmp3_mdct_18()
208 vec[ 6] = fxp_mac32_Q32(tmp, vec[16] << 1, window[ i]); in pvmp3_mdct_18()
215 vec[ 7] = fxp_mac32_Q32(tmp, tmp4 << 1, window[ 7]); in pvmp3_mdct_18()
217 vec[ 8] = fxp_mac32_Q32(tmp1, vec[17] << 1, window[ 8]); in pvmp3_mdct_18()
222 vec[ 9] = fxp_mac32_Q32(tmp, vec[17] << 1, window[ 9]); in pvmp3_mdct_18()
224 vec[17] = fxp_mac32_Q32(tmp1, vec[10] << 1, window[17]); in pvmp3_mdct_18()
226 vec[16] = fxp_mac32_Q32(tmp2, vec[11] << 1, window[16]); in pvmp3_mdct_18()
230 vec[15] = fxp_mac32_Q32(tmp1, vec[12] << 1, window[15]); in pvmp3_mdct_18()
232 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/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/
DSystemBarHelper.java69 final Window window = dialog.getWindow(); in hideSystemBars() local
70 temporarilyDisableDialogFocus(window); in hideSystemBars()
71 addImmersiveFlagsToWindow(window, DIALOG_IMMERSIVE_FLAGS); in hideSystemBars()
72 addImmersiveFlagsToDecorView(window, new Handler(), DIALOG_IMMERSIVE_FLAGS); in hideSystemBars()
84 public static void hideSystemBars(final Window window) { in hideSystemBars() argument
86 addImmersiveFlagsToWindow(window, DEFAULT_IMMERSIVE_FLAGS); in hideSystemBars()
87 addImmersiveFlagsToDecorView(window, new Handler(), DEFAULT_IMMERSIVE_FLAGS); in hideSystemBars()
104 public static void addVisibilityFlag(final Window window, final int flag) { in addVisibilityFlag() argument
106 WindowManager.LayoutParams attrs = window.getAttributes(); in addVisibilityFlag()
108 window.setAttributes(attrs); in addVisibilityFlag()
[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
92 int relayout(IWindow window, int seq, in WindowManager.LayoutParams attrs, in relayout() argument
102 void performDeferredDestroy(IWindow window); in performDeferredDestroy() argument
107 boolean outOfMemory(IWindow window); in outOfMemory() argument
114 void setTransparentRegion(IWindow window, in Region region); in setTransparentRegion() argument
126 void setInsets(IWindow window, int touchableInsets, in Rect contentInsets, in setInsets() argument
[all …]
DWindowInfo.java53 WindowInfo window = sPool.acquire(); in obtain() local
54 if (window == null) { in obtain()
55 window = new WindowInfo(); in obtain()
57 return window; in obtain()
61 WindowInfo window = obtain(); in obtain() local
62 window.type = other.type; in obtain()
63 window.layer = other.layer; in obtain()
64 window.token = other.token; in obtain()
65 window.parentToken = other.parentToken; in obtain()
66 window.focused = other.focused; in obtain()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DSession.java157 public int add(IWindow window, int seq, WindowManager.LayoutParams attrs, in add() argument
160 return addToDisplay(window, seq, attrs, viewVisibility, Display.DEFAULT_DISPLAY, in add()
165 public int addToDisplay(IWindow window, int seq, WindowManager.LayoutParams attrs, in addToDisplay() argument
168 return mService.addWindow(this, window, seq, attrs, viewVisibility, displayId, in addToDisplay()
173 public int addWithoutInputChannel(IWindow window, int seq, WindowManager.LayoutParams attrs, in addWithoutInputChannel() argument
175 return addToDisplayWithoutInputChannel(window, seq, attrs, viewVisibility, in addWithoutInputChannel()
180 …public int addToDisplayWithoutInputChannel(IWindow window, int seq, WindowManager.LayoutParams att… in addToDisplayWithoutInputChannel() argument
182 return mService.addWindow(this, window, seq, attrs, viewVisibility, displayId, in addToDisplayWithoutInputChannel()
186 public void remove(IWindow window) { in remove() argument
187 mService.removeWindow(this, window); in remove()
[all …]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/transition/
DTransitionHelper.java65 public Object getSharedElementEnterTransition(Window window); in getSharedElementEnterTransition() argument
67 public Object getSharedElementReturnTransition(Window window); in getSharedElementReturnTransition() argument
69 public Object getSharedElementExitTransition(Window window); in getSharedElementExitTransition() argument
71 public Object getSharedElementReenterTransition(Window window); in getSharedElementReenterTransition() argument
73 public Object getEnterTransition(Window window); in getEnterTransition() argument
75 public Object getReturnTransition(Window window); in getReturnTransition() argument
77 public Object getExitTransition(Window window); in getExitTransition() argument
79 public Object getReenterTransition(Window window); in getReenterTransition() argument
145 public Object getSharedElementEnterTransition(Window window) { in getSharedElementEnterTransition() argument
150 public Object getSharedElementReturnTransition(Window window) { in getSharedElementReturnTransition() 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
98 public void performDeferredDestroy(IWindow window) { in performDeferredDestroy() argument
103 public boolean outOfMemory(IWindow window) throws RemoteException { in outOfMemory() argument
108 public void getDisplayFrame(IWindow window, Rect outDisplayFrame) { in getDisplayFrame() argument
128 public void setInsets(IWindow window, int touchable, Rect contentInsets, in setInsets() argument
134 public IBinder prepareDrag(IWindow window, int flags, in prepareDrag() argument
142 public boolean performDrag(IWindow window, IBinder dragToken, in performDrag() argument
151 public void reportDropResult(IWindow window, boolean consumed) throws RemoteException { in reportDropResult() argument
156 public void dragRecipientEntered(IWindow window) throws RemoteException { in dragRecipientEntered() argument
161 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/include/android/
Dnative_window.h85 void ANativeWindow_acquire(ANativeWindow* window);
90 void ANativeWindow_release(ANativeWindow* window);
96 int32_t ANativeWindow_getWidth(ANativeWindow* window);
102 int32_t ANativeWindow_getHeight(ANativeWindow* window);
108 int32_t ANativeWindow_getFormat(ANativeWindow* window);
124 int32_t ANativeWindow_setBuffersGeometry(ANativeWindow* window,
135 int32_t ANativeWindow_lock(ANativeWindow* window, ANativeWindow_Buffer* outBuffer,
142 int32_t ANativeWindow_unlockAndPost(ANativeWindow* window);
/frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/
DSystemBarHelperTest.java80 final Window window = createWindowWithSystemUiVisibility(0x456); in testAddVisibilityFlagWindow() local
81 SystemBarHelper.addVisibilityFlag(window, 0x1400); in testAddVisibilityFlagWindow()
85 window.getAttributes().systemUiVisibility); in testAddVisibilityFlagWindow()
91 final Window window = createWindowWithSystemUiVisibility(0x456); in testRemoveVisibilityFlagWindow() local
92 SystemBarHelper.removeVisibilityFlag(window, 0x1400); in testRemoveVisibilityFlagWindow()
96 window.getAttributes().systemUiVisibility); in testRemoveVisibilityFlagWindow()
102 final Window window = createWindowWithSystemUiVisibility(0x456); in testHideSystemBarsWindow() local
103 SystemBarHelper.hideSystemBars(window); in testHideSystemBarsWindow()
107 window.getAttributes().systemUiVisibility); in testHideSystemBarsWindow()
111 window.getDecorView().getSystemUiVisibility()); in testHideSystemBarsWindow()
[all …]
/frameworks/native/include/ui/
DFramebufferNativeWindow.h72 static int setSwapInterval(ANativeWindow* window, int interval);
73 static int dequeueBuffer(ANativeWindow* window, ANativeWindowBuffer** buffer, int* fenceFd);
74 static int queueBuffer(ANativeWindow* window, ANativeWindowBuffer* buffer, int fenceFd);
75 static int query(const ANativeWindow* window, int what, int* value);
76 static int perform(ANativeWindow* window, int operation, ...);
78 static int dequeueBuffer_DEPRECATED(ANativeWindow* window, ANativeWindowBuffer** buffer);
79 static int queueBuffer_DEPRECATED(ANativeWindow* window, ANativeWindowBuffer* buffer);
80 static int lockBuffer_DEPRECATED(ANativeWindow* window, ANativeWindowBuffer* buffer);
/frameworks/base/core/java/android/view/accessibility/
DAccessibilityCache.java55 public void addWindow(AccessibilityWindowInfo window) { in addWindow() argument
58 Log.i(LOG_TAG, "Caching window: " + window.getId()); in addWindow()
60 final int windowId = window.getId(); in addWindow()
65 mWindowCache.put(windowId, AccessibilityWindowInfo.obtain(window)); in addWindow()
196 AccessibilityWindowInfo window = mWindowCache.valueAt(i); in getWindows() local
197 sortedWindows.put(window.getLayer(), window); in getWindows() local
202 AccessibilityWindowInfo window = sortedWindows.valueAt(i); in getWindows() local
203 windows.add(AccessibilityWindowInfo.obtain(window)); in getWindows()
215 AccessibilityWindowInfo window = mWindowCache.get(windowId); in getWindow() local
216 if (window != null) { in getWindow()
[all …]
/frameworks/base/media/mca/filterfw/jni/
Djni_gl_environment.cpp42 NativeWindowHandle(ANativeWindow* window) : window_(window) { in NativeWindowHandle() argument
142 ANativeWindow* window = ANativeWindow_fromSurface(env, surface); in Java_android_filterfw_core_GLEnvironment_nativeAddSurface() local
143 if (!window) { in Java_android_filterfw_core_GLEnvironment_nativeAddSurface()
148 NativeWindowHandle* winHandle = new NativeWindowHandle(window); in Java_android_filterfw_core_GLEnvironment_nativeAddSurface()
175 window, in Java_android_filterfw_core_GLEnvironment_nativeAddSurface()
204 ANativeWindow* window = ANativeWindow_fromSurface(env, surface); in Java_android_filterfw_core_GLEnvironment_nativeAddSurfaceWidthHeight() local
205 if (!window) { in Java_android_filterfw_core_GLEnvironment_nativeAddSurfaceWidthHeight()
215 ANativeWindow_setBuffersGeometry(window, width, height, 0); in Java_android_filterfw_core_GLEnvironment_nativeAddSurfaceWidthHeight()
217 NativeWindowHandle* winHandle = new NativeWindowHandle(window); in Java_android_filterfw_core_GLEnvironment_nativeAddSurfaceWidthHeight()
244 window, in Java_android_filterfw_core_GLEnvironment_nativeAddSurfaceWidthHeight()
[all …]
/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()
105 CursorWindow* window = new CursorWindow(name, dupAshmemFd, in createFromParcel() local
109 window->mHeader->freeOffset, in createFromParcel()
[all …]
/frameworks/native/include/gui/
DSurface.h121 static int hook_cancelBuffer(ANativeWindow* window,
123 static int hook_dequeueBuffer(ANativeWindow* window,
125 static int hook_perform(ANativeWindow* window, int operation, ...);
126 static int hook_query(const ANativeWindow* window, int what, int* value);
127 static int hook_queueBuffer(ANativeWindow* window,
129 static int hook_setSwapInterval(ANativeWindow* window, int interval);
131 static int hook_cancelBuffer_DEPRECATED(ANativeWindow* window,
133 static int hook_dequeueBuffer_DEPRECATED(ANativeWindow* window,
135 static int hook_lockBuffer_DEPRECATED(ANativeWindow* window,
137 static int hook_queueBuffer_DEPRECATED(ANativeWindow* window,
/frameworks/native/opengl/tools/glgen/stubs/egl/
DeglCreateWindowSurface.cpp15 android::sp<ANativeWindow> window; in android_eglCreateWindowSurface() local
37 window = android::android_view_Surface_getNativeWindow(_env, win); in android_eglCreateWindowSurface()
39 if (window == NULL) in android_eglCreateWindowSurface()
63 (EGLNativeWindowType)window.get(), in android_eglCreateWindowSurface()
92 android::sp<ANativeWindow> window; in android_eglCreateWindowSurfaceTexture() local
119 window = new android::Surface(producer, true); in android_eglCreateWindowSurfaceTexture()
121 if (window == NULL) in android_eglCreateWindowSurfaceTexture()
145 (EGLNativeWindowType)window.get(), in android_eglCreateWindowSurfaceTexture()
/frameworks/native/libs/gui/tests/
DSurface_test.cpp188 sp<ANativeWindow> window(surface); in TEST_F() local
193 ASSERT_EQ(NO_ERROR, window->dequeueBuffer(window.get(), &buffer, &fenceFd)); in TEST_F()
194 ASSERT_EQ(NO_ERROR, window->cancelBuffer(window.get(), buffer, fenceFd)); in TEST_F()
209 ASSERT_EQ(NO_ERROR, window->cancelBuffer(window.get(), buffer, -1)); in TEST_F()
210 ASSERT_EQ(NO_ERROR, window->dequeueBuffer(window.get(), &buffer, &fenceFd)); in TEST_F()
225 sp<ANativeWindow> window(surface); in TEST_F() local
226 native_window_api_connect(window.get(), NATIVE_WINDOW_API_CPU); in TEST_F()
/frameworks/native/libs/ui/
DFramebufferNativeWindow.cpp197 ANativeWindow* window, int interval) in setSwapInterval() argument
199 framebuffer_device_t* fb = getSelf(window)->fbDev; in setSwapInterval()
221 int FramebufferNativeWindow::dequeueBuffer_DEPRECATED(ANativeWindow* window, in dequeueBuffer_DEPRECATED() argument
225 int result = dequeueBuffer(window, buffer, &fenceFd); in dequeueBuffer_DEPRECATED()
236 int FramebufferNativeWindow::dequeueBuffer(ANativeWindow* window, in dequeueBuffer() argument
239 FramebufferNativeWindow* self = getSelf(window); in dequeueBuffer()
268 int FramebufferNativeWindow::queueBuffer_DEPRECATED(ANativeWindow* window, in queueBuffer_DEPRECATED() argument
271 return queueBuffer(window, buffer, -1); in queueBuffer_DEPRECATED()
274 int FramebufferNativeWindow::queueBuffer(ANativeWindow* window, in queueBuffer() argument
277 FramebufferNativeWindow* self = getSelf(window); in queueBuffer()
[all …]

12345678910>>...14