Home
last modified time | relevance | path

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

12

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayPolicyLayoutTests.java105 final WindowManager.LayoutParams attrs = mWindow.mAttrs; in setUp()
142 mWindow.mAttrs.flags |= FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS; in addingWindow_doesNotTamperWithSysuiFlags()
145 assertEquals(0, mWindow.mAttrs.systemUiVisibility); in addingWindow_doesNotTamperWithSysuiFlags()
146 assertEquals(0, mWindow.mAttrs.subtreeSystemUiVisibility); in addingWindow_doesNotTamperWithSysuiFlags()
152 win.mAttrs.providesInsetsTypes = new int[]{ITYPE_STATUS_BAR, ITYPE_TOP_GESTURES}; in addingWindow_withInsetsTypes()
180 win.mAttrs.providesInsetsTypes = new int[]{ITYPE_STATUS_BAR}; in addingWindow_ignoresInsetsTypes_InWindowTypeWithPredefinedInsets()
194 win.mAttrs.providesInsetsTypes = new int[]{ITYPE_STATUS_BAR, ITYPE_NAVIGATION_BAR}; in addingWindow_throwsException_WithMultipleInsetTypes()
201 mWindow.mAttrs.setFitInsetsTypes(Type.statusBars()); in layoutWindowLw_fitStatusBars()
217 mWindow.mAttrs.setFitInsetsTypes(Type.navigationBars()); in layoutWindowLw_fitNavigationBars()
233 mWindow.mAttrs.setFitInsetsSides(Side.all()); in layoutWindowLw_fitAllSides()
[all …]
DWindowFrameTests.java128 w.mAttrs.gravity = Gravity.LEFT | Gravity.TOP; in testLayoutInFullscreenTaskInsets()
168 w.mAttrs.x = 100; in testLayoutInFullscreenTaskInsets()
169 w.mAttrs.y = 100; in testLayoutInFullscreenTaskInsets()
170 w.mAttrs.width = 100; w.mAttrs.height = 100; //have to clear MATCH_PARENT in testLayoutInFullscreenTaskInsets()
187 w.mAttrs.gravity = Gravity.LEFT | Gravity.TOP; in testLayoutInFullscreenTaskNoInsets()
203 w.mAttrs.width = 300; in testLayoutInFullscreenTaskNoInsets()
204 w.mAttrs.height = 300; in testLayoutInFullscreenTaskNoInsets()
220 w.mAttrs.flags = WindowManager.LayoutParams.FLAG_SCALED; in testLayoutInFullscreenTaskNoInsets()
223 w.mAttrs.width = 100; in testLayoutInFullscreenTaskNoInsets()
224 w.mAttrs.height = 100; in testLayoutInFullscreenTaskNoInsets()
[all …]
DRefreshRatePolicyTest.java71 cameraUsingWindow.mAttrs.packageName = "com.android.test"; in testCamera()
83 blacklistedWindow.mAttrs.packageName = "com.android.test"; in testBlacklist()
92 overrideWindow.mAttrs.preferredDisplayModeId = LOW_MODE_ID; in testAppOverride_blacklist()
101 overrideWindow.mAttrs.packageName = "com.android.test"; in testAppOverride_camera()
102 overrideWindow.mAttrs.preferredDisplayModeId = LOW_MODE_ID; in testAppOverride_camera()
111 overrideWindow.mAttrs.packageName = "com.android.test"; in testAnimatingAppOverride()
112 overrideWindow.mAttrs.preferredDisplayModeId = LOW_MODE_ID; in testAnimatingAppOverride()
124 cameraUsingWindow.mAttrs.packageName = "com.android.test"; in testAnimatingCamera()
DDisplayPolicyTests.java79 final WindowManager.LayoutParams attrs = win.mAttrs; in createOpaqueFullscreen()
92 final WindowManager.LayoutParams attrs = win.mAttrs; in createDimmingDialogWindow()
104 final WindowManager.LayoutParams attrs = win.mAttrs; in createInputMethodWindow()
227 final WindowManager.LayoutParams attrs = mAppWindow.mAttrs; in testComputeTopFullscreenOpaqueWindow()
243 policy.adjustWindowParamsLw(toast, toast.mAttrs, 0 /* callingPid */, 0 /* callingUid */); in testShouldShowToastWhenScreenLocked()
253 activity.mAttrs.privateFlags |= PRIVATE_FLAG_FORCE_DRAW_BAR_BACKGROUNDS; in testMainAppWindowDisallowFitSystemWindowTypes()
255 policy.adjustWindowParamsLw(activity, activity.mAttrs, 0 /* callingPid */, in testMainAppWindowDisallowFitSystemWindowTypes()
261 final WindowManager.LayoutParams attrs = win.mAttrs; in createToastWindow()
271 final WindowManager.LayoutParams attrs = win.mAttrs; in createApplicationWindow()
282 final WindowManager.LayoutParams attrs = win.mAttrs; in createBaseApplicationWindow()
[all …]
DInsetsPolicyTest.java134 addWindow(TYPE_STATUS_BAR, "statusBar").mAttrs.privateFlags |= in testControlsForDispatch_forceStatusBarVisible()
147 addWindow(TYPE_NOTIFICATION_SHADE, "notificationShade").mAttrs.privateFlags |= in testControlsForDispatch_statusBarForceShowNavigation()
162 notifShade.mAttrs.privateFlags |= PRIVATE_FLAG_STATUS_FORCE_SHOW_NAVIGATION; in testControlsForDispatch_statusBarForceShowNavigation_butFocusedAnyways()
199 dialog.mAttrs.width = WRAP_CONTENT; in testControlsForDispatch_topAppHidesStatusBar()
200 dialog.mAttrs.height = WRAP_CONTENT; in testControlsForDispatch_topAppHidesStatusBar()
205 displayPolicy.applyPostLayoutPolicyLw(dialog, dialog.mAttrs, fullscreenApp, null); in testControlsForDispatch_topAppHidesStatusBar()
206 displayPolicy.applyPostLayoutPolicyLw(fullscreenApp, fullscreenApp.mAttrs, null, null); in testControlsForDispatch_topAppHidesStatusBar()
350 win.mAttrs.flags |= FLAG_NOT_FOCUSABLE; in addNonFocusableWindow()
356 mDisplayContent.getDisplayPolicy().addWindowLw(win, win.mAttrs); in addWindow()
DFrameRateSelectionPriorityTests.java96 appWindow.mAttrs.preferredDisplayModeId = 1; in testApplicationInFocusWithModeId()
102 appWindow.mAttrs.preferredDisplayModeId = 0; in testApplicationInFocusWithModeId()
129 appWindow.mAttrs.preferredDisplayModeId = 1; in testApplicationNotInFocusWithModeId()
153 appWindow.mAttrs.preferredDisplayModeId = 0; in testApplicationNotInFocusWithoutModeId()
DDisplayPolicyTestsBase.java95 mStatusBarWindow.mAttrs.gravity = Gravity.TOP; in setUpDisplayPolicy()
99 mNavBarWindow.mAttrs.gravity = Gravity.BOTTOM; in setUpDisplayPolicy()
107 mDisplayPolicy.adjustWindowParamsLw(win, win.mAttrs, callingPid, callingUid); in addWindow()
109 mDisplayPolicy.validateAddingWindowLw(win.mAttrs, callingPid, callingUid)); in addWindow()
110 mDisplayPolicy.addWindowLw(win, win.mAttrs); in addWindow()
DWindowStateTests.java216 appWindow.mAttrs.flags |= FLAG_NOT_FOCUSABLE; in testCanBeImeTarget()
217 imeWindow.mAttrs.flags |= FLAG_NOT_FOCUSABLE; in testCanBeImeTarget()
228 appWindow.mAttrs.flags |= (FLAG_NOT_FOCUSABLE | FLAG_ALT_FOCUSABLE_IM); in testCanBeImeTarget()
229 imeWindow.mAttrs.flags |= (FLAG_NOT_FOCUSABLE | FLAG_ALT_FOCUSABLE_IM); in testCanBeImeTarget()
275 appWindow.mAttrs.flags |= FLAG_NOT_FOCUSABLE; in testCanWindowWithEmbeddedDisplayBeImeTarget()
283 embeddedWindow.mAttrs.flags &= ~FLAG_NOT_FOCUSABLE; in testCanWindowWithEmbeddedDisplayBeImeTarget()
333 second.mAttrs.flags |= WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON; in testPrepareWindowToDisplayDuringRelayout()
342 first.mAttrs.flags |= WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON; in testPrepareWindowToDisplayDuringRelayout()
343 second.mAttrs.flags |= WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON; in testPrepareWindowToDisplayDuringRelayout()
353 first.mAttrs.flags &= ~WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON; in testPrepareWindowToDisplayDuringRelayout()
[all …]
DInsetsStateControllerTest.java98 ime.mAttrs.flags |= FLAG_NOT_FOCUSABLE; in testStripForDispatch_navBar()
212 app.mAttrs.flags |= FLAG_NOT_FOCUSABLE; in testStripForDispatch_imeOrderChanged()
224 app.mAttrs.flags &= ~FLAG_NOT_FOCUSABLE; in testStripForDispatch_imeOrderChanged()
241 child.mAttrs.flags |= FLAG_ALT_FOCUSABLE_IM; in testStripForDispatch_childWindow_altFocusable()
258 child.mAttrs.flags |= FLAG_NOT_FOCUSABLE; in testStripForDispatch_childWindow_splitScreen()
276 ime.mAttrs.flags |= FLAG_NOT_FOCUSABLE; in testImeForDispatch()
DImeInsetsSourceProviderTest.java55 popup.mAttrs.format = PixelFormat.TRANSPARENT; in testTransparentControlTargetWindowCanShowIme()
DDisplayContentTests.java666 keyguard.mAttrs.screenOrientation = SCREEN_ORIENTATION_UNSPECIFIED; in testOrientationDefinedByKeyguard()
671 keyguard.mAttrs.screenOrientation = SCREEN_ORIENTATION_PORTRAIT; in testOrientationDefinedByKeyguard()
695 window.mAttrs.screenOrientation = SCREEN_ORIENTATION_LANDSCAPE; in testOrientationForAspectRatio()
705 window.mAttrs.screenOrientation, dc.getOrientation()); in testOrientationForAspectRatio()
1072 win.mAttrs.width = win.mAttrs.height = WindowManager.LayoutParams.WRAP_CONTENT; in testRequestResizeForEmptyFrames()
1073 win.mAttrs.gravity = Gravity.CENTER; in testRequestResizeForEmptyFrames()
1111 displayPolicy.addWindowLw(mStatusBarWindow, mStatusBarWindow.mAttrs); in testApplyTopFixedRotationTransform()
1112 displayPolicy.addWindowLw(mNavBarWindow, mNavBarWindow.mAttrs); in testApplyTopFixedRotationTransform()
1231 mAppWindow.mAttrs.rotationAnimation = WindowManager.LayoutParams.ROTATION_ANIMATION_ROTATE; in testRotateSeamlesslyWithFixedRotation()
/frameworks/base/core/java/android/os/
DExternalVibration.java37 private AudioAttributes mAttrs; field in ExternalVibration
49 mAttrs = Preconditions.checkNotNull(attrs); in ExternalVibration()
57 mAttrs = readAudioAttributes(in); in ExternalVibration()
84 return mAttrs; in getAudioAttributes()
88 return new VibrationAttributes.Builder(mAttrs, null).build(); in getVibrationAttributes()
153 + "attrs=" + mAttrs + ", " in toString()
163 writeAudioAttributes(mAttrs, out, flags); in writeToParcel()
/frameworks/base/services/core/java/com/android/server/wm/
DWindowState.java293 final WindowManager.LayoutParams mAttrs = new WindowManager.LayoutParams(); field in WindowState
872 mAttrs.copyFrom(a); in WindowState()
873 mLastSurfaceInsets.set(mAttrs.surfaceInsets); in WindowState()
883 + " token=" + token + " (" + mAttrs.token + ")" + " params=" + a); in WindowState()
903 if (mAttrs.type >= FIRST_SUB_WINDOW && mAttrs.type <= LAST_SUB_WINDOW) { in WindowState()
911 mLayoutAttached = mAttrs.type != in WindowState()
913 mIsImWindow = parentWindow.mAttrs.type == TYPE_INPUT_METHOD in WindowState()
914 || parentWindow.mAttrs.type == TYPE_INPUT_METHOD_DIALOG; in WindowState()
915 mIsWallpaper = parentWindow.mAttrs.type == TYPE_WALLPAPER; in WindowState()
924 mIsImWindow = mAttrs.type == TYPE_INPUT_METHOD in WindowState()
[all …]
DRefreshRatePolicy.java99 if (w.mAttrs.preferredRefreshRate != 0 || w.mAttrs.preferredDisplayModeId != 0) { in getPreferredModeId()
100 return w.mAttrs.preferredDisplayModeId; in getPreferredModeId()
DWindowStateAnimator.java268 mAttrType = win.mAttrs.type; in WindowStateAnimator()
326 mWin.mAttrs.type == WindowManager.LayoutParams.TYPE_APPLICATION_STARTING; in finishDrawingLocked()
359 mWin.mAttrs.type == WindowManager.LayoutParams.TYPE_APPLICATION_STARTING) { in commitFinishDrawingLocked()
373 || mWin.mAttrs.type == TYPE_APPLICATION_STARTING) { in commitFinishDrawingLocked()
462 if ((mWin.mAttrs.privateFlags & PRIVATE_FLAG_IS_ROUNDED_CORNERS_OVERLAY) != 0) { in createSurfaceLocked()
477 final WindowManager.LayoutParams attrs = w.mAttrs; in createSurfaceLocked()
715 tmpMatrix.postTranslate(mWin.mAttrs.surfaceInsets.left, in computeShownFrameLocked()
716 mWin.mAttrs.surfaceInsets.top); in computeShownFrameLocked()
739 || (!PixelFormat.formatHasAlpha(mWin.mAttrs.format) in computeShownFrameLocked()
801 if (w.mAttrs.type == TYPE_WALLPAPER) { in calculateCrop()
[all …]
DDisplayArea.java204 if (policy.isKeyguardHostWindow(w.mAttrs)) {
220 final int req = w.mAttrs.screenOrientation;
244 int req = win.mAttrs.screenOrientation; in getOrientation()
247 if (mWmService.mPolicy.isKeyguardHostWindow(win.mAttrs)) { in getOrientation()
DInputMonitor.java272 inputWindowHandle.inputFeatures = child.mAttrs.inputFeatures; in populateInputWindowHandle()
481 final int type = w.mAttrs.type; in accept()
498 final int flags = w.mAttrs.flags; in accept()
499 final int privateFlags = w.mAttrs.privateFlags; in accept()
528 if (w.mAttrs.type == TYPE_WALLPAPER && w.isVisibleLw()) { in accept()
DAccessibilityController.java516 final int type = windowState.mAttrs.type; in onWindowTransitionLocked()
685 if ((windowState.mAttrs.type == TYPE_MAGNIFICATION_OVERLAY) in recomputeBoundsLocked()
686 || ((windowState.mAttrs.privateFlags in recomputeBoundsLocked()
858 && (w.mAttrs.alpha != 0)) { in populateWindowsOnScreenLocked()
1164 if (windowState.mAttrs.type != WindowManager.LayoutParams.TYPE_NAVIGATION_BAR) { in isUntouchableNavigationBar()
1388 if (((windowState.mAttrs.flags & WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE) != 0) in windowMattersToAccessibility()
1389 && (windowState.mAttrs.type != TYPE_DOCK_DIVIDER)) { in windowMattersToAccessibility()
1399 if (isReportedWindowType(windowState.mAttrs.type)) { in windowMattersToAccessibility()
1408 if (windowState.mAttrs.type in updateUnaccountedSpace()
1418 if ((windowState.mAttrs.flags & (WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE in updateUnaccountedSpace()
DWallpaperController.java120 if ((w.mAttrs.type == TYPE_WALLPAPER)) {
156 if ((w.mAttrs.flags & FLAG_SHOW_WHEN_LOCKED) != 0
161 needsShowWhenLockedWallpaper = !isFullscreen(w.mAttrs)
176 final boolean hasWallpaper = (w.mAttrs.flags & FLAG_SHOW_WALLPAPER) != 0
348 if (rawChanged && (wallpaperWin.mAttrs.privateFlags & in updateWallpaperOffset()
DWindowManagerService.java1426 if (parentWindow.mAttrs.type >= FIRST_SUB_WINDOW in addWindow()
1427 && parentWindow.mAttrs.type <= LAST_SUB_WINDOW) { in addWindow()
1467 hasParent ? parentWindow.mAttrs.token : attrs.token); in addWindow()
1470 final int rootType = hasParent ? parentWindow.mAttrs.type : type; in addWindow()
1566 displayPolicy.adjustWindowParamsLw(win, win.mAttrs, callingPid, callingUid); in addWindow()
1605 win.mAttrs.hideTimeoutMilliseconds); in addWindow()
1684 if (displayPolicy.getLayoutHint(win.mAttrs, token, outFrame, outContentInsets, in addWindow()
1957 if (win.mAttrs.type == TYPE_WALLPAPER) { in postWindowRemoveCleanupLocked()
1960 } else if ((win.mAttrs.flags & FLAG_SHOW_WALLPAPER) != 0) { in postWindowRemoveCleanupLocked()
2162 if (win.mAttrs.type != attrs.type) { in relayoutWindow()
[all …]
DDisplayContent.java658 if (w.mAttrs.type == TYPE_TOAST && w.mOwnerUid == lostFocusUid) {
661 w.mAttrs.hideTimeoutMilliseconds);
669 w, w.mAttrs.flags, w.canReceiveKeys());
694 if (activity != null && w.mAttrs.type != TYPE_APPLICATION_STARTING) {
808 + " fl=0x" + Integer.toHexString(w.mAttrs.flags));
813 w -> getDisplayPolicy().applyPostLayoutPolicyLw(w, w.mAttrs, w.getParentWindow(),
845 final int type = w.mAttrs.type;
853 && w.mAttrs.preferredRefreshRate != 0) {
855 = w.mAttrs.preferredRefreshRate;
859 |= w.mAttrs.preferMinimalPostProcessing;
[all …]
/frameworks/native/libs/vibrator/
DExternalVibration.cpp42 mUid(uid), mPkg(pkg), mAttrs(attrs), mController(controller) { } in ExternalVibration()
47 writeAudioAttributes(mAttrs, parcel); in writeToParcel()
56 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.h45 audio_attributes_t getAudioAttributes() const { return mAttrs; } in getAudioAttributes()
52 audio_attributes_t mAttrs; variable
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DInjectionInflationController.java171 private final AttributeSet mAttrs; field in InjectionInflationController.ViewAttributeProvider
175 mAttrs = attrs; in ViewAttributeProvider()
192 return mAttrs; in provideAttributeSet()

12