/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/tests/telephonytests/src/com/android/internal/telephony/gsm/ |
D | GSMPhoneTest.java | 144 assertEquals(PhoneConstants.State.IDLE, mGSMPhone.getState()); in brokenTestGeneral() 149 assertEquals(Call.State.IDLE, mGSMPhone.getRingingCall().getState()); in brokenTestGeneral() 150 assertEquals(Call.State.IDLE, mGSMPhone.getForegroundCall().getState()); in brokenTestGeneral() 151 assertEquals(Call.State.IDLE, mGSMPhone.getBackgroundCall().getState()); in brokenTestGeneral() 163 assertEquals(PhoneConstants.State.OFFHOOK, mGSMPhone.getState()); in brokenTestGeneral() 168 assertEquals(PhoneConstants.State.OFFHOOK, mGSMPhone.getState()); in brokenTestGeneral() 169 assertEquals(Call.State.DIALING, mGSMPhone.getForegroundCall().getState()); in brokenTestGeneral() 180 assertEquals(Call.State.IDLE, mGSMPhone.getRingingCall().getState()); in brokenTestGeneral() 181 assertEquals(Call.State.DIALING, in brokenTestGeneral() 183 assertEquals(Call.State.IDLE, mGSMPhone.getBackgroundCall().getState()); in brokenTestGeneral() [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/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/src/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 private static State rilStateToState(String s) { in rilStateToState() 86 return State.UNKNOWN; in rilStateToState() 88 return State.AVAILABLE; in rilStateToState() 90 return State.CURRENT; in rilStateToState() 92 return State.FORBIDDEN; in rilStateToState() 145 (State) in.readSerializable()); /*state*/
|
D | Call.java | 32 public enum State { enum in Call 48 public static State 49 stateFromDCState (DriverCall.State dcState) { in stateFromDCState() 51 case ACTIVE: return State.ACTIVE; in stateFromDCState() 52 case HOLDING: return State.HOLDING; in stateFromDCState() 53 case DIALING: return State.DIALING; in stateFromDCState() 54 case ALERTING: return State.ALERTING; in stateFromDCState() 55 case INCOMING: return State.INCOMING; in stateFromDCState() 56 case WAITING: return State.WAITING; in stateFromDCState() 67 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()
|
D | DefaultPhoneNotifier.java | 315 public static int convertCallState(PhoneConstants.State state) { in convertCallState() 330 public static PhoneConstants.State convertCallState(int state) { in convertCallState() 333 return PhoneConstants.State.RINGING; in convertCallState() 335 return PhoneConstants.State.OFFHOOK; in convertCallState() 337 return PhoneConstants.State.IDLE; in convertCallState() 417 public static int convertPreciseCallState(Call.State state) { in convertPreciseCallState() 444 public static Call.State convertPreciseCallState(int state) { in convertPreciseCallState() 447 return Call.State.ACTIVE; in convertPreciseCallState() 449 return Call.State.HOLDING; in convertPreciseCallState() 451 return Call.State.DIALING; in convertPreciseCallState() [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 | 126 if (sipAudioCall.getState() != SipSession.State.INCOMING_CALL) { in takeIncomingCall() 149 if ((mRingingCall.getState() == Call.State.INCOMING) || in acceptCall() 150 (mRingingCall.getState() == Call.State.WAITING)) { in acceptCall() 196 if (mForegroundCall.getState() == SipCall.State.ACTIVE) { in dialInternal() 199 if (mForegroundCall.getState() != SipCall.State.IDLE) { in dialInternal() 233 if ((mForegroundCall.getState() != SipCall.State.ACTIVE) in conference() 234 || (mForegroundCall.getState() != SipCall.State.ACTIVE)) { in conference() 397 private static Call.State getCallStateFrom(SipAudioCall sipAudioCall) { in getCallStateFrom() 398 if (sipAudioCall.isOnHold()) return Call.State.HOLDING; in getCallStateFrom() 401 case SipSession.State.READY_TO_CALL: return Call.State.IDLE; in getCallStateFrom() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | ApnContext.java | 47 private DctConstants.State mState; 95 mState = DctConstants.State.IDLE; in ApnContext() 187 public synchronized void setState(DctConstants.State s) { in setState() 194 if (mState == DctConstants.State.FAILED) { in setState() 201 public synchronized DctConstants.State getState() { in getState() 206 DctConstants.State currentState = getState(); in isDisconnected() 207 return ((currentState == DctConstants.State.IDLE) || in isDisconnected() 208 currentState == DctConstants.State.FAILED); in isDisconnected() 227 return isReady() && ((mState == DctConstants.State.IDLE) in isConnectable() 228 || (mState == DctConstants.State.SCANNING) in isConnectable() [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 …]
|
D | GraphRunner.java | 53 private static class State { class in GraphRunner 114 private State mState = new State(); 198 if (mState.check(State.RUNNING)) { in enterSubGraph() 244 mState.addState(State.PAUSED); in onPause() 248 if (mState.removeState(State.PAUSED)) { in onResume() 249 if (mState.current() == State.RUNNING) { in onResume() 256 if (mState.addState(State.HALTED) && mState.check(State.RUNNING)) { in onHalt() 262 if (mState.removeState(State.HALTED)) { in onRestart() 263 if (mState.current() == State.RUNNING) { in onRestart() 290 if (mState.current() == State.STOPPED) { in onPrepare() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/ |
D | ImsPhoneCall.java | 118 attach(Connection conn, State state) { in attach() 124 attachFake(Connection conn, State state) { in attachFake() 133 if (mState != State.DISCONNECTED) { in connectionDisconnected() 139 if (mConnections.get(i).getState() != State.DISCONNECTED) { in connectionDisconnected() 146 mState = State.DISCONNECTED; in connectionDisconnected() 179 mState = State.DISCONNECTING; in onHangupLocal() 190 if (cn.getState() == State.DISCONNECTED) { in clearDisconnected() 196 mState = State.IDLE; in clearDisconnected() 221 merge(ImsPhoneCall that, State state) { in merge() 268 update (ImsPhoneConnection conn, ImsCall imsCall, State state) { in update() [all …]
|
D | ImsPhoneCallTracker.java | 116 if ((mForegroundCall.getState() != ImsPhoneCall.State.IDLE) || 117 (mBackgroundCall.getState() != ImsPhoneCall.State.IDLE)) { 118 conn.update(imsCall, ImsPhoneCall.State.WAITING); 167 PhoneConstants.State mState = PhoneConstants.State.IDLE; 315 if (mForegroundCall.getState() == ImsPhoneCall.State.ACTIVE) { in dial() 316 if (mBackgroundCall.getState() != ImsPhoneCall.State.IDLE) { in dial() 325 ImsPhoneCall.State fgState = ImsPhoneCall.State.IDLE; in dial() 326 ImsPhoneCall.State bgState = ImsPhoneCall.State.IDLE; in dial() 336 if (fgState == ImsPhoneCall.State.ACTIVE) { in dial() 341 if (bgState == ImsPhoneCall.State.HOLDING) { in dial() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/ |
D | GsmCall.java | 91 attachFake(Connection conn, State state) { in attachFake() 102 if (mState != State.DISCONNECTED) { in connectionDisconnected() 109 != State.DISCONNECTED in connectionDisconnected() 117 mState = State.DISCONNECTED; in connectionDisconnected() 130 mState = State.IDLE; in detach() 136 State newState; in update() 175 mState = State.DISCONNECTING; in onHangupLocal() 186 if (cn.getState() == State.DISCONNECTED) { in clearDisconnected() 192 mState = State.IDLE; in clearDisconnected()
|
D | GsmCallTracker.java | 93 PhoneConstants.State mState = PhoneConstants.State.IDLE; 186 if (mForegroundCall.getState() == GsmCall.State.ACTIVE) { in dial() 200 if (mForegroundCall.getState() != GsmCall.State.IDLE) { in dial() 257 if (mRingingCall.getState() == GsmCall.State.INCOMING) { in acceptCall() 262 } else if (mRingingCall.getState() == GsmCall.State.WAITING) { in acceptCall() 284 if (mRingingCall.getState() == GsmCall.State.INCOMING) { in switchWaitingOrHoldingAndActive() 312 return mForegroundCall.getState() == GsmCall.State.ACTIVE in canConference() 313 && mBackgroundCall.getState() == GsmCall.State.HOLDING in canConference() 337 return (mForegroundCall.getState() == GsmCall.State.ACTIVE in canTransfer() 338 || mForegroundCall.getState() == GsmCall.State.ALERTING in canTransfer() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/ |
D | CdmaCall.java | 89 attachFake(Connection conn, State state) { in attachFake() 100 if (mState != State.DISCONNECTED) { in connectionDisconnected() 107 != State.DISCONNECTED in connectionDisconnected() 115 mState = State.DISCONNECTED; in connectionDisconnected() 129 mState = State.IDLE; in detach() 135 State newState; in update() 172 mState = State.DISCONNECTING; in onHangupLocal() 182 if (cn.getState() == State.DISCONNECTED) { in clearDisconnected() 188 mState = State.IDLE; in clearDisconnected()
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
D | DirectoryLoader.java | 20 import static com.android.documentsui.DocumentsActivity.State.MODE_UNKNOWN; 21 import static com.android.documentsui.DocumentsActivity.State.SORT_ORDER_DISPLAY_NAME; 22 import static com.android.documentsui.DocumentsActivity.State.SORT_ORDER_LAST_MODIFIED; 23 import static com.android.documentsui.DocumentsActivity.State.SORT_ORDER_SIZE; 24 import static com.android.documentsui.DocumentsActivity.State.SORT_ORDER_UNKNOWN; 39 import com.android.documentsui.DocumentsActivity.State; 104 int userMode = State.MODE_UNKNOWN; in loadInBackground() 132 if (userMode != State.MODE_UNKNOWN) { in loadInBackground() 136 result.mode = State.MODE_GRID; in loadInBackground() 138 result.mode = State.MODE_LIST; in loadInBackground() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | SupplicantStateTracker.java | 24 import com.android.internal.util.State; 73 private final State mUninitializedState = new UninitializedState(); 74 private final State mDefaultState = new DefaultState(); 75 private final State mInactiveState = new InactiveState(); 76 private final State mDisconnectState = new DisconnectedState(); 77 private final State mScanState = new ScanState(); 78 private final State mHandshakeState = new HandshakeState(); 79 private final State mCompletedState = new CompletedState(); 80 private final State mDormantState = new DormantState(); 218 class DefaultState extends State { [all …]
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | DataConnectionStats.java | 43 private IccCardConstants.State mSimState = IccCardConstants.State.READY; 85 boolean simReadyOrUnknown = mSimState == IccCardConstants.State.READY in notePhoneDataConnectionState() 86 || mSimState == IccCardConstants.State.UNKNOWN; in notePhoneDataConnectionState() 103 mSimState = IccCardConstants.State.ABSENT; in updateSimState() 105 mSimState = IccCardConstants.State.READY; in updateSimState() 110 mSimState = IccCardConstants.State.PIN_REQUIRED; in updateSimState() 112 mSimState = IccCardConstants.State.PUK_REQUIRED; in updateSimState() 114 mSimState = IccCardConstants.State.NETWORK_LOCKED; in updateSimState() 117 mSimState = IccCardConstants.State.UNKNOWN; in updateSimState()
|
/frameworks/compile/mclinker/include/mcld/LD/ |
D | DiagnosticEngine.h | 97 struct State struct 100 State() : numArgs(0), ID(-1), severity(None), file(NULL) { } in State() argument 101 ~State() { } in ~State() argument 121 State& state() in state() argument 124 const State& state() const in state() 144 State m_State;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | StatusBarWindowManager.java | 46 private final State mCurrentState = new State(); 93 private void applyKeyguardFlags(State state) { in applyKeyguardFlags() 103 private void adjustScreenOrientation(State state) { in adjustScreenOrientation() 115 private void applyFocusableFlag(State state) { in applyFocusableFlag() 129 private void applyHeight(State state) { in applyHeight() 139 private void applyFitsSystemWindows(State state) { in applyFitsSystemWindows() 143 private void applyUserActivityTimeout(State state) { in applyUserActivityTimeout() 153 private void applyInputFeatures(State state) { in applyInputFeatures() 165 private void apply(State state) { in apply() 232 private static class State { class in StatusBarWindowManager
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
D | IccCardProxy.java | 43 import com.android.internal.telephony.IccCardConstants.State; 115 private State mExternalState = State.UNKNOWN; 134 setExternalState(State.NOT_READY, false); in IccCardProxy() 204 setExternalState(State.READY); in updateQuietMode() 232 setExternalState(State.NOT_READY); in handleMessage() 248 setExternalState(State.ABSENT); in handleMessage() 254 setExternalState(State.READY); in handleMessage() 288 setExternalState(State.NETWORK_LOCKED); in handleMessage() 387 setExternalState(State.ABSENT); in updateExternalState() 389 setExternalState(State.NOT_READY); in updateExternalState() [all …]
|