/frameworks/base/core/tests/coretests/src/android/view/menu/ |
MenuWith1Item.java | 24 private Button mButton; 34 return mButton; 41 mButton = new Button(this); 42 setContentView(mButton);
|
MenuLayout.java | 29 private Button mButton; 54 return mButton; 61 mButton = new Button(this); 62 setContentView(mButton);
|
/frameworks/base/core/tests/coretests/src/android/widget/touchmode/ |
TouchModeFocusableTest.java | 35 private Button mButton; 47 mButton = getActivity().getButton(); 52 assertFalse("should not be in touch mode to start off", mButton.isInTouchMode()); 59 assertInTouchModeAfterTap(this, mButton); 60 assertTrue("should be in touch mode", mButton.isInTouchMode()); 68 assertTrue("button should have focus", mButton.isFocused()); 71 assertTrue("clicking edit text should have entered touch mode", mButton.isInTouchMode()); 83 mButton.isFocused()); 85 assertInTouchModeAfterClick(this, mButton); 86 assertTrue("should be in touch mode", mButton.isInTouchMode()) [all...] |
StartInTouchWithViewInFocusTest.java | 33 private Button mButton; 44 mButton = getActivity().getButton(); 57 assertTrue("should have given focus to next view", mButton.isFocused());
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
ListSetSelection.java | 31 private Button mButton; 45 mButton = new Button(this); 46 mButton.setText("setSelection(0)"); 47 mButton.setOnClickListener(new View.OnClickListener() { 53 getListViewContainer().addView(mButton, new LinearLayout.LayoutParams( 60 return mButton;
|
/frameworks/base/core/java/android/app/ |
MediaRouteActionProvider.java | 53 private MediaRouteButton mButton; 94 if (mButton != null) { 95 mButton.setRouteTypes(mRouteTypes); 102 if (mButton != null) { 103 mButton.setExtendedSettingsClickListener(listener); 115 if (mButton != null) { 121 mButton = new MediaRouteButton(mContext); 122 mButton.setCheatSheetEnabled(true); 123 mButton.setRouteTypes(mRouteTypes); 124 mButton.setExtendedSettingsClickListener(mExtendedSettingsListener) [all...] |
/development/samples/devbytes/animation/CurvedMotion/src/com/example/android/curvedmotion/ |
CurvedMotion.java | 43 Button mButton; 50 mButton = (Button) findViewById(R.id.button); 51 mButton.setOnClickListener(new View.OnClickListener() { 56 final int oldLeft = mButton.getLeft(); 57 final int oldTop = mButton.getTop(); 63 mButton.getViewTreeObserver().addOnPreDrawListener( 66 mButton.getViewTreeObserver().removeOnPreDrawListener(this); 69 int left = mButton.getLeft(); 70 int top = mButton.getTop(); 96 LayoutParams params = (LayoutParams) mButton.getLayoutParams() [all...] |
/cts/tests/tests/view/src/android/view/cts/ |
TouchDelegateTest.java | 38 private Button mButton; 56 mButton = new Button(mActivity); 60 mActivity.addContentView(mButton, new LinearLayout.LayoutParams(WRAP_CONTENT, 73 int right = mButton.getRight(); 74 int bottom = mButton.getBottom(); 75 mXInside = (mButton.getLeft() + right) / 3; 76 mYInside = (mButton.getTop() + bottom) / 3; 79 mButton.getHitRect(mRect); 86 MockTouchDelegate touchDelegate = new MockTouchDelegate(mRect, mButton);
|
/frameworks/base/core/tests/coretests/src/android/widget/focus/ |
ListWithFooterViewAndNewLabelsTest.java | 30 private Button mButton; 48 mButton = (Button) a.findViewById(R.id.button); 55 assertNotNull(mButton); 59 assertTrue(mButton.hasFocus());
|
GoneParentFocusedChild.java | 34 private Button mButton; 52 return mButton; 71 mButton = new Button(this); 72 mButton.setLayoutParams(new LinearLayout.LayoutParams( 77 mGoneGroup.addView(mButton); 81 mButton.requestFocus();
|
/frameworks/base/core/tests/coretests/src/android/widget/layout/linear/ |
BaselineAlignmentSpinnerButton.java | 30 private View mButton; 42 mButton = activity.findViewById(R.id.reminder_remove); 48 assertNotNull(mButton); 53 ViewAsserts.assertBaselineAligned(mSpinner, mButton);
|
LLEditTextThenButton.java | 29 private Button mButton; 41 mButton = (Button) findViewById(R.id.button); 53 return mButton;
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/ |
ButtonItem.java | 44 private Button mButton; 80 mButton = null; 125 if (mButton == null) { 130 mButton = new Button(context); 131 mButton.setOnClickListener(this); 133 if (mButton.getParent() instanceof ViewGroup) { 136 ((ViewGroup) mButton.getParent()).removeView(mButton); 139 mButton.setEnabled(mEnabled); 140 mButton.setText(mText) [all...] |
/frameworks/support/v7/mediarouter/src/android/support/v7/app/ |
MediaRouteActionProvider.java | 136 private MediaRouteButton mButton; 189 if (mButton != null) { 190 mButton.setRouteSelector(selector); 220 if (mButton != null) { 221 mButton.setDialogFactory(factory); 231 return mButton; 247 if (mButton != null) { 253 mButton = onCreateMediaRouteButton(); 254 mButton.setCheatSheetEnabled(true); 255 mButton.setRouteSelector(mSelector) [all...] |
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/ |
UniqueIds.java | 62 Button mButton; 66 mButton = button; 70 if (mButton.getLeft() == 0) { 71 mButton.offsetLeftAndRight(500); 73 int width = mButton.getWidth(); 74 mButton.setLeft(0); 75 mButton.setRight(width);
|
/development/samples/ApiDemos/tests/src/com/example/android/apis/app/ |
ForwardingTest.java | 51 private Button mButton; 75 mButton = (Button) getActivity().findViewById(R.id.go); 78 assertNotNull(mButton); 88 mButton = (Button) activity.findViewById(R.id.go); 92 mButton.performClick();
|
/device/google/accessory/demokit/app/src/com/google/android/DemoKit/ |
RelayController.java | 19 private ToggleButton mButton; 40 mButton = (ToggleButton) targetView.getChildAt(1); 41 mButton.setOnCheckedChangeListener(this); 46 mButton.setBackgroundDrawable(mOnBackground); 48 mButton.setBackgroundDrawable(mOffBackground);
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
SelectionMenu.java | 32 private final Button mButton; 37 mButton = button; 38 mPopupList = new PopupList(context, mButton); 42 mButton.setOnClickListener(this); 59 mButton.setText(title);
|
/cts/tests/tests/animation/src/android/animation/cts/ |
LayoutAnimationActivity.java | 28 Button mButton; 34 mButton = (Button) findViewById(R.id.button1); 36 mButton.setOnClickListener(new OnClickListener(){
|
/pdk/apps/HelloPDK/src/com/example/android/helloPDK/jni/ |
HelloJni.java | 33 private Button mButton; 41 mButton = (Button)findViewById(R.id.button_hellojni); 42 mButton.setOnClickListener(new View.OnClickListener() {
|
/development/samples/JetBoy/src/com/example/android/jetboy/ |
JetBoy.java | 41 private Button mButton; 67 mButton = (Button)findViewById(R.id.Button01); 68 mButton.setOnClickListener(this); 93 mButton.setText("PLAY!"); 102 mButton.setVisibility(View.INVISIBLE); 113 mButton.setText("PLAY!"); 118 mButton.setText("PLAY!"); 119 mButton.setVisibility(View.VISIBLE);
|
/packages/apps/Calendar/src/com/android/calendar/ |
ExpandableTextView.java | 31 ImageButton mButton; // Button to expand/collapse 62 if (mButton.getVisibility() != View.VISIBLE) { 67 mButton.setImageDrawable(mCollapsed ? mExpandDrawable : mCollapseDrawable); 82 mButton.setVisibility(View.GONE); 98 mButton.setVisibility(View.VISIBLE); 107 mButton = (ImageButton) findViewById(R.id.expand_collapse); 108 mButton.setOnClickListener(this);
|
/packages/apps/TV/src/com/android/tv/menu/ |
PlayControlsButton.java | 33 private final ImageView mButton; 53 mButton = (ImageView) findViewById(R.id.button); 69 mButton.setOnClickListener(new OnClickListener() { 89 mButton.getDrawable().jumpToCurrentState(); 95 mButton.setEnabled(enabled);
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
ActionPresenterSelector.java | 48 Button mButton; 53 mButton = (Button) view.findViewById(R.id.lb_action_button); 71 vh.mButton.setText(action.getLabel1()); 107 vh.mButton.setCompoundDrawablesWithIntrinsicBounds(null, null, icon, null); 109 vh.mButton.setCompoundDrawablesWithIntrinsicBounds(icon, null, null, null); 115 vh.mButton.setText(line2); 117 vh.mButton.setText(line1); 119 vh.mButton.setText(line1 + "\n" + line2); 126 vh.mButton.setCompoundDrawablesWithIntrinsicBounds(null, null, null, null);
|
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/ |
PopupMenuActivity.java | 38 private Button mButton; 54 mButton = (Button) mContainer.findViewById(R.id.test_button); 56 mButton.setOnClickListener(new View.OnClickListener() { 59 mPopupMenu = new PopupMenu(mContainer.getContext(), mButton);
|