Home
last modified time | relevance | path

Searched refs:mAttrs (Results 1 – 25 of 62) sorted by relevance

123

/frameworks/base/core/tests/coretests/src/android/view/
DWindowLayoutTests.java74 private WindowManager.LayoutParams mAttrs; field in WindowLayoutTests
86 mAttrs = new WindowManager.LayoutParams(); in setUp()
104 mWindowLayout.computeFrames(mAttrs, mState, mDisplayCutoutSafe, mWindowBounds, in computeFrames()
166 mAttrs.width = width; in unmeasuredWithSizeSpecifiedInLayoutParams()
167 mAttrs.height = height; in unmeasuredWithSizeSpecifiedInLayoutParams()
168 mAttrs.gravity = Gravity.LEFT | Gravity.TOP; in unmeasuredWithSizeSpecifiedInLayoutParams()
207 mAttrs.setFitInsetsTypes(WindowInsets.Type.statusBars()); in fitStatusBars()
217 mAttrs.setFitInsetsTypes(WindowInsets.Type.navigationBars()); in fitNavigationBars()
227 mAttrs.setFitInsetsTypes(0); in fitZeroTypes()
237 mAttrs.setFitInsetsSides(WindowInsets.Side.all()); in fitAllSides()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DInsetsPolicyTest.java112 addStatusBar().mAttrs.forciblyShownTypes |= statusBars(); in testControlsForDispatch_forceStatusBarVisible()
124 addWindow(TYPE_NOTIFICATION_SHADE, "notificationShade").mAttrs.forciblyShownTypes |= in testControlsForDispatch_statusBarForceShowNavigation()
139 notifShade.mAttrs.forciblyShownTypes |= navigationBars(); in testControlsForDispatch_statusBarForceShowNavigation_butFocusedAnyways()
175 dialog.mAttrs.width = WRAP_CONTENT; in testControlsForDispatch_topAppHidesStatusBar()
176 dialog.mAttrs.height = WRAP_CONTENT; in testControlsForDispatch_topAppHidesStatusBar()
181 displayPolicy.applyPostLayoutPolicyLw(dialog, dialog.mAttrs, fullscreenApp, null); in testControlsForDispatch_topAppHidesStatusBar()
182 displayPolicy.applyPostLayoutPolicyLw(fullscreenApp, fullscreenApp.mAttrs, null, null); in testControlsForDispatch_topAppHidesStatusBar()
242 shade.mAttrs.flags |= FLAG_NOT_FOCUSABLE; in testControlsForDispatch_topAppHidesStatusBar()
428 statusBar.mAttrs.forciblyShownTypes = statusBars(); in testFakeControlTarget_overrideVisibilityReceivedByWindows()
430 statusBar, statusBar.mAttrs, null, null); in testFakeControlTarget_overrideVisibilityReceivedByWindows()
[all …]
DRefreshRatePolicyTest.java92 window.mAttrs.writeToParcel(parcel, 0); in parcelLayoutParams()
94 window.mAttrs.copyFrom(new LayoutParams(parcel)); in parcelLayoutParams()
128 cameraUsingWindow.mAttrs.packageName = "com.android.test"; in testCamera()
155 cameraUsingWindow.mAttrs.packageName = "com.android.test"; in testCameraRange()
182 cameraUsingWindow.mAttrs.packageName = "com.android.test"; in testCameraRange_OutOfRange()
209 denylistedWindow.mAttrs.packageName = "com.android.test"; in testDenyList()
222 overrideWindow.mAttrs.packageName = "com.android.test"; in testAppOverridePreferredModeId_denylist()
223 overrideWindow.mAttrs.preferredDisplayModeId = HI_MODE_ID; in testAppOverridePreferredModeId_denylist()
236 overrideWindow.mAttrs.packageName = "com.android.test"; in testAppOverridePreferredRefreshRate_denylist()
237 overrideWindow.mAttrs.preferredRefreshRate = HI_REFRESH_RATE; in testAppOverridePreferredRefreshRate_denylist()
[all …]
DDisplayPolicyTests.java86 final WindowManager.LayoutParams attrs = win.mAttrs; in createOpaqueFullscreen()
98 final WindowManager.LayoutParams attrs = win.mAttrs; in createDreamWindow()
109 final WindowManager.LayoutParams attrs = win.mAttrs; in createDimmingDialogWindow()
121 final WindowManager.LayoutParams attrs = win.mAttrs; in createInputMethodWindow()
268 final WindowManager.LayoutParams attrs = mAppWindow.mAttrs; in testComputeTopFullscreenOpaqueWindow()
272 policy.addWindowLw(mStatusBarWindow, mStatusBarWindow.mAttrs); in testComputeTopFullscreenOpaqueWindow()
285 policy.addWindowLw(mNotificationShadeWindow, mNotificationShadeWindow.mAttrs); in testVisibleProcessWhileDozing()
304 activity.mAttrs.privateFlags |= PRIVATE_FLAG_FORCE_DRAW_BAR_BACKGROUNDS; in testMainAppWindowDisallowFitSystemWindowTypes()
306 policy.adjustWindowParamsLw(activity, activity.mAttrs); in testMainAppWindowDisallowFitSystemWindowTypes()
311 final WindowManager.LayoutParams attrs = win.mAttrs; in createApplicationWindow()
[all …]
DFrameRateSelectionPriorityTests.java167 appWindow.mAttrs.preferredDisplayModeId = 1; in testApplicationInFocusWithModeId()
174 appWindow.mAttrs.preferredDisplayModeId = 0; in testApplicationInFocusWithModeId()
213 appWindow.mAttrs.preferredDisplayModeId = 1; in testApplicationNotInFocusWithModeId()
249 appWindow.mAttrs.preferredDisplayModeId = 0; in testApplicationNotInFocusWithoutModeId()
269 appWindow.mAttrs.packageName = "com.android.test"; in testDenyListPreferredRefreshRate()
308 appWindow.mAttrs.preferredDisplayModeId = 1; in testSwitchingTypeNone()
314 appWindow.mAttrs.preferredDisplayModeId = 0; in testSwitchingTypeNone()
333 appWindow.mAttrs.packageName = "com.android.test"; in testAppPreferredRefreshRate()
334 appWindow.mAttrs.preferredRefreshRate = 60; in testAppPreferredRefreshRate()
DDisplayPolicyTestsBase.java71 mDisplayPolicy.adjustWindowParamsLw(win, win.mAttrs); in addWindow()
73 win.mAttrs, Binder.getCallingPid(), Binder.getCallingUid())); in addWindow()
74 mDisplayPolicy.addWindowLw(win, win.mAttrs); in addWindow()
DWindowStateTests.java248 window.mAttrs.windowAnimations = 0; in testIsOnScreen_hiddenByPolicy()
256 window.mAttrs.windowAnimations = android.R.style.Animation_Dialog; in testIsOnScreen_hiddenByPolicy()
270 appWindow.mAttrs.flags |= FLAG_NOT_FOCUSABLE; in testCanBeImeTarget()
271 imeWindow.mAttrs.flags |= FLAG_NOT_FOCUSABLE; in testCanBeImeTarget()
282 appWindow.mAttrs.flags |= (FLAG_NOT_FOCUSABLE | FLAG_ALT_FOCUSABLE_IM); in testCanBeImeTarget()
283 imeWindow.mAttrs.flags |= (FLAG_NOT_FOCUSABLE | FLAG_ALT_FOCUSABLE_IM); in testCanBeImeTarget()
366 second.mAttrs.flags |= WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON; in testPrepareWindowToDisplayDuringRelayout()
375 first.mAttrs.flags |= WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON; in testPrepareWindowToDisplayDuringRelayout()
376 second.mAttrs.flags |= WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON; in testPrepareWindowToDisplayDuringRelayout()
386 first.mAttrs.flags &= ~WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON; in testPrepareWindowToDisplayDuringRelayout()
[all …]
DDisplayPolicyLayoutTests.java138 mWindow.mAttrs.flags |= FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS; in addingWindow_doesNotTamperWithSysuiFlags()
141 assertEquals(0, mWindow.mAttrs.systemUiVisibility); in addingWindow_doesNotTamperWithSysuiFlags()
142 assertEquals(0, mWindow.mAttrs.subtreeSystemUiVisibility); in addingWindow_doesNotTamperWithSysuiFlags()
151 win.mAttrs.providedInsets = new InsetsFrameProvider[] { in addingWindow_withInsetsTypes()
DWindowTestsBase.java373 mStatusBarWindow.mAttrs.height = STATUS_BAR_HEIGHT; in addCommonWindows()
374 mStatusBarWindow.mAttrs.gravity = Gravity.TOP; in addCommonWindows()
375 mStatusBarWindow.mAttrs.layoutInDisplayCutoutMode = in addCommonWindows()
377 mStatusBarWindow.mAttrs.setFitInsetsTypes(0); in addCommonWindows()
379 mStatusBarWindow.mAttrs.providedInsets = new InsetsFrameProvider[] { in addCommonWindows()
391 mNavBarWindow.mAttrs.height = NAV_BAR_HEIGHT; in addCommonWindows()
392 mNavBarWindow.mAttrs.gravity = Gravity.BOTTOM; in addCommonWindows()
393 mNavBarWindow.mAttrs.paramsForRotation = new WindowManager.LayoutParams[4]; in addCommonWindows()
394 mNavBarWindow.mAttrs.setFitInsetsTypes(0); in addCommonWindows()
395 mNavBarWindow.mAttrs.layoutInDisplayCutoutMode = in addCommonWindows()
[all …]
DInsetsStateControllerTest.java83 ime.mAttrs.flags |= FLAG_NOT_FOCUSABLE; in testStripForDispatch_navBar()
215 app.mAttrs.flags |= FLAG_NOT_FOCUSABLE; in testStripForDispatch_imeOrderChanged()
227 app.mAttrs.flags &= ~FLAG_NOT_FOCUSABLE; in testStripForDispatch_imeOrderChanged()
251 child.mAttrs.flags |= FLAG_ALT_FOCUSABLE_IM; in testStripForDispatch_childWindow_altFocusable()
271 child.mAttrs.flags |= FLAG_NOT_FOCUSABLE; in testStripForDispatch_childWindow_splitScreen()
289 ime.mAttrs.flags |= FLAG_NOT_FOCUSABLE; in testImeForDispatch()
531 app.mAttrs.receiveInsetsIgnoringZOrder = true; in testDispatchGlobalInsets()
DWindowManagerServiceTests.java295 mWm.relayoutWindow(win.mSession, win.mClient, win.mAttrs, w, h, View.GONE, 0, 0, 0, in testRelayoutExitingWindow_legacy()
306 mWm.relayoutWindow(win.mSession, win.mClient, win.mAttrs, w, h, View.GONE, 0, 0, 0, in testRelayoutExitingWindow_legacy()
315 mWm.relayoutWindow(win.mSession, win.mClient, win.mAttrs, w, h, View.VISIBLE, 0, 0, 0, in testRelayoutExitingWindow_legacy()
356 mWm.relayoutWindow(win.mSession, win.mClient, win.mAttrs, w, h, View.GONE, 0, 0, 0, in testRelayoutExitingWindow()
367 mWm.relayoutWindow(win.mSession, win.mClient, win.mAttrs, w, h, View.GONE, 0, 0, 0, in testRelayoutExitingWindow()
376 mWm.relayoutWindow(win.mSession, win.mClient, win.mAttrs, w, h, View.VISIBLE, 0, 0, 0, in testRelayoutExitingWindow()
473 win.mAttrs.flags = startFlags; in testRelayoutFlagChanges()
474 win.mAttrs.privateFlags = startPrivateFlags; in testRelayoutFlagChanges()
477 newParams.copyFrom(win.mAttrs); in testRelayoutFlagChanges()
609 parentWin.mAttrs.token = parentToken; in testAddWindowWithSubWindowTypeByWindowContext()
[all …]
DWallpaperControllerTests.java298 behind.mAttrs.width = behind.mAttrs.height = topTranslucent.mAttrs.width = in testShowWhenLockedWallpaperTarget()
299 topTranslucent.mAttrs.height = WindowManager.LayoutParams.MATCH_PARENT; in testShowWhenLockedWallpaperTarget()
300 topTranslucent.mAttrs.flags |= WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED; in testShowWhenLockedWallpaperTarget()
321 keyguard.mAttrs.flags |= FLAG_SHOW_WALLPAPER; in testShowWhenLockedWallpaperTarget()
DDisplayContentTests.java903 keyguard.mAttrs.screenOrientation = SCREEN_ORIENTATION_UNSPECIFIED; in testOrientationDefinedByKeyguard()
908 keyguard.mAttrs.screenOrientation = SCREEN_ORIENTATION_PORTRAIT; in testOrientationDefinedByKeyguard()
934 window.mAttrs.screenOrientation = SCREEN_ORIENTATION_LANDSCAPE; in testOrientationForAspectRatio()
944 window.mAttrs.screenOrientation, dc.getOrientation()); in testOrientationForAspectRatio()
954 window.mAttrs.screenOrientation, dc.getOrientation()); in testOrientationForAspectRatio()
1246 overlay.mAttrs.flags = FLAG_NOT_FOCUSABLE | FLAG_ALT_FOCUSABLE_IM; in testComputeImeParent_updateParentWhenTargetNotUseIme()
1506 win.mAttrs.width = win.mAttrs.height = WindowManager.LayoutParams.WRAP_CONTENT; in testRequestResizeForEmptyFrames()
1507 win.mAttrs.gravity = Gravity.CENTER; in testRequestResizeForEmptyFrames()
1548 displayPolicy.addWindowLw(statusBar, statusBar.mAttrs); in testHybridRotationAnimation()
1549 displayPolicy.addWindowLw(navBar, navBar.mAttrs); in testHybridRotationAnimation()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DWindowState.java315 final WindowManager.LayoutParams mAttrs = new WindowManager.LayoutParams(); field in WindowState
961 mAttrs.insetsFlags.behavior == BEHAVIOR_SHOW_TRANSIENT_BARS_BY_SWIPE in isImplicitlyExcludingAllSystemGestures()
1097 mAttrs.copyFrom(a); in WindowState()
1098 mLastSurfaceInsets.set(mAttrs.surfaceInsets); in WindowState()
1114 mInputWindowHandle.setPackageName(mAttrs.packageName); in WindowState()
1115 mInputWindowHandle.setLayoutParamsType(mAttrs.type); in WindowState()
1121 + " token=" + token + " (" + mAttrs.token + ")" + " params=" + a); in WindowState()
1124 if (mAttrs.type >= FIRST_SUB_WINDOW && mAttrs.type <= LAST_SUB_WINDOW) { in WindowState()
1132 mLayoutAttached = mAttrs.type != in WindowState()
1134 mIsImWindow = parentWindow.mAttrs.type == TYPE_INPUT_METHOD in WindowState()
[all …]
DRefreshRatePolicy.java133 final int preferredDisplayModeId = w.mAttrs.preferredDisplayModeId; in getPreferredModeId()
276 final int preferredModeId = w.mAttrs.preferredDisplayModeId; in updateFrameRateVote()
288 if (w.mAttrs.preferredRefreshRate > 0) { in updateFrameRateVote()
289 return w.mFrameRateVote.update(w.mAttrs.preferredRefreshRate, in updateFrameRateVote()
315 if (w.mAttrs.preferredMinDisplayRefreshRate > 0) { in getPreferredMinRefreshRate()
316 return w.mAttrs.preferredMinDisplayRefreshRate; in getPreferredMinRefreshRate()
338 if (w.mAttrs.preferredMaxDisplayRefreshRate > 0) { in getPreferredMaxRefreshRate()
339 return w.mAttrs.preferredMaxDisplayRefreshRate; in getPreferredMaxRefreshRate()
DImeTargetVisibilityPolicy.java76 WindowManager.LayoutParams.mayUseInputMethod(imeLayeringTarget.mAttrs.flags) in canComputeImeParent()
77 || imeLayeringTarget.mAttrs.type == TYPE_APPLICATION_STARTING; in canComputeImeParent()
DWindowStateAnimator.java166 mAttrType = win.mAttrs.type; in WindowStateAnimator()
213 mWin.mAttrs.type == WindowManager.LayoutParams.TYPE_APPLICATION_STARTING; in finishDrawingLocked()
243 mWin.mAttrs.type == WindowManager.LayoutParams.TYPE_APPLICATION_STARTING) { in commitFinishDrawingLocked()
256 || mWin.mAttrs.type == TYPE_APPLICATION_STARTING) { in commitFinishDrawingLocked()
290 final WindowManager.LayoutParams attrs = w.mAttrs; in createSurfaceLocked()
298 if ((mWin.mAttrs.privateFlags & PRIVATE_FLAG_IS_ROUNDED_CORNERS_OVERLAY) != 0) { in createSurfaceLocked()
550 if (mWin.mAttrs.type == TYPE_INPUT_METHOD) { in applyAnimationLocked()
594 mWin.mAttrs, attr, TRANSIT_OLD_NONE); in applyAnimationLocked()
656 sb.append(mWin.mAttrs.getTitle()); in toString()
DInputMonitor.java268 int flags = w.mAttrs.flags; in populateInputWindowHandle()
269 if (w.mAttrs.isModal()) { in populateInputWindowHandle()
275 w.mAttrs.type, flags, w.mAttrs.inputFeatures), in populateInputWindowHandle()
284 && w.mAttrs.areWallpaperTouchEventsEnabled(); in populateInputWindowHandle()
290 inputWindowHandle.setSurfaceInset(w.mAttrs.surfaceInsets.left); in populateInputWindowHandle()
311 if (w.mAttrs.isModal()) { in populateInputWindowHandle()
323 w.getSurfaceTouchableRegion(mTmpRegion, w.mAttrs); in populateInputWindowHandle()
668 if (w.mAttrs.type == TYPE_WALLPAPER && w.isVisible()) { in accept()
DDisplayPolicy.java1169 final LayoutParams lp = win.mAttrs.forRotation(displayFrames.mRotation); in getFrameProvider()
1294 if ((win.mAttrs.privateFlags & PRIVATE_FLAG_IMMERSIVE_CONFIRMATION_WINDOW) != 0) {
1362 mWindowLayout.computeFrames(win.mAttrs.forRotation(displayFrames.mRotation),
1402 final WindowManager.LayoutParams attrs = win.mAttrs.forRotation(displayFrames.mRotation);
1407 final boolean trustedSize = attrs == win.mAttrs;
1507 mForciblyShownTypes |= win.mAttrs.forciblyShownTypes;
1572 win.mAttrs.insetsFlags.appearance & APPEARANCE_LIGHT_STATUS_BARS,
1613 win.mAttrs.insetsFlags.appearance & APPEARANCE_LIGHT_STATUS_BARS,
1758 || (win.mAttrs.privateFlags & LayoutParams.PRIVATE_FLAG_SYSTEM_ERROR) != 0);
2219 final int gravity = mNavigationBar.mAttrs.forRotation(displayRotation).gravity;
[all …]
DDisplayArea.java742 if (policy.isKeyguardHostWindow(w.mAttrs)) {
763 final int req = w.mAttrs.screenOrientation;
794 int req = win.mAttrs.screenOrientation; in getOrientation()
797 if (mWmService.mPolicy.isKeyguardHostWindow(win.mAttrs)) { in getOrientation()
/frameworks/base/core/java/android/os/
DExternalVibration.java40 private AudioAttributes mAttrs; field in ExternalVibration
62 mAttrs = Preconditions.checkNotNull(attrs); in ExternalVibration()
106 return mAttrs; in getAudioAttributes()
114 return new VibrationAttributes.Builder(mAttrs).build(); in getVibrationAttributes()
183 + "attrs=" + mAttrs + ", " in toString()
193 writeAudioAttributes(mAttrs, out); in writeToParcel()
/frameworks/native/libs/vibrator/
DExternalVibration.cpp44 mUid(uid), mPkg(pkg), mAttrs(attrs), mController(controller) { } in ExternalVibration()
49 writeAudioAttributes(mAttrs, parcel); in writeToParcel()
58 readAudioAttributes(&mAttrs, parcel); in readFromParcel()
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DShortcutParser.java49 private AttributeSet mAttrs; field in ShortcutParser
80 mAttrs = Xml.asAttributeSet(parser); in getShortcuts()
103 final TypedArray sa = mResources.obtainAttributes(mAttrs, R.styleable.Shortcut); in parseShortcut()
123 c.intent = Intent.parseIntent(mResources, parser, mAttrs); in parseShortcut()
/frameworks/native/libs/vibrator/include/vibrator/
DExternalVibration.h46 audio_attributes_t getAudioAttributes() const { return mAttrs; } in getAudioAttributes()
58 audio_attributes_t mAttrs; variable
/frameworks/base/media/java/android/media/tv/ad/
DTvAdView.java86 private final AttributeSet mAttrs; field in TvAdView
154 mAttrs = Xml.asAttributeSet(mParser); in TvAdView()
158 mAttrs = attrs; in TvAdView()
249 mSurfaceView = new SurfaceView(getContext(), mAttrs, mDefStyleAttr) { in resetSurfaceView()

123