/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/template/ |
ButtonFooterMixinTest.java | 35 import android.widget.Button; 72 final Button button = mixin.addButton("foobar", R.style.SuwGlifButton_Primary); local 74 assertNotNull(button); 76 button.setId(id); 79 assertEquals("foobar", button.getText()); 82 assertEquals(dp2Px(16), button.getPaddingLeft()); 83 assertEquals(dp2Px(16), button.getPaddingRight()); 89 final Button button = mixin.addButton(R.string.suw_next_button_label local [all...] |
/frameworks/support/paging/integration-tests/testapp/src/main/java/androidx/paging/integration/testapp/ |
PagedListSampleActivity.java | 21 import android.widget.Button; 51 final Button button = findViewById(R.id.button); local 52 button.setOnClickListener(new View.OnClickListener() {
|
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/app/ |
ActionBarSettingsActionProviderActivity.java | 76 ImageButton button = (ImageButton) view.findViewById(R.id.button); local 78 button.setOnClickListener(new View.OnClickListener() {
|
/frameworks/support/samples/SupportCarDemos/src/main/java/com/example/androidx/car/ |
ActionBarActivity.java | 57 ImageButton button = new ImageButton(context, null, local 59 button.setImageDrawable(context.getDrawable(iconResId)); 60 return button;
|
/build/make/tools/droiddoc/templates-pdk/ |
docpage.cs | 28 <div class="training-nav-button-next"> 32 <span class="training-nav-button-title"><?cs var:next.title ?></span> 38 <div class="training-nav-button-next"> 42 <span class="training-nav-button-title"><?cs var:next.title ?></span> 50 <div class="training-nav-button-previous"> 54 <span class="training-nav-button-title"><?cs var:previous.title ?></span> 71 <div class="training-nav-button-next"> 75 <br/><span class="training-nav-button-title"><?cs var:next.title ?></span> 81 <div class="training-nav-button-previous"> 85 <br/><span class="training-nav-button-title"><?cs var:previous.title ?></span [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
ButtonSwitcher.java | 25 import android.widget.Button; 47 private Button mInstallButton; 48 private Button mCancelButton; 49 private Button mDeleteButton; 71 mInstallButton = (Button)findViewById(R.id.dict_install_button); 72 mCancelButton = (Button)findViewById(R.id.dict_cancel_button); 73 mDeleteButton = (Button)findViewById(R.id.dict_delete_button); 85 private Button getButton(final int status) { 159 private ViewPropertyAnimator animateButton(final View button, final int direction) { 161 final float innerX = button.getX() - button.getTranslationX() [all...] |
/packages/services/Car/tests/DirectRenderingClusterSample/src/android/car/cluster/sample/ |
MainClusterActivity.java | 32 import android.widget.Button; 51 private HashMap<Button, Facet<?>> mButtonToFacet = new HashMap<>(); 100 mOrderToFacet.get(0).button.requestFocus(); 147 mButtonToFacet.put(facet.button, facet); 149 facet.button.setOnFocusChangeListener(mFacetButtonFocusListener); 153 Button button; field in class:MainClusterActivity.Facet 157 Facet(Button button, int order, Class<T> clazz) { 158 this.button = button [all...] |
/cts/tests/tests/widget/src/android/widget/cts/util/ |
ListItemFactory.java | 24 import android.widget.Button; 34 * Create a view with a button at the top and bottom, with filler in between. 56 final Button topButton = new Button(context); 69 final Button bottomButton = new Button(context); 119 final Button button = new Button(context); local 120 button.setText("left") 127 final Button button = new Button(context); local 135 final Button button = new Button(context); local 154 public static View button(int position, Context context, String text, int desiredHeight) { method in class:ListItemFactory [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
ServiceStartArguments.java | 35 import android.widget.Button; 136 // For the start fail button, we will simulate the process dying 217 // Watch for button clicks. 218 Button button = (Button)findViewById(R.id.start1); local 219 button.setOnClickListener(mStart1Listener); 220 button = (Button)findViewById(R.id.start2); 221 button.setOnClickListener(mStart2Listener) [all...] |
FragmentStack.java | 29 import android.widget.Button; 40 // Watch for button clicks. 41 Button button = (Button)findViewById(R.id.new_fragment); local 42 button.setOnClickListener(new OnClickListener() { 47 button = (Button)findViewById(R.id.delete_fragment); 48 button.setOnClickListener(new OnClickListener() {
|
/frameworks/base/core/tests/coretests/src/android/util/ |
ListItemFactory.java | 24 import android.widget.Button; 34 * Create a view with a button at the top and bottom, with filler in between. 56 final Button topButton = new Button(context); 69 final Button bottomButton = new Button(context); 119 final Button button = new Button(context); local 120 button.setText("left") 127 final Button button = new Button(context); local 135 final Button button = new Button(context); local 155 public static View button(int position, Context context, String text, int desiredHeight) { method in class:ListItemFactory [all...] |
ScrollViewScenario.java | 25 import android.widget.Button; 124 * Add a button. 125 * @param text The text of the button. 131 final Button button = new Button(context); 132 button.setText(text); 133 return button; 142 * @param textPrefix The text to prepend to each button. 183 final Button button = new Button(context) [all...] |
/packages/apps/Settings/tests/robotests/src/com/android/settings/password/ |
SetupChooseLockPatternTest.java | 29 import android.widget.Button; 96 Button button = mActivity.findViewById(R.id.screen_lock_options); local 97 assertThat(button).isNotNull(); 98 assertThat(button.getVisibility()).isEqualTo(View.VISIBLE); 105 Button button = mActivity.findViewById(R.id.screen_lock_options); local 106 assertThat(button).isNotNull(); 107 assertThat(button.getVisibility()).isEqualTo(View.VISIBLE); 109 button.performClick() 129 Button button = mActivity.findViewById(R.id.screen_lock_options); local [all...] |
/external/icu/icu4j/demos/src/com/ibm/icu/dev/demo/rbnf/ |
RbnfDemo.java | 12 import java.awt.Button; 248 Button button = new Button("+100"); local 249 button.addActionListener( new ActionListener() { 254 panel2.add(button); 255 button = new Button("+10"); 256 button.addActionListener( new ActionListener() { 261 panel2.add(button); [all...] |
/packages/apps/Dialer/java/com/android/incallui/incall/impl/ |
InCallButtonGridFragment.java | 82 for (CheckableLabeledButton button : buttons) { 83 button.setImportantForAccessibility( 124 @InCallButtonIds int button = buttonsToPlace.get(i); local 125 buttonGridListener.getButtonController(button).setButton(buttons[i]); 132 for (CheckableLabeledButton button : buttons) { 133 button.setCheckedColor(color); 137 /** Interface to let the listener know the status of the button grid. */
|
/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper/ |
AutoLauncherStrategy.java | 77 BySelector button = By.clickable(true).hasDescendant(By.text(appName)); local 83 mDevice.wait(Until.findObject(button), APP_INIT_WAIT); 84 if (mDevice.hasObject(button)) { 88 UiObject2 choice = mDevice.findObject(button); 91 mDevice.wait(Until.gone(button), APP_INIT_WAIT); 92 Assert.assertFalse("Failed to exit media menu.", mDevice.hasObject(button));
|
/external/autotest/server/cros/ap_configurators/ |
linksyswrt610n_ap_configurator.py | 78 button = 'wl0_closed' 80 button = 'wl1_closed' 82 xpath = ('//input[@value="%d" and @name="%s"]' % (int_value, button))
|
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/util/ |
GlifV3StyleTest.java | 32 import android.widget.Button; 66 Button button = new Button( local 71 assertThat(button.getTypeface()).isEqualTo(Typeface.create("google-sans", 0)); 72 // Button should not be all caps 73 assertThat(button.getTransformationMethod()).isNull();
|
/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/accessibility/ |
AccessibilityRoleDescriptionSupportActivity.java | 22 import android.widget.Button; 68 Button button = findViewById(R.id.button); local 71 ViewCompat.setAccessibilityDelegate(button,
|
/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 -> {
|
/packages/apps/Settings/tests/anomaly-tester/src/com/android/settings/anomaly/tests/ |
TestUtils.java | 74 * Find {@link android.widget.Button} with {@code res} and click it 77 final UiObject2 button = uiDevice.findObject(By.res(res)); local 78 assertWithMessage("Cannot find button with res: " + res).that(button).isNotNull(); 79 button.click();
|
/prebuilts/misc/windows/sdl2/test/ |
testhotplug.c | 129 SDL_Log("Button Press: %d\n", event.jbutton.button); 134 if (event.jbutton.button == 0) { 135 SDL_Log("Exiting due to button press of button 0\n"); 140 SDL_Log("Button Release: %d\n", event.jbutton.button);
|
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
OverlayWindowActivity.java | 34 import android.widget.Button; 51 Button button = (Button)findViewById(R.id.show_overlay); local 52 button.setOnClickListener(mShowOverlayListener); 53 button = (Button)findViewById(R.id.hide_overlay); 54 button.setOnClickListener(mHideOverlayListener);
|
SecureView.java | 29 import android.widget.Button; 51 * 1. The "unsecured button" does not apply any touch filtering of any kind. 52 * When the toast appears, this button remains clickable as usual which creates an 55 * 2. The "built-in secured button" leverages the android:filterTouchesWhenObscured view 57 * When the toast appears, the button does not receive the touch and appears to be inoperable. 59 * 3. The "custom secured button" adds a touch listener to the button which intercepts the 78 Button toastButton = (Button) findViewById(R.id.secure_view_toast_button); 85 Button unsecureButton = (Button) findViewById(R.id.secure_view_unsecure_button) [all...] |