Home
last modified time | relevance | path

Searched refs:appearance (Results 1 – 25 of 66) sorted by relevance

123

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/ui/viewmodel/
DScreenshotViewModelTest.kt28 private val appearance = ActionButtonAppearance(null, "Label", "Description") constant in com.android.systemui.screenshot.ui.viewmodel.ScreenshotViewModelTest
37 viewModel.addAction(appearance, true, onclick) in testAddAction()
42 assertThat(added.appearance).isEqualTo(appearance) in testAddAction()
51 val secondId = viewModel.addAction(appearance, false, onclick) in testRemoveAction()
61 assertThat(remaining.appearance).isEqualTo(appearance) in testRemoveAction()
69 val id = viewModel.addAction(appearance, false, onclick) in testUpdateActionAppearance()
76 assertThat(updated.appearance).isEqualTo(otherAppearance) in testUpdateActionAppearance()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/ui/viewmodel/
DActionButtonViewModel.kt20 val appearance: ActionButtonAppearance, constant in com.android.systemui.screenshot.ui.viewmodel.ActionButtonViewModel
32 appearance: ActionButtonAppearance,
36 ActionButtonViewModel(appearance, getId(), true, showDuringEntrance, onClicked)
39 appearance: ActionButtonAppearance,
41 ): ActionButtonViewModel = withNextId(appearance, showDuringEntrance = true, onClicked)
DScreenshotViewModel.kt83 actionList[index].appearance, in setActionVisibility()
95 fun updateActionAppearance(actionId: Int, appearance: ActionButtonAppearance) { in updateActionAppearance()
101 appearance, in updateActionAppearance()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/extension/
DTaskInfo.kt26 val appearance = taskDescription?.topOpaqueSystemBarsAppearance ?: 0 constant
27 return (appearance and APPEARANCE_TRANSPARENT_CAPTION_BAR_BACKGROUND) != 0
32 val appearance = taskDescription?.topOpaqueSystemBarsAppearance ?: 0 constant
33 return (appearance and APPEARANCE_LIGHT_CAPTION_BARS) != 0
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/ui/binder/
DActionButtonViewBinder.kt39 drawable?.setIcon(viewModel.appearance.icon) in bind()
40 iconView.setImageDrawable(viewModel.appearance.icon) in bind()
41 if (!viewModel.appearance.tint) { in bind()
44 textView.text = viewModel.appearance.label in bind()
46 viewModel.appearance.customBackground?.also { in bind()
53 setMargins(iconView, textView, viewModel.appearance.label?.isNotEmpty() ?: false) in bind()
60 view.contentDescription = viewModel.appearance.description in bind()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/data/repository/
DStatusBarModePerDisplayRepository.kt146 @Appearance appearance: Int, in onSystemBarAttributesChanged()
157 appearance, in onSystemBarAttributesChanged()
208 originalAttributes.appearance, in statusBarBounds()
235 modifiedAttributes.appearance, in isTransientShown()
256 appearance: Int, in toBarMode()
264 else -> appearance.toBarMode() in toBarMode()
289 appearance: Int, in modifyAppearanceIfNeeded()
297 appearance, in modifyAppearanceIfNeeded()
302 Pair(letterboxAppearance.appearance, letterboxAppearance.appearanceRegions) in modifyAppearanceIfNeeded()
304 Pair(appearance, appearanceRegions)
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DLetterboxAppearanceCalculatorTest.kt80 .that(letterboxAppearance.appearance) in getLetterboxAppearance_overlapStartSide_returnsOriginalWithScrim()
96 .that(letterboxAppearance.appearance) in getLetterboxAppearance_overlapEndSide_returnsOriginalWithScrim()
135 .that(letterboxAppearance.appearance) in getLetterboxAppearance_noOverlap_BackgroundMultiColor_returnsAppearanceWithScrim()
150 assertThat(letterboxAppearance.appearance).isEqualTo(TEST_APPEARANCE) in getLetterboxAppearance_noOverlap_returnsAppearanceWithoutScrim()
163 assertThat(letterboxAppearance.appearance).isEqualTo(TEST_APPEARANCE) in getLetterboxAppearance_letterboxContainsStartSide_returnsAppearanceWithoutScrim()
176 assertThat(letterboxAppearance.appearance).isEqualTo(TEST_APPEARANCE) in getLetterboxAppearance_letterboxContainsEndSide_returnsAppearanceWithoutScrim()
189 assertThat(letterboxAppearance.appearance).isEqualTo(TEST_APPEARANCE) in getLetterboxAppearance_letterboxContainsEntireStatusBar_returnsAppearanceWithoutScrim()
244 private fun AppearanceRegion.copy(appearance: Int = this.appearance, bounds: Rect = this.bounds) =
245 AppearanceRegion(appearance, bounds)
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/data/repository/
DStatusBarModeRepositoryImplTest.kt300 appearance = APPEARANCE, in statusBarAppearance_appearanceRegions_noLetterboxDetails_usesCallbackValues()
327 appearance = APPEARANCE, in statusBarAppearance_appearanceRegions_letterboxDetails_usesLetterboxCalculator()
356 appearance = APPEARANCE, in statusBarAppearance_boundsChanged_appearanceReFetched()
414 appearance = APPEARANCE_OPAQUE_STATUS_BARS, in statusBarMode_ongoingCallButNotFullscreen_matchesAppearance()
428 appearance = APPEARANCE_OPAQUE_STATUS_BARS, in statusBarMode_fullscreenButNotOngoingCall_matchesAppearance()
439 appearance = APPEARANCE_OPAQUE_STATUS_BARS, in statusBarMode_transientShown_semiTransparent()
453 appearance = APPEARANCE_LOW_PROFILE_BARS or APPEARANCE_OPAQUE_STATUS_BARS, in statusBarMode_appearanceLowProfileAndOpaque_lightsOut()
465 appearance = APPEARANCE_LOW_PROFILE_BARS, in statusBarMode_appearanceLowProfile_lightsOutTransparent()
477 appearance = APPEARANCE_OPAQUE_STATUS_BARS, in statusBarMode_appearanceOpaque_opaque()
489 appearance = APPEARANCE_SEMI_TRANSPARENT_STATUS_BARS, in statusBarMode_appearanceSemiTransparent_semiTransparent()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DScreenshotActionsController.kt95 appearance: ActionButtonAppearance, in getController()
100 return viewModel.addAction(appearance, showDuringEntrance, onClick) in getController()
105 fun updateActionButtonAppearance(buttonId: Int, appearance: ActionButtonAppearance) { in getController()
107 viewModel.updateActionAppearance(buttonId, appearance) in getController()
/frameworks/base/core/java/android/view/
DPendingInsetsController.java73 public void setSystemBarsAppearance(int appearance, int mask) { in setSystemBarsAppearance() argument
75 mReplayedInsetsController.setSystemBarsAppearance(appearance, mask); in setSystemBarsAppearance()
77 mAppearance = (mAppearance & ~mask) | (appearance & mask); in setSystemBarsAppearance()
83 public void setSystemBarsAppearanceFromResource(int appearance, int mask) { in setSystemBarsAppearanceFromResource() argument
85 mReplayedInsetsController.setSystemBarsAppearanceFromResource(appearance, mask); in setSystemBarsAppearanceFromResource()
87 mAppearanceFromResource = (mAppearanceFromResource & ~mask) | (appearance & mask); in setSystemBarsAppearanceFromResource()
DViewRootInsetsControllerHost.java173 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()
DWindowInsetsController.java263 void setSystemBarsAppearance(@Appearance int appearance, @Appearance int mask); in setSystemBarsAppearance() argument
274 void setSystemBarsAppearanceFromResource(@Appearance int appearance, @Appearance int mask); in setSystemBarsAppearanceFromResource() argument
/frameworks/base/core/java/com/android/internal/view/
DAppearanceRegion.java68 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/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DLightBarController.java205 public void onNavigationBarAppearanceChanged(@Appearance int appearance, boolean nbModeChanged, in onNavigationBarAppearanceChanged() argument
207 int diff = appearance ^ mAppearance; in onNavigationBarAppearanceChanged()
210 mHasLightNavigationBar = isLight(appearance, navigationBarMode, in onNavigationBarAppearanceChanged()
222 .append(" appearance=").append(appearance) in onNavigationBarAppearanceChanged()
242 mAppearance = appearance; in onNavigationBarAppearanceChanged()
285 public void customizeStatusBarAppearance(AppearanceRegion appearance) { in customizeStatusBarAppearance() argument
286 if (appearance != null) { in customizeStatusBarAppearance()
288 appearancesList.add(appearance); in customizeStatusBarAppearance()
291 if (appearance.getBounds().contains(ar.getBounds())) { in customizeStatusBarAppearance()
363 private static boolean isLight(int appearance, int barMode, int flag) { in isLight() argument
[all …]
DLetterboxAppearanceCalculator.kt37 @Appearance val appearance: Int, in <lambda>() constant in com.android.systemui.statusbar.phone.LetterboxAppearance
42 ViewDebug.flagsToString(InsetsFlags::class.java, "appearance", appearance) in <lambda>()
101 val appearance = appearanceWithoutScrim(originalAppearance) in getLetterboxAppearanceInternal() constant
103 return LetterboxAppearance(appearance, appearanceRegions) in getLetterboxAppearanceInternal()
141 appearanceRegion.appearance, matchingLetterbox.letterboxInnerBounds) in sanitizeAppearanceRegions()
/frameworks/base/core/java/com/android/internal/statusbar/
DRegisterStatusBarResult.java47 int appearance, AppearanceRegion[] appearanceRegions, int imeWindowVis, in RegisterStatusBarResult() argument
53 mAppearance = appearance; in RegisterStatusBarResult()
102 final int appearance = source.readInt();
117 return new RegisterStatusBarResult(icons, disabledFlags1, appearance,
/frameworks/base/services/core/java/com/android/server/wm/
DDisplayPolicy.java994 if ((attrs.insetsFlags.appearance & APPEARANCE_FORCE_LIGHT_NAVIGATION_BARS) != 0) { in adjustWindowParamsLw()
995 attrs.insetsFlags.appearance |= APPEARANCE_LIGHT_NAVIGATION_BARS; in adjustWindowParamsLw()
1572 win.mAttrs.insetsFlags.appearance & APPEARANCE_LIGHT_STATUS_BARS,
1613 win.mAttrs.insetsFlags.appearance & APPEARANCE_LIGHT_STATUS_BARS,
1640 int appearance, Rect statusBarFrame, Rect winBounds, Rect winFrame) {
1647 if (appearance == 0 || !sTmpRect2.setIntersect(winFrame, statusBarFrame)) {
1664 mStatusBarAppearanceRegionList.add(new AppearanceRegion(appearance, new Rect(winFrame)));
2394 final int appearance = updateLightNavigationBarLw(win.mAttrs.insetsFlags.appearance,
2415 if (mLastAppearance == appearance
2425 || ((mLastAppearance ^ appearance) & APPEARANCE_LOW_PROFILE_BARS) != 0)) {
[all …]
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/model/
DThumbnailData.kt39 @JvmField @Appearance var appearance: Int = 0, in <lambda>() variable in com.android.systemui.shared.recents.model.ThumbnailData
96 appearance = snapshot.appearance, in <lambda>()
/frameworks/base/core/java/android/window/
DSnapshotDrawerUtils.java141 int appearance, ActivityManager.TaskDescription taskDescription, in initiateSystemBarPainter() argument
144 windowPrivateFlags, appearance, taskDescription, 1f, requestedVisibleTypes); in initiateSystemBarPainter()
400 attrs.insetsFlags.appearance, taskDescription, info.requestedVisibleTypes); in drawSnapshotOnSurface()
422 final int appearance = attrs.insetsFlags.appearance; in createLayoutParameters() local
444 layoutParams.insetsFlags.appearance = appearance; in createLayoutParameters()
479 public SystemBarBackgroundPainter(int windowFlags, int windowPrivateFlags, int appearance, in SystemBarBackgroundPainter() argument
489 semiTransparent, taskDescription.getStatusBarColor(), appearance, in SystemBarBackgroundPainter()
495 taskDescription.getNavigationBarColor(), appearance, in SystemBarBackgroundPainter()
DTaskSnapshot.java98 @WindowInsetsController.Appearance int appearance, boolean isTranslucent, in TaskSnapshot() argument
114 mAppearance = appearance; in TaskSnapshot()
437 public Builder setAppearance(@WindowInsetsController.Appearance int appearance) {
438 mAppearance = appearance;
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/bouncer/ui/composable/
DPinBouncer.kt123 appearance = backspaceButtonAppearance, in <lambda>()
144 appearance = confirmButtonAppearance, in <lambda>()
187 appearance: ActionButtonAppearance, in ActionButton()
190 val isHidden = appearance == ActionButtonAppearance.Hidden in ActionButton()
194 when (appearance) { in ActionButton()
199 when (appearance) { in ActionButton()
/frameworks/base/core/tests/coretests/src/android/text/
DSpannedTest.java103 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/back/
DStatusBarCustomizer.java29 void customizeStatusBarAppearance(AppearanceRegion appearance); in customizeStatusBarAppearance() argument
DIBackAnimation.aidl42 void customizeStatusBarAppearance(in AppearanceRegion appearance); in customizeStatusBarAppearance() argument
/frameworks/base/core/java/android/view/flags/
Dwindow_insets.aconfig8 …description: "Flag to control the caption bar appearance and to fit app content in its empty space"

123