/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 | 39 private Button mButton; 57 mButton = new Button(mActivity); 61 mActivity.addContentView(mButton, new LinearLayout.LayoutParams(WRAP_CONTENT, 74 int right = mButton.getRight(); 75 int bottom = mButton.getBottom(); 76 mXInside = (mButton.getLeft() + right) / 3; 77 mYInside = (mButton.getTop() + bottom) / 3; 80 mButton.getHitRect(mRect); 87 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/support/v7/mediarouter/src/android/support/v7/app/ |
MediaRouteActionProvider.java | 134 private MediaRouteButton mButton; 186 if (mButton != null) { 187 mButton.setRouteSelector(selector); 216 if (mButton != null) { 217 mButton.setDialogFactory(factory); 226 return mButton; 242 if (mButton != null) { 248 mButton = onCreateMediaRouteButton(); 249 mButton.setCheatSheetEnabled(true); 250 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/Music/src/com/android/music/ |
DeleteItems.java | 31 private Button mButton; 45 mButton = (Button) findViewById(R.id.delete); 46 mButton.setOnClickListener(mButtonClicked);
|
/pdk/apps/HelloPDK/src/com/example/android/helloPDK/telephony/ |
DialerActivity.java | 31 private Button mButton; 37 mButton = (Button)findViewById(R.id.button_dialer); 38 mButton.setOnClickListener(new View.OnClickListener() {
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/editors/ |
EditorChanSat.java | 47 private SwapButton mButton; 99 mButton = (SwapButton) accessoryViewList.findViewById(R.id.applyEffect); 100 mButton.setText(mContext.getString(R.string.editor_chan_sat_main)); 103 final PopupMenu popupMenu = new PopupMenu(mImageShow.getActivity(), mButton); 115 mButton.setOnClickListener(new OnClickListener() { 122 mButton.setListener(this); 128 mButton.setText(mContext.getString(R.string.saturation)); 242 if (mButton == null) { 245 mButton.setListener(null); 246 mButton.setOnClickListener(null) [all...] |
EditorVignette.java | 57 private SwapButton mButton; 157 mButton = (SwapButton) accessoryViewList.findViewById(R.id.applyEffect); 158 mButton.setText(mContext.getString(R.string.vignette_main)); 161 final PopupMenu popupMenu = new PopupMenu(mImageShow.getActivity(), mButton); 173 mButton.setOnClickListener(new View.OnClickListener() { 180 mButton.setListener(this); 186 mButton.setText(mContext.getString(R.string.vignette_main)); 250 if (mButton == null) { 253 mButton.setListener(null); 254 mButton.setOnClickListener(null) [all...] |