Home
last modified time | relevance | path

Searched refs:checkBox (Results 1 – 16 of 16) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
DMasterCheckBoxPreferenceTest.java64 final CheckBox checkBox = (CheckBox) holder.findViewById(R.id.checkboxWidget); in setChecked_shouldUpdateCheckBoxCheckedState() local
68 assertThat(checkBox.isChecked()).isTrue(); in setChecked_shouldUpdateCheckBoxCheckedState()
71 assertThat(checkBox.isChecked()).isFalse(); in setChecked_shouldUpdateCheckBoxCheckedState()
79 final CheckBox checkBox = (CheckBox) holder.findViewById(R.id.checkboxWidget); in setEnabled_shouldUpdateCheckBoxEnabledState() local
83 assertThat(checkBox.isEnabled()).isTrue(); in setEnabled_shouldUpdateCheckBoxEnabledState()
86 assertThat(checkBox.isEnabled()).isFalse(); in setEnabled_shouldUpdateCheckBoxEnabledState()
94 final CheckBox checkBox = (CheckBox) holder.findViewById(R.id.checkboxWidget); in setCheckboxEnabled_shouldOnlyUpdateCheckBoxEnabledState() local
99 assertThat(checkBox.isEnabled()).isFalse(); in setCheckboxEnabled_shouldOnlyUpdateCheckBoxEnabledState()
103 assertThat(checkBox.isEnabled()).isTrue(); in setCheckboxEnabled_shouldOnlyUpdateCheckBoxEnabledState()
111 final CheckBox checkBox = (CheckBox) holder.findViewById(R.id.checkboxWidget); in onBindViewHolder_shouldSetCheckboxEnabledState() local
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
DTwoStatePreferenceHelper.java65 static void addSwitchPreferenceBasedOnCheckBoxPreference(final CheckBoxPreference checkBox, in addSwitchPreferenceBasedOnCheckBoxPreference() argument
67 final SwitchPreference switchPref = new SwitchPreference(checkBox.getContext()); in addSwitchPreferenceBasedOnCheckBoxPreference()
68 switchPref.setTitle(checkBox.getTitle()); in addSwitchPreferenceBasedOnCheckBoxPreference()
69 switchPref.setKey(checkBox.getKey()); in addSwitchPreferenceBasedOnCheckBoxPreference()
70 switchPref.setOrder(checkBox.getOrder()); in addSwitchPreferenceBasedOnCheckBoxPreference()
71 switchPref.setPersistent(checkBox.isPersistent()); in addSwitchPreferenceBasedOnCheckBoxPreference()
72 switchPref.setEnabled(checkBox.isEnabled()); in addSwitchPreferenceBasedOnCheckBoxPreference()
73 switchPref.setChecked(checkBox.isChecked()); in addSwitchPreferenceBasedOnCheckBoxPreference()
74 switchPref.setSummary(checkBox.getSummary()); in addSwitchPreferenceBasedOnCheckBoxPreference()
75 switchPref.setSummaryOn(checkBox.getSummaryOn()); in addSwitchPreferenceBasedOnCheckBoxPreference()
[all …]
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/users/
DUserRestrictionAdapter.java66 CheckBox checkBox = new CheckBox(mContext); in createCheckBox() local
67 checkBox.setTextSize(resources.getDimensionPixelSize(R.dimen.users_checkbox_text_size)); in createCheckBox()
69 checkBox.setPadding(padding, padding, padding, padding); in createCheckBox()
70 checkBox.setText(item.getKey()); in createCheckBox()
71 checkBox.setOnCheckedChangeListener((v, isChecked) -> item.setIsChecked(isChecked)); in createCheckBox()
72 checkBox.setChecked(item.getIsChecked()); in createCheckBox()
73 return checkBox; in createCheckBox()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/common/
DPasswordEditTextPreferenceDialogFragmentTest.java79 CheckBox checkBox = dialog.findViewById(R.id.checkbox); in onStart_inputTypeSetToPassword_shouldRevealShowPasswordCheckBoxUnchecked() local
81 assertThat(checkBox.getVisibility()).isEqualTo(View.VISIBLE); in onStart_inputTypeSetToPassword_shouldRevealShowPasswordCheckBoxUnchecked()
82 assertThat(!checkBox.isChecked()).isTrue(); in onStart_inputTypeSetToPassword_shouldRevealShowPasswordCheckBoxUnchecked()
90 CheckBox checkBox = dialog.findViewById(R.id.checkbox); in onCheckBoxChecked_shouldRevealRawPassword() local
93 checkBox.performClick(); in onCheckBoxChecked_shouldRevealRawPassword()
105 CheckBox checkBox = dialog.findViewById(R.id.checkbox); in onCheckBoxUnchecked_shouldObscureRawPassword() local
109 checkBox.performClick(); in onCheckBoxUnchecked_shouldObscureRawPassword()
110 checkBox.performClick(); in onCheckBoxUnchecked_shouldObscureRawPassword()
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DAlbumDataAdapter.java91 CheckBox checkBox = (CheckBox) vCheckBox; in getView() local
92 checkBox.setChecked(isSelected(position)); in getView()
93 checkBox.setTag(R.id.data_payload, data); in getView()
173 final CheckBox checkBox = (CheckBox) vCheckBox; in onClick() local
175 (PhotoSource.AlbumData) checkBox.getTag(R.id.data_payload); in onClick()
176 final boolean isChecked = !checkBox.isChecked(); in onClick()
177 checkBox.setChecked(isChecked); in onClick()
/packages/apps/Settings/src/com/android/settings/notification/
DZenModeScheduleDaysSelection.java58 final CheckBox checkBox = (CheckBox) inflater.inflate(R.layout.zen_schedule_rule_day, in ZenModeScheduleDaysSelection() local
61 checkBox.setText(mDayFormat.format(c.getTime())); in ZenModeScheduleDaysSelection()
62 checkBox.setChecked(mDays.get(day)); in ZenModeScheduleDaysSelection()
63 checkBox.setOnCheckedChangeListener(new OnCheckedChangeListener() { in ZenModeScheduleDaysSelection()
70 mLayout.addView(checkBox); in ZenModeScheduleDaysSelection()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DZenModeScheduleDaysSelection.java58 final CheckBox checkBox = (CheckBox) inflater.inflate(R.layout.zen_schedule_rule_day, in ZenModeScheduleDaysSelection() local
61 checkBox.setText(mDayFormat.format(c.getTime())); in ZenModeScheduleDaysSelection()
62 checkBox.setChecked(mDays.get(day)); in ZenModeScheduleDaysSelection()
63 checkBox.setOnCheckedChangeListener(new OnCheckedChangeListener() { in ZenModeScheduleDaysSelection()
70 mLayout.addView(checkBox); in ZenModeScheduleDaysSelection()
/packages/apps/Messaging/tests/src/com/android/messaging/ui/mediapicker/
DGalleryGridItemViewTest.java59 final CheckBox checkBox = (CheckBox) view.findViewById(R.id.checkbox); in verifyContent() local
64 assertNotNull(checkBox); in verifyContent()
66 assertEquals(View.VISIBLE, checkBox.getVisibility()); in verifyContent()
67 assertEquals(isSelected, checkBox.isChecked()); in verifyContent()
69 assertNotSame(View.VISIBLE, checkBox.getVisibility()); in verifyContent()
/packages/apps/Contacts/src/com/android/contacts/list/
DMultiSelectEntryContactListAdapter.java189 final CheckBox checkBox = view.getCheckBox(); in bindCheckBox() local
191 checkBox.setChecked(mSelectedContactIds.contains(contactId)); in bindCheckBox()
192 checkBox.setClickable(false); in bindCheckBox()
193 checkBox.setTag(contactId); in bindCheckBox()
/packages/apps/Messaging/tests/src/com/android/messaging/ui/attachmentchooser/
DAttachmentChooserFragmentTest.java150 final CheckBox checkBox = (CheckBox) itemView.findViewById(R.id.checkbox); in testUnselect() local
151 assertEquals(true, checkBox.isChecked()); in testUnselect()
153 clickButton(checkBox); in testUnselect()
154 assertEquals(false, checkBox.isChecked()); in testUnselect()
/packages/apps/TV/src/com/android/tv/ui/sidepanel/
DCheckBoxItem.java47 CompoundButton checkBox = (CompoundButton) view.findViewById(getCompoundButtonId()); in onBind() local
48 LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams) checkBox.getLayoutParams(); in onBind()
53 checkBox.setLayoutParams(lp); in onBind()
/packages/apps/Dialer/java/com/android/contacts/common/widget/
DSelectPhoneAccountDialogFragment.java160 CheckBox checkBox = checkboxLayout.findViewById(R.id.default_account_checkbox_view); in onCreateDialog() local
161 checkBox.setOnCheckedChangeListener(checkListener); in onCreateDialog()
162 checkBox.setChecked(isDefaultChecked); in onCreateDialog()
170 textView.setOnClickListener((view) -> checkBox.performClick()); in onCreateDialog()
171 checkboxLayout.setOnClickListener((view) -> checkBox.performClick()); in onCreateDialog()
/packages/apps/Browser2/src/org/chromium/webview_shell/
DWebViewAnimationTestActivity.java118 CheckBox checkBox = ((CheckBox) findViewById(R.id.use_layer)); in onCreate() local
119 checkBox.setOnCheckedChangeListener( in onCreate()
121 setWebViewLayer(checkBox.isChecked()); in onCreate()
/packages/apps/Car/libs/car-ui-lib/tests/robotests/src/com/android/car/ui/recyclerview/
DCarUiListItemTest.java255 CheckBox checkBox = getListItemCheckBoxAtPosition(0); in testCheckedState_checkbox() local
257 assertThat(checkBox.isChecked()).isEqualTo(false); in testCheckedState_checkbox()
258 checkBox.performClick(); in testCheckedState_checkbox()
259 assertThat(checkBox.isChecked()).isEqualTo(true); in testCheckedState_checkbox()
/packages/apps/Gallery/src/com/android/camera/
DImageGallery.java858 Drawable checkBox = mMultiSelected.contains(image)
861 int width = checkBox.getIntrinsicWidth();
862 int height = checkBox.getIntrinsicHeight();
866 checkBox.setBounds(mSrcRect);
867 checkBox.draw(canvas);
/packages/apps/Dialer/java/com/android/dialer/interactions/
DPhoneNumberInteraction.java560 final CheckBox checkBox = (CheckBox) alertDialog.findViewById(R.id.setPrimary); in onClick() local
561 if (checkBox.isChecked()) { in onClick()