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

  /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...]
  /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();
  /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(){
LayoutAnimationTest.java 56 private Button mButton;
67 mButton = (Button)mActivity.findViewById(R.id.button1);
205 mActivityRule.runOnUiThread(mButton::callOnClick);
  /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);
  /development/samples/devbytes/animation/ListViewCellInsertion/src/com/example/android/insertingcells/
InsertingCells.java 44 private Button mButton;
70 mButton = (Button)findViewById(R.id.add_row_button);
80 mButton.setEnabled(false);
106 mButton.setEnabled(false);
111 mButton.setEnabled(true);
  /developers/build/prebuilts/gradle/BasicMediaRouter/Application/src/main/java/com/example/android/basicmediarouter/
MainActivity.java 75 mButton = (Button) findViewById(R.id.button1);
76 mButton.setOnClickListener(new View.OnClickListener() {
170 mButton.setEnabled(false);
192 mButton.setEnabled(true);
213 mButton.setEnabled(false);
281 private Button mButton;
  /developers/samples/android/media/BasicMediaRouter/Application/src/main/java/com/example/android/basicmediarouter/
MainActivity.java 75 mButton = (Button) findViewById(R.id.button1);
76 mButton.setOnClickListener(new View.OnClickListener() {
170 mButton.setEnabled(false);
192 mButton.setEnabled(true);
213 mButton.setEnabled(false);
281 private Button mButton;
  /development/samples/browseable/BasicMediaRouter/src/com.example.android.basicmediarouter/
MainActivity.java 75 mButton = (Button) findViewById(R.id.button1);
76 mButton.setOnClickListener(new View.OnClickListener() {
170 mButton.setEnabled(false);
192 mButton.setEnabled(true);
213 mButton.setEnabled(false);
281 private Button mButton;
  /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...]
  /developers/build/prebuilts/gradle/WearHighBandwidthNetworking/Wearable/src/main/java/com/example/android/wearable/wear/wearhighbandwidthnetworking/
MainActivity.java 68 private View mButton;
101 mButton = findViewById(R.id.button);
102 mButton.setTag(TAG_REQUEST_NETWORK);
287 mButton.setTag(TAG_REQUEST_NETWORK);
300 mButton.setVisibility(View.GONE);
315 mButton.setVisibility(View.VISIBLE);
317 mButton.setTag(TAG_RELEASE_NETWORK);
330 mButton.setVisibility(View.VISIBLE);
332 mButton.setTag(TAG_ADD_WIFI);
  /developers/samples/android/wearable/wear/WearHighBandwidthNetworking/Wearable/src/main/java/com/example/android/wearable/wear/wearhighbandwidthnetworking/
MainActivity.java 69 private View mButton;
102 mButton = findViewById(R.id.button);
103 mButton.setTag(TAG_REQUEST_NETWORK);
272 mButton.setTag(TAG_REQUEST_NETWORK);
285 mButton.setVisibility(View.GONE);
300 mButton.setVisibility(View.VISIBLE);
302 mButton.setTag(TAG_RELEASE_NETWORK);
315 mButton.setVisibility(View.VISIBLE);
317 mButton.setTag(TAG_ADD_WIFI);
  /development/samples/browseable/WearHighBandwidthNetworking/src/com.example.android.wearable.wear.wearhighbandwidthnetworking/
MainActivity.java 68 private View mButton;
101 mButton = findViewById(R.id.button);
102 mButton.setTag(TAG_REQUEST_NETWORK);
287 mButton.setTag(TAG_REQUEST_NETWORK);
300 mButton.setVisibility(View.GONE);
315 mButton.setVisibility(View.VISIBLE);
317 mButton.setTag(TAG_RELEASE_NETWORK);
330 mButton.setVisibility(View.VISIBLE);
332 mButton.setTag(TAG_ADD_WIFI);
  /external/sl4a/InterpreterForAndroid/src/com/googlecode/android_scripting/activity/
Main.java 55 protected Button mButton;
123 mButton = new Button(this);
129 mButton.setLayoutParams(marginParams);
130 mLayout.addView(mButton);
135 mButton.setText("Install");
136 mButton.setOnClickListener(new OnClickListener() {
145 mButton.setText("Uninstall");
146 mButton.setOnClickListener(new OnClickListener() {
  /cts/tests/tests/text/src/android/text/method/cts/
TransformationMethodTest.java 62 private Button mButton;
79 mButton = new Button(mActivity);
80 mButton.setFocusableInTouchMode(true);
85 layout.addView(mButton, new LayoutParams(LayoutParams.MATCH_PARENT,
109 mActivityRule.runOnUiThread(() -> mButton.requestFocus());
  /cts/tests/tests/view/src/android/view/cts/
ViewTreeObserverTest.java 63 private Button mButton;
77 mButton = (Button) mActivity.findViewById(R.id.button1);
169 CtsTouchUtils.emulateTapOnViewCenter(mInstrumentation, mActivityRule, mButton);
171 mViewTreeObserver = mButton.getViewTreeObserver();
177 mActivityRule.runOnUiThread(mButton::requestFocusFromTouch);
279 CtsTouchUtils.emulateTapOnViewCenter(mInstrumentation, mActivityRule, mButton);
281 mViewTreeObserver = mButton.getViewTreeObserver();
286 mActivityRule.runOnUiThread(mButton::requestFocusFromTouch);
293 mActivityRule.runOnUiThread(mButton::requestFocusFromTouch);
GestureDetectorCtsActivity.java 41 private Button mButton;
62 mButton = new Button(this);
73 mViewGroup.addView(mButton);
  /cts/tests/app/src/android/app/cts/
AlertDialog_BuilderTest.java 75 private Button mButton;
177 mButton = mDialog.getButton(DialogInterface.BUTTON_POSITIVE);
178 mButton.performClick();
183 assertEquals(mContext.getText(android.R.string.yes), mButton.getText());
200 mButton = mDialog.getButton(DialogInterface.BUTTON_POSITIVE);
201 mButton.performClick();
205 assertEquals(mContext.getText(android.R.string.yes), mButton.getText());
222 mButton = mDialog.getButton(DialogInterface.BUTTON_NEGATIVE);
223 mButton.performClick();
227 assertEquals(mTitle, mButton.getText())
    [all...]

Completed in 481 milliseconds