/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/ |
H A D | NotificationStackScrollLayoutController.java | 260 mView.post(() -> { 428 return mView.isExpanded() && mView.isFullyAwake(); 709 mView = view; in attach() 755 mView.initView(mView.getContext(), mSwipeHelper); in attach() 870 mView.requestLayout(); in requestLayout() 900 return mView.getTop(); in getTop() 1040 return mView.getX(); in getX() 1130 mView.setAlpha(alpha); in setAlpha() 1185 && (!mView.isQsExpanded() || mView.isUsingSplitNotificationShade()) in updateShowEmptyShadeView() 1319 mView.updateFooter(); [all …]
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
H A D | SmartReplyViewTest.java | 321 mView.layout(10, 10, 10 + mView.getMeasuredWidth(), 10 + mView.getMeasuredHeight()); in testLayout_shortChoices() 358 mView.layout(10, 10, 10 + mView.getMeasuredWidth(), 10 + mView.getMeasuredHeight()); in testLayout_choiceWithTwoLines() 397 mView.layout(10, 10, 10 + mView.getMeasuredWidth(), 10 + mView.getMeasuredHeight()); in testLayout_choiceWithThreeLines() 416 mView.measure( in testMeasure_squeezeLongest() 441 mView.layout(10, 10, 10 + mView.getMeasuredWidth(), 10 + mView.getMeasuredHeight()); in testLayout_squeezeLongest() 465 mView.layout(10, 10, 10 + mView.getMeasuredWidth(), 10 + mView.getMeasuredHeight()); in testMeasure_dropLongest() 763 mView.layout(10, 10, 10 + mView.getMeasuredWidth(), 10 + mView.getMeasuredHeight()); in testLayout_shortSmartActions() 800 mView.layout(10, 10, 10 + mView.getMeasuredWidth(), 10 + mView.getMeasuredHeight()); in testLayout_smartActionWithTwoLines() 841 mView.layout(10, 10, 10 + mView.getMeasuredWidth(), 10 + mView.getMeasuredHeight()); in testLayout_smartActionWithThreeLines() 885 mView.layout(10, 10, 10 + mView.getMeasuredWidth(), 10 + mView.getMeasuredHeight()); in testLayout_squeezeLongestSmartAction() [all …]
|
/aosp12/frameworks/base/core/tests/coretests/src/com/android/internal/widget/ |
H A D | MessagingLinearLayoutTest.java | 57 mView.addView(child); in testSingleChild() 60 mView.layout(0, 0, mView.getMeasuredWidth(), mView.getMeasuredHeight()); in testSingleChild() 71 mView.addView(child1); in testLargeSmall() 72 mView.addView(child2); in testLargeSmall() 75 mView.layout(0, 0, mView.getMeasuredWidth(), mView.getMeasuredHeight()); in testLargeSmall() 87 mView.addView(child1); in testSmallSmall() 88 mView.addView(child2); in testSmallSmall() 91 mView.layout(0, 0, mView.getMeasuredWidth(), mView.getMeasuredHeight()); in testSmallSmall() 103 mView.addView(child1); in testLargeLarge() 107 mView.layout(0, 0, mView.getMeasuredWidth(), mView.getMeasuredHeight()); in testLargeLarge() [all …]
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ |
H A D | FooterViewTest.java | 43 FooterView mView; field in FooterViewTest 47 mView = (FooterView) LayoutInflater.from(mContext).inflate( in setUp() 49 mView.setDuration(0); in setUp() 54 assertNotNull(mView.findContentView()); in testViewsNotNull() 55 assertNotNull(mView.findSecondaryView()); in testViewsNotNull() 72 mView.showHistory(true); in setHistoryShown() 73 assertTrue(mView.isHistoryShown()); in setHistoryShown() 80 mView.showHistory(false); in setHistoryNotShown() 81 assertFalse(mView.isHistoryShown()); in setHistoryNotShown() 89 assertFalse(mView.isVisible()); in testPerformVisibilityAnimation() [all …]
|
H A D | NotificationContentViewTest.java | 48 NotificationContentView mView; field in NotificationContentViewTest 60 mView.setContainingNotification(mockRow); in setup() 61 mView.setHeights(10, 20, 30); in setup() 68 mView.layout(0, 0, mView.getMeasuredWidth(), mView.getMeasuredHeight()); in setup() 93 mView.setContractedChild(mockContracted); in testShowFeedbackIcon() 94 mView.setExpandedChild(mockExpanded); in testShowFeedbackIcon() 95 mView.setHeadsUpChild(mockHeadsUp); in testShowFeedbackIcon() 131 mView.setExpandedChild(mockExpanded); in testExpandButtonFocusIsCalled() 132 mView.setHeadsUpChild(mockHeadsUp); in testExpandButtonFocusIsCalled() 135 mView.setFocusOnVisibilityChange(); in testExpandButtonFocusIsCalled() [all …]
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/ |
H A D | PropertyAnimatorTest.java | 51 private View mView; field in PropertyAnimatorTest 106 mView = new View(getContext()); in setUp() 114 assertTrue(ViewState.isAnimating(mView, mProperty)); in testAnimationStarted() 121 assertFalse(ViewState.isAnimating(mView, mProperty)); in testNoAnimationStarted() 135 mEffectiveProperty.set(mView, 100f); in testStartTagUpdated() 147 assertEquals(Float.valueOf(200f), mEffectiveProperty.get(mView)); in testValueIsSetUnAnimated() 157 assertTrue(ViewState.isAnimating(mView, mProperty)); in testAnimationToRightValueUpdated() 170 assertTrue(ViewState.isAnimating(mView, mProperty)); in testAnimationToRightValueUpdateAnimated() 177 mEffectiveProperty.set(mView, 100f); in testStartTagShiftedWhenChanging() 235 assertFalse(PropertyAnimator.isAnimating(mView, mProperty)); in testIsAnimating() [all …]
|
/aosp12/packages/apps/Car/libs/car-qc-lib/tests/unit/src/com/android/car/qc/view/ |
H A D | QCViewTest.java | 44 private QCView mView; field in QCViewTest 48 mView = new QCView(mContext); in setUp() 53 mView.onChanged(null); in onChanged_null_noViews() 54 assertThat(mView.getChildCount()).isEqualTo(0); in onChanged_null_noViews() 61 () -> mView.onChanged(row)); in onChanged_invalidType_throwsIllegalArgumentException() 67 mView.onChanged(list); in onChanged_list_createsListView() 76 mView.onChanged(tile); in onChanged_tile_createsTileView() 85 mView.onChanged(tile); in onChanged_alreadyHasView_callsOnChanged() 90 mView.onChanged(tile); in onChanged_alreadyHasView_callsOnChanged() 98 mView.onChanged(tile); in setActionListener_setsOnChildView() [all …]
|
H A D | QCListViewTest.java | 41 private QCListView mView; field in QCListViewTest 45 mView = new QCListView(mContext); in setUp() 50 mView.onChanged(null); in onChanged_null_noViews() 51 assertThat(mView.getChildCount()).isEqualTo(0); in onChanged_null_noViews() 58 () -> mView.onChanged(row)); in onChanged_invalidType_throwsIllegalArgumentException() 67 mView.onChanged(list); in onChanged_createsRows() 68 assertThat(mView.getChildCount()).isEqualTo(2); in onChanged_createsRows() 79 mView.onChanged(list); in onChanged_decreasedRowCount_removesExtraRows() 84 mView.onChanged(list); in onChanged_decreasedRowCount_removesExtraRows() 94 mView.onChanged(list); in setActionListener_setsOnChildView() [all …]
|
H A D | QCSeekBarViewTest.java | 55 assertThat(mView.onTouchEvent(mMotionEvent)).isTrue(); in enabled_standardTouchEvent() 60 mView.setEnabled(false); in disabled_standardTouchEvent() 67 mView.setEnabled(false); in clickableWhileDisabled_customTouchEvent() 68 mView.setClickableWhileDisabled(true); in clickableWhileDisabled_customTouchEvent() 70 assertThat(mView.onTouchEvent(mMotionEvent)).isTrue(); in clickableWhileDisabled_customTouchEvent() 77 mView.setEnabled(false); in clickableWhileDisabled_actionDown_doesNotTriggerDisabledClickListener() 78 mView.setClickableWhileDisabled(true); in clickableWhileDisabled_actionDown_doesNotTriggerDisabledClickListener() 79 mView.setDisabledClickListener(disabledClickListener); in clickableWhileDisabled_actionDown_doesNotTriggerDisabledClickListener() 82 assertThat(mView.onTouchEvent(mMotionEvent)).isTrue(); in clickableWhileDisabled_actionDown_doesNotTriggerDisabledClickListener() 90 mView.setEnabled(false); in clickableWhileDisabled_actionUp_triggersDisabledClickListener() [all …]
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
H A D | KeyguardVisibilityHelper.java | 40 private View mView; field in KeyguardVisibilityHelper 54 mView = view; in KeyguardVisibilityHelper() 73 mView.animate().cancel(); in setViewVisibility() 79 mView.animate() in setViewVisibility() 87 mView.animate() in setViewVisibility() 95 mView.setAlpha(0f); in setViewVisibility() 96 mView.animate() in setViewVisibility() 110 float target = mView.getY() - mView.getHeight() * 0.05f; in setViewVisibility() 134 mView.setAlpha(0f); in setViewVisibility() 136 mView.animate() in setViewVisibility() [all …]
|
H A D | KeyguardMessageAreaController.java | 36 mView.setSelected(false); 40 mView.setSelected(true); 45 mView.setBouncerVisible(bouncer); 46 mView.update(); 53 mView.onConfigChanged(newConfig); 58 mView.onThemeChanged(); 81 mView.onThemeChanged(); in onViewAttached() 94 mView.setAltBouncerShowing(showing); in setAltBouncerShowing() 98 mView.setMessage(s); in setMessage() 102 mView.setMessage(resId); in setMessage() [all …]
|
/aosp12/packages/apps/Messaging/src/com/android/messaging/ui/ |
H A D | BasePagerViewHolder.java | 33 protected View mView; field in BasePagerViewHolder 62 if (mView != null && (mView instanceof PersistentInstanceState)) { in resetState() 63 ((PersistentInstanceState) mView).resetState(); in resetState() 75 final View retView = mView; in destroyView() 76 mView = null; in destroyView() 82 if (mView == null) { in getView() 83 mView = createView(container); in getView() 87 return mView; in getView() 91 if (mView != null && (mView instanceof PersistentInstanceState)) { in savePendingState() 92 mSavedState = ((PersistentInstanceState) mView).saveState(); in savePendingState() [all …]
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/customize/ |
H A D | TileAdapterDelegateTest.java | 56 private View mView; field in TileAdapterDelegateTest 80 mView.setTag(mHolder); in testInfoNoSpecialActionsWhenCannotStartAccessibleAction() 102 mView.setTag(mHolder); in testStateDescriptionHasPositionForCurrentTile() 116 mView.setTag(mHolder); in testStateDescriptionEmptyForNotCurrentTile() 128 mView.setTag(mHolder); in testClickAddAction() 143 mView.setTag(mHolder); in testClickRemoveAction() 159 mView.setTag(mHolder); in testNoClickAction() 174 mView.setTag(mHolder); in testAddToPositionAction() 184 mView.setTag(mHolder); in testNoAddToPositionAction() 194 mView.setTag(mHolder); in testMoveToPositionAction() [all …]
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | NotificationShelfController.java | 37 private final NotificationShelf mView; field in NotificationShelfController 49 mView = notificationShelf; in NotificationShelfController() 69 mView.setController(this); in init() 71 if (mView.isAttachedToWindow()) { in init() 77 return mView; in getView() 86 return mView.getShelfIcons(); in getShelfIcons() 90 return mView.getVisibility(); in getVisibility() 104 return mView.getHeight(); in getHeight() 114 return mView.getIntrinsicHeight(); in getIntrinsicHeight() 118 mView.setOnActivatedListener(presenter); in setOnActivatedListener() [all …]
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/stack/ |
H A D | NotificationSwipeHelperTest.java | 68 private View mView; field in NotificationSwipeHelperTest 84 mView = mock(View.class); in setUp() 96 mSwipeHelper.setExposedMenuView(mView); in testSetExposedMenuView() 234 mSwipeHelper.snapChild(mView, 0, 0); in testSnapchild_targetIsZero() 245 mSwipeHelper.snapChild(mView, 10, 0); in testSnapchild_targetNotZero() 305 mSwipeHelper.dismiss(mView, 0); in testDismiss() 315 mSwipeHelper.snapOpen(mView, 30, 0); in testSnapOpen() 324 mSwipeHelper.snapClosed(mView, 0); in testSnapClosed() 344 mSwipeHelper.onMenuShown(mView); in onMenuShown_noAntiFalsing() 362 mSwipeHelper.onMenuShown(mView); in onMenuShown_antiFalsing() [all …]
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/ |
H A D | SysuiLifecycleTest.java | 57 private View mView; field in SysuiLifecycleTest 61 mView = new View(mContext); in setUp() 78 ViewUtils.attachView(mView); in testAttach() 92 ViewUtils.attachView(mView); in testDetach() 95 ViewUtils.detachView(mView); in testDetach() 117 ViewUtils.attachView(mView); in testStateAfterAttach() 128 ViewUtils.attachView(mView); in testStateAfterDetach() 130 ViewUtils.detachView(mView); in testStateAfterDetach() 141 ViewUtils.attachView(mView); in testStateAfterReattach() 143 ViewUtils.detachView(mView); in testStateAfterReattach() [all …]
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/scrim/ |
H A D | ScrimViewTest.java | 45 ScrimView mView; field in ScrimViewTest 50 mView = new ScrimView(getContext()); 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() 82 mView.setViewAlpha(alpha); in testSetViewAlpha_propagatesToDrawable() 89 mView.setTint(tint); in setTint_set() 90 assertEquals(mView.getTint(), tint); in setTint_set() 97 mView.setDrawable(drawable); in setDrawableBounds_propagatesToDrawable() [all …]
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
H A D | QSPanelController.java | 77 mView.updateResources(); 79 if (mView.isListening()) { 144 mView.updateResources(); in onViewAttached() 145 if (mView.isListening()) { in onViewAttached() 180 mView.setVisibility(visibility); in setVisibility() 186 if (mView.isListening()) { in setListening() 215 mView.openDetails(tile); in openDetails() 226 mView.updateResources(); in updateResources() 264 return mView.isLayoutRtl(); in isLayoutRtl() 273 return mView.isShown(); in isShown() [all …]
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ |
H A D | KeyguardIndicationRotateTextViewControllerTest.java | 66 private KeyguardIndicationTextView mView; field in KeyguardIndicationRotateTextViewControllerTest 113 reset(mView); in testShowTwoRotatingMessages() 132 reset(mView); in testUpdateCurrentMessage() 153 reset(mView); in testUpdateRotatingMessageForUndisplayedIndication() 177 reset(mView); in testUpdateImmediately() 192 reset(mView); in testUpdateImmediately() 210 reset(mView); in testSameMessage_noIndicationUpdate() 230 reset(mView); in testTransientIndication() 250 reset(mView); in testHideIndicationOneMessage() 298 reset(mView); in testStoppedDozing() [all …]
|
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/graphics/ |
H A D | DragPreviewProvider.java | 53 protected final View mView; field in DragPreviewProvider 68 mView = view; in DragPreviewProvider() 81 if (mView instanceof DraggableView) { in drawDragView() 87 mView.draw(destCanvas); in drawDragView() 105 float scale = mView.getScaleX(); in createDrawable() 111 width = mView.getWidth(); in createDrawable() 112 height = mView.getHeight(); in createDrawable() 127 return mView; in getContentView() 162 (preview.getIntrinsicWidth() - scale * mView.getWidth() * mView.getScaleX()) / 2); in getScaleAndPosition() 179 - (view.getWidth() - scale * mView.getWidth() * mView.getScaleX()) / 2); in getScaleAndPosition() [all …]
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/brightness/ |
H A D | BrightnessSliderController.java | 84 return mView; in getRootView() 98 mView.setOnInterceptListener(null); in onViewDetached() 120 mView.setEnforcedAdmin(admin); in setEnforcedAdmin() 126 mMirror.setMax(mView.getMax()); in setMirror() 154 mView.setMax(max); in setMax() 162 return mView.getMax(); in getMax() 167 mView.setValue(value); in setValue() 175 return mView.getValue(); in getValue() 180 mView.setVisibility(View.GONE); in hideView() 185 mView.setVisibility(View.VISIBLE); in showView() [all …]
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/ |
H A D | WifiConfigController2Test.java | 89 private View mView; field in WifiConfigController2Test 135 mEapCaCertSpinner = mView.findViewById(R.id.ca_cert); in setUp() 136 mEapUserCertSpinner = mView.findViewById(R.id.user_cert); in setUp() 152 final TextView ssid = mView.findViewById(R.id.ssid); in ssidExceeds32Bytes_shouldShowSsidTooLongWarning() 166 final TextView ssid = mView.findViewById(R.id.ssid); in ssidShorterThan32Bytes_shouldNotShowSsidTooLongWarning() 183 final TextView ssid = mView.findViewById(R.id.ssid); in isSubmittable_noSSID_shouldReturnFalse() 191 final TextView password = mView.findViewById(R.id.password); in isSubmittable_longPsk_shouldReturnFalse() 199 final TextView password = mView.findViewById(R.id.password); in isSubmittable_shortPsk_shouldReturnFalse() 207 final TextView password = mView.findViewById(R.id.password); in isSubmittable_goodPsk_shouldReturnTrue() 241 final TextView ssid = mView.findViewById(R.id.ssid); in isSubmittable_EapToPskWithValidPassword_shouldReturnTrue() [all …]
|
H A D | WifiConfigControllerTest.java | 77 private View mView; field in WifiConfigControllerTest 114 final TextView ssid = mView.findViewById(R.id.ssid); in ssidExceeds32Bytes_shouldShowSsidTooLongWarning() 128 final TextView ssid = mView.findViewById(R.id.ssid); in ssidShorterThan32Bytes_shouldNotShowSsidTooLongWarning() 145 final TextView ssid = mView.findViewById(R.id.ssid); in isSubmittable_noSSID_shouldReturnFalse() 153 final TextView password = mView.findViewById(R.id.password); in isSubmittable_longPsk_shouldReturnFalse() 161 final TextView password = mView.findViewById(R.id.password); in isSubmittable_shortPsk_shouldReturnFalse() 169 final TextView password = mView.findViewById(R.id.password); in isSubmittable_goodPsk_shouldReturnTrue() 177 final TextView password = mView.findViewById(R.id.password); in isSubmittable_hexPsk_shouldReturnTrue() 185 final TextView password = mView.findViewById(R.id.password); in isSubmittable_savedConfigZeroLengthPassword_shouldReturnTrue() 203 final TextView ssid = mView.findViewById(R.id.ssid); in isSubmittable_EapToPskWithValidPassword_shouldReturnTrue() [all …]
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/ |
H A D | QSCustomizerController.java | 94 mView.updateResources(); 181 return mView.isCustomizing(); in isCustomizing() 186 if (!mView.isShown()) { in show() 189 mView.showImmediately(); in show() 202 mView.setQs(qsFragment); in setQs() 224 if (mView.isShown()) { in saveInstanceState() 232 mView.setEditLocation(x, y); in setEditLocation() 241 return mView.isShown(); in isShown() 247 if (mView.isShown()) { in hide() 250 mView.setCustomizing(false); in hide() [all …]
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/tuner/ |
H A D | TunablePaddingTest.java | 41 private View mView; field in TunablePaddingTest 48 mView = mock(View.class); in setup() 49 when(mView.getContext()).thenReturn(mContext); in setup() 70 verify(mView).setPadding(eq(DEFAULT), eq(0), eq(0), eq(0)); in testFlags() 76 verify(mView).setPadding(eq(0), eq(DEFAULT), eq(0), eq(0)); in testFlags() 82 verify(mView).setPadding(eq(0), eq(0), eq(DEFAULT), eq(0)); in testFlags() 88 verify(mView).setPadding(eq(0), eq(0), eq(0), eq(DEFAULT)); in testFlags() 94 when(mView.isLayoutRtl()).thenReturn(true); in testRtl() 99 verify(mView).setPadding(eq(DEFAULT), eq(0), eq(0), eq(0)); in testRtl() 105 verify(mView).setPadding(eq(0), eq(0), eq(DEFAULT), eq(0)); in testRtl() [all …]
|