Home
last modified time | relevance | path

Searched refs:focused (Results 1 – 25 of 92) sorted by relevance

1234

/frameworks/base/core/java/android/view/
DFocusFinder.java79 public final View findNextFocus(ViewGroup root, View focused, int direction) { in findNextFocus() argument
80 return findNextFocus(root, focused, null, direction); in findNextFocus()
96 private View findNextFocus(ViewGroup root, View focused, Rect focusedRect, int direction) { in findNextFocus() argument
98 ViewGroup effectiveRoot = getEffectiveRoot(root, focused); in findNextFocus()
99 if (focused != null) { in findNextFocus()
100 next = findNextUserSpecifiedFocus(effectiveRoot, focused, direction); in findNextFocus()
110 next = findNextFocus(effectiveRoot, focused, focusedRect, direction, focusables); in findNextFocus()
126 private ViewGroup getEffectiveRoot(ViewGroup root, View focused) { in getEffectiveRoot() argument
127 if (focused == null || focused == root) { in getEffectiveRoot()
131 ViewParent nextParent = focused.getParent(); in getEffectiveRoot()
[all …]
DWindowInfo.java49 public boolean focused; field in WindowInfo
87 window.focused = other.focused; in obtain()
128 parcel.writeInt(focused ? 1 : 0); in writeToParcel()
159 builder.append(", focused=").append(focused); in toString()
181 focused = (parcel.readInt() == 1); in initFromParcel()
207 focused = false; in clear()
/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()
73 if (mHovered != hovered || mFocused != focused) { in setState()
75 mFocused = focused; in setState()
DRippleDrawable.java323 boolean focused = false; in onStateChange()
331 focused = true; in onStateChange()
341 setBackgroundActive(hovered, focused, pressed, windowFocused); in onStateChange()
367 public void setBackgroundActive(boolean hovered, boolean focused, boolean pressed, in setBackgroundActive() argument
370 if (mBackground == null && (hovered || focused)) { in setBackgroundActive()
375 mBackground.setState(focused, hovered, pressed); in setBackgroundActive()
378 if (focused || hovered) { in setBackgroundActive()
380 enterPatternedBackgroundAnimation(focused, hovered, windowFocused); in setBackgroundActive()
856 private void enterPatternedBackgroundAnimation(boolean focused, boolean hovered, in enterPatternedBackgroundAnimation() argument
859 if (focused) { in enterPatternedBackgroundAnimation()
/frameworks/base/libs/WindowManager/Shell/tests/flicker/pip/src/com/android/wm/shell/flicker/pip/tv/
DTvUtils.kt119 findTvPipMenuElement(By.focused(true))?.let { focused -> in UiDevice() method
120 if (element.visibleCenter.x < focused.visibleCenter.x) pressDPadLeft() in UiDevice()
161 get() = isFocused || findObject(By.focused(true)) != null
/frameworks/native/services/inputflinger/docs/
Danr.md8 2. The application did not have a focused window, and an input event that requires focus was genera…
47 ## 2. Application does not have a focused window, and a focused event comes in ##
49 …er calls `setFocusedApplication` to tell InputDispatcher that there is a focused application. This…
51 After launching, an application may not add a focused window. This could be either due to a bug in …
53 …ANR. If there is a focused event, however, it would require a focused window to be dispatched. Inp…
55 * A focused window is added
64 … In this scenario, `adb shell dumpsys input` will reveal that there's no focused window in the cur…
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/
DWindowDecorLinearLayout.java56 public void setTaskFocusState(boolean focused) { in setTaskFocusState() argument
57 mIsTaskFocused = focused; in setTaskFocusState()
DTaskFocusStateConsumer.java20 void setTaskFocusState(boolean focused); in setTaskFocusState() argument
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/
DDesktopModeWindowDecorViewModelTests.kt326 val task = createTask(windowingMode = WINDOWING_MODE_FULLSCREEN, focused = true) in testCaptionIsNotCreatedWhenKeyguardIsVisible()
348 val task = createTask(windowingMode = WINDOWING_MODE_FULLSCREEN, focused = true).apply { in testDecorationIsNotCreatedForTopTranslucentActivities()
360 val task = createTask(windowingMode = WINDOWING_MODE_FULLSCREEN, focused = true) in testDecorationIsNotCreatedForSystemUIActivities()
377 val task = createTask(windowingMode = WINDOWING_MODE_FREEFORM, focused = true) in testRelayoutRunsWhenStatusBarsInsetsSourceVisibilityChanges()
398 val task = createTask(windowingMode = WINDOWING_MODE_FREEFORM, focused = true) in testRelayoutDoesNotRunWhenNonStatusBarsInsetsSourceVisibilityChanges()
419 val task = createTask(windowingMode = WINDOWING_MODE_FREEFORM, focused = true) in testRelayoutDoesNotRunWhenNonStatusBarsInsetSourceVisibilityDoesNotChange()
462 val task = createTask(windowingMode = WINDOWING_MODE_FULLSCREEN, focused = true) in testWindowDecor_desktopModeUnsupportedOnDevice_decorNotCreated()
487 val task = createTask(windowingMode = WINDOWING_MODE_FULLSCREEN, focused = true) in testWindowDecor_desktopModeUnsupportedOnDevice_deviceRestrictionsOverridden_decorCreated()
509 val task = createTask(windowingMode = WINDOWING_MODE_FULLSCREEN, focused = true) in testWindowDecor_deviceSupportsDesktopMode_decorCreated()
543 focused: Boolean = true, in createTask()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/focus/
DVerticalFocusSearchTest.java50 View findNextFocus(ViewGroup root, View focused, int direction); in findNextFocus() argument
56 public View findNextFocus(ViewGroup root, View focused, int direction) { in findNextFocus() argument
58 .findNextFocus(root, focused, direction); in findNextFocus()
/frameworks/base/core/java/android/widget/
DZoomButton.java116 public boolean dispatchUnhandledMove(View focused, int direction) { in dispatchUnhandledMove() argument
118 return super.dispatchUnhandledMove(focused, direction); in dispatchUnhandledMove()
DDialerFilter.java96 protected void onFocusChanged(boolean focused, int direction, Rect previouslyFocusedRect) { in onFocusChanged() argument
97 super.onFocusChanged(focused, direction, previouslyFocusedRect); in onFocusChanged()
100 mIcon.setVisibility(focused ? View.VISIBLE : View.GONE); in onFocusChanged()
/frameworks/base/tests/SurfaceControlViewHostTest/src/com/android/test/viewembed/
DSurfaceControlViewHostTest.java63 v.getViewTreeObserver().addOnWindowFocusChangeListener(focused -> in addEmbeddedView()
64 v.setBackgroundColor(focused ? Color.MAGENTA : Color.DKGRAY)); in addEmbeddedView()
/frameworks/base/core/java/com/android/internal/widget/
DNumericTextView.java70 protected void onFocusChanged(boolean focused, int direction, Rect previouslyFocusedRect) { in onFocusChanged() argument
71 super.onFocusChanged(focused, direction, previouslyFocusedRect); in onFocusChanged()
73 if (focused) { in onFocusChanged()
/frameworks/base/core/tests/coretests/src/android/widget/
DInternalSelectionView.java239 protected void onFocusChanged(boolean focused, int direction, in onFocusChanged() argument
241 super.onFocusChanged(focused, direction, previouslyFocusedRect); in onFocusChanged()
243 if (focused) { in onFocusChanged()
/frameworks/base/core/java/android/service/games/
DIGameSession.aidl30 void onTaskFocusChanged(boolean focused); in onTaskFocusChanged() argument
DGameSession.java103 public void onTaskFocusChanged(boolean focused) {
106 focused ? LifecycleState.TASK_FOCUSED : LifecycleState.TASK_UNFOCUSED));
286 public void onGameTaskFocusChanged(boolean focused) { in onGameTaskFocusChanged() argument
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/
DPrintContentView.java381 View focused = findFocus(); in ensureImeClosedAndInputFocusCleared() local
383 if (focused != null && focused.isFocused()) { in ensureImeClosedAndInputFocusCleared()
386 imm.hideSoftInputFromView(focused, 0); in ensureImeClosedAndInputFocusCleared()
387 focused.clearFocus(); in ensureImeClosedAndInputFocusCleared()
/frameworks/base/services/core/java/com/android/server/app/
DGameServiceProviderInstanceImpl.java140 public void onTaskFocusChanged(int taskId, boolean focused) {
142 GameServiceProviderInstanceImpl.this.onTaskFocusChanged(taskId, focused);
371 private void onTaskFocusChanged(int taskId, boolean focused) { in onTaskFocusChanged() argument
373 onTaskFocusChangedLocked(taskId, focused); in onTaskFocusChanged()
378 private void onTaskFocusChangedLocked(int taskId, boolean focused) { in onTaskFocusChangedLocked() argument
380 Slog.d(TAG, "onTaskFocusChangedLocked() id: " + taskId + " focused: " + focused); in onTaskFocusChangedLocked()
385 if (focused) { in onTaskFocusChangedLocked()
399 gameSessionRecord.getGameSession().onTaskFocusChanged(focused); in onTaskFocusChangedLocked()
/frameworks/base/core/java/android/text/method/
DTransformationMethod.java45 boolean focused, int direction, in onFocusChanged() argument
DAllCapsTransformationMethod.java70 public void onFocusChanged(View view, CharSequence sourceText, boolean focused, int direction, in onFocusChanged() argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/drawable/
DLightSourceDrawable.kt279 var focused = false in onStateChange() variable
288 focused = true in onStateChange()
299 active = enabled && (pressed || focused || hovered) in onStateChange()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/qrcode/
DQrDecorateView.java144 public void setFocused(boolean focused) { in setFocused() argument
145 mFocused = focused; in setFocused()
/frameworks/base/packages/CredentialManager/horologist/src/com/google/android/horologist/compose/navscaffold/
DWearNavScaffold.kt305 val focused = constant
310 focused.value = lifecycle.currentState.isAtLeast(Lifecycle.State.RESUMED) in <lambda>()
318 HierarchicalFocusCoordinator(requiresFocus = { focused.value }) { in <lambda>()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/splitscreen/tv/
DTvSplitMenuController.java169 private void setMenuFocus(boolean focused) { in setMenuFocus() argument
172 mSystemWindows.getFocusGrantToken(mSplitMenuView), focused); in setMenuFocus()

1234