Home
last modified time | relevance | path

Searched refs:mLayout (Results 1 – 24 of 24) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
DAspectRatioFrameLayoutTest.java35 private AspectRatioFrameLayout mLayout; field in AspectRatioFrameLayoutTest
44 mLayout = new AspectRatioFrameLayout(mContext); in measure_squareAspectRatio_squeezeWidth()
49 mLayout.measure(widthMeasureSpec, heightMeasureSpec); in measure_squareAspectRatio_squeezeWidth()
51 assertThat(mLayout.getMeasuredWidth()).isEqualTo(50); in measure_squareAspectRatio_squeezeWidth()
52 assertThat(mLayout.getMeasuredHeight()).isEqualTo(50); in measure_squareAspectRatio_squeezeWidth()
57 mLayout = new AspectRatioFrameLayout(mContext); in measure_squareAspectRatio_stretchWidth()
62 mLayout.measure(widthMeasureSpec, heightMeasureSpec); in measure_squareAspectRatio_stretchWidth()
64 assertThat(mLayout.getMeasuredWidth()).isEqualTo(100); in measure_squareAspectRatio_stretchWidth()
65 assertThat(mLayout.getMeasuredHeight()).isEqualTo(100); in measure_squareAspectRatio_stretchWidth()
70 mLayout = new AspectRatioFrameLayout(mContext); in measure_squareAspectRatio_doNotStretch()
[all …]
/packages/apps/Car/SystemUI/src/com/android/systemui/car/window/
DOverlayViewController.java46 private View mLayout; field in OverlayViewController
53 mLayout = null; in OverlayViewController()
84 mLayout = viewStub.inflate(); in inflate()
109 return mLayout != null; in isInflated()
113 if (mLayout == null) { in show()
128 mLayout.setVisibility(View.VISIBLE); in showInternal()
135 if (mLayout == null) { in hide()
150 mLayout.setVisibility(View.GONE); in hideInternal()
160 return mLayout; in getLayout()
170 return mLayout.getVisibility() == View.VISIBLE; in isVisible()
[all …]
/packages/apps/Camera2/src/com/android/camera/app/
DFilmstripBottomPanel.java42 private final ViewGroup mLayout; field in FilmstripBottomPanel
59 mLayout = bottomControlsLayout; in FilmstripBottomPanel()
60 mMiddleFiller = mLayout.findViewById(R.id.filmstrip_bottom_control_middle_filler); in FilmstripBottomPanel()
61 mControlLayout = mLayout.findViewById(R.id.bottom_control_panel); in FilmstripBottomPanel()
92 mLayout.setVisibility(View.VISIBLE); in setVisible()
94 mLayout.setVisibility(View.INVISIBLE); in setVisible()
190 mEditButton = (ImageButton) mLayout.findViewById(R.id.filmstrip_bottom_control_edit); in setupEditButton()
206 mViewButton = (ExternalViewerButton) mLayout.findViewById( in setupViewButton()
219 mDeleteButton = (ImageButton) mLayout.findViewById(R.id.filmstrip_bottom_control_delete); in setupDeleteButton()
231 mShareButton = (ImageButton) mLayout.findViewById(R.id.filmstrip_bottom_control_share); in setupShareButton()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DSlotView.java72 private final Layout mLayout = new Layout(); field in SlotView
101 mRenderer.onSlotSizeChanged(mLayout.mSlotWidth, mLayout.mSlotHeight); in setSlotRenderer()
107 int slotCount = mLayout.mSlotCount; in setCenterIndex()
111 Rect rect = mLayout.getSlotRect(index, mTempRect); in setCenterIndex()
119 Rect rect = mLayout.getSlotRect(index, mTempRect); in makeSlotVisible()
139 position = Utils.clamp(position, 0, mLayout.getScrollLimit()); in setScrollPosition()
145 mLayout.setSlotSpec(spec); in setSlotSpec()
161 (mLayout.getVisibleStart() + mLayout.getVisibleEnd()) / 2; in onLayout()
162 mLayout.setSize(r - l, b - t); in onLayout()
172 if (mLayout.mSlotCount != 0) invalidate(); in startScatteringAnimation()
[all …]
/packages/services/Car/packages/CarManagedProvisioning/src/com/android/managedprovisioning/common/
DCarSetupWizardLayoutHelper.java64 private CarSetupWizardCompatLayout mLayout; field in CarSetupWizardLayoutHelper
71 return mLayout; in getBaseLayout()
113 mLayout = mActivity.findViewById(MAIN_VIEW_RES_ID); in setBaseLayout()
114 mLayout.setBackgroundColor(mActivity.getColor(R.color.background_grey)); in setBaseLayout()
116 ViewStub contentLayoutRes = (ViewStub) mLayout.findViewById(MAIN_VIEW_STUB_RES_ID); in setBaseLayout()
123 ViewStub subContentStub = (ViewStub) mLayout.findViewById(SUB_VIEW_STUB_RES_ID); in setBaseLayout()
127 mLayout.setBackButtonListener(v -> mActivity.onBackPressed()); in setBaseLayout()
130 return mLayout; in setBaseLayout()
185 mLayout.setPrimaryToolbarButtonText(mActivity.getString(resId)); in setupPrimaryToolbarButton()
186 mLayout.setPrimaryToolbarButtonListener(listener); in setupPrimaryToolbarButton()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/
DMockKeyboardSwitcher.java51 private int mLayout = MockConstants.ALPHABET_UNSHIFTED; field in MockKeyboardSwitcher
63 return mLayout; in getLayoutId()
90 mLayout = MockConstants.ALPHABET_UNSHIFTED; in setAlphabetKeyboard()
95 mLayout = MockConstants.ALPHABET_MANUAL_SHIFTED; in setAlphabetManualShiftedKeyboard()
100 mLayout = MockConstants.ALPHABET_AUTOMATIC_SHIFTED; in setAlphabetAutomaticShiftedKeyboard()
105 mLayout = MockConstants.ALPHABET_SHIFT_LOCKED; in setAlphabetShiftLockedKeyboard()
110 mLayout = MockConstants.ALPHABET_SHIFT_LOCK_SHIFTED; in setAlphabetShiftLockShiftedKeyboard()
115 mLayout = MockConstants.SYMBOLS_UNSHIFTED; in setSymbolsKeyboard()
120 mLayout = MockConstants.SYMBOLS_SHIFTED; in setSymbolsShiftedKeyboard()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DDrawerController.java103 private DrawerLayout mLayout; field in DrawerController.RuntimeDrawerController
118 mLayout = layout; in RuntimeDrawerController()
123 mLayout.setDrawerListener(this); in RuntimeDrawerController()
171 mLayout.openDrawer(mDrawer); in setOpen()
176 mLayout.closeDrawer(mDrawer); in setOpen()
186 mLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_CLOSED); in setLocked()
188 mLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_UNLOCKED); in setLocked()
194 return mLayout.isDrawerOpen(mDrawer); in isOpen()
200 == mLayout.getDrawerLockMode(Gravity.START); in isPresent()
/packages/apps/Settings/src/com/android/settings/gestures/
DBackGestureIndicatorView.java35 private ViewGroup mLayout; field in BackGestureIndicatorView
45 mLayout = (ViewGroup) factory.inflate(R.layout.back_gesture_indicator_container, in BackGestureIndicatorView()
48 if (mLayout == null) { in BackGestureIndicatorView()
52 addView(mLayout); in BackGestureIndicatorView()
57 mLeftIndicator = mLayout.findViewById(R.id.indicator_left); in BackGestureIndicatorView()
58 mRightIndicator = mLayout.findViewById(R.id.indicator_right); in BackGestureIndicatorView()
/packages/apps/Settings/src/com/android/settings/notification/zen/
DZenModeScheduleDaysSelection.java38 private final LinearLayout mLayout; field in ZenModeScheduleDaysSelection
42 mLayout = new LinearLayout(mContext); in ZenModeScheduleDaysSelection()
45 mLayout.setPadding(hPad, 0, hPad, 0); in ZenModeScheduleDaysSelection()
46 addView(mLayout); in ZenModeScheduleDaysSelection()
52 mLayout.setOrientation(LinearLayout.VERTICAL); in ZenModeScheduleDaysSelection()
70 mLayout.addView(checkBox); in ZenModeScheduleDaysSelection()
/packages/apps/Settings/tests/robotests/src/com/android/settings/biometrics/fingerprint/
DSetupFingerprintEnrollFinishTest.java53 private PartnerCustomizationLayout mLayout; field in SetupFingerprintEnrollFinishTest
59 mLayout = mActivity.findViewById(R.id.setup_wizard_layout); in setUp()
77 mLayout.getMixin(FooterBarMixin.class).getSecondaryButtonView().performClick(); in clickAddAnother_shouldLaunchEnrolling()
92 mLayout.getMixin(FooterBarMixin.class).getSecondaryButtonView().performClick(); in clickAddAnother_shouldPropagateResults()
103 mLayout.getMixin(FooterBarMixin.class).getPrimaryButtonView().performClick(); in clickNext_shouldFinish()
133 mLayout.getMixin(FooterBarMixin.class).getPrimaryButtonView().performClick(); in clickNext_fingerprintCountIsNotOne_fingerprintSuggestionActivityDisabled()
144 mLayout.getMixin(FooterBarMixin.class).getPrimaryButtonView().performClick(); in clickNext_fingerprintCountIsOne_fngerprintSuggestionActivityEnabled()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/wm/activity/window/
DActivityWindowControllerImpl.java64 private ViewGroup mLayout; field in ActivityWindowControllerImpl
111 mLayout = (ViewGroup) LayoutInflater.from(mContext) in inflate()
131 mWindowManager.addView(mLayout, mWmLayoutParams); in inflate()
168 mLayout.setOnApplyWindowInsetsListener( in taskViewControllerReady()
173 mLayout.setPadding( in taskViewControllerReady()
184 mToolbarController.init(mLayout); in taskViewControllerReady()
197 ViewGroup layout = (ViewGroup) mLayout.findViewById(R.id.activity_area); in taskViewControllerReady()
/packages/apps/Settings/src/com/android/settings/inputmethod/
DNewKeyboardLayoutPickerController.java61 private String mLayout; field in NewKeyboardLayoutPickerController
84 mLayout = getSelectedLayoutLabel(); in initialize()
85 mFinalSelectedLayout = mLayout; in initialize()
105 if (mLayout != null && !mLayout.equals(mFinalSelectedLayout)) { in onStop()
106 String change = "From:" + mLayout + ", to:" + mFinalSelectedLayout; in onStop()
181 if (mLayout.equals(layout.getLabel())) { in createPreferenceHierarchy()
DNewKeyboardSettingsUtils.java96 String mLayout; field in NewKeyboardSettingsUtils.KeyboardInfo
108 mLayout = layout; in KeyboardInfo()
123 return mLayout; in getLayout()
129 mLayout); in getLayoutSummaryText()
132 R.string.user_selected_keyboard_layout_label, mLayout); in getLayoutSummaryText()
134 return mLayout; in getLayoutSummaryText()
/packages/apps/Settings/tests/robotests/src/com/android/settings/biometrics/activeunlock/
DActiveUnlockRequireBiometricSetupTest.java48 private PartnerCustomizationLayout mLayout; field in ActiveUnlockRequireBiometricSetupTest
54 mLayout = mActivity.findViewById(R.id.setup_wizard_layout); in setUp()
66 mLayout.getMixin(FooterBarMixin.class).getSecondaryButtonView().performClick(); in clickCancel_shouldFinish()
76 mLayout.getMixin(FooterBarMixin.class).getPrimaryButtonView().performClick(); in clickNext_shouldLaunchBiometricSetup()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/tests/
DLayoutTestsBase.java42 private LayoutBase mLayout; field in LayoutTestsBase
51 mLayout = getLayout(); in setUp()
52 mSubtype = getSubtype(mLayout.getLocale(), mLayout.getName()); in setUp()
135 final ExpectedKey[][] expectedKeyboard = mLayout.getLayout(isPhone(), elementId); in doKeyboardTests()
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
DMultiLineTexture.java31 private final Layout mLayout; field in MultiLineTexture
35 mLayout = layout; in MultiLineTexture()
50 mLayout.draw(canvas); in onDraw()
/packages/apps/Settings/src/com/android/settings/password/
DChooseLockPassword.java255 private GlifLayout mLayout; field in ChooseLockPassword.ChooseLockPasswordFragment
514 mLayout = (GlifLayout) view; in onViewCreated()
521 final FooterBarMixin mixin = mLayout.getMixin(FooterBarMixin.class); in onViewCreated()
543 mLayout.setIcon(getActivity().getDrawable(R.drawable.ic_lock)); in onViewCreated()
634 mLayout.setHeaderText(title); in onViewCreated()
758 mLayout.announceForAccessibility(mLayout.getHeaderText()); in updateStage()
1030 if (!TextUtils.isEmpty(mLayout.getHeaderText()) in setHeaderText()
1031 && mLayout.getHeaderText().toString().equals(text)) { in setHeaderText()
1034 mLayout.setHeaderText(text); in setHeaderText()
1115 if (mLayout != null) { in onChosenLockSaveFinished()
[all …]
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DSectionedAlbumDataAdapter.java39 private final int mLayout; field in SectionedAlbumDataAdapter
45 mLayout = headerLayout; in SectionedAlbumDataAdapter()
182 item = mInflater.inflate(mLayout, parent, false); in getView()
DAlbumDataAdapter.java44 private final int mLayout; field in AlbumDataAdapter
52 mLayout = resource; in AlbumDataAdapter()
85 item = mInflater.inflate(mLayout, parent, false); in getView()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/text/
DSubtitleView.java71 private StaticLayout mLayout; field in SubtitleView
210 final StaticLayout layout = this.mLayout; in onMeasure()
252 mLayout = in computeMeasurements()
260 final StaticLayout layout = this.mLayout; in onDraw()
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DMessage.java86 protected int mLayout; field in Message
113 mLayout = 0; in reset()
129 return mLayout; in getLayout()
287 mLayout = InflateMessageDocumentHolder.LAYOUT_CROSS_PROFILE_ERROR; in updateToQuietModeErrorMessage()
317 mLayout = InflateMessageDocumentHolder.LAYOUT_CROSS_PROFILE_ERROR; in updateToCrossProfileNoPermissionErrorMessage()
DDirectoryFragment.java194 private GridLayoutManager mLayout; field in DirectoryFragment
526 mLayout = new GridLayoutManager(getContext(), mColumnCount) { in onActivityCreated()
536 mLayout.setSpanSizeLookup(lookup); in onActivityCreated()
538 mRecView.setLayoutManager(mLayout); in onActivityCreated()
803 if (mLayout != null) { in updateLayout()
804 mLayout.setSpanCount(mColumnCount); in updateLayout()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastAlertDialog.java384 public View mLayout; field in CellBroadcastAlertDialog.PulsationHandler
399 mLayout = layout; in start()
400 Drawable bg = mLayout.getBackground(); in start()
455 if (mLayout != null) { in onPulsationStopped()
456 mLayout.setBackgroundColor(mBackgroundColor); in onPulsationStopped()
458 mLayout = null; in onPulsationStopped()
473 if (mLayout == null) { in handleMessage()
479 mLayout.setBackgroundColor(mIsPulsationOn ? mHighlightColor in handleMessage()
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastAlertDialogTest.java500 activity.mPulsationHandler.mLayout = mMockLinearLayout; in testPulsationHandlerStart()
519 activity.mPulsationHandler.mLayout = mMockLinearLayout; in testPulsationRestartOnNewIntent()
544 activity.mPulsationHandler.mLayout = mMockLinearLayout; in testPulsationRestartOnNewIntent()
564 activity.mPulsationHandler.mLayout = mMockLinearLayout; in testPulsationHandlerHandleMessageAndStop()