/frameworks/base/core/java/android/app/ |
D | MediaRouteActionProvider.java | 53 private MediaRouteButton mButton; field in MediaRouteActionProvider 94 if (mButton != null) { in setRouteTypes() 95 mButton.setRouteTypes(mRouteTypes); in setRouteTypes() 102 if (mButton != null) { in setExtendedSettingsClickListener() 103 mButton.setExtendedSettingsClickListener(listener); in setExtendedSettingsClickListener() 115 if (mButton != null) { in onCreateActionView() 121 mButton = new MediaRouteButton(mContext); in onCreateActionView() 122 mButton.setCheatSheetEnabled(true); in onCreateActionView() 123 mButton.setRouteTypes(mRouteTypes); in onCreateActionView() 124 mButton.setExtendedSettingsClickListener(mExtendedSettingsListener); in onCreateActionView() [all …]
|
/frameworks/support/v7/mediarouter/src/android/support/v7/app/ |
D | MediaRouteActionProvider.java | 136 private MediaRouteButton mButton; field in MediaRouteActionProvider 189 if (mButton != null) { in setRouteSelector() 190 mButton.setRouteSelector(selector); in setRouteSelector() 220 if (mButton != null) { in setDialogFactory() 221 mButton.setDialogFactory(factory); in setDialogFactory() 231 return mButton; in getMediaRouteButton() 247 if (mButton != null) { in onCreateActionView() 253 mButton = onCreateMediaRouteButton(); in onCreateActionView() 254 mButton.setCheatSheetEnabled(true); in onCreateActionView() 255 mButton.setRouteSelector(mSelector); in onCreateActionView() [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/touchmode/ |
D | TouchModeFocusableTest.java | 35 private Button mButton; field in TouchModeFocusableTest 47 mButton = getActivity().getButton(); in setUp() 52 assertFalse("should not be in touch mode to start off", mButton.isInTouchMode()); in testPreconditions() 59 assertInTouchModeAfterTap(this, mButton); in testClickButtonEditTextKeepsFocus() 60 assertTrue("should be in touch mode", mButton.isInTouchMode()); in testClickButtonEditTextKeepsFocus() 68 assertTrue("button should have focus", mButton.isFocused()); in testClickEditTextGivesItFocus() 71 assertTrue("clicking edit text should have entered touch mode", mButton.isInTouchMode()); in testClickEditTextGivesItFocus() 83 mButton.isFocused()); in testEnterTouchModeGivesFocusBackToFocusableInTouchMode() 85 assertInTouchModeAfterClick(this, mButton); in testEnterTouchModeGivesFocusBackToFocusableInTouchMode() 86 assertTrue("should be in touch mode", mButton.isInTouchMode()); in testEnterTouchModeGivesFocusBackToFocusableInTouchMode()
|
D | StartInTouchWithViewInFocusTest.java | 33 private Button mButton; field in StartInTouchWithViewInFocusTest 44 mButton = getActivity().getButton(); in setUp() 57 assertTrue("should have given focus to next view", mButton.isFocused()); in DISABLE_testKeyDownLeavesTouchModeAndGoesToNextView()
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/ |
D | ButtonItem.java | 44 private Button mButton; field in ButtonItem 80 mButton = null; in setTheme() 118 if (mButton == null) { in createButton() 123 mButton = new Button(context); in createButton() 124 mButton.setOnClickListener(this); in createButton() 126 mButton.setEnabled(mEnabled); in createButton() 127 mButton.setText(mText); in createButton() 128 return mButton; in createButton()
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
D | ListSetSelection.java | 31 private Button mButton; field in ListSetSelection 45 mButton = new Button(this); in onCreate() 46 mButton.setText("setSelection(0)"); in onCreate() 47 mButton.setOnClickListener(new View.OnClickListener() { in onCreate() 53 getListViewContainer().addView(mButton, new LinearLayout.LayoutParams( in onCreate() 60 return mButton; in getButton()
|
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/ |
D | UniqueIds.java | 62 Button mButton; field in UniqueIds.ToggleScene 66 mButton = button; in ToggleScene() 70 if (mButton.getLeft() == 0) { in ToggleScene() 71 mButton.offsetLeftAndRight(500); in ToggleScene() 73 int width = mButton.getWidth(); in ToggleScene() 74 mButton.setLeft(0); in ToggleScene() 75 mButton.setRight(width); in ToggleScene()
|
D | CrossfadeMultiple.java | 41 Button mButton; field in CrossfadeMultiple 55 mButton = (Button) findViewById(R.id.button); in onCreate() 101 mButton.setText("A"); in sendMessage() 107 mButton.setText("B"); in sendMessage() 113 mButton.setText("C"); in sendMessage() 118 mButton.setLayoutParams(params); in sendMessage()
|
/frameworks/base/core/tests/coretests/src/android/widget/focus/ |
D | GoneParentFocusedChild.java | 34 private Button mButton; field in GoneParentFocusedChild 52 return mButton; in getButton() 71 mButton = new Button(this); in onCreate() 72 mButton.setLayoutParams(new LinearLayout.LayoutParams( in onCreate() 77 mGoneGroup.addView(mButton); in onCreate() 81 mButton.requestFocus(); in onCreate()
|
D | ListWithFooterViewAndNewLabelsTest.java | 30 private Button mButton; field in ListWithFooterViewAndNewLabelsTest 48 mButton = (Button) a.findViewById(R.id.button); in setUp() 55 assertNotNull(mButton); in FAILING_testPreconditions() 59 assertTrue(mButton.hasFocus()); in FAILING_testPreconditions()
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
D | ActionPresenterSelector.java | 48 Button mButton; field in ActionPresenterSelector.ActionViewHolder 53 mButton = (Button) view.findViewById(R.id.lb_action_button); in ActionViewHolder() 71 vh.mButton.setText(action.getLabel1()); in onBindViewHolder() 107 vh.mButton.setCompoundDrawablesWithIntrinsicBounds(null, null, icon, null); in onBindViewHolder() 109 vh.mButton.setCompoundDrawablesWithIntrinsicBounds(icon, null, null, null); in onBindViewHolder() 115 vh.mButton.setText(line2); in onBindViewHolder() 117 vh.mButton.setText(line1); in onBindViewHolder() 119 vh.mButton.setText(line1 + "\n" + line2); in onBindViewHolder() 126 vh.mButton.setCompoundDrawablesWithIntrinsicBounds(null, null, null, null); in onUnbindViewHolder()
|
/frameworks/base/core/tests/coretests/src/android/view/menu/ |
D | MenuWith1Item.java | 24 private Button mButton; field in MenuWith1Item 34 return mButton; in getButton() 41 mButton = new Button(this); in onCreate() 42 setContentView(mButton); in onCreate()
|
D | MenuLayout.java | 29 private Button mButton; field in MenuLayout 54 return mButton; in getButton() 61 mButton = new Button(this); in onCreate() 62 setContentView(mButton); in onCreate()
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/ |
D | ErrorSupportFragment.java | 44 private Button mButton; field in ErrorSupportFragment 178 mButton = (Button) root.findViewById(R.id.button); in onCreateView() 188 setTopMargin(mButton, underMessageBaselineMargin - metrics.descent); in onCreateView() 221 if (mButton != null) { in updateButton() 222 mButton.setText(mButtonText); in updateButton() 223 mButton.setOnClickListener(mButtonClickListener); in updateButton() 224 mButton.setVisibility(TextUtils.isEmpty(mButtonText) ? View.GONE : View.VISIBLE); in updateButton() 225 mButton.requestFocus(); in updateButton()
|
D | ErrorFragment.java | 42 private Button mButton; field in ErrorFragment 176 mButton = (Button) root.findViewById(R.id.button); in onCreateView() 186 setTopMargin(mButton, underMessageBaselineMargin - metrics.descent); in onCreateView() 219 if (mButton != null) { in updateButton() 220 mButton.setText(mButtonText); in updateButton() 221 mButton.setOnClickListener(mButtonClickListener); in updateButton() 222 mButton.setVisibility(TextUtils.isEmpty(mButtonText) ? View.GONE : View.VISIBLE); in updateButton() 223 mButton.requestFocus(); in updateButton()
|
/frameworks/base/core/tests/coretests/src/android/widget/layout/linear/ |
D | BaselineAlignmentSpinnerButton.java | 30 private View mButton; field in BaselineAlignmentSpinnerButton 42 mButton = activity.findViewById(R.id.reminder_remove); in setUp() 48 assertNotNull(mButton); in testSetUpConditions() 53 ViewAsserts.assertBaselineAligned(mSpinner, mButton); in testChildrenAligned()
|
D | LLEditTextThenButton.java | 29 private Button mButton; field in LLEditTextThenButton 41 mButton = (Button) findViewById(R.id.button); in onCreate() 53 return mButton; in getButton()
|
/frameworks/base/core/tests/coretests/src/android/widget/espresso/ |
D | MouseUiController.java | 42 private final int mButton; field in MouseUiController 56 mButton = button; in MouseUiController() 69 event.setButtonState(mButton); in injectMotionEvent()
|
D | MouseClickAction.java | 38 private final int mButton; field in MouseClickAction 103 mButton = button; in MouseClickAction() 118 mViewClickAction.perform(new MouseUiController(uiController, mButton), view); in perform()
|
/frameworks/support/v7/appcompat/tests/src/android/support/v7/widget/ |
D | ListPopupWindowTest.java | 59 private Button mButton; field in ListPopupWindowTest 88 mButton = (Button) mContainer.findViewById(R.id.test_button); in setUp() 128 assertEquals("Popup window anchor", mButton, mListPopupWindow.getAnchorView()); in testAnchoring() 136 mButton.getLocationOnScreen(anchorOnScreenXY); in testAnchoring() 141 assertEquals("Anchoring Y", anchorOnScreenXY[1] + popupInWindowXY[1] + mButton.getHeight(), in testAnchoring() 487 mListPopupWindow.setAnchorView(mButton); in configure() 517 mButton.setOnClickListener(new View.OnClickListener() { in wireToActionButton()
|
D | PopupMenuTest.java | 73 private Button mButton; field in PopupMenuTest 89 mButton = (Button) mContainer.findViewById(R.id.test_button); in setUp() 263 mButton.getLocationOnScreen(anchorOnScreenXY); 268 assertEquals("Anchoring Y", anchorOnScreenXY[1] + popupInWindowXY[1] + mButton.getHeight(), 557 mPopupMenu = new PopupMenu(mContainer.getContext(), mButton); 579 mButton.setOnClickListener(new View.OnClickListener() {
|
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/ |
D | AlertDialogCursorTest.java | 59 private Button mButton; field in AlertDialogCursorTest 99 mButton = (Button) activity.findViewById(R.id.test_button); in setUp() 141 mButton.setOnClickListener(new View.OnClickListener() { in wireBuilder()
|
D | AlertDialogTest.java | 81 private Button mButton; field in AlertDialogTest 92 mButton = (Button) activity.findViewById(R.id.test_button); in setUp() 96 mButton.setOnClickListener(new View.OnClickListener() { in wireBuilder() 242 mButton.setOnClickListener(new View.OnClickListener() { in testCustomTitlePostCreation() 326 mButton.setOnClickListener(new View.OnClickListener() { in testCustomViewPostCreation() 1140 mButton.setOnClickListener(new View.OnClickListener() { in verifyDialogButtonsPostCreation() 1203 mButton.setOnClickListener(new View.OnClickListener() { in verifyDialogButtonsPostCreationMessage()
|