/aosp12/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/ |
H A D | ActionButtonsPreferenceTest.java | 44 private View mRootView; field in ActionButtonsPreferenceTest 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() 222 ((Button) mRootView.findViewById(R.id.button1)) in onBindViewHolder_setButtonIcon_iconMustDisplayAboveText() 235 ((Button) mRootView.findViewById(R.id.button1)) in setButtonIcon_iconResourceIdIsZero_shouldNotDisplayIcon() [all …]
|
H A D | BannerMessagePreferenceTest.java | 58 private View mRootView; field in BannerMessagePreferenceTest 96 setupActivity(Activity.class).setContentView(mRootView); in onBindViewHolder_andOnLayoutView_dismissButtonTouchDelegate_isCorrectSize() 98 assertThat(mRootView.getTouchDelegate()).isNotNull(); in onBindViewHolder_andOnLayoutView_dismissButtonTouchDelegate_isCorrectSize() 359 mRootView.setBackground(mCardBackgroundSpy); in onBindViewHolder_whenAtLeastS_whenAttentionUnset_setsHighTheme() 376 mRootView.setBackground(mCardBackgroundSpy); in onBindViewHolder_whenAtLeastS_whenAttentionHighByXML_setsHighTheme() 397 mRootView.setBackground(mCardBackgroundSpy); in onBindViewHolder_whenAtLeastS_whenAttentionMediumByXML_setsMediumTheme() 418 mRootView.setBackground(mCardBackgroundSpy); in onBindViewHolder_whenAtLeastS_whenAttentionLowByXML_setsLowTheme() 439 mRootView.setBackground(mCardBackgroundSpy); in setAttentionLevel_whenAtLeastS_whenHighAttention_setsHighTheme() 457 mRootView.setBackground(mCardBackgroundSpy); in setAttentionLevel_whenAtLeastS_whenMedAttention_setsMediumTheme() 475 mRootView.setBackground(mCardBackgroundSpy); in setAttentionLevel_whenAtLeastS_whenLowAttention_setsLowTheme() [all …]
|
H A D | MainSwitchPreferenceTest.java | 37 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()
|
/aosp12/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/common/ |
H A D | ActionButtonsPreferenceTest.java | 57 private View mRootView; field in ActionButtonsPreferenceTest 65 mHolder = PreferenceViewHolder.createInstanceForTests(mRootView); in setUp() 87 assertThat(mRootView.findViewById(R.id.button1).getVisibility()) in onBindViewHolder_setTitle_shouldShowButtonByDefault() 89 assertThat(mRootView.findViewById(R.id.button2).getVisibility()) in onBindViewHolder_setTitle_shouldShowButtonByDefault() 91 assertThat(mRootView.findViewById(R.id.button3).getVisibility()) in onBindViewHolder_setTitle_shouldShowButtonByDefault() 93 assertThat(mRootView.findViewById(R.id.button4).getVisibility()) in onBindViewHolder_setTitle_shouldShowButtonByDefault() 106 assertThat(mRootView.findViewById(R.id.button1).getVisibility()) in onBindViewHolder_setIcon_shouldShowButtonByDefault() 108 assertThat(mRootView.findViewById(R.id.button2).getVisibility()) in onBindViewHolder_setIcon_shouldShowButtonByDefault() 110 assertThat(mRootView.findViewById(R.id.button3).getVisibility()) in onBindViewHolder_setIcon_shouldShowButtonByDefault() 112 assertThat(mRootView.findViewById(R.id.button4).getVisibility()) in onBindViewHolder_setIcon_shouldShowButtonByDefault() [all …]
|
H A D | EntityHeaderPreferenceTest.java | 40 private View mRootView; field in EntityHeaderPreferenceTest 47 mHolder = PreferenceViewHolder.createInstanceForTests(mRootView); in setUp() 55 assertThat(mRootView.findViewById(R.id.entity_header_icon).getVisibility()) in onBindViewHolder_noSetIcon_shouldNotBeVisible() 63 assertThat(mRootView.findViewById(R.id.entity_header_title).getVisibility()) in onBindViewHolder_noSetTitle_shouldNotBeVisible() 71 assertThat(mRootView.findViewById(R.id.entity_header_summary).getVisibility()) in onBindViewHolder_noSetSummary_shouldNotBeVisible() 81 assertThat(mRootView.findViewById(R.id.entity_header_icon).getVisibility()) in onBindViewHolder_setIcon_shouldShowIcon() 83 assertThat(((ImageView) mRootView.findViewById(R.id.entity_header_icon)).getDrawable()) in onBindViewHolder_setIcon_shouldShowIcon() 93 assertThat(mRootView.findViewById(R.id.entity_header_title).getVisibility()) in onBindViewHolder_setLabel_shouldShowSameText() 95 assertThat(((TextView) mRootView.findViewById(R.id.entity_header_title)).getText()) in onBindViewHolder_setLabel_shouldShowSameText() 105 assertThat(mRootView.findViewById(R.id.entity_header_summary).getVisibility()) in onBindViewHolder_setSummary_shouldShowSameText() [all …]
|
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/ |
H A D | FirstFrameAnimatorHelper.java | 38 private View mRootView; field in FirstFrameAnimatorHelper 60 mRootView = view.getRootView(); in onViewAttachedToWindow() 61 mRootView.getViewTreeObserver().addOnDrawListener(this); in onViewAttachedToWindow() 66 if (mRootView != null) { in onViewDetachedFromWindow() 67 mRootView.getViewTreeObserver().removeOnDrawListener(this); in onViewDetachedFromWindow() 68 mRootView = null; in onViewDetachedFromWindow() 91 mRootView != null && in onAnimationUpdate() 92 mRootView.getWindowVisibility() == View.VISIBLE && in onAnimationUpdate() 106 mRootView.invalidate(); in onAnimationUpdate() 112 int singleFrameMS = getSingleFrameMs(mRootView.getContext()); in onAnimationUpdate() [all …]
|
/aosp12/packages/apps/Car/Launcher/src/com/android/car/carlauncher/homescreen/ |
H A D | HomeCardFragment.java | 57 private View mRootView; field in HomeCardFragment 92 mCardTitle = mRootView.findViewById(R.id.card_name); in onCreateView() 93 mCardIcon = mRootView.findViewById(R.id.card_icon); in onCreateView() 94 return mRootView; in onCreateView() 101 mRootView.setOnClickListener(v -> mPresenter.onViewClicked(v)); in onViewCreated() 122 if (mSize == null && mRootView.isLaidOut()) { in getCardSize() 123 mSize = new Size(mRootView.getWidth(), mRootView.getHeight()); in getCardSize() 134 mRootView.setVisibility(View.GONE); in hideCard() 143 mRootView.setVisibility(View.VISIBLE); in updateHeaderView() 241 return mRootView; in getRootView() [all …]
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/ |
H A D | ColorPreferenceTest.java | 58 private View mRootView; field in ColorPreferenceTest 67 mRootView = spy(new View(mContext)); in init() 160 doReturn(mImageView).when(mRootView).findViewById(R.id.color_swatch); in onBindListItem_transparent_matchBackgroundResource() 161 doReturn(mTextView).when(mRootView).findViewById(R.id.summary); in onBindListItem_transparent_matchBackgroundResource() 165 mColorPreference.onBindListItem(mRootView, colorTransparentIndex); in onBindListItem_transparent_matchBackgroundResource() 174 doReturn(mImageView).when(mRootView).findViewById(R.id.color_swatch); in onBindListItem_colorDrawable_matchColor() 176 doReturn(mTextView).when(mRootView).findViewById(R.id.summary); in onBindListItem_colorDrawable_matchColor() 180 mColorPreference.onBindListItem(mRootView, testIndex); in onBindListItem_colorDrawable_matchColor() 190 doReturn(mImageView).when(mRootView).findViewById(R.id.color_swatch); in onBindListItem_colorDrawable_matchSummary() 191 doReturn(mTextView).when(mRootView).findViewById(R.id.summary); in onBindListItem_colorDrawable_matchSummary() [all …]
|
H A D | EdgeTypePreferenceTest.java | 48 private View mRootView; field in EdgeTypePreferenceTest 56 mRootView = spy(new View(mContext)); in init() 62 doReturn(mSubtitleView).when(mRootView).findViewById(R.id.preview); in init() 63 doReturn(mSummaryView).when(mRootView).findViewById(R.id.summary); in init() 78 mEdgeTypePreference.onBindListItem(mRootView, testIndex); in onBindListItem_initSubtitleView() 92 mEdgeTypePreference.onBindListItem(mRootView, testIndex); in onBindListItem_setSummary()
|
/aosp12/frameworks/base/core/tests/coretests/src/android/widget/focus/ |
H A D | LinearLayoutGridTest.java | 34 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()
|
/aosp12/packages/apps/Camera2/src/com/android/camera/ |
H A D | VideoUI.java | 47 private final View mRootView; field in VideoUI 89 mRootView = parent; in VideoUI() 90 ViewGroup moduleRoot = (ViewGroup) mRootView.findViewById(R.id.module_layout); in VideoUI() 94 mPreviewOverlay = (PreviewOverlay) mRootView.findViewById(R.id.preview_overlay); in VideoUI() 98 mFocusRing = (FocusRing) mRootView.findViewById(R.id.focus_ring); in VideoUI() 140 mReviewImage = (ImageView) mRootView.findViewById(R.id.review_image); in initializeMiscControls() 141 mRecordingTimeView = (TextView) mRootView.findViewById(R.id.recording_time); in initializeMiscControls() 142 mRecordingTimeRect = (RotateLayout) mRootView.findViewById(R.id.recording_time_rect); in initializeMiscControls() 145 mLabelsLinearLayout = (LinearLayout) mRootView.findViewById(R.id.labels); in initializeMiscControls() 249 return new Point(mRootView.getMeasuredWidth(), mRootView.getMeasuredHeight()); in getPreviewScreenSize()
|
H A D | CaptureModuleUI.java | 48 private final View mRootView; field in CaptureModuleUI 82 mRootView = parent; in CaptureModuleUI() 84 ViewGroup moduleRoot = (ViewGroup) mRootView.findViewById(R.id.module_layout); in CaptureModuleUI() 87 mPreviewView = (TextureView) mRootView.findViewById(R.id.preview_content); in CaptureModuleUI() 89 mPreviewOverlay = (PreviewOverlay) mRootView.findViewById(R.id.preview_overlay); in CaptureModuleUI() 90 mProgressOverlay = (ProgressOverlay) mRootView.findViewById(R.id.progress_overlay); in CaptureModuleUI() 92 mFocusRing = (FocusRing) mRootView.findViewById(R.id.focus_ring); in CaptureModuleUI() 93 mCountdownView = (CountDownView) mRootView.findViewById(R.id.count_down_view); in CaptureModuleUI()
|
/aosp12/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/television/ |
H A D | GrantPermissionsViewHandlerImpl.java | 49 private ViewGroup mRootView; field in GrantPermissionsViewHandlerImpl 77 mRootView = (ViewGroup) LayoutInflater.from(mContext) in createView() 80 mMessageView = (TextView) mRootView.findViewById(R.id.permission_message); in createView() 81 mIconView = (ImageView) mRootView.findViewById(R.id.permission_icon); in createView() 82 mCurrentGroupView = (TextView) mRootView.findViewById(R.id.current_page_text); in createView() 83 mAllowButton = (Button) mRootView.findViewById(R.id.permission_allow_button); in createView() 88 (Button) mRootView.findViewById(R.id.permission_allow_one_time_button); in createView() 89 mSoftDenyButton = (Button) mRootView.findViewById(R.id.permission_deny_button); in createView() 90 mHardDenyButton = (Button) mRootView.findViewById( in createView() 100 return mRootView; in createView() [all …]
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/ |
H A D | DisabledCheckBoxPreferenceTest.java | 46 private View mRootView; field in DisabledCheckBoxPreferenceTest 53 mRootView = View.inflate(mContext, R.layout.preference, null /* parent */); in setUp() 54 mHolder = PreferenceViewHolder.createInstanceForTests(mRootView); in setUp() 69 assertThat(mRootView.findViewById(android.R.id.checkbox).isEnabled()).isFalse(); in onBindViewHolder_checkboxDisabled() 80 mPref.performClick(mRootView); in checkboxOnClick_checkboxDisabled() 93 mPref.performClick(mRootView); in checkboxOnClick_checkboxEnabled()
|
/aosp12/packages/apps/Launcher3/quickstep/src/com/android/quickstep/interaction/ |
H A D | TutorialFragment.java | 57 RootSandboxLayout mRootView; field in TutorialFragment 170 mRootView = (RootSandboxLayout) inflater.inflate( in onCreateView() 172 mRootView.setOnApplyWindowInsetsListener((view, insets) -> { in onCreateView() 177 mRootView.setOnTouchListener(this); in onCreateView() 178 mEdgeGestureVideoView = mRootView.findViewById(R.id.gesture_tutorial_edge_gesture_video); in onCreateView() 179 mFingerDotView = mRootView.findViewById(R.id.gesture_tutorial_finger_dot); in onCreateView() 180 mFakePreviousTaskView = mRootView.findViewById( in onCreateView() 182 return mRootView; in onCreateView() 286 mRootView.getViewTreeObserver().addOnGlobalLayoutListener( in onResume() 291 mRootView.getViewTreeObserver().removeOnGlobalLayoutListener(this); in onResume() [all …]
|
/aosp12/packages/apps/Camera2/src/com/android/camera/captureintent/ |
H A D | CaptureIntentModuleUI.java | 50 private final View mRootView; field in CaptureIntentModuleUI 91 mRootView = parent; in CaptureIntentModuleUI() 93 mIntentReviewImageView = (ImageView) mRootView.findViewById(R.id.intent_review_imageview); in CaptureIntentModuleUI() 97 ViewGroup moduleRoot = (ViewGroup) mRootView.findViewById(R.id.module_layout); in CaptureIntentModuleUI() 100 mPreviewOverlay = (PreviewOverlay) mRootView.findViewById(R.id.preview_overlay); in CaptureIntentModuleUI() 101 mProgressOverlay = (ProgressOverlay) mRootView.findViewById(R.id.progress_overlay); in CaptureIntentModuleUI() 102 mFocusRing = (FocusRing) mRootView.findViewById(R.id.focus_ring); in CaptureIntentModuleUI() 103 mCountdownView = (CountDownView) mRootView.findViewById(R.id.count_down_view); in CaptureIntentModuleUI()
|
/aosp12/frameworks/base/packages/SettingsLib/LayoutPreference/src/com/android/settingslib/widget/ |
H A D | LayoutPreference.java | 49 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()
|
/aosp12/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/imewidescreen/ |
H A D | CarUiImeWideScreenController.java | 175 private View mRootView; field in CarUiImeWideScreenController 241 mInputFrame = mRootView.requireViewById(R.id.car_ui_wideScreenInputArea); in createWideScreenImeView() 271 mRootView.requireViewById(R.id.car_ui_wideScreenDescriptionTitle); in createWideScreenImeView() 274 mRootView.findViewById(R.id.car_ui_inputExtractActionAutomotive); in createWideScreenImeView() 279 mRootView.findViewById(R.id.car_ui_wideScreenExtractedTextIcon); in createWideScreenImeView() 282 mFullscreenArea = mRootView.requireViewById(R.id.car_ui_fullscreenArea); in createWideScreenImeView() 283 mInputExtractEditTextContainer = mRootView.requireViewById( in createWideScreenImeView() 292 return mRootView; in createWideScreenImeView() 569 ImageView close = mRootView.findViewById(R.id.car_ui_closeKeyboard); in onStartInputView() 604 return mRootView.getRootView().requireViewById( in getExtractEditText() [all …]
|
/aosp12/packages/apps/Settings/src/com/android/settings/inputmethod/ |
H A D | UserDictionaryAddWordFragment.java | 46 private View mRootView; field in UserDictionaryAddWordFragment 60 mRootView = inflater.inflate(R.layout.user_dictionary_add_word_fullscreen, null); in onCreateView() 65 mContents = new UserDictionaryAddWordContents(mRootView, getArguments()); in onCreateView() 72 mContents = new UserDictionaryAddWordContents(mRootView, in onCreateView() 77 return mRootView; in onCreateView()
|
/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/userdictionary/ |
H A D | UserDictionaryAddWordFragment.java | 56 private View mRootView; field in UserDictionaryAddWordFragment 71 mRootView = inflater.inflate(R.layout.user_dictionary_add_word_fullscreen, null); in onCreateView() 76 mContents = new UserDictionaryAddWordContents(mRootView, getArguments()); in onCreateView() 83 mContents = new UserDictionaryAddWordContents(mRootView, in onCreateView() 88 return mRootView; in onCreateView() 136 (Spinner)mRootView.findViewById(R.id.user_dictionary_add_locale); in updateSpinner()
|
/aosp12/packages/apps/Settings/src/com/android/settings/deviceinfo/imei/ |
H A D | ImeiInfoDialogFragment.java | 48 private View mRootView; field in ImeiInfoDialogFragment 77 mRootView = LayoutInflater.from(builder.getContext()) in onCreateDialog() 80 return builder.setView(mRootView).create(); in onCreateDialog() 84 final View view = mRootView.findViewById(viewId); in removeViewFromScreen() 101 final TextView textView = mRootView.findViewById(viewId); in setText()
|
/aosp12/packages/apps/Settings/src/com/android/settings/deviceinfo/simstatus/ |
H A D | SimStatusDialogFragment.java | 45 private View mRootView; field in SimStatusDialogFragment 75 mRootView = LayoutInflater.from(builder.getContext()) in onCreateDialog() 78 return builder.setView(mRootView).create(); in onCreateDialog() 88 final View view = mRootView.findViewById(viewId); in removeSettingFromScreen() 104 final TextView textView = mRootView.findViewById(viewId); in setText()
|
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/statemanager/ |
H A D | StatefulActivity.java | 50 private LauncherRootView mRootView; field in StatefulActivity 70 mRootView = (LauncherRootView) LayoutInflater.from(this).inflate(layoutId, null); in inflateRootView() 71 mRootView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN in inflateRootView() 78 return mRootView; in getRootView() 83 return mRootView.findViewById(id); in findViewById()
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
H A D | QSSecurityFooter.java | 73 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() 129 mRootView.setPaddingRelative(padding, padding, padding, padding); in onConfigurationChanged() 133 (ViewGroup.MarginLayoutParams) mRootView.getLayoutParams(); in onConfigurationChanged() 137 mRootView.setLayoutParams(lp); in onConfigurationChanged() 143 return mRootView; in getView() 147 return mRootView.getVisibility() != View.GONE; in hasFooter() 204 mRootView.setClickable(false); in handleRefreshState() [all …]
|
/aosp12/packages/apps/Messaging/src/com/android/messaging/ui/ |
H A D | SnackBar.java | 190 private final View mRootView; field in SnackBar 207 mRootView = LayoutInflater.from(mContext).inflate(R.layout.snack_bar, in SnackBar() 209 mSnackBarView = mRootView.findViewById(R.id.snack_bar); in SnackBar() 221 mActionTextView = (TextView) mRootView.findViewById(R.id.snack_bar_action); in SnackBar() 222 mMessageView = (TextView) mRootView.findViewById(R.id.snack_bar_message); in SnackBar() 223 mMessageWrapper = (FrameLayout) mRootView.findViewById(R.id.snack_bar_message_wrapper); in SnackBar() 234 return mRootView; in getRootView()
|