/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/ |
D | NetworkState.java | 19 import android.net.NetworkInfo.State; 36 private List<State> mStateDepository; 37 private State mTransitionTarget; 42 mStateDepository = new ArrayList<State>(); in NetworkState() 44 mTransitionTarget = State.UNKNOWN; in NetworkState() 47 public NetworkState(State currentState) { in NetworkState() 48 mStateDepository = new ArrayList<State>(); in NetworkState() 51 mTransitionTarget = State.UNKNOWN; in NetworkState() 60 mTransitionTarget = State.UNKNOWN; in resetNetworkState() 69 public void setStateTransitionCriteria(State initState, StateTransitionDirection transitionDir, in setStateTransitionCriteria() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
D | DozeMachine.java | 63 public enum State { enum in DozeMachine 154 private final ArrayList<State> mQueuedRequests = new ArrayList<>(); 155 private State mState = State.UNINITIALIZED; 212 public void requestState(State requestedState) { in requestState() 213 Preconditions.checkArgument(requestedState != State.DOZE_REQUEST_PULSE); in requestState() 223 requestState(State.DOZE_REQUEST_PULSE, pulseReason); in requestPulse() 231 return mState == State.UNINITIALIZED || mState == State.FINISH; in isUninitializedOrFinished() 241 private void requestState(State requestedState, int pulseReason) { in requestState() 268 public State getState() { in getState() 285 Preconditions.checkState(mState == State.DOZE_REQUEST_PULSE in getPulseReason() [all …]
|
D | DozeDockHandler.java | 23 import com.android.systemui.doze.DozeMachine.State; 63 public void transitionTo(DozeMachine.State oldState, DozeMachine.State newState) { in transitionTo() 100 DozeMachine.State nextState; in onEvent() 103 nextState = State.DOZE_AOD_DOCKED; in onEvent() 106 nextState = mConfig.alwaysOnEnabled(mUserTracker.getUserId()) ? State.DOZE_AOD in onEvent() 107 : State.DOZE; in onEvent() 110 nextState = State.DOZE; in onEvent() 119 DozeMachine.State state = mMachine.getState(); in isPulsing() 120 return state == State.DOZE_REQUEST_PULSE || state == State.DOZE_PULSING in isPulsing() 121 || state == State.DOZE_PULSING_BRIGHT; in isPulsing()
|
D | DozeSuppressor.java | 103 public void transitionTo(DozeMachine.State oldState, DozeMachine.State newState) { in transitionTo() 138 mMachine.requestState(DozeMachine.State.FINISH); in checkShouldImmediatelyEndDoze() 155 ? DozeMachine.State.DOZE_AOD : DozeMachine.State.DOZE); in handleCarModeExited() 160 mMachine.requestState(DozeMachine.State.DOZE_SUSPEND_TRIGGERS); in handleCarModeStarted() 168 DozeMachine.State nextState = null; 170 nextState = DozeMachine.State.DOZE; 171 } else if (mMachine.getState() == DozeMachine.State.DOZE 173 nextState = DozeMachine.State.DOZE_AOD; 186 final DozeMachine.State nextState; 188 nextState = DozeMachine.State.DOZE_AOD; [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/ |
D | DozeWallpaperStateTest.java | 64 mDozeWallpaperState.transitionTo(DozeMachine.State.UNINITIALIZED, in testDreamNotification() 65 DozeMachine.State.DOZE_AOD); in testDreamNotification() 67 mDozeWallpaperState.transitionTo(DozeMachine.State.DOZE_AOD, DozeMachine.State.FINISH); in testDreamNotification() 72 mDozeWallpaperState.transitionTo(DozeMachine.State.FINISH, DozeMachine.State.DOZE_AOD); in testDreamNotification() 83 mDozeWallpaperState.transitionTo(DozeMachine.State.UNINITIALIZED, in testAnimates_whenSupported() 84 DozeMachine.State.DOZE_AOD); in testAnimates_whenSupported() 88 mDozeWallpaperState.transitionTo(DozeMachine.State.DOZE_AOD, DozeMachine.State.FINISH); in testAnimates_whenSupported() 100 mDozeWallpaperState.transitionTo(DozeMachine.State.UNINITIALIZED, in testDoesNotAnimate_whenNotSupported() 101 DozeMachine.State.DOZE_AOD); in testDoesNotAnimate_whenNotSupported() 104 mDozeWallpaperState.transitionTo(DozeMachine.State.DOZE_AOD, DozeMachine.State.FINISH); in testDoesNotAnimate_whenNotSupported() [all …]
|
D | DozeDockHandlerTest.java | 39 import com.android.systemui.doze.DozeMachine.State; 67 when(mMachine.getState()).thenReturn(State.DOZE_AOD); in setUp() 69 mDockHandler.transitionTo(DozeMachine.State.UNINITIALIZED, DozeMachine.State.INITIALIZED); in setUp() 79 mDockHandler.transitionTo(DozeMachine.State.INITIALIZED, DozeMachine.State.FINISH); in transitionToFinish_unregistersDockEventListener() 88 verify(mMachine).requestState(eq(State.DOZE_AOD_DOCKED)); in onEvent_docked_requestsDockedAodState() 95 verify(mMachine, never()).requestState(eq(State.DOZE_AOD)); in onEvent_noneWhileEnabledAod_ignoresIfAlreadyNone() 104 verify(mMachine).requestState(eq(State.DOZE_AOD)); in onEvent_noneWhileEnabledAod_requestsAodState() 115 verify(mMachine).requestState(eq(State.DOZE)); in onEvent_noneWhileDisabledAod_requestsDozeState() 122 verify(mMachine).requestState(eq(State.DOZE)); in onEvent_hide_requestsDozeState() 127 when(mMachine.getState()).thenReturn(State.DOZE_PULSING); in onEvent_dockedWhilePulsing_wontRequestStateChange() [all …]
|
D | DozeTriggersTest.java | 19 import static com.android.systemui.doze.DozeMachine.State.DOZE_AOD; 20 import static com.android.systemui.doze.DozeMachine.State.INITIALIZED; 21 import static com.android.systemui.doze.DozeMachine.State.UNINITIALIZED; 144 when(mMachine.getState()).thenReturn(DozeMachine.State.DOZE); in testOnNotification_stillWorksAfterOneFailedProxCheck() 148 mTriggers.transitionTo(UNINITIALIZED, DozeMachine.State.INITIALIZED); in testOnNotification_stillWorksAfterOneFailedProxCheck() 149 mTriggers.transitionTo(DozeMachine.State.INITIALIZED, DozeMachine.State.DOZE); in testOnNotification_stillWorksAfterOneFailedProxCheck() 175 when(mMachine.getState()).thenReturn(DozeMachine.State.DOZE); in testOnNotification_noPulseIfPulseIsNotPendingAnymore() 179 mTriggers.transitionTo(UNINITIALIZED, DozeMachine.State.INITIALIZED); in testOnNotification_noPulseIfPulseIsNotPendingAnymore() 180 mTriggers.transitionTo(DozeMachine.State.INITIALIZED, DozeMachine.State.DOZE); in testOnNotification_noPulseIfPulseIsNotPendingAnymore() 198 when(mMachine.getState()).thenReturn(DozeMachine.State.DOZE); in testTransitionTo_disablesAndEnablesTouchSensors() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | SimulatedGsmCallState.java | 33 enum State { enum in CallInfo 41 State(int value) {mValue = value;} in State() method in CallInfo.State 48 State mState; 53 CallInfo (boolean isMT, State state, boolean isMpty, String number) { in CallInfo() 68 return new CallInfo (false, State.DIALING, false, number); in createOutgoingCall() 73 return new CallInfo (true, State.INCOMING, false, number); in createIncomingCall() 112 return mState == State.ACTIVE || mState == State.HOLDING; in isActiveOrHeld() 117 return mState == State.DIALING || mState == State.ALERTING; in isConnecting() 122 return mState == State.INCOMING || mState == State.WAITING; in isRinging() 192 && (call.mState == CallInfo.State.INCOMING in triggerRing() [all …]
|
D | GsmCdmaCallTest.java | 55 assertEquals(Call.State.IDLE, mCallUnderTest.getState()); in testAttachDetach() 58 mDriverCall.state = DriverCall.State.ACTIVE; in testAttachDetach() 63 assertEquals(Call.State.ACTIVE, mCallUnderTest.getState()); in testAttachDetach() 70 assertEquals(Call.State.IDLE, mCallUnderTest.getState()); in testAttachDetach() 77 assertEquals(Call.State.IDLE, mCallUnderTest.getState()); in testMultiparty() 83 mDriverCall.state = DriverCall.State.ACTIVE; in testMultiparty() 110 mDriverCall.state = DriverCall.State.ACTIVE; in testConnectionDisconnected() 116 assertEquals(Call.State.ACTIVE, mCallUnderTest.getState()); in testConnectionDisconnected() 119 doReturn(Call.State.DISCONNECTED).when(mConnection1).getState(); in testConnectionDisconnected() 121 assertEquals(Call.State.ACTIVE, mCallUnderTest.getState()); in testConnectionDisconnected() [all …]
|
D | GsmCdmaCallTrackerTest.java | 112 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); in testMOCallDial() 113 assertEquals(GsmCdmaCall.State.IDLE, mCTUT.mForegroundCall.getState()); in testMOCallDial() 114 assertEquals(GsmCdmaCall.State.IDLE, mCTUT.mBackgroundCall.getState()); in testMOCallDial() 126 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()); in testMOCallDial() 127 assertEquals(GsmCdmaCall.State.DIALING, mCTUT.mForegroundCall.getState()); in testMOCallDial() 144 assertEquals(GsmCdmaCall.State.ACTIVE, mCTUT.mForegroundCall.getState()); in testMOCallPickUp() 145 assertEquals(GsmCdmaCall.State.IDLE, mCTUT.mBackgroundCall.getState()); in testMOCallPickUp() 156 assertEquals(GsmCdmaCall.State.DIALING, mCTUT.mForegroundCall.getState()); in testMOCallHangup() 157 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()); in testMOCallHangup() 167 assertEquals(GsmCdmaCall.State.IDLE, mCTUT.mForegroundCall.getState()); in testMOCallHangup() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/ |
D | ImsPhoneCallTest.java | 83 assertEquals(Call.State.IDLE, mImsCallUT.getState()); in testAttachDetach() 86 mImsCallUT.attach(mConnection1, Call.State.ACTIVE); in testAttachDetach() 90 assertEquals(Call.State.ACTIVE, mImsCallUT.getState()); in testAttachDetach() 97 assertEquals(Call.State.IDLE, mImsCallUT.getState()); in testAttachDetach() 104 mImsCallUT.attach(mConnection1, Call.State.ACTIVE); in testConnectionDisconnected() 105 mImsCallUT.attach(mConnection2, Call.State.ACTIVE); in testConnectionDisconnected() 108 assertEquals(Call.State.ACTIVE, mImsCallUT.getState()); in testConnectionDisconnected() 110 doReturn(Call.State.DISCONNECTED).when(mConnection1).getState(); in testConnectionDisconnected() 112 assertEquals(Call.State.ACTIVE, mImsCallUT.getState()); in testConnectionDisconnected() 113 doReturn(Call.State.DISCONNECTED).when(mConnection2).getState(); in testConnectionDisconnected() [all …]
|
D | ImsCallInfoTrackerTest.java | 69 ImsPhoneConnection c = getConnection(Call.State.DIALING, false); in testDialingNormalCall() 83 assertEquals(Call.State.DIALING, info.getCallState()); in testDialingNormalCall() 94 ImsPhoneConnection c = getConnection(Call.State.DIALING, true); in testDialingEmergencyCall() 108 assertEquals(Call.State.DIALING, info.getCallState()); in testDialingEmergencyCall() 119 ImsPhoneConnection c = getConnection(Call.State.INCOMING, false); in testIncomingCall() 133 assertEquals(Call.State.INCOMING, info.getCallState()); in testIncomingCall() 140 doReturn(Call.State.ACTIVE).when(c).getState(); in testIncomingCall() 154 assertEquals(Call.State.ACTIVE, info.getCallState()); in testIncomingCall() 157 doReturn(Call.State.HOLDING).when(c).getState(); in testIncomingCall() 171 assertEquals(Call.State.HOLDING, info.getCallState()); in testIncomingCall() [all …]
|
/frameworks/base/services/core/java/com/android/server/location/provider/ |
D | AbstractLocationProvider.java | 54 void onStateChanged(State oldState, State newState); in onStateChanged() 66 public static final class State { class in AbstractLocationProvider 72 public static final State EMPTY_STATE = new State(false, null, null, 96 private State(boolean allowed, ProviderProperties properties, CallerIdentity identity, in State() method in AbstractLocationProvider.State 107 public State withAllowed(boolean allowed) { in withAllowed() 111 return new State(allowed, properties, identity, extraAttributionTags); in withAllowed() 118 public State withProperties(@Nullable ProviderProperties properties) { in withProperties() 122 return new State(allowed, properties, identity, extraAttributionTags); in withProperties() 129 public State withIdentity(@Nullable CallerIdentity identity) { in withIdentity() 133 return new State(allowed, properties, identity, extraAttributionTags); in withIdentity() [all …]
|
/frameworks/base/core/java/com/android/internal/transition/ |
D | EpicenterTranslateClipReveal.java | 150 final State startStateX = new State(startClip.left, startClip.right, startX); in onAppear() 151 final State endStateX = new State(endClip.left, endClip.right, endX); in onAppear() 152 final State startStateY = new State(startClip.top, startClip.bottom, startY); in onAppear() 153 final State endStateY = new State(endClip.top, endClip.bottom, endY); in onAppear() 182 final State startStateX = new State(startClip.left, startClip.right, startX); in onDisappear() 183 final State endStateX = new State(endClip.left, endClip.right, endX); in onDisappear() 184 final State startStateY = new State(startClip.top, startClip.bottom, startY); in onDisappear() 185 final State endStateY = new State(endClip.top, endClip.bottom, endY); in onDisappear() 210 private static Animator createRectAnimator(final View view, State startX, State startY, in createRectAnimator() 211 float startZ, State endX, State endY, float endZ, TransitionValues endValues, in createRectAnimator() [all …]
|
/frameworks/base/services/backup/java/com/android/server/backup/transport/ |
D | TransportConnection.java | 105 @State 106 private int mState = State.IDLE; 215 case State.UNUSABLE: in connectAsync() 219 case State.IDLE: in connectAsync() 231 setStateLocked(State.BOUND_AND_CONNECTING, null); in connectAsync() 240 case State.BOUND_AND_CONNECTING: in connectAsync() 247 case State.CONNECTED: in connectAsync() 267 case State.UNUSABLE: in unbind() 268 case State.IDLE: in unbind() 270 case State.BOUND_AND_CONNECTING: in unbind() [all …]
|
/frameworks/native/libs/ui/ |
D | FenceTime.cpp | 38 State::VALID : State::INVALID), in FenceTime() 40 mSignalTime(mState == State::INVALID ? in FenceTime() 46 State::VALID : State::INVALID), in FenceTime() 48 mSignalTime(mState == State::INVALID ? in FenceTime() 53 : mState(Fence::isValidTimestamp(signalTime) ? State::VALID : State::INVALID), in FenceTime() 63 if (CC_UNLIKELY(src.state != Snapshot::State::SIGNAL_TIME)) { in applyTrustedSnapshot() 71 if (src.state == Snapshot::State::EMPTY) { in applyTrustedSnapshot() 97 return mState != State::INVALID; in isValid() 157 if (CC_UNLIKELY(mState == State::FORCED_VALID_FOR_TEST)) { in getSignalTime() 200 State::FORCED_VALID_FOR_TEST : State::INVALID), in FenceTime() [all …]
|
/frameworks/base/core/java/android/os/ |
D | SystemService.java | 33 private static HashMap<String, State> sStates = Maps.newHashMap(); 38 public enum State { enum in SystemService 44 State(String state) { in State() method in SystemService.State 82 public static State getState(String service) { in getState() 84 final State state = sStates.get(rawState); in getState() 88 return State.STOPPED; in getState() 96 return State.STOPPED.equals(getState(service)); in isStopped() 103 return State.RUNNING.equals(getState(service)); in isRunning() 109 public static void waitForState(String service, State state, long timeoutMillis) in waitForState() 114 final State currentState = getState(service); in waitForState() [all …]
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
D | OperatorInfo.java | 29 public enum State { enum in OperatorInfo 46 private State mState = State.UNKNOWN; 69 public State 82 State state) { in OperatorInfo() 94 State state, in OperatorInfo() 121 this(operatorAlphaLong, operatorAlphaShort, operatorNumeric, State.UNKNOWN); in OperatorInfo() 128 private static State rilStateToState(String s) { in rilStateToState() 130 return State.UNKNOWN; in rilStateToState() 132 return State.AVAILABLE; in rilStateToState() 134 return State.CURRENT; in rilStateToState() [all …]
|
/frameworks/proto_logging/stats/atoms/dnd/ |
D | dnd_atoms.proto | 48 optional android.stats.dnd.State calls = 1; 49 optional android.stats.dnd.State repeat_callers = 2; 50 optional android.stats.dnd.State messages = 3; 51 optional android.stats.dnd.State conversations = 4; 52 optional android.stats.dnd.State reminders = 5; 53 optional android.stats.dnd.State events = 6; 54 optional android.stats.dnd.State alarms = 7; 55 optional android.stats.dnd.State media = 8; 56 optional android.stats.dnd.State system = 9; 57 optional android.stats.dnd.State fullscreen = 10; [all …]
|
/frameworks/av/media/module/libmediatranscoding/transcoder/benchmark/ |
D | MediaTranscoderBenchmark.cpp | 106 static void TranscodeMediaFile(benchmark::State& state, const std::string& srcFileName, in TranscodeMediaFile() 250 static void TranscodeMediaFile(benchmark::State& state, const std::string& srcFileName, in TranscodeMediaFile() 276 static void BM_TranscodeAvc2AvcAudioVideo2AudioVideo(benchmark::State& state) { in BM_TranscodeAvc2AvcAudioVideo2AudioVideo() 282 static void BM_TranscodeAvc2AvcVideo2Video(benchmark::State& state) { in BM_TranscodeAvc2AvcVideo2Video() 288 static void BM_TranscodeAvc2AvcAV2AVMaxOperatingRate(benchmark::State& state) { in BM_TranscodeAvc2AvcAV2AVMaxOperatingRate() 294 static void BM_TranscodeAvc2AvcV2VMaxOperatingRate(benchmark::State& state) { in BM_TranscodeAvc2AvcV2VMaxOperatingRate() 300 static void BM_TranscodeAvc2AvcAV2AV720P(benchmark::State& state) { in BM_TranscodeAvc2AvcAV2AV720P() 306 static void BM_TranscodeAvc2AvcAV2AV720PMaxOperatingRate(benchmark::State& state) { in BM_TranscodeAvc2AvcAV2AV720PMaxOperatingRate() 313 static void BM_TranscodeHevc2AvcAudioVideo2AudioVideo(benchmark::State& state) { in BM_TranscodeHevc2AvcAudioVideo2AudioVideo() 319 static void BM_TranscodeHevc2AvcVideo2Video(benchmark::State& state) { in BM_TranscodeHevc2AvcVideo2Video() [all …]
|
/frameworks/base/core/proto/android/service/ |
D | notification.proto | 55 enum State { enum 60 optional State state = 2; 175 enum State { enum 183 optional State state = 6 [ (android.privacy).dest = DEST_AUTOMATIC ]; 237 enum State { enum 244 optional State reminders = 1; 245 optional State events = 2; 246 optional State messages = 3; 247 optional State calls = 4; 248 optional State repeat_callers = 5; [all …]
|
/frameworks/base/services/core/java/com/android/server/app/ |
D | GameSessionRecord.java | 29 private enum State { enum in GameSessionRecord 45 private final State mState; 56 State.NO_GAME_SESSION_REQUESTED, in awaitingGameSessionRequest() 64 @NonNull State state, in GameSessionRecord() 76 return mState == State.NO_GAME_SESSION_REQUESTED; in isAwaitingGameSessionRequest() 83 State.GAME_SESSION_REQUESTED, in withGameSessionRequested() 90 return mState == State.GAME_SESSION_REQUESTED; in isGameSessionRequested() 99 State.GAME_SESSION_ATTACHED, in withGameSession() 109 State.GAME_SESSION_ENDED_PROCESS_DEATH, in withGameSessionEndedOnProcessDeath() 116 return mState == State.GAME_SESSION_ENDED_PROCESS_DEATH; in isGameSessionEndedForProcessDeath()
|
/frameworks/base/libs/androidfw/tests/ |
D | CursorWindow_bench.cpp | 23 static void BM_CursorWindowWrite(benchmark::State& state, size_t rows, size_t cols) { in BM_CursorWindowWrite() 39 static void BM_CursorWindowWrite4x4(benchmark::State& state) { in BM_CursorWindowWrite4x4() 44 static void BM_CursorWindowWrite1Kx4(benchmark::State& state) { in BM_CursorWindowWrite1Kx4() 49 static void BM_CursorWindowWrite16Kx4(benchmark::State& state) { in BM_CursorWindowWrite16Kx4() 54 static void BM_CursorWindowRead(benchmark::State& state, size_t rows, size_t cols) { in BM_CursorWindowRead() 71 static void BM_CursorWindowRead4x4(benchmark::State& state) { in BM_CursorWindowRead4x4() 76 static void BM_CursorWindowRead1Kx4(benchmark::State& state) { in BM_CursorWindowRead1Kx4() 81 static void BM_CursorWindowRead16Kx4(benchmark::State& state) { in BM_CursorWindowRead16Kx4()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/ |
D | QSIconViewImplTest.java | 38 import com.android.systemui.plugins.qs.QSTile.State; 62 State s = new State(); in testNoFirstAnimation() 85 State s = new State(); in testMutateIconDrawable() 101 State s = new State(); in testNoFirstFade() 113 State s = new State(); in testStateSetCorrectly_toString() 132 State s1 = new State(); in testIconColorDisabledByPolicy_sameAsUnavailable() 136 State s2 = new State(); in testIconColorDisabledByPolicy_sameAsUnavailable() 146 State s = new State(); in testIconStartedAndStoppedWhenAllowAnimationsFalse() 165 State s = new State(); in testAnimatorCallbackRemovedOnOldDrawable()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/display/domain/interactor/ |
D | ConnectedDisplayInteractor.kt | 22 import com.android.systemui.display.domain.interactor.ConnectedDisplayInteractor.State in <lambda>() 38 val connectedDisplayState: Flow<State> in <lambda>() 41 enum class State { in <lambda>() class 55 override val connectedDisplayState: Flow<State> = 65 State.DISCONNECTED in displays() 67 State.CONNECTED_SECURE in displays() 69 State.CONNECTED in displays()
|