/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 | 33 * System private per-application interface to the window manager. 38 int add(IWindow window, int seq, in WindowManager.LayoutParams attrs, 41 int addToDisplay(IWindow window, int seq, in WindowManager.LayoutParams attrs, 44 int addWithoutInputChannel(IWindow window, int seq, in WindowManager.LayoutParams attrs, 46 int addToDisplayWithoutInputChannel(IWindow window, int seq, in WindowManager.LayoutParams attrs, 48 void remove(IWindow window); 51 * Change the parameters of a window. You supply the 52 * new parameters, it returns the new frame of the window on screen (the 53 * position should be ignored) and surface of the window. The surface 54 * will be invalid if the window i [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 | 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. 149 d.window = mCursor.getWindow(); 150 if (d.window != null) { 151 // Acquire a reference to the window because its reference count will be 153 d.window.acquireReference(); 169 CursorWindow window = mCursor.getWindow(); 170 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/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...] |
/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 | 90 static int32_t native_window_lock(ANativeWindow* window, ANativeWindow_Buffer* outBuffer, argument 92 return window->perform(window, NATIVE_WINDOW_LOCK, outBuffer, inOutDirtyBounds); 95 static int32_t native_window_unlockAndPost(ANativeWindow* window) { argument 96 return window->perform(window, NATIVE_WINDOW_UNLOCK_AND_POST); 103 sp<ANativeWindow> window = new Surface(producer, true); local 105 window->incStrong((void*)android_view_TextureView_createNativeWindow); 106 SET_INT(textureView, gTextureViewClassInfo.nativeWindow, jint(window.get())); 115 sp<ANativeWindow> window(nativeWindo [all...] |
/frameworks/testing/uiautomator_test_libraries/src/com/android/uiautomator/common/ |
H A D | UiWatchers.java | 47 UiObject window = new UiObject(new UiSelector().className( 50 if (window.exists()) { 52 errorText = window.getText(); 68 UiObject window = new UiObject(new UiSelector().packageName("android") 70 if (window.exists()) { 73 errorText = window.getText(); 88 UiObject window = new UiObject(new UiSelector().className( 90 if (window.exists()) { 93 errorText = window.getText(); 108 UiObject window [all...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
H A D | BridgeWindowSession.java | 84 public boolean performHapticFeedback(IWindow window, int effectId, boolean always) { argument 97 public void performDeferredDestroy(IWindow window) { argument 102 public boolean outOfMemory(IWindow window) throws RemoteException { argument 107 public void getDisplayFrame(IWindow window, Rect outDisplayFrame) { argument 127 public void setInsets(IWindow window, int touchable, Rect contentInsets, argument 133 public IBinder prepareDrag(IWindow window, int flags, argument 141 public boolean performDrag(IWindow window, IBinder dragToken, argument 150 public void reportDropResult(IWindow window, boolean consumed) throws RemoteException { argument 155 public void dragRecipientEntered(IWindow window) throws RemoteException { argument 160 public void dragRecipientExited(IWindow window) throw argument 165 setWallpaperPosition(IBinder window, float x, float y, float xStep, float yStep) argument 171 wallpaperOffsetsComplete(IBinder window) argument 176 sendWallpaperCommand(IBinder window, String action, int x, int y, int z, Bundle extras, boolean sync) argument 183 wallpaperCommandComplete(IBinder window, Bundle result) argument 188 setUniverseTransform(IBinder window, float alpha, float offx, float offy, float dsdx, float dtdx, float dsdy, float dtdy) argument 200 onRectangleOnScreenRequested(IBinder window, Rect rectangle, boolean immediate) argument 205 getWindowId(IBinder window) argument [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/services/java/com/android/server/wm/ |
H A D | Session.java | 52 * Session object per process that is interacting with the window manager. 152 public int add(IWindow window, int seq, WindowManager.LayoutParams attrs, argument 154 return addToDisplay(window, seq, attrs, viewVisibility, Display.DEFAULT_DISPLAY, 159 public int addToDisplay(IWindow window, int seq, WindowManager.LayoutParams attrs, argument 162 return mService.addWindow(this, window, seq, attrs, viewVisibility, displayId, 167 public int addWithoutInputChannel(IWindow window, int seq, WindowManager.LayoutParams attrs, argument 169 return addToDisplayWithoutInputChannel(window, seq, attrs, viewVisibility, 174 public int addToDisplayWithoutInputChannel(IWindow window, int seq, WindowManager.LayoutParams attrs, argument 176 return mService.addWindow(this, window, seq, attrs, viewVisibility, displayId, 180 public void remove(IWindow window) { argument 184 relayout(IWindow window, int seq, WindowManager.LayoutParams attrs, int requestedWidth, int requestedHeight, int viewFlags, int flags, Rect outFrame, Rect outOverscanInsets, Rect outContentInsets, Rect outVisibleInsets, Configuration outConfig, Surface outSurface) argument 199 performDeferredDestroy(IWindow window) argument 203 outOfMemory(IWindow window) argument 207 setTransparentRegion(IWindow window, Region region) argument 211 setInsets(IWindow window, int touchableInsets, Rect contentInsets, Rect visibleInsets, Region touchableArea) argument 217 getDisplayFrame(IWindow window, Rect outDisplayFrame) argument 221 finishDrawing(IWindow window) argument 239 performHapticFeedback(IWindow window, int effectId, boolean always) argument 254 prepareDrag(IWindow window, int flags, int width, int height, Surface outSurface) argument 260 performDrag(IWindow window, IBinder dragToken, float touchX, float touchY, float thumbCenterX, float thumbCenterY, ClipData data) argument 339 reportDropResult(IWindow window, boolean consumed) argument 379 dragRecipientEntered(IWindow window) argument 385 dragRecipientExited(IWindow window) argument 391 setWallpaperPosition(IBinder window, float x, float y, float xStep, float yStep) argument 404 wallpaperOffsetsComplete(IBinder window) argument 408 sendWallpaperCommand(IBinder window, String action, int x, int y, int z, Bundle extras, boolean sync) argument 422 wallpaperCommandComplete(IBinder window, Bundle result) argument 426 setUniverseTransform(IBinder window, float alpha, float offx, float offy, float dsdx, float dtdx, float dsdy, float dtdy) argument 451 getWindowId(IBinder window) argument [all...] |
/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 | Surface.h | 90 static int hook_cancelBuffer(ANativeWindow* window, 92 static int hook_dequeueBuffer(ANativeWindow* window, 94 static int hook_perform(ANativeWindow* window, int operation, ...); 95 static int hook_query(const ANativeWindow* window, int what, int* value); 96 static int hook_queueBuffer(ANativeWindow* window, 98 static int hook_setSwapInterval(ANativeWindow* window, int interval); 100 static int hook_cancelBuffer_DEPRECATED(ANativeWindow* window, 102 static int hook_dequeueBuffer_DEPRECATED(ANativeWindow* window, 104 static int hook_lockBuffer_DEPRECATED(ANativeWindow* window, 106 static int hook_queueBuffer_DEPRECATED(ANativeWindow* window, [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/ |
H A D | BrightnessDialog.java | 69 Window window = getWindow(); 70 window.setType(WindowManager.LayoutParams.TYPE_VOLUME_OVERLAY); 71 window.getAttributes().privateFlags |= 73 window.clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND); 74 window.requestFeature(Window.FEATURE_NO_TITLE);
|
/frameworks/native/opengl/libs/EGL/ |
H A D | egl_object.cpp | 75 ANativeWindow* const window = win.get(); local 76 if (window != NULL) { 77 native_window_set_buffers_format(window, 0); 78 if (native_window_api_disconnect(window, NATIVE_WINDOW_API_EGL)) { 79 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_view_Surface_getNativeWindow(_env, win); 39 if (window == NULL) 63 (EGLNativeWindowType)window.get(), 92 android::sp<ANativeWindow> window; local 119 window = new android::Surface(producer); 121 if (window == NULL) 145 (EGLNativeWindowType)window.get(),
|
/frameworks/native/services/surfaceflinger/EventLog/ |
H A D | EventLog.h | 33 static void logFrameDurations(const String8& window, 77 void doLogFrameDurations(const String8& window, const int32_t* durations,
|