/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/Settings/tests/robotests/src/com/android/settings/panel/ |
D | SettingsPanelActivityTest.java | 107 final Window window = mock(Window.class); in onStart_isNotDebuggable_shouldHideSystemOverlay() local 108 when(activity.getWindow()).thenReturn(window); in onStart_isNotDebuggable_shouldHideSystemOverlay() 113 verify(window).addSystemFlags(SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS); in onStart_isNotDebuggable_shouldHideSystemOverlay() 123 final Window window = mock(Window.class); in onStop_isNotDebuggable_shouldRemoveHideSystemOverlay() local 124 when(activity.getWindow()).thenReturn(window); in onStop_isNotDebuggable_shouldRemoveHideSystemOverlay() 129 verify(window).addSystemFlags(SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS); in onStop_isNotDebuggable_shouldRemoveHideSystemOverlay() 132 when(window.getAttributes()).thenReturn(layoutParams); in onStop_isNotDebuggable_shouldRemoveHideSystemOverlay() 138 verify(window).setAttributes(paramCaptor.capture()); in onStop_isNotDebuggable_shouldRemoveHideSystemOverlay()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/ |
D | SettingsHomepageActivityTest.java | 92 final Window window = mock(Window.class); in onStart_isNotDebuggable_shouldHideSystemOverlay() local 93 when(activity.getWindow()).thenReturn(window); in onStart_isNotDebuggable_shouldHideSystemOverlay() 98 verify(window).addSystemFlags(SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS); in onStart_isNotDebuggable_shouldHideSystemOverlay() 112 final Window window = mock(Window.class); in onStop_isNotDebuggable_shouldRemoveHideSystemOverlay() local 113 when(activity.getWindow()).thenReturn(window); in onStop_isNotDebuggable_shouldRemoveHideSystemOverlay() 118 verify(window).addSystemFlags(SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS); in onStop_isNotDebuggable_shouldRemoveHideSystemOverlay() 121 when(window.getAttributes()).thenReturn(layoutParams); in onStop_isNotDebuggable_shouldRemoveHideSystemOverlay() 127 verify(window).setAttributes(paramCaptor.capture()); in onStop_isNotDebuggable_shouldRemoveHideSystemOverlay()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/ |
D | SetupLayoutActivity.java | 89 Window window = getWindow(); in setStatusBarColor() local 90 window.clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS); in setStatusBarColor() 91 window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS); in setStatusBarColor() 92 window.setStatusBarColor(statusBarColor); in setStatusBarColor()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/core/ |
D | HideNonSystemOverlayMixin.java | 66 final Window window = mActivity.getWindow(); in onStop() local 67 final WindowManager.LayoutParams attrs = window.getAttributes(); in onStop() 69 window.setAttributes(attrs); in onStop()
|
/packages/apps/Settings/src/com/android/settings/core/ |
D | HideNonSystemOverlayMixin.java | 66 final Window window = mActivity.getWindow(); in onStop() local 67 final WindowManager.LayoutParams attrs = window.getAttributes(); in onStop() 69 window.setAttributes(attrs); in onStop()
|
/packages/apps/Settings/src/com/android/settings/panel/ |
D | SettingsPanelActivity.java | 103 final Window window = getWindow(); in createOrUpdatePanel() local 104 window.setGravity(Gravity.BOTTOM); in createOrUpdatePanel() 105 window.setLayout(WindowManager.LayoutParams.MATCH_PARENT, in createOrUpdatePanel()
|
/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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/panel/ |
D | SettingsPanelActivity.java | 82 final Window window = getWindow(); in onCreate() local 83 window.setGravity(Gravity.BOTTOM); in onCreate() 84 window.setLayout(WindowManager.LayoutParams.MATCH_PARENT, in onCreate()
|
/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/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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accessibility/ |
D | AccessibilityServiceWarning.java | 70 Window window = ad.getWindow(); in createCapabilitiesDialog() local 71 WindowManager.LayoutParams params = window.getAttributes(); in createCapabilitiesDialog() 73 window.setAttributes(params); in createCapabilitiesDialog()
|
/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 | 69 Window window = ad.getWindow(); in createCapabilitiesDialog() local 70 WindowManager.LayoutParams params = window.getAttributes(); in createCapabilitiesDialog() 72 window.setAttributes(params); in createCapabilitiesDialog()
|
/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/apps/Launcher3/src/com/android/launcher3/util/ |
D | SystemUiController.java | 47 public SystemUiController(Window window) { in SystemUiController() argument 48 mWindow = window; in SystemUiController()
|
/packages/apps/Dialer/java/com/android/dialer/historyitemactions/ |
D | HistoryItemActionBottomSheet.java | 194 Window window = getWindow(); in setupWindow() local 195 if (window == null) { in setupWindow() 199 window.setLayout( in setupWindow()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/ |
D | SmsDefaultDialog.java | 76 final Window window = getWindow(); in onStop() local 77 final WindowManager.LayoutParams attrs = window.getAttributes(); in onStop() 79 window.setAttributes(attrs); in onStop()
|
/packages/apps/Nfc/src/com/android/nfc/beam/ |
D | SendUi.java | 310 Window window = new PhoneWindow(mContext); in SendUi() local 311 window.setCallback(this); in SendUi() 312 window.requestFeature(Window.FEATURE_NO_TITLE); in SendUi() 313 mDecor = window.getDecorView(); in SendUi() 314 window.setContentView(mScreenshotLayout, mWindowLayoutParams); in SendUi()
|
/packages/apps/Contacts/src/com/android/contacts/activities/ |
D | ActionBarAdapter.java | 517 final Window window = mActivity.getWindow(); in runStatusBarAnimation() local 518 if (window.getStatusBarColor() != colorTo) { in runStatusBarAnimation() 523 final int from = window.getStatusBarColor(); in runStatusBarAnimation() 530 window.setStatusBarColor((Integer) animator.getAnimatedValue()); in runStatusBarAnimation()
|
/packages/services/Car/tools/emulator/ |
D | gui.py | 44 def window(): function 141 window()
|
/packages/apps/Nfc/src/com/android/nfc/cardemulation/ |
D | TapAgainDialog.java | 94 Window window = getWindow(); in onCreate() local 95 window.addFlags(WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD); in onCreate()
|
/packages/apps/Car/libs/car-ui-lib/src/com/android/car/ui/preference/ |
D | CarUiDialogFragment.java | 166 Window window = dialog.getWindow(); in requestInputMethod() local 167 window.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE); in requestInputMethod()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | LatinIME.java | 1312 final Window window = getWindow().getWindow(); in updateSoftInputWindowLayoutParameters() local 1313 ViewLayoutUtils.updateLayoutHeightOf(window, LayoutParams.MATCH_PARENT); in updateSoftInputWindowLayoutParameters() 1324 final View inputArea = window.findViewById(android.R.id.inputArea); in updateSoftInputWindowLayoutParameters() 1888 final Window window = dialog.getWindow(); in showOptionDialog() local 1889 final WindowManager.LayoutParams lp = window.getAttributes(); in showOptionDialog() 1892 window.setAttributes(lp); in showOptionDialog() 1893 window.addFlags(WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM); in showOptionDialog()
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | EventInfoFragment.java | 401 Window window = dialog.getWindow(); in applyDialogParams() local 402 window.addFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND); in applyDialogParams() 404 WindowManager.LayoutParams a = window.getAttributes(); in applyDialogParams() 422 window.setAttributes(a); in applyDialogParams()
|