/frameworks/base/core/tests/coretests/src/android/database/ |
H A D | CursorWindowTest.java | 39 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 D | native_window.cpp | 35 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 D | native_window.h | 27 * 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 D | IWindowSession.aidl | 32 * System private per-application interface to the window manager. 37 int add(IWindow window, int seq, in WindowManager.LayoutParams attrs, 40 int addToDisplay(IWindow window, int seq, in WindowManager.LayoutParams attrs, 43 int addWithoutInputChannel(IWindow window, int seq, in WindowManager.LayoutParams attrs, 45 int addToDisplayWithoutInputChannel(IWindow window, int seq, in WindowManager.LayoutParams attrs, 47 void remove(IWindow window); 50 * Change the parameters of a window. You supply the 51 * new parameters, it returns the new frame of the window on screen (the 52 * position should be ignored) and surface of the window. The surface 53 * will be invalid if the window i [all...] |
/frameworks/av/media/libstagefright/codecs/mp3dec/src/ |
H A D | pvmp3_mpeg2_get_scale_factors.cpp | 129 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 D | pvmp3_mdct_18.cpp | 41 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 D | pvmp3_get_scale_factors.cpp | 140 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 D | pvmp3_mdct_18.h | 92 void pvmp3_mdct_18(int32 vec[], int32 *history, const int32 *window);
|
/frameworks/base/core/java/android/database/ |
H A D | CrossProcessCursor.java | 25 * 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 D | CursorToBulkCursorAdaptor.java | 30 * 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 D | CrossProcessCursorWrapper.java | 46 public void fillWindow(int position, CursorWindow window) { argument 49 crossProcessCursor.fillWindow(position, window); 53 DatabaseUtils.cursorFillWindow(mCursor, position, window);
|
H A D | BulkCursorDescriptor.java | 48 public CursorWindow window; field in class:BulkCursorDescriptor 61 if (window != null) { 63 window.writeToParcel(out, flags); 75 window = CursorWindow.CREATOR.createFromParcel(in);
|
/frameworks/native/include/ui/ |
H A D | FramebufferNativeWindow.h | 68 static int setSwapInterval(ANativeWindow* window, int interval); 69 static int dequeueBuffer(ANativeWindow* window, ANativeWindowBuffer** buffer, int* fenceFd); 70 static int queueBuffer(ANativeWindow* window, ANativeWindowBuffer* buffer, int fenceFd); 71 static int query(const ANativeWindow* window, int what, int* value); 72 static int perform(ANativeWindow* window, int operation, ...); 74 static int dequeueBuffer_DEPRECATED(ANativeWindow* window, ANativeWindowBuffer** buffer); 75 static int queueBuffer_DEPRECATED(ANativeWindow* window, ANativeWindowBuffer* buffer); 76 static int lockBuffer_DEPRECATED(ANativeWindow* window, ANativeWindowBuffer* buffer);
|
/frameworks/base/core/jni/ |
H A D | android_database_CursorWindow.cpp | 67 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 D | android_view_TextureView.cpp | 92 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/core/java/android/database/sqlite/ |
H A D | SQLiteQuery.java | 45 * @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/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
H A D | BridgeWindowSession.java | 83 public boolean performHapticFeedback(IWindow window, int effectId, boolean always) { argument 96 public void performDeferredDestroy(IWindow window) { argument 101 public boolean outOfMemory(IWindow window) throws RemoteException { argument 106 public void getDisplayFrame(IWindow window, Rect outDisplayFrame) { argument 126 public void setInsets(IWindow window, int touchable, Rect contentInsets, argument 132 public IBinder prepareDrag(IWindow window, int flags, argument 140 public boolean performDrag(IWindow window, IBinder dragToken, argument 149 public void reportDropResult(IWindow window, boolean consumed) throws RemoteException { argument 154 public void dragRecipientEntered(IWindow window) throws RemoteException { argument 159 public void dragRecipientExited(IWindow window) throw argument 164 setWallpaperPosition(IBinder window, float x, float y, float xStep, float yStep) argument 170 wallpaperOffsetsComplete(IBinder window) argument 175 sendWallpaperCommand(IBinder window, String action, int x, int y, int z, Bundle extras, boolean sync) argument 182 wallpaperCommandComplete(IBinder window, Bundle result) argument 187 setUniverseTransform(IBinder window, float alpha, float offx, float offy, float dsdx, float dtdx, float dsdy, float dtdy) argument 199 onRectangleOnScreenRequested(IBinder window, Rect rectangle, boolean immediate) argument [all...] |
/frameworks/base/services/java/com/android/server/wm/ |
H A D | Session.java | 50 * Session object per process that is interacting with the window manager. 150 public int add(IWindow window, int seq, WindowManager.LayoutParams attrs, argument 152 return addToDisplay(window, seq, attrs, viewVisibility, Display.DEFAULT_DISPLAY, 157 public int addToDisplay(IWindow window, int seq, WindowManager.LayoutParams attrs, argument 160 return mService.addWindow(this, window, seq, attrs, viewVisibility, displayId, 165 public int addWithoutInputChannel(IWindow window, int seq, WindowManager.LayoutParams attrs, argument 167 return addToDisplayWithoutInputChannel(window, seq, attrs, viewVisibility, 172 public int addToDisplayWithoutInputChannel(IWindow window, int seq, WindowManager.LayoutParams attrs, argument 174 return mService.addWindow(this, window, seq, attrs, viewVisibility, displayId, 178 public void remove(IWindow window) { argument 182 relayout(IWindow window, int seq, WindowManager.LayoutParams attrs, int requestedWidth, int requestedHeight, int viewFlags, int flags, Rect outFrame, Rect outContentInsets, Rect outVisibleInsets, Configuration outConfig, Surface outSurface) argument 197 performDeferredDestroy(IWindow window) argument 201 outOfMemory(IWindow window) argument 205 setTransparentRegion(IWindow window, Region region) argument 209 setInsets(IWindow window, int touchableInsets, Rect contentInsets, Rect visibleInsets, Region touchableArea) argument 215 getDisplayFrame(IWindow window, Rect outDisplayFrame) argument 219 finishDrawing(IWindow window) argument 237 performHapticFeedback(IWindow window, int effectId, boolean always) argument 252 prepareDrag(IWindow window, int flags, int width, int height, Surface outSurface) argument 258 performDrag(IWindow window, IBinder dragToken, float touchX, float touchY, float thumbCenterX, float thumbCenterY, ClipData data) argument 337 reportDropResult(IWindow window, boolean consumed) argument 377 dragRecipientEntered(IWindow window) argument 383 dragRecipientExited(IWindow window) argument 389 setWallpaperPosition(IBinder window, float x, float y, float xStep, float yStep) argument 402 wallpaperOffsetsComplete(IBinder window) argument 406 sendWallpaperCommand(IBinder window, String action, int x, int y, int z, Bundle extras, boolean sync) argument 420 wallpaperCommandComplete(IBinder window, Bundle result) argument 424 setUniverseTransform(IBinder window, float alpha, float offx, float offy, float dsdx, float dtdx, float dsdy, float dtdy) argument [all...] |
/frameworks/native/services/surfaceflinger/tests/surface/ |
H A D | surface.cpp | 50 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 D | EGLUtils.h | 24 #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/include/gui/ |
H A D | SurfaceTextureClient.h | 64 static int hook_cancelBuffer(ANativeWindow* window, 66 static int hook_dequeueBuffer(ANativeWindow* window, 68 static int hook_perform(ANativeWindow* window, int operation, ...); 69 static int hook_query(const ANativeWindow* window, int what, int* value); 70 static int hook_queueBuffer(ANativeWindow* window, 72 static int hook_setSwapInterval(ANativeWindow* window, int interval); 74 static int hook_cancelBuffer_DEPRECATED(ANativeWindow* window, 76 static int hook_dequeueBuffer_DEPRECATED(ANativeWindow* window, 78 static int hook_lockBuffer_DEPRECATED(ANativeWindow* window, 80 static int hook_queueBuffer_DEPRECATED(ANativeWindow* window, [all...] |
/frameworks/native/opengl/libs/EGL/ |
H A D | egl_object.cpp | 77 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 D | jni_gl_environment.cpp | 29 #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/native/opengl/tools/glgen/stubs/egl/ |
H A D | eglCreateWindowSurface.cpp | 15 android::sp<ANativeWindow> window; local 37 window = android::android_Surface_getNativeWindow(_env, win); 39 if (window == NULL) 63 (EGLNativeWindowType)window.get(), 92 android::sp<ANativeWindow> window; local 115 window = new android::SurfaceTextureClient(surfaceTexture); 117 if (window == NULL) 141 (EGLNativeWindowType)window.get(),
|
/frameworks/base/libs/androidfw/ |
H A D | CursorWindow.cpp | 60 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...] |