Home
last modified time | relevance | path

Searched refs:window (Results 1 – 25 of 233) sorted by relevance

12345678910

/frameworks/base/core/tests/coretests/src/android/database/
DCursorWindowTest.java39 CursorWindow window = new CursorWindow("MyWindow"); in testConstructor_WithName() local
40 assertEquals("MyWindow", window.getName()); in testConstructor_WithName()
41 assertEquals(0, window.getStartPosition()); in testConstructor_WithName()
42 window.close(); in testConstructor_WithName()
47 CursorWindow window = new CursorWindow(""); in testConstructorWithEmptyName() local
48 assertEquals("<unnamed>", window.getName()); in testConstructorWithEmptyName()
49 assertEquals(0, window.getStartPosition()); in testConstructorWithEmptyName()
50 window.close(); in testConstructorWithEmptyName()
55 CursorWindow window = new CursorWindow(null); in testConstructorWithNullName() local
56 assertEquals("<unnamed>", window.getName()); in testConstructorWithNullName()
[all …]
/frameworks/base/native/android/
Dnative_window.cpp35 void ANativeWindow_acquire(ANativeWindow* window) { in ANativeWindow_acquire() argument
36 window->incStrong((void*)ANativeWindow_acquire); in ANativeWindow_acquire()
39 void ANativeWindow_release(ANativeWindow* window) { in ANativeWindow_release() argument
40 window->decStrong((void*)ANativeWindow_acquire); in ANativeWindow_release()
43 static int32_t getWindowProp(ANativeWindow* window, int what) { in getWindowProp() argument
45 int res = window->query(window, what, &value); in getWindowProp()
49 int32_t ANativeWindow_getWidth(ANativeWindow* window) { in ANativeWindow_getWidth() argument
50 return getWindowProp(window, NATIVE_WINDOW_WIDTH); in ANativeWindow_getWidth()
53 int32_t ANativeWindow_getHeight(ANativeWindow* window) { in ANativeWindow_getHeight() argument
54 return getWindowProp(window, NATIVE_WINDOW_HEIGHT); in ANativeWindow_getHeight()
[all …]
/frameworks/base/core/jni/
Dandroid_database_CursorWindow.cpp67 CursorWindow* window; in nativeCreate() local
68 status_t status = CursorWindow::create(name, cursorWindowSize, &window); in nativeCreate()
69 if (status || !window) { in nativeCreate()
75 LOG_WINDOW("nativeInitializeEmpty: window = %p", window); in nativeCreate()
76 return reinterpret_cast<jint>(window); in nativeCreate()
82 CursorWindow* window; in nativeCreateFromParcel() local
83 status_t status = CursorWindow::createFromParcel(parcel, &window); in nativeCreateFromParcel()
84 if (status || !window) { in nativeCreateFromParcel()
90 window->getNumRows(), window->getNumColumns(), window); in nativeCreateFromParcel()
91 return reinterpret_cast<jint>(window); in nativeCreateFromParcel()
[all …]
Dandroid_view_TextureView.cpp91 static int32_t native_window_lock(ANativeWindow* window, ANativeWindow_Buffer* outBuffer, in native_window_lock() argument
93 return window->perform(window, NATIVE_WINDOW_LOCK, outBuffer, inOutDirtyBounds); in native_window_lock()
96 static int32_t native_window_unlockAndPost(ANativeWindow* window) { in native_window_unlockAndPost() argument
97 return window->perform(window, NATIVE_WINDOW_UNLOCK_AND_POST); in native_window_unlockAndPost()
104 sp<ANativeWindow> window = new Surface(producer, true); in android_view_TextureView_createNativeWindow() local
106 window->incStrong((void*)android_view_TextureView_createNativeWindow); in android_view_TextureView_createNativeWindow()
107 SET_INT(textureView, gTextureViewClassInfo.nativeWindow, jint(window.get())); in android_view_TextureView_createNativeWindow()
116 sp<ANativeWindow> window(nativeWindow); in android_view_TextureView_destroyNativeWindow() local
117 window->decStrong((void*)android_view_TextureView_createNativeWindow); in android_view_TextureView_destroyNativeWindow()
150 sp<ANativeWindow> window((ANativeWindow*) nativeWindow); in android_view_TextureView_lockCanvas() local
[all …]
/frameworks/av/media/libstagefright/codecs/mp3dec/src/
Dpvmp3_mdct_18.cpp132 void pvmp3_mdct_18(int32 vec[], int32 *history, const int32 *window) in pvmp3_mdct_18() argument
198 vec[ i] = fxp_mac32_Q32(tmp, (vec[i+10]), window[ i]); in pvmp3_mdct_18()
208 vec[ 6] = fxp_mac32_Q32(tmp, vec[16] << 1, window[ i]); in pvmp3_mdct_18()
215 vec[ 7] = fxp_mac32_Q32(tmp, tmp4 << 1, window[ 7]); in pvmp3_mdct_18()
217 vec[ 8] = fxp_mac32_Q32(tmp1, vec[17] << 1, window[ 8]); in pvmp3_mdct_18()
222 vec[ 9] = fxp_mac32_Q32(tmp, vec[17] << 1, window[ 9]); in pvmp3_mdct_18()
224 vec[17] = fxp_mac32_Q32(tmp1, vec[10] << 1, window[17]); in pvmp3_mdct_18()
226 vec[16] = fxp_mac32_Q32(tmp2, vec[11] << 1, window[16]); in pvmp3_mdct_18()
230 vec[15] = fxp_mac32_Q32(tmp1, vec[12] << 1, window[15]); in pvmp3_mdct_18()
232 vec[14] = fxp_mac32_Q32(tmp2, vec[13] << 1, window[14]); in pvmp3_mdct_18()
[all …]
Dpvmp3_get_scale_factors.cpp140 int32 window; in pvmp3_get_scale_factors() local
154 for (window = 0; window < 3; window++) in pvmp3_get_scale_factors()
156 … scalefac->s[window][sfb] = getNbits(pMainData, slen[0][gr_info->scalefac_compress]); in pvmp3_get_scale_factors()
161 for (window = 0; window < 3; window++) in pvmp3_get_scale_factors()
163 … scalefac->s[window][sfb] = getNbits(pMainData, slen[1][gr_info->scalefac_compress]); in pvmp3_get_scale_factors()
173 for (window = 0; window < 3; window++) in pvmp3_get_scale_factors()
175 … scalefac->s[window][sfb] = getNbits(pMainData, slen[i][gr_info->scalefac_compress]); in pvmp3_get_scale_factors()
Dpvmp3_mpeg2_get_scale_factors.cpp129 int32 window; in pvmp3_mpeg2_get_scale_factors() local
156 for (window = 0; window < 3; window++) in pvmp3_mpeg2_get_scale_factors()
158 scalefac->s[window][sfb] = scalefac_buffer[k]; in pvmp3_mpeg2_get_scale_factors()
178 for (window = 0; window < 3; window++) in pvmp3_mpeg2_get_scale_factors()
180 scalefac->s[window][sfb] = scalefac_buffer[k]; in pvmp3_mpeg2_get_scale_factors()
/frameworks/base/core/java/android/view/
DIWindowSession.aidl38 int add(IWindow window, int seq, in WindowManager.LayoutParams attrs, in add() argument
41 int addToDisplay(IWindow window, int seq, in WindowManager.LayoutParams attrs, in addToDisplay() argument
44 int addWithoutInputChannel(IWindow window, int seq, in WindowManager.LayoutParams attrs, in addWithoutInputChannel() argument
46 … int addToDisplayWithoutInputChannel(IWindow window, int seq, in WindowManager.LayoutParams attrs, in addToDisplayWithoutInputChannel() argument
48 void remove(IWindow window); in remove() argument
89 int relayout(IWindow window, int seq, in WindowManager.LayoutParams attrs, in relayout() argument
99 void performDeferredDestroy(IWindow window); in performDeferredDestroy() argument
104 boolean outOfMemory(IWindow window); in outOfMemory() argument
111 void setTransparentRegion(IWindow window, in Region region); in setTransparentRegion() argument
123 void setInsets(IWindow window, int touchableInsets, in Rect contentInsets, in setInsets() argument
[all …]
/frameworks/base/services/java/com/android/server/wm/
DSession.java152 public int add(IWindow window, int seq, WindowManager.LayoutParams attrs, in add() argument
154 return addToDisplay(window, seq, attrs, viewVisibility, Display.DEFAULT_DISPLAY, in add()
159 public int addToDisplay(IWindow window, int seq, WindowManager.LayoutParams attrs, in addToDisplay() argument
162 return mService.addWindow(this, window, seq, attrs, viewVisibility, displayId, in addToDisplay()
167 public int addWithoutInputChannel(IWindow window, int seq, WindowManager.LayoutParams attrs, in addWithoutInputChannel() argument
169 return addToDisplayWithoutInputChannel(window, seq, attrs, viewVisibility, in addWithoutInputChannel()
174 …public int addToDisplayWithoutInputChannel(IWindow window, int seq, WindowManager.LayoutParams att… in addToDisplayWithoutInputChannel() argument
176 return mService.addWindow(this, window, seq, attrs, viewVisibility, displayId, in addToDisplayWithoutInputChannel()
180 public void remove(IWindow window) { in remove() argument
181 mService.removeWindow(this, window); in remove()
[all …]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgeWindowSession.java84 public boolean performHapticFeedback(IWindow window, int effectId, boolean always) { in performHapticFeedback() argument
97 public void performDeferredDestroy(IWindow window) { in performDeferredDestroy() argument
102 public boolean outOfMemory(IWindow window) throws RemoteException { in outOfMemory() argument
107 public void getDisplayFrame(IWindow window, Rect outDisplayFrame) { in getDisplayFrame() argument
127 public void setInsets(IWindow window, int touchable, Rect contentInsets, in setInsets() argument
133 public IBinder prepareDrag(IWindow window, int flags, in prepareDrag() argument
141 public boolean performDrag(IWindow window, IBinder dragToken, in performDrag() argument
150 public void reportDropResult(IWindow window, boolean consumed) throws RemoteException { in reportDropResult() argument
155 public void dragRecipientEntered(IWindow window) throws RemoteException { in dragRecipientEntered() argument
160 public void dragRecipientExited(IWindow window) throws RemoteException { in dragRecipientExited() argument
[all …]
/frameworks/base/core/java/android/database/
DCursorToBulkCursorAdaptor.java149 d.window = mCursor.getWindow(); in getBulkCursorDescriptor()
150 if (d.window != null) { in getBulkCursorDescriptor()
153 d.window.acquireReference(); in getBulkCursorDescriptor()
169 CursorWindow window = mCursor.getWindow(); in getWindow() local
170 if (window != null) { in getWindow()
173 window = mFilledWindow; in getWindow()
174 if (window == null) { in getWindow()
176 window = mFilledWindow; in getWindow()
177 } else if (position < window.getStartPosition() in getWindow()
178 || position >= window.getStartPosition() + window.getNumRows()) { in getWindow()
[all …]
/frameworks/native/include/android/
Dnative_window.h63 void ANativeWindow_acquire(ANativeWindow* window);
68 void ANativeWindow_release(ANativeWindow* window);
74 int32_t ANativeWindow_getWidth(ANativeWindow* window);
80 int32_t ANativeWindow_getHeight(ANativeWindow* window);
86 int32_t ANativeWindow_getFormat(ANativeWindow* window);
102 int32_t ANativeWindow_setBuffersGeometry(ANativeWindow* window,
113 int32_t ANativeWindow_lock(ANativeWindow* window, ANativeWindow_Buffer* outBuffer,
120 int32_t ANativeWindow_unlockAndPost(ANativeWindow* window);
/frameworks/testing/uiautomator_test_libraries/src/com/android/uiautomator/common/
DUiWatchers.java47 UiObject window = new UiObject(new UiSelector().className( in registerAnrAndCrashWatchers()
50 if (window.exists()) { in registerAnrAndCrashWatchers()
52 errorText = window.getText(); in registerAnrAndCrashWatchers()
68 UiObject window = new UiObject(new UiSelector().packageName("android") in registerAnrAndCrashWatchers()
70 if (window.exists()) { in registerAnrAndCrashWatchers()
73 errorText = window.getText(); in registerAnrAndCrashWatchers()
88 UiObject window = new UiObject(new UiSelector().className( in registerAnrAndCrashWatchers()
90 if (window.exists()) { in registerAnrAndCrashWatchers()
93 errorText = window.getText(); in registerAnrAndCrashWatchers()
108 UiObject window = new UiObject(new UiSelector().packageName("android") in registerAnrAndCrashWatchers()
[all …]
/frameworks/native/include/ui/
DFramebufferNativeWindow.h68 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/media/mca/filterfw/jni/
Djni_gl_environment.cpp42 NativeWindowHandle(ANativeWindow* window) : window_(window) { in NativeWindowHandle() argument
142 ANativeWindow* window = ANativeWindow_fromSurface(env, surface); in Java_android_filterfw_core_GLEnvironment_nativeAddSurface() local
143 if (!window) { in Java_android_filterfw_core_GLEnvironment_nativeAddSurface()
148 NativeWindowHandle* winHandle = new NativeWindowHandle(window); in Java_android_filterfw_core_GLEnvironment_nativeAddSurface()
175 window, in Java_android_filterfw_core_GLEnvironment_nativeAddSurface()
204 ANativeWindow* window = ANativeWindow_fromSurface(env, surface); in Java_android_filterfw_core_GLEnvironment_nativeAddSurfaceWidthHeight() local
205 if (!window) { in Java_android_filterfw_core_GLEnvironment_nativeAddSurfaceWidthHeight()
215 ANativeWindow_setBuffersGeometry(window, width, height, 0); in Java_android_filterfw_core_GLEnvironment_nativeAddSurfaceWidthHeight()
217 NativeWindowHandle* winHandle = new NativeWindowHandle(window); in Java_android_filterfw_core_GLEnvironment_nativeAddSurfaceWidthHeight()
244 window, in Java_android_filterfw_core_GLEnvironment_nativeAddSurfaceWidthHeight()
[all …]
/frameworks/native/include/gui/
DSurface.h90 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,
/frameworks/native/libs/ui/
DFramebufferNativeWindow.cpp196 ANativeWindow* window, int interval) in setSwapInterval() argument
198 framebuffer_device_t* fb = getSelf(window)->fbDev; in setSwapInterval()
220 int FramebufferNativeWindow::dequeueBuffer_DEPRECATED(ANativeWindow* window, in dequeueBuffer_DEPRECATED() argument
224 int result = dequeueBuffer(window, buffer, &fenceFd); in dequeueBuffer_DEPRECATED()
235 int FramebufferNativeWindow::dequeueBuffer(ANativeWindow* window, in dequeueBuffer() argument
238 FramebufferNativeWindow* self = getSelf(window); in dequeueBuffer()
262 int FramebufferNativeWindow::lockBuffer_DEPRECATED(ANativeWindow* window, in lockBuffer_DEPRECATED() argument
268 int FramebufferNativeWindow::queueBuffer_DEPRECATED(ANativeWindow* window, in queueBuffer_DEPRECATED() argument
271 return queueBuffer(window, buffer, -1); in queueBuffer_DEPRECATED()
274 int FramebufferNativeWindow::queueBuffer(ANativeWindow* window, in queueBuffer() argument
[all …]
/frameworks/base/libs/androidfw/
DCursorWindow.cpp61 CursorWindow* window = new CursorWindow(name, ashmemFd, in create() local
63 result = window->clear(); in create()
67 window->mHeader->freeOffset, in create()
68 window->mHeader->numRows, in create()
69 window->mHeader->numColumns, in create()
70 window->mSize, window->mData); in create()
71 *outCursorWindow = window; in create()
74 delete window; in create()
105 CursorWindow* window = new CursorWindow(name, dupAshmemFd, in createFromParcel() local
109 window->mHeader->freeOffset, in createFromParcel()
[all …]
/frameworks/native/opengl/tools/glgen/stubs/egl/
DeglCreateWindowSurface.cpp15 android::sp<ANativeWindow> window; in android_eglCreateWindowSurface() local
37 window = android::android_view_Surface_getNativeWindow(_env, win); in android_eglCreateWindowSurface()
39 if (window == NULL) in android_eglCreateWindowSurface()
63 (EGLNativeWindowType)window.get(), in android_eglCreateWindowSurface()
92 android::sp<ANativeWindow> window; in android_eglCreateWindowSurfaceTexture() local
119 window = new android::Surface(producer); in android_eglCreateWindowSurfaceTexture()
121 if (window == NULL) in android_eglCreateWindowSurfaceTexture()
145 (EGLNativeWindowType)window.get(), in android_eglCreateWindowSurfaceTexture()
/frameworks/native/opengl/libagl/
Dvertex.cpp71 v->window.w = rw; in perspective()
72 v->window.x = gglMulAddx(gglMulx(v->clip.x, rw, 16), m[ 0], m[12], 28); in perspective()
73 v->window.y = gglMulAddx(gglMulx(v->clip.y, rw, 16), m[ 5], m[13], 28); in perspective()
74 v->window.x = TRI_FROM_FIXED(v->window.x); in perspective()
75 v->window.y = TRI_FROM_FIXED(v->window.y); in perspective()
77 v->window.z = gglMulAddx(gglMulx(v->clip.z, rw, 16), m[10], m[14], 28); in perspective()
145 v->window.x = TRI_FROM_FIXED(v->clip.x); in ogles_vertex_perspective2D()
146 v->window.y = TRI_FROM_FIXED(v->clip.y); in ogles_vertex_perspective2D()
147 v->window.z = v->clip.z; in ogles_vertex_perspective2D()
148 v->window.w = v->clip.w << 12; in ogles_vertex_perspective2D()
/frameworks/base/core/java/android/database/sqlite/
DSQLiteQuery.java57 int fillWindow(CursorWindow window, int startPos, int requiredPos, boolean countAllRows) { in fillWindow() argument
60 window.acquireReference(); in fillWindow()
63 window, startPos, requiredPos, countAllRows, getConnectionFlags(), in fillWindow()
73 window.releaseReference(); in fillWindow()
/frameworks/native/opengl/libs/EGL/
Degl_object.cpp75 ANativeWindow* const window = win.get(); in ~egl_surface_t() local
76 if (window != NULL) { in ~egl_surface_t()
77 native_window_set_buffers_format(window, 0); in ~egl_surface_t()
78 if (native_window_api_disconnect(window, NATIVE_WINDOW_API_EGL)) { in ~egl_surface_t()
79 ALOGW("EGLNativeWindowType %p disconnect failed", window); in ~egl_surface_t()
/frameworks/base/docs/html/tools/debugging/
Ddebugging-ui.jd16 <li><a href="#runhv">Running Hierarchy Viewer and choosing a window</a></li>
17 <li><a href="#viewhierarchy">About the View Hierarchy window</a></li>
28 <li><a href="#aboutpixelperfect">About the Pixel Perfect window</a></li>
62 provides a visual representation of the layout's View hierarchy (the View Hierarchy window)
64 and a magnified view of the display (the Pixel Perfect window) to closely examine the pixels
74 <h3 id="runhv">Running Hierarchy Viewer and choosing a window</h3>
97 The first window you see displays a list of devices and emulators. To expand the list
101 Activity and system Activity objects. A screenshot of this window appears in
106 hierarchy using the View Hierarchy window, or look at a magnified image of the UI using
107 the Pixel Perfect window.
[all …]
/frameworks/native/opengl/tests/include/
DEGLUtils.h48 EGLNativeWindowType window,
124 EGLNativeWindowType window, in selectConfigForNativeWindow() argument
130 if (!window) in selectConfigForNativeWindow()
133 if ((err = window->query(window, NATIVE_WINDOW_FORMAT, &format)) < 0) { in selectConfigForNativeWindow()
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/
DBrightnessDialog.java69 Window window = getWindow(); in onCreate() local
70 window.setType(WindowManager.LayoutParams.TYPE_VOLUME_OVERLAY); in onCreate()
71 window.getAttributes().privateFlags |= in onCreate()
73 window.clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND); in onCreate()
74 window.requestFeature(Window.FEATURE_NO_TITLE); in onCreate()

12345678910