/cts/tests/tests/widget/src/android/widget/cts/ |
CheckBoxTest.java | 27 import android.widget.CheckBox; 34 new CheckBox(mContext, mAttrSet, 0); 35 new CheckBox(mContext, mAttrSet); 36 new CheckBox(mContext); 39 new CheckBox(null, null, -1); 46 new CheckBox(null, null); 53 new CheckBox(null);
|
/frameworks/base/core/java/android/widget/ |
CheckBox.java | 27 * A checkbox is a specific type of two-states button that can be either 28 * checked or unchecked. A example usage of a checkbox inside your activity 39 * final CheckBox checkBox = (CheckBox) findViewById(R.id.checkbox_id); 40 * if (checkBox.isChecked()) { 41 * checkBox.setChecked(false); 47 * <p>See the <a href="{@docRoot}guide/topics/ui/controls/checkbox.html">Checkboxes</a> 58 public class CheckBox extends CompoundButton { 59 public CheckBox(Context context) [all...] |
/developers/build/prebuilts/gradle/AdvancedImmersiveMode/AdvancedImmersiveModeSample/src/main/java/com/example/android/advancedimmersivemode/ |
AdvancedImmersiveModeFragment.java | 23 import android.widget.CheckBox; 35 public CheckBox mHideNavCheckbox; 36 public CheckBox mHideStatusBarCheckBox; 37 public CheckBox mImmersiveModeCheckBox; 38 public CheckBox mImmersiveModeStickyCheckBox; 39 public CheckBox mLowProfileCheckBox; 56 mLowProfileCheckBox = new CheckBox(getActivity()); 60 mHideNavCheckbox = new CheckBox(getActivity()); 65 mHideStatusBarCheckBox = new CheckBox(getActivity()); 70 mImmersiveModeCheckBox = new CheckBox(getActivity()) [all...] |
/development/samples/browseable/AdvancedImmersiveMode/src/com.example.android.advancedimmersivemode/ |
AdvancedImmersiveModeFragment.java | 23 import android.widget.CheckBox; 35 public CheckBox mHideNavCheckbox; 36 public CheckBox mHideStatusBarCheckBox; 37 public CheckBox mImmersiveModeCheckBox; 38 public CheckBox mImmersiveModeStickyCheckBox; 39 public CheckBox mLowProfileCheckBox; 56 mLowProfileCheckBox = new CheckBox(getActivity()); 60 mHideNavCheckbox = new CheckBox(getActivity()); 65 mHideStatusBarCheckBox = new CheckBox(getActivity()); 70 mImmersiveModeCheckBox = new CheckBox(getActivity()) [all...] |
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/infobar/ |
TranslateCheckBox.java | 7 import android.widget.CheckBox; 25 CheckBox checkBox = new CheckBox(context); 26 checkBox.setId(R.id.infobar_extra_check); 27 checkBox.setText(context.getString(R.string.translate_always_text, 29 checkBox.setChecked(mOptions.alwaysTranslateLanguageState()); 30 checkBox.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() { 41 layout.addGroup(checkBox);
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
CheckBoxTest.java | 3 import android.widget.CheckBox; 15 CheckBox checkBox = new CheckBox(null); 16 assertThat(checkBox.isChecked(), equalTo(false)); 18 checkBox.setChecked(true); 19 assertThat(checkBox.isChecked(), equalTo(true)); 21 checkBox.performClick(); 22 assertThat(checkBox.isChecked(), equalTo(false)); 24 checkBox.toggle() [all...] |
/developers/samples/android/ui/window/AdvancedImmersiveMode/AdvancedImmersiveModeSample/src/main/java/com/example/android/advancedimmersivemode/ |
AdvancedImmersiveModeFragment.java | 24 import android.widget.CheckBox; 36 public CheckBox mHideNavCheckbox; 37 public CheckBox mHideStatusBarCheckBox; 38 public CheckBox mImmersiveModeCheckBox; 39 public CheckBox mImmersiveModeStickyCheckBox; 40 public CheckBox mLowProfileCheckBox; 52 mLowProfileCheckBox = (CheckBox) flagsView.findViewById(R.id.flag_enable_lowprof); 53 mHideNavCheckbox = (CheckBox) flagsView.findViewById(R.id.flag_hide_navbar); 54 mHideStatusBarCheckBox = (CheckBox) flagsView.findViewById(R.id.flag_hide_statbar); 55 mImmersiveModeCheckBox = (CheckBox) flagsView.findViewById(R.id.flag_enable_immersive) [all...] |
/packages/apps/Email/src/com/android/email/activity/setup/ |
DebugFragment.java | 26 import android.widget.CheckBox; 40 private CheckBox mEnableDebugLoggingView; 41 private CheckBox mEnableVerboseLoggingView; 42 private CheckBox mEnableFileLoggingView; 43 private CheckBox mInhibitGraphicsAccelerationView; 44 private CheckBox mEnableStrictModeView; 62 mEnableDebugLoggingView = (CheckBox) UiUtilities.getView(view, R.id.debug_logging); 65 mEnableVerboseLoggingView = (CheckBox) UiUtilities.getView(view, R.id.verbose_logging); 67 (CheckBox) UiUtilities.getView(view, R.id.file_logging); 84 mInhibitGraphicsAccelerationView = (CheckBox) [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/animation/ |
LayoutAnimations.java | 31 import android.widget.CheckBox; 95 CheckBox customAnimCB = (CheckBox) findViewById(R.id.customAnimCB); 103 CheckBox appearingCB = (CheckBox) findViewById(R.id.appearingCB); 109 CheckBox disappearingCB = (CheckBox) findViewById(R.id.disappearingCB); 115 CheckBox changingAppearingCB = (CheckBox) findViewById(R.id.changingAppearingCB); 121 CheckBox changingDisappearingCB = (CheckBox) findViewById(R.id.changingDisappearingCB) [all...] |
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
FileItemInfoLayout.java | 10 import android.widget.CheckBox; 23 private CheckBox mCheckbox; 52 mCheckbox = (CheckBox) findViewById(R.id.misc_checkbox); 68 public CheckBox getCheckBox() {
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
FragmentMenuFragment.java | 29 import android.widget.CheckBox; 37 CheckBox mCheckBox1; 38 CheckBox mCheckBox2; 68 mCheckBox1 = (CheckBox)v.findViewById(R.id.menu1); 70 mCheckBox2 = (CheckBox)v.findViewById(R.id.menu2);
|
FragmentMenu.java | 31 import android.widget.CheckBox; 39 CheckBox mCheckBox1; 40 CheckBox mCheckBox2; 70 mCheckBox1 = (CheckBox)findViewById(R.id.menu1); 72 mCheckBox2 = (CheckBox)findViewById(R.id.menu2);
|
/development/samples/Support4Demos/src/com/example/android/supportv4/app/ |
FragmentMenuFragmentSupport.java | 30 import android.widget.CheckBox; 38 CheckBox mCheckBox1; 39 CheckBox mCheckBox2; 69 mCheckBox1 = (CheckBox)v.findViewById(R.id.menu1); 71 mCheckBox2 = (CheckBox)v.findViewById(R.id.menu2);
|
FragmentMenuSupport.java | 33 import android.widget.CheckBox; 41 CheckBox mCheckBox1; 42 CheckBox mCheckBox2; 72 mCheckBox1 = (CheckBox)findViewById(R.id.menu1); 74 mCheckBox2 = (CheckBox)findViewById(R.id.menu2);
|
/packages/apps/Camera/src/com/android/camera/ui/ |
InLineSettingCheckBox.java | 22 import android.widget.CheckBox; 32 private CheckBox mCheckBox; 48 mCheckBox = (CheckBox) findViewById(R.id.setting_check_box);
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
InLineSettingCheckBox.java | 22 import android.widget.CheckBox; 31 private CheckBox mCheckBox; 47 mCheckBox = (CheckBox) findViewById(R.id.setting_check_box);
|
/development/samples/devbytes/animation/ListViewAnimations/src/com/example/android/listviewanimations/ |
ListViewAnimations.java | 32 import android.widget.CheckBox; 49 final CheckBox vpaCB = (CheckBox) findViewById(R.id.vpaCB); 50 final CheckBox setTransientStateCB = (CheckBox) findViewById(R.id.setTransientStateCB);
|
/development/samples/Support7Demos/src/com/example/android/supportv7/app/ |
ActionBarFragmentMenu.java | 32 import android.widget.CheckBox; 41 CheckBox mCheckBox1; 42 CheckBox mCheckBox2; 43 CheckBox mCheckBox3; 44 CheckBox mHasOptionsMenu; 45 CheckBox mMenuVisibility; 76 mCheckBox1 = (CheckBox)findViewById(R.id.menu1); 78 mCheckBox2 = (CheckBox)findViewById(R.id.menu2); 80 mCheckBox3 = (CheckBox)findViewById(R.id.menu3); 82 mHasOptionsMenu = (CheckBox)findViewById(R.id.has_options_menu) [all...] |
/frameworks/base/tests/BatteryWaster/src/com/android/batterywaster/ |
BatteryWaster.java | 29 import android.widget.CheckBox; 55 findViewById(R.id.checkbox).setOnClickListener(mClickListener); 75 if (((CheckBox)findViewById(R.id.checkbox)).isChecked()) { 78 if (((CheckBox)findViewById(R.id.checkbox_wake)).isChecked()) { 95 CheckBox checkbox = (CheckBox)v; 96 if (checkbox.isChecked()) { 106 CheckBox checkbox = (CheckBox)v [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
SystemUIModes.java | 36 import android.widget.CheckBox; 178 CheckBox[] mCheckControls = new CheckBox[8]; 204 mCheckControls[0] = (CheckBox) findViewById(R.id.modeLowProfile); 205 mCheckControls[1] = (CheckBox) findViewById(R.id.modeFullscreen); 206 mCheckControls[2] = (CheckBox) findViewById(R.id.modeHideNavigation); 207 mCheckControls[3] = (CheckBox) findViewById(R.id.modeImmersive); 208 mCheckControls[4] = (CheckBox) findViewById(R.id.modeImmersiveSticky); 209 mCheckControls[5] = (CheckBox) findViewById(R.id.layoutStable); 210 mCheckControls[6] = (CheckBox) findViewById(R.id.layoutFullscreen) [all...] |
Hover.java | 31 import android.widget.CheckBox; 54 * A checkbox is used to control whether a special view, the Interceptor, will intercept 61 private CheckBox mInterceptCheckBox; 71 mInterceptCheckBox = (CheckBox) findViewById(R.id.intercept_checkbox);
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
TransformsAndAnimationsActivity.java | 30 import android.widget.CheckBox; 49 CheckBox layersNoneCB; 50 CheckBox layersHardwareCB; 51 CheckBox layersSoftwareCB; 72 layersNoneCB = (CheckBox) findViewById(R.id.layersNoneCB); 73 layersHardwareCB = (CheckBox) findViewById(R.id.layersHwCB); 74 layersSoftwareCB = (CheckBox) findViewById(R.id.layersSwCB); 76 layersNoneCB.setOnCheckedChangeListener(new CheckBox.OnCheckedChangeListener() { 87 layersSoftwareCB.setOnCheckedChangeListener(new CheckBox.OnCheckedChangeListener() { 98 layersHardwareCB.setOnCheckedChangeListener(new CheckBox.OnCheckedChangeListener() [all...] |
/development/samples/devbytes/graphics/BitmapAllocation/src/com/example/android/bitmapallocation/ |
BitmapAllocation.java | 24 import android.widget.CheckBox; 55 final CheckBox checkbox = (CheckBox) findViewById(R.id.checkbox); local 78 if (checkbox.isChecked()) {
|
/frameworks/base/packages/Shell/src/com/android/shell/ |
BugreportWarningActivity.java | 30 import android.widget.CheckBox; 42 private CheckBox mConfirmRepeat; 61 mConfirmRepeat = (CheckBox) ap.mView.findViewById(android.R.id.checkbox);
|
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/ui/ |
MtpFullscreenView.java | 21 import android.widget.CheckBox; 34 private CheckBox mCheckbox; 54 mCheckbox = (CheckBox) findViewById(R.id.ingest_fullsize_image_checkbox);
|