Home
last modified time | relevance | path

Searched refs:mWindow (Results 1 – 25 of 71) sorted by relevance

123

/frameworks/base/core/java/android/database/
DAbstractWindowedCursor.java43 protected CursorWindow mWindow; field in AbstractWindowedCursor
48 return mWindow.getBlob(mPos, columnIndex); in getBlob()
54 return mWindow.getString(mPos, columnIndex); in getString()
60 mWindow.copyStringToBuffer(mPos, columnIndex, buffer); in copyStringToBuffer()
66 return mWindow.getShort(mPos, columnIndex); in getShort()
72 return mWindow.getInt(mPos, columnIndex); in getInt()
78 return mWindow.getLong(mPos, columnIndex); in getLong()
84 return mWindow.getFloat(mPos, columnIndex); in getFloat()
90 return mWindow.getDouble(mPos, columnIndex); in getDouble()
96 return mWindow.getType(mPos, columnIndex) == Cursor.FIELD_TYPE_NULL; in isNull()
[all …]
DBulkCursorToCursorAdaptor.java79 if (mWindow == null in onMove()
80 || newPosition < mWindow.getStartPosition() in onMove()
81 || newPosition >= mWindow.getStartPosition() + mWindow.getNumRows()) { in onMove()
93 if (mWindow == null) { in onMove()
/frameworks/native/libs/nativewindow/tests/
DANativeWindowTest.cpp55 mWindow = new TestableSurface(mProducer); in SetUp()
56 const int success = native_window_api_connect(mWindow.get(), NATIVE_WINDOW_API_CPU); in SetUp()
64 const int success = native_window_api_disconnect(mWindow.get(), NATIVE_WINDOW_API_CPU); in TearDown()
71 sp<TestableSurface> mWindow; member in ANativeWindowTest
75 int result = ANativeWindow_getLastDequeueDuration(mWindow.get()); in TEST_F()
77 EXPECT_EQ(0, mWindow->getLastDequeueDuration()); in TEST_F()
83 int result = ANativeWindow_dequeueBuffer(mWindow.get(), &buffer, &fd); in TEST_F()
87 result = ANativeWindow_getLastDequeueDuration(mWindow.get()); in TEST_F()
89 EXPECT_EQ(result, mWindow->getLastDequeueDuration()); in TEST_F()
93 int result = ANativeWindow_getLastQueueDuration(mWindow.get()); in TEST_F()
[all …]
/frameworks/native/libs/nativewindow/include/android/
Dnative_window_aidl.h97 mWindow = other.release(); // steal ownership from r-value in NativeWindow()
107 return ANativeWindow_readFromParcel(parcel, &mWindow); in readFromParcel()
114 if (!mWindow) { in writeToParcel()
118 return ANativeWindow_writeToParcel(mWindow, parcel); in writeToParcel()
131 if (mWindow) {
132 ANativeWindow_release(mWindow);
133 mWindow = nullptr;
138 mWindow = window;
141 inline ANativeWindow* _Nullable get() const { return mWindow; } in get()
144 mWindow = other.release(); // steal ownership from r-value
[all …]
/frameworks/opt/car/setupwizard/library/main/tests/robotests/src/com/android/car/setupwizardlib/util/
DCarSetupWizardUiUtilsTest.java63 private Window mWindow; field in CarSetupWizardUiUtilsTest
72 mWindow = mActivity.getWindow(); in setup()
78 assertThat(mWindow.getDecorView().getSystemUiVisibility()) in maybeHideSystemUI()
84 CarSetupWizardUiUtils.enableImmersiveMode(mWindow); in enableImmersiveMode()
85 assertThat(mWindow.getDecorView().getSystemUiVisibility()) in enableImmersiveMode()
92 mWindow.setNavigationBarColor(Color.TRANSPARENT); in disableImmersiveMode()
93 mWindow.setStatusBarColor(Color.TRANSPARENT); in disableImmersiveMode()
95 CarSetupWizardUiUtils.disableImmersiveMode(mWindow); in disableImmersiveMode()
97 assertThat(mWindow.getDecorView().getSystemUiVisibility()) in disableImmersiveMode()
99 assertThat(mWindow.getNavigationBarColor()) in disableImmersiveMode()
[all …]
/frameworks/av/camera/ndk/impl/
DACaptureRequest.h26 explicit ACameraOutputTarget(ANativeWindow* window) : mWindow(window) {}; in ACameraOutputTarget()
29 return mWindow == other.mWindow;
32 return mWindow != other.mWindow;
35 return mWindow < other.mWindow;
38 return mWindow > other.mWindow;
41 ANativeWindow* mWindow; member
DACameraCaptureSession.h35 mWindow(window), mIsShared(isShared), mPhysicalCameraId(physicalCameraId) {}; in mWindow() function
38 return mWindow == other.mWindow;
41 return mWindow != other.mWindow;
44 return mWindow < other.mWindow;
47 return mWindow > other.mWindow;
51 return mWindow == window; in isWindowEqual()
65 ANativeWindow* mWindow; member
/frameworks/base/core/java/android/app/servertransaction/
DWindowStateTransactionItem.java49 private IWindow mWindow; field in WindowStateTransactionItem
56 if (mWindow instanceof TransactionListener listener) { in execute()
59 execute(client, mWindow, pendingActions); in execute()
71 mWindow = requireNonNull(window); in setWindow()
77 mWindow = IWindow.Stub.asInterface(in.readStrongBinder()); in WindowStateTransactionItem()
83 dest.writeStrongBinder(mWindow.asBinder()); in writeToParcel()
89 mWindow = null; in recycle()
104 return Objects.equals(mWindow, other.mWindow); in equals()
110 return Objects.hashCode(mWindow); in hashCode()
116 return "mWindow=" + mWindow; in toString()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTaskPositioningControllerTests.java57 private WindowState mWindow; field in TaskPositioningControllerTests
66 mWindow = createWindow(null, TYPE_BASE_APPLICATION, "window"); in setUp()
67 mWindow.getTask().setResizeMode(RESIZE_MODE_RESIZEABLE); in setUp()
68 mWindow.mInputChannel = new InputChannel(); in setUp()
69 mWm.mWindowMap.put(mWindow.mClient.asBinder(), mWindow); in setUp() local
79 assertTrue(mTarget.startMovingTask(mWindow.mClient, 0, 0)); in testStartAndFinishPositioning()
97 assertTrue(mTarget.startMovingTask(mWindow.mClient, 0, 0)); in testFinishPositioningWhenAppRequested()
102 mTarget.finishTaskPositioning(mWindow.mClient); in testFinishPositioningWhenAppRequested()
116 doReturn(mWindow.getTask()).when(content).findTaskForResizePoint(anyInt(), anyInt()); in testHandleTapOutsideTask()
117 assertNotNull(mWindow.getTask().getTopVisibleAppMainWindow()); in testHandleTapOutsideTask()
[all …]
DDisplayPolicyLayoutTests.java69 private WindowState mWindow; field in DisplayPolicyLayoutTests
79 mWindow = spy(createWindow(null, TYPE_APPLICATION, "window")); in setUp()
96 mWindow.getWindowConfiguration().setRotation(rotation); in setRotation()
138 mWindow.mAttrs.flags |= FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS; in addingWindow_doesNotTamperWithSysuiFlags()
139 addWindow(mWindow); in addingWindow_doesNotTamperWithSysuiFlags()
141 assertEquals(0, mWindow.mAttrs.systemUiVisibility); in addingWindow_doesNotTamperWithSysuiFlags()
142 assertEquals(0, mWindow.mAttrs.subtreeSystemUiVisibility); in addingWindow_doesNotTamperWithSysuiFlags()
215 .rotationForActivityInDifferentOrientation(eq(mWindow.mActivityRecord)); in testFixedRotationInsetsSourceFrame()
216 mWindow.mAboveInsetsState.set( in testFixedRotationInsetsSourceFrame()
219 final Rect frame = mWindow.getInsetsState().peekSource(statusBarId).getFrame(); in testFixedRotationInsetsSourceFrame()
[all …]
DDragDropControllerTests.java109 private WindowState mWindow; field in DragDropControllerTests
179 mWindow = createDropTargetWindow("Drag test window", 0); in setUp()
180 doReturn(mWindow).when(mDisplayContent).getTouchableWinAtPointLocked(0, 0); in setUp()
184 mWm.mWindowMap.put(mWindow.mClient.asBinder(), mWindow); in setUp() local
243 mWindow.mAttrs.privateFlags |= PRIVATE_FLAG_INTERCEPT_GLOBAL_DRAG_AND_DROP; in testPrivateInterceptGlobalDragDropFlagBehaviour()
244 mWindow.setViewVisibility(View.GONE); in testPrivateInterceptGlobalDragDropFlagBehaviour()
249 TestIWindow iwindow = (TestIWindow) mWindow.mClient; in testPrivateInterceptGlobalDragDropFlagBehaviour()
262 mTarget.reportDropWindow(mWindow.mInputChannelToken, 0, 0); in testPrivateInterceptGlobalDragDropFlagBehaviour()
285 TestIWindow localIWindow = (TestIWindow) mWindow.mClient; in testPrivateInterceptGlobalDragDropIgnoresNonLocalWindows()
329 mWindow.mAttrs.privateFlags |= PRIVATE_FLAG_INTERCEPT_GLOBAL_DRAG_AND_DROP; in testPrivateInterceptGlobalDragDropGetsDragFlags()
[all …]
/frameworks/base/core/java/com/android/internal/policy/
DDecorView.java233 private PhoneWindow mWindow; field in DecorView
329 mBackgroundFallback.draw(this, mContentRoot, c, mWindow.mContentParent, in onDraw()
342 if ((mWindow.mPanelChordingKey > 0) && (mWindow.mPanelChordingKey != keyCode)) { in dispatchKeyEvent()
351 if ((mWindow.mPreparedPanel != null) && mWindow.mPreparedPanel.isOpen) { in dispatchKeyEvent()
352 if (mWindow.performPanelShortcut(mWindow.mPreparedPanel, keyCode, event, 0)) { in dispatchKeyEvent()
358 if (!mWindow.isDestroyed()) { in dispatchKeyEvent()
359 final Window.Callback cb = mWindow.getCallback(); in dispatchKeyEvent()
367 return isDown ? mWindow.onKeyDown(mFeatureId, event.getKeyCode(), event) in dispatchKeyEvent()
368 : mWindow.onKeyUp(mFeatureId, event.getKeyCode(), event); in dispatchKeyEvent()
375 if (mWindow.mPreparedPanel != null) {
[all …]
/frameworks/base/libs/hwui/renderthread/
DReliableSurface.cpp33 ReliableSurface::ReliableSurface(ANativeWindow* window) : mWindow(window) { in ReliableSurface()
34 LOG_ALWAYS_FATAL_IF(!mWindow, "Error, unable to wrap a nullptr"); in ReliableSurface()
35 ANativeWindow_acquire(mWindow); in ReliableSurface()
44 ANativeWindow_setCancelBufferInterceptor(mWindow, nullptr, nullptr); in ~ReliableSurface()
45 ANativeWindow_setDequeueBufferInterceptor(mWindow, nullptr, nullptr); in ~ReliableSurface()
46 ANativeWindow_setQueueBufferInterceptor(mWindow, nullptr, nullptr); in ~ReliableSurface()
47 ANativeWindow_setPerformInterceptor(mWindow, nullptr, nullptr); in ~ReliableSurface()
48 ANativeWindow_setQueryInterceptor(mWindow, nullptr, nullptr); in ~ReliableSurface()
49 ANativeWindow_release(mWindow); in ~ReliableSurface()
53 int result = ANativeWindow_setCancelBufferInterceptor(mWindow, hook_cancelBuffer, this); in init()
[all …]
/frameworks/base/core/java/android/app/
DDialog.java111 final Window mWindow; field in Dialog
209 mWindow = w; in Dialog()
314 if (mWindow.hasFeature(Window.FEATURE_ACTION_BAR)) { in show()
315 mWindow.invalidatePanelMenu(Window.FEATURE_ACTION_BAR); in show()
330 mWindow.getDecorView().dispatchConfigurationChanged(config); in show()
334 mDecor = mWindow.getDecorView(); in show()
336 if (mActionBar == null && mWindow.hasFeature(Window.FEATURE_ACTION_BAR)) { in show()
338 mWindow.setDefaultIcon(info.icon); in show()
339 mWindow.setDefaultLogo(info.logo); in show()
343 WindowManager.LayoutParams l = mWindow.getAttributes(); in show()
[all …]
/frameworks/base/core/java/android/database/sqlite/
DSQLiteCursor.java121 if (mWindow == null || newPosition < mWindow.getStartPosition() || in onMove()
122 newPosition >= (mWindow.getStartPosition() + mWindow.getNumRows())) { in onMove()
145 mCount = mQuery.fillWindow(mWindow, requiredPos, requiredPos, true); in fillWindow()
146 mCursorWindowCapacity = mWindow.getNumRows(); in fillWindow()
153 mQuery.fillWindow(mWindow, startPos, requiredPos, false); in fillWindow()
225 if (mWindow != null) { in requery()
226 mWindow.clear(); in requery()
277 if (mWindow != null) { in finalize()
/frameworks/base/rs/java/android/renderscript/
DAllocationAdapter.java28 Type mWindow; field in AllocationAdapter
33 mWindow = t; in AllocationAdapter()
111 if (mWindow.hasMipmaps()) { in setLOD()
130 if (mWindow.hasFaces()) { in setFace()
153 if (mWindow.getX() == mAdaptedAllocation.getType().getX()) { in setX()
156 if ((mWindow.getX() + x) >= mAdaptedAllocation.getType().getX()) { in setX()
178 if (mWindow.getY() == mAdaptedAllocation.getType().getY()) { in setY()
181 if ((mWindow.getY() + y) >= mAdaptedAllocation.getType().getY()) { in setY()
203 if (mWindow.getZ() == mAdaptedAllocation.getType().getZ()) { in setZ()
206 if ((mWindow.getZ() + z) >= mAdaptedAllocation.getType().getZ()) { in setZ()
[all …]
/frameworks/base/libs/hwui/platform/host/renderthread/
DReliableSurface.cpp24 ReliableSurface::ReliableSurface(ANativeWindow* window) : mWindow(window) { in ReliableSurface()
25 LOG_ALWAYS_FATAL_IF(!mWindow, "Error, unable to wrap a nullptr"); in ReliableSurface()
26 ANativeWindow_acquire(mWindow); in ReliableSurface()
30 ANativeWindow_release(mWindow); in ~ReliableSurface()
/frameworks/base/services/core/java/com/android/server/selinux/
DRateLimiter.java39 private final Duration mWindow; field in RateLimiter
45 mWindow = window; in RateLimiter()
65 mNextPermit = mNextPermit.plus(mWindow); in acquire()
67 mNextPermit = now.plus(mWindow); in acquire()
82 mNextPermit = now.plus(mWindow); in tryAcquire()
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/automation/
DAutomator.java47 private Window mWindow; field in Automator
86 private Window mWindow; field in Automator.AutomatorHandler
98 mWindow = window; in AutomatorHandler()
121 mCollectorThread.attachToWindow(mWindow); in handleMessage()
198 GlobalResultsStore.getInstance(mWindow.getContext()) in writeResults()
204 mHandler = new AutomatorHandler(getLooper(), mWindow, mCollectorThread, mCallback, in initHandler()
206 mWindow = null; in initHandler()
218 mWindow.getDecorView().getViewTreeObserver().removeOnGlobalLayoutListener(this); in onGlobalLayout()
264 mWindow = window; in Automator()
265 mWindow.getDecorView().getViewTreeObserver().addOnGlobalLayoutListener(this); in Automator()
/frameworks/base/packages/SystemUI/src/com/android/systemui/dreams/
DDreamOverlayService.java104 private Window mWindow; field in DreamOverlayService
472 mWindow = new PhoneWindow(mContext); in addOverlayWindowLocked()
474 mWindow.setTitle(mWindowTitle); in addOverlayWindowLocked()
475 mWindow.setAttributes(layoutParams); in addOverlayWindowLocked()
476 mWindow.setWindowManager(null, layoutParams.token, "DreamOverlay", true); in addOverlayWindowLocked()
478 mWindow.setBackgroundDrawable(new ColorDrawable(0)); in addOverlayWindowLocked()
480 mWindow.clearFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS); in addOverlayWindowLocked()
481 mWindow.addFlags(WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE); in addOverlayWindowLocked()
482 mWindow.addPrivateFlags(WindowManager.LayoutParams.SYSTEM_FLAG_SHOW_FOR_ALL_USERS); in addOverlayWindowLocked()
483 mWindow.requestFeature(Window.FEATURE_NO_TITLE); in addOverlayWindowLocked()
[all …]
/frameworks/base/core/java/android/service/dreams/
DDreamService.java253 private Window mWindow; field in DreamService
421 if (mInteractive && mWindow.superDispatchKeyEvent(event)) { in dispatchKeyEvent()
477 return mWindow.superDispatchKeyEvent(event); in dispatchKeyEvent()
488 return mWindow.superDispatchKeyShortcutEvent(event); in dispatchKeyShortcutEvent()
501 return mWindow.superDispatchTouchEvent(event); in dispatchTouchEvent()
512 return mWindow.superDispatchTrackballEvent(event); in dispatchTrackballEvent()
523 return mWindow.superDispatchGenericMotionEvent(event); in dispatchGenericMotionEvent()
636 return mWindow != null ? mWindow.getWindowManager() : null; in getWindowManager()
646 return mWindow; in getWindow()
1499 if (mWindow != null || mWindowless) { in attach()
[all …]
/frameworks/base/core/java/android/view/
DFrameMetricsObserver.java33 private final WeakReference<Window> mWindow; field in FrameMetricsObserver
45 mWindow = new WeakReference<>(window); in FrameMetricsObserver()
58 if (mWindow.get() != null) { in onFrameMetricsAvailable()
59 mListener.onFrameMetricsAvailable(mWindow.get(), mFrameMetrics, in onFrameMetricsAvailable()
/frameworks/base/core/tests/coretests/src/android/app/servertransaction/
DClientTransactionItemTest.java77 private IWindow mWindow; field in ClientTransactionItemTest
158 final WindowStateResizeItem item = WindowStateResizeItem.obtain(mWindow, mFrames, in testWindowStateResizeItem_execute()
164 verify(mWindow).resized(mFrames, in testWindowStateResizeItem_execute()
173 mWindow, mInsetsState, mActiveControls); in testWindowStateInsetsControlChangeItem_execute()
176 verify(mWindow).insetsControlChanged(mInsetsState, mActiveControls); in testWindowStateInsetsControlChangeItem_execute()
181 doThrow(new RemoteException()).when(mWindow).insetsControlChanged(any(), any()); in testWindowStateInsetsControlChangeItem_executeError()
185 mWindow, mInsetsState, mActiveControls); in testWindowStateInsetsControlChangeItem_executeError()
/frameworks/base/apct-tests/perftests/core/src/android/view/
DInputStageBenchmark.java73 private Window mWindow; field in InputStageBenchmark
155 mWindow = mActivityRule.getActivity().getWindow(); in setUp()
159 mWindow.setContentView(edit); in setUp()
165 mWindow.addFlags(WindowManager.LayoutParams.FLAG_LOCAL_FOCUS_MODE); in setUp()
166 mWindow.setContentView(v); in setUp()
183 mInstrumentation.runOnMainSync(() -> mWindow.injectInputEvent(event)); in injectInputEvent()
212 mWindow.getDecorView().getBoundsOnScreen(contentFrame)); in testMotionEvent()
/frameworks/base/core/java/android/widget/
DMagnifier.java89 private InternalPopupWindow mWindow; field in Magnifier
358 if (mWindow == null) { in show()
360 mWindow = new InternalPopupWindow(mView.getContext(), mView.getDisplay(), in show()
372 final InternalPopupWindow currentWindowInstance = mWindow; in show()
375 if (mWindow != currentWindowInstance) { in show()
379 mWindow.setContentPositionForNextDraw(windowCoords.x, windowCoords.y); in show()
393 if (mWindow != null) { in dismiss()
395 mWindow.destroy(); in dismiss()
396 mWindow = null; in dismiss()
413 if (mWindow != null) { in update()
[all …]

123