/packages/apps/Camera2/src/com/android/camera/ |
D | ButtonManager.java | 184 MultiToggleImageButton button = null; in onSettingChanged() local 190 button = getButtonOrError(BUTTON_FLASH); in onSettingChanged() 194 button = getButtonOrError(BUTTON_TORCH); in onSettingChanged() 198 button = getButtonOrError(BUTTON_HDR_PLUS_FLASH); in onSettingChanged() 202 button = getButtonOrError(BUTTON_CAMERA); in onSettingChanged() 206 button = getButtonOrError(BUTTON_HDR_PLUS); in onSettingChanged() 210 button = getButtonOrError(BUTTON_HDR); in onSettingChanged() 214 button = getButtonOrError(BUTTON_GRID_LINES); in onSettingChanged() 222 button = getButtonOrError(BUTTON_COUNTDOWN); in onSettingChanged() 225 if (button != null && button.getState() != index) { in onSettingChanged() [all …]
|
/packages/apps/Dialer/java/com/android/incallui/incall/impl/ |
D | ButtonController.java | 51 void setButton(CheckableLabeledButton button); in setButton() argument 55 private static void resetButton(CheckableLabeledButton button) { in resetButton() argument 56 if (button != null) { in resetButton() 57 button.setOnCheckedChangeListener(null); in resetButton() 58 button.setOnClickListener(null); in resetButton() 72 protected CheckableLabeledButton button; field in ButtonController.CheckableButtonController 94 if (button != null) { in setEnabled() 95 button.setEnabled(isEnabled); in setEnabled() 107 if (button != null) { in setAllowed() 108 button.setVisibility(isAllowed ? View.VISIBLE : View.INVISIBLE); in setAllowed() [all …]
|
D | InCallButtonGridFragment.java | 82 for (CheckableLabeledButton button : buttons) { in onInCallScreenDialpadVisibilityChange() 83 button.setImportantForAccessibility( in onInCallScreenDialpadVisibilityChange() 124 @InCallButtonIds int button = buttonsToPlace.get(i); in updateButtonStates() local 125 buttonGridListener.getButtonController(button).setButton(buttons[i]); in updateButtonStates() 132 for (CheckableLabeledButton button : buttons) { in updateButtonColor() 133 button.setCheckedColor(color); in updateButtonColor()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | DropTargetBar.java | 116 for (ButtonDropTarget button : mDropTargets) { in setInsets() 117 button.setToolTipLocation(tooltipLocation); in setInsets() 138 for (ButtonDropTarget button : mDropTargets) { in onMeasure() 139 if (button.getVisibility() != GONE) { in onMeasure() 140 button.setTextVisible(false); in onMeasure() 141 button.measure(widthSpec, heightSpec); in onMeasure() 156 for (ButtonDropTarget button : mDropTargets) { in onMeasure() 157 if (button.getVisibility() != GONE) { in onMeasure() 158 button.setTextVisible(textVisible); in onMeasure() 159 button.measure(widthSpec, heightSpec); in onMeasure() [all …]
|
/packages/apps/Car/Notification/src/com/android/car/notification/template/ |
D | CarNotificationActionsView.java | 129 Button button = mActionButtons.get(i); in bind() local 130 button.setVisibility(View.VISIBLE); in bind() 132 button.setText(action.title.toString()); in bind() 135 button.setOnClickListener(clickHandlerFactory.getActionClickHandler( in bind() 165 Button button = mActionButtons.get(FIRST_MESSAGE_ACTION_BUTTON_INDEX); in createPlayButton() 166 button.setText(mContext.getString(R.string.assist_action_play_label)); in createPlayButton() 167 button.setVisibility(View.VISIBLE); in createPlayButton() 168 button.setOnClickListener(clickHandlerFactory.getPlayClickHandler(statusBarNotification)); in createPlayButton() 180 Button button = mActionButtons.get(index); in createMuteButton() local 182 button.setText((manager != null && manager.isMessageNotificationMuted( in createMuteButton() [all …]
|
/packages/apps/Dialer/java/com/android/incallui/video/impl/ |
D | SpeakerButtonController.java | 37 @NonNull private CheckableImageButton button; field in SpeakerButtonController 47 @NonNull CheckableImageButton button, in SpeakerButtonController() 52 this.button = Assert.isNotNull(button); in SpeakerButtonController() 61 button.setVisibility(View.VISIBLE); in updateButtonState() 62 button.setEnabled(isEnabled); in updateButtonState() 63 button.setChecked(isChecked); in updateButtonState() 64 button.setOnClickListener(checkable ? null : this); in updateButtonState() 65 button.setOnCheckedChangeListener(checkable ? this : null); in updateButtonState() 66 button.setImageResource(icon); in updateButtonState() 67 button.setContentDescription(contentDescription); in updateButtonState() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/controller/ |
D | ColorChooser.java | 65 final Button button = (Button) mTopView.findViewById(mButtonsID[i]); in setUp() local 66 mButton[i] = button; in setUp() 70 button.setTag(hsvo); in setUp() 71 GradientDrawable sd = ((GradientDrawable) button.getBackground()); in setUp() 76 button.setOnClickListener(new View.OnClickListener() { in setUp() 83 Button button = (Button) mTopView.findViewById(R.id.draw_color_popupbutton); in setUp() local 85 button.setOnClickListener(new View.OnClickListener() { in setUp() 115 final Button button = mButton[i]; in resetBorders() local 116 GradientDrawable sd = ((GradientDrawable) button.getBackground()); in resetBorders() 122 public void selectColor(View button, int buttonNo) { in selectColor() argument [all …]
|
D | StyleChooser.java | 47 final ImageButton button = new ImageButton(context); in setUp() local 48 button.setScaleType(ScaleType.CENTER_CROP); in setUp() 49 button.setLayoutParams(lp); in setUp() 50 button.setBackgroundResource(android.R.color.transparent); in setUp() 51 mIconButton.add(button); in setUp() 53 button.setOnClickListener(new View.OnClickListener() { in setUp() 59 mLinearLayout.addView(button); in setUp() 67 button.setImageBitmap(bmap); in setUp()
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
D | RadioOptions.java | 87 public void onClick(View button) { in updateListeners() 88 setSelectedOptionByView(button); in updateListeners() 93 View button = getChildAt(i); in updateListeners() local 94 button.setOnClickListener(onClickListener); in updateListeners() 103 View button = findViewWithTag(tag); in setSelectedOptionByTag() local 104 setSelectedOptionByView(button); in setSelectedOptionByTag() 112 View button = findViewById(id); in setSeletedOptionById() local 113 setSelectedOptionByView(button); in setSeletedOptionById()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/password/ |
D | SetupChooseLockPatternTest.java | 95 Button button = mActivity.findViewById(R.id.screen_lock_options); in optionsButton_whenPatternSelected_shouldBeVisible() local 96 assertThat(button).isNotNull(); in optionsButton_whenPatternSelected_shouldBeVisible() 97 assertThat(button.getVisibility()).isEqualTo(View.VISIBLE); in optionsButton_whenPatternSelected_shouldBeVisible() 103 assertThat(button.getVisibility()).isEqualTo(View.VISIBLE); in optionsButton_whenPatternSelected_shouldBeVisible() 107 Button button = mActivity.findViewById(R.id.screen_lock_options); in verifyScreenLockOptionsShown() local 108 assertThat(button).isNotNull(); in verifyScreenLockOptionsShown() 109 assertThat(button.getVisibility()).isEqualTo(View.VISIBLE); in verifyScreenLockOptionsShown() 111 button.performClick(); in verifyScreenLockOptionsShown() 131 Button button = mActivity.findViewById(R.id.screen_lock_options); in verifyScreenLockOptionsHidden() local 132 assertThat(button).isNotNull(); in verifyScreenLockOptionsHidden() [all …]
|
/packages/services/Telephony/src/com/android/phone/ |
D | EmergencyDialer.java | 485 public void onConfirmClick(EmergencyShortcutButton button) { in onConfirmClick() argument 486 if (button == null) return; in onConfirmClick() 487 String phoneNumber = button.getPhoneNumber(); in onConfirmClick() 500 public void onConfirmClick(EmergencyInfoGroup button) { in onConfirmClick() argument 501 if (button == null) return; in onConfirmClick() 503 Intent intent = (Intent) button.getTag(R.id.tag_intent); in onConfirmClick() 1014 EmergencyShortcutButton button = (EmergencyShortcutButton) getLayoutInflater() in setupEmergencyCallShortcutButton() 1016 button.setPhoneNumber(number); in setupEmergencyCallShortcutButton() 1017 button.setPhoneDescription(description); in setupEmergencyCallShortcutButton() 1018 button.setPhoneTypeIcon(iconRes); in setupEmergencyCallShortcutButton() [all …]
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/ |
D | GestureBot.java | 115 private void swipe(int downX, int downY, int upX, int upY, int steps, int button, in swipe() argument 130 touchDown(downX, downY, button); in swipe() 135 touchMove(downX + (int) (xStep * i), downY + (int) (yStep * i), button); in swipe() 145 private boolean touchDown(int x, int y, int button) { in touchDown() argument 147 MotionEvent event = getMotionEvent(mDownTime, mDownTime, MotionEvent.ACTION_DOWN, button, x, in touchDown() 159 private boolean touchMove(int x, int y, int button) { in touchMove() argument 161 MotionEvent event = getMotionEvent(mDownTime, eventTime, MotionEvent.ACTION_MOVE, button, x, in touchMove() 167 private static MotionEvent getMotionEvent(long downTime, long eventTime, int action, int button, in getMotionEvent() argument 182 0, button, 1.0f, 1.0f, 0, 0, InputDevice.SOURCE_TOUCHSCREEN, 0); in getMotionEvent()
|
/packages/apps/Settings/src/com/android/settings/widget/ |
D | EntityHeaderController.java | 339 private void bindButton(ImageButton button, @ActionType int action) { in bindButton() argument 340 if (button == null) { in bindButton() 346 button.setVisibility(View.GONE); in bindButton() 348 button.setImageResource(com.android.internal.R.drawable.ic_mode_edit); in bindButton() 349 button.setVisibility(View.VISIBLE); in bindButton() 350 button.setOnClickListener(mEditOnClickListener); in bindButton() 356 button.setVisibility(View.GONE); in bindButton() 358 button.setOnClickListener(v -> { in bindButton() 366 button.setVisibility(View.VISIBLE); in bindButton() 371 button.setVisibility(View.GONE); in bindButton()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/ |
D | EntityHeaderController.java | 339 private void bindButton(ImageButton button, @ActionType int action) { in bindButton() argument 340 if (button == null) { in bindButton() 346 button.setVisibility(View.GONE); in bindButton() 348 button.setImageResource(com.android.internal.R.drawable.ic_mode_edit); in bindButton() 349 button.setVisibility(View.VISIBLE); in bindButton() 350 button.setOnClickListener(mEditOnClickListener); in bindButton() 356 button.setVisibility(View.GONE); in bindButton() 358 button.setOnClickListener(v -> { in bindButton() 366 button.setVisibility(View.VISIBLE); in bindButton() 371 button.setVisibility(View.GONE); in bindButton()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/ |
D | NetworkRequestDialogFragmentTest.java | 281 final Button button = alertDialog.getButton(AlertDialog.BUTTON_NEUTRAL); in display_shouldNotShowNeutralButton() local 282 assertThat(button).isNotNull(); in display_shouldNotShowNeutralButton() 283 assertThat(button.getVisibility()).isEqualTo(View.GONE); in display_shouldNotShowNeutralButton() 305 final Button button = alertDialog.getButton(AlertDialog.BUTTON_NEUTRAL); in onMatchManyResult_showNeutralButton() local 306 assertThat(button).isNotNull(); in onMatchManyResult_showNeutralButton() 307 assertThat(button.getVisibility()).isEqualTo(View.VISIBLE); in onMatchManyResult_showNeutralButton() 327 final Button button = alertDialog.getButton(AlertDialog.BUTTON_NEUTRAL); in clickNeutralButton_hideNeutralButton() local 328 button.performClick(); in clickNeutralButton_hideNeutralButton() 331 assertThat(button.getVisibility()).isEqualTo(View.GONE); in clickNeutralButton_hideNeutralButton() 344 final Button button = alertDialog.getButton(AlertDialog.BUTTON_NEGATIVE); in cancelDialog_callsReject() local [all …]
|
/packages/apps/TV/src/com/android/tv/menu/ |
D | PlayControlsRowView.java | 305 PlayControlsButton button, in initializeButton() argument 310 button.setImageResId(imageResId); in initializeButton() 311 button.setAction(clickAction); in initializeButton() 313 button.setFocusedIconColor(focusedIconColor); in initializeButton() 315 button.findViewById(R.id.button) in initializeButton() 620 PlayControlsButton button; in updateButtons() local 623 button = mFastForwardButton; in updateButtons() 626 button = mRewindButton; in updateButtons() 629 button.setLabel(null); in updateButtons() 631 button.setLabel( in updateButtons() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
D | ButtonSwitcher.java | 159 private ViewPropertyAnimator animateButton(final View button, final int direction) { in animateButton() argument 161 final float innerX = button.getX() - button.getTranslationX(); in animateButton() 164 button.setClickable(true); in animateButton() 165 return button.animate().translationX(0); in animateButton() 167 button.setClickable(false); in animateButton() 168 return button.animate().translationX(outerX - innerX); in animateButton()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/editors/ |
D | EditorDrawTabletUI.java | 132 final ImageButton button = new ImageButton(context); in EditorDrawTabletUI() local 133 mStyleButton[i] = button; in EditorDrawTabletUI() 134 button.setScaleType(ImageView.ScaleType.CENTER_CROP); in EditorDrawTabletUI() 135 button.setLayoutParams(params); in EditorDrawTabletUI() 137 button.setImageBitmap(bitmap); in EditorDrawTabletUI() 138 button.setBackgroundResource(android.R.color.transparent); in EditorDrawTabletUI() 139 buttonContainer.addView(button); in EditorDrawTabletUI() 141 button.setOnClickListener(new View.OnClickListener() { in EditorDrawTabletUI() 271 final Button button = mColorButton[i]; in resetBorders() local 273 GradientDrawable sd = ((GradientDrawable) button.getBackground()); in resetBorders()
|
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/ |
D | MediaButtonController.java | 139 ImageButton button = mControlBar.createIconButton(icon); in createIconButton() local 142 button.setImageTintList( in createIconButton() 145 button.setImageTintList(mIconsColor); in createIconButton() 147 button.setImageTintMode(PorterDuff.Mode.SRC_ATOP); in createIconButton() 148 return button; in createIconButton() 231 ImageButton button = createIconButton(action.mIcon); in updateCustomActions() 232 button.setOnClickListener(view -> in updateCustomActions() 234 return button; in updateCustomActions()
|
/packages/apps/Dialer/java/com/android/dialer/logging/ |
D | dialer_impression.proto | 21 // User pressed the speaker phone button 24 // User pressed the speaker phone button again 28 // button in the call log 145 // sense e.g user pressed a speaker button and we want to associate that to 210 // the voicemail call log entry or pressed the play button when the 216 // The play button for voicemail call log entry was tapped directly (i.e 223 // The play button after expanding the voicemail call log entry was tapped 259 // The user has clicked the decline ToS button, and a conformation dialog 263 // The use has clicked the decline ToS button but the PIN has been 329 // User tapped the 'Share and call' button to start the call composer [all …]
|
/packages/apps/Camera2/src/com/android/camera/widget/ |
D | ModeOptions.java | 224 View button = mModeOptionsButtons.getChildAt(i); in setupToggleButtonParams() local 225 if (button instanceof MultiToggleImageButton) { in setupToggleButtonParams() 226 MultiToggleImageButton toggleButton = (MultiToggleImageButton) button; in setupToggleButtonParams() 287 final View button; in setupAnimators() local 289 button = mActiveBar.getChildAt(i); in setupAnimators() 291 button = mActiveBar.getChildAt(childCount-1-i); in setupAnimators() 301 button.setTranslationX((Float) animation.getAnimatedValue()); in setupAnimators() 303 button.setTranslationY(-((Float) animation.getAnimatedValue())); in setupAnimators()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/connectivity/ |
D | NetworkListAdapter.java | 127 private void setPositionTaggedCallback(int position, Button button, View.OnClickListener l) { in setPositionTaggedCallback() argument 128 button.setTag(position); in setPositionTaggedCallback() 129 button.setOnClickListener(l); in setPositionTaggedCallback() 132 private void setToggleButton(int position, Button button, boolean on, String ifOn, String ifOff, in setToggleButton() argument 136 button.setText(ifOn); in setToggleButton() 138 button.setText(ifOff); in setToggleButton() 140 setPositionTaggedCallback(position, button, l); in setToggleButton()
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/ |
D | TestEvents.java | 151 for (int button : buttons) { in pressButton() 152 mState.mButtons.add(button); in pressButton() 161 for (int button : buttons) { in releaseButton() 162 mState.mButtons.remove(button); in releaseButton() 254 for (Integer button : mState.mButtons) { in build() 255 buttons |= button; in build()
|
/packages/apps/TV/src/com/android/tv/ui/sidepanel/parentalcontrols/ |
D | SubRatingsFragment.java | 103 CompoundButton button = (CompoundButton) view.findViewById(getCompoundButtonId()); in onBind() local 104 button.setButtonDrawable(R.drawable.btn_lock_material_anim); in onBind() 105 button.setVisibility(View.VISIBLE); in onBind() 164 CompoundButton button = (CompoundButton) view.findViewById(getCompoundButtonId()); in onBind() local 165 button.setButtonDrawable(R.drawable.btn_lock_material_anim); in onBind() 166 button.setVisibility(View.VISIBLE); in onBind()
|
/packages/apps/Dialer/java/com/android/dialer/voicemail/listui/error/ |
D | VoicemailErrorAlert.java | 158 TextView button; in bindActions() local 160 button = raisedButtons[i]; in bindActions() 163 button = buttons[i]; in bindActions() 166 button.setText(action.getText()); in bindActions() 167 button.setOnClickListener(action.getListener()); in bindActions() 168 button.setVisibility(View.VISIBLE); in bindActions()
|