Home
last modified time | relevance | path

Searched refs:STATE_ACTIVE (Results 1 – 25 of 75) sorted by relevance

123

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DDeviceIdleControllerTest.java38 import static com.android.server.DeviceIdleController.STATE_ACTIVE;
487 verifyStateConditions(STATE_ACTIVE); in testStateActiveToStateInactive_ConditionsNotMet()
494 verifyStateConditions(STATE_ACTIVE); in testStateActiveToStateInactive_ConditionsNotMet()
501 verifyStateConditions(STATE_ACTIVE); in testStateActiveToStateInactive_ConditionsNotMet()
509 verifyStateConditions(STATE_ACTIVE); in testStateActiveToStateInactive_ConditionsNotMet()
517 verifyStateConditions(STATE_ACTIVE); in testStateActiveToStateInactive_ConditionsNotMet()
524 verifyStateConditions(STATE_ACTIVE); in testStateActiveToStateInactive_ConditionsNotMet()
532 verifyStateConditions(STATE_ACTIVE); in testStateActiveToStateInactive_ConditionsNotMet()
566 verifyStateConditions(STATE_ACTIVE); in testStateActiveToStateInactive_ConditionsMet()
587 enterDeepState(STATE_ACTIVE); in testStateActiveToStateInactive_UpcomingAlarm()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/onehanded/
DOneHandedState.java37 public static final int STATE_ACTIVE = 2; field in OneHandedState
44 STATE_ACTIVE,
90 return sCurrentState == STATE_ACTIVE; in isInOneHanded()
DOneHandedTutorialHandler.java23 import static com.android.wm.shell.onehanded.OneHandedState.STATE_ACTIVE;
120 case STATE_ACTIVE: in onStateChanged()
158 mTargetViewContainer.setAlpha(mCurrentState == STATE_ACTIVE ? 1.0f : 0.0f); in createViewAndAttachToWindow()
216 if (mCurrentState == STATE_ENTERING || mCurrentState == STATE_ACTIVE) { in onConfigurationChanged()
DOneHandedController.java24 import static com.android.wm.shell.onehanded.OneHandedState.STATE_ACTIVE;
175 mState.setState(STATE_ACTIVE);
176 notifyShortcutStateChanged(STATE_ACTIVE);
361 mContext.getContentResolver(), state == STATE_ACTIVE ? 1 : 0, mUserId); in notifyShortcutStateChanged()
512 final boolean isActivated = mState.getState() == STATE_ACTIVE;
589 if (mState.getState() == STATE_ENTERING || mState.getState() == STATE_ACTIVE) {
DOneHandedBackgroundPanelOrganizer.java19 import static com.android.wm.shell.onehanded.OneHandedState.STATE_ACTIVE;
234 if (mCurrentState != STATE_ACTIVE) { in onConfigurationChanged()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/
DQSIconViewImplTest.java80 s.state = Tile.STATE_ACTIVE; in testNoFirstFade()
92 s.state = Tile.STATE_ACTIVE; in testStateSetCorrectly_toString()
99 assertEquals("QSIconViewImpl[state=" + Tile.STATE_ACTIVE + ", tint=" + desiredColor in testStateSetCorrectly_toString()
DQSTileViewImplTest.kt91 state.state = Tile.STATE_ACTIVE in testSecondaryLabelNotModified_booleanActive()
113 state.state = Tile.STATE_ACTIVE in testSecondaryLabelNotModified_availableNotBoolean_active()
150 state.state = Tile.STATE_ACTIVE in testSecondaryLabelDescription_booleanActive_default()
255 state.state = Tile.STATE_ACTIVE in testUseStateStringsForKnownSpec_Boolean()
DQSTileImplTest.java144 verify(mQsLogger).logTileClick(SPEC, StatusBarState.SHADE, Tile.STATE_ACTIVE); in testClick_log()
183 verify(mQsLogger).logTileSecondaryClick(SPEC, StatusBarState.SHADE, Tile.STATE_ACTIVE); in testSecondaryClick_log()
210 verify(mQsLogger).logTileLongClick(SPEC, StatusBarState.SHADE, Tile.STATE_ACTIVE); in testLongClick_log()
400 getState().state = Tile.STATE_ACTIVE; in TileImpl()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/onehanded/
DOneHandedStateTest.java19 import static com.android.wm.shell.onehanded.OneHandedState.STATE_ACTIVE;
165 when(mSpiedState.getState()).thenReturn(STATE_ACTIVE); in testInActiveState_shouldSkipDupTrigger()
175 when(mSpiedState.getState()).thenReturn(STATE_ACTIVE); in testInActiveState_canExit()
211 when(mSpiedState.getState()).thenReturn(STATE_ACTIVE); in testInActiveState_disableOHM_shouldStopOHM()
DOneHandedBackgroundPanelOrganizerTest.java22 import static com.android.wm.shell.onehanded.OneHandedState.STATE_ACTIVE;
126 mSpiedBackgroundPanelOrganizer.onStateChanged(STATE_ACTIVE); in testStateActivate_onConfigurationChanged()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/d2d/
DCommunicatorTest.java73 mCommunicator.onStateChanged(null, Connection.STATE_ACTIVE); in testNegotiate()
91 mCommunicator.onStateChanged(null, Connection.STATE_ACTIVE); in testNegotiationFailed()
110 mCommunicator.onStateChanged(null, Connection.STATE_ACTIVE); in testNegotiationFailedNoProtocols()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
DCastTileTest.java187 assertEquals(Tile.STATE_ACTIVE, mCastTile.getState().state); in testStateActive_wifiEnabledAndCasting()
225 assertEquals(Tile.STATE_ACTIVE, mCastTile.getState().state); in testStateActive_hotspotEnabledAndConnectedAndCasting()
279 assertEquals(Tile.STATE_ACTIVE, mCastTile.getState().state); in testUpdateState_projectionOnly()
303 assertEquals(Tile.STATE_ACTIVE, mCastTile.getState().state); in testUpdateState_castingAndProjection()
327 assertEquals(Tile.STATE_ACTIVE, mCastTile.getState().state); in testUpdateState_connectedAndConnecting()
DScreenRecordTileTest.java127 assertEquals(Tile.STATE_ACTIVE, mTile.getState().state); in testIsStarting()
151 assertEquals(Tile.STATE_ACTIVE, mTile.getState().state); in testIsRecording()
/frameworks/base/services/contentcapture/java/com/android/server/contentcapture/
DContentCaptureServerSession.java22 import static android.view.contentcapture.ContentCaptureSession.STATE_ACTIVE;
116 STATE_ACTIVE); in notifySessionStartedLocked()
203 STATE_ACTIVE | STATE_SERVICE_RESURRECTED); in resurrectLocked()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/
DAnyMotionDetector.java54 private static final int STATE_ACTIVE = 1; field in AnyMotionDetector
155 if (mState != STATE_ACTIVE) { in checkForAnyMotion()
157 mState = STATE_ACTIVE; in checkForAnyMotion()
174 if (mState == STATE_ACTIVE) { in stop()
/frameworks/base/telephony/java/android/telephony/ims/
DImsConferenceState.java175 return Connection.STATE_ACTIVE; in getConnectionStateForStatus()
179 return Call.STATE_ACTIVE; in getConnectionStateForStatus()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DDeviceControlsTile.kt119 if (state.state == Tile.STATE_ACTIVE) { in handleClick()
139 state.state = Tile.STATE_ACTIVE in handleUpdateState()
DReduceBrightColorsTile.java110 state.state = state.value ? Tile.STATE_ACTIVE : Tile.STATE_INACTIVE; in handleUpdateState()
/frameworks/av/media/libaudioclient/
DAudioTrack.cpp709 if (mState == STATE_ACTIVE) { in start()
738 mState = STATE_ACTIVE; in start()
862 if (mState != STATE_ACTIVE && mState != STATE_PAUSED) { in stop()
906 return mState != STATE_ACTIVE; in stopped()
925 if (mState == STATE_ACTIVE) { in flush()
933 ALOG_ASSERT(mState != STATE_ACTIVE); in flush_l()
963 if (mState == STATE_ACTIVE) { in pause()
1352 if (mState == STATE_ACTIVE) { in setLoop()
1454 if (mState == STATE_ACTIVE) { in setPosition()
1530 if (mState == STATE_ACTIVE) { in reload()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/
DTileColorPicker.java55 case Tile.STATE_ACTIVE: in getColor()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/
DTileColorPickerTest.java68 final int color = mTileColorPicker.getColor(Tile.STATE_ACTIVE); in testGetColor_StateActive_ReturnActiveColor()
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/
DNekoTile.java78 tile.setState(foodState != 0 ? Tile.STATE_ACTIVE : Tile.STATE_INACTIVE); in updateState()
/frameworks/av/media/libaudioclient/include/media/
DAudioTrack.h1007 return mState == STATE_ACTIVE || mState == STATE_STOPPING; in isPlaying()
1187 STATE_ACTIVE, enumerator
1198 case STATE_ACTIVE: return "STATE_ACTIVE"; in stateToString()
/frameworks/base/core/java/android/service/quicksettings/
DTile.java61 public static final int STATE_ACTIVE = 2; field in Tile
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/
DQSTileViewImpl.kt524 Tile.STATE_ACTIVE -> colorActive in <lambda>()
536 Tile.STATE_ACTIVE -> colorLabelActive in <lambda>()
548 Tile.STATE_ACTIVE -> colorSecondaryLabelActive in <lambda>()

123