/frameworks/support/compat/java/android/support/v4/widget/ |
D | CompoundButtonCompat.java | 55 public void setButtonTintList(CompoundButton button, ColorStateList tint) { in setButtonTintList() argument 56 if (button instanceof TintableCompoundButton) { in setButtonTintList() 57 ((TintableCompoundButton) button).setSupportButtonTintList(tint); in setButtonTintList() 61 public ColorStateList getButtonTintList(CompoundButton button) { in getButtonTintList() argument 62 if (button instanceof TintableCompoundButton) { in getButtonTintList() 63 return ((TintableCompoundButton) button).getSupportButtonTintList(); in getButtonTintList() 68 public void setButtonTintMode(CompoundButton button, PorterDuff.Mode tintMode) { in setButtonTintMode() argument 69 if (button instanceof TintableCompoundButton) { in setButtonTintMode() 70 ((TintableCompoundButton) button).setSupportButtonTintMode(tintMode); in setButtonTintMode() 74 public PorterDuff.Mode getButtonTintMode(CompoundButton button) { in getButtonTintMode() argument [all …]
|
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/items/ |
D | ButtonItemTest.java | 94 final Button button = item.createButton(mParent); in testCreateButton() local 96 assertTrue("Default button should be enabled", button.isEnabled()); in testCreateButton() 97 assertTrue("Default button text should be empty", TextUtils.isEmpty(button.getText())); in testCreateButton() 112 final Button button = item.createButton(mParent); in testCreateButtonTwice() local 115 frameLayout.addView(button); in testCreateButtonTwice() 118 assertSame("createButton should be reused", button, button2); in testCreateButtonTwice() 127 final Button button = item.createButton(mParent); in testSetEnabledTrue() local 129 assertTrue("Button should be enabled", button.isEnabled()); in testSetEnabledTrue() 137 final Button button = item.createButton(mParent); in testSetEnabledFalse() local 139 assertFalse("Button should be disabled", button.isEnabled()); in testSetEnabledFalse() [all …]
|
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/ |
D | UniqueIds.java | 45 Button button = (Button) inflater.inflate(R.layout.button_template, null); in onCreate() local 46 container.addView(button); in onCreate() 47 ToggleScene scene = new ToggleScene(container, button); in onCreate() 48 mSceneMap.put(button, scene); in onCreate() 49 button = (Button) inflater.inflate(R.layout.button_template, null); in onCreate() 50 container.addView(button); in onCreate() 51 scene = new ToggleScene(container, button); in onCreate() 52 mSceneMap.put(button, scene); in onCreate() 64 ToggleScene(ViewGroup rootView, Button button) { in ToggleScene() argument 66 mButton = button; in ToggleScene()
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/template/ |
D | ButtonFooterMixin.java | 72 Button button = createThemedButton(mContext, theme); in addButton() local 73 button.setText(text); in addButton() 74 return addButton(button); in addButton() 89 Button button = createThemedButton(mContext, theme); in addButton() local 90 button.setText(text); in addButton() 91 return addButton(button); in addButton() 100 public Button addButton(Button button) { in addButton() argument 102 buttonContainer.addView(button); in addButton() 103 return button; in addButton() 127 public void removeButton(Button button) { in removeButton() argument [all …]
|
D | RequireScrollMixin.java | 168 @NonNull Button button, 171 requireScrollWithButton(button, button.getContext().getText(moreText), onClickListener); 194 @NonNull final Button button, 197 final CharSequence nextText = button.getText(); 198 button.setOnClickListener(createOnClickListener(onClickListener)); 202 button.setText(scrollNeeded ? moreText : nextText);
|
/frameworks/base/core/tests/coretests/src/android/widget/focus/ |
D | HorizontalFocusSearch.java | 94 Button button = new MyButton(this); in makeTall() local 95 button.setText(label); in makeTall() 96 button.setLayoutParams(new LinearLayout.LayoutParams( in makeTall() 99 return button; in makeTall() 103 Button button = new MyButton(this); in addShort() local 104 button.setText(label); in addShort() 105 button.setLayoutParams(new LinearLayout.LayoutParams( in addShort() 125 ll.addView(button); in addShort() 128 ll.addView(button); in addShort() 132 return button; in addShort()
|
D | VerticalFocusSearch.java | 102 Button button = new MyButton(this); in makeWide() local 103 button.setText(label); in makeWide() 104 button.setLayoutParams(new LinearLayout.LayoutParams( in makeWide() 107 return button; in makeWide() 119 Button button = new MyButton(this); in addSkinny() local 120 button.setText(label); in addSkinny() 121 button.setLayoutParams(new LinearLayout.LayoutParams( in addSkinny() 141 ll.addView(button); in addSkinny() 144 ll.addView(button); in addSkinny() 148 return button; in addSkinny()
|
D | ListOfButtonsTest.java | 54 mButtonAtTop = (Button) a.findViewById(R.id.button); in setUp() 113 Button button = (Button) mListView.getSelectedView(); in TODO_testNavigateThroughAllButtonsAndBack() local 114 assertNotNull(indexInfo, button); in TODO_testNavigateThroughAllButtonsAndBack() 115 assertEquals(indexInfo, label, button.getText().toString()); in TODO_testNavigateThroughAllButtonsAndBack() 116 assertTrue(indexInfo, button.hasFocus()); in TODO_testNavigateThroughAllButtonsAndBack() 130 Button button = (Button) mListView.getSelectedView(); in TODO_testNavigateThroughAllButtonsAndBack() local 131 assertNotNull(indexInfo, button); in TODO_testNavigateThroughAllButtonsAndBack() 132 assertEquals(indexInfo, label, button.getText().toString()); in TODO_testNavigateThroughAllButtonsAndBack() 133 assertTrue(indexInfo, button.hasFocus()); in TODO_testNavigateThroughAllButtonsAndBack()
|
/frameworks/base/tests/WindowAnimationJank/src/android/windowanimationjank/ |
D | ElementLayoutActivity.java | 102 RadioButton button = new RadioButton(this); in createRadioButton() local 103 button.setText("RadioButton:" + mRandom.nextInt()); in createRadioButton() 104 mLayout.addView(button); in createRadioButton() 108 ToggleButton button = new ToggleButton(this); in createToggleButton() local 109 button.setChecked(mRandom.nextBoolean()); in createToggleButton() 110 mLayout.addView(button); in createToggleButton() 114 Switch button = new Switch(this); in createSwitch() local 115 button.setChecked(mRandom.nextBoolean()); in createSwitch() 116 mLayout.addView(button); in createSwitch()
|
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/template/ |
D | ButtonFooterMixinTest.java | 72 final Button button = mixin.addButton("foobar", R.style.SuwGlifButton_Primary); in testAddButton() local 74 assertNotNull(button); in testAddButton() 76 button.setId(id); in testAddButton() 79 assertEquals("foobar", button.getText()); in testAddButton() 82 assertEquals(dp2Px(16), button.getPaddingLeft()); in testAddButton() 83 assertEquals(dp2Px(16), button.getPaddingRight()); in testAddButton() 89 final Button button = mixin.addButton(R.string.suw_next_button_label, in testAddButtonTextRes() local 92 assertNotNull(button); in testAddButtonTextRes() 93 button.setTag("button"); in testAddButtonTextRes() 96 assertEquals("Next", button.getText()); in testAddButtonTextRes() [all …]
|
/frameworks/base/tests/ImfTest/src/com/android/imftest/samples/ |
D | OneEditTextActivityNotSelected.java | 53 Button button = new Button(this); in onCreate() local 54 button.setText("The focus is here."); in onCreate() 55 button.setFocusableInTouchMode(true); in onCreate() 56 button.requestFocus(); in onCreate() 57 mDefaultFocusedView = button; in onCreate() 58 layout.addView(button); in onCreate()
|
/frameworks/base/tests/VectorDrawableTest/src/com/android/test/dynamic/ |
D | AnimatedVectorDrawableTest.java | 70 Button button = new Button(this); in onCreate() local 71 button.setWidth(300); in onCreate() 72 button.setHeight(300); in onCreate() 73 button.setLayerType(layerTypes[j], null); in onCreate() 74 button.setBackgroundResource(icon[i]); in onCreate() 75 AnimatedVectorDrawable d = (AnimatedVectorDrawable) button.getBackground(); in onCreate() 91 container.addView(button); in onCreate() 92 button.setOnClickListener(this); in onCreate()
|
D | AnimatedStateVectorDrawableTest.java | 52 CheckBox button = new CheckBox(this); in onCreate() local 53 button.setWidth(400); in onCreate() 54 button.setHeight(400); in onCreate() 55 button.setBackgroundResource(icon[i]); in onCreate() 56 container.addView(button); in onCreate()
|
D | VectorDrawableAnimation.java | 31 final Button button = new Button(this); in onCreate() local 32 button.setBackgroundResource(R.drawable.animation_drawable_vector); in onCreate() 34 button.setOnClickListener(new View.OnClickListener() { in onCreate() 43 setContentView(button); in onCreate()
|
D | VectorDrawable01.java | 81 Button button = new Button(this); in onCreate() local 82 bArray[i] = button; in onCreate() 83 button.setWidth(200); in onCreate() 84 button.setBackgroundResource(icon[i]); in onCreate() 85 container.addView(button); in onCreate() 86 VectorDrawable vd = (VectorDrawable) button.getBackground(); in onCreate()
|
/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/ |
D | EffectsTest.java | 52 Button button = (Button) findViewById(R.id.env_reverb_actvity); in onCreate() local 53 button.setOnClickListener(new OnClickListener() { in onCreate() 59 button = (Button) findViewById(R.id.preset_reverb_actvity); in onCreate() 60 button.setOnClickListener(new OnClickListener() { in onCreate() 66 button = (Button) findViewById(R.id.equalizer_actvity); in onCreate() 67 button.setOnClickListener(new OnClickListener() { in onCreate() 73 button = (Button) findViewById(R.id.virtualizer_actvity); in onCreate() 74 button.setOnClickListener(new OnClickListener() { in onCreate() 80 button = (Button) findViewById(R.id.bassboost_actvity); in onCreate() 81 button.setOnClickListener(new OnClickListener() { in onCreate() [all …]
|
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/template/ |
D | RequireScrollMixinTest.java | 149 final Button button = new Button(application); in testRequireScrollWithButton() local 150 button.setText("OriginalLabel"); in testRequireScrollWithButton() 153 button, "TestMoreLabel", wrappedListener); in testRequireScrollWithButton() 155 assertEquals("Button label should be kept initially", "OriginalLabel", button.getText()); in testRequireScrollWithButton() 158 assertEquals("TestMoreLabel", button.getText()); in testRequireScrollWithButton() 159 button.performClick(); in testRequireScrollWithButton() 160 verify(wrappedListener, never()).onClick(eq(button)); in testRequireScrollWithButton() 164 assertEquals("OriginalLabel", button.getText()); in testRequireScrollWithButton() 165 button.performClick(); in testRequireScrollWithButton() 166 verify(wrappedListener).onClick(eq(button)); in testRequireScrollWithButton()
|
/frameworks/support/design/tests/src/android/support/design/widget/ |
D | AppBarHorizontalScrollingTest.java | 59 final Button button = activity.findViewById(R.id.button); in testScrollAndClick() local 61 button.setOnClickListener(mockClickListener); in testScrollAndClick() 66 button.getLocationOnScreen(buttonXY); in testScrollAndClick() 67 final int buttonWidth = button.getWidth(); in testScrollAndClick() 68 final int buttonHeight = button.getHeight(); in testScrollAndClick() 73 verify(mockClickListener).onClick(button); in testScrollAndClick() 85 verify(mockClickListener).onClick(button); in testScrollAndClick()
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | ListItemFactory.java | 119 final Button button = new Button(context); in horizontalButtonSlots() local 120 button.setText("left"); in horizontalButtonSlots() 121 ll.addView(button, lp); in horizontalButtonSlots() 127 final Button button = new Button(context); in horizontalButtonSlots() local 128 button.setText("center"); in horizontalButtonSlots() 129 ll.addView(button, lp); in horizontalButtonSlots() 135 final Button button = new Button(context); in horizontalButtonSlots() local 136 button.setText("right"); in horizontalButtonSlots() 137 ll.addView(button, lp); in horizontalButtonSlots() 155 public static View button(int position, Context context, String text, int desiredHeight) { in button() method in ListItemFactory
|
/frameworks/base/core/tests/coretests/src/android/widget/scroll/arrowscroll/ |
D | ShortButtonsTest.java | 61 final Button button = getActivity().getButtonAt(i); in testScrollDownToBottomThroughButtons() local 62 assertTrue(prefix + " to have focus", button.isFocused()); in testScrollDownToBottomThroughButtons() 63 assertTrue(prefix + " to be on screen", isButtonOnScreen(button)); in testScrollDownToBottomThroughButtons() 90 final Button button = getActivity().getButtonAt(i); in testScrollFromBottomToTopThroughButtons() local 91 assertTrue(prefix + " to have focus", button.isFocused()); in testScrollFromBottomToTopThroughButtons() 92 assertTrue(prefix + " to be on screen", isButtonOnScreen(button)); in testScrollFromBottomToTopThroughButtons()
|
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/app/ |
D | FragmentStackFragmentSupport.java | 54 Button button = (Button)v.findViewById(R.id.new_fragment); in onCreateView() local 55 button.setOnClickListener(new OnClickListener() { in onCreateView() 61 button = (Button)v.findViewById(R.id.delete_fragment); in onCreateView() 62 button.setOnClickListener(new OnClickListener() { in onCreateView() 68 button = (Button)v.findViewById(R.id.home); in onCreateView() 69 button.setOnClickListener(new OnClickListener() { in onCreateView()
|
D | SendResult.java | 53 Button button = (Button)findViewById(R.id.corky); in onCreate() local 54 button.setOnClickListener(mCorkyListener); in onCreate() 55 button = (Button)findViewById(R.id.violet); in onCreate() 56 button.setOnClickListener(mVioletListener); in onCreate()
|
/frameworks/support/samples/SupportVectorDrawableDemos/src/com/example/android/support/vectordrawable/app/ |
D | SimpleAnimatedVectorDrawable.java | 94 Button button = new Button(this); in addDrawableButtons() local 95 button.setWidth(200); in addDrawableButtons() 96 button.setHeight(200); in addDrawableButtons() 97 button.setBackgroundDrawable(d[i]); in addDrawableButtons() 98 container.addView(button); in addDrawableButtons() 99 button.setOnClickListener(this); in addDrawableButtons()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/car/ |
D | CarNavigationBarController.java | 162 CarNavigationButton button = createNavButton(icon); in bind() local 163 initClickListeners(button, i, intents.getString(i), longPressIntents.getString(i)); in bind() 165 mNavButtons.add(button); in bind() 166 mNavBar.addButton(button, createNavButton(icon) /* lightsOutButton */); in bind() 312 CarNavigationButton button = (CarNavigationButton) View.inflate(mContext, in createNavButton() local 314 button.setResources(icon); in createNavButton() 317 button.setLayoutParams(lp); in createNavButton() 319 return button; in createNavButton() 326 private void initClickListeners(View button, int index, String clickString, in initClickListeners() argument 335 button.setOnClickListener(v -> onFacetClicked(intent, index)); in initClickListeners() [all …]
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/ |
D | ButtonBarItem.java | 98 Button button = buttonItem.createButton(layout); in onBindView() local 99 layout.addView(button); in onBindView() 119 for (ButtonItem button : mButtons) { in findItemById() 120 final ItemHierarchy item = button.findItemById(id); in findItemById()
|