Home
last modified time | relevance | path

Searched refs:pressed (Results 1 – 25 of 34) sorted by relevance

12

/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/
DHandleImageButton.kt44 override fun setPressed(pressed: Boolean) { in <lambda>()
45 if (isPressed != pressed) { in <lambda>()
46 super.setPressed(pressed) in <lambda>()
47 if (pressed) { in <lambda>()
/frameworks/base/core/java/android/inputmethodservice/navigationbar/
DKeyButtonRipple.java226 boolean pressed = false; in onStateChange()
229 pressed = true; in onStateChange()
233 if (pressed != mPressed) { in onStateChange()
234 setPressed(pressed); in onStateChange()
235 mPressed = pressed; in onStateChange()
267 public void setPressed(boolean pressed) { in setPressed() argument
268 if (mDark != mLastDark && pressed) { in setPressed()
273 setPressedHardware(pressed); in setPressed()
275 setPressedSoftware(pressed); in setPressed()
306 private void setPressedSoftware(boolean pressed) { in setPressedSoftware() argument
[all …]
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/navigationbar/
DKeyButtonRipple.java254 boolean pressed = false; in onStateChange()
257 pressed = true; in onStateChange()
261 if (pressed != mPressed) { in onStateChange()
262 setPressed(pressed); in onStateChange()
263 mPressed = pressed; in onStateChange()
295 private void setPressed(boolean pressed) { in setPressed() argument
296 if (mDark != mLastDark && pressed) { in setPressed()
301 setPressedHardware(pressed); in setPressed()
303 setPressedSoftware(pressed); in setPressed()
336 private void setPressedSoftware(boolean pressed) { in setPressedSoftware() argument
[all …]
/frameworks/base/graphics/java/android/graphics/drawable/
DRippleBackground.java66 public void setState(boolean focused, boolean hovered, boolean pressed) { in setState() argument
68 focused = focused && !pressed; in setState()
71 hovered = hovered && !pressed; in setState()
DRippleDrawable.java322 boolean pressed = false; in onStateChange()
333 pressed = true; in onStateChange()
340 setRippleActive(enabled && pressed); in onStateChange()
341 setBackgroundActive(hovered, focused, pressed, windowFocused); in onStateChange()
367 public void setBackgroundActive(boolean hovered, boolean focused, boolean pressed, in setBackgroundActive() argument
375 mBackground.setState(focused, hovered, pressed); in setBackgroundActive()
379 if (!pressed) { in setBackgroundActive()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/drawable/
DLightSourceDrawable.kt62 private var pressed = false variable
276 val wasPressed = pressed in onStateChange()
278 pressed = false in onStateChange()
291 pressed = true in onStateChange()
299 active = enabled && (pressed || focused || hovered) in onStateChange()
300 if (wasPressed && !pressed) { in onStateChange()
/frameworks/base/packages/SystemUI/compose/scene/src/com/android/compose/animation/scene/
DMultiPointerDraggable.kt303 val pressed = mutableSetOf<PointerId>() in detectDragGestures() constant
305 if (change.pressed) { in detectDragGestures()
306 pressed.add(change.id) in detectDragGestures()
310 val controller = onDragStart(drag.position, overSlop, pressed.size) in detectDragGestures()
396 val isPointerUp = pointer?.pressed != true in drag()
440 val otherDown = event.changes.fastFirstOrNull { it.pressed } in awaitDragOrUp()
/frameworks/base/tests/graphics/SilkFX/src/com/android/test/silkfx/hdr/
DGlowingCard.kt45 override fun setPressed(pressed: Boolean) { in setPressed()
46 super.setPressed(pressed) in setPressed()
/frameworks/base/core/java/android/text/method/
DMetaKeyKeyListener.java564 long locked, long pressed, long released, long used) { in press() argument
565 if ((state & pressed) != 0) { in press()
574 state |= what | pressed; in press()
602 long pressed, long released, long used, KeyEvent event) { in release() argument
607 } else if ((state & pressed) != 0) { in release()
/frameworks/base/core/java/android/inputmethodservice/
DKeyboard.java269 public boolean pressed; field in Keyboard.Key
412 pressed = !pressed; in onPressed()
433 pressed = !pressed; in onReleased()
505 if (pressed) { in getCurrentDrawableState()
512 if (pressed) { in getCurrentDrawableState()
518 if (pressed) { in getCurrentDrawableState()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DOverlayActionChip.java71 public void setPressed(boolean pressed) { in setPressed() argument
73 super.setPressed(mIsPending || pressed); in setPressed()
/frameworks/proto_logging/stats/enums/input/
Denums.proto25 * Contains the key events that are pressed from keyboard
88 // Power button pressed
94 // Wakeup button pressed
96 // Media keys like play, pause, next, previous pressed
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/communal/ui/compose/extensions/
DPointerInputScopeExt.kt85 } while (event.changes.fastAny { it.pressed }) in consumeUntilUp()
/frameworks/native/services/inputflinger/reader/mapper/
DCursorInputMapper.cpp358 BitSet32 pressed(buttonsPressed); in sync() local
359 while (!pressed.isEmpty()) { in sync()
360 int32_t actionButton = BitSet32::valueForBit(pressed.clearFirstMarkedBit()); in sync()
/frameworks/base/packages/SystemUI/accessibility/accessibilitymenu/
DREADME.md24 (see `AccessibilityService#performGlobalAction()` constants) that is performed when pressed.
/frameworks/base/core/proto/android/os/
Dpowermanager.proto30 // Button or key pressed or released.
/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/
DHdmiCecLocalDevicePlaybackTest.java1505 HdmiCecMessage pressed = HdmiCecMessageBuilder.buildUserControlPressed( in sendVolumeKeyEvent_toTv_activeSource() local
1512 assertThat(mNativeWrapper.getResultMessages()).containsAtLeast(pressed, released); in sendVolumeKeyEvent_toTv_activeSource()
1526 HdmiCecMessage pressed = HdmiCecMessageBuilder.buildUserControlPressed( in sendVolumeKeyEvent_toAudio_activeSource() local
1533 assertThat(mNativeWrapper.getResultMessages()).containsAtLeast(pressed, released); in sendVolumeKeyEvent_toAudio_activeSource()
1546 HdmiCecMessage pressed = HdmiCecMessageBuilder.buildUserControlPressed( in sendVolumeKeyEvent_toTv_inactiveSource() local
1553 assertThat(mNativeWrapper.getResultMessages()).containsAtLeast(pressed, released); in sendVolumeKeyEvent_toTv_inactiveSource()
1566 HdmiCecMessage pressed = HdmiCecMessageBuilder.buildUserControlPressed( in sendVolumeKeyEvent_toAudio_inactiveSource() local
1573 assertThat(mNativeWrapper.getResultMessages()).containsAtLeast(pressed, released); in sendVolumeKeyEvent_toAudio_inactiveSource()
/frameworks/base/core/proto/android/server/
Dbiometrics.proto62 * Paused, but "try again" was pressed. Sensors have new cookies and we're now waiting for
/frameworks/proto_logging/stats/atoms/permissioncontroller/
Dpermissioncontroller_extension_atoms.proto89 // Button pressed in the dialog
/frameworks/proto_logging/stats/atoms/aiwallpapers/
Daiwallpapers_extension_atoms.proto84 * A record of the fact that a specific button was pressed.
/frameworks/base/core/java/android/text/flags/
Dflags.aconfig109 description: "Feature flag for clearing focus when the escape key is pressed."
/frameworks/base/core/java/android/widget/
DGallery.java1165 protected void dispatchSetPressed(boolean pressed) { in dispatchSetPressed() argument
1169 mSelectedChild.setPressed(pressed); in dispatchSetPressed()
/frameworks/proto_logging/stats/atoms/input/
Dinput_extension_atoms.proto97 // Key pressed to trigger the keyboard event
/frameworks/proto_logging/stats/atoms/wearservices/
Dwearservices_atoms.proto180 // Representing string for the notification action title for the action pressed.
/frameworks/base/packages/EasterEgg/src/com/android/egg/landroid/
DMainActivity.kt415 event.changes.count { it.pressed } == 1 in FlightStick()

12