/frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/ |
RadioGroupBindingAdapter.java | 22 import android.widget.RadioGroup; 23 import android.widget.RadioGroup.OnCheckedChangeListener; 26 @InverseBindingMethod(type = RadioGroup.class, attribute = "android:checkedButton", method = "getCheckedRadioButtonId"), 30 public static void setCheckedButton(RadioGroup view, int id) { 38 public static void setListeners(RadioGroup view, final OnCheckedChangeListener listener, 45 public void onCheckedChanged(RadioGroup group, int checkedId) {
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
RadioGroupTest.java | 3 import android.widget.RadioGroup; 21 RadioGroup radioGroup = new RadioGroup(null); 22 assertThat(radioGroup.getCheckedRadioButtonId(), equalTo(-1)); 23 radioGroup.check(99); 24 assertThat(radioGroup.getCheckedRadioButtonId(), equalTo(99)); 29 RadioGroup radioGroup = new RadioGroup(null) [all...] |
RadioButtonTest.java | 4 import android.widget.RadioGroup; 59 RadioGroup radioGroup = new RadioGroup(null); 60 radioGroup.addView(radioButton1); 61 radioGroup.addView(radioButton2); 64 assertThat(radioGroup.getCheckedRadioButtonId(), equalTo(radioButton1.getId())); 67 assertThat(radioGroup.getCheckedRadioButtonId(), equalTo(radioButton2.getId()));
|
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
OneTimeRadioGroupListener.java | 23 import android.widget.RadioGroup; 29 * Custom {@link android.widget.RadioGroup.OnCheckedChangeListener} used to assert an 30 * {@link RadioGroup} was auto-filled properly. 32 final class OneTimeRadioGroupListener implements RadioGroup.OnCheckedChangeListener { 35 private final RadioGroup radioGroup; 38 OneTimeRadioGroupListener(String name, RadioGroup radioGroup, int expectedAutoFilledValue) { 40 this.radioGroup = radioGroup; [all...] |
MultipleTimesRadioGroupListener.java | 23 import android.widget.RadioGroup; 29 * Custom {@link RadioGroup.OnCheckedChangeListener} used to assert an 30 * {@link RadioGroup} was auto-filled properly. 32 final class MultipleTimesRadioGroupListener implements RadioGroup.OnCheckedChangeListener { 35 private final RadioGroup mRadioGroup; 38 MultipleTimesRadioGroupListener(String name, int times, RadioGroup radioGroup, 41 mRadioGroup = radioGroup; 47 public void onCheckedChanged(RadioGroup group, int checkedId) { 53 assertWithMessage("Timeout (%s ms) on RadioGroup %s", FILL_TIMEOUT_MS, mName [all...] |
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowRadioButton.java | 5 import android.widget.RadioGroup; 21 /* This simulates the listener a parent RadioGroup would have, listening to the 24 if (viewParent instanceof RadioGroup) { 25 ((RadioGroup) viewParent).check(getId());
|
ShadowRadioGroup.java | 3 import android.widget.RadioGroup; 8 import static android.widget.RadioGroup.OnCheckedChangeListener; 11 @Implements(RadioGroup.class) 14 protected RadioGroup realGroup;
|
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
RadioGroup1.java | 25 import android.widget.RadioGroup; 31 public class RadioGroup1 extends Activity implements RadioGroup.OnCheckedChangeListener, 35 private RadioGroup mRadioGroup; 42 mRadioGroup = (RadioGroup) findViewById(R.id.menu); 48 LinearLayout.LayoutParams layoutParams = new RadioGroup.LayoutParams( 49 RadioGroup.LayoutParams.WRAP_CONTENT, 50 RadioGroup.LayoutParams.WRAP_CONTENT); 64 public void onCheckedChanged(RadioGroup group, int checkedId) {
|
/cts/tests/tests/widget/src/android/widget/cts/ |
RadioGroup_LayoutParamsTest.java | 32 import android.widget.RadioGroup; 43 * Test {@link RadioGroup.LayoutParams}. 57 RadioGroup.LayoutParams mLayoutParams = 58 new RadioGroup.LayoutParams(Integer.MIN_VALUE, Integer.MAX_VALUE); 63 mLayoutParams = new RadioGroup.LayoutParams(Integer.MAX_VALUE, Integer.MIN_VALUE); 68 mLayoutParams = new RadioGroup.LayoutParams(Integer.MIN_VALUE, Integer.MAX_VALUE, 74 mLayoutParams = new RadioGroup.LayoutParams(Integer.MIN_VALUE, Integer.MAX_VALUE, 80 mLayoutParams = new RadioGroup.LayoutParams(new ViewGroup.LayoutParams(40, 60)); 85 mLayoutParams = new RadioGroup.LayoutParams(new ViewGroup.MarginLayoutParams(100, 200)); 100 mLayoutParams = new RadioGroup.LayoutParams(source) [all...] |
RadioGroupCtsActivity.java | 21 import android.widget.RadioGroup; 24 * A minimal application for {@link RadioGroup} test.
|
RadioGroupTest.java | 40 import android.widget.RadioGroup; 41 import android.widget.RadioGroup.LayoutParams; 42 import android.widget.RadioGroup.OnCheckedChangeListener; 56 * Test {@link RadioGroup}. 62 private RadioGroup mRadioGroup; 71 mRadioGroup = (RadioGroup) mActivity.findViewById(R.id.radio_group); 76 new RadioGroup(mActivity); 79 new RadioGroup(mActivity, attrs); 80 new RadioGroup(mActivity, null); 113 mRadioGroup.addView(newButton, new RadioGroup.LayoutParams [all...] |
/development/tutorials/MoarRam/src/com/android/benchmark/moarram/ |
MainActivity.java | 7 import android.widget.RadioGroup; 45 RadioGroup sizeGroup = (RadioGroup) findViewById(R.id.blockSize); 53 RadioGroup sizeGroup = (RadioGroup) findViewById(R.id.blockSize);
|
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/ |
WidgetTypeChooser.java | 25 import android.widget.RadioGroup; 26 import android.widget.RadioGroup.OnCheckedChangeListener; 34 public void onCheckedChanged(RadioGroup group, int checkedId) { 47 RadioGroup rg = (RadioGroup) findViewById(R.id.widget_type);
|
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/ |
RadioGroupBindingAdapterTest.java | 21 import android.widget.RadioGroup; 26 RadioGroup mView;
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
RadioGroupPreCheckedTest.java | 27 * Exercises {@link android.widget.RadioGroup}'s check feature. 41 RadioGroup group = (RadioGroup) activity.findViewById(R.id.group); 58 RadioGroup group = (RadioGroup) activity.findViewById(R.id.group);
|
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/graphics/ |
DrawableCompatActivity.java | 28 import android.widget.RadioGroup; 52 RadioGroup rg = findViewById(R.id.drawable_compat_options); 53 rg.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() { 55 public void onCheckedChanged(RadioGroup radioGroup, int id) {
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
RotationAnimation.java | 28 import android.widget.RadioGroup; 52 ((RadioGroup)findViewById(R.id.rotation_radio_group)).setOnCheckedChangeListener( 53 new RadioGroup.OnCheckedChangeListener() { 55 public void onCheckedChanged(RadioGroup group, int checkedId) {
|
/developers/build/prebuilts/gradle/BasicTransition/Application/src/main/java/com/example/android/basictransition/ |
BasicTransitionFragment.java | 27 import android.widget.RadioGroup; 30 implements RadioGroup.OnCheckedChangeListener { 55 RadioGroup radioGroup = (RadioGroup) view.findViewById(R.id.select_scene); 56 radioGroup.setOnCheckedChangeListener(this); 83 public void onCheckedChanged(RadioGroup group, int checkedId) {
|
/developers/samples/android/ui/transition/BasicTransition/Application/src/main/java/com/example/android/basictransition/ |
BasicTransitionFragment.java | 27 import android.widget.RadioGroup; 30 implements RadioGroup.OnCheckedChangeListener { 55 RadioGroup radioGroup = (RadioGroup) view.findViewById(R.id.select_scene); 56 radioGroup.setOnCheckedChangeListener(this); 83 public void onCheckedChanged(RadioGroup group, int checkedId) {
|
/development/samples/browseable/BasicTransition/src/com.example.android.basictransition/ |
BasicTransitionFragment.java | 27 import android.widget.RadioGroup; 30 implements RadioGroup.OnCheckedChangeListener { 55 RadioGroup radioGroup = (RadioGroup) view.findViewById(R.id.select_scene); 56 radioGroup.setOnCheckedChangeListener(this); 83 public void onCheckedChanged(RadioGroup group, int checkedId) {
|
/frameworks/base/core/java/android/widget/ |
RadioGroup.java | 46 * <p>See {@link android.R.styleable#RadioGroup RadioGroup Attributes}, 57 public class RadioGroup extends LinearLayout { 58 private static final String LOG_TAG = RadioGroup.class.getSimpleName(); 76 public RadioGroup(Context context) { 85 public RadioGroup(Context context, AttributeSet attrs) { 88 // RadioGroup is important by default, unless app developer overrode attribute. 96 attrs, com.android.internal.R.styleable.RadioGroup, com.android.internal.R.attr.radioButtonStyle, 0); 246 return new RadioGroup.LayoutParams(getContext(), attrs); 254 return p instanceof RadioGroup.LayoutParams [all...] |
/developers/build/prebuilts/gradle/LNotifications/Application/src/main/java/com/example/android/lnotifications/ |
VisibilityMetadataFragment.java | 28 import android.widget.RadioGroup; 41 * {@link RadioGroup} that has Visibility RadioButton in its children. 43 private RadioGroup mRadioGroup; 97 mRadioGroup = (RadioGroup) view.findViewById(R.id.visibility_radio_group); 120 * Returns a {@link NotificationVisibility} depending on which RadioButton in the radiogroup 123 * @param radiogroup The RadioGroup. 126 private NotificationVisibility getVisibilityFromSelectedRadio(RadioGroup radiogroup) { 127 switch (radiogroup.getCheckedRadioButtonId()) [all...] |
/developers/samples/android/notification/LNotifications/Application/src/main/java/com/example/android/lnotifications/ |
VisibilityMetadataFragment.java | 28 import android.widget.RadioGroup; 41 * {@link RadioGroup} that has Visibility RadioButton in its children. 43 private RadioGroup mRadioGroup; 97 mRadioGroup = (RadioGroup) view.findViewById(R.id.visibility_radio_group); 120 * Returns a {@link NotificationVisibility} depending on which RadioButton in the radiogroup 123 * @param radiogroup The RadioGroup. 126 private NotificationVisibility getVisibilityFromSelectedRadio(RadioGroup radiogroup) { 127 switch (radiogroup.getCheckedRadioButtonId()) [all...] |
/development/samples/browseable/LNotifications/src/com.example.android.lnotifications/ |
VisibilityMetadataFragment.java | 28 import android.widget.RadioGroup; 41 * {@link RadioGroup} that has Visibility RadioButton in its children. 43 private RadioGroup mRadioGroup; 97 mRadioGroup = (RadioGroup) view.findViewById(R.id.visibility_radio_group); 120 * Returns a {@link NotificationVisibility} depending on which RadioButton in the radiogroup 123 * @param radiogroup The RadioGroup. 126 private NotificationVisibility getVisibilityFromSelectedRadio(RadioGroup radiogroup) { 127 switch (radiogroup.getCheckedRadioButtonId()) [all...] |
/development/samples/BackupRestore/src/com/example/android/backuprestore/ |
BackupRestoreActivity.java | 27 import android.widget.RadioGroup; 111 RadioGroup mFillingGroup; 130 mFillingGroup = (RadioGroup) findViewById(R.id.filling_group); 196 new RadioGroup.OnCheckedChangeListener() { 197 public void onCheckedChanged(RadioGroup group,
|