/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | KeyButtonRipple.java | 171 boolean pressed = false; 174 pressed = true; 178 if (pressed != mPressed) { 179 setPressed(pressed); 180 mPressed = pressed; 202 public void setPressed(boolean pressed) { argument 203 if (mDark != mLastDark && pressed) { 208 setPressedHardware(pressed); 210 setPressedSoftware(pressed); 225 private void setPressedSoftware(boolean pressed) { argument 254 setPressedHardware(boolean pressed) argument [all...] |
/frameworks/support/v7/preference/src/android/support/v7/preference/ |
H A D | UnPressableLinearLayout.java | 27 * Custom LinearLayout that does not propagate the pressed state down to its children. 28 * By default, the pressed state is propagated to all the children that are not clickable 43 protected void dispatchSetPressed(boolean pressed) { argument 44 // Skip dispatching the pressed key state to the children so that they don't trigger any 45 // pressed state animation on their stateful drawables.
|
/frameworks/base/core/java/android/text/method/ |
H A D | MetaKeyKeyListener.java | 55 * keyboard already reported as being pressed in {@link KeyEvent#getMetaState()}. 154 * @param text the buffer in which the meta key would have been pressed. 156 * @return an integer in which each bit set to one represents a pressed 175 * @param text the buffer in which the meta key would have been pressed. 177 * @return an integer in which each bit set to one represents a pressed 195 * @param text the buffer in which the meta key would have been pressed. 226 * @param text the buffer in which the meta key would have been pressed. 454 * @return an integer in which each bit set to one represents a pressed 561 long locked, long pressed, long released, long used) { 562 if ((state & pressed) ! 560 press(long state, int what, long mask, long locked, long pressed, long released, long used) argument 598 release(long state, int what, long mask, long pressed, long released, long used, KeyEvent event) argument [all...] |
/frameworks/base/core/java/android/inputmethodservice/ |
H A D | Keyboard.java | 257 /** The current pressed state of this key */ 258 public boolean pressed; field in class:Keyboard.Key 261 /** Text to output when pressed. This can be multiple characters, like ".com" */ 396 * Informs the key that it has been pressed, in case it needs to change its appearance or 401 pressed = !pressed; 405 * Changes the pressed state of the key. 422 pressed = !pressed; 494 if (pressed) { [all...] |
/frameworks/base/services/core/java/com/android/server/policy/ |
H A D | IconUtilities.java | 170 private Bitmap createSelectedBitmap(Bitmap src, boolean pressed) { argument 181 pressed ? mGlowColorPressedPaint : mGlowColorFocusedPaint);
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | RippleDrawable.java | 253 boolean pressed = false; 263 pressed = true; 269 setRippleActive(enabled && pressed); 270 setBackgroundActive(hovered || focused || (enabled && pressed), focused || hovered);
|
/frameworks/support/wear/src/android/support/wear/widget/ |
H A D | CircledImageView.java | 480 /** Gets the circle radius when pressed. */ 492 /** Sets the circle radius when pressed. */ 500 /** Gets the circle radius when pressed as a percent. */ 507 * pressed. 636 public void setPressed(boolean pressed) { argument 637 super.setPressed(pressed); 638 if (pressed != mPressed) { 639 mPressed = pressed;
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | BaseCardView.java | 601 boolean pressed = false; 605 pressed = true; 611 if (pressed && enabled) { 613 } else if (pressed) {
|
H A D | GuidedActionsStylist.java | 372 void press(boolean pressed) { argument 377 final int themeAttrId = pressed ? R.attr.guidedActionPressedAnimation : 896 * @param pressed True if the action has been pressed, false if it has been unpressed. 898 public void onAnimateItemPressed(ViewHolder vh, boolean pressed) { argument 899 vh.press(pressed);
|
/frameworks/base/core/java/android/widget/ |
H A D | Gallery.java | 1148 protected void dispatchSetPressed(boolean pressed) { argument 1150 // Show the pressed state on the selected child 1152 mSelectedChild.setPressed(pressed);
|
H A D | AbsListView.java | 2721 * @return True if the current touch mode requires that we draw the selector in the pressed 2738 * the pressed state for an item. 2805 * Sets the selector state to "pressed" and posts a CheckForKeyLongPress to see if 3360 protected void dispatchSetPressed(boolean pressed) { argument
|
/frameworks/base/core/java/android/view/ |
H A D | ViewGroup.java | 4343 protected void dispatchSetPressed(boolean pressed) { argument 4349 // show a pressed state when their parent view does. 4350 // Clearing a pressed state always propagates. 4351 if (!pressed || (!child.isClickable() && !child.isLongClickable())) { 4352 child.setPressed(pressed); 7277 * Return true if the pressed state should be delayed for children or descendants of this 7279 * This prevents the pressed state from appearing when the user is actually trying to scroll
|
H A D | View.java | 1745 * Indicates the view is pressed. States are used with 1849 * Indicates the view is pressed and its window has the focus. 1856 * Indicates the view is pressed and selected. 1863 * Indicates the view is pressed, selected and its window has the focus. 1871 * Indicates the view is pressed and focused. 1878 * Indicates the view is pressed, focused and its window has the focus. 1886 * Indicates the view is pressed, focused and selected. 1894 * Indicates the view is pressed, focused, selected and its window has the focus. 1903 * Indicates the view is pressed and enabled. 1910 * Indicates the view is pressed, enable 9930 setPressed(boolean pressed, float x, float y) argument 9947 setPressed(boolean pressed) argument 9969 dispatchSetPressed(boolean pressed) argument [all...] |
/frameworks/native/services/inputflinger/ |
H A D | InputReader.cpp | 2908 BitSet32 pressed(buttonsPressed); 2909 while (!pressed.isEmpty()) { 2910 int32_t actionButton = BitSet32::valueForBit(pressed.clearFirstMarkedBit()); 5578 // Case 2: Button is pressed. (BUTTON_CLICK_OR_DRAG) 5662 // Case 3. No fingers down and button is not pressed. (NEUTRAL) 5737 // Case 4. Exactly one finger down, button is not pressed. (HOVER or TAP_DRAG) 5827 // Case 5. At least two fingers down, button is not pressed. (PRESS, SWIPE or FREEFORM)
|