/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/disableflags/ |
D | DisableStateTrackerTest.kt | 71 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/ |
D | InsetsStateTest.java | 328 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 …]
|
D | InsetsControllerTest.java | 690 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/ |
D | WindowMagnificationGestureHandlerTest.java | 178 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/ |
D | DisableStateTracker.kt | 61 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/ |
D | NavBarHelperTest.java | 318 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/ |
D | GlobalActionsImpl.java | 74 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/ |
D | CentralSurfacesCommandQueueCallbacks.java | 261 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()
|
D | StatusBarRemoteInputCallback.java | 302 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/ |
D | DisableFlagsRepository.kt | 60 state2: Int, in <lambda>() 74 remoteInputQuickSettingsDisabler.adjustDisableFlags(state2), in <lambda>()
|
/frameworks/base/core/java/android/view/ |
D | InsetsState.java | 851 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/ |
D | LockTargetStateAnalysis.java | 100 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/ |
D | MobileRadioPowerStatsCollectorTest.java | 264 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/ |
D | QuickStatusBarHeader.java | 117 public void disable(int state1, int state2, boolean animate) { in disable() argument 118 final boolean disabled = (state2 & DISABLE2_QUICK_SETTINGS) != 0; in disable()
|
D | QSFooter.java | 51 default void disable(int state1, int state2, boolean animate) {} in disable() argument
|
D | QSFooterViewController.java | 125 public void disable(int state1, int state2, boolean animate) { in disable() argument 126 mView.disable(state2); in disable()
|
D | QSImpl.java | 419 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()
|
D | QSFooterView.java | 190 void disable(int state2) { in disable() argument 191 final boolean disabled = (state2 & DISABLE2_QUICK_SETTINGS) != 0; in disable()
|
D | QSContainerImpl.java | 186 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/ |
D | DisplayBrightnessStateTest.java | 85 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/ |
D | CommandQueueTest.java | 102 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/ |
D | InputDeviceLightsManagerTest.java | 269 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/ |
D | IOverviewProxy.aidl | 78 void disable(int displayId, int state1, int state2, boolean animate) = 19; in disable() argument
|
/frameworks/base/core/java/com/android/internal/statusbar/ |
D | IStatusBar.aidl | 46 void disable(int displayId, int state1, int state2); in disable() argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/ |
D | TaskbarDelegate.java | 374 public void disable(int displayId, int state1, int state2, boolean animate) { in disable() argument 377 mOverviewProxyService.disable(displayId, state1, state2, animate); in disable()
|