/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 | 36 * Pixel formats that a window can use. 49 * {@link ANativeWindow} is opaque type that provides access to a native window. 85 void ANativeWindow_acquire(ANativeWindow* window); 90 void ANativeWindow_release(ANativeWindow* window); 93 * Return the current width in pixels of the window surface. Returns a 96 int32_t ANativeWindow_getWidth(ANativeWindow* window); 99 * Return the current height in pixels of the window surface. Returns a 102 int32_t ANativeWindow_getHeight(ANativeWindow* window); 105 * Return the current pixel format of the window surface. Returns a 108 int32_t ANativeWindow_getFormat(ANativeWindow* window); [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, 49 void remove(IWindow window); 52 * Change the parameters of a window. You supply the 53 * new parameters, it returns the new frame of the window on screen (the 54 * position should be ignored) and surface of the window. The surface 55 * will be invalid if the window i [all...] |
H A D | WindowInfo.java | 29 * This class represents information about a window from the 30 * window manager to another part of the system. 55 WindowInfo window = sPool.acquire(); 56 if (window == null) { 57 window = new WindowInfo(); 59 return window; 63 WindowInfo window = obtain(); 64 window.type = other.type; 65 window.layer = other.layer; 66 window [all...] |
H A D | FrameMetricsObserver.java | 51 FrameMetricsObserver(@NonNull Window window, @NonNull Looper looper, argument 63 mWindow = new WeakReference<>(window); 70 final Window window = mWindow.get(); 71 if (window != null) { 72 mListener.onFrameMetricsAvailable(window, mFrameMetrics, dropCount);
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/ |
H A D | SystemBarHelper.java | 79 final Window window = dialog.getWindow(); 80 temporarilyDisableDialogFocus(window); 81 addVisibilityFlag(window, DIALOG_IMMERSIVE_FLAGS); 82 addImmersiveFlagsToDecorView(window, DIALOG_IMMERSIVE_FLAGS); 86 window.setNavigationBarColor(0); 87 window.setStatusBarColor(0); 100 public static void hideSystemBars(final Window window) { argument 102 addVisibilityFlag(window, DEFAULT_IMMERSIVE_FLAGS); 103 addImmersiveFlagsToDecorView(window, DEFAULT_IMMERSIVE_FLAGS); 107 window 126 showSystemBars(final Window window, final Context context) argument 157 addVisibilityFlag(final Window window, final int flag) argument 180 removeVisibilityFlag(final Window window, final int flag) argument 188 setBackButtonVisible(final Window window, final boolean visible) argument 223 addImmersiveFlagsToDecorView(final Window window, final int vis) argument 233 removeImmersiveFlagsFromDecorView(final Window window, final int vis) argument 242 getDecorView(Window window, OnDecorViewInstalledListener callback) argument 273 getDecorView(Window window, OnDecorViewInstalledListener callback, int retries) argument 291 temporarilyDisableDialogFocus(final Window window) argument [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 | 27 * then it is assumed to own the window. Otherwise, the adaptor provides a 28 * window to be filled and ensures it gets closed as needed during deactivation 49 * The cursor window that was filled by the cross process cursor in the 51 * This field is only ever non-null when the window has actually be filled. 146 d.window = mCursor.getWindow(); 147 if (d.window != null) { 148 // Acquire a reference to the window because its reference count will be 150 d.window.acquireReference(); 166 CursorWindow window = mCursor.getWindow(); 167 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/support/v17/leanback/api21/android/support/v17/leanback/transition/ |
H A D | TransitionHelperApi21.java | 50 public static Object getSharedElementEnterTransition(Window window) { argument 51 return window.getSharedElementEnterTransition(); 54 public static Object getSharedElementReturnTransition(Window window) { argument 55 return window.getSharedElementReturnTransition(); 58 public static Object getSharedElementExitTransition(Window window) { argument 59 return window.getSharedElementExitTransition(); 62 public static Object getSharedElementReenterTransition(Window window) { argument 63 return window.getSharedElementReenterTransition(); 66 public static Object getEnterTransition(Window window) { argument 67 return window 70 getReturnTransition(Window window) argument 74 getExitTransition(Window window) argument 78 getReenterTransition(Window window) argument [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...] |
/frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/ |
H A D | SystemBarHelperTest.java | 74 final Window window = createWindowWithSystemUiVisibility(0x456); 75 SystemBarHelper.addVisibilityFlag(window, 0x1400); 79 window.getAttributes().systemUiVisibility); 85 final Window window = createWindowWithSystemUiVisibility(0x456); 86 SystemBarHelper.removeVisibilityFlag(window, 0x1400); 90 window.getAttributes().systemUiVisibility); 96 final Window window = createWindowWithSystemUiVisibility(0x456); 97 SystemBarHelper.hideSystemBars(window); 99 assertEquals("DEFAULT_IMMERSIVE_FLAGS should be added to window's systemUiVisibility", 101 window [all...] |
/frameworks/base/core/jni/ |
H A D | android_database_CursorWindow.cpp | 70 CursorWindow* window; local 71 status_t status = CursorWindow::create(name, cursorWindowSize, &window); 72 if (status || !window) { 78 LOG_WINDOW("nativeInitializeEmpty: window = %p", window); 79 return reinterpret_cast<jlong>(window); 85 CursorWindow* window; local 86 status_t status = CursorWindow::createFromParcel(parcel, &window); 87 if (status || !window) { 92 LOG_WINDOW("nativeInitializeFromBinder: numRows = %d, numColumns = %d, window 98 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local 106 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local 112 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local 124 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local 133 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local 139 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local 145 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local 151 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local 157 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local 172 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local 207 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local 299 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local 338 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local 369 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local 400 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local 418 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local 440 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local 454 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local 468 CursorWindow* window = reinterpret_cast<CursorWindow*>(windowPtr); local [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/core/java/com/android/server/wm/ |
H A D | Session.java | 59 * Session object per process that is interacting with the window manager. 163 public int add(IWindow window, int seq, WindowManager.LayoutParams attrs, argument 166 return addToDisplay(window, seq, attrs, viewVisibility, Display.DEFAULT_DISPLAY, 171 public int addToDisplay(IWindow window, int seq, WindowManager.LayoutParams attrs, argument 174 return mService.addWindow(this, window, seq, attrs, viewVisibility, displayId, 179 public int addWithoutInputChannel(IWindow window, int seq, WindowManager.LayoutParams attrs, argument 181 return addToDisplayWithoutInputChannel(window, seq, attrs, viewVisibility, 186 public int addToDisplayWithoutInputChannel(IWindow window, int seq, WindowManager.LayoutParams attrs, argument 188 return mService.addWindow(this, window, seq, attrs, viewVisibility, displayId, 192 public void remove(IWindow window) { argument 197 repositionChild(IWindow window, int left, int top, int right, int bottom, long deferTransactionUntilFrame, Rect outFrame) argument 208 relayout(IWindow window, int seq, WindowManager.LayoutParams attrs, int requestedWidth, int requestedHeight, int viewFlags, int flags, Rect outFrame, Rect outOverscanInsets, Rect outContentInsets, Rect outVisibleInsets, Rect outStableInsets, Rect outsets, Rect outBackdropFrame, Configuration outConfig, Surface outSurface) argument 224 performDeferredDestroy(IWindow window) argument 228 outOfMemory(IWindow window) argument 232 setTransparentRegion(IWindow window, Region region) argument 236 setInsets(IWindow window, int touchableInsets, Rect contentInsets, Rect visibleInsets, Region touchableArea) argument 242 getDisplayFrame(IWindow window, Rect outDisplayFrame) argument 246 finishDrawing(IWindow window) argument 264 performHapticFeedback(IWindow window, int effectId, boolean always) argument 279 prepareDrag(IWindow window, int flags, int width, int height, Surface outSurface) argument 285 performDrag(IWindow window, IBinder dragToken, int touchSource, float touchX, float touchY, float thumbCenterX, float thumbCenterY, ClipData data) argument 368 startMovingTask(IWindow window, float startX, float startY) argument 380 reportDropResult(IWindow window, boolean consumed) argument 448 dragRecipientEntered(IWindow window) argument 454 dragRecipientExited(IWindow window) argument 460 setWallpaperPosition(IBinder window, float x, float y, float xStep, float yStep) argument 473 wallpaperOffsetsComplete(IBinder window) argument 479 setWallpaperDisplayOffset(IBinder window, int x, int y) argument 491 sendWallpaperCommand(IBinder window, String action, int x, int y, int z, Bundle extras, boolean sync) argument 505 wallpaperCommandComplete(IBinder window, Bundle result) argument 522 getWindowId(IBinder window) argument 527 pokeDrawLock(IBinder window) argument 537 updatePointerIcon(IWindow window) argument [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 99 public void repositionChild(IWindow window, int left, int top, int right, int bottom, argument 106 public void performDeferredDestroy(IWindow window) { argument 111 public boolean outOfMemory(IWindow window) throws RemoteException { argument 116 public void getDisplayFrame(IWindow window, Rect outDisplayFrame) { argument 136 public void setInsets(IWindow window, int touchable, Rect contentInsets, argument 142 public IBinder prepareDrag(IWindow window, int flags, argument 150 public boolean performDrag(IWindow window, IBinder dragToken, argument 159 public boolean startMovingTask(IWindow window, float startX, float startY) argument 166 public void reportDropResult(IWindow window, boolea argument 176 dragRecipientEntered(IWindow window) argument 181 dragRecipientExited(IWindow window) argument 186 setWallpaperPosition(IBinder window, float x, float y, float xStep, float yStep) argument 192 wallpaperOffsetsComplete(IBinder window) argument 202 sendWallpaperCommand(IBinder window, String action, int x, int y, int z, Bundle extras, boolean sync) argument 209 wallpaperCommandComplete(IBinder window, Bundle result) argument 220 onRectangleOnScreenRequested(IBinder window, Rect rectangle) argument 225 getWindowId(IBinder window) argument 231 pokeDrawLock(IBinder window) argument 241 updatePointerIcon(IWindow window) argument [all...] |
/frameworks/native/libs/gui/tests/ |
H A D | Surface_test.cpp | 190 sp<ANativeWindow> window(surface); 195 ASSERT_EQ(NO_ERROR, native_window_api_connect(window.get(), 197 ASSERT_EQ(NO_ERROR, window->dequeueBuffer(window.get(), &buffer, &fenceFd)); 198 ASSERT_EQ(NO_ERROR, window->cancelBuffer(window.get(), buffer, fenceFd)); 213 ASSERT_EQ(NO_ERROR, window->cancelBuffer(window.get(), buffer, -1)); 214 ASSERT_EQ(NO_ERROR, window->dequeueBuffer(window [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/av/camera/ndk/impl/ |
H A D | ACaptureRequest.h | 25 ACameraOutputTarget(ANativeWindow* window) : mWindow(window) {}; argument
|
/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
H A D | AppCompatDelegateImplV11.java | 27 AppCompatDelegateImplV11(Context context, Window window, AppCompatCallback callback) { argument 28 super(context, window, callback);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/ |
H A D | BrightnessDialog.java | 40 final Window window = getWindow(); 42 window.setGravity(Gravity.TOP); 43 window.clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND); 44 window.requestFeature(Window.FEATURE_NO_TITLE);
|