Home
last modified time | relevance | path

Searched refs:state2 (Results 1 – 25 of 39) sorted by relevance

12

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/disableflags/
DDisableStateTrackerTest.kt71 underTest.disable(displayId = 0, state1 = DISABLE_CLOCK, state2 = 0, animate = false) in disable_hadNotStartedTracking_isDisabledFalse()
81 underTest.disable(displayId = 20, state1 = DISABLE_CLOCK, state2 = 0, animate = false) in disable_wrongDisplayId_isDisabledFalse()
92 DISPLAY_ID, state1 = DISABLE_EXPAND, state2 = DISABLE2_QUICK_SETTINGS, animate = false in disable_irrelevantFlagsUpdated_isDisabledFalse()
106 underTest.disable(DISPLAY_ID, state1 = DISABLE_EXPAND, state2 = 0, animate = false) in disable_partOfMask1True_isDisabledTrue()
119 underTest.disable(DISPLAY_ID, state1 = 0, state2 = DISABLE2_SYSTEM_ICONS, animate = false) in disable_partOfMask2True_isDisabledTrue()
134 underTest.disable(DISPLAY_ID, state1 = DISABLE_CLOCK, state2 = 0, animate = false) in disable_isDisabledChangesFromFalseToTrue_callbackNotified()
150 underTest.disable(DISPLAY_ID, state1 = DISABLE_CLOCK, state2 = 0, animate = false) in disable_isDisabledChangesFromTrueToFalse_callbackNotified()
155 underTest.disable(DISPLAY_ID, state1 = 0, state2 = 0, animate = false) in disable_isDisabledChangesFromTrueToFalse_callbackNotified()
173 state2 = 0, in disable_manyUpdates_isDisabledUpdatesAppropriately()
182 state2 = 0, in disable_manyUpdates_isDisabledUpdatesAppropriately()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/
DInsetsStateTest.java328 final InsetsState state2 = new InsetsState(); in testEquals() local
329 assertTrue(state1.equals(state2)); in testEquals()
332 assertFalse(state1.equals(state2)); in testEquals()
334 state2.addSource(new InsetsSource(ID_STATUS_BAR, statusBars())); in testEquals()
335 assertTrue(state1.equals(state2)); in testEquals()
337 state2.addSource(new InsetsSource(ID_NAVIGATION_BAR, navigationBars())); in testEquals()
338 assertFalse(state1.equals(state2)); in testEquals()
344 final InsetsState state2 = new InsetsState(); in testEquals_excludesCaptionBar() local
348 state2, false /* excludesCaptionBar */, false /* excludesInvisibleIme */)); in testEquals_excludesCaptionBar()
350 state2, true /* excludesCaptionBar */, false /* excludesInvisibleIme */)); in testEquals_excludesCaptionBar()
[all …]
DInsetsControllerTest.java690 final InsetsState state2 = new InsetsState(state1, true /* copySources */); in testResizeAnimation_withFlagAnimateResizing() local
691 state2.peekSource(id).setFrame(0, 0, 500, toInsetsHeight); in testResizeAnimation_withFlagAnimateResizing()
716 mController.onStateChanged(state2); in testResizeAnimation_withFlagAnimateResizing()
741 final InsetsState state2 = new InsetsState(state1, true /* copySources */); in testResizeAnimation_withoutFlagAnimateResizing() local
742 state2.peekSource(id).setFrame(0, 0, 500, 60); in testResizeAnimation_withoutFlagAnimateResizing()
751 mController.onStateChanged(state2); in testResizeAnimation_withoutFlagAnimateResizing()
765 final InsetsState state2 = new InsetsState(state1, true /* copySources */); in testResizeAnimation_sourceFrame() local
766 state2.setDisplayFrame(state1.getDisplayFrame()); in testResizeAnimation_sourceFrame()
767 state2.peekSource(id).setFrame(0, 0, 500, 0); in testResizeAnimation_sourceFrame()
775 mController.onStateChanged(state2); in testResizeAnimation_sourceFrame()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/
DWindowMagnificationGestureHandlerTest.java178 forEachState(state2 -> { in testStates_areMutuallyExclusive()
179 if (state1 < state2) { in testStates_areMutuallyExclusive()
182 assertIn(state2); in testStates_areMutuallyExclusive()
184 + stateToString(state2) + stateDump()); in testStates_areMutuallyExclusive()
199 forEachState(state2 -> { in testStates_enabledMultiFinger_areMutuallyExclusive()
200 if (state1 < state2) { in testStates_enabledMultiFinger_areMutuallyExclusive()
203 assertIn(state2); in testStates_enabledMultiFinger_areMutuallyExclusive()
205 + stateToString(state2) + stateDump()); in testStates_enabledMultiFinger_areMutuallyExclusive()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/disableflags/
DDisableStateTracker.kt61 override fun disable(displayId: Int, state1: Int, state2: Int, animate: Boolean) { in disable()
65 isDisabled = state1 and mask1 != 0 || state2 and mask2 != 0 in disable()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/navigationbar/
DNavBarHelperTest.java318 NavBarHelper.CurrentSysuiState state2 = mNavBarHelper.getCurrentSysuiState(); in saveMostRecentSysuiState() local
321 assertThat(state1.mWindowState).isNotEqualTo(state2.mWindowState); in saveMostRecentSysuiState()
322 assertThat(state1.mWindowStateDisplayId).isEqualTo(state2.mWindowStateDisplayId); in saveMostRecentSysuiState()
323 assertThat(state2.mWindowState).isEqualTo(newState); in saveMostRecentSysuiState()
334 NavBarHelper.CurrentSysuiState state2 = mNavBarHelper.getCurrentSysuiState(); in ignoreNonNavbarSysuiState() local
337 assertThat(state2.mWindowState).isEqualTo(state1.mWindowState); in ignoreNonNavbarSysuiState()
338 assertThat(state2.mWindowState).isNotEqualTo(newState); in ignoreNonNavbarSysuiState()
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/
DGlobalActionsImpl.java74 public void disable(int displayId, int state1, int state2, boolean animate) { in disable() argument
75 final boolean disabled = (state2 & DISABLE2_GLOBAL_ACTIONS) != 0; in disable()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DCentralSurfacesCommandQueueCallbacks.java261 public void disable(int displayId, int state1, int state2, boolean animate) { in disable() argument
270 state2 = mRemoteInputQuickSettingsDisabler.adjustDisableFlags(state2); in disable()
272 final int diff2 = state2 ^ old2; in disable()
273 mDisabled2 = state2; in disable()
288 if ((state2 & StatusBarManager.DISABLE2_NOTIFICATION_SHADE) != 0) { in disable()
294 mShadeHeaderController.disable(state1, state2, animate); in disable()
DStatusBarRemoteInputCallback.java302 public void disable(int displayId, int state1, int state2, boolean animate) { in disable() argument
304 mDisabled2 = state2; in disable()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/disableflags/data/repository/
DDisableFlagsRepository.kt60 state2: Int, in <lambda>()
74 remoteInputQuickSettingsDisabler.adjustDisableFlags(state2), in <lambda>()
/frameworks/base/core/java/android/view/
DInsetsState.java851 public static void traverse(InsetsState state1, InsetsState state2, OnTraverseCallbacks cb) {
852 cb.onStart(state1, state2);
854 final int size2 = state2.sourceSize();
859 int id2 = state2.sourceIdAt(index2);
870 cb.onIdNotFoundInState1(index2, state2.sourceAt(index2));
873 id2 = state2.sourceIdAt(index2);
883 final InsetsSource source2 = state2.sourceAt(index2);
889 cb.onIdNotFoundInState1(index2, state2.sourceAt(index2));
896 cb.onFinish(state1, state2);
911 default void onStart(InsetsState state1, InsetsState state2) { }
[all …]
/frameworks/base/tools/locked_region_code_injection/src/lockedregioncodeinjection/
DLockTargetStateAnalysis.java100 LockTargetState state2 = (LockTargetState) v2; in merge() local
103 for (LockTarget otherTarget : state2.getTargets()) { in merge()
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DMobileRadioPowerStatsCollectorTest.java264 long[] state2 = powerStats.stateStats.get(MobileRadioPowerStatsCollector.makeStateKey( in collectStats() local
268 assertThat(layout.getStateRxTime(state2)).isEqualTo(7000); in collectStats()
269 assertThat(layout.getStateTxTime(state2, 0)).isEqualTo(8000); in collectStats()
270 assertThat(layout.getStateTxTime(state2, 1)).isEqualTo(9000); in collectStats()
271 assertThat(layout.getStateTxTime(state2, 2)).isEqualTo(1000); in collectStats()
272 assertThat(layout.getStateTxTime(state2, 3)).isEqualTo(2000); in collectStats()
273 assertThat(layout.getStateTxTime(state2, 4)).isEqualTo(3000); in collectStats()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQuickStatusBarHeader.java117 public void disable(int state1, int state2, boolean animate) { in disable() argument
118 final boolean disabled = (state2 & DISABLE2_QUICK_SETTINGS) != 0; in disable()
DQSFooter.java51 default void disable(int state1, int state2, boolean animate) {} in disable() argument
DQSFooterViewController.java125 public void disable(int state1, int state2, boolean animate) { in disable() argument
126 mView.disable(state2); in disable()
DQSImpl.java419 public void disable(int displayId, int state1, int state2, boolean animate) { in disable() argument
423 int state2BeforeAdjustment = state2; in disable()
424 state2 = mRemoteInputQuickSettingsDisabler.adjustDisableFlags(state2); in disable()
428 /* newAfterLocalModification= */ new DisableFlagsLogger.DisableState(state1, state2) in disable()
431 final boolean disabled = (state2 & DISABLE2_QUICK_SETTINGS) != 0; in disable()
434 mContainer.disable(state1, state2, animate); in disable()
435 mHeader.disable(state1, state2, animate); in disable()
436 mFooter.disable(state1, state2, animate); in disable()
DQSFooterView.java190 void disable(int state2) { in disable() argument
191 final boolean disabled = (state2 & DISABLE2_QUICK_SETTINGS) != 0; in disable()
DQSContainerImpl.java186 public void disable(int state1, int state2, boolean animate) { in disable() argument
187 final boolean disabled = (state2 & DISABLE2_QUICK_SETTINGS) != 0; in disable()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DDisplayBrightnessStateTest.java85 DisplayBrightnessState state2 = DisplayBrightnessState.Builder.from(state1).build(); in testFrom() local
86 assertEquals(state1, state2); in testFrom()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DCommandQueueTest.java102 int state2 = 42; in testDisable() local
103 mCommandQueue.disable(DEFAULT_DISPLAY, state1, state2); in testDisable()
105 verify(mCallbacks).disable(eq(DEFAULT_DISPLAY), eq(state1), eq(state2), eq(true)); in testDisable()
111 int state2 = 42; in testDisableForSecondaryDisplay() local
112 mCommandQueue.disable(SECONDARY_DISPLAY, state1, state2); in testDisableForSecondaryDisplay()
114 verify(mCallbacks).disable(eq(SECONDARY_DISPLAY), eq(state1), eq(state2), eq(true)); in testDisableForSecondaryDisplay()
/frameworks/base/tests/Input/src/android/hardware/input/
DInputDeviceLightsManagerTest.java269 LightState state2 = new LightState(0xf2, PLAYER_ID); in testLightsRequest() local
271 .addLight(light2, state2).build(); in testLightsRequest()
281 assertThat(request.getLightStates().get(1)).isEqualTo(state2); in testLightsRequest()
287 assertThat(request.getLightsAndStates().get(light2)).isEqualTo(state2); in testLightsRequest()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/
DIOverviewProxy.aidl78 void disable(int displayId, int state1, int state2, boolean animate) = 19; in disable() argument
/frameworks/base/core/java/com/android/internal/statusbar/
DIStatusBar.aidl46 void disable(int displayId, int state1, int state2); in disable() argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/
DTaskbarDelegate.java374 public void disable(int displayId, int state1, int state2, boolean animate) { in disable() argument
377 mOverviewProxyService.disable(displayId, state1, state2, animate); in disable()

12