/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/animation/ |
D | ViewHierarchyAnimatorTest.kt | 34 private lateinit var rootView: ViewGroup variable 38 rootView = LinearLayout(mContext) in setUp() 43 endAnimation(rootView) in tearDown() 44 ViewHierarchyAnimator.stopAnimating(rootView) in tearDown() 49 rootView.layout(10 /* l */, 10 /* t */, 50 /* r */, 50 /* b */) in respectsAnimationParameters() 53 rootView, interpolator = TEST_INTERPOLATOR, duration = TEST_DURATION in respectsAnimationParameters() 55 rootView.layout(0 /* l */, 0 /* t */, 100 /* r */, 100 /* b */) in respectsAnimationParameters() 58 assertNotNull(rootView.getTag(R.id.tag_animator)) in respectsAnimationParameters() 59 var animator = rootView.getTag(R.id.tag_animator) as ObjectAnimator in respectsAnimationParameters() 63 endAnimation(rootView) in respectsAnimationParameters() [all …]
|
/frameworks/base/core/java/android/ddm/ |
D | DdmHandleViewDebug.java | 119 View rootView = getRootView(in); in handleChunk() local 120 if (rootView == null) { in handleChunk() 126 return dumpHierarchy(rootView, in); in handleChunk() 128 return captureLayers(rootView); in handleChunk() 130 return dumpTheme(rootView); in handleChunk() 136 final View targetView = getTargetView(rootView, in); in handleChunk() 144 return captureView(rootView, targetView); in handleChunk() 146 return dumpDisplayLists(rootView, targetView); in handleChunk() 148 return profileView(rootView, targetView); in handleChunk() 150 return invokeViewMethod(rootView, targetView, in); in handleChunk() [all …]
|
/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/animation/ |
D | ViewHierarchyAnimator.kt | 88 rootView: View, in <lambda>() 95 rootView, in <lambda>() 110 rootView: View, in <lambda>() 117 rootView, in <lambda>() 127 rootView: View, in <lambda>() 136 rootView.visibility, in <lambda>() 137 rootView.left, in <lambda>() 138 rootView.top, in <lambda>() 139 rootView.right, in <lambda>() 140 rootView.bottom in <lambda>() [all …]
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | ViewAttachTest.java | 72 final View rootView = activity.getWindow().getDecorView(); in testRoundScrollbars() local 75 rootView.getWidth(), in testRoundScrollbars() 76 rootView.getHeight(), in testRoundScrollbars() 83 rootView.setLayoutParams(params); in testRoundScrollbars() 106 final View rootView = activity.getWindow().getDecorView(); in testRoundScrollbarsWithMargins() local 109 rootView.getWidth(), in testRoundScrollbarsWithMargins() 110 rootView.getHeight(), in testRoundScrollbarsWithMargins() 117 rootView.setLayoutParams(params); in testRoundScrollbarsWithMargins() 122 rootView.setLayoutParams(lp); in testRoundScrollbarsWithMargins()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/animation/ |
D | DisableSubpixelTextTransitionListenerTest.kt | 37 private var rootView = FrameLayout(context) variable 47 rootView.addView(childTextView) in setup() 48 rootView.addView(childView) in setup() 53 disableSubpixelTextTransitionListener = DisableSubpixelTextTransitionListener(rootView) in onTransitionStarted_addsSubpixelFlagToChildTextView() 62 disableSubpixelTextTransitionListener = DisableSubpixelTextTransitionListener(rootView) in onTransitionStarted_addsSupbixelFlagToChildOfChildTextView() 71 disableSubpixelTextTransitionListener = DisableSubpixelTextTransitionListener(rootView) in onTransitionFinished_removeSupbixelFlagFromChildTextView() 81 disableSubpixelTextTransitionListener = DisableSubpixelTextTransitionListener(rootView) in onTransitionFinished_removeSupbixelFlagFromChildOfChildTextView() 100 disableSubpixelTextTransitionListener = DisableSubpixelTextTransitionListener(rootView) in whenFlagAlreadyPresent_flagNotRemovedOnTransitionFinished() 111 disableSubpixelTextTransitionListener = DisableSubpixelTextTransitionListener(rootView) in whenFlagNotPresent_flagRemovedOnTransitionFinished() 122 rootView.addView(rootViewWithNoTextView) in whenRootViewHasNoChildTextView_flagNotAddedToRelatedTextviews()
|
/frameworks/libs/systemui/weathereffects/debug/src/com/google/android/wallpaper/weathereffects/ |
D | WallpaperEffectsDebugActivity.kt | 61 private lateinit var rootView: FrameLayout in <lambda>() variable 86 rootView = requireViewById(R.id.main_layout) in <lambda>() 87 rootView.requireViewById<FrameLayout>(R.id.wallpaper_layout).addView(surfaceView) in <lambda>() 89 rootView.requireViewById<Button>(R.id.rain).setOnClickListener { in <lambda>() 94 rootView.requireViewById<Button>(R.id.fog).setOnClickListener { in <lambda>() 99 rootView.requireViewById<Button>(R.id.snow).setOnClickListener { in <lambda>() 104 rootView.requireViewById<Button>(R.id.clear).setOnClickListener { in <lambda>() 109 rootView.requireViewById<Button>(R.id.change_asset).setOnClickListener { in <lambda>() 115 rootView.requireViewById<Button>(R.id.set_wallpaper).setOnClickListener { in <lambda>() 126 rootView.requireViewById<FrameLayout>(R.id.wallpaper_layout) in <lambda>() [all …]
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/animation/ |
D | UnfoldConstantTranslateAnimator.kt | 37 private lateinit var rootView: ViewGroup in <lambda>() variable in com.android.systemui.shared.animation.UnfoldConstantTranslateAnimator 44 fun init(rootView: ViewGroup, translationMax: Float) { in <lambda>() 45 if (!::rootView.isInitialized) { in <lambda>() 49 this.rootView = rootView in <lambda>() 54 registerViewsForAnimation(rootView, viewsIdToTranslate) in <lambda>() 70 if (rootView.getLayoutDirection() == LAYOUT_DIRECTION_RTL) { in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ui/binder/ |
D | KeyguardClockViewBinderTest.kt | 47 @Mock private lateinit var rootView: ConstraintLayout variable in com.android.systemui.keyguard.ui.binder.KeyguardClockViewBinderTest 71 KeyguardClockViewBinder.addClockViews(clock, rootView) in addClockViews_WeatherClock() 72 verify(rootView).addView(smallClockView) in addClockViews_WeatherClock() 73 verify(rootView).addView(largeClockView) in addClockViews_WeatherClock() 79 KeyguardClockViewBinder.addClockViews(clock, rootView) in addClockViews_nonWeatherClock() 80 verify(rootView).addView(smallClockView) in addClockViews_nonWeatherClock() 81 verify(rootView).addView(largeClockView) in addClockViews_nonWeatherClock() 86 KeyguardClockViewBinder.updateBurnInLayer(rootView, clockViewModel, ClockSize.LARGE) in addClockViewsToBurnInLayer_LargeWeatherClock() 93 KeyguardClockViewBinder.updateBurnInLayer(rootView, clockViewModel, ClockSize.LARGE) in addClockViewsToBurnInLayer_LargeNonWeatherClock() 101 KeyguardClockViewBinder.updateBurnInLayer(rootView, clockViewModel, ClockSize.SMALL) in addClockViewsToBurnInLayer_SmallClock()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/binder/ |
D | KeyguardClockViewBinder.kt | 157 rootView: ConstraintLayout, in <lambda>() 167 rootView.removeView(it) in <lambda>() 169 clock.largeClock.layout.views.forEach { rootView.removeView(it) } in <lambda>() 177 rootView: ConstraintLayout, in <lambda>() 186 rootView.addView(it).apply { it.visibility = INVISIBLE } in <lambda>() 192 rootView.addView(it).apply { it.visibility = INVISIBLE } in <lambda>() 199 rootView: ConstraintLayout, in <lambda>() 203 val constraintSet = ConstraintSet().apply { clone(rootView) } in <lambda>() 206 set?.let { TransitionManager.beginDelayedTransition(rootView, it) } in <lambda>() 207 ?: run { TransitionManager.beginDelayedTransition(rootView) } in <lambda>() [all …]
|
D | KeyguardPreviewClockViewBinder.kt | 79 rootView: ConstraintLayout, in <lambda>() 84 rootView.repeatWhenAttached { in <lambda>() 91 .forEach { rootView.removeView(it) } in <lambda>() 103 rootView.addView(it) in <lambda>() 108 rootView.addView(it) in <lambda>() 110 applyPreviewConstraints(context, rootView, currentClock, viewModel) in <lambda>() 189 rootView: ConstraintLayout, in <lambda>() 193 val cs = ConstraintSet().apply { clone(rootView) } in <lambda>() 216 cs.applyTo(rootView) in <lambda>()
|
/frameworks/libs/systemui/viewcapturelib/tests/com/android/app/viewcapture/ |
D | ViewCaptureTest.kt | 55 val rootView = activity.requireViewById<View>(android.R.id.content) in <lambda>() constant 56 val data = viewCapture.getDumpTask(rootView).get().get() in <lambda>() 68 val rootView = activity.requireViewById<View>(android.R.id.content) in <lambda>() constant 69 val data = viewCapture.getDumpTask(rootView).get().get() in <lambda>() 81 val rootView: View = activity.requireViewById(android.R.id.content) in <lambda>() constant 82 val closeable: SafeCloseable = viewCapture.startCapture(rootView, "rootViewId") in <lambda>() 83 dispatchOnDraw(rootView, times = n) in <lambda>()
|
D | SettingsAwareViewCaptureTest.kt | 54 val rootView: View = activity.requireViewById(android.R.id.content) in <lambda>() constant 56 val closeable: SafeCloseable = viewCapture.startCapture(rootView, "rootViewId") in <lambda>() 58 rootView.viewTreeObserver.dispatchOnDraw() in <lambda>() 80 val rootView: View = activity.requireViewById(android.R.id.content) in <lambda>() constant 82 val closeable: SafeCloseable = viewCapture.startCapture(rootView, "rootViewId") in <lambda>() 84 rootView.viewTreeObserver.dispatchOnDraw() in <lambda>()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | TrustedOverlayTests.java | 114 View rootView = mActivity.getWindow().getDecorView(); in setSpyWindowDoesntCrash() local 115 if (rootView.isAttachedToWindow()) { in setSpyWindowDoesntCrash() 116 tokens[0] = rootView.getWindowToken(); in setSpyWindowDoesntCrash() 119 rootView.getViewTreeObserver().addOnWindowAttachListener( in setSpyWindowDoesntCrash() 123 tokens[0] = rootView.getWindowToken(); in setSpyWindowDoesntCrash() 159 View rootView = mActivity.getWindow().getDecorView(); in testTrustedOverlayChildHelper() local 160 if (rootView.isAttachedToWindow()) { in testTrustedOverlayChildHelper() 161 tokens[0] = rootView.getWindowToken(); in testTrustedOverlayChildHelper() 164 rootView.getViewTreeObserver().addOnWindowAttachListener( in testTrustedOverlayChildHelper() 168 tokens[0] = rootView.getWindowToken(); in testTrustedOverlayChildHelper()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/decor/ |
D | OverlayWindow.kt | 29 val rootView = RegionInterceptingFrameLayout(context) as ViewGroup in <lambda>() constant 40 val view = decorProvider.inflateView(context, rootView, rotation, tintColor) in <lambda>() 52 rootView.removeView(view) in <lambda>() 114 pw.println(" rootView=$rootView") in <lambda>() 115 for (i in 0 until rootView.childCount) { in <lambda>() 116 val child = rootView.getChildAt(i) in <lambda>()
|
/frameworks/libs/systemui/motiontoollib/src/com/android/app/motiontool/ |
D | MotionToolManager.kt | 65 val rootView = getRootView(windowId.rootWindow) in hasWindow() constant 66 return rootView != null in hasWindow() 74 val rootView = getRootView(windowId) ?: throw WindowNotFoundException(windowId) in beginTrace() constant 75 val autoCloseable = viewCapture.startCapture(rootView, windowId) in beginTrace() 120 val rootView = in getDataFromViewCapture() constant 125 .getDumpTask(rootView).get() in getDataFromViewCapture()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/preview/ |
D | KeyguardPreviewRenderer.kt | 236 val rootView = FrameLayout(previewContext) in <lambda>() constant 238 setupKeyguardRootView(previewContext, rootView) in <lambda>() 241 setUpBottomArea(rootView) in <lambda>() 249 rootView.measure( in <lambda>() 260 rootView.layout(0, 0, rootView.measuredWidth, rootView.measuredHeight) in <lambda>() 264 (width / rootView.measuredWidth.toFloat()).coerceAtMost( in <lambda>() 265 height / rootView.measuredHeight.toFloat() in <lambda>() 268 rootView.scaleX = scale in <lambda>() 269 rootView.scaleY = scale in <lambda>() 270 rootView.pivotX = 0f in <lambda>() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/view/layout/sections/ |
D | AodBurnInLayer.kt | 52 fun registerListener(rootView: View) { in registerListener() 53 rootView.viewTreeObserver.addOnPreDrawListener(_predrawListener) in registerListener() 56 fun unregisterListener(rootView: View) { in unregisterListener() 57 rootView.viewTreeObserver.removeOnPreDrawListener(_predrawListener) in unregisterListener()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyboard/backlight/ui/view/ |
D | KeyboardBacklightDialog.kt | 74 private lateinit var rootView: LinearLayout in <lambda>() variable 116 rootView = buildRootView() in <lambda>() 117 setContentView(rootView) in <lambda>() 164 rootView.removeAllViews() in <lambda>() 165 rootView.addView(buildIconTile()) in <lambda>() 166 buildStepViews().forEach { rootView.addView(it) } in <lambda>() 175 rootView.contentDescription = String.format(levelContentDescription, currentLevel, maxLevel) in <lambda>() 176 rootView.sendAccessibilityEvent(AccessibilityEvent.CONTENT_CHANGE_TYPE_CONTENT_DESCRIPTION) in <lambda>() 180 val iconTile = rootView.requireViewById(BACKLIGHT_ICON_ID) as ImageView in <lambda>() 192 (1 until rootView.childCount).forEach { index -> in <lambda>() [all …]
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/draganddrop/ |
D | DragAndDropController.java | 238 FrameLayout rootView = (FrameLayout) LayoutInflater.from(context).inflate( in onDisplayAdded() local 240 rootView.setOnDragListener(this); in onDisplayAdded() 241 rootView.setVisibility(View.INVISIBLE); in onDisplayAdded() 243 rootView.addView(dragLayout, in onDisplayAdded() 246 wm.addView(rootView, layoutParams); in onDisplayAdded() 247 addDisplayDropTarget(displayId, context, wm, rootView, dragLayout); in onDisplayAdded() 256 FrameLayout rootView, DragLayout dragLayout) { in addDisplayDropTarget() argument 258 new PerDisplay(displayId, context, wm, rootView, dragLayout)); in addDisplayDropTarget() 268 pd.rootView.requestApplyInsets(); in onDisplayConfigurationChanged() 279 pd.wm.removeViewImmediate(pd.rootView); in onDisplayRemoved() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/decor/ |
D | OverlayWindowTest.kt | 89 mContext, overlay.rootView, rotation, Color.BLACK in testAddProvider() 92 mContext, overlay.rootView, rotation, Color.YELLOW in testAddProvider() 95 val view1FoundFromRootView = overlay.rootView.findViewById<View>(TEST_DECOR_VIEW_ID_1) in testAddProvider() 98 val view2FoundFromRootView = overlay.rootView.findViewById<View>(TEST_DECOR_VIEW_ID_2) in testAddProvider() 109 val viewFoundFromRootView = overlay.rootView.findViewById<View>(TEST_DECOR_VIEW_ID_1) in testRemoveView() 161 Assert.assertNull(overlay.rootView.findViewById(TEST_DECOR_VIEW_ID_1)) in testRemoveRedundantViewsWithNullParameter() 163 Assert.assertNull(overlay.rootView.findViewById(TEST_DECOR_VIEW_ID_2)) in testRemoveRedundantViewsWithNullParameter() 179 Assert.assertNotNull(overlay.rootView.findViewById(TEST_DECOR_VIEW_ID_1)) in testRemoveRedundantViewsWith2Providers() 181 Assert.assertNull(overlay.rootView.findViewById(TEST_DECOR_VIEW_ID_2)) in testRemoveRedundantViewsWith2Providers()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | ConnectedDisplayKeyguardPresentation.kt | 59 private lateinit var rootView: FrameLayout variable 106 rootView = FrameLayout(getContext(), null) in onCreateV2() 107 rootView.setClipChildren(false) in onCreateV2() 108 setContentView(rootView) in onCreateV2() 159 rootView.removeAllViews() in setClock() 163 rootView.addView( in setClock()
|
/frameworks/base/core/tests/coretests/src/android/app/assist/ |
D | AssistStructureTest.java | 175 ViewNode rootView = structure.getWindowNodeAt(0).getRootViewNode(); in assertStructureWithManySmallViews() local 176 assertThat(rootView.getClassName()).isEqualTo(FrameLayout.class.getName()); in assertStructureWithManySmallViews() 177 assertThat(rootView.getChildCount()).isEqualTo(2); // title and parent in assertStructureWithManySmallViews() 178 assertThat(rootView.getAutofillId()).isNotNull(); in assertStructureWithManySmallViews() 179 assertThat(rootView.getImportantForAutofill()).isEqualTo(IMPORTANT_FOR_AUTOFILL_AUTO); in assertStructureWithManySmallViews() 182 ViewNode title = rootView.getChildAt(0); in assertStructureWithManySmallViews() 189 ViewNode parent = rootView.getChildAt(1); in assertStructureWithManySmallViews() 228 ViewNode rootView = structure.getWindowNodeAt(0).getRootViewNode(); in assertStructureWithOneBigView() local 229 assertThat(rootView.getClassName()).isEqualTo(FrameLayout.class.getName()); in assertStructureWithOneBigView() 230 assertThat(rootView.getChildCount()).isEqualTo(2); // title and parent in assertStructureWithOneBigView() [all …]
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/viewholder/ |
D | AppHandleViewHolder.kt | 34 rootView: View, in <lambda>() 37 ) : WindowDecorationViewHolder(rootView) { in <lambda>() 43 private val captionView: View = rootView.requireViewById(R.id.desktop_mode_caption) in <lambda>() 44 private val captionHandle: ImageButton = rootView.requireViewById(R.id.caption_handle) in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/dagger/ |
D | KeyguardBouncerModule.java | 40 static KeyguardSecurityContainer providesKeyguardSecurityContainer(@RootView ViewGroup rootView, in providesKeyguardSecurityContainer() argument 44 R.layout.keyguard_security_container_view, rootView, false); in providesKeyguardSecurityContainer() 45 rootView.addView(securityContainer); in providesKeyguardSecurityContainer()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/bar/ |
D | BubbleEducationViewController.kt | 48 private var rootView: ViewGroup? = null in onEducationVisibilityChanged() variable in com.android.wm.shell.bubbles.bar.BubbleEducationViewController 70 get() = educationView != null && rootView != null 118 rootView = root in showStackEducation() 157 rootView = root in showManageEducation() 187 rootView?.removeView(educationView) in cleanUp() 188 rootView?.removeView(scrimView) in cleanUp() 190 rootView = null in cleanUp()
|