Home
last modified time | relevance | path

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

12345

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DSmartReplyViewTest.java90 private SmartReplyView mView; field in SmartReplyViewTest
118 mView = SmartReplyView.inflate(mContext); in setUp()
155 mView.getChildAt(2).performClick(); in testSendSmartReply_intentContainsResultsAndSource()
168 mView.getChildAt(2).performClick(); in testSendSmartReply_keyguardCancelled()
179 mView.getChildAt(2).performClick(); in testSendSmartReply_waitsForKeyguard()
196 mView.getChildAt(2).performClick(); in testSendSmartReply_controllerCalled()
205 mView.getChildAt(0).performClick(); in testSendSmartReply_hidesContainer()
215 mView.getChildAt(2).performClick(); in testTapSmartReply_beforeInitDelay_blocked()
227 mView.getChildAt(2).performClick(); in testTapSmartReply_afterInitDelay_clickReceived()
243 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 …]
DImageFloatingTextViewTest.java37 private ImageFloatingTextView mView; field in ImageFloatingTextViewTest
43 mView = new ImageFloatingTextView(mContext, null, 0, 0); in setup()
44 mView.setMaxLines(9); in setup()
110 mView.setSingleLine(); in usesTransformationMethod()
113 Layout layout = mView.getLayout(); in usesTransformationMethod()
123 mView.setText(text); in parametrizedTest()
126 mView.measure(widthMeasureSpec, heightMeasureSpec); in parametrizedTest()
131 mView.getMeasuredHeight() <= mTextView.getMeasuredHeight()); in parametrizedTest()
/frameworks/base/packages/SystemUI/src/com/android/systemui/stackdivider/
DDivider.java44 private DividerView mView; field in Divider
75 return mView; in getView()
87 mView = (DividerView) in addDivider()
89 mView.injectDependencies(mWindowManager, mDividerState, this); in addDivider()
90 mView.setVisibility(mVisible ? View.VISIBLE : View.INVISIBLE); in addDivider()
91 mView.setMinimizedDockStack(mMinimized, mHomeStackResizable); in addDivider()
97 mWindowManager.add(mView, width, height); in addDivider()
101 if (mView != null) { in removeDivider()
102 mView.onDividerRemoved(); in removeDivider()
111 mView.setMinimizedDockStack(true, mHomeStackResizable); in update()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/
DPropertyAnimatorTest.java51 private View mView; field in PropertyAnimatorTest
106 mView = new View(getContext()); in setUp()
113 PropertyAnimator.startAnimation(mView, mProperty, 200, mAnimationProperties); in testAnimationStarted()
114 assertTrue(ViewState.isAnimating(mView, mProperty)); in testAnimationStarted()
120 PropertyAnimator.startAnimation(mView, mProperty, 200, mAnimationProperties); in testNoAnimationStarted()
121 assertFalse(ViewState.isAnimating(mView, mProperty)); in testNoAnimationStarted()
128 PropertyAnimator.startAnimation(mView, mProperty, 200f, mAnimationProperties); in testEndValueUpdated()
129 assertEquals(ViewState.getChildTag(mView, mProperty.getAnimationEndTag()), in testEndValueUpdated()
135 mEffectiveProperty.set(mView, 100f); in testStartTagUpdated()
138 PropertyAnimator.startAnimation(mView, mProperty, 200f, mAnimationProperties); in testStartTagUpdated()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DFooterViewTest.java42 FooterView mView; field in FooterViewTest
46 mView = (FooterView) LayoutInflater.from(mContext).inflate( in setUp()
48 mView.setDuration(0); in setUp()
53 assertNotNull(mView.findContentView()); in testViewsNotNull()
54 assertNotNull(mView.findSecondaryView()); in testViewsNotNull()
59 mView.setDismissButtonClickListener(mock(View.OnClickListener.class)); in setDismissOnClick()
60 assertTrue(mView.findSecondaryView().hasOnClickListeners()); in setDismissOnClick()
65 mView.setManageButtonClickListener(mock(View.OnClickListener.class)); in setManageOnClick()
66 assertTrue(mView.findViewById(R.id.manage_text).hasOnClickListeners()); in setManageOnClick()
71 mView.setVisible(false /* visible */, false /* animate */); in testPerformVisibilityAnimation()
[all …]
DNotificationContentViewTest.java51 NotificationContentView mView; field in NotificationContentViewTest
58 mView = new NotificationContentView(mContext, null); in setup()
64 mView.setContainingNotification(mockRow); in setup()
65 mView.setHeights(10, 20, 30, 40); in setup()
67 mView.setContractedChild(createViewWithHeight(10)); in setup()
68 mView.setExpandedChild(createViewWithHeight(20)); in setup()
69 mView.setHeadsUpChild(createViewWithHeight(30)); in setup()
70 mView.setAmbientChild(createViewWithHeight(40)); in setup()
72 mView.measure(View.MeasureSpec.UNSPECIFIED, View.MeasureSpec.UNSPECIFIED); in setup()
73 mView.layout(0, 0, mView.getMeasuredWidth(), mView.getMeasuredHeight()); in setup()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/stack/
DNotificationSwipeHelperTest.java66 private View mView; field in NotificationSwipeHelperTest
80 mView = mock(View.class); in setUp()
92 mSwipeHelper.setExposedMenuView(mView); in testSetExposedMenuView()
94 mView, mSwipeHelper.getExposedMenuView()); in testSetExposedMenuView()
102 doNothing().when(mSwipeHelper).setExposedMenuView(mView); in testClearExposedMenuView()
111 mSwipeHelper.setTranslatingParentView(mView); in testGetTranslatingParentView()
113 mView, mSwipeHelper.getTranslatingParentView()); in testGetTranslatingParentView()
166 mSwipeHelper.onDownUpdate(mView, mEvent); in testOnDownUpdate_notExpandableNotificationRow()
180 mSwipeHelper.onMoveUpdate(mView, mEvent, 0, 10); in testOnMoveUpdate_menuRow()
191 mSwipeHelper.onMoveUpdate(mView, mEvent, 0, 10); in testOnMoveUpdate_noMenuRow()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
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/core/tests/coretests/src/android/view/
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 …]
/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/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/charging/
DWirelessChargingAnimation.java98 private View mView; field in WirelessChargingAnimation.WirelessChargingView
166 Slog.d(TAG, "HANDLE SHOW: " + this + " mView=" + mView + " mNextView=" in handleShow()
170 if (mView != mNextView) { in handleShow()
173 mView = mNextView; in handleShow()
174 Context context = mView.getContext().getApplicationContext(); in handleShow()
175 String packageName = mView.getContext().getOpPackageName(); in handleShow()
177 context = mView.getContext(); in handleShow()
183 if (mView.getParent() != null) { in handleShow()
184 if (DEBUG) Slog.d(TAG, "REMOVE! " + mView + " in " + this); in handleShow()
185 mWM.removeView(mView); in handleShow()
[all …]
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/
DMockView.java40 private final TextView mView; field in MockView
61 mView = new TextView(context, new BridgeLayoutParamsMapAttributes(attributes)); in MockView()
62 mView.setTextColor(0xFF000000); in MockView()
65 addView(mView); in MockView()
72 if (child == mView) { in addView()
79 if (child == mView) { in addView()
86 if (child == mView) { in addView()
93 if (child == mView) { in addView()
100 if (child == mView) { in addView()
111 mView.setText(text); in setText()
[all …]
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/
DTimeZonePickerDialog.java42 private TimeZonePickerView mView; field in TimeZonePickerDialog
72 mView = new TimeZonePickerView(getActivity(), null, timeZone, timeMillis, this, in onCreateView()
75 mView.showFilterResults(savedInstanceState.getInt(KEY_LAST_FILTER_TYPE), in onCreateView()
79 return mView; in onCreateView()
85 outState.putBoolean(KEY_HAS_RESULTS, mView != null && mView.hasResults()); in onSaveInstanceState()
86 if (mView != null) { in onSaveInstanceState()
87 outState.putInt(KEY_LAST_FILTER_TYPE, mView.getLastFilterType()); in onSaveInstanceState()
88 outState.putString(KEY_LAST_FILTER_STRING, mView.getLastFilterString()); in onSaveInstanceState()
89 outState.putInt(KEY_LAST_FILTER_TIME, mView.getLastFilterTime()); in onSaveInstanceState()
90 outState.putBoolean(KEY_HIDE_FILTER_SEARCH, mView.getHideFilterSearchOnStart()); in onSaveInstanceState()
/frameworks/base/core/java/com/android/internal/widget/
DExploreByTouchHelper.java77 private final View mView; field in ExploreByTouchHelper
101 mView = forView; in ExploreByTouchHelper()
183 final ViewParent parent = mView.getParent(); in sendEventForVirtualView()
189 return parent.requestSendAccessibilityEvent(mView, event); in sendEventForVirtualView()
239 final ViewParent parent = mView.getParent(); in invalidateVirtualView()
244 parent.requestSendAccessibilityEvent(mView, event); in invalidateVirtualView()
309 mView.onInitializeAccessibilityEvent(event); in createEventForHost()
342 event.setPackageName(mView.getContext().getPackageName()); in createEventForChild()
343 event.setSource(mView, virtualViewId); in createEventForChild()
374 final AccessibilityNodeInfo node = AccessibilityNodeInfo.obtain(mView); in createNodeForHost()
[all …]
/frameworks/native/opengl/tests/gl_jni/src/com/android/gljni/
DGLJNIActivity.java24 GLJNIView mView; field in GLJNIActivity
29 mView = new GLJNIView(getApplication()); in onCreate()
30 mView.setFocusableInTouchMode(true); in onCreate()
31 setContentView(mView); in onCreate()
37 mView.onPause(); in onPause()
43 mView.onResume(); in onResume()
/frameworks/native/opengl/tests/testViewport/src/com/android/test/
DTestActivity.java25 TestView mView; field in TestActivity
30 mView = new TestView(getApplication()); in onCreate()
31 mView.setFocusableInTouchMode(true); in onCreate()
32 setContentView(mView); in onCreate()
38 mView.onPause(); in onPause()
44 mView.onResume(); in onResume()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DDessertCaseDream.java22 private DessertCaseView mView; field in DessertCaseDream
30 mView = new DessertCaseView(this); in onAttachedToWindow()
34 mContainer.setView(mView); in onAttachedToWindow()
42 mView.postDelayed(new Runnable() { in onDreamingStarted()
44 mView.start(); in onDreamingStarted()
52 mView.stop(); in onDreamingStopped()
DDessertCase.java25 DessertCaseView mView; field in DessertCase
40 mView = new DessertCaseView(this); in onStart()
44 container.setView(mView); in onStart()
52 mView.postDelayed(new Runnable() { in onResume()
54 mView.start(); in onResume()
62 mView.stop(); in onPause()
/frameworks/native/opengl/tests/testLatency/src/com/android/testlatency/
DTestLatencyActivity.java29 TestLatencyView mView; field in TestLatencyActivity
33 mView = new TestLatencyView(getApplication()); in onCreate()
34 setContentView(mView); in onCreate()
35 mView.setFocusableInTouchMode(true); in onCreate()
40 mView.onPause(); in onPause()
45 mView.onResume(); in onResume()
/frameworks/native/opengl/tests/testFramerate/src/com/android/testframerate/
DTestFramerateActivity.java29 TestFramerateView mView; field in TestFramerateActivity
33 mView = new TestFramerateView(getApplication()); in onCreate()
34 setContentView(mView); in onCreate()
35 mView.setFocusableInTouchMode(true); in onCreate()
40 mView.onPause(); in onPause()
45 mView.onResume(); in onResume()
/frameworks/base/core/java/android/widget/
DToast.java375 View mView; field in Toast.TN
468 if (localLOGV) Log.v(TAG, "HANDLE SHOW: " + this + " mView=" + mView in handleShow()
475 if (mView != mNextView) { in handleShow()
478 mView = mNextView; in handleShow()
479 Context context = mView.getContext().getApplicationContext(); in handleShow()
480 String packageName = mView.getContext().getOpPackageName(); in handleShow()
482 context = mView.getContext(); in handleShow()
487 final Configuration config = mView.getContext().getResources().getConfiguration(); in handleShow()
504 if (mView.getParent() != null) { in handleShow()
505 if (localLOGV) Log.v(TAG, "REMOVE! " + mView + " in " + this); in handleShow()
[all …]
/frameworks/base/core/java/android/view/
DViewPropertyAnimator.java55 final View mView; field in ViewPropertyAnimator
249 mView = view; in ViewPropertyAnimator()
411 mView.removeCallbacks(mAnimationStarter); in start()
432 mView.removeCallbacks(mAnimationStarter); in cancel()
771 mView.setLayerType(View.LAYER_TYPE_HARDWARE, null); in withLayer()
772 if (mView.isAttachedToWindow()) { in withLayer()
773 mView.buildLayer(); in withLayer()
777 final int currentLayerType = mView.getLayerType(); in withLayer()
781 mView.setLayerType(currentLayerType, null); in withLayer()
855 mView.setHasTransientState(true); in startAnimation()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DKeyguardClockAccessibilityDelegateTest.java40 private TextView mView; field in KeyguardClockAccessibilityDelegateTest
49 mView = new TextView(mContext); in setUp()
50 mView.setText(m12HoursFormat); in setUp()
51 mView.setContentDescription(m12HoursFormat); in setUp()
52 mView.setAccessibilityDelegate(new KeyguardClockAccessibilityDelegate(mContext)); in setUp()
58 mView.onInitializeAccessibilityEvent(ev); in onInitializeAccessibilityEvent_producesNonEmptyAsciiContentDesc()
67 mView.onPopulateAccessibilityEvent(ev); in onPopulateAccessibilityEvent_producesNonEmptyAsciiText()
77 info.setContentDescription(mView.getContentDescription()); in onInitializeAccessibilityNodeInfo_producesNonEmptyAsciiText()
78 mView.onInitializeAccessibilityNodeInfo(info); in onInitializeAccessibilityNodeInfo_producesNonEmptyAsciiText()

12345