Home
last modified time | relevance | path

Searched refs:window (Results 1 – 25 of 106) sorted by relevance

12345

/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/systembar/
DCarSystemBarControllerTest.java152 ViewGroup window = mCarSystemBar.getTopWindow(); in testGetTopWindow_topDisabled_returnsNull() local
154 assertThat(window).isNull(); in testGetTopWindow_topDisabled_returnsNull()
162 ViewGroup window = mCarSystemBar.getTopWindow(); in testGetTopWindow_topEnabled_returnsWindow() local
164 assertThat(window).isNotNull(); in testGetTopWindow_topEnabled_returnsWindow()
188 ViewGroup window = mCarSystemBar.getBottomWindow(); in testGetBottomWindow_bottomDisabled_returnsNull() local
190 assertThat(window).isNull(); in testGetBottomWindow_bottomDisabled_returnsNull()
198 ViewGroup window = mCarSystemBar.getBottomWindow(); in testGetBottomWindow_bottomEnabled_returnsWindow() local
200 assertThat(window).isNotNull(); in testGetBottomWindow_bottomEnabled_returnsWindow()
218 ViewGroup window = mCarSystemBar.getLeftWindow(); in testGetLeftWindow_leftDisabled_returnsNull() local
219 assertThat(window).isNull(); in testGetLeftWindow_leftDisabled_returnsNull()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DSlidingWindowTest.java45 SlidingWindow<Integer> window = new SlidingWindow<>(5); in testAdd() local
46 elements.forEach(window::add); in testAdd()
47 assertTrue(sameContents(elements.iterator(), window.iterator())); in testAdd()
53 SlidingWindow<Integer> window = new SlidingWindow<>(5); in testAddOverflow() local
54 window.addAll(elements); in testAddOverflow()
55 assertTrue(sameContents(expectedElements.iterator(), window.iterator())); in testAddOverflow()
61 SlidingWindow<Integer> window = new SlidingWindow<>(5); in testStream() local
62 window.addAll(elements); in testStream()
64 assertTrue(window.stream().anyMatch(e::equals)); in testStream()
70 SlidingWindow<Integer> window = new SlidingWindow<>(5); in testCount() local
[all …]
/packages/apps/Car/RotaryController/tests/unit/src/com/android/car/rotary/
DWindowBuilderTest.java37 AccessibilityWindowInfo window = new WindowBuilder().setId(0x42).build(); in testSetId() local
38 assertThat(window.getId()).isEqualTo(0x42); in testSetId()
44 AccessibilityWindowInfo window = new WindowBuilder().setRoot(root).build(); in testSetRoot() local
45 assertThat(window.getRoot()).isEqualTo(root); in testSetRoot()
51 AccessibilityWindowInfo window = new WindowBuilder().setBoundsInScreen(setBounds).build(); in testSetBoundsInScreen() local
53 window.getBoundsInScreen(retrievedBounds); in testSetBoundsInScreen()
59 AccessibilityWindowInfo window = in testSetType() local
61 assertThat(window.getType()).isEqualTo(TYPE_SYSTEM); in testSetType()
66 AccessibilityWindowInfo window = in testSetDisplayId() local
68 assertThat(window.getDisplayId()).isEqualTo(3); in testSetDisplayId()
DWindowBuilder.java49 AccessibilityWindowInfo window = mock(AccessibilityWindowInfo.class); in build() local
50 when(window.getId()).thenReturn(mId); in build()
51 when(window.getRoot()) in build()
64 }).when(window).getBoundsInScreen(any(Rect.class)); in build()
66 when(window.getType()).thenReturn(mType); in build()
67 when(window.getDisplayId()).thenReturn(mDisplayId); in build()
68 return window; in build()
DNavigatorTest.java855 AccessibilityWindowInfo window = new WindowBuilder() in test_findNudgeTargetFocusArea_fromScrollableContainer() local
860 .setWindow(window) in test_findNudgeTargetFocusArea_fromScrollableContainer()
872 List<AccessibilityWindowInfo> windows = Collections.singletonList(window); in test_findNudgeTargetFocusArea_fromScrollableContainer()
923 AccessibilityWindowInfo window = new WindowBuilder() in testFindNudgeTargetFocusArea2() local
928 windows.add(window); in testFindNudgeTargetFocusArea2()
935 .setWindow(window) in testFindNudgeTargetFocusArea2()
946 .setWindow(window) in testFindNudgeTargetFocusArea2()
1082 AccessibilityWindowInfo window = new WindowBuilder().setRoot(mWindowRoot).build(); in testFindFocusParkingView() local
1083 AccessibilityNodeInfo button = mNodeBuilder.setWindow(window).build(); in testFindFocusParkingView()
1117 AccessibilityWindowInfo window = new WindowBuilder() in testIsHunWindow() local
[all …]
DRotaryServiceTest.java143 AccessibilityWindowInfo window = new WindowBuilder() in testInitFocus_alreadyInitialized() local
147 List<AccessibilityWindowInfo> windows = Collections.singletonList(window); in testInitFocus_alreadyInitialized()
178 AccessibilityWindowInfo window = new WindowBuilder() in testInitFocus_focusOnAlreadyFocusedView() local
182 List<AccessibilityWindowInfo> windows = Collections.singletonList(window); in testInitFocus_focusOnAlreadyFocusedView()
215 AccessibilityWindowInfo window = new WindowBuilder() in testInitFocus_focusOnDefaultFocusView() local
219 List<AccessibilityWindowInfo> windows = Collections.singletonList(window); in testInitFocus_focusOnDefaultFocusView()
257 AccessibilityWindowInfo window = new WindowBuilder() in testInitFocus_focusOnLastTouchedView() local
261 List<AccessibilityWindowInfo> windows = Collections.singletonList(window); in testInitFocus_focusOnLastTouchedView()
302 AccessibilityWindowInfo window = new WindowBuilder() in testInitFocus_focusOnFirstFocusableView() local
306 List<AccessibilityWindowInfo> windows = Collections.singletonList(window); in testInitFocus_focusOnFirstFocusableView()
[all …]
/packages/apps/Car/RotaryController/src/com/android/car/rotary/
DNavigator.java117 for (AccessibilityWindowInfo window : windows) { in findHunWindow()
118 if (isHunWindow(window)) { in findHunWindow()
119 return window; in findHunWindow()
260 AccessibilityWindowInfo window = node.getWindow(); in getRoot() local
261 if (window != null) { in getRoot()
262 AccessibilityNodeInfo root = window.getRoot(); in getRoot()
263 window.recycle(); in getRoot()
429 for (AccessibilityWindowInfo window : candidateWindows) { in findNudgeTargetFocusArea()
430 List<AccessibilityNodeInfo> focusAreasInAnotherWindow = findFocusAreas(window); in findNudgeTargetFocusArea()
523 for (AccessibilityWindowInfo window : windows) { in addWindowsInDirection()
[all …]
DRotaryService.java510 for (AccessibilityWindowInfo window : windows) {
511 if (window == null) {
515 if (mInRotaryMode && mNavigator.isMainApplicationWindow(window)) {
519 AccessibilityNodeInfo rootView = window.getRoot();
534 boolean result = clearFocusInWindow(window);
536 L.e("Failed to clear the focus in window: " + window);
782 AccessibilityWindowInfo window = source.getWindow(); in onAccessibilityEvent() local
783 if (window != null) { in onAccessibilityEvent()
784 if (window.getType() == TYPE_APPLICATION in onAccessibilityEvent()
785 && window.getDisplayId() == DEFAULT_DISPLAY) { in onAccessibilityEvent()
[all …]
DUtils.java315 static void recycleWindow(@Nullable AccessibilityWindowInfo window) { in recycleWindow() argument
316 if (window != null) { in recycleWindow()
317 window.recycle(); in recycleWindow()
324 for (AccessibilityWindowInfo window : windows) { in recycleWindows()
325 recycleWindow(window); in recycleWindows()
338 for (AccessibilityWindowInfo window : windows) { in findWindowWithId()
339 if (window.getId() == windowId) { in findWindowWithId()
340 return window; in findWindowWithId()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/systembars/
DSystemBarsFragment.java100 Window window = getActivity().getWindow(); in initSystemBarColorButtons()
102 window.setStatusBarColor(mStatusBarDefaultColor); in initSystemBarColorButtons()
108 mStatusBarDefaultColor = window.getStatusBarColor(); in initSystemBarColorButtons()
110 window.setStatusBarColor(Color.RED); in initSystemBarColorButtons()
116 Window window = getActivity().getWindow(); in initSystemBarColorButtons()
118 window.setNavigationBarColor(mNavigatioNBarDefaultColor); in initSystemBarColorButtons()
124 mNavigatioNBarDefaultColor = window.getNavigationBarColor(); in initSystemBarColorButtons()
126 window.setNavigationBarColor(Color.RED); in initSystemBarColorButtons()
/packages/apps/Settings/tests/robotests/src/com/android/settings/panel/
DSettingsPanelActivityTest.java88 final Window window = mock(Window.class); in onStart_isNotDebuggable_shouldHideSystemOverlay() local
89 when(activity.getWindow()).thenReturn(window); in onStart_isNotDebuggable_shouldHideSystemOverlay()
94 verify(window).addSystemFlags(SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS); in onStart_isNotDebuggable_shouldHideSystemOverlay()
104 final Window window = mock(Window.class); in onStop_isNotDebuggable_shouldRemoveHideSystemOverlay() local
105 when(activity.getWindow()).thenReturn(window); in onStop_isNotDebuggable_shouldRemoveHideSystemOverlay()
110 verify(window).addSystemFlags(SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS); in onStop_isNotDebuggable_shouldRemoveHideSystemOverlay()
113 when(window.getAttributes()).thenReturn(layoutParams); in onStop_isNotDebuggable_shouldRemoveHideSystemOverlay()
119 verify(window).setAttributes(paramCaptor.capture()); in onStop_isNotDebuggable_shouldRemoveHideSystemOverlay()
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/
DSettingsHomepageActivityTest.java159 final Window window = mock(Window.class); in onStart_isNotDebuggable_shouldHideSystemOverlay() local
160 when(activity.getWindow()).thenReturn(window); in onStart_isNotDebuggable_shouldHideSystemOverlay()
165 verify(window).addSystemFlags(SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS); in onStart_isNotDebuggable_shouldHideSystemOverlay()
178 final Window window = mock(Window.class); in onStop_isNotDebuggable_shouldRemoveHideSystemOverlay() local
179 when(activity.getWindow()).thenReturn(window); in onStop_isNotDebuggable_shouldRemoveHideSystemOverlay()
184 verify(window).addSystemFlags(SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS); in onStop_isNotDebuggable_shouldRemoveHideSystemOverlay()
187 when(window.getAttributes()).thenReturn(layoutParams); in onStop_isNotDebuggable_shouldRemoveHideSystemOverlay()
193 verify(window).setAttributes(paramCaptor.capture()); in onStop_isNotDebuggable_shouldRemoveHideSystemOverlay()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/
DGrantPermissionsActivity.java183 Window window = getWindow(); in onCreate() local
184 WindowManager.LayoutParams layoutParams = window.getAttributes(); in onCreate()
187 window.setAttributes(layoutParams); in onCreate()
191 mViewHandler.onBlurEnabledChanged(window, enabled); in onCreate()
196 window.getWindowManager().addCrossWindowBlurEnabledListener( in onCreate()
202 window.getWindowManager().removeCrossWindowBlurEnabledListener( in onCreate()
213 window.setDimAmount(0f); in onCreate()
/packages/apps/Settings/src/com/android/settings/wifi/addappnetworks/
DAddAppNetworksActivity.java60 final Window window = getWindow(); in onCreate() local
61 window.setGravity(Gravity.BOTTOM); in onCreate()
62 window.setLayout(WindowManager.LayoutParams.MATCH_PARENT, in onCreate()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DViewLayoutUtils.java58 public static void updateLayoutHeightOf(final Window window, final int layoutHeight) { in updateLayoutHeightOf() argument
59 final WindowManager.LayoutParams params = window.getAttributes(); in updateLayoutHeightOf()
62 window.setAttributes(params); in updateLayoutHeightOf()
/packages/apps/Settings/src/com/android/settings/notification/app/
DChannelPanelActivity.java95 final Window window = getWindow(); in createOrUpdatePanel() local
96 window.setGravity(Gravity.BOTTOM); in createOrUpdatePanel()
97 window.setLayout(WindowManager.LayoutParams.MATCH_PARENT, in createOrUpdatePanel()
/packages/apps/Settings/src/com/android/settings/panel/
DSettingsPanelActivity.java143 final Window window = getWindow(); in createOrUpdatePanel() local
144 window.setGravity(Gravity.BOTTOM); in createOrUpdatePanel()
145 window.setLayout(WindowManager.LayoutParams.MATCH_PARENT, in createOrUpdatePanel()
/packages/apps/Dialer/java/com/android/incallui/rtt/impl/
DRttChatFragment.java366 Window window = getActivity().getWindow(); in onRttScreenStart() local
367 window.setStatusBarColor(activity.getColor(R.color.rtt_status_bar_color)); in onRttScreenStart()
368 window.setNavigationBarColor(activity.getColor(R.color.rtt_navigation_bar_color)); in onRttScreenStart()
374 Window window = getActivity().getWindow(); in onRttScreenStop() local
375 window.setStatusBarColor(activity.getColor(android.R.color.transparent)); in onRttScreenStop()
376 window.setNavigationBarColor(activity.getColor(android.R.color.transparent)); in onRttScreenStop()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/systembar/
DCarSystemBarController.java163 private boolean setWindowVisibility(ViewGroup window, @View.Visibility int visibility) { in setWindowVisibility() argument
164 if (window == null) { in setWindowVisibility()
168 if (window.getVisibility() == visibility) { in setWindowVisibility()
172 window.setVisibility(visibility); in setWindowVisibility()
/packages/apps/TV/tuner/src/com/android/tv/tuner/cc/
DCaptionTrackRenderer.java297 private void defineWindow(CaptionWindow window) { in defineWindow() argument
298 if (window == null) { in defineWindow()
301 int windowId = window.id; in defineWindow()
309 windowLayout.initWindow(mCaptionLayout, window); in defineWindow()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/cluster/
DClusterDisplayController.java29 import android.window.DisplayAreaInfo;
30 import android.window.WindowContainerToken;
31 import android.window.WindowContainerTransaction;
/packages/apps/DocumentsUI/src/com/android/documentsui/
DNavigationViewManager.java142 Window window = mActivity.getWindow(); in onOffsetChanged() local
143 View actionBar = window.getDecorView().findViewById(R.id.action_mode_bar); in onOffsetChanged()
151 window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS); in onOffsetChanged()
152 window.setStatusBarColor(dynamicHeaderColor); in onOffsetChanged()
/packages/apps/Contacts/tests/src/com/android/contacts/test/
DFragmentTestActivity.java39 final Window window = getWindow(); in onCreate() local
40 window.addFlags(WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON | in onCreate()
/packages/services/BuiltInPrintService/src/com/android/bips/ui/
DAddManualPrinterDialog.java112 Window window = getWindow(); in openKeyboard() local
113 if (window != null) { in openKeyboard()
114 window.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE); in openKeyboard()
/packages/apps/Settings/src/com/android/settings/accessibility/
DAccessibilityServiceWarning.java79 Window window = ad.getWindow(); in createCapabilitiesDialog() local
80 WindowManager.LayoutParams params = window.getAttributes(); in createCapabilitiesDialog()
82 window.setAttributes(params); in createCapabilitiesDialog()

12345