Home
last modified time | relevance | path

Searched refs:mRootView (Results 1 – 19 of 19) sorted by relevance

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/
DActionButtonsPreferenceTest.java44 private View mRootView; field in ActionButtonsPreferenceTest
51 mRootView = View.inflate(mContext, R.layout.settingslib_action_buttons, null /* parent */); in setUp()
52 mHolder = PreferenceViewHolder.createInstanceForTests(mRootView); in setUp()
65 assertThat(mRootView.findViewById(R.id.button1).getVisibility()) in onBindViewHolder_setTitle_shouldShowButtonByDefault()
67 assertThat(mRootView.findViewById(R.id.button2).getVisibility()) in onBindViewHolder_setTitle_shouldShowButtonByDefault()
69 assertThat(mRootView.findViewById(R.id.button3).getVisibility()) in onBindViewHolder_setTitle_shouldShowButtonByDefault()
71 assertThat(mRootView.findViewById(R.id.button4).getVisibility()) in onBindViewHolder_setTitle_shouldShowButtonByDefault()
84 assertThat(mRootView.findViewById(R.id.button1).getVisibility()) in onBindViewHolder_setIcon_shouldShowButtonByDefault()
86 assertThat(mRootView.findViewById(R.id.button2).getVisibility()) in onBindViewHolder_setIcon_shouldShowButtonByDefault()
88 assertThat(mRootView.findViewById(R.id.button3).getVisibility()) in onBindViewHolder_setIcon_shouldShowButtonByDefault()
[all …]
DBannerMessagePreferenceTest.java58 private View mRootView; field in BannerMessagePreferenceTest
85 assertThat(((TextView) mRootView.findViewById(R.id.banner_title)).getText()) in onBindViewHolder_whenTitleSet_shouldSetTitle()
96 setupActivity(Activity.class).setContentView(mRootView); in onBindViewHolder_andOnLayoutView_dismissButtonTouchDelegate_isCorrectSize()
98 assertThat(mRootView.getTouchDelegate()).isNotNull(); in onBindViewHolder_andOnLayoutView_dismissButtonTouchDelegate_isCorrectSize()
99 ShadowTouchDelegate delegate = shadowOf(mRootView.getTouchDelegate()); in onBindViewHolder_andOnLayoutView_dismissButtonTouchDelegate_isCorrectSize()
103 .isEqualTo(mRootView.findViewById(R.id.banner_dismiss_btn)); in onBindViewHolder_andOnLayoutView_dismissButtonTouchDelegate_isCorrectSize()
112 assertThat(((TextView) mRootView.findViewById(R.id.banner_summary)).getText()) in onBindViewHolder_whenSummarySet_shouldSetSummary()
123 assertThat(((TextView) mRootView.findViewById(R.id.banner_summary)).getText()) in onBindViewHolder_whenPreS_shouldBindView()
134 TextView mSubtitleView = mRootView.findViewById(R.id.banner_subtitle); in onBindViewHolder_whenAtLeastS_whenSubtitleSetByString_shouldSetSubtitle()
146 TextView mSubtitleView = mRootView.findViewById(R.id.banner_subtitle); in onBindViewHolder_whenAtLeastS_whenSubtitleSetByResId_shouldSetSubtitle()
[all …]
DMainSwitchPreferenceTest.java37 private View mRootView; field in MainSwitchPreferenceTest
44 mRootView = View.inflate(mContext, R.layout.settingslib_main_switch_layout, in setUp()
46 mHolder = PreferenceViewHolder.createInstanceForTests(mRootView); in setUp()
58 assertThat(((TextView) mRootView.findViewById(R.id.switch_text)).getText()) in setTitle_shouldUpdateTitle()
DAppPreferenceTest.java36 private View mRootView; field in AppPreferenceTest
43 mRootView = View.inflate(mContext, R.layout.preference_app, null /* parent */); in setUp()
44 mHolder = PreferenceViewHolder.createInstanceForTests(mRootView); in setUp()
DIllustrationPreferenceTest.java56 private ViewGroup mRootView; field in IllustrationPreferenceTest
75 doReturn(mMiddleGroundLayout).when(mRootView).findViewById(R.id.middleground_layout); in setUp()
76 doReturn(mAnimationView).when(mRootView).findViewById(R.id.lottie_view); in setUp()
77 doReturn(illustrationFrame).when(mRootView).findViewById(R.id.illustration_frame); in setUp()
78 mViewHolder = spy(PreferenceViewHolder.createInstanceForTests(mRootView)); in setUp()
DTwoTargetPreferenceTest.java50 private View mRootView; field in TwoTargetPreferenceTest
59 mRootView = View.inflate(mContext, R.layout.preference_two_target, null /* parent */); in setUp()
60 mViewHolder = PreferenceViewHolder.createInstanceForTests(mRootView); in setUp()
/frameworks/base/core/tests/coretests/src/android/widget/focus/
DLinearLayoutGridTest.java34 private ViewGroup mRootView; field in LinearLayoutGridTest
42 mRootView = getActivity().getRootView(); in setUp()
49 mRootView, in testGoDownFromMiddle()
58 mRootView, in testGoUpFromMiddle()
67 mRootView, in testGoRightFromMiddle()
76 mRootView, in testGoLeftFromMiddle()
/frameworks/base/packages/SettingsLib/LayoutPreference/src/com/android/settingslib/widget/
DLayoutPreference.java49 private View mRootView; field in LayoutPreference
128 mRootView = view; in setView()
144 ViewGroup parent = (ViewGroup) mRootView.getParent(); in onBindViewHolder()
146 parent.removeView(mRootView); in onBindViewHolder()
148 layout.addView(mRootView); in onBindViewHolder()
158 return mRootView.findViewById(id); in findViewById()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSSecurityFooter.java73 private final View mRootView; field in QSSecurityFooter
96 mRootView = rootView; in QSSecurityFooter()
97 mRootView.setOnClickListener(this); in QSSecurityFooter()
98 mFooterText = mRootView.findViewById(R.id.footer_text); in QSSecurityFooter()
99 mPrimaryFooterIcon = mRootView.findViewById(R.id.primary_footer_icon); in QSSecurityFooter()
129 mRootView.setPaddingRelative(padding, padding, padding, padding); in onConfigurationChanged()
133 (ViewGroup.MarginLayoutParams) mRootView.getLayoutParams(); in onConfigurationChanged()
137 mRootView.setLayoutParams(lp); in onConfigurationChanged()
139 mRootView.setBackground(mContext.getDrawable(R.drawable.qs_security_footer_background)); in onConfigurationChanged()
143 return mRootView; in getView()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
DRestrictedSwitchPreferenceTest.java42 private View mRootView; field in RestrictedSwitchPreferenceTest
49 mRootView = View.inflate(mContext, R.layout.restricted_switch_preference, in setUp()
51 mViewHolder = PreferenceViewHolder.createInstanceForTests(mRootView); in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DQSSecurityFooterTest.java87 private ViewGroup mRootView; field in QSSecurityFooterTest
103 mRootView = (ViewGroup) new LayoutInflaterBuilder(mContext) in setUp()
106 mFooter = new QSSecurityFooter(mRootView, mUserTracker, new Handler(looper), in setUp()
108 mFooterText = mRootView.findViewById(R.id.footer_text); in setUp()
109 mPrimaryFooterIcon = mRootView.findViewById(R.id.primary_footer_icon); in setUp()
125 assertEquals(View.GONE, mRootView.getVisibility()); in testUnmanaged()
137 assertEquals(View.VISIBLE, mRootView.getVisibility()); in testManagedNoOwnerName()
153 assertEquals(View.VISIBLE, mRootView.getVisibility()); in testManagedOwnerName()
172 assertEquals(View.VISIBLE, mRootView.getVisibility()); in testManagedFinancedDeviceWithOwnerName()
189 assertEquals(View.GONE, mRootView.getVisibility()); in testManagedDemoMode()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DKeyguardBouncerTest.java97 private ViewGroup mRootView; field in KeyguardBouncerTest
112 when(mRootView.getVisibility()).thenAnswer((Answer<Integer>) invocation -> mRootVisibility); in setup()
116 }).when(mRootView).setVisibility(anyInt()); in setup()
126 when(mRootViewController.getView()).thenReturn(mRootView); in setup()
127 when(mRootView.getResources()).thenReturn(mContext.getResources()); in setup()
236 verify(mRootView).announceForAccessibility(any()); in testSetExpansion_notifiesKeyguardView()
/frameworks/opt/photoviewer/src/com/android/ex/photo/
DPhotoViewController.java146 protected View mRootView; field in PhotoViewController
313 mRootView = findViewById(getRootViewId()); in onCreate()
315 mRootView.setOnSystemUiVisibilityChangeListener(getSystemUiVisibilityChangeListener()); in onCreate()
815 Util.announceForAccessibility(mRootView, mAccessibilityManager, announcement); in setViewActivated()
988 final int totalWidth = mRootView.getMeasuredWidth(); in runEnterAnimation()
989 final int totalHeight = mRootView.getMeasuredHeight(); in runEnterAnimation()
1085 final int totalWidth = mRootView.getMeasuredWidth(); in runExitAnimation()
1086 final int totalHeight = mRootView.getMeasuredHeight(); in runExitAnimation()
1208 int totalWidth = mRootView.getMeasuredWidth(); in initTemporaryImage()
1213 final View base = mRootView; in initTemporaryImage()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/fragments/
DFragmentHostManager.java54 private final View mRootView; field in FragmentHostManager
67 mRootView = rootView; in FragmentHostManager()
169 return mRootView.findViewById(id); in findViewById()
/frameworks/base/core/java/android/service/voice/
DVoiceInteractionSession.java157 View mRootView; field in VoiceInteractionSession
1068 mRootView.invalidate(); in doShow()
1069 mRootView.getViewTreeObserver().addOnPreDrawListener( in doShow()
1073 mRootView.getViewTreeObserver().removeOnPreDrawListener(this); in doShow()
1115 mRootView.getViewTreeObserver().removeOnComputeInternalInsetsListener( in doDestroy()
1147 mRootView = mInflater.inflate( in ensureWindowCreated()
1149 mRootView.setSystemUiVisibility( in ensureWindowCreated()
1152 mWindow.setContentView(mRootView); in ensureWindowCreated()
1153 mRootView.getViewTreeObserver().addOnComputeInternalInsetsListener(mInsetsComputer); in ensureWindowCreated()
1155 mContentFrame = (FrameLayout)mRootView.findViewById(android.R.id.content); in ensureWindowCreated()
/frameworks/base/core/java/android/inputmethodservice/
DInputMethodService.java449 View mRootView; field in InputMethodService
906 if (mRootView != null) { in getHostInputToken()
907 viewRoot = mRootView.getViewRootImpl(); in getHostInputToken()
1393 mRootView = mInflater.inflate( in initViews()
1395 mWindow.setContentView(mRootView); in initViews()
1396 mRootView.getViewTreeObserver().addOnComputeInternalInsetsListener(mInsetsComputer); in initViews()
1397 mFullscreenArea = mRootView.findViewById(com.android.internal.R.id.fullscreenArea); in initViews()
1399 mExtractFrame = mRootView.findViewById(android.R.id.extractArea); in initViews()
1406 mCandidatesFrame = mRootView.findViewById(android.R.id.candidatesArea); in initViews()
1407 mInputFrame = mRootView.findViewById(android.R.id.inputArea); in initViews()
[all …]
/frameworks/base/core/java/android/view/
DViewRootImpl.java1082 mAttachInfo.mRootView = view; in setView()
1130 mAttachInfo.mRootView = null; in setView()
1151 mAttachInfo.mRootView = null; in setView()
4993 mAttachInfo.mRootView = null; in dispatchDetachedFromWindow()
DView.java24979 final View v = mAttachInfo.mRootView; in getRootView()
29174 View mRootView; field in View.AttachInfo
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt54018 Landroid/service/voice/VoiceInteractionSession;->mRootView:Landroid/view/View;
66557 Landroid/view/View$AttachInfo;->mRootView:Landroid/view/View;