Searched refs:window (Results 1 - 25 of 107) sorted by relevance

12345

/frameworks/base/core/tests/coretests/src/android/database/
H A DCursorWindowTest.java39 CursorWindow window = new CursorWindow("MyWindow");
40 assertEquals("MyWindow", window.getName());
41 assertEquals(0, window.getStartPosition());
42 window.close();
47 CursorWindow window = new CursorWindow("");
48 assertEquals("<unnamed>", window.getName());
49 assertEquals(0, window.getStartPosition());
50 window.close();
55 CursorWindow window = new CursorWindow(null);
56 assertEquals("<unnamed>", window
77 doTestValues(CursorWindow window) argument
[all...]
/frameworks/base/native/android/
H A Dnative_window.cpp35 void ANativeWindow_acquire(ANativeWindow* window) { argument
36 window->incStrong((void*)ANativeWindow_acquire);
39 void ANativeWindow_release(ANativeWindow* window) { argument
40 window->decStrong((void*)ANativeWindow_acquire);
43 static int32_t getWindowProp(ANativeWindow* window, int what) { argument
45 int res = window->query(window, what, &value);
49 int32_t ANativeWindow_getWidth(ANativeWindow* window) { argument
50 return getWindowProp(window, NATIVE_WINDOW_WIDTH);
53 int32_t ANativeWindow_getHeight(ANativeWindow* window) { argument
57 ANativeWindow_getFormat(ANativeWindow* window) argument
61 ANativeWindow_setBuffersGeometry(ANativeWindow* window, int32_t width, int32_t height, int32_t format) argument
77 ANativeWindow_lock(ANativeWindow* window, ANativeWindow_Buffer* outBuffer, ARect* inOutDirtyBounds) argument
82 ANativeWindow_unlockAndPost(ANativeWindow* window) argument
[all...]
/frameworks/native/include/android/
H A Dnative_window.h27 * Pixel formats that a window can use.
63 void ANativeWindow_acquire(ANativeWindow* window);
68 void ANativeWindow_release(ANativeWindow* window);
71 * Return the current width in pixels of the window surface. Returns a
74 int32_t ANativeWindow_getWidth(ANativeWindow* window);
77 * Return the current height in pixels of the window surface. Returns a
80 int32_t ANativeWindow_getHeight(ANativeWindow* window);
83 * Return the current pixel format of the window surface. Returns a
86 int32_t ANativeWindow_getFormat(ANativeWindow* window);
89 * Change the format and size of the window buffer
[all...]
/frameworks/base/core/java/android/view/
H A DIWindowSession.aidl32 * System private per-application interface to the window manager.
37 int add(IWindow window, int seq, in WindowManager.LayoutParams attrs,
40 int addWithoutInputChannel(IWindow window, int seq, in WindowManager.LayoutParams attrs,
42 void remove(IWindow window);
45 * Change the parameters of a window. You supply the
46 * new parameters, it returns the new frame of the window on screen (the
47 * position should be ignored) and surface of the window. The surface
48 * will be invalid if the window is currently hidden, else you can use it
49 * to draw the window's contents.
51 * @param window Th
[all...]
/frameworks/base/core/java/android/database/
H A DCrossProcessCursor.java25 * the cursor can provide a pre-filled window to use via {@link #getWindow} thereby
26 * obviating the need to copy the data to yet another cursor window.
30 * Returns a pre-filled window that contains the data within this cursor.
32 * In particular, the window contains the row indicated by {@link Cursor#getPosition}.
33 * The window's contents are automatically scrolled whenever the current
34 * row moved outside the range covered by the window.
37 * @return The pre-filled window, or null if none.
42 * Copies cursor data into the window.
44 * Clears the window and fills it with data beginning at the requested
46 * or the window run
61 fillWindow(int position, CursorWindow window) argument
[all...]
H A DCursorToBulkCursorAdaptor.java30 * then it is assumed to own the window. Otherwise, the adaptor provides a
31 * window to be filled and ensures it gets closed as needed during deactivation
52 * The cursor window that was filled by the cross process cursor in the
54 * This field is only ever non-null when the window has actually be filled.
144 d.window = mCursor.getWindow();
145 if (d.window != null) {
146 // Acquire a reference to the window because its reference count will be
148 d.window.acquireReference();
164 CursorWindow window = mCursor.getWindow();
165 if (window !
[all...]
H A DCrossProcessCursorWrapper.java46 public void fillWindow(int position, CursorWindow window) { argument
49 crossProcessCursor.fillWindow(position, window);
53 DatabaseUtils.cursorFillWindow(mCursor, position, window);
H A DBulkCursorDescriptor.java48 public CursorWindow window; field in class:BulkCursorDescriptor
61 if (window != null) {
63 window.writeToParcel(out, flags);
75 window = CursorWindow.CREATOR.createFromParcel(in);
/frameworks/av/media/libstagefright/codecs/mp3dec/src/
H A Dpvmp3_mpeg2_get_scale_factors.cpp129 int32 window; local
156 for (window = 0; window < 3; window++)
158 scalefac->s[window][sfb] = scalefac_buffer[k];
178 for (window = 0; window < 3; window++)
180 scalefac->s[window][sfb] = scalefac_buffer[k];
H A Dpvmp3_mdct_18.cpp41 const int32 *window sine window used in the mdct, three types are allowed
132 void pvmp3_mdct_18(int32 vec[], int32 *history, const int32 *window) argument
198 vec[ i] = fxp_mac32_Q32(tmp, (vec[i+10]), window[ i]);
208 vec[ 6] = fxp_mac32_Q32(tmp, vec[16] << 1, window[ i]);
215 vec[ 7] = fxp_mac32_Q32(tmp, tmp4 << 1, window[ 7]);
217 vec[ 8] = fxp_mac32_Q32(tmp1, vec[17] << 1, window[ 8]);
222 vec[ 9] = fxp_mac32_Q32(tmp, vec[17] << 1, window[ 9]);
224 vec[17] = fxp_mac32_Q32(tmp1, vec[10] << 1, window[17]);
226 vec[16] = fxp_mac32_Q32(tmp2, vec[11] << 1, window[1
[all...]
H A Dpvmp3_get_scale_factors.cpp140 int32 window; local
154 for (window = 0; window < 3; window++)
156 scalefac->s[window][sfb] = getNbits(pMainData, slen[0][gr_info->scalefac_compress]);
161 for (window = 0; window < 3; window++)
163 scalefac->s[window][sfb] = getNbits(pMainData, slen[1][gr_info->scalefac_compress]);
173 for (window
[all...]
H A Dpvmp3_mdct_18.h92 void pvmp3_mdct_18(int32 vec[], int32 *history, const int32 *window);
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
H A DBridgeWindowSession.java66 public boolean performHapticFeedback(IWindow window, int effectId, boolean always) { argument
79 public void performDeferredDestroy(IWindow window) { argument
84 public boolean outOfMemory(IWindow window) throws RemoteException { argument
89 public void getDisplayFrame(IWindow window, Rect outDisplayFrame) { argument
109 public void setInsets(IWindow window, int touchable, Rect contentInsets, argument
115 public IBinder prepareDrag(IWindow window, int flags, argument
123 public boolean performDrag(IWindow window, IBinder dragToken, argument
132 public void reportDropResult(IWindow window, boolean consumed) throws RemoteException { argument
137 public void dragRecipientEntered(IWindow window) throws RemoteException { argument
142 public void dragRecipientExited(IWindow window) throw argument
147 setWallpaperPosition(IBinder window, float x, float y, float xStep, float yStep) argument
153 wallpaperOffsetsComplete(IBinder window) argument
158 sendWallpaperCommand(IBinder window, String action, int x, int y, int z, Bundle extras, boolean sync) argument
165 wallpaperCommandComplete(IBinder window, Bundle result) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_database_CursorWindow.cpp67 CursorWindow* window; local
68 status_t status = CursorWindow::create(name, cursorWindowSize, &window);
69 if (status || !window) {
75 LOG_WINDOW("nativeInitializeEmpty: window = %p", window);
76 return reinterpret_cast<jint>(window);
82 CursorWindow* window; local
83 status_t status = CursorWindow::createFromParcel(parcel, &window);
84 if (status || !window) {
89 LOG_WINDOW("nativeInitializeFromBinder: numRows = %d, numColumns = %d, window
95 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local
103 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local
109 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local
121 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local
130 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local
136 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local
142 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local
148 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local
154 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local
169 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local
204 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local
296 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local
335 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local
366 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local
397 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local
415 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local
437 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local
451 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local
465 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local
[all...]
H A Dandroid_view_TextureView.cpp92 static int32_t native_window_lock(ANativeWindow* window, ANativeWindow_Buffer* outBuffer, argument
94 return window->perform(window, NATIVE_WINDOW_LOCK, outBuffer, inOutDirtyBounds);
97 static int32_t native_window_unlockAndPost(ANativeWindow* window) { argument
98 return window->perform(window, NATIVE_WINDOW_UNLOCK_AND_POST);
105 sp<ANativeWindow> window = new SurfaceTextureClient(surfaceTexture); local
107 window->incStrong(0);
108 SET_INT(textureView, gTextureViewClassInfo.nativeWindow, jint(window.get()));
117 sp<ANativeWindow> window(nativeWindo
[all...]
/frameworks/base/services/java/com/android/server/wm/
H A DSession.java47 * Session object per process that is interacting with the window manager.
137 public int add(IWindow window, int seq, WindowManager.LayoutParams attrs, argument
139 return mService.addWindow(this, window, seq, attrs, viewVisibility, outContentInsets,
143 public int addWithoutInputChannel(IWindow window, int seq, WindowManager.LayoutParams attrs, argument
145 return mService.addWindow(this, window, seq, attrs, viewVisibility, outContentInsets, null);
148 public void remove(IWindow window) { argument
149 mService.removeWindow(this, window);
152 public int relayout(IWindow window, int seq, WindowManager.LayoutParams attrs, argument
158 int res = mService.relayoutWindow(this, window, seq, attrs,
167 public void performDeferredDestroy(IWindow window) { argument
171 outOfMemory(IWindow window) argument
175 setTransparentRegion(IWindow window, Region region) argument
179 setInsets(IWindow window, int touchableInsets, Rect contentInsets, Rect visibleInsets, Region touchableArea) argument
185 getDisplayFrame(IWindow window, Rect outDisplayFrame) argument
189 finishDrawing(IWindow window) argument
207 performHapticFeedback(IWindow window, int effectId, boolean always) argument
222 prepareDrag(IWindow window, int flags, int width, int height, Surface outSurface) argument
228 performDrag(IWindow window, IBinder dragToken, float touchX, float touchY, float thumbCenterX, float thumbCenterY, ClipData data) argument
305 reportDropResult(IWindow window, boolean consumed) argument
345 dragRecipientEntered(IWindow window) argument
351 dragRecipientExited(IWindow window) argument
357 setWallpaperPosition(IBinder window, float x, float y, float xStep, float yStep) argument
370 wallpaperOffsetsComplete(IBinder window) argument
374 sendWallpaperCommand(IBinder window, String action, int x, int y, int z, Bundle extras, boolean sync) argument
388 wallpaperCommandComplete(IBinder window, Bundle result) argument
[all...]
/frameworks/base/core/java/android/database/sqlite/
H A DSQLiteQuery.java45 * @param window The window to fill into
46 * @param startPos The start position for filling the window.
47 * @param requiredPos The position of a row that MUST be in the window.
50 * return regardless of whether they fit in the window.
57 int fillWindow(CursorWindow window, int startPos, int requiredPos, boolean countAllRows) { argument
60 window.acquireReference();
63 window, startPos, requiredPos, countAllRows, getConnectionFlags(),
73 window.releaseReference();
/frameworks/testing/uiautomator/utils/uiautomatorviewer/src/com/android/uiautomator/actions/
H A DExpandAllAction.java28 public ExpandAllAction(UiAutomatorViewer window) { argument
30 mWindow = window;
H A DOpenFilesAction.java24 import org.eclipse.jface.window.ApplicationWindow;
30 public OpenFilesAction(ApplicationWindow window) { argument
32 mWindow = window;
/frameworks/native/include/ui/
H A DFramebufferNativeWindow.h67 static int setSwapInterval(ANativeWindow* window, int interval);
68 static int dequeueBuffer(ANativeWindow* window, ANativeWindowBuffer** buffer);
69 static int lockBuffer(ANativeWindow* window, ANativeWindowBuffer* buffer);
70 static int queueBuffer(ANativeWindow* window, ANativeWindowBuffer* buffer);
71 static int query(const ANativeWindow* window, int what, int* value);
72 static int perform(ANativeWindow* window, int operation, ...);
/frameworks/native/services/surfaceflinger/tests/surface/
H A Dsurface.cpp50 ANativeWindow* window = surface.get(); local
52 printf("window=%p\n", window);
54 int err = native_window_set_buffer_count(window, 8);
58 window->dequeueBuffer(window, &buffer);
/frameworks/native/opengl/tests/include/
H A DEGLUtils.h24 #include <system/window.h>
48 EGLNativeWindowType window,
124 EGLNativeWindowType window,
130 if (!window)
133 if ((err = window->query(window, NATIVE_WINDOW_FORMAT, &format)) < 0) {
121 selectConfigForNativeWindow( EGLDisplay dpy, EGLint const* attrs, EGLNativeWindowType window, EGLConfig* outConfig) argument
/frameworks/native/opengl/libs/EGL/
H A Degl_object.cpp77 ANativeWindow* const window = win.get(); local
78 if (window != NULL) {
79 native_window_set_buffers_format(window, 0);
80 if (native_window_api_disconnect(window, NATIVE_WINDOW_API_EGL)) {
81 ALOGW("EGLNativeWindowType %p disconnect failed", window);
/frameworks/base/media/mca/filterfw/jni/
H A Djni_gl_environment.cpp29 #include <system/window.h>
42 NativeWindowHandle(ANativeWindow* window) : window_(window) { argument
142 ANativeWindow* window = ANativeWindow_fromSurface(env, surface); local
143 if (!window) {
144 ALOGE("GLEnvironment: Error creating window!");
148 NativeWindowHandle* winHandle = new NativeWindowHandle(window);
175 window,
179 ALOGE("GLEnvironment: Error creating window surface!");
204 ANativeWindow* window local
295 sp<ANativeWindow> window = surfaceTC; local
[all...]
/frameworks/base/libs/androidfw/
H A DCursorWindow.cpp60 CursorWindow* window = new CursorWindow(name, ashmemFd, local
62 result = window->clear();
66 window->mHeader->freeOffset,
67 window->mHeader->numRows,
68 window->mHeader->numColumns,
69 window->mSize, window->mData);
70 *outCursorWindow = window;
73 delete window;
104 CursorWindow* window local
[all...]

Completed in 321 milliseconds

12345