Home
last modified time | relevance | path

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

12

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayPolicyLayoutTests.java86 final WindowManager.LayoutParams attrs = mWindow.mAttrs; in setUp()
112 mWindow.mAttrs.flags |= FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS; in addingWindow_doesNotTamperWithSysuiFlags()
115 assertEquals(0, mWindow.mAttrs.systemUiVisibility); in addingWindow_doesNotTamperWithSysuiFlags()
116 assertEquals(0, mWindow.mAttrs.subtreeSystemUiVisibility); in addingWindow_doesNotTamperWithSysuiFlags()
122 mWindow.mAttrs.flags |= FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS; in layoutWindowLw_appDrawsBars()
139 mWindow.mAttrs.flags &= ~FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS; in layoutWindowLw_appWontDrawBars()
156 mWindow.mAttrs.flags &= ~FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS; in layoutWindowLw_appWontDrawBars_forceStatusAndNav()
157 mWindow.mAttrs.privateFlags |= PRIVATE_FLAG_FORCE_DRAW_BAR_BACKGROUNDS; in layoutWindowLw_appWontDrawBars_forceStatusAndNav()
174 mWindow.mAttrs.type = TYPE_KEYGUARD_DIALOG; in layoutWindowLw_keyguardDialog_hideNav()
175 mWindow.mAttrs.flags |= FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS; in layoutWindowLw_keyguardDialog_hideNav()
[all …]
DWindowFrameTests.java133 w.mAttrs.gravity = Gravity.LEFT | Gravity.TOP; in testLayoutInFullscreenTaskInsets()
172 w.mAttrs.x = 100; in testLayoutInFullscreenTaskInsets()
173 w.mAttrs.y = 100; in testLayoutInFullscreenTaskInsets()
174 w.mAttrs.width = 100; w.mAttrs.height = 100; //have to clear MATCH_PARENT in testLayoutInFullscreenTaskInsets()
190 w.mAttrs.gravity = Gravity.LEFT | Gravity.TOP; in testLayoutInFullscreenTaskNoInsets()
205 w.mAttrs.width = 300; in testLayoutInFullscreenTaskNoInsets()
206 w.mAttrs.height = 300; in testLayoutInFullscreenTaskNoInsets()
222 w.mAttrs.flags = WindowManager.LayoutParams.FLAG_SCALED; in testLayoutInFullscreenTaskNoInsets()
225 w.mAttrs.width = 100; in testLayoutInFullscreenTaskNoInsets()
226 w.mAttrs.height = 100; in testLayoutInFullscreenTaskNoInsets()
[all …]
DRefreshRatePolicyTest.java67 cameraUsingWindow.mAttrs.packageName = "com.android.test"; in testCamera()
79 blacklistedWindow.mAttrs.packageName = "com.android.test"; in testBlacklist()
88 overrideWindow.mAttrs.preferredDisplayModeId = LOW_MODE_ID; in testAppOverride_blacklist()
97 overrideWindow.mAttrs.packageName = "com.android.test"; in testAppOverride_camera()
98 overrideWindow.mAttrs.preferredDisplayModeId = LOW_MODE_ID; in testAppOverride_camera()
107 overrideWindow.mAttrs.packageName = "com.android.test"; in testAnimatingAppOverride()
108 overrideWindow.mAttrs.preferredDisplayModeId = LOW_MODE_ID; in testAnimatingAppOverride()
120 cameraUsingWindow.mAttrs.packageName = "com.android.test"; in testAnimatingCamera()
DDisplayPolicyTests.java66 final WindowManager.LayoutParams attrs = win.mAttrs; in createOpaqueFullscreen()
79 final WindowManager.LayoutParams attrs = win.mAttrs; in createDimmingDialogWindow()
91 final WindowManager.LayoutParams attrs = win.mAttrs; in createInputMethodWindow()
215 final WindowManager.LayoutParams attrs = mAppWindow.mAttrs; in testShouldRotateSeamlessly()
249 toast, toast.mAttrs, 0 /* callingPid */, 0 /* callingUid */); in testShouldShowToastWhenScreenLocked()
258 final WindowManager.LayoutParams attrs = win.mAttrs; in createToastWindow()
268 final WindowManager.LayoutParams attrs = win.mAttrs; in createApplicationWindow()
DWindowStateTests.java225 appWindow.mAttrs.flags |= FLAG_NOT_FOCUSABLE; in testCanBeImeTarget()
226 imeWindow.mAttrs.flags |= FLAG_NOT_FOCUSABLE; in testCanBeImeTarget()
237 appWindow.mAttrs.flags |= (FLAG_NOT_FOCUSABLE | FLAG_ALT_FOCUSABLE_IM); in testCanBeImeTarget()
238 imeWindow.mAttrs.flags |= (FLAG_NOT_FOCUSABLE | FLAG_ALT_FOCUSABLE_IM); in testCanBeImeTarget()
296 second.mAttrs.flags |= WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON; in testPrepareWindowToDisplayDuringRelayout()
311 first.mAttrs.flags |= WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON; in testPrepareWindowToDisplayDuringRelayout()
312 second.mAttrs.flags |= WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON; in testPrepareWindowToDisplayDuringRelayout()
332 firstWindow.mAttrs.flags |= WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON; in testPrepareWindowToDisplayDuringRelayout()
333 secondWindow.mAttrs.flags |= WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON; in testPrepareWindowToDisplayDuringRelayout()
352 app.mAttrs.alpha = 0.0f; in testCanAffectSystemUiFlags()
[all …]
DDisplayPolicyTestsBase.java92 mStatusBarWindow.mAttrs.gravity = Gravity.TOP; in setUpDisplayPolicy()
96 mNavBarWindow.mAttrs.gravity = Gravity.BOTTOM; in setUpDisplayPolicy()
102 mDisplayPolicy.adjustWindowParamsLw(win, win.mAttrs, Binder.getCallingPid(), in addWindow()
105 mDisplayPolicy.prepareAddWindowLw(win, win.mAttrs)); in addWindow()
DTaskSnapshotControllerTest.java108 secureWindow.mAttrs.flags |= FLAG_SECURE; in testGetSnapshotMode()
DDisplayContentTests.java531 keyguard.mAttrs.screenOrientation = SCREEN_ORIENTATION_UNSPECIFIED; in testOrientationDefinedByKeyguard()
536 keyguard.mAttrs.screenOrientation = SCREEN_ORIENTATION_PORTRAIT; in testOrientationDefinedByKeyguard()
560 window.mAttrs.screenOrientation = SCREEN_ORIENTATION_LANDSCAPE; in testOrientationForAspectRatio()
570 window.mAttrs.screenOrientation, dc.getOrientation()); in testOrientationForAspectRatio()
/frameworks/base/services/core/java/com/android/server/wm/
DWindowState.java253 final WindowManager.LayoutParams mAttrs = new WindowManager.LayoutParams(); field in WindowState
747 mAttrs.copyFrom(a); in WindowState()
748 mLastSurfaceInsets.set(mAttrs.surfaceInsets); in WindowState()
758 + " token=" + token + " (" + mAttrs.token + ")" + " params=" + a); in WindowState()
776 if (mAttrs.type >= FIRST_SUB_WINDOW && mAttrs.type <= LAST_SUB_WINDOW) { in WindowState()
787 mLayoutAttached = mAttrs.type != in WindowState()
789 mIsImWindow = parentWindow.mAttrs.type == TYPE_INPUT_METHOD in WindowState()
790 || parentWindow.mAttrs.type == TYPE_INPUT_METHOD_DIALOG; in WindowState()
791 mIsWallpaper = parentWindow.mAttrs.type == TYPE_WALLPAPER; in WindowState()
800 mIsImWindow = mAttrs.type == TYPE_INPUT_METHOD in WindowState()
[all …]
DRefreshRatePolicy.java75 if (w.mAttrs.preferredRefreshRate != 0 || w.mAttrs.preferredDisplayModeId != 0) { in getPreferredModeId()
76 return w.mAttrs.preferredDisplayModeId; in getPreferredModeId()
DWindowStateAnimator.java246 mAttrType = win.mAttrs.type; in WindowStateAnimator()
306 mWin.mAttrs.type == WindowManager.LayoutParams.TYPE_APPLICATION_STARTING; in finishDrawingLocked()
331 mWin.mAttrs.type == WindowManager.LayoutParams.TYPE_APPLICATION_STARTING) { in commitFinishDrawingLocked()
345 || mWin.mAttrs.type == TYPE_APPLICATION_STARTING) { in commitFinishDrawingLocked()
434 if ((mWin.mAttrs.privateFlags & PRIVATE_FLAG_IS_ROUNDED_CORNERS_OVERLAY) != 0) { in createSurfaceLocked()
448 final WindowManager.LayoutParams attrs = w.mAttrs; in createSurfaceLocked()
694 tmpMatrix.postTranslate(mWin.mAttrs.surfaceInsets.left, in computeShownFrameLocked()
695 mWin.mAttrs.surfaceInsets.top); in computeShownFrameLocked()
718 || (!PixelFormat.formatHasAlpha(mWin.mAttrs.format) in computeShownFrameLocked()
783 if (w.mAttrs.type == TYPE_WALLPAPER) { in calculateCrop()
[all …]
DInputMonitor.java267 inputWindowHandle.inputFeatures = child.mAttrs.inputFeatures; in populateInputWindowHandle()
469 final int flags = w.mAttrs.flags; in accept()
470 final int privateFlags = w.mAttrs.privateFlags; in accept()
471 final int type = w.mAttrs.type; in accept()
509 if (w.mAttrs.type == TYPE_WALLPAPER && w.isVisibleLw()) { in accept()
DRootWindowContainer.java310 if (w.mAttrs.getTitle().toString().contains(name)) { in getWindowsByName()
325 w.getOwningUid() == callingUid && w.mAttrs.type != TYPE_TOAST in isAnyNonToastWindowVisibleForUid()
326 && w.mAttrs.type != TYPE_APPLICATION_STARTING && w.isVisibleNow(), in isAnyNonToastWindowVisibleForUid()
866 final WindowManager.LayoutParams attrs = w.mAttrs; in handleNotObscuredLocked()
878 + ", w.mAttrs.userActivityTimeout: " + w.mAttrs.userActivityTimeout); in handleNotObscuredLocked()
881 if (!syswin && w.mAttrs.userActivityTimeout >= 0 && mUserActivityTimeout < 0) { in handleNotObscuredLocked()
882 mUserActivityTimeout = w.mAttrs.userActivityTimeout; in handleNotObscuredLocked()
897 if (!syswin && w.mAttrs.screenBrightness >= 0 && mScreenBrightness < 0) { in handleNotObscuredLocked()
898 mScreenBrightness = w.mAttrs.screenBrightness; in handleNotObscuredLocked()
DDisplayContent.java630 if (w.mAttrs.type == TYPE_TOAST && w.mOwnerUid == lostFocusUid) {
633 w.mAttrs.hideTimeoutMilliseconds);
641 + ", flags=" + w.mAttrs.flags + ", canReceive=" + w.canReceiveKeys());
673 if (wtoken != null && w.mAttrs.type != TYPE_APPLICATION_STARTING) {
716 if (w.mAttrs.type == TYPE_DREAM) {
768 } else if (w.mAttrs.type == TYPE_DREAM) {
777 + " fl=0x" + Integer.toHexString(w.mAttrs.flags));
782 w -> getDisplayPolicy().applyPostLayoutPolicyLw(w, w.mAttrs, w.getParentWindow(),
809 final int type = w.mAttrs.type;
811 || (w.mAttrs.privateFlags & PRIVATE_FLAG_KEYGUARD) != 0) {
[all …]
DAccessibilityController.java406 final int type = windowState.mAttrs.type; in onWindowTransitionLocked()
575 if ((windowState.mAttrs.type == TYPE_MAGNIFICATION_OVERLAY) in recomputeBoundsLocked()
576 || ((windowState.mAttrs.privateFlags in recomputeBoundsLocked()
741 && (w.mAttrs.alpha != 0) in populateWindowsOnScreenLocked()
1232 if (((windowState.mAttrs.flags & WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE) != 0) in windowMattersToAccessibility()
1233 && (windowState.mAttrs.type != TYPE_DOCK_DIVIDER)) { in windowMattersToAccessibility()
1243 if (isReportedWindowType(windowState.mAttrs.type)) { in windowMattersToAccessibility()
1252 if (windowState.mAttrs.type in updateUnaccountedSpace()
1262 if ((windowState.mAttrs.flags & (WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE in updateUnaccountedSpace()
DWallpaperController.java114 if ((w.mAttrs.type == TYPE_WALLPAPER)) {
147 if ((w.mAttrs.flags & FLAG_SHOW_WHEN_LOCKED) != 0
152 needsShowWhenLockedWallpaper = !isFullscreen(w.mAttrs)
166 final boolean hasWallpaper = (w.mAttrs.flags & FLAG_SHOW_WALLPAPER) != 0
324 if (rawChanged && (wallpaperWin.mAttrs.privateFlags & in updateWallpaperOffset()
DWindowManagerService.java1287 if (parentWindow.mAttrs.type >= FIRST_SUB_WINDOW in addWindow()
1288 && parentWindow.mAttrs.type <= LAST_SUB_WINDOW) { in addWindow()
1305 hasParent ? parentWindow.mAttrs.token : attrs.token); in addWindow()
1308 final int rootType = hasParent ? parentWindow.mAttrs.type : type; in addWindow()
1448 displayPolicy.adjustWindowParamsLw(win, win.mAttrs, Binder.getCallingPid(), in addWindow()
1489 win.mAttrs.hideTimeoutMilliseconds); in addWindow()
1585 if (displayPolicy.getLayoutHintLw(win.mAttrs, taskBounds, displayFrames, floatingStack, in addWindow()
1744 if ((w.mAttrs.flags&WindowManager.LayoutParams.FLAG_SECURE) != 0) { in isSecureLocked()
1835 if (win.mAttrs.type == TYPE_WALLPAPER) { in postWindowRemoveCleanupLocked()
1838 } else if ((win.mAttrs.flags & FLAG_SHOW_WALLPAPER) != 0) { in postWindowRemoveCleanupLocked()
[all …]
DAppWindowToken.java787 if (win != null && win.mAttrs.isFullscreen()) { in getTopFullscreenWindow()
809 final int type = win.mAttrs.type; in findMainWindow()
1226 final int type1 = newWindow.mAttrs.type; in isFirstChildWindowGreaterThanSecond()
1227 final int type2 = existingWindow.mAttrs.type; in isFirstChildWindowGreaterThanSecond()
1255 if (getChildAt(i).mAttrs.type == TYPE_APPLICATION_STARTING) { in hasStartingWindow()
2366 if ((mChildren.get(i).mAttrs.flags & FLAG_DISMISS_KEYGUARD) != 0) { in containsDismissKeyguardWindow()
2382 if ((mChildren.get(i).mAttrs.flags & FLAG_SHOW_WHEN_LOCKED) != 0) { in containsShowWhenLockedWindow()
2461 return mDisablePreviewScreenshots || forAllWindows(w -> (w.mAttrs.flags & FLAG_SECURE) != 0, in shouldUseAppThemeSnapshot()
3254 return forAllWindows(ws -> ws.mAttrs.getColorMode() != COLOR_MODE_DEFAULT, in hasNonDefaultColorWindow()
/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()
149 + "attrs=" + mAttrs + ", " in toString()
159 writeAudioAttributes(mAttrs, out, flags); in writeToParcel()
/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.java189 private final AttributeSet mAttrs; field in InjectionInflationController.ViewAttributeProvider
193 mAttrs = attrs; in ViewAttributeProvider()
210 return mAttrs; in provideAttributeSet()
/frameworks/base/services/core/java/com/android/server/
DVibratorService.java302 private final AudioAttributes mAttrs; field in VibratorService.VibrationInfo
313 mAttrs = attrs; in VibrationInfo()
329 .append(mAttrs) in toString()
1342 private final AudioAttributes mAttrs; field in VibratorService.VibrateThread
1349 mAttrs = attrs; in VibrateThread()
1424 doVibratorOn(onDuration, amplitude, mUid, mAttrs); in playWaveform()
/frameworks/base/media/java/android/media/tv/
DTvView.java101 private final AttributeSet mAttrs; field in TvView
171 mAttrs = attrs; in TvView()
781 mSurfaceView = new SurfaceView(getContext(), mAttrs, mDefStyleAttr) { in resetSurfaceView()

12