Home
last modified time | relevance | path

Searched refs:mFocusArea (Results 1 – 9 of 9) sorted by relevance

/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/
DFocusAreaAdapterV1.java27 private final FocusArea mFocusArea; field in FocusAreaAdapterV1
30 mFocusArea = focusArea; in FocusAreaAdapterV1()
35 mFocusArea.setHighlightPadding(left, top, right, bottom); in setHighlightPadding()
40 mFocusArea.setBoundsOffset(left, top, right, bottom); in setBoundsOffset()
45 mFocusArea.setWrapAround(wrapAround); in setWrapAround()
50 mFocusArea.setDefaultFocus(defaultFocus); in setDefaultFocus()
55 mFocusArea.setNudgeShortcut(direction, view); in setNudgeShortcut()
60 return mFocusArea; in getView()
/packages/apps/Car/libs/car-ui-lib/car-rotary-lib/src/androidTest/java/com/android/car/ui/
DRotaryCacheTest.java42 private FocusArea mFocusArea; field in RotaryCacheTest
52 mFocusArea = new FocusArea(mContext); in setUp()
79 mRotaryCache.saveFocusArea(direction, mFocusArea, 0); in testGetCachedFocusArea_inTheCache()
81 assertThat(focusArea).isEqualTo(mFocusArea); in testGetCachedFocusArea_inTheCache()
87 mRotaryCache.saveFocusArea(direction, mFocusArea, 0); in testGetCachedFocusArea_notInTheCache()
98 mRotaryCache.saveFocusArea(direction, mFocusArea, 0); in testGetCachedFocusArea_expiredCache()
105 mRotaryCache.saveFocusArea(View.FOCUS_UP, mFocusArea, 0); in testClearFocusAreaHistory()
107 mFocusArea); in testClearFocusAreaHistory()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/camerafocus/
DFocusOverlayManager.java87 private List<Object> mFocusArea; // focus area in driver format field in FocusOverlayManager
274 if (mFocusArea != null) { in onAutoFocus()
307 if (mFocusArea == null) { in initializeFocusAreas()
308 mFocusArea = new ArrayList<Object>(); in initializeFocusAreas()
309 mFocusArea.add(new Area(new Rect(), 1)); in initializeFocusAreas()
314 ((Area) mFocusArea.get(0)).rect); in initializeFocusAreas()
337 if ((mFocusArea != null) && (mState == STATE_FOCUSING || in onSingleTapUp()
422 if (mFocusAreaSupported && mFocusArea != null) { in getFocusMode()
443 return mFocusArea; in getFocusAreas()
457 if (mFocusArea == null) { in updateFocusUI()
[all …]
/packages/apps/LegacyCamera/src/com/android/camera/
DFocusManager.java67 private List<Area> mFocusArea; // focus area in driver format field in FocusManager
235 if (mFocusArea != null) { in onAutoFocus()
248 if ((mFocusArea != null) && (mState == STATE_FOCUSING || in onTouch()
260 if (mFocusArea == null) { in onTouch()
261 mFocusArea = new ArrayList<Area>(); in onTouch()
262 mFocusArea.add(new Area(new Rect(), 1)); in onTouch()
271 mFocusArea.get(0).rect); in onTouch()
355 if (mFocusAreaSupported && mFocusArea != null) { in getFocusMode()
388 return mFocusArea; in getFocusAreas()
409 if (mFocusArea == null) { in updateFocusUI()
[all …]
/packages/apps/Camera2/src/com/android/camera/
DFocusOverlayManager.java95 private List<Area> mFocusArea; // focus area in driver format field in FocusOverlayManager
294 if (mFocusArea != null) { in onAutoFocus()
341 if (mFocusArea == null) { in initializeFocusAreas()
342 mFocusArea = new ArrayList<Area>(); in initializeFocusAreas()
343 mFocusArea.add(new Area(new Rect(), 1)); in initializeFocusAreas()
347 mFocusArea.get(0).rect = computeCameraRectFromPreviewCoordinates(x, y, getAFRegionSizePx()); in initializeFocusAreas()
366 if ((mFocusArea != null) && (mState == STATE_FOCUSING || in onSingleTapUp()
486 if (mFocusAreaSupported && mFocusArea != null) { in getFocusMode()
523 return mFocusArea; in getFocusAreas()
535 mFocusArea = null; in resetTouchFocus()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/common/
DDialerListBaseFragment.java53 private FocusArea mFocusArea; field in DialerListBaseFragment
63 mFocusArea = view.requireViewById(R.id.loading_focus_area); in onCreateView()
144 mFocusArea.setHighlightPadding(0, insets.getTop() + listTopPadding, 0, insets.getBottom()); in onCarUiInsetsChanged()
145 mFocusArea.setBoundsOffset(0, insets.getTop() + listTopPadding, 0, insets.getBottom()); in onCarUiInsetsChanged()
/packages/apps/Car/Media/src/com/android/car/media/
DBrowseViewController.java66 private final FocusArea mFocusArea; field in BrowseViewController
176 mFocusArea = mContent.findViewById(R.id.focus_area); in BrowseViewController()
288 mFocusArea.setHighlightPadding( in onCarUiInsetsChanged()
290 mFocusArea.setBoundsOffset(leftPadding, insets.getTop(), rightPadding, bottomPadding); in onCarUiInsetsChanged()
305 mFocusArea.setHighlightPadding( in onPlaybackControlsChanged()
309 mFocusArea.setBoundsOffset(leftPadding, topPadding, rightPadding, bottomPadding); in onPlaybackControlsChanged()
/packages/apps/Car/libs/car-ui-lib/car-rotary-lib/src/main/java/com/android/car/ui/
DRotaryCache.java125 final FocusArea mFocusArea; field in RotaryCache.FocusAreaHistory
130 mFocusArea = focusArea; in FocusAreaHistory()
162 return isValidHistory(history, elapsedRealtime) ? history.mFocusArea : null; in get()
/packages/apps/Car/RotaryController/src/com/android/car/rotary/
DRotaryService.java287 private AccessibilityNodeInfo mFocusArea = null; field in RotaryService
1494 if (mFocusArea == null) { in nudgeTo()
1500 if (mFocusArea.performAction(ACTION_NUDGE_SHORTCUT, arguments)) { in nudgeTo()
1502 AccessibilityNodeInfo root = mNavigator.getRoot(mFocusArea); in nudgeTo()
1514 if (mFocusArea.performAction(ACTION_NUDGE_TO_ANOTHER_FOCUS_AREA, arguments)) { in nudgeTo()
1516 AccessibilityNodeInfo root = mNavigator.getRoot(mFocusArea); in nudgeTo()
1527 mNavigator.findNudgeTargetFocusArea(windows, mFocusedNode, mFocusArea, direction); in nudgeTo()
1545 if (mEditNode != null && mFocusArea.getWindowId() != targetFocusArea.getWindowId()) { in nudgeTo()
1546 AccessibilityWindowInfo fromWindow = mFocusArea.getWindow(); in nudgeTo()
1994 mFocusArea = Utils.refreshNode(mFocusArea); in refreshSavedNodes()
[all …]