Searched refs:button (Results 1 - 25 of 89) sorted by relevance

1234

/frameworks/support/v4/api21/android/support/v4/widget/
H A DCompoundButtonCompatLollipop.java25 static void setButtonTintList(CompoundButton button, ColorStateList tint) { argument
26 button.setButtonTintList(tint);
29 static ColorStateList getButtonTintList(CompoundButton button) { argument
30 return button.getButtonTintList();
33 static void setButtonTintMode(CompoundButton button, PorterDuff.Mode tintMode) { argument
34 button.setButtonTintMode(tintMode);
37 static PorterDuff.Mode getButtonTintMode(CompoundButton button) { argument
38 return button.getButtonTintMode();
/frameworks/support/v4/donut/android/support/v4/widget/
H A DCompoundButtonCompatDonut.java34 static void setButtonTintList(CompoundButton button, ColorStateList tint) { argument
35 if (button instanceof TintableCompoundButton) {
36 ((TintableCompoundButton) button).setSupportButtonTintList(tint);
40 static ColorStateList getButtonTintList(CompoundButton button) { argument
41 if (button instanceof TintableCompoundButton) {
42 return((TintableCompoundButton) button).getSupportButtonTintList();
47 static void setButtonTintMode(CompoundButton button, PorterDuff.Mode tintMode) { argument
48 if (button instanceof TintableCompoundButton) {
49 ((TintableCompoundButton) button).setSupportButtonTintMode(tintMode);
53 static PorterDuff.Mode getButtonTintMode(CompoundButton button) { argument
60 getButtonDrawable(CompoundButton button) argument
[all...]
/frameworks/support/v4/java/android/support/v4/widget/
H A DCompoundButtonCompat.java50 void setButtonTintList(CompoundButton button, ColorStateList tint); argument
51 ColorStateList getButtonTintList(CompoundButton button); argument
52 void setButtonTintMode(CompoundButton button, PorterDuff.Mode tintMode); argument
53 PorterDuff.Mode getButtonTintMode(CompoundButton button); argument
54 Drawable getButtonDrawable(CompoundButton button); argument
59 public void setButtonTintList(CompoundButton button, ColorStateList tint) { argument
60 CompoundButtonCompatDonut.setButtonTintList(button, tint);
64 public ColorStateList getButtonTintList(CompoundButton button) { argument
65 return CompoundButtonCompatDonut.getButtonTintList(button);
69 public void setButtonTintMode(CompoundButton button, PorterDuf argument
74 getButtonTintMode(CompoundButton button) argument
79 getButtonDrawable(CompoundButton button) argument
86 setButtonTintList(CompoundButton button, ColorStateList tint) argument
91 getButtonTintList(CompoundButton button) argument
96 setButtonTintMode(CompoundButton button, PorterDuff.Mode tintMode) argument
101 getButtonTintMode(CompoundButton button) argument
108 getButtonDrawable(CompoundButton button) argument
127 setButtonTintList(@onNull CompoundButton button, @Nullable ColorStateList tint) argument
137 getButtonTintList(@onNull CompoundButton button) argument
152 setButtonTintMode(@onNull CompoundButton button, @Nullable PorterDuff.Mode tintMode) argument
163 getButtonTintMode(@onNull CompoundButton button) argument
173 getButtonDrawable(@onNull CompoundButton button) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/animation/
H A DObjectAnimatorEventsTest.java29 Button button = (Button) activity.findViewById(R.id.animatingButton);
31 mAnimator = ObjectAnimator.ofFloat(button, "translationX", 0, 100);
H A DAnimatorSetEventsTest.java31 Button button; field in class:AnimatorSetEventsTest
37 button = (Button) getActivity().findViewById(R.id.animatingButton);
77 button.setTranslationX(value);
82 button.setTranslationY(value);
/frameworks/support/v4/api23/android/support/v4/widget/
H A DCompoundButtonCompatApi23.java27 static Drawable getButtonDrawable(CompoundButton button) { argument
28 return button.getButtonDrawable();
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/
H A DUniqueIds.java45 Button button = (Button) inflater.inflate(R.layout.button_template, null);
46 container.addView(button);
47 ToggleScene scene = new ToggleScene(container, button);
48 mSceneMap.put(button, scene);
49 button = (Button) inflater.inflate(R.layout.button_template, null);
50 container.addView(button);
51 scene = new ToggleScene(container, button);
52 mSceneMap.put(button, scene);
64 ToggleScene(ViewGroup rootView, Button button) { argument
66 mButton = button;
[all...]
H A DReparenting.java50 Button button = new Button(this);
51 button.setText(Integer.toString(i));
52 button.setOnClickListener(mButtonListener);
53 parent.addView(button);
/frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/
H A DButtonItemTest.java63 final Button button = item.createButton(mParent);
65 assertTrue("Default button should be enabled", button.isEnabled());
66 assertTrue("Default button text should be empty", TextUtils.isEmpty(button.getText()));
73 final Button button = item.createButton(mParent);
75 assertTrue("Button should be enabled", button.isEnabled());
82 final Button button = item.createButton(mParent);
84 assertFalse("Button should be disabled", button.isEnabled());
91 final Button button
[all...]
/frameworks/base/tests/ImfTest/tests/src/com/android/imftest/samples/
H A DButtonActivityTest.java35 final Button button = (Button) mTargetActivity.findViewById(ButtonActivity.BUTTON_ID);
37 // Push button
41 button.requestFocus();
55 destructiveCheckImeInitialState(mTargetActivity.getRootView(), button);
/frameworks/base/tests/VectorDrawableTest/src/com/android/test/dynamic/
H A DVectorDrawableAnimation.java31 final Button button = new Button(this);
32 button.setBackgroundResource(R.drawable.animation_drawable_vector);
34 button.setOnClickListener(new View.OnClickListener() {
43 setContentView(button);
H A DAnimatedStateVectorDrawableTest.java52 CheckBox button = new CheckBox(this);
53 button.setWidth(400);
54 button.setHeight(400);
55 button.setBackgroundResource(icon[i]);
56 container.addView(button);
H A DAnimatedVectorDrawableTest.java70 Button button = new Button(this);
71 button.setWidth(300);
72 button.setHeight(300);
73 button.setLayerType(layerTypes[j], null);
74 button.setBackgroundResource(icon[i]);
75 AnimatedVectorDrawable d = (AnimatedVectorDrawable) button.getBackground();
91 container.addView(button);
92 button.setOnClickListener(this);
H A DVectorDrawable01.java81 Button button = new Button(this);
82 bArray[i] = button;
83 button.setWidth(200);
84 button.setBackgroundResource(icon[i]);
85 container.addView(button);
86 VectorDrawable vd = (VectorDrawable) button.getBackground();
/frameworks/base/tests/ImfTest/src/com/android/imftest/samples/
H A DOneEditTextActivityNotSelected.java53 Button button = new Button(this);
54 button.setText("The focus is here.");
55 button.setFocusableInTouchMode(true);
56 button.requestFocus();
57 mDefaultFocusedView = button;
58 layout.addView(button);
/frameworks/base/core/tests/coretests/src/android/widget/focus/
H A DHorizontalFocusSearch.java94 Button button = new MyButton(this);
95 button.setText(label);
96 button.setLayoutParams(new LinearLayout.LayoutParams(
99 return button;
103 Button button = new MyButton(this);
104 button.setText(label);
105 button.setLayoutParams(new LinearLayout.LayoutParams(
125 ll.addView(button);
128 ll.addView(button);
132 return button;
[all...]
H A DVerticalFocusSearch.java102 Button button = new MyButton(this);
103 button.setText(label);
104 button.setLayoutParams(new LinearLayout.LayoutParams(
107 return button;
111 * Add a skinny button that takes up just less than half of the screen
113 * @param root The layout to add the button to.
114 * @param label The label of the button.
115 * @param atRight Which side to put the button on.
116 * @return The newly created button.
119 Button button
[all...]
H A DListOfButtonsTest.java54 mButtonAtTop = (Button) a.findViewById(R.id.button);
95 assertFalse("button at top should have focus back",
113 Button button = (Button) mListView.getSelectedView();
114 assertNotNull(indexInfo, button);
115 assertEquals(indexInfo, label, button.getText().toString());
116 assertTrue(indexInfo, button.hasFocus());
130 Button button = (Button) mListView.getSelectedView();
131 assertNotNull(indexInfo, button);
132 assertEquals(indexInfo, label, button.getText().toString());
133 assertTrue(indexInfo, button
[all...]
H A DListOfButtons.java66 Button button = new Button(parent.getContext());
67 button.setText(label);
68 return button;
/frameworks/base/tests/WindowAnimationJank/src/android/windowanimationjank/
H A DElementLayoutActivity.java102 RadioButton button = new RadioButton(this);
103 button.setText("RadioButton:" + mRandom.nextInt());
104 mLayout.addView(button);
108 ToggleButton button = new ToggleButton(this);
109 button.setChecked(mRandom.nextBoolean());
110 mLayout.addView(button);
114 Switch button = new Switch(this);
115 button.setChecked(mRandom.nextBoolean());
116 mLayout.addView(button);
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/
H A DButtonBarItem.java98 Button button = buttonItem.createButton(layout);
99 layout.addView(button);
110 throw new UnsupportedOperationException("Cannot add non-button item to Button Bar");
119 for (ButtonItem button : mButtons) {
120 final ItemHierarchy item = button.findItemById(id);
/frameworks/base/core/tests/coretests/src/android/widget/scroll/arrowscroll/
H A DShortButtonsTest.java60 String prefix = "after " + i + " downs expected button " + i;
61 final Button button = getActivity().getButtonAt(i);
62 assertTrue(prefix + " to have focus", button.isFocused());
63 assertTrue(prefix + " to be on screen", isButtonOnScreen(button));
89 String prefix = "after " + i + " ups expected button " + i;
90 final Button button = getActivity().getButtonAt(i);
91 assertTrue(prefix + " to have focus", button.isFocused());
92 assertTrue(prefix + " to be on screen", isButtonOnScreen(button));
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/car/
H A DCarNavigationBarView.java47 public void addButton(CarNavigationButton button, CarNavigationButton lightsOutButton){ argument
48 mNavButtons.addView(button);
73 // navigation bar does not have a back button.
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DGetBitmapActivity.java49 Button button = new Button(this);
50 button.setText("Copy bitmap to /sdcard/textureview.png");
51 button.setOnClickListener(new View.OnClickListener() {
74 content.addView(button, new FrameLayout.LayoutParams(
/frameworks/base/core/tests/coretests/src/android/widget/scroll/
H A DScrollViewButtonsAndLabels.java78 // want button to be first and last
85 Button button = new Button(this);
86 button.setText("Button " + (i + 1));
87 mLinearLayout.addView(button, p);

Completed in 634 milliseconds

1234