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

123

/frameworks/base/core/tests/coretests/src/android/database/
H A DCursorWindowTest.java51 // fill window
52 CursorWindow window = new CursorWindow(false);
53 cursor.fillWindow(0, window);
55 // read from cursor window
59 String s = window.getString(i, j);
66 // test cursor window handle startpos != 0
67 window.clear();
68 cursor.fillWindow(1, window);
69 // read from cursor from window
73 String s = window
95 doTestValues(CursorWindow window) argument
[all...]
/frameworks/base/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...]
H A Dnative_activity.h145 * Focus has changed in this NativeActivity's window. This is often used,
151 * The drawing window for this native activity has been created. You
152 * can use the given native window object to start drawing.
154 void (*onNativeWindowCreated)(ANativeActivity* activity, ANativeWindow* window);
157 * The drawing window for this native activity has been resized. You should
158 * retrieve the new size from the window and ensure that your rendering in
161 void (*onNativeWindowResized)(ANativeActivity* activity, ANativeWindow* window);
164 * The drawing window for this native activity needs to be redrawn. To avoid
167 * drawing their window in its current state.
169 void (*onNativeWindowRedrawNeeded)(ANativeActivity* activity, ANativeWindow* window);
[all...]
/frameworks/base/native/android/
H A Dnative_window.cpp34 void ANativeWindow_acquire(ANativeWindow* window) { argument
35 window->incStrong((void*)ANativeWindow_acquire);
38 void ANativeWindow_release(ANativeWindow* window) { argument
39 window->decStrong((void*)ANativeWindow_acquire);
42 static int32_t getWindowProp(ANativeWindow* window, int what) { argument
44 int res = window->query(window, what, &value);
48 int32_t ANativeWindow_getWidth(ANativeWindow* window) { argument
49 return getWindowProp(window, NATIVE_WINDOW_WIDTH);
52 int32_t ANativeWindow_getHeight(ANativeWindow* window) { argument
56 ANativeWindow_getFormat(ANativeWindow* window) argument
60 ANativeWindow_setBuffersGeometry(ANativeWindow* window, int32_t width, int32_t height, int32_t format) argument
66 ANativeWindow_lock(ANativeWindow* window, ANativeWindow_Buffer* outBuffer, ARect* inOutDirtyBounds) argument
94 ANativeWindow_unlockAndPost(ANativeWindow* window) argument
[all...]
/frameworks/base/core/java/android/view/
H A DIWindowSession.aidl31 * System private per-application interface to the window manager.
36 int add(IWindow window, in WindowManager.LayoutParams attrs,
39 int addWithoutInputChannel(IWindow window, in WindowManager.LayoutParams attrs,
41 void remove(IWindow window);
44 * Change the parameters of a window. You supply the
45 * new parameters, it returns the new frame of the window on screen (the
46 * position should be ignored) and surface of the window. The surface
47 * will be invalid if the window is currently hidden, else you can use it
48 * to draw the window's contents.
50 * @param window Th
[all...]
/frameworks/base/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/include/ui/egl/
H A Dandroid_natives.h155 int (*setSwapInterval)(struct ANativeWindow* window,
165 int (*dequeueBuffer)(struct ANativeWindow* window,
175 int (*lockBuffer)(struct ANativeWindow* window,
185 int (*queueBuffer)(struct ANativeWindow* window,
189 * hook used to retrieve information about the native window.
193 int (*query)(struct ANativeWindow* window,
218 int (*perform)(struct ANativeWindow* window,
227 int (*cancelBuffer)(struct ANativeWindow* window,
249 ANativeWindow* window, int usage)
251 return window
248 native_window_set_usage( ANativeWindow* window, int usage) argument
260 native_window_connect( ANativeWindow* window, int api) argument
272 native_window_disconnect( ANativeWindow* window, int api) argument
290 native_window_set_crop( ANativeWindow* window, android_native_rect_t const * crop) argument
301 native_window_set_buffer_count( ANativeWindow* window, size_t bufferCount) argument
319 native_window_set_buffers_geometry( ANativeWindow* window, int w, int h, int format) argument
332 native_window_set_buffers_transform( ANativeWindow* window, int transform) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_database_CursorWindow.cpp44 #define SET_WINDOW(env, object, window) (env->SetIntField(object, gWindowField, (int)window))
57 CursorWindow * window; local
59 window = new CursorWindow(MAX_WINDOW_SIZE);
60 if (!window) {
61 jniThrowException(env, "java/lang/RuntimeException", "No memory for native window object");
65 if (!window->initBuffer(localOnly)) {
66 jniThrowException(env, "java/lang/IllegalStateException", "Couldn't init cursor window");
67 delete window;
71 LOG_WINDOW("native_init_empty: window
83 CursorWindow * window = new CursorWindow(); local
100 CursorWindow * window = GET_WINDOW(env, object); local
113 CursorWindow * window = GET_WINDOW(env, object); local
124 CursorWindow * window = GET_WINDOW(env, object); local
149 CursorWindow * window = GET_WINDOW(env, object); local
199 CursorWindow * window = GET_WINDOW(env, object); local
231 CursorWindow * window = GET_WINDOW(env, object); local
247 CursorWindow * window = GET_WINDOW(env, object); local
263 CursorWindow * window = GET_WINDOW(env, object); local
279 CursorWindow * window = GET_WINDOW(env, object); local
295 CursorWindow * window = GET_WINDOW(env, object); local
368 CursorWindow * window = GET_WINDOW(env, object); local
443 CursorWindow * window = GET_WINDOW(env, object); local
492 CursorWindow * window = GET_WINDOW(env, object); local
506 CursorWindow * window = GET_WINDOW(env, object); local
512 CursorWindow * window = GET_WINDOW(env, object); local
518 CursorWindow * window = GET_WINDOW(env, object); local
524 CursorWindow * window = GET_WINDOW(env, object); local
556 CursorWindow * window = GET_WINDOW(env, object); local
612 CursorWindow * window = GET_WINDOW(env, object); local
625 CursorWindow * window = GET_WINDOW(env, object); local
638 CursorWindow * window = GET_WINDOW(env, object); local
651 CursorWindow * window = GET_WINDOW(env, object); local
[all...]
H A Dandroid_database_SQLiteQuery.cpp118 CursorWindow * window; local
143 // Get the native window
144 window = get_window_from_object(env, javaWindow);
145 if (!window) {
151 LOG_WINDOW("Window: numRows = %d, size = %d, freeSpace = %d", window->getNumRows(), window->size(), window->freeSpace());
154 if (!window->setNumColumns(numColumns)) {
155 LOGE("Failed to change column count from %d to %d", window->getNumColumns(), numColumns);
182 field_slot_t * fieldDir = window
[all...]
/frameworks/base/include/ui/
H A DFramebufferNativeWindow.h65 static int setSwapInterval(ANativeWindow* window, int interval);
66 static int dequeueBuffer(ANativeWindow* window, android_native_buffer_t** buffer);
67 static int lockBuffer(ANativeWindow* window, android_native_buffer_t* buffer);
68 static int queueBuffer(ANativeWindow* window, android_native_buffer_t* buffer);
69 static int query(ANativeWindow* window, int what, int* value);
70 static int perform(ANativeWindow* window, int operation, ...);
H A DEGLUtils.h45 EGLNativeWindowType window,
/frameworks/ex/common/java/com/android/common/
H A DArrayListCursor.java65 public void fillWindow(int position, CursorWindow window) { argument
70 window.acquireReference();
74 window.clear();
75 window.setStartPosition(position);
77 window.setNumColumns(columnNum);
78 while (moveToNext() && window.allocRow()) {
84 if (!window.putBlob(field, mPos, i)) {
85 window.freeLastRow();
90 if (!window.putString(field, mPos, i)) {
91 window
[all...]
/frameworks/base/services/surfaceflinger/tests/surface/
H A Dsurface.cpp38 ANativeWindow* window = surface.get(); local
40 printf("window=%p\n", window);
42 int err = native_window_set_buffer_count(window, 8);
46 window->dequeueBuffer(window, &buffer);
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
H A DBridgeWindowSession.java60 public boolean performHapticFeedback(IWindow window, int effectId, boolean always) { argument
72 public void getDisplayFrame(IWindow window, Rect outDisplayFrame) { argument
88 public void setWallpaperPosition(IBinder window, float x, float y, argument
93 public void wallpaperOffsetsComplete(IBinder window) { argument
97 public Bundle sendWallpaperCommand(IBinder window, String action, int x, int y, argument
103 public void wallpaperCommandComplete(IBinder window, Bundle result) { argument
/frameworks/base/core/java/android/database/sqlite/
H A DSQLiteQuery.java58 * @param window The window to fill into
61 /* package */ int fillWindow(CursorWindow window, argument
69 window.acquireReference();
70 // if the start pos is not equal to 0, then most likely window is
73 int numRows = native_fill_window(window, window.getStartPosition(), mOffsetIndex,
89 window.releaseReference();
188 private final native int native_fill_window(CursorWindow window, argument
/frameworks/base/core/java/android/database/
H A DCursorToBulkCursorAdaptor.java79 boolean allowWrite, CursorWindow window) {
86 Log.v(TAG, "Cross process cursor has a local window before setWindow in "
90 windowedCursor.setWindow(window);
92 mWindow = window;
93 mCursor.fillWindow(0, window);
149 public int requery(IContentObserver observer, CursorWindow window) { argument
151 ((AbstractWindowedCursor)mCursor).setWindow(window);
165 mCursor.fillWindow(0, window);
166 mWindow = window;
78 CursorToBulkCursorAdaptor(Cursor cursor, IContentObserver observer, String providerName, boolean allowWrite, CursorWindow window) argument
H A DAbstractCursor.java67 * returns a pre-filled window, return NULL if no such window
204 * @param window
206 public void fillWindow(int position, CursorWindow window) { argument
210 window.acquireReference();
214 window.clear();
215 window.setStartPosition(position);
217 window.setNumColumns(columnNum);
218 while (moveToNext() && window.allocRow()) {
222 if (!window
[all...]
/frameworks/base/libs/ui/
H A DEGLUtils.cpp103 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
H A DFramebufferNativeWindow.cpp172 ANativeWindow* window, int interval)
174 framebuffer_device_t* fb = getSelf(window)->fbDev;
186 int FramebufferNativeWindow::dequeueBuffer(ANativeWindow* window, argument
189 FramebufferNativeWindow* self = getSelf(window);
214 int FramebufferNativeWindow::lockBuffer(ANativeWindow* window, argument
217 FramebufferNativeWindow* self = getSelf(window);
234 int FramebufferNativeWindow::queueBuffer(ANativeWindow* window, argument
237 FramebufferNativeWindow* self = getSelf(window);
256 int FramebufferNativeWindow::query(ANativeWindow* window, argument
259 FramebufferNativeWindow* self = getSelf(window);
171 setSwapInterval( ANativeWindow* window, int interval) argument
277 perform(ANativeWindow* window, int operation, ...) argument
[all...]
/frameworks/base/tests/BrowserTestPlugin/jni/
H A DPluginObject.h79 NPWindow* window; member in struct:PluginObject
/frameworks/base/opengl/libagl/
H A Dvertex.cpp56 // [x,y,z]window = vpt * ([x,y,z]clip / clip.w)
57 // [w]window = 1/w
62 // and 1/w (window.w) is in [1/zFar, 1/zNear], usually this
71 v->window.w = rw;
72 v->window.x = gglMulAddx(gglMulx(v->clip.x, rw, 16), m[ 0], m[12], 28);
73 v->window.y = gglMulAddx(gglMulx(v->clip.y, rw, 16), m[ 5], m[13], 28);
74 v->window.x = TRI_FROM_FIXED(v->window.x);
75 v->window.y = TRI_FROM_FIXED(v->window
[all...]
/frameworks/base/opengl/tests/linetex/
H A Dlinetex.cpp49 EGLNativeWindowType window = android_createDisplaySurface(); local
55 dpy, configAttribs, window, &config);
61 surface = eglCreateWindowSurface(dpy, config, window, NULL);

Completed in 349 milliseconds

123