/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/systembar/ |
D | CarSystemBarControllerTest.java | 152 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/ |
D | SlidingWindowTest.java | 45 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/ |
D | WindowBuilderTest.java | 37 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()
|
D | WindowBuilder.java | 49 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()
|
D | NavigatorTest.java | 855 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 …]
|
D | RotaryServiceTest.java | 143 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/ |
D | Navigator.java | 117 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 …]
|
D | RotaryService.java | 510 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 …]
|
D | Utils.java | 315 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/ |
D | SystemBarsFragment.java | 100 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/ |
D | SettingsPanelActivityTest.java | 88 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/ |
D | SettingsHomepageActivityTest.java | 159 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/ |
D | GrantPermissionsActivity.java | 183 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/ |
D | AddAppNetworksActivity.java | 60 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/ |
D | ViewLayoutUtils.java | 58 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/ |
D | ChannelPanelActivity.java | 95 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/ |
D | SettingsPanelActivity.java | 143 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/ |
D | RttChatFragment.java | 366 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/ |
D | CarSystemBarController.java | 163 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/ |
D | CaptionTrackRenderer.java | 297 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/ |
D | ClusterDisplayController.java | 29 import android.window.DisplayAreaInfo; 30 import android.window.WindowContainerToken; 31 import android.window.WindowContainerTransaction;
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | NavigationViewManager.java | 142 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/ |
D | FragmentTestActivity.java | 39 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/ |
D | AddManualPrinterDialog.java | 112 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/ |
D | AccessibilityServiceWarning.java | 79 Window window = ad.getWindow(); in createCapabilitiesDialog() local 80 WindowManager.LayoutParams params = window.getAttributes(); in createCapabilitiesDialog() 82 window.setAttributes(params); in createCapabilitiesDialog()
|