/cts/tests/autofillservice/src/android/autofillservice/cts/ |
OneTimeCompoundButtonListener.java | 35 private final CompoundButton button; field in class:OneTimeCompoundButtonListener 38 OneTimeCompoundButtonListener(String name, CompoundButton button, 41 this.button = button; 54 final boolean actual = button.isChecked();
|
/cts/tests/tests/preference2/src/android/preference2/cts/ |
PreferenceWithHeaders.java | 23 import android.widget.Button; 42 // Add a button to the header list. 44 Button button = new Button(this); local 45 button.setText("Some action"); 46 setListFooter(button);
|
/development/samples/Alarm/src/com/example/android/newalarm/ |
AlarmActivity.java | 27 import android.widget.Button; 33 * When the user clicks the "Start Alarm Service" button, it triggers a repeating countdown 38 * When the user clicks the "Stop Alarm Service" button, it stops the countdown timer. 73 // Finds the button that starts the repeating countdown timer 74 Button button = (Button)findViewById(R.id.start_alarm); local 76 // Sets the listener for the start button 77 button.setOnClickListener(mStartAlarmListener); 79 // Finds the button that stops countdown time [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
ActivityRecreate.java | 25 import android.widget.Button; 54 // Watch for button clicks. 55 Button button = (Button)findViewById(R.id.recreate); local 56 button.setOnClickListener(mRecreateListener);
|
AlarmController.java | 31 import android.widget.Button; 77 // Watch for button clicks. 78 Button button = (Button)findViewById(R.id.one_shot); local 79 button.setOnClickListener(mOneShotListener); 80 button = (Button)findViewById(R.id.one_shot_while_idle); 81 button.setOnClickListener(mOneShotListener); 82 button = (Button)findViewById(R.id.start_repeating) [all...] |
AlarmService.java | 31 import android.widget.Button; 54 // Watch for button clicks. 55 Button button = (Button)findViewById(R.id.start_alarm); local 56 button.setOnClickListener(mStartAlarmListener); 57 button = (Button)findViewById(R.id.stop_alarm); 58 button.setOnClickListener(mStopAlarmListener);
|
FinishAffinity.java | 27 import android.widget.Button; 42 // Watch for button clicks. 43 Button button = (Button)findViewById(R.id.nest); local 44 button.setOnClickListener(mNestListener); 45 button = (Button)findViewById(R.id.finish); 46 button.setOnClickListener(mFinishListener);
|
IntentActivityFlags.java | 15 import android.widget.Button; 27 // Watch for button clicks. 28 Button button = (Button)findViewById(R.id.flag_activity_clear_task); local 29 button.setOnClickListener(mFlagActivityClearTaskListener); 30 button = (Button)findViewById(R.id.flag_activity_clear_task_pi); 31 button.setOnClickListener(mFlagActivityClearTaskPIListener);
|
JobWorkServiceActivity.java | 28 import android.widget.Button; 49 // Watch for button clicks. 50 Button button = findViewById(R.id.enqueue1); local 51 button.setOnClickListener(mEnqueue1Listener); 52 button = findViewById(R.id.enqueue2); 53 button.setOnClickListener(mEnqueue2Listener); 54 button = findViewById(R.id.enqueue3); 55 button.setOnClickListener(mEnqueue3Listener); 56 button = findViewById(R.id.kill) [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
ChronometerDemo.java | 28 import android.widget.Button; 40 Button button; local 44 // Watch for button clicks. 45 button = (Button) findViewById(R.id.start); 46 button.setOnClickListener(mStartListener); 48 button = (Button) findViewById(R.id.stop); 49 button.setOnClickListener(mStopListener) [all...] |
/external/toybox/kconfig/lxdialog/ |
inputbox.c | 48 int input_x = 0, scroll = 0, key = 0, button = -1; local 118 if (button == -1) { /* Input box selected */ 181 switch (button) { 183 button = 1; /* Indicates "Cancel" button is selected */ 187 button = -1; /* Indicates input box is selected */ 193 button = 0; /* Indicates "OK" button is selected */ 201 switch (button) { 203 button = 0; /* Indicates "OK" button is selected * [all...] |
/frameworks/base/core/tests/coretests/src/android/widget/focus/ |
ListOfButtons.java | 27 import android.widget.Button; 66 Button button = new Button(parent.getContext()); local 67 button.setText(label); 68 return button;
|
/frameworks/base/tests/ImfTest/tests/src/com/android/imftest/samples/ |
ButtonActivityTest.java | 21 import android.widget.Button; 35 final Button button = (Button) mTargetActivity.findViewById(ButtonActivity.BUTTON_ID); local 37 // Push button 41 button.requestFocus(); 52 // imm.mServedInputConnection should be null since Button doesn't override onCreateInputConnection(). 55 destructiveCheckImeInitialState(mTargetActivity.getRootView(), button); local
|
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/ |
InstanceTargets.java | 24 import android.widget.Button; 47 Button button = (Button) mSceneRoot.getChildAt(i); local 48 LayoutParams params = (LayoutParams) button.getLayoutParams(); 57 button.setLayoutParams(params);
|
Reparenting.java | 25 import android.widget.Button; 50 Button button = new Button(this); local 51 button.setText(Integer.toString(i)); 52 button.setOnClickListener(mButtonListener); 53 parent.addView(button);
|
/frameworks/base/tests/VectorDrawableTest/src/com/android/test/dynamic/ |
AnimatedStateVectorDrawableTest.java | 21 import android.widget.Button; 52 CheckBox button = new CheckBox(this); local 53 button.setWidth(400); 54 button.setHeight(400); 55 button.setBackgroundResource(icon[i]); 56 container.addView(button);
|
BitmapDrawableDupe.java | 21 import android.widget.Button; 66 Button button = new Button(this); local 67 button.setWidth(200); 68 button.setBackgroundResource(icon[i]); 69 container.addView(button);
|
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/util/ |
GlifStyleTest.java | 33 import android.widget.Button; 58 Button button = new Button( local 63 assertThat(button.getBackground()).named("background").isNotNull(); 64 assertThat(button.getTransformationMethod()).named("transformation method").isNull(); 68 assertEquals("ff4285f4", Integer.toHexString(button.getTextColors().getDefaultColor()));
|
/packages/apps/Car/Settings/src/com/android/car/settings/datetime/ |
DatePickerFragment.java | 22 import android.widget.Button; 54 Button button = (Button) getActivity().findViewById(R.id.action_button1); local 55 button.setText(android.R.string.ok); 56 button.setOnClickListener(v -> {
|
TimePickerFragment.java | 23 import android.widget.Button; 55 Button button = (Button) getActivity().findViewById(R.id.action_button1); local 56 button.setText(android.R.string.ok); 57 button.setOnClickListener(v -> {
|
/prebuilts/misc/windows/sdl2/test/ |
testmessage.c | 57 int button = -1; local 63 success = SDL_ShowMessageBox(&data, &button); 75 SDL_Log("Pressed button: %d, %s\n", button, button == 1 ? "Cancel" : "OK");
|
/developers/build/prebuilts/gradle/Interpolator/Application/src/main/java/com/example/android/interpolator/ |
InterpolatorFragment.java | 138 * Set up the 'animate' button, when it is clicked the view is animated with the options 141 * @param view The view holding the button. 144 View button = view.findViewById(R.id.animateButton); local 145 button.setOnClickListener(new View.OnClickListener() { 174 * @param view The view holding the button.
|
/developers/build/prebuilts/gradle/RuntimePermissions/Application/src/main/java/com/example/android/system/runtimepermissions/contacts/ |
ContactsFragment.java | 35 import android.widget.Button; 86 // Register a listener to add a dummy contact when a button is clicked. 87 Button button = rootView.findViewById(R.id.contact_add); local 88 button.setOnClickListener(new View.OnClickListener() { 95 // Register a listener to display the first contact when a button is clicked. 96 button = rootView.findViewById(R.id.contact_load); 97 button.setOnClickListener(new View.OnClickListener() {
|
/developers/samples/android/system/RuntimePermissions/Application/src/main/java/com/example/android/system/runtimepermissions/contacts/ |
ContactsFragment.java | 35 import android.widget.Button; 86 // Register a listener to add a dummy contact when a button is clicked. 87 Button button = rootView.findViewById(R.id.contact_add); local 88 button.setOnClickListener(new View.OnClickListener() { 95 // Register a listener to display the first contact when a button is clicked. 96 button = rootView.findViewById(R.id.contact_load); 97 button.setOnClickListener(new View.OnClickListener() {
|
/developers/samples/android/ui/Interpolator/Application/src/main/java/com/example/android/interpolator/ |
InterpolatorFragment.java | 138 * Set up the 'animate' button, when it is clicked the view is animated with the options 141 * @param view The view holding the button. 144 View button = view.findViewById(R.id.animateButton); local 145 button.setOnClickListener(new View.OnClickListener() { 174 * @param view The view holding the button.
|