/frameworks/base/core/tests/coretests/src/android/database/ |
H A D | CursorWindowTest.java | 47 private void doTestValues(CursorWindow window) { argument 48 assertTrue(window.setNumColumns(7)); 49 assertTrue(window.allocRow()); 51 assertTrue(window.putDouble(db1, 0, 0)); 52 double db2 = window.getDouble(0, 0); 56 assertTrue(window.putLong(int1, 0, 1)); 57 long int2 = window.getLong(0, 1); 60 assertTrue(window.putString("1198032740000", 0, 3)); 61 assertEquals("1198032740000", window.getString(0, 3)); 62 assertEquals(1198032740000L, window [all...] |
/frameworks/base/native/android/ |
H A D | native_window.cpp | 43 void ANativeWindow_acquire(ANativeWindow* window) { argument 44 window->incStrong((void*)ANativeWindow_acquire); 47 void ANativeWindow_release(ANativeWindow* window) { argument 48 window->decStrong((void*)ANativeWindow_acquire); 51 static int32_t getWindowProp(ANativeWindow* window, int what) { argument 53 int res = window->query(window, what, &value); 57 int32_t ANativeWindow_getWidth(ANativeWindow* window) { argument 58 return getWindowProp(window, NATIVE_WINDOW_WIDTH); 61 int32_t ANativeWindow_getHeight(ANativeWindow* window) { argument 65 ANativeWindow_getFormat(ANativeWindow* window) argument 69 ANativeWindow_setBuffersGeometry(ANativeWindow* window, int32_t width, int32_t height, int32_t format) argument 82 ANativeWindow_lock(ANativeWindow* window, ANativeWindow_Buffer* outBuffer, ARect* inOutDirtyBounds) argument 87 ANativeWindow_unlockAndPost(ANativeWindow* window) argument [all...] |
/frameworks/base/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...] |
H A D | native_activity.h | 152 * Focus has changed in this NativeActivity's window. This is often used, 158 * The drawing window for this native activity has been created. You 159 * can use the given native window object to start drawing. 161 void (*onNativeWindowCreated)(ANativeActivity* activity, ANativeWindow* window); 164 * The drawing window for this native activity has been resized. You should 165 * retrieve the new size from the window and ensure that your rendering in 168 void (*onNativeWindowResized)(ANativeActivity* activity, ANativeWindow* window); 171 * The drawing window for this native activity needs to be redrawn. To avoid 174 * drawing their window in its current state. 176 void (*onNativeWindowRedrawNeeded)(ANativeActivity* activity, ANativeWindow* window); [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 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 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 | 29 * then it is assumed to own the window. Otherwise, the adaptor provides a 30 * window to be filled and ensures it gets closed as needed during deactivation 51 * The cursor window that was filled by the cross process cursor in the 53 * This field is only ever non-null when the window has actually be filled. 144 CursorWindow window = mCursor.getWindow(); 145 if (window != null) { 148 window = mFilledWindow; 149 if (window == null) { 151 window = mFilledWindow; 152 mCursor.fillWindow(startPos, 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);
|
/frameworks/base/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/jni/ |
H A D | android_database_CursorWindow.cpp | 71 CursorWindow* window; local 72 status_t status = CursorWindow::create(name, cursorWindowSize, &window); 73 if (status || !window) { 79 LOG_WINDOW("nativeInitializeEmpty: window = %p", window); 80 return reinterpret_cast<jint>(window); 86 CursorWindow* window; local 87 status_t status = CursorWindow::createFromParcel(parcel, &window); 88 if (status || !window) { 93 LOG_WINDOW("nativeInitializeFromBinder: numRows = %d, numColumns = %d, window 99 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local 107 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local 113 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local 125 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local 134 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local 140 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local 146 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local 152 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local 158 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local 173 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local 208 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local 300 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local 339 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local 370 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local 401 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local 419 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local 441 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local 455 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local 469 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local [all...] |
H A D | android_database_SQLiteQuery.cpp | 42 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local 61 window->getNumRows(), window->size(), window->freeSpace()); 64 status_t status = window->setNumColumns(numColumns); 66 LOGE("Failed to change column count from %d to %d", window->getNumColumns(), numColumns); 84 // Skip the row if the window is full or we haven't reached the start position yet. 92 status = window->allocRow(); 100 // Pack the row into the window. 111 status = window [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/services/java/com/android/server/wm/ |
H A D | Session.java | 47 * 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, 166 public void performDeferredDestroy(IWindow window) { argument 170 outOfMemory(IWindow window) argument 174 setTransparentRegion(IWindow window, Region region) argument 178 setInsets(IWindow window, int touchableInsets, Rect contentInsets, Rect visibleInsets, Region touchableArea) argument 184 getDisplayFrame(IWindow window, Rect outDisplayFrame) argument 188 finishDrawing(IWindow window) argument 206 performHapticFeedback(IWindow window, int effectId, boolean always) argument 221 prepareDrag(IWindow window, int flags, int width, int height, Surface outSurface) argument 227 performDrag(IWindow window, IBinder dragToken, float touchX, float touchY, float thumbCenterX, float thumbCenterY, ClipData data) argument 304 reportDropResult(IWindow window, boolean consumed) argument 344 dragRecipientEntered(IWindow window) argument 350 dragRecipientExited(IWindow window) argument 356 setWallpaperPosition(IBinder window, float x, float y, float xStep, float yStep) argument 369 wallpaperOffsetsComplete(IBinder window) argument 373 sendWallpaperCommand(IBinder window, String action, int x, int y, int z, Bundle extras, boolean sync) argument 387 wallpaperCommandComplete(IBinder window, Bundle result) argument [all...] |
/frameworks/base/include/ui/ |
H A D | FramebufferNativeWindow.h | 69 static int setSwapInterval(ANativeWindow* window, int interval); 70 static int dequeueBuffer(ANativeWindow* window, ANativeWindowBuffer** buffer); 71 static int lockBuffer(ANativeWindow* window, ANativeWindowBuffer* buffer); 72 static int queueBuffer(ANativeWindow* window, ANativeWindowBuffer* buffer); 73 static int query(const ANativeWindow* window, int what, int* value); 74 static int perform(ANativeWindow* window, int operation, ...);
|
H A D | EGLUtils.h | 45 EGLNativeWindowType window,
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
H A D | BridgeWindowSession.java | 66 public boolean performHapticFeedback(IWindow window, int effectId, boolean always) { argument 88 public void performDeferredDestroy(IWindow window) { argument 92 public boolean outOfMemory(IWindow window) throws RemoteException { argument 96 public void getDisplayFrame(IWindow window, Rect outDisplayFrame) { argument 112 public void setInsets(IWindow window, int touchable, Rect contentInsets, argument 117 public IBinder prepareDrag(IWindow window, int flags, argument 124 public boolean performDrag(IWindow window, IBinder dragToken, argument 132 public void reportDropResult(IWindow window, boolean consumed) throws RemoteException { argument 136 public void dragRecipientEntered(IWindow window) throws RemoteException { argument 140 public void dragRecipientExited(IWindow window) throw argument 144 setWallpaperPosition(IBinder window, float x, float y, float xStep, float yStep) argument 149 wallpaperOffsetsComplete(IBinder window) argument 153 sendWallpaperCommand(IBinder window, String action, int x, int y, int z, Bundle extras, boolean sync) argument 159 wallpaperCommandComplete(IBinder window, Bundle result) argument [all...] |
/frameworks/base/core/java/android/database/sqlite/ |
H A D | SQLiteQuery.java | 75 * @param window The window to fill into 78 /* package */ int fillWindow(CursorWindow window) { argument 84 window.acquireReference(); 85 int startPos = window.getStartPosition(); 86 int numRows = nativeFillWindow(nHandle, nStatement, window.mWindowPtr, 92 + " ms: window=\"" + window 95 + ", filledRows=" + window.getNumRows() 115 window [all...] |
/frameworks/base/services/surfaceflinger/tests/surface/ |
H A D | surface.cpp | 51 ANativeWindow* window = surface.get(); local 53 printf("window=%p\n", window); 55 int err = native_window_set_buffer_count(window, 8); 59 window->dequeueBuffer(window, &buffer);
|
/frameworks/base/libs/binder/ |
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...] |
/frameworks/base/libs/ui/ |
H A D | EGLUtils.cpp | 103 EGLNativeWindowType window, 109 if (!window) 112 if ((err = window->query(window, NATIVE_WINDOW_FORMAT, &format)) < 0) { 100 selectConfigForNativeWindow( EGLDisplay dpy, EGLint const* attrs, EGLNativeWindowType window, EGLConfig* outConfig) argument
|
/frameworks/base/tests/BrowserTestPlugin/jni/ |
H A D | PluginObject.h | 79 NPWindow* window; member in struct:PluginObject
|
/frameworks/base/include/gui/ |
H A D | SurfaceTextureClient.h | 53 static int hook_cancelBuffer(ANativeWindow* window, ANativeWindowBuffer* buffer); 54 static int hook_dequeueBuffer(ANativeWindow* window, ANativeWindowBuffer** buffer); 55 static int hook_lockBuffer(ANativeWindow* window, ANativeWindowBuffer* buffer); 56 static int hook_perform(ANativeWindow* window, int operation, ...); 57 static int hook_query(const ANativeWindow* window, int what, int* value); 58 static int hook_queueBuffer(ANativeWindow* window, ANativeWindowBuffer* buffer); 59 static int hook_setSwapInterval(ANativeWindow* window, int interval); 139 // mDefaultWidth is default width of the window, regardless of the 143 // mDefaultHeight is default width of the window, regardless of the 148 // window [all...] |