/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/support/v17/leanback/src/android/support/v17/leanback/util/ |
D | StateMachine.java | 51 public static class State { class in StateMachine 54 ArrayList<State> mPriorStates; 85 void addPriorState(State state) { in addPriorState() 87 mPriorStates = new ArrayList<State>(); in addPriorState() 120 private final ArrayList<State> mSortedList = new ArrayList<State>(); 126 public void addState(State state) { in addState() 140 public void addState(State fromState, State toState) { in addState() 153 public void runState(State state) { in runState() 183 ArrayList<State> L = new ArrayList<State>(); in sort() 185 ArrayList<State> S = new ArrayList<State>(); in sort() [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/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/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/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/ |
D | ImsPhoneCallTest.java | 67 assertEquals(Call.State.IDLE, mImsCallUT.getState()); in testAttachDetach() 70 mImsCallUT.attach(mConnection1, Call.State.ACTIVE); in testAttachDetach() 74 assertEquals(Call.State.ACTIVE, mImsCallUT.getState()); in testAttachDetach() 81 assertEquals(Call.State.IDLE, mImsCallUT.getState()); in testAttachDetach() 87 mImsCallUT.attach(mConnection1, Call.State.ACTIVE); in testConnectionDisconnected() 88 mImsCallUT.attach(mConnection2, Call.State.ACTIVE); in testConnectionDisconnected() 91 assertEquals(Call.State.ACTIVE, mImsCallUT.getState()); in testConnectionDisconnected() 93 doReturn(Call.State.DISCONNECTED).when(mConnection1).getState(); in testConnectionDisconnected() 95 assertEquals(Call.State.ACTIVE, mImsCallUT.getState()); in testConnectionDisconnected() 96 doReturn(Call.State.DISCONNECTED).when(mConnection2).getState(); in testConnectionDisconnected() [all …]
|
D | ImsPhoneCallTrackerTest.java | 228 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); in testImsMTCall() 235 assertEquals(PhoneConstants.State.RINGING, mCTUT.getState()); in testImsMTCall() 254 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()); in testImsMTCallAccept() 255 assertEquals(Call.State.ACTIVE, mCTUT.mForegroundCall.getState()); in testImsMTCallAccept() 273 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); in testImsMTCallReject() 280 assertEquals(Call.State.ACTIVE, mCTUT.mForegroundCall.getState()); in testImsMTCallAcceptHangUp() 281 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()); in testImsMTCallAcceptHangUp() 288 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); in testImsMTCallAcceptHangUp() 289 assertEquals(Call.State.IDLE, mCTUT.mForegroundCall.getState()); in testImsMTCallAcceptHangUp() 297 assertEquals(Call.State.ACTIVE, mCTUT.mForegroundCall.getState()); in testImsMTCallAcceptHold() [all …]
|
D | ImsPhoneConnectionTest.java | 79 doReturn(ImsPhoneCall.State.IDLE).when(mForeGroundCall).getState(); in setUp() 93 assertEquals(ImsPhoneCall.State.IDLE, mConnectionUT.getState()); in testImsConnectionSanity() 103 eq(ImsPhoneCall.State.INCOMING)); in testImsConnectionSanity() 112 eq(ImsPhoneCall.State.DIALING)); in testImsConnectionSanity() 122 doReturn(Call.State.DIALING).when(mForeGroundCall).getState(); in testImsUpdateStateForeGround() 123 assertTrue(mConnectionUT.update(mImsCall, Call.State.ACTIVE)); in testImsUpdateStateForeGround() 127 eq(Call.State.ACTIVE)); in testImsUpdateStateForeGround() 135 doReturn(Call.State.HOLDING).when(mBackGroundCall).getState(); in testImsUpdateStateBackGround() 136 assertTrue(mConnectionUT.update(mImsCall, Call.State.ACTIVE)); in testImsUpdateStateBackGround() 140 eq(Call.State.ACTIVE)); in testImsUpdateStateBackGround() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | GsmCdmaCallTrackerTest.java | 96 assertEquals(PhoneConstants.State.IDLE, mCTUT.getState()); in testMOCallDial() 97 assertEquals(GsmCdmaCall.State.IDLE, mCTUT.mForegroundCall.getState()); in testMOCallDial() 98 assertEquals(GsmCdmaCall.State.IDLE, mCTUT.mBackgroundCall.getState()); in testMOCallDial() 108 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()); in testMOCallDial() 109 assertEquals(GsmCdmaCall.State.DIALING, mCTUT.mForegroundCall.getState()); in testMOCallDial() 127 assertEquals(GsmCdmaCall.State.ACTIVE, mCTUT.mForegroundCall.getState()); in testMOCallPickUp() 128 assertEquals(GsmCdmaCall.State.IDLE, mCTUT.mBackgroundCall.getState()); in testMOCallPickUp() 137 assertEquals(GsmCdmaCall.State.DIALING, mCTUT.mForegroundCall.getState()); in testMOCallHangup() 138 assertEquals(PhoneConstants.State.OFFHOOK, mCTUT.getState()); in testMOCallHangup() 148 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 …]
|
D | GsmCdmaConnectionTest.java | 79 assertEquals(GsmCdmaCall.State.IDLE, connection.getState()); in testSanityGSM() 97 assertEquals(GsmCdmaCall.State.IDLE, connection.getState()); in testSanityCDMA() 115 mDC.state = DriverCall.State.ACTIVE; in testConnectionStateUpdate() 117 assertEquals(GsmCdmaCall.State.ACTIVE, connection.getState()); in testConnectionStateUpdate() 119 mDC.state = DriverCall.State.HOLDING; in testConnectionStateUpdate() 121 assertEquals(GsmCdmaCall.State.HOLDING, connection.getState()); in testConnectionStateUpdate() 133 mDC.state = DriverCall.State.ALERTING; in testCDMAPostDialPause() 135 mDC.state = DriverCall.State.ACTIVE; in testCDMAPostDialPause() 150 mDC.state = DriverCall.State.ALERTING; in testGSMPostDialPause() 152 mDC.state = DriverCall.State.ACTIVE; in testGSMPostDialPause() [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/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/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/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/ |
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()
|
D | GsmCdmaCall.java | 75 public void attachFake(Connection conn, State state) { in attachFake() 85 if (mState != State.DISCONNECTED) { in connectionDisconnected() 91 if (mConnections.get(i).getState() != State.DISCONNECTED) { in connectionDisconnected() 98 mState = State.DISCONNECTED; in connectionDisconnected() 110 mState = State.IDLE; in detach() 115 State newState; in update() 150 mState = State.DISCONNECTING; in onHangupLocal()
|
/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/net/wifi/service/java/com/android/server/wifi/ |
D | SupplicantStateTracker.java | 35 import com.android.internal.util.State; 69 private final State mUninitializedState = new UninitializedState(); 70 private final State mDefaultState = new DefaultState(); 71 private final State mInactiveState = new InactiveState(); 72 private final State mDisconnectState = new DisconnectedState(); 73 private final State mScanState = new ScanState(); 74 private final State mHandshakeState = new HandshakeState(); 75 private final State mCompletedState = new CompletedState(); 76 private final State mDormantState = new DormantState(); 213 class DefaultState extends State { [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 …]
|
/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/base/libs/hwui/tests/microbench/ |
D | DisplayListCanvasBench.cpp | 36 void BM_DisplayList_alloc(benchmark::State& benchState) { in BM_DisplayList_alloc() 45 void BM_DisplayList_alloc_theoretical(benchmark::State& benchState) { in BM_DisplayList_alloc_theoretical() 54 void BM_DisplayListCanvas_record_empty(benchmark::State& benchState) { in BM_DisplayListCanvas_record_empty() 66 void BM_DisplayListCanvas_record_saverestore(benchmark::State& benchState) { in BM_DisplayListCanvas_record_saverestore() 82 void BM_DisplayListCanvas_record_translate(benchmark::State& benchState) { in BM_DisplayListCanvas_record_translate() 101 void BM_DisplayListCanvas_record_simpleBitmapView(benchmark::State& benchState) { in BM_DisplayListCanvas_record_simpleBitmapView() 133 void BM_CanvasState_saverestore(benchmark::State& benchState) { in BM_CanvasState_saverestore() 148 void BM_CanvasState_init(benchmark::State& benchState) { in BM_CanvasState_init() 160 void BM_CanvasState_translate(benchmark::State& benchState) { in BM_CanvasState_translate()
|