/external/robolectric/v1/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...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/ |
TwoStatePreferenceHelper.java | 65 static void addSwitchPreferenceBasedOnCheckBoxPreference(final CheckBoxPreference checkBox, 67 final SwitchPreference switchPref = new SwitchPreference(checkBox.getContext()); 68 switchPref.setTitle(checkBox.getTitle()); 69 switchPref.setKey(checkBox.getKey()); 70 switchPref.setOrder(checkBox.getOrder()); 71 switchPref.setPersistent(checkBox.isPersistent()); 72 switchPref.setEnabled(checkBox.isEnabled()); 73 switchPref.setChecked(checkBox.isChecked()); 74 switchPref.setSummary(checkBox.getSummary()); 75 switchPref.setSummaryOn(checkBox.getSummaryOn()) [all...] |
/external/autotest/frontend/client/src/autotest/afe/ |
CheckBoxPanel.java | 22 public void add(ICheckBox checkBox) { 23 checkBoxes.add(checkBox); 28 for(ICheckBox checkBox : checkBoxes) { 29 if (checkBox.getValue()) { 30 result.add(checkBox);
|
/external/autotest/frontend/client/src/autotest/common/table/ |
CheckboxFilter.java | 8 import com.google.gwt.user.client.ui.CheckBox; 12 private CheckBox checkBox = new CheckBox(); 16 checkBox.addClickHandler(this); 25 return checkBox; 30 return checkBox.getValue(); 34 checkBox.setValue(active);
|
SelectionManager.java | 9 import com.google.gwt.user.client.ui.CheckBox; 180 CheckBox checkBox = new CheckBox(); 182 checkBox.setValue(true); 184 return new TableClickWidget(checkBox, this, row, cell);
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
MultiSelectEntryContactListAdapter.java | 27 import android.widget.CheckBox; 95 * Toggle the checkbox beside the contact for {@param contactId}. 123 // checkbox for the Me profile entry and other directory contacts except local directory. 128 final CheckBox checkBox = view.getCheckBox(); 130 checkBox.setChecked(mSelectedContactIds.contains(contactId)); 131 checkBox.setTag(contactId); 132 checkBox.setOnClickListener(mCheckBoxClickListener); 138 final CheckBox checkBox = (CheckBox) v [all...] |
/frameworks/base/tests/VectorDrawableTest/src/com/android/test/dynamic/ |
VectorCheckbox.java | 22 import android.widget.CheckBox; 60 CheckBox checkBox = new CheckBox(this); 61 bArray[i] = checkBox; 62 checkBox.setWidth(200); 63 checkBox.setButtonDrawable(icon[i]); 64 container.addView(checkBox);
|
/packages/apps/TV/src/com/android/tv/ui/sidepanel/ |
CheckBoxItem.java | 48 CompoundButton checkBox = (CompoundButton) view.findViewById(getCompoundButtonId()); 50 (LinearLayout.LayoutParams) checkBox.getLayoutParams(); 54 checkBox.setLayoutParams(lp);
|
/packages/apps/Settings/src/com/android/settings/notification/ |
ZenModeScheduleDaysSelection.java | 22 import android.widget.CheckBox; 58 final CheckBox checkBox = (CheckBox) inflater.inflate(R.layout.zen_schedule_rule_day, 61 checkBox.setText(mDayFormat.format(c.getTime())); 62 checkBox.setChecked(mDays.get(day)); 63 checkBox.setOnCheckedChangeListener(new OnCheckedChangeListener() { 70 mLayout.addView(checkBox);
|
/frameworks/base/tools/layoutlib/bridge/tests/res/testApp/MyApplication/build/intermediates/classes/debug/com/android/layoutlib/test/myapplication/ |
R$id.class | |
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
AlbumDataAdapter.java | 26 import android.widget.CheckBox; 90 if (vCheckBox != null && vCheckBox instanceof CheckBox) { 91 CheckBox checkBox = (CheckBox) vCheckBox; 92 checkBox.setChecked(isSelected(position)); 93 checkBox.setTag(R.id.data_payload, data); 172 if (vCheckBox != null && vCheckBox instanceof CheckBox) { 173 final CheckBox checkBox = (CheckBox) vCheckBox [all...] |
/external/proguard/src/proguard/gui/ |
FilterBuilder.java | 82 JCheckBox checkBox = checkBoxes[index]; 83 String name = checkBox.getText(); 87 if (checkBox.isSelected())
|
/packages/apps/Messaging/tests/src/com/android/messaging/ui/mediapicker/ |
GalleryGridItemViewTest.java | 21 import android.widget.CheckBox; 59 final CheckBox checkBox = (CheckBox) view.findViewById(R.id.checkbox); 64 assertNotNull(checkBox); 66 assertEquals(View.VISIBLE, checkBox.getVisibility()); 67 assertEquals(isSelected, checkBox.isChecked()); 69 assertNotSame(View.VISIBLE, checkBox.getVisibility());
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
HierarchicalFolderSelectorAdapter.java | 59 final CompoundButton checkBox = (CompoundButton) view.findViewById(R.id.checkbox); 63 if (checkBox != null) { 64 checkBox.setText(TextUtils.isEmpty(row.mPathName) ? folder.name
|
FolderSelectorAdapter.java | 322 final CheckedTextView checkBox = (CheckedTextView) view.findViewById(R.id.checkbox); 323 if (checkBox != null) { 324 // Suppress the checkbox selection, and handle the toggling of the 326 checkBox.setClickable(false); 327 checkBox.setText(folderDisplay); 328 checkBox.setChecked(row.isSelected());
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/relative/ |
DeletionHandlerTest.java | 181 " <CheckBox\n" + 188 " android:text=\"CheckBox\" />\n" + 202 TestNode checkBox = TestNode.findById(targetNode, "@+id/checkBox1"); 205 List<INode> deletedNodes = Arrays.<INode>asList(button7, checkBox); 209 layout.removeChild(checkBox); 310 " <CheckBox\n" + 316 " android:text=\"CheckBox\" />\n" + 342 " <CheckBox\n" + 347 " android:text=\"CheckBox\">\n" + 348 " </CheckBox>\n" [all...] |
/packages/apps/Messaging/tests/src/com/android/messaging/ui/attachmentchooser/ |
AttachmentChooserFragmentTest.java | 21 import android.widget.CheckBox; 152 final CheckBox checkBox = (CheckBox) itemView.findViewById(R.id.checkbox); 153 assertEquals(true, checkBox.isChecked()); 155 clickButton(checkBox); 156 assertEquals(false, checkBox.isChecked()); 161 final CheckBox checkBox2 = (CheckBox) itemView2.findViewById(R.id.checkbox) [all...] |
/external/libgdx/extensions/gdx-tools/src/com/badlogic/gdx/tools/flame/ |
EditorPanel.java | 250 protected static void setValue(JCheckBox checkBox, boolean isSelected){ 251 ActionListener[] listeners = checkBox.getActionListeners(); 255 checkBox.removeActionListener(listener); 257 checkBox.setSelected(isSelected); 258 if(listener != null) checkBox.addActionListener(listener);
|
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/ |
UITest.java | 28 import com.badlogic.gdx.scenes.scene2d.ui.CheckBox; 99 final CheckBox checkBox = new CheckBox(" Continuous rendering", skin); 100 checkBox.setChecked(true); 152 window.add(checkBox); 192 checkBox.addListener(new ChangeListener() { 194 Gdx.graphics.setContinuousRendering(checkBox.isChecked());
|
/external/libgdx/extensions/gdx-tools/src/com/badlogic/gdx/tools/hiero/unicodefont/effects/ |
EffectUtil.java | 111 JCheckBox checkBox = new JCheckBox();
112 checkBox.setSelected(currentValue);
113 if (showValueDialog(checkBox, description)) value = String.valueOf(checkBox.isSelected());
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/templates/ |
NewTemplatePage.java | 328 Button checkBox = new Button(container, SWT.CHECK); 329 checkBox.setText(name); 330 checkBox.setData(parameter); 331 parameter.control = checkBox; 332 checkBox.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 337 checkBox.setSelection(selected); 341 checkBox.addSelectionListener(this); 342 checkBox.addFocusListener(this); 345 mFirst = checkBox; 349 checkBox.setToolTipText(help) [all...] |
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/ |
BaseLayoutManagerActivity.java | 35 import android.widget.CheckBox; 113 final CheckBox checkBox = (CheckBox) findViewById(R.id.enable_smooth_scroll); 123 final boolean smooth = checkBox.isChecked();
|
/packages/apps/Gallery/src/com/android/camera/ |
ImageGallery.java | 858 Drawable checkBox = mMultiSelected.contains(image) 861 int width = checkBox.getIntrinsicWidth(); 862 int height = checkBox.getIntrinsicHeight(); 866 checkBox.setBounds(mSrcRect); 867 checkBox.draw(canvas); [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
AlertDialogSamples.java | 405 Button checkBox = (Button) findViewById(R.id.checkbox_button); 406 checkBox.setOnClickListener(new OnClickListener() {
|
/packages/apps/Dialer/src/com/android/dialer/interactions/ |
PhoneNumberInteraction.java | 44 import android.widget.CheckBox; 244 final CheckBox checkBox = (CheckBox)alertDialog.findViewById(R.id.setPrimary); 245 if (checkBox.isChecked()) {
|