Home
last modified time | relevance | path

Searched refs:mView (Results 1 – 25 of 230) sorted by relevance

12345678910

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DSmartReplyViewTest.java100 private SmartReplyView mView; field in SmartReplyViewTest
146 mView = SmartReplyView.inflate(mContext, mConstants); in setUp()
191 mView.getChildAt(2).performClick(); in testSendSmartReply_intentContainsResultsAndSource()
214 mView.getChildAt(2).performClick(); in testSendSmartReply_keyguardCancelled()
238 mView.getChildAt(2).performClick(); in testSendSmartReply_waitsForKeyguard()
255 mView.getChildAt(2).performClick(); in testSendSmartReply_controllerCalled()
264 mView.getChildAt(0).performClick(); in testSendSmartReply_hidesContainer()
274 mView.getChildAt(2).performClick(); in testTapSmartReply_beforeInitDelay_blocked()
286 mView.getChildAt(2).performClick(); in testTapSmartReply_afterInitDelay_clickReceived()
302 mView.getChildAt(2).performClick(); in testTapSmartReply_withoutDelayedOnClickListener_bypassesDelay()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
DMessagingLinearLayoutTest.java43 private MessagingLinearLayout mView; field in MessagingLinearLayoutTest
49 mView = (MessagingLinearLayout) LayoutInflater.from(mContext).inflate( in setup()
57 mView.addView(child); in testSingleChild()
59 mView.measure(WIDTH_SPEC, HEIGHT_SPEC); in testSingleChild()
60 mView.layout(0, 0, mView.getMeasuredWidth(), mView.getMeasuredHeight()); in testSingleChild()
63 assertEquals(150, mView.getMeasuredHeight()); in testSingleChild()
71 mView.addView(child1); in testLargeSmall()
72 mView.addView(child2); in testLargeSmall()
74 mView.measure(WIDTH_SPEC, HEIGHT_SPEC); in testLargeSmall()
75 mView.layout(0, 0, mView.getMeasuredWidth(), mView.getMeasuredHeight()); in testLargeSmall()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/footer/ui/view/
DFooterViewTest.java71 FooterView mView; field in FooterViewTest
77 mView = (FooterView) LayoutInflater.from(mSpyContext).inflate( in setUp()
79 mView.setAnimationDuration(0); in setUp()
84 assertNotNull(mView.findContentView()); in testViewsNotNull()
85 assertNotNull(mView.findSecondaryView()); in testViewsNotNull()
90 mView.setClearAllButtonClickListener(mock(View.OnClickListener.class)); in setDismissOnClick()
91 assertTrue(mView.findSecondaryView().hasOnClickListeners()); in setDismissOnClick()
96 mView.setManageButtonClickListener(mock(View.OnClickListener.class)); in setManageOnClick()
97 assertTrue(mView.findViewById(R.id.manage_text).hasOnClickListeners()); in setManageOnClick()
103 mView.showHistory(true); in setHistoryShown()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DNotificationStackScrollLayoutController.java208 private NotificationStackScrollLayout mView; field in NotificationStackScrollLayoutController
298 mView.setCurrentUserSetup(mDeviceProvisionedController.isCurrentUserSetup());
314 mView.post(this::updateFooter);
325 mView.reinflateViews();
332 mView.updateBgColor();
333 mView.updateDecorViews();
340 mView.updateCornerRadius();
341 mView.updateBgColor();
342 mView.updateDecorViews();
343 mView.reinflateViews();
[all …]
/frameworks/base/core/tests/coretests/src/android/view/
DRotaryScrollHapticsTest.java59 private TestGenericMotionEventControllingView mView; field in RotaryScrollHapticsTest
67 mView = new TestGenericMotionEventControllingView(context); in setUp()
68 mView.mScrollFeedbackProvider = mMockScrollFeedbackProvider; in setUp()
85 mView.configureGenericMotion(/* result= */ false, /* scroll= */ false); in testRotaryScrollHapticsDisabled_producesNoHapticEvent()
86 mView.dispatchGenericMotionEvent(createRotaryEvent(-20)); in testRotaryScrollHapticsDisabled_producesNoHapticEvent()
88 mView.configureGenericMotion(/* result= */ false, /* scroll= */ true); in testRotaryScrollHapticsDisabled_producesNoHapticEvent()
89 mView.dispatchGenericMotionEvent(createRotaryEvent(20)); in testRotaryScrollHapticsDisabled_producesNoHapticEvent()
91 mView.configureGenericMotion(/* result= */ true, /* scroll= */ true); in testRotaryScrollHapticsDisabled_producesNoHapticEvent()
92 mView.dispatchGenericMotionEvent(createRotaryEvent(10)); in testRotaryScrollHapticsDisabled_producesNoHapticEvent()
94 mView.configureGenericMotion(/* result= */ true, /* scroll= */ false); in testRotaryScrollHapticsDisabled_producesNoHapticEvent()
[all …]
DViewRootImplTest.java116 private View mView; field in ViewRootImplTest
165 if (mView != null) { in teardown()
168 wm.removeView(mView); in teardown()
170 mView = null; in teardown()
364 mView = new View(sContext); in whenTouchModeChanges_viewRootIsNotified()
365 attachViewToWindow(mView); in whenTouchModeChanges_viewRootIsNotified()
366 ViewTreeObserver viewTreeObserver = mView.getRootView().getViewTreeObserver(); in whenTouchModeChanges_viewRootIsNotified()
376 mView.requestFocusFromTouch(); in whenTouchModeChanges_viewRootIsNotified()
379 assertThat(mView.isInTouchMode()).isFalse(); in whenTouchModeChanges_viewRootIsNotified()
387 mView = new View(sContext); in whenDispatchFakeFocus_focusDoesNotPersist()
[all …]
DSetTagsTest.java30 private Button mView; field in SetTagsTest
40 mView = (Button) getActivity().findViewById(R.id.disabledButton); in setUp()
45 assertNotNull(mView); in testSetUpConditions()
50 mView.setTag("1"); in testSetTag()
56 mView.setTag(o); in testGetTag()
58 final Object stored = mView.getTag(); in testGetTag()
65 mView.setTag(R.id.a, "2"); in testSetTagWithKey()
71 mView.setTag(R.id.a, o); in testGetTagWithKey()
73 final Object stored = mView.getTag(R.id.a); in testGetTagWithKey()
82 mView.setTag(android.R.id.list, "2"); in testSetTagWithFrameworkId()
[all …]
DHapticScrollFeedbackProviderTest.java50 private TestView mView; field in HapticScrollFeedbackProviderTest
64 mView = new TestView(InstrumentationRegistry.getContext()); in setUp()
65 mProvider = new HapticScrollFeedbackProvider(mView, mMockViewConfig, in setUp()
84 assertNoFeedback(mView); in testRotaryEncoder_noFeedbackWhenViewBasedFeedbackIsEnabled()
89 mProvider = new HapticScrollFeedbackProvider(mView, mMockViewConfig, in testRotaryEncoder_feedbackWhenDisregardingViewBasedScrollHaptics()
104 assertFeedbackCount(mView, SCROLL_TICK, 1); in testRotaryEncoder_feedbackWhenDisregardingViewBasedScrollHaptics()
105 assertFeedbackCount(mView, SCROLL_ITEM_FOCUS, 1); in testRotaryEncoder_feedbackWhenDisregardingViewBasedScrollHaptics()
106 assertFeedbackCount(mView, SCROLL_LIMIT, 1); in testRotaryEncoder_feedbackWhenDisregardingViewBasedScrollHaptics()
129 assertNoFeedback(mView); in testNoFeedbackWhenFeedbackIsDisabled()
137 assertOnlyFeedback(mView, HapticFeedbackConstants.SCROLL_ITEM_FOCUS); in testSnapToItem()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/
DPropertyAnimatorTest.java58 private View mView; field in PropertyAnimatorTest
113 mView = new View(getContext()); in setUp()
121 PropertyAnimator.startAnimation(mView, mProperty, 200, mAnimationProperties); in testAnimationStarted()
122 assertTrue(ViewState.isAnimating(mView, mProperty)); in testAnimationStarted()
128 PropertyAnimator.startAnimation(mView, mProperty, 200, mAnimationProperties); in testNoAnimationStarted()
129 assertFalse(ViewState.isAnimating(mView, mProperty)); in testNoAnimationStarted()
136 PropertyAnimator.startAnimation(mView, mProperty, 200f, mAnimationProperties); in testEndValueUpdated()
137 assertEquals(ViewState.getChildTag(mView, mProperty.getAnimationEndTag()), in testEndValueUpdated()
143 mEffectiveProperty.set(mView, 100f); in testStartTagUpdated()
146 PropertyAnimator.startAnimation(mView, mProperty, 200f, mAnimationProperties); in testStartTagUpdated()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/scrim/
DScrimViewTest.java45 ScrimView mView; field in ScrimViewTest
50 mView = new ScrimView(getContext()); in setUp()
51 mView.measure(View.MeasureSpec.UNSPECIFIED, View.MeasureSpec.UNSPECIFIED); in setUp()
52 mView.layout(0, 0, 1920, 1080); in setUp()
58 ViewUtils.attachView(mView); in testAttachDetach()
60 ViewUtils.detachView(mView); in testAttachDetach()
67 mView.setDrawable(drawable); in testSetDrawable_UpdateDrawable()
68 assertEquals(drawable, mView.getDrawable()); in testSetDrawable_UpdateDrawable()
73 ScrimDrawable drawable = (ScrimDrawable) mView.getDrawable(); in testCreation_initialColor()
74 ColorExtractor.GradientColors colors = mView.getColors(); in testCreation_initialColor()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/customize/
DTileAdapterDelegateTest.java56 private View mView; field in TileAdapterDelegateTest
62 mView = new View(mContext); in setUp()
69 mDelegate.onInitializeAccessibilityNodeInfo(mView, mInfo); in testInfoNoSpecialActionsWhenNoHolder()
80 mView.setTag(mHolder); in testInfoNoSpecialActionsWhenCannotStartAccessibleAction()
82 mDelegate.onInitializeAccessibilityNodeInfo(mView, mInfo); in testInfoNoSpecialActionsWhenCannotStartAccessibleAction()
96 mDelegate.onInitializeAccessibilityNodeInfo(mView, mInfo); in testNoCollectionItemInfo()
102 mView.setTag(mHolder); in testStateDescriptionHasPositionForCurrentTile()
110 mDelegate.onInitializeAccessibilityNodeInfo(mView, mInfo); in testStateDescriptionHasPositionForCurrentTile()
116 mView.setTag(mHolder); in testStateDescriptionEmptyForNotCurrentTile()
122 mDelegate.onInitializeAccessibilityNodeInfo(mView, mInfo); in testStateDescriptionEmptyForNotCurrentTile()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DActivatableNotificationViewTest.kt41 private lateinit var mView: ActivatableNotificationView variable in com.android.systemui.statusbar.notification.row.ActivatableNotificationViewTest
48 mView = object : ActivatableNotificationView(mContext, null) { in setUp()
72 mView.updateBackgroundColors() in testBackgroundBehaviors()
73 assertThat(mView.currentBackgroundTint).isEqualTo(mNormalColor) in testBackgroundBehaviors()
76 mView.setTintColor(Color.BLUE) in testBackgroundBehaviors()
77 assertThat(mView.currentBackgroundTint).isEqualTo(Color.BLUE) in testBackgroundBehaviors()
80 mView.setOverrideTintColor(Color.RED, 0.5f) in testBackgroundBehaviors()
81 assertThat(mView.currentBackgroundTint) in testBackgroundBehaviors()
85 mView.updateBackgroundColors() in testBackgroundBehaviors()
86 assertThat(mView.currentBackgroundTint).isEqualTo(mNormalColor) in testBackgroundBehaviors()
[all …]
/frameworks/native/opengl/tests/testPauseResume/src/com/android/test/
DTestActivity.java25 TestView mView; field in TestActivity
34 mView.onResume();
37 mView.onPause();
40 mView.postDelayed(mRunnable, PAUSE_DELAY);
47 mView = new TestView(getApplication()); in onCreate()
48 mView.setFocusableInTouchMode(true); in onCreate()
49 setContentView(mView); in onCreate()
50 mView.postDelayed(mRunnable, PAUSE_DELAY); in onCreate()
56 mView.onPause(); in onPause()
62 mView.onResume(); in onResume()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DViewController.java46 protected final T mView; field in ViewController
62 mView = view; in ViewController()
80 mOnAttachStateListener.onViewAttachedToWindow(mView); in init()
94 return mView.getContext(); in getContext()
98 return mView.getResources(); in getResources()
102 return mView != null && mView.isAttachedToWindow(); in isAttachedToWindow()
107 if (mView != null) { in addOnAttachStateChangeListener()
108 mView.addOnAttachStateChangeListener(listener); in addOnAttachStateChangeListener()
114 mView.removeOnAttachStateChangeListener(mOnAttachStateListener); in destroy()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/tuner/
DTunablePaddingTest.java41 private View mView; field in TunablePaddingTest
48 mView = mock(View.class); in setup()
49 when(mView.getContext()).thenReturn(mContext); in setup()
67 mTunablePadding = TunablePadding.addTunablePadding(mView, KEY, DEFAULT, in testFlags()
70 verify(mView).setPadding(eq(DEFAULT), eq(0), eq(0), eq(0)); in testFlags()
73 mTunablePadding = TunablePadding.addTunablePadding(mView, KEY, DEFAULT, in testFlags()
76 verify(mView).setPadding(eq(0), eq(DEFAULT), eq(0), eq(0)); in testFlags()
79 mTunablePadding = TunablePadding.addTunablePadding(mView, KEY, DEFAULT, in testFlags()
82 verify(mView).setPadding(eq(0), eq(0), eq(DEFAULT), eq(0)); in testFlags()
85 mTunablePadding = TunablePadding.addTunablePadding(mView, KEY, DEFAULT, in testFlags()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardMessageAreaController.java70 mView.removeCallbacks(mAnnounceRunnable);
72 mView.postDelayed(() -> {
73 if (msg == mView.getText()) {
93 mView.setSelected(false);
97 mView.setSelected(true);
104 mView.onConfigChanged();
109 mView.onThemeChanged();
114 mView.onDensityOrFontScaleChanged();
125 mAnnounceRunnable = new AnnounceRunnable(mView); in KeyguardMessageAreaController()
132 mView.setSelected(mKeyguardUpdateMonitor.isDeviceInteractive()); in onViewAttached()
[all …]
DKeyguardVisibilityHelper.java49 private View mView; field in KeyguardVisibilityHelper
65 mView = view; in KeyguardVisibilityHelper()
96 PropertyAnimator.cancelAnimation(mView, AnimatableProperty.ALPHA); in setViewVisibility()
120 mView, AnimatableProperty.ALPHA, 0f, animProps, true /* animate */); in setViewVisibility()
123 mView.setVisibility(View.VISIBLE); in setViewVisibility()
125 mView.setAlpha(0f); in setViewVisibility()
127 mView, AnimatableProperty.ALPHA, 1f, in setViewVisibility()
153 float target = mView.getY() - mView.getHeight() * 0.05f; in setViewVisibility()
159 PropertyAnimator.cancelAnimation(mView, AnimatableProperty.Y); in setViewVisibility()
160 PropertyAnimator.setProperty(mView, AnimatableProperty.Y, target, in setViewVisibility()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/
DQSCustomizerController.java85 if (!mView.isAttachedToWindow()) return;
86 if (mKeyguardStateController.isShowing() && !mView.isOpening()) {
95 mView.updateNavBackDrop(newConfig, mLightBarController);
96 mView.updateResources();
98 RecyclerView.LayoutManager lm = mView.getRecyclerView().getLayoutManager();
122 mToolbar = mView.findViewById(com.android.internal.R.id.action_bar); in QSCustomizerController()
126 mView.applyBottomNavBarToPadding(padding); in applyBottomNavBarSizeToRecyclerViewPadding()
131 mView.updateNavBackDrop(getResources().getConfiguration(), mLightBarController); in onViewAttached()
140 RecyclerView recyclerView = mView.getRecyclerView(); in onViewAttached()
187 return mView.isCustomizing(); in isCustomizing()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSPanelController.java115 mBrightnessSliderController = brightnessSliderFactory.create(getContext(), mView); in QSPanelController()
116 mView.setBrightnessView(mBrightnessSliderController.getRootView()); in QSPanelController()
147 mTunerService.addTunable(mView, QS_SHOW_BRIGHTNESS); in onViewAttached()
148 mView.updateResources(); in onViewAttached()
149 mView.setSceneContainerEnabled(mSceneContainerEnabled); in onViewAttached()
150 if (mView.isListening()) { in onViewAttached()
155 PagedTileLayout pagedTileLayout= ((PagedTileLayout) mView.getOrCreateTileLayout()); in onViewAttached()
163 this, (PagedTileLayout) mView.getOrCreateTileLayout()); in createTileRevealController()
168 mTunerService.removeTunable(mView); in onViewDetached()
175 mView.updateResources(); in onConfigurationChanged()
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/biometrics/
DUdfpsKeyguardViewLegacyControllerWithCoroutinesTest.kt88 Mockito.reset(mView) in bouncerExpansionChange_fadeIn()
97 verify(mView).unpausedAlpha = 0 in bouncerExpansionChange_fadeIn()
109 Mockito.reset(mView) in bouncerExpansionChange_pauseAuth()
112 whenever(mView.unpausedAlpha).thenReturn(0) in bouncerExpansionChange_pauseAuth()
119 verify(mView, Mockito.atLeastOnce()).setPauseAuth(true) in bouncerExpansionChange_pauseAuth()
131 Mockito.reset(mView) in bouncerExpansionChange_unpauseAuth()
134 whenever(mView.unpausedAlpha).thenReturn(255) in bouncerExpansionChange_unpauseAuth()
141 verify(mView, Mockito.atLeastOnce()).setPauseAuth(false) in bouncerExpansionChange_unpauseAuth()
160 verify(mView).animateInUdfpsBouncer(any()) in shadeLocked_showAlternateBouncer_unpauseAuth()
196 whenever(mView.setPauseAuth(true)).thenReturn(true) in shouldHandleTouchesChange()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DExpandableNotificationRowController.java82 private final ExpandableNotificationRow mView; field in ExpandableNotificationRowController
124 final int viewUserId = mView.getEntry().getSbn().getUserId();
126 mView.getPrivateLayout().setBubblesEnabledForUser(
234 mView = view; in ExpandableNotificationRowController()
275 mView.initialize( in init()
303 mView.setDescendantFocusability(ViewGroup.FOCUS_BLOCK_DESCENDANTS); in init()
306 mView.setDragController(mDragController); in init()
309 mView.setLongPressListener((v, x, y, item) -> { in init()
310 if (mView.isSummaryWithChildren()) { in init()
311 mView.expandNotification(); in init()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/
DKeyguardIndicationRotateTextViewControllerTest.java71 private KeyguardIndicationTextView mView; field in KeyguardIndicationRotateTextViewControllerTest
85 when(mView.getTextColors()).thenReturn(ColorStateList.valueOf(Color.WHITE)); in setUp()
88 mController = new KeyguardIndicationRotateTextViewController(mView, mExecutor, in setUp()
126 verify(mView).removeOnAttachStateChangeListener(any()); in destroy_removesOnAttachStateChangeListener()
161 verify(mView).switchIndication(indication); in testShowOneIndication()
170 reset(mView); in testShowTwoRotatingMessages()
180 verify(mView, never()).switchIndication(indication2); in testShowTwoRotatingMessages()
189 reset(mView); in testUpdateCurrentMessage()
199 verify(mView).switchIndication(indication2); in testUpdateCurrentMessage()
210 reset(mView); in testUpdateRotatingMessageForUndisplayedIndication()
[all …]
/frameworks/base/core/java/android/view/
DViewAnimationHostBridge.java32 private final View mView; field in ViewAnimationHostBridge
38 mView = view; in ViewAnimationHostBridge()
43 mView.mAttachInfo.mViewRootImpl.registerAnimatingRenderNode(renderNode); in registerAnimatingRenderNode()
49 mView.mAttachInfo.mViewRootImpl.registerVectorDrawableAnimator(animator); in registerVectorDrawableAnimator()
55 return mView.mAttachInfo != null; in isAttached()
60 ViewRootImpl viewRoot = mView.getViewRootImpl(); in onAnimationStart()
62 viewRoot.addThreadedRendererView(mView); in onAnimationStart()
68 ViewRootImpl viewRoot = mView.getViewRootImpl(); in onAnimationEnd()
70 viewRoot.removeThreadedRendererView(mView); in onAnimationEnd()
DViewRootInsetsControllerHost.java59 if (mViewRoot.mView == null) { in addOnPreDrawRunnable()
62 mViewRoot.mView.getViewTreeObserver().addOnPreDrawListener( in addOnPreDrawRunnable()
66 mViewRoot.mView.getViewTreeObserver().removeOnPreDrawListener(this); in addOnPreDrawRunnable()
71 mViewRoot.mView.invalidate(); in addOnPreDrawRunnable()
76 if (mViewRoot.mView == null) { in dispatchWindowInsetsAnimationPrepare()
79 mViewRoot.mView.dispatchWindowInsetsAnimationPrepare(animation); in dispatchWindowInsetsAnimationPrepare()
86 if (mViewRoot.mView == null) { in dispatchWindowInsetsAnimationStart()
90 return mViewRoot.mView.dispatchWindowInsetsAnimationStart(animation, bounds); in dispatchWindowInsetsAnimationStart()
96 if (mViewRoot.mView == null) { in dispatchWindowInsetsAnimationProgress()
106 return mViewRoot.mView.dispatchWindowInsetsAnimationProgress(insets, runningAnimations); in dispatchWindowInsetsAnimationProgress()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/brightness/
DBrightnessSliderController.java105 return mView; in getRootView()
111 mView.setOnSeekBarChangeListener(mSeekListener); in onViewAttached()
112 mView.setOnInterceptListener(mOnInterceptListener); in onViewAttached()
114 mView.setOnDispatchTouchEventListener(this::mirrorTouchEvent); in onViewAttached()
120 mView.setOnSeekBarChangeListener(null); in onViewDetached()
121 mView.setOnDispatchTouchEventListener(null); in onViewDetached()
122 mView.setOnInterceptListener(null); in onViewDetached()
131 return mView.dispatchTouchEvent(ev); in mirrorTouchEvent()
148 mView.setAdminBlocker(null); in setEnforcedAdmin()
150 mView.setAdminBlocker(() -> { in setEnforcedAdmin()
[all …]

12345678910