/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | SystemBarAttributesListenerTest.kt | 65 val appearance = APPEARANCE_LIGHT_STATUS_BARS or APPEARANCE_LIGHT_NAVIGATION_BARS in onSysBarAttrsChanged_forwardsAppearanceToCentralSurfaces() constant 67 changeSysBarAttrs(appearance) in onSysBarAttrsChanged_forwardsAppearanceToCentralSurfaces() 69 verify(centralSurfaces).setAppearance(appearance) in onSysBarAttrsChanged_forwardsAppearanceToCentralSurfaces() 76 verify(centralSurfaces).setAppearance(TEST_LETTERBOX_APPEARANCE.appearance) in onSysBarAttrsChanged_forwardsLetterboxAppearanceToCentralSurfaces() 100 eq(TEST_LETTERBOX_APPEARANCE.appearance), anyInt(), any(), any()) in onSysBarAttrsChanged_forwardsLetterboxAppearanceToStatusBarStateCtrl() 133 eq(TEST_LETTERBOX_APPEARANCE.appearance), anyInt(), any(), any()) in onStatusBarBoundsChanged_forwardsLetterboxAppearanceToStatusBarStateController() 158 verify(centralSurfaces).setAppearance(TEST_LETTERBOX_APPEARANCE.appearance) in onStatusBarBoundsChanged_forwardsLetterboxAppearanceToCentralSurfaces() 171 private fun changeSysBarAttrs(@Appearance appearance: Int) { in changeSysBarAttrs() 172 changeSysBarAttrs(appearance, arrayOf<LetterboxDetails>()) in changeSysBarAttrs() 176 @Appearance appearance: Int, in changeSysBarAttrs() [all …]
|
D | LetterboxAppearanceCalculatorTest.kt | 87 .that(letterboxAppearance.appearance) in getLetterboxAppearance_overlapStartSide_returnsOriginalWithScrim() 103 .that(letterboxAppearance.appearance) in getLetterboxAppearance_overlapEndSide_returnsOriginalWithScrim() 120 .that(letterboxAppearance.appearance) in getLetterboxAppearance_noOverlap_BackgroundMultiColor_returnsAppearanceWithScrim() 135 assertThat(letterboxAppearance.appearance).isEqualTo(TEST_APPEARANCE) in getLetterboxAppearance_noOverlap_returnsAppearanceWithoutScrim() 148 assertThat(letterboxAppearance.appearance).isEqualTo(TEST_APPEARANCE) in getLetterboxAppearance_letterboxContainsStartSide_returnsAppearanceWithoutScrim() 161 assertThat(letterboxAppearance.appearance).isEqualTo(TEST_APPEARANCE) in getLetterboxAppearance_letterboxContainsEndSide_returnsAppearanceWithoutScrim() 174 assertThat(letterboxAppearance.appearance).isEqualTo(TEST_APPEARANCE) in getLetterboxAppearance_letterboxContainsEntireStatusBar_returnsAppearanceWithoutScrim() 225 private fun AppearanceRegion.copy(appearance: Int = this.appearance, bounds: Rect = this.bounds) = 226 AppearanceRegion(appearance, bounds)
|
D | CentralSurfacesCommandQueueCallbacksTest.java | 194 int appearance = 123; in onSystemBarAttributesChanged_forwardsToSysBarAttrsListener() local 204 appearance, in onSystemBarAttributesChanged_forwardsToSysBarAttrsListener() 214 appearance, in onSystemBarAttributesChanged_forwardsToSysBarAttrsListener() 226 int appearance = 123; in onSystemBarAttributesChanged_differentDisplayId_doesNotForwardToAttrsListener() local 236 appearance, in onSystemBarAttributesChanged_differentDisplayId_doesNotForwardToAttrsListener()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | SystemBarAttributesListener.kt | 67 params.appearance, in onStatusBarBoundsChanged() 98 val (appearance, appearanceRegions) = in onSystemBarAttributesChanged() constant 102 val barModeChanged = centralSurfaces.setAppearance(appearance) in onSystemBarAttributesChanged() 109 appearance, behavior, requestedVisibilities, packageName) in onSystemBarAttributesChanged() 113 appearance: Int, in modifyAppearanceIfNeeded() 120 appearance, appearanceRegions, letterboxDetails) in modifyAppearanceIfNeeded() 122 Pair(letterboxAppearance.appearance, letterboxAppearance.appearanceRegions) in modifyAppearanceIfNeeded() 125 Pair(appearance, appearanceRegions) 143 @Appearance val appearance: Int, constant in com.android.systemui.statusbar.phone.SystemBarAttributesParams 155 ViewDebug.flagsToString(InsetsFlags::class.java, "appearance", appearance) in toString()
|
D | LetterboxAppearanceCalculator.kt | 39 @Appearance val appearance: Int, in <lambda>() constant in com.android.systemui.statusbar.phone.LetterboxAppearance 44 ViewDebug.flagsToString(InsetsFlags::class.java, "appearance", appearance) in <lambda>() 98 val appearance = appearanceWithoutScrim(originalAppearance) in getLetterboxAppearanceInternal() constant 100 return LetterboxAppearance(appearance, appearanceRegions.toTypedArray()) in getLetterboxAppearanceInternal() 135 appearanceRegion.appearance, matchingLetterbox.letterboxInnerBounds) in sanitizeAppearanceRegions()
|
D | LightBarController.java | 152 public void onNavigationBarAppearanceChanged(@Appearance int appearance, boolean nbModeChanged, in onNavigationBarAppearanceChanged() argument 154 int diff = appearance ^ mAppearance; in onNavigationBarAppearanceChanged() 157 mHasLightNavigationBar = isLight(appearance, navigationBarMode, in onNavigationBarAppearanceChanged() 166 mAppearance = appearance; in onNavigationBarAppearanceChanged() 213 private static boolean isLight(int appearance, int barMode, int flag) { in isLight() argument 216 final boolean light = (appearance & flag) != 0; in isLight()
|
D | LightsOutNotifController.java | 145 public void onSystemBarAttributesChanged(int displayId, @Appearance int appearance, 152 mAppearance = appearance;
|
/frameworks/base/core/java/com/android/internal/view/ |
D | AppearanceRegion.java | 68 int appearance, in AppearanceRegion() argument 70 this.mAppearance = appearance; in AppearanceRegion() 109 int appearance = in.readInt(); in AppearanceRegion() local 112 this.mAppearance = appearance; in AppearanceRegion()
|
/frameworks/base/core/java/android/view/ |
D | ViewRootInsetsControllerHost.java | 172 public void setSystemBarsAppearance(int appearance, int mask) { in setSystemBarsAppearance() argument 175 final int newAppearance = (insetsFlags.appearance & ~mask) | (appearance & mask); in setSystemBarsAppearance() 176 if (insetsFlags.appearance != newAppearance) { in setSystemBarsAppearance() 177 insetsFlags.appearance = newAppearance; in setSystemBarsAppearance() 185 return mViewRoot.mWindowAttributes.insetsFlags.appearance; in getSystemBarsAppearance()
|
D | PendingInsetsController.java | 68 public void setSystemBarsAppearance(int appearance, int mask) { in setSystemBarsAppearance() argument 70 mReplayedInsetsController.setSystemBarsAppearance(appearance, mask); in setSystemBarsAppearance() 72 mAppearance = (mAppearance & ~mask) | (appearance & mask); in setSystemBarsAppearance()
|
D | InsetsFlags.java | 69 public @Appearance int appearance; field in InsetsFlags
|
/frameworks/base/core/java/com/android/internal/statusbar/ |
D | RegisterStatusBarResult.java | 49 int appearance, AppearanceRegion[] appearanceRegions, int imeWindowVis, in RegisterStatusBarResult() argument 56 mAppearance = appearance; in RegisterStatusBarResult() 105 final int appearance = source.readInt(); 121 return new RegisterStatusBarResult(icons, disabledFlags1, appearance,
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | DisplayPolicy.java | 1633 win.mAttrs.insetsFlags.appearance & APPEARANCE_LIGHT_STATUS_BARS, in applyPostLayoutPolicyLw() 1669 win.mAttrs.insetsFlags.appearance & APPEARANCE_LIGHT_STATUS_BARS, in applyPostLayoutPolicyLw() 1684 int appearance, Rect statusBarFrame, Rect winBounds, Rect winFrame) { 1691 if (appearance == 0 || !sTmpRect2.setIntersect(winFrame, statusBarFrame)) { 1708 mStatusBarAppearanceRegionList.add(new AppearanceRegion(appearance, new Rect(winFrame))); 2307 final int appearance = updateLightNavigationBarLw(win.mAttrs.insetsFlags.appearance, in updateSystemBarAttributes() local 2324 if (mLastAppearance == appearance in updateSystemBarAttributes() 2334 && ((mLastAppearance ^ appearance) & APPEARANCE_LOW_PROFILE_BARS) != 0) { in updateSystemBarAttributes() 2336 isFullscreen || (appearance & APPEARANCE_LOW_PROFILE_BARS) != 0); in updateSystemBarAttributes() 2340 mLastAppearance = appearance; in updateSystemBarAttributes() [all …]
|
/frameworks/base/core/tests/coretests/src/android/text/ |
D | SpannedTest.java | 103 TextAppearanceSpan[] appearance = s2.getSpans(7, 8, in testWrapParcel() local 105 assertEquals(1, appearance.length); in testWrapParcel() 106 assertEquals(7, s2.getSpanStart(appearance[0])); in testWrapParcel() 107 assertEquals(8, s2.getSpanEnd(appearance[0])); in testWrapParcel()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/startingsurface/ |
D | TaskSnapshotWindow.java | 174 final int appearance = attrs.insetsFlags.appearance; in create() local 193 layoutParams.insetsFlags.appearance = appearance; in create() 224 surfaceControl, snapshot, layoutParams.getTitle(), taskDescription, appearance, in create() 265 int appearance, int windowFlags, int windowPrivateFlags, Rect taskBounds, in TaskSnapshotWindow() argument 279 windowPrivateFlags, appearance, taskDescription, 1f, topWindowInsetsState); in TaskSnapshotWindow() 575 SystemBarBackgroundPainter(int windowFlags, int windowPrivateFlags, int appearance, in SystemBarBackgroundPainter() argument 584 semiTransparent, taskDescription.getStatusBarColor(), appearance, in SystemBarBackgroundPainter() 589 taskDescription.getNavigationBarColor(), appearance, in SystemBarBackgroundPainter()
|
/frameworks/base/core/java/android/window/ |
D | TaskSnapshot.java | 73 @WindowInsetsController.Appearance int appearance, boolean isTranslucent, in TaskSnapshot() argument 88 mAppearance = appearance; in TaskSnapshot() 373 public Builder setAppearance(@WindowInsetsController.Appearance int appearance) { 374 mAppearance = appearance;
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/model/ |
D | ThumbnailData.java | 49 public @Appearance int appearance; field in ThumbnailData 117 appearance = snapshot.getAppearance(); in ThumbnailData()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/ |
D | NavBarHelper.java | 523 static @TransitionMode int transitionMode(boolean isTransient, int appearance) { in transitionMode() argument 527 } else if ((appearance & lightsOutOpaque) == lightsOutOpaque) { in transitionMode() 529 } else if ((appearance & APPEARANCE_LOW_PROFILE_BARS) != 0) { in transitionMode() 531 } else if ((appearance & APPEARANCE_OPAQUE_NAVIGATION_BARS) != 0) { in transitionMode() 533 } else if ((appearance & APPEARANCE_SEMI_TRANSPARENT_NAVIGATION_BARS) != 0) { in transitionMode()
|
D | TaskbarDelegate.java | 382 public void onSystemBarAttributesChanged(int displayId, int appearance, in onSystemBarAttributesChanged() argument 388 if (mAppearance != appearance) { in onSystemBarAttributesChanged() 389 mAppearance = appearance; in onSystemBarAttributesChanged() 391 transitionMode(mTaskbarTransientShowing, appearance)); in onSystemBarAttributesChanged() 394 mLightBarController.onNavigationBarAppearanceChanged(appearance, nbModeChanged, in onSystemBarAttributesChanged()
|
/frameworks/base/core/java/android/text/style/ |
D | TextAppearanceSpan.java | 90 public TextAppearanceSpan(Context context, int appearance) { in TextAppearanceSpan() argument 91 this(context, appearance, -1); in TextAppearanceSpan() 102 public TextAppearanceSpan(Context context, int appearance, int colorList) { in TextAppearanceSpan() argument 106 context.obtainStyledAttributes(appearance, in TextAppearanceSpan()
|
/frameworks/base/core/java/android/widget/ |
D | Switch.java | 314 final int appearance = a.getResourceId( in Switch() local 316 if (appearance != 0) { in Switch() 317 setSwitchTextAppearance(context, appearance); in Switch() 340 TypedArray appearance = in setSwitchTextAppearance() local 347 colors = appearance.getColorStateList(com.android.internal.R.styleable. in setSwitchTextAppearance() 356 ts = appearance.getDimensionPixelSize(com.android.internal.R.styleable. in setSwitchTextAppearance() 367 typefaceIndex = appearance.getInt(com.android.internal.R.styleable. in setSwitchTextAppearance() 369 styleIndex = appearance.getInt(com.android.internal.R.styleable. in setSwitchTextAppearance() 374 boolean allCaps = appearance.getBoolean(com.android.internal.R.styleable. in setSwitchTextAppearance() 383 appearance.recycle(); in setSwitchTextAppearance()
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | ViewRootImplTest.java | 190 final int appearance = APPEARANCE_OPAQUE_STATUS_BARS; in adjustLayoutParamsForCompatibility_noAdjustAppearance() local 191 controller.setSystemBarsAppearance(appearance, 0xffffffff); in adjustLayoutParamsForCompatibility_noAdjustAppearance() 199 assertEquals(appearance, controller.getSystemBarsAppearance()); in adjustLayoutParamsForCompatibility_noAdjustAppearance() 204 assertEquals(appearance, controller.getSystemBarsAppearance()); in adjustLayoutParamsForCompatibility_noAdjustAppearance()
|
/frameworks/base/core/java/android/inputmethodservice/ |
D | NavigationBarController.java | 458 public void onSystemBarAppearanceChanged(@Appearance int appearance) { in onSystemBarAppearanceChanged() argument 463 mAppearance = appearance; in onSystemBarAppearanceChanged() 498 private static float calculateTargetDarkIntensity(@Appearance int appearance, in calculateTargetDarkIntensity() argument 501 && (appearance & APPEARANCE_LIGHT_NAVIGATION_BARS) != 0; in calculateTargetDarkIntensity()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | TaskSnapshotControllerTest.java | 142 final int appearance = APPEARANCE_LIGHT_STATUS_BARS; in testSnapshotBuilder() local 155 builder.setAppearance(appearance); in testSnapshotBuilder() 173 assertEquals(appearance, snapshot.getAppearance()); in testSnapshotBuilder()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | SysuiStatusBarStateController.java | 156 void setSystemBarAttributes(@Appearance int appearance, @Behavior int behavior, in setSystemBarAttributes() argument
|