/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/ |
D | PrimaryCheckBoxPreferenceTest.java | 64 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/ |
D | TwoStatePreferenceHelper.java | 65 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/ |
D | UserRestrictionAdapter.java | 66 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/ |
D | PasswordEditTextPreferenceDialogFragmentTest.java | 79 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/ |
D | AlbumDataAdapter.java | 91 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/services/Car/tests/DiagnosticTools/src/com/google/android/car/diagnostictools/ |
D | RowViewHolder.java | 32 public CheckBox checkBox; field in RowViewHolder 41 checkBox = itemView.findViewById(R.id.checkBox); in RowViewHolder() 59 checkBox.setVisibility(showCheckBox ? View.VISIBLE : View.GONE); in RowViewHolder() 76 checkBox.setChecked(chbx); in setFields()
|
/packages/apps/Settings/src/com/android/settings/notification/zen/ |
D | ZenModeScheduleDaysSelection.java | 58 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/ |
D | GalleryGridItemViewTest.java | 59 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/ |
D | MultiSelectEntryContactListAdapter.java | 189 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/TV/src/com/android/tv/ui/sidepanel/ |
D | CheckBoxItem.java | 47 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/Messaging/tests/src/com/android/messaging/ui/attachmentchooser/ |
D | AttachmentChooserFragmentTest.java | 150 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/Settings/src/com/android/settings/applications/intentpicker/ |
D | VerifiedLinksPreference.java | 89 CheckBox checkBox = (CheckBox) view.findViewById(com.android.internal.R.id.checkbox); in onBindViewHolder() local 90 if (checkBox != null) { in onBindViewHolder() 91 checkBox.setChecked(true); in onBindViewHolder()
|
/packages/apps/Dialer/java/com/android/contacts/common/widget/ |
D | SelectPhoneAccountDialogFragment.java | 160 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/ |
D | WebViewAnimationTestActivity.java | 118 CheckBox checkBox = ((CheckBox) findViewById(R.id.use_layer)); in onCreate() local 119 checkBox.setOnCheckedChangeListener( in onCreate() 121 setWebViewLayer(checkBox.isChecked()); in onCreate()
|
/packages/apps/Gallery/src/com/android/camera/ |
D | 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);
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
D | AccessibilityShortcutPreferenceFragment.java | 332 private void setDialogTextAreaClickListener(View dialogView, CheckBox checkBox) { in setDialogTextAreaClickListener() argument 334 dialogTextArea.setOnClickListener(v -> checkBox.toggle()); in setDialogTextAreaClickListener()
|
D | AccessibilityDialogUtils.java | 319 final CheckBox checkBox = view.findViewById(R.id.checkbox); in setupShortcutWidget() local 320 checkBox.setText(titleText); in setupShortcutWidget()
|
D | ToggleScreenMagnificationPreferenceFragment.java | 221 private void setDialogTextAreaClickListener(View dialogView, CheckBox checkBox) { in setDialogTextAreaClickListener() argument 223 dialogTextArea.setOnClickListener(v -> checkBox.toggle()); in setDialogTextAreaClickListener()
|
D | ToggleFeaturePreferenceFragment.java | 563 private void setDialogTextAreaClickListener(View dialogView, CheckBox checkBox) { in setDialogTextAreaClickListener() argument 565 dialogTextArea.setOnClickListener(v -> checkBox.toggle()); in setDialogTextAreaClickListener()
|
/packages/apps/Dialer/java/com/android/dialer/interactions/ |
D | PhoneNumberInteraction.java | 560 final CheckBox checkBox = (CheckBox) alertDialog.findViewById(R.id.setPrimary); in onClick() local 561 if (checkBox.isChecked()) { in onClick()
|
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastCursorAdapter.java | 225 mCheckedTextView = view.findViewById(R.id.checkBox); in bindView()
|