HomeSort by relevance Sort by last modified time
    Searched refs:mButton (Results 1 - 22 of 22) sorted by null

  /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/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;
  /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();
  /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/Camera/src/com/android/camera/
ThumbnailController.java 54 private final ImageView mButton;
64 mButton = button;
138 mButton.setImageDrawable(null);
155 LayoutParams param = mButton.getLayoutParams();
157 - mButton.getPaddingLeft() - mButton.getPaddingRight();
159 - mButton.getPaddingTop() - mButton.getPaddingBottom();
175 mButton.setImageDrawable(drawable);
  /packages/apps/Music/src/com/android/music/
DeleteItems.java 31 private Button mButton;
45 mButton = (Button) findViewById(R.id.delete);
46 mButton.setOnClickListener(mButtonClicked);
  /cts/tests/tests/view/src/android/view/cts/
TouchDelegateTest.java 50 private Button mButton;
81 mButton = new Button(mActivity);
85 mActivity.addContentView(mButton, new LinearLayout.LayoutParams(WRAP_CONTENT,
98 int right = mButton.getRight();
99 int bottom = mButton.getBottom();
100 mXInside = (mButton.getLeft() + right) / 3;
101 mYInside = (mButton.getTop() + bottom) / 3;
107 mButton.getHitRect(mRect);
111 mTouchDelegate = new TouchDelegate(mRect, mButton);
152 MockTouchDelegate touchDelegate = new MockTouchDelegate(mRect, mButton);
    [all...]
  /development/samples/Home/src/com/example/android/home/
ApplicationsStackLayout.java 65 private View mButton;
113 mButton = mInflater.inflate(R.layout.all_applications_button, this, false);
114 addView(mButton);
182 LayoutParams layoutParams = mButton.getLayoutParams();
185 mButton.measure(widthSpec, heightSpec);
198 int childWidth = mButton.getMeasuredWidth();
199 int childHeight = mButton.getMeasuredHeight();
202 mButton.layout(childLeft, childTop, childLeft + childWidth, childTop + childHeight);
221 int childWidth = mButton.getMeasuredWidth();
222 int childHeight = mButton.getMeasuredHeight()
    [all...]
  /cts/tests/src/android/view/cts/
GestureDetectorStubActivity.java 47 private Button mButton;
60 mButton = new Button(this);
71 mViewGroup.addView(mButton);
  /sdk/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/widgets/
ResolutionChooserDialog.java 47 private Button mButton;
80 mButton = getButton(IDialogConstants.OK_ID);
81 mButton.setEnabled(false);
102 mButton.setEnabled(mScreenSizeIndex != -1);
  /packages/apps/Phone/src/com/android/phone/
EditFdnContactScreen.java 74 private Button mButton;
240 mButton = (Button) findViewById(R.id.button);
241 if (mButton != null) {
242 mButton.setOnClickListener(mClicked);
343 mButton.setClickable(!mDataBusy);
387 mButton.requestFocus();
388 } else if (v == mButton) {
ChangeIccPinScreen.java 73 private Button mButton;
119 mButton = (Button) findViewById(R.id.button);
120 mButton.setOnClickListener(mClicked);
176 mButton.requestFocus();
177 } else if (v == mButton) {
  /cts/tests/tests/app/src/android/app/cts/
AlertDialog_BuilderTest.java 59 private Button mButton;
115 mButton = null;
182 mButton = mDialog.getButton(DialogInterface.BUTTON_POSITIVE);
183 mButton.performClick();
188 assertEquals(mContext.getText(android.R.string.yes), mButton.getText());
203 mButton = mDialog.getButton(DialogInterface.BUTTON_POSITIVE);
204 mButton.performClick();
208 assertEquals(mContext.getText(android.R.string.yes), mButton.getText());
223 mButton = mDialog.getButton(DialogInterface.BUTTON_NEGATIVE);
224 mButton.performClick()
    [all...]
  /packages/apps/Browser/src/com/android/browser/
AddBookmarkPage.java 47 private TextView mButton;
103 mButton = (TextView) findViewById(R.id.OK);
104 mButton.setOnClickListener(accept);
110 mButton.requestFocus();
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/voice/
RecognitionView.java 62 private View mButton;
129 mButton = mView.findViewById(R.id.button);
130 mButton.setOnClickListener(clickListener);

Completed in 354 milliseconds