/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
D | DozeMachine.java | 45 public enum State { enum in DozeMachine 107 private final ArrayList<State> mQueuedRequests = new ArrayList<>(); 108 private State mState = State.UNINITIALIZED; 136 public void requestState(State requestedState) { in requestState() 137 Preconditions.checkArgument(requestedState != State.DOZE_REQUEST_PULSE); in requestState() 147 requestState(State.DOZE_REQUEST_PULSE, pulseReason); in requestPulse() 150 private void requestState(State requestedState, int pulseReason) { in requestState() 177 public State getState() { in getState() 191 Preconditions.checkState(mState == State.DOZE_REQUEST_PULSE in getPulseReason() 192 || mState == State.DOZE_PULSING in getPulseReason() [all …]
|
/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/opt/telephony/src/java/com/android/internal/telephony/test/ |
D | SimulatedGsmCallState.java | 31 enum State { enum in CallInfo 39 State(int value) {mValue = value;} in State() method in CallInfo.State 46 State mState; 51 CallInfo (boolean isMT, State state, boolean isMpty, String number) { in CallInfo() 66 return new CallInfo (false, State.DIALING, false, number); in createOutgoingCall() 71 return new CallInfo (true, State.INCOMING, false, number); in createIncomingCall() 110 return mState == State.ACTIVE || mState == State.HOLDING; in isActiveOrHeld() 115 return mState == State.DIALING || mState == State.ALERTING; in isConnecting() 120 return mState == State.INCOMING || mState == State.WAITING; in isRinging() 190 && (call.mState == CallInfo.State.INCOMING in triggerRing() [all …]
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/util/ |
D | StateMachine.java | 83 final State mFromState; 84 final State mToState; 89 Transition(State fromState, State toState, Event event) { in Transition() 99 Transition(State fromState, State toState) { in Transition() 106 Transition(State fromState, State toState, Condition condition) { in Transition() 134 public static class State { class in StateMachine 152 public State(String name) { in State() method in StateMachine.State 163 public State(String name, boolean branchStart, boolean branchEnd) { in State() method in StateMachine.State 256 final ArrayList<State> mStates = new ArrayList<State>(); 257 final ArrayList<State> mFinishedStates = new ArrayList(); [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/ |
D | GSMPhoneTest.java.broken | 144 assertEquals(PhoneConstants.State.IDLE, mGSMPhone.getState()); 149 assertEquals(Call.State.IDLE, mGSMPhone.getRingingCall().getState()); 150 assertEquals(Call.State.IDLE, mGSMPhone.getForegroundCall().getState()); 151 assertEquals(Call.State.IDLE, mGSMPhone.getBackgroundCall().getState()); 163 assertEquals(PhoneConstants.State.OFFHOOK, mGSMPhone.getState()); 168 assertEquals(PhoneConstants.State.OFFHOOK, mGSMPhone.getState()); 169 assertEquals(Call.State.DIALING, mGSMPhone.getForegroundCall().getState()); 180 assertEquals(Call.State.IDLE, mGSMPhone.getRingingCall().getState()); 181 assertEquals(Call.State.DIALING, 183 assertEquals(Call.State.IDLE, mGSMPhone.getBackgroundCall().getState()); [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/ |
D | ImsPhoneCallTest.java | 69 assertEquals(Call.State.IDLE, mImsCallUT.getState()); in testAttachDetach() 72 mImsCallUT.attach(mConnection1, Call.State.ACTIVE); in testAttachDetach() 76 assertEquals(Call.State.ACTIVE, mImsCallUT.getState()); in testAttachDetach() 83 assertEquals(Call.State.IDLE, mImsCallUT.getState()); in testAttachDetach() 90 mImsCallUT.attach(mConnection1, Call.State.ACTIVE); in testConnectionDisconnected() 91 mImsCallUT.attach(mConnection2, Call.State.ACTIVE); in testConnectionDisconnected() 94 assertEquals(Call.State.ACTIVE, mImsCallUT.getState()); in testConnectionDisconnected() 96 doReturn(Call.State.DISCONNECTED).when(mConnection1).getState(); in testConnectionDisconnected() 98 assertEquals(Call.State.ACTIVE, mImsCallUT.getState()); in testConnectionDisconnected() 99 doReturn(Call.State.DISCONNECTED).when(mConnection2).getState(); in testConnectionDisconnected() [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/native/libs/ui/ |
D | FenceTime.cpp | 50 State::VALID : State::INVALID), in FenceTime() 52 mSignalTime(mState == State::INVALID ? in FenceTime() 58 State::VALID : State::INVALID), in FenceTime() 60 mSignalTime(mState == State::INVALID ? in FenceTime() 65 : mState(Fence::isValidTimestamp(signalTime) ? State::VALID : State::INVALID), in FenceTime() 75 if (CC_UNLIKELY(src.state != Snapshot::State::SIGNAL_TIME)) { in applyTrustedSnapshot() 83 if (src.state == Snapshot::State::EMPTY) { in applyTrustedSnapshot() 109 return mState != State::INVALID; in isValid() 141 if (CC_UNLIKELY(mState == State::FORCED_VALID_FOR_TEST)) { in getSignalTime() 184 State::FORCED_VALID_FOR_TEST : State::INVALID), in FenceTime() [all …]
|
/frameworks/base/core/java/android/net/ |
D | NetworkInfo.java | 51 public enum State { enum in NetworkInfo 94 private static final EnumMap<DetailedState, State> stateMap = 95 new EnumMap<DetailedState, State>(DetailedState.class); 98 stateMap.put(DetailedState.IDLE, State.DISCONNECTED); in stateMap.put() 99 stateMap.put(DetailedState.SCANNING, State.DISCONNECTED); in stateMap.put() 100 stateMap.put(DetailedState.CONNECTING, State.CONNECTING); in stateMap.put() 101 stateMap.put(DetailedState.AUTHENTICATING, State.CONNECTING); in stateMap.put() 102 stateMap.put(DetailedState.OBTAINING_IPADDR, State.CONNECTING); in stateMap.put() 103 stateMap.put(DetailedState.VERIFYING_POOR_LINK, State.CONNECTING); in stateMap.put() 104 stateMap.put(DetailedState.CAPTIVE_PORTAL_CHECK, State.CONNECTING); in stateMap.put() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | GsmCdmaCallTrackerTest.java | 100 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); in testMOCallDial() 101 assertEquals(GsmCdmaCall.State.IDLE, mCTUT.mForegroundCall.getState()); in testMOCallDial() 102 assertEquals(GsmCdmaCall.State.IDLE, mCTUT.mBackgroundCall.getState()); in testMOCallDial() 112 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()); in testMOCallDial() 113 assertEquals(GsmCdmaCall.State.DIALING, mCTUT.mForegroundCall.getState()); in testMOCallDial() 131 assertEquals(GsmCdmaCall.State.ACTIVE, mCTUT.mForegroundCall.getState()); in testMOCallPickUp() 132 assertEquals(GsmCdmaCall.State.IDLE, mCTUT.mBackgroundCall.getState()); in testMOCallPickUp() 143 assertEquals(GsmCdmaCall.State.DIALING, mCTUT.mForegroundCall.getState()); in testMOCallHangup() 144 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()); in testMOCallHangup() 154 assertEquals(GsmCdmaCall.State.IDLE, mCTUT.mForegroundCall.getState()); in testMOCallHangup() [all …]
|
D | GsmCdmaCallTest.java | 53 assertEquals(Call.State.IDLE, mCallUnderTest.getState()); in testAttachDetach() 56 mDriverCall.state = DriverCall.State.ACTIVE; in testAttachDetach() 61 assertEquals(Call.State.ACTIVE, mCallUnderTest.getState()); in testAttachDetach() 68 assertEquals(Call.State.IDLE, mCallUnderTest.getState()); in testAttachDetach() 75 assertEquals(Call.State.IDLE, mCallUnderTest.getState()); in testMultiparty() 81 mDriverCall.state = DriverCall.State.ACTIVE; in testMultiparty() 108 mDriverCall.state = DriverCall.State.ACTIVE; in testConnectionDisconnected() 114 assertEquals(Call.State.ACTIVE, mCallUnderTest.getState()); in testConnectionDisconnected() 117 doReturn(Call.State.DISCONNECTED).when(mConnection1).getState(); in testConnectionDisconnected() 119 assertEquals(Call.State.ACTIVE, mCallUnderTest.getState()); in testConnectionDisconnected() [all …]
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
D | OperatorInfo.java | 26 public enum State { enum in OperatorInfo 37 private State mState = State.UNKNOWN; 55 public State 63 State state) { in OperatorInfo() 84 this(operatorAlphaLong, operatorAlphaShort, operatorNumeric, State.UNKNOWN); in OperatorInfo() 90 private static State rilStateToState(String s) { in rilStateToState() 92 return State.UNKNOWN; in rilStateToState() 94 return State.AVAILABLE; in rilStateToState() 96 return State.CURRENT; in rilStateToState() 98 return State.FORBIDDEN; in rilStateToState() [all …]
|
/frameworks/base/core/java/android/os/ |
D | SystemService.java | 31 private static HashMap<String, State> sStates = Maps.newHashMap(); 36 public enum State { enum in SystemService 42 State(String state) { in State() method in SystemService.State 78 public static State getState(String service) { in getState() 80 final State state = sStates.get(rawState); in getState() 84 return State.STOPPED; in getState() 92 return State.STOPPED.equals(getState(service)); in isStopped() 99 return State.RUNNING.equals(getState(service)); in isRunning() 105 public static void waitForState(String service, State state, long timeoutMillis) in waitForState() 110 final State currentState = getState(service); in waitForState() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/ |
D | SipPhone.java | 130 if (sipAudioCall.getState() != SipSession.State.INCOMING_CALL) { in takeIncomingCall() 153 if ((mRingingCall.getState() == Call.State.INCOMING) || in acceptCall() 154 (mRingingCall.getState() == Call.State.WAITING)) { in acceptCall() 200 if (mForegroundCall.getState() == SipCall.State.ACTIVE) { in dialInternal() 203 if (mForegroundCall.getState() != SipCall.State.IDLE) { in dialInternal() 244 if ((mForegroundCall.getState() != SipCall.State.ACTIVE) in conference() 245 || (mForegroundCall.getState() != SipCall.State.ACTIVE)) { in conference() 408 private static Call.State getCallStateFrom(SipAudioCall sipAudioCall) { in getCallStateFrom() 409 if (sipAudioCall.isOnHold()) return Call.State.HOLDING; in getCallStateFrom() 412 case SipSession.State.READY_TO_CALL: return Call.State.IDLE; in getCallStateFrom() [all …]
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/ |
D | BaseSupportFragment.java | 26 import android.support.v17.leanback.util.StateMachine.State; 39 final State STATE_START = new State("START", true, false); 44 final State STATE_ENTRANCE_INIT = new State("ENTRANCE_INIT"); 50 final State STATE_ENTRANCE_ON_PREPARED = new State("ENTRANCE_ON_PREPARED", true, false) { 63 final State STATE_ENTRANCE_ON_PREPARED_ON_CREATEVIEW = new State( 74 final State STATE_ENTRANCE_PERFORM = new State("STATE_ENTRANCE_PERFORM") { 85 final State STATE_ENTRANCE_ON_ENDED = new State("ENTRANCE_ON_ENDED") { 95 final State STATE_ENTRANCE_COMPLETE = new State("ENTRANCE_COMPLETE", true, false);
|
D | BaseFragment.java | 23 import android.support.v17.leanback.util.StateMachine.State; 36 final State STATE_START = new State("START", true, false); 41 final State STATE_ENTRANCE_INIT = new State("ENTRANCE_INIT"); 47 final State STATE_ENTRANCE_ON_PREPARED = new State("ENTRANCE_ON_PREPARED", true, false) { 60 final State STATE_ENTRANCE_ON_PREPARED_ON_CREATEVIEW = new State( 71 final State STATE_ENTRANCE_PERFORM = new State("STATE_ENTRANCE_PERFORM") { 82 final State STATE_ENTRANCE_ON_ENDED = new State("ENTRANCE_ON_ENDED") { 92 final State STATE_ENTRANCE_COMPLETE = new State("ENTRANCE_COMPLETE", true, false);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | Call.java | 34 public enum State { enum in Call 50 public static State 51 stateFromDCState (DriverCall.State dcState) { in stateFromDCState() 53 case ACTIVE: return State.ACTIVE; in stateFromDCState() 54 case HOLDING: return State.HOLDING; in stateFromDCState() 55 case DIALING: return State.DIALING; in stateFromDCState() 56 case ALERTING: return State.ALERTING; in stateFromDCState() 57 case INCOMING: return State.INCOMING; in stateFromDCState() 58 case WAITING: return State.WAITING; in stateFromDCState() 69 public State mState = State.IDLE; [all …]
|
D | DriverCall.java | 29 public enum State { enum in DriverCall 42 public State state; // May be null if unavail 119 public static State 122 case 0: return State.ACTIVE; in stateFromCLCC() 123 case 1: return State.HOLDING; in stateFromCLCC() 124 case 2: return State.DIALING; in stateFromCLCC() 125 case 3: return State.ALERTING; in stateFromCLCC() 126 case 4: return State.INCOMING; in stateFromCLCC() 127 case 5: return State.WAITING; in stateFromCLCC()
|
/frameworks/base/services/core/java/com/android/server/storage/ |
D | DeviceStorageMonitorService.java | 95 private volatile int mForceLevel = State.LEVEL_UNKNOWN; 98 private final ArrayMap<UUID, State> mStates = new ArrayMap<>(); 104 private static class State { class in DeviceStorageMonitorService 139 case State.LEVEL_UNKNOWN: return "UNKNOWN"; in levelToString() 140 case State.LEVEL_NORMAL: return "NORMAL"; in levelToString() 141 case State.LEVEL_LOW: return "LOW"; in levelToString() 142 case State.LEVEL_FULL: return "FULL"; in levelToString() 172 private State findOrCreateState(UUID uuid) { in findOrCreateState() 173 State state = mStates.get(uuid); in findOrCreateState() 175 state = new State(); in findOrCreateState() [all …]
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/functional/ |
D | ConnectivityManagerMobileTest.java | 21 import android.net.NetworkInfo.State; 58 State.CONNECTED, LONG_TIMEOUT)) { in setUp() 89 ConnectivityManager.TYPE_MOBILE, State.CONNECTED, LONG_TIMEOUT)); in test3GToWifiNotification() 124 ConnectivityManager.TYPE_WIFI, State.CONNECTED, WIFI_CONNECTION_TIMEOUT)); in testConnectToWifi() 148 ConnectivityManager.TYPE_WIFI, State.CONNECTED, WIFI_CONNECTION_TIMEOUT)); in testConnectToWifWithKnownAP() 160 ConnectivityManager.TYPE_MOBILE, State.CONNECTED, LONG_TIMEOUT)); in testConnectToWifWithKnownAP() 172 ConnectivityManager.TYPE_WIFI, State.CONNECTED, WIFI_CONNECTION_TIMEOUT)); in testConnectToWifWithKnownAP() 196 ConnectivityManager.TYPE_WIFI, State.CONNECTED, WIFI_CONNECTION_TIMEOUT)); in testDisconnectWifi() 207 State.CONNECTED, LONG_TIMEOUT)); in testDisconnectWifi() 226 ConnectivityManager.TYPE_MOBILE, State.CONNECTED, LONG_TIMEOUT)); in testDataConnectionWith3GToAmTo3G() [all …]
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
D | Filter.java | 34 private static class State { class in Filter 56 private State mState = new State(); 274 return mState.check(State.STATE_OPEN); in isOpen() 395 return (mIsActive && !mState.check(State.STATE_CLOSED)); in inSchedulableState() 443 if (mState.current == State.STATE_OPEN) { in performPreparation() 592 if (mState.current == State.STATE_UNPREPARED) { in execute() 594 mState.current = State.STATE_PREPARED; in execute() 596 if (mState.current == State.STATE_PREPARED) { in execute() 599 mState.current = State.STATE_OPEN; in execute() 601 if (mState.current == State.STATE_OPEN) { in execute() [all …]
|
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/qs/ |
D | QSTile.java | 26 import com.android.systemui.plugins.qs.QSTile.State; 35 @DependsOn(target = State.class) 68 State getState(); in getState() 77 void onStateChanged(State state); in onStateChanged() 103 @ProvidesInterface(version = State.VERSION) 104 public static class State { class 116 public boolean copyTo(State other) { in copyTo() 161 public State copy() { in copy() 162 State state = new State(); in copy() 169 public static class BooleanState extends State { [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | SupplicantStateTracker.java | 34 import com.android.internal.util.State; 77 private final State mUninitializedState = new UninitializedState(); 78 private final State mDefaultState = new DefaultState(); 79 private final State mInactiveState = new InactiveState(); 80 private final State mDisconnectState = new DisconnectedState(); 81 private final State mScanState = new ScanState(); 82 private final State mConnectionActiveState = new ConnectionActiveState(); 83 private final State mHandshakeState = new HandshakeState(); 84 private final State mCompletedState = new CompletedState(); 85 private final State mDormantState = new DormantState(); [all …]
|
/frameworks/base/libs/androidfw/tests/ |
D | AssetManager2_bench.cpp | 39 static void BM_AssetManagerLoadAssets(benchmark::State& state) { in BM_AssetManagerLoadAssets() 49 static void BM_AssetManagerLoadAssetsOld(benchmark::State& state) { in BM_AssetManagerLoadAssetsOld() 62 static void BM_AssetManagerLoadFrameworkAssets(benchmark::State& state) { in BM_AssetManagerLoadFrameworkAssets() 72 static void BM_AssetManagerLoadFrameworkAssetsOld(benchmark::State& state) { in BM_AssetManagerLoadFrameworkAssetsOld() 87 benchmark::State& state) { in GetResourceBenchmark() 116 static void BM_AssetManagerGetResource(benchmark::State& state) { in BM_AssetManagerGetResource() 122 static void BM_AssetManagerGetResourceOld(benchmark::State& state) { in BM_AssetManagerGetResourceOld() 128 static void BM_AssetManagerGetLibraryResource(benchmark::State& state) { in BM_AssetManagerGetLibraryResource() 136 static void BM_AssetManagerGetLibraryResourceOld(benchmark::State& state) { in BM_AssetManagerGetLibraryResourceOld() 146 static void BM_AssetManagerGetResourceFrameworkLocale(benchmark::State& state) { in BM_AssetManagerGetResourceFrameworkLocale() [all …]
|
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/model/ |
D | MusicProvider.java | 72 enum State { enum in MusicProvider 76 private volatile State mCurrentState = State.NON_INITIALIZED; 95 if (mCurrentState != State.INITIALIZED) { in getGenres() 105 if (mCurrentState != State.INITIALIZED || !mMusicListByGenre.containsKey(genre)) { in getMusicsByGenre() 117 if (mCurrentState != State.INITIALIZED) { in searchMusic() 170 return mCurrentState == State.INITIALIZED; in isInitialized() 179 if (mCurrentState == State.INITIALIZED) { in retrieveMediaAsync() 186 new AsyncTask<Void, Void, State>() { in retrieveMediaAsync() 188 protected State doInBackground(Void... params) { in retrieveMediaAsync() 194 protected void onPostExecute(State current) { in retrieveMediaAsync() [all …]
|