/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | DisplayPolicyLayoutTests.java | 114 final WindowManager.LayoutParams attrs = mWindow.mAttrs; in setUp() 185 mWindow.mAttrs.flags |= FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS; in addingWindow_doesNotTamperWithSysuiFlags() 188 assertEquals(0, mWindow.mAttrs.systemUiVisibility); in addingWindow_doesNotTamperWithSysuiFlags() 189 assertEquals(0, mWindow.mAttrs.subtreeSystemUiVisibility); in addingWindow_doesNotTamperWithSysuiFlags() 197 win.mAttrs.providesInsetsTypes = new int[]{ITYPE_STATUS_BAR, ITYPE_TOP_GESTURES}; in addingWindow_withInsetsTypes() 225 win.mAttrs.providesInsetsTypes = new int[]{ITYPE_STATUS_BAR}; in addingWindow_ignoresInsetsTypes_InWindowTypeWithPredefinedInsets() 239 win1.mAttrs.providesInsetsTypes = new int[]{ITYPE_STATUS_BAR, ITYPE_NAVIGATION_BAR}; in addingWindow_throwsException_WithMultipleInsetTypes() 244 win2.mAttrs.providesInsetsTypes = new int[]{ITYPE_CLIMATE_BAR, ITYPE_EXTRA_NAVIGATION_BAR}; in addingWindow_throwsException_WithMultipleInsetTypes() 254 win1.mAttrs.providesInsetsTypes = new int[]{ITYPE_NAVIGATION_BAR}; in addingWindow_variousGravities_alternateBarPosUpdated() 255 win1.mAttrs.gravity = Gravity.TOP; in addingWindow_variousGravities_alternateBarPosUpdated() [all …]
|
D | RefreshRatePolicyTest.java | 65 window.mAttrs.writeToParcel(parcel, 0); in parcelLayoutParams() 67 window.mAttrs.copyFrom(new LayoutParams(parcel)); in parcelLayoutParams() 98 cameraUsingWindow.mAttrs.packageName = "com.android.test"; in testCamera() 120 denylistedWindow.mAttrs.packageName = "com.android.test"; in testDenyList() 133 overrideWindow.mAttrs.packageName = "com.android.test"; in testAppOverridePreferredModeId_denylist() 134 overrideWindow.mAttrs.preferredDisplayModeId = HI_MODE_ID; in testAppOverridePreferredModeId_denylist() 147 overrideWindow.mAttrs.packageName = "com.android.test"; in testAppOverridePreferredRefreshRate_denylist() 148 overrideWindow.mAttrs.preferredRefreshRate = HI_REFRESH_RATE; in testAppOverridePreferredRefreshRate_denylist() 161 overrideWindow.mAttrs.packageName = "com.android.test"; in testAppOverridePreferredModeId_camera() 162 overrideWindow.mAttrs.preferredDisplayModeId = HI_MODE_ID; in testAppOverridePreferredModeId_camera() [all …]
|
D | WindowFrameTests.java | 93 w.mAttrs.gravity = Gravity.LEFT | Gravity.TOP; in testLayoutInFullscreenTask() 109 w.mAttrs.width = 300; in testLayoutInFullscreenTask() 110 w.mAttrs.height = 300; in testLayoutInFullscreenTask() 126 w.mAttrs.flags = WindowManager.LayoutParams.FLAG_SCALED; in testLayoutInFullscreenTask() 129 w.mAttrs.width = 100; in testLayoutInFullscreenTask() 130 w.mAttrs.height = 100; in testLayoutInFullscreenTask() 133 w.mAttrs.flags = 0; in testLayoutInFullscreenTask() 142 w.mAttrs.x = 300; in testLayoutInFullscreenTask() 143 w.mAttrs.y = 300; in testLayoutInFullscreenTask() 151 w.mAttrs.x = 0; in testLayoutInFullscreenTask() [all …]
|
D | FrameRateSelectionPriorityTests.java | 150 appWindow.mAttrs.preferredDisplayModeId = 1; in testApplicationInFocusWithModeId() 157 appWindow.mAttrs.preferredDisplayModeId = 0; in testApplicationInFocusWithModeId() 189 appWindow.mAttrs.preferredDisplayModeId = 1; in testApplicationNotInFocusWithModeId() 218 appWindow.mAttrs.preferredDisplayModeId = 0; in testApplicationNotInFocusWithoutModeId() 236 appWindow.mAttrs.packageName = "com.android.test"; in testDenyListPreferredRefreshRate() 268 appWindow.mAttrs.preferredDisplayModeId = 1; in testSwitchingTypeNone() 274 appWindow.mAttrs.preferredDisplayModeId = 0; in testSwitchingTypeNone() 291 appWindow.mAttrs.packageName = "com.android.test"; in testAppPreferredRefreshRate() 292 appWindow.mAttrs.preferredRefreshRate = 60; in testAppPreferredRefreshRate()
|
D | WindowStateTests.java | 226 appWindow.mAttrs.flags |= FLAG_NOT_FOCUSABLE; in testCanBeImeTarget() 227 imeWindow.mAttrs.flags |= FLAG_NOT_FOCUSABLE; in testCanBeImeTarget() 238 appWindow.mAttrs.flags |= (FLAG_NOT_FOCUSABLE | FLAG_ALT_FOCUSABLE_IM); in testCanBeImeTarget() 239 imeWindow.mAttrs.flags |= (FLAG_NOT_FOCUSABLE | FLAG_ALT_FOCUSABLE_IM); in testCanBeImeTarget() 286 appWindow.mAttrs.flags |= FLAG_NOT_FOCUSABLE; in testCanWindowWithEmbeddedDisplayBeImeTarget() 294 embeddedWindow.mAttrs.flags &= ~FLAG_NOT_FOCUSABLE; in testCanWindowWithEmbeddedDisplayBeImeTarget() 343 second.mAttrs.flags |= WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON; in testPrepareWindowToDisplayDuringRelayout() 352 first.mAttrs.flags |= WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON; in testPrepareWindowToDisplayDuringRelayout() 353 second.mAttrs.flags |= WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON; in testPrepareWindowToDisplayDuringRelayout() 363 first.mAttrs.flags &= ~WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON; in testPrepareWindowToDisplayDuringRelayout() [all …]
|
D | InsetsPolicyTest.java | 122 addWindow(TYPE_STATUS_BAR, "statusBar").mAttrs.privateFlags |= in testControlsForDispatch_forceStatusBarVisible() 135 addWindow(TYPE_NOTIFICATION_SHADE, "notificationShade").mAttrs.privateFlags |= in testControlsForDispatch_statusBarForceShowNavigation() 150 notifShade.mAttrs.privateFlags |= PRIVATE_FLAG_STATUS_FORCE_SHOW_NAVIGATION; in testControlsForDispatch_statusBarForceShowNavigation_butFocusedAnyways() 188 dialog.mAttrs.width = WRAP_CONTENT; in testControlsForDispatch_topAppHidesStatusBar() 189 dialog.mAttrs.height = WRAP_CONTENT; in testControlsForDispatch_topAppHidesStatusBar() 194 displayPolicy.applyPostLayoutPolicyLw(dialog, dialog.mAttrs, fullscreenApp, null); in testControlsForDispatch_topAppHidesStatusBar() 195 displayPolicy.applyPostLayoutPolicyLw(fullscreenApp, fullscreenApp.mAttrs, null, null); in testControlsForDispatch_topAppHidesStatusBar() 256 shade.mAttrs.flags |= FLAG_NOT_FOCUSABLE; in testControlsForDispatch_topAppHidesStatusBar() 409 win.mAttrs.flags |= FLAG_NOT_FOCUSABLE; in addNonFocusableWindow() 415 mDisplayContent.getDisplayPolicy().addWindowLw(win, win.mAttrs); in addWindow()
|
D | DisplayPolicyTests.java | 73 final WindowManager.LayoutParams attrs = win.mAttrs; in createOpaqueFullscreen() 85 final WindowManager.LayoutParams attrs = win.mAttrs; in createDimmingDialogWindow() 97 final WindowManager.LayoutParams attrs = win.mAttrs; in createInputMethodWindow() 234 final WindowManager.LayoutParams attrs = mAppWindow.mAttrs; in testComputeTopFullscreenOpaqueWindow() 248 activity.mAttrs.privateFlags |= PRIVATE_FLAG_FORCE_DRAW_BAR_BACKGROUNDS; in testMainAppWindowDisallowFitSystemWindowTypes() 250 policy.adjustWindowParamsLw(activity, activity.mAttrs); in testMainAppWindowDisallowFitSystemWindowTypes() 255 final WindowManager.LayoutParams attrs = win.mAttrs; in createApplicationWindow() 266 final WindowManager.LayoutParams attrs = win.mAttrs; in createBaseApplicationWindow() 316 displayPolicy.addWindowLw(mNavBarWindow, mNavBarWindow.mAttrs); in testImeMinimalSourceFrame() 324 mImeWindow.mAttrs.setFitInsetsSides(Side.all() & ~Side.BOTTOM); in testImeMinimalSourceFrame()
|
D | DisplayPolicyTestsBase.java | 99 mStatusBarWindow.mAttrs.gravity = Gravity.TOP; in setUpDisplayPolicy() 102 mNavBarWindow.mAttrs.gravity = Gravity.BOTTOM; in setUpDisplayPolicy() 110 mDisplayPolicy.adjustWindowParamsLw(win, win.mAttrs); in addWindow() 112 win.mAttrs, Binder.getCallingPid(), Binder.getCallingUid())); in addWindow() 113 mDisplayPolicy.addWindowLw(win, win.mAttrs); in addWindow()
|
D | InsetsStateControllerTest.java | 69 ime.mAttrs.flags |= FLAG_NOT_FOCUSABLE; in testStripForDispatch_navBar() 192 app.mAttrs.flags |= FLAG_NOT_FOCUSABLE; in testStripForDispatch_imeOrderChanged() 205 app.mAttrs.flags &= ~FLAG_NOT_FOCUSABLE; in testStripForDispatch_imeOrderChanged() 227 child.mAttrs.flags |= FLAG_ALT_FOCUSABLE_IM; in testStripForDispatch_childWindow_altFocusable() 247 child.mAttrs.flags |= FLAG_NOT_FOCUSABLE; in testStripForDispatch_childWindow_splitScreen() 266 ime.mAttrs.flags |= FLAG_NOT_FOCUSABLE; in testImeForDispatch() 425 app.mAttrs.receiveInsetsIgnoringZOrder = true; in testDispatchGlobalInsets()
|
D | ImeInsetsSourceProviderTest.java | 57 popup.mAttrs.format = PixelFormat.TRANSPARENT; in testTransparentControlTargetWindowCanShowIme()
|
D | DisplayContentTests.java | 807 keyguard.mAttrs.screenOrientation = SCREEN_ORIENTATION_UNSPECIFIED; in testOrientationDefinedByKeyguard() 812 keyguard.mAttrs.screenOrientation = SCREEN_ORIENTATION_PORTRAIT; in testOrientationDefinedByKeyguard() 838 window.mAttrs.screenOrientation = SCREEN_ORIENTATION_LANDSCAPE; in testOrientationForAspectRatio() 848 window.mAttrs.screenOrientation, dc.getOrientation()); in testOrientationForAspectRatio() 858 window.mAttrs.screenOrientation, dc.getOrientation()); in testOrientationForAspectRatio() 1243 win.mAttrs.width = win.mAttrs.height = WindowManager.LayoutParams.WRAP_CONTENT; in testRequestResizeForEmptyFrames() 1244 win.mAttrs.gravity = Gravity.CENTER; in testRequestResizeForEmptyFrames() 1285 displayPolicy.addWindowLw(statusBar, statusBar.mAttrs); in testHybridRotationAnimation() 1286 displayPolicy.addWindowLw(navBar, navBar.mAttrs); in testHybridRotationAnimation() 1320 displayPolicy.addWindowLw(mStatusBarWindow, mStatusBarWindow.mAttrs); in testApplyTopFixedRotationTransform() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | RefreshRatePolicy.java | 98 return w.mAttrs.preferredDisplayModeId; in getPreferredModeId() 134 final int preferredModeId = w.mAttrs.preferredDisplayModeId; in getPreferredRefreshRate() 146 if (w.mAttrs.preferredRefreshRate > 0) { in getPreferredRefreshRate() 147 return w.mAttrs.preferredRefreshRate; in getPreferredRefreshRate() 167 return w.mAttrs.preferredMinDisplayRefreshRate; in getPreferredMinRefreshRate() 177 if (w.mAttrs.preferredMaxDisplayRefreshRate > 0) { in getPreferredMaxRefreshRate() 178 return w.mAttrs.preferredMaxDisplayRefreshRate; in getPreferredMaxRefreshRate()
|
D | WindowState.java | 313 final WindowManager.LayoutParams mAttrs = new WindowManager.LayoutParams(); field in WindowState 998 mAttrs.insetsFlags.behavior == BEHAVIOR_SHOW_TRANSIENT_BARS_BY_SWIPE in isImplicitlyExcludingAllSystemGestures() 1057 mAttrs.copyFrom(a); in WindowState() 1058 mLastSurfaceInsets.set(mAttrs.surfaceInsets); in WindowState() 1072 mInputWindowHandle.setPackageName(mAttrs.packageName); in WindowState() 1073 mInputWindowHandle.setLayoutParamsType(mAttrs.type); in WindowState() 1077 ((mAttrs.privateFlags & PRIVATE_FLAG_TRUSTED_OVERLAY) != 0 in WindowState() 1079 || InputMonitor.isTrustedOverlay(mAttrs.type)); in WindowState() 1082 + " token=" + token + " (" + mAttrs.token + ")" + " params=" + a); in WindowState() 1101 if (mAttrs.type >= FIRST_SUB_WINDOW && mAttrs.type <= LAST_SUB_WINDOW) { in WindowState() [all …]
|
D | InsetsPolicy.java | 319 focusedWin.mAttrs.packageName); in getStatusControlTarget() 347 && win.mAttrs.type >= WindowManager.LayoutParams.FIRST_APPLICATION_WINDOW in canBeTopFullscreenOpaqueWindow() 348 && win.mAttrs.type <= WindowManager.LayoutParams.LAST_APPLICATION_WINDOW; in canBeTopFullscreenOpaqueWindow() 349 return nonAttachedAppWindow && win.mAttrs.isFullscreen() && !win.isFullyTransparent() in canBeTopFullscreenOpaqueWindow() 369 focusedWin.mAttrs.packageName); in getNavControlTarget() 411 return win != null && (win.mAttrs.privateFlags & PRIVATE_FLAG_FORCE_SHOW_STATUS_BAR) != 0; in forceShowsStatusBarTransiently() 417 && (win.mAttrs.privateFlags & PRIVATE_FLAG_STATUS_FORCE_SHOW_NAVIGATION) != 0; in forceShowsNavigationBarTransiently()
|
D | WindowStateAnimator.java | 187 mAttrType = win.mAttrs.type; in WindowStateAnimator() 235 mWin.mAttrs.type == WindowManager.LayoutParams.TYPE_APPLICATION_STARTING; in finishDrawingLocked() 272 mWin.mAttrs.type == WindowManager.LayoutParams.TYPE_APPLICATION_STARTING) { in commitFinishDrawingLocked() 286 || mWin.mAttrs.type == TYPE_APPLICATION_STARTING) { in commitFinishDrawingLocked() 322 final WindowManager.LayoutParams attrs = w.mAttrs; in createSurfaceLocked() 328 if ((mWin.mAttrs.privateFlags & PRIVATE_FLAG_IS_ROUNDED_CORNERS_OVERLAY) != 0) { in createSurfaceLocked() 708 final boolean isImeWindow = mWin.mAttrs.type == TYPE_INPUT_METHOD; in applyAnimationLocked() 746 mWin.mAttrs, attr, TRANSIT_OLD_NONE); in applyAnimationLocked() 815 sb.append(mWin.mAttrs.getTitle()); in toString()
|
D | InputMonitor.java | 278 inputWindowHandle.setInputFeatures(w.mAttrs.inputFeatures); in populateInputWindowHandle() 297 inputWindowHandle.setSurfaceInset(w.mAttrs.surfaceInsets.left); in populateInputWindowHandle() 303 final int flags = w.getSurfaceTouchableRegion(mTmpRegion, w.mAttrs.flags); in populateInputWindowHandle() 537 final int privateFlags = w.mAttrs.privateFlags; in accept() 560 if (w.mAttrs.type == TYPE_WALLPAPER && w.isVisible()) { in accept()
|
D | DisplayArea.java | 553 if (policy.isKeyguardHostWindow(w.mAttrs)) { 574 final int req = w.mAttrs.screenOrientation; 603 int req = win.mAttrs.screenOrientation; in getOrientation() 606 if (mWmService.mPolicy.isKeyguardHostWindow(win.mAttrs)) { in getOrientation()
|
D | WallpaperController.java | 118 if ((w.mAttrs.type == TYPE_WALLPAPER)) { 160 if ((w.mAttrs.flags & FLAG_SHOW_WHEN_LOCKED) != 0 165 needsShowWhenLockedWallpaper = !isFullscreen(w.mAttrs) 347 if (rawChanged && (wallpaperWin.mAttrs.privateFlags & in updateWallpaperOffset()
|
D | AccessibilityController.java | 746 final int type = windowState.mAttrs.type; in onWindowTransition() 942 final int windowType = windowState.mAttrs.type; in recomputeBounds() 944 || ((windowState.mAttrs.privateFlags in recomputeBounds() 1108 && (w.mAttrs.alpha != 0)) { in populateWindowsOnScreen() 1426 if (windowState.mAttrs.type != WindowManager.LayoutParams.TYPE_NAVIGATION_BAR) { in isUntouchableNavigationBar() 1748 if (((windowState.mAttrs.flags & WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE) != 0) in windowMattersToAccessibility() 1749 && (windowState.mAttrs.type != TYPE_DOCK_DIVIDER)) { in windowMattersToAccessibility() 1759 if (isReportedWindowType(windowState.mAttrs.type)) { in windowMattersToAccessibility() 1768 if (windowState.mAttrs.type in updateUnaccountedSpace() 1778 if ((windowState.mAttrs.flags & (WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE in updateUnaccountedSpace()
|
D | DisplayContent.java | 712 if (w.mAttrs.type == TYPE_TOAST && w.mOwnerUid == lostFocusUid) { 715 w.mAttrs.hideTimeoutMilliseconds); 723 w, w.mAttrs.flags, w.canReceiveKeys(), 740 if (w.mAttrs.type == TYPE_INPUT_METHOD_DIALOG && mImeLayeringTarget != null 766 if (activity != null && w.mAttrs.type != TYPE_APPLICATION_STARTING) { 865 + " fl=0x" + Integer.toHexString(w.mAttrs.flags)); 870 w -> getDisplayPolicy().applyPostLayoutPolicyLw(w, w.mAttrs, w.getParentWindow(), 902 final int type = w.mAttrs.type; 910 && w.mAttrs.preferredRefreshRate != 0) { 912 = w.mAttrs.preferredRefreshRate; [all …]
|
/frameworks/base/core/java/android/os/ |
D | ExternalVibration.java | 38 private AudioAttributes mAttrs; field in ExternalVibration 50 mAttrs = Preconditions.checkNotNull(attrs); in ExternalVibration() 58 mAttrs = readAudioAttributes(in); in ExternalVibration() 85 return mAttrs; in getAudioAttributes() 89 return new VibrationAttributes.Builder(mAttrs, null).build(); in getVibrationAttributes() 154 + "attrs=" + mAttrs + ", " in toString() 164 writeAudioAttributes(mAttrs, out, flags); in writeToParcel()
|
/frameworks/native/libs/vibrator/ |
D | ExternalVibration.cpp | 42 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/ |
D | ShortcutParser.java | 49 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/ |
D | ExternalVibration.h | 45 audio_attributes_t getAudioAttributes() const { return mAttrs; } in getAudioAttributes() 52 audio_attributes_t mAttrs; variable
|
/frameworks/base/services/core/java/com/android/server/vibrator/ |
D | Vibration.java | 220 private final VibrationAttributes mAttrs; field in Vibration.DebugInfo 234 mAttrs = attrs; in DebugInfo() 258 .append(mAttrs) in toString() 276 proto.write(VibrationAttributesProto.USAGE, mAttrs.getUsage()); in dumpProto() 277 proto.write(VibrationAttributesProto.AUDIO_USAGE, mAttrs.getAudioUsage()); in dumpProto() 278 proto.write(VibrationAttributesProto.FLAGS, mAttrs.getFlags()); in dumpProto()
|