/packages/apps/Contacts/src/com/android/contacts/ |
D | ProximitySensorManager.java | 45 public static enum State { enum in ProximitySensorManager 82 @GuardedBy("this") private State mLastState; 96 mLastState = State.FAR; in ProximitySensorEventListener() 107 State state = getStateFromValue(value); in onSensorChanged() 114 if (mWaitingForFarState && mLastState == State.FAR) { in onSensorChanged() 136 private State getStateFromValue(float value) { in getStateFromValue() 140 return (value > FAR_THRESHOLD || value == mMaxValue) ? State.FAR : State.NEAR; in getStateFromValue() 147 if (mLastState == State.FAR) { in unregisterWhenFar() 164 State lastState; in unregister() 170 mLastState = State.FAR; in unregister() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | MovieControllerOverlay.java | 49 private enum State { enum in MovieControllerOverlay 73 private State state; 82 state = State.LOADING; in MovieControllerOverlay() 156 state = State.PLAYING; in showPlaying() 161 state = State.PAUSED; in showPaused() 166 state = State.ENDED; in showEnded() 171 state = State.LOADING; in showLoading() 176 state = State.ERROR; in showErrorMessage() 225 if (state == State.PLAYING) { in maybeStartHiding() 264 if (state == State.ENDED) { in onClick() [all …]
|
/packages/apps/Gallery/src/com/android/camera/ |
D | BitmapManager.java | 40 private static enum State {CANCEL, ALLOW} enum in BitmapManager 42 public State mState = State.ALLOW; 48 if (mState == State.CANCEL) { in toString() 50 } else if (mState == State.ALLOW) { in toString() 105 boolean result = (status.mState != State.CANCEL); in canThreadDecoding() 110 getOrCreateThreadStatus(t).mState = State.ALLOW; in allowThreadDecoding() 115 status.mState = State.CANCEL; in cancelThreadDecoding()
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | DownloadThread.java | 87 static class State { class in DownloadThread 104 public State(DownloadInfo info) { in State() method in DownloadThread.State 135 State state = new State(mInfo); in run() 230 private void executeDownload(State state, AndroidHttpClient client, HttpGet request) in executeDownload() 288 State state, InnerState innerState, byte[] data, InputStream entityStream) in transferData() 314 private void finalizeDestinationFile(State state) throws StopRequestException { in finalizeDestinationFile() 326 private void cleanupDestination(State state, int finalStatus) { in cleanupDestination() 342 private void syncDestination(State state) { in syncDestination() 371 private void closeDestination(State state) { in closeDestination() 390 private void checkPausedOrCanceled(State state) throws StopRequestException { in checkPausedOrCanceled() [all …]
|
/packages/apps/Phone/src/com/android/phone/ |
D | InCallControlState.java | 99 final Phone.State state = mCM.getState(); // coarse-grained voice call state in update() 101 final Call.State fgCallState = fgCall.getState(); in update() 102 final boolean hasActiveForegroundCall = (fgCallState == Call.State.ACTIVE); in update() 145 speakerEnabled = (state != Phone.State.IDLE); in update() 181 onHold = hasHoldingCall && (fgCallState == Call.State.IDLE); in update() 187 } else if (hasHoldingCall && (fgCallState == Call.State.IDLE)) { in update()
|
D | CallNotifier.java | 162 private Call.State mPreviousCdmaCallState; 245 if ((pb.getState() == Phone.State.RINGING) in handleMessage() 404 Call.State state = c.getState(); in onNewRingingConnection() 643 if (mCM.getState() != Phone.State.RINGING) { in onCustomRingQueryComplete() 660 Phone.State state = mCM.getState(); in onUnknownConnectionAppeared() 662 if (state == Phone.State.OFFHOOK) { in onUnknownConnectionAppeared() 749 Phone.State state = mCM.getState(); in onPhoneStateChanged() 756 .enableNotificationAlerts(state == Phone.State.IDLE); in onPhoneStateChanged() 760 if ((fgPhone.getForegroundCall().getState() == Call.State.ACTIVE) in onPhoneStateChanged() 761 && ((mPreviousCdmaCallState == Call.State.DIALING) in onPhoneStateChanged() [all …]
|
D | CallCard.java | 252 Phone.State state = cm.getState(); // IDLE, RINGING, or OFFHOOK in updateState() 265 if ((ringingCall.getState() != Call.State.IDLE) in updateState() 270 } else if ((fgCall.getState() != Call.State.IDLE) in updateState() 271 || (bgCall.getState() != Call.State.IDLE)) { in updateState() 315 private void updateCallInfoLayout(Phone.State state) { in updateCallInfoLayout() 316 boolean ringing = (state == Phone.State.RINGING); in updateCallInfoLayout() 345 if (fgCall.getState() == Call.State.IDLE) { in updateForegroundCall() 456 Call.State state = call.getState(); in displayMainCallStatus() 745 final Call.State state = call.getState(); in updateCallStateWidgets() 806 if ((state == Call.State.ACTIVE) in updateCallStateWidgets() [all …]
|
D | InCallScreen.java | 466 if (mApp.getPhoneState() == Phone.State.OFFHOOK) { in onCreate() 713 if (mCM.getState() == Phone.State.RINGING) { in onResume() 868 && mCM.getState() != Phone.State.RINGING) { in onPause() 914 if (mApp.getUpdateLock().isHeld() && mApp.getPhoneState() == Phone.State.IDLE) { in onPause() 929 Phone.State state = mCM.getState(); in onStop() 932 if (state == Phone.State.IDLE) { in onStop() 1311 return mCM.getState() != Phone.State.IDLE; in phoneIsInUse() 1526 if (mCM.getState() == Phone.State.RINGING) { in onKeyDown() 1666 Phone.State state = mCM.getState(); in onPhoneStateChanged() 1766 Call.State callState = mApp.notifier.getPreviousCdmaCallState(); in onDisconnect() [all …]
|
D | PhoneApp.java | 216 private Phone.State mLastPhoneState = Phone.State.IDLE; 300 Phone.State phoneState; 363 if (phoneState == Phone.State.OFFHOOK) { 418 if (phoneState == Phone.State.OFFHOOK && 1131 Phone.State state = mCM.getState(); in updateWakeState() 1151 boolean isSpeakerInUse = (state == Phone.State.OFFHOOK) && PhoneUtils.isSpeakerOn(this); in updateWakeState() 1190 boolean isRinging = (state == Phone.State.RINGING); in updateWakeState() 1191 boolean isDialing = (phone.getForegroundCall().getState() == Call.State.DIALING); in updateWakeState() 1301 /* package */ void updateProximitySensorMode(Phone.State state) { in updateProximitySensorMode() 1334 if (((state == Phone.State.OFFHOOK) || mBeginningCall) && !screenOnImmediately) { in updateProximitySensorMode() [all …]
|
D | PhoneInterfaceManager.java | 257 Phone.State state = mCM.getState(); in dial() 258 if (state != Phone.State.OFFHOOK && state != Phone.State.RINGING) { in dial() 400 if ((mCM.getState() == Phone.State.RINGING) in silenceRingerInternal() 409 return (mCM.getState() == Phone.State.OFFHOOK); in isOffhook() 413 return (mCM.getState() == Phone.State.RINGING); in isRinging() 417 return (mCM.getState() == Phone.State.IDLE); in isIdle()
|
D | PhoneUtils.java | 189 if (cm.getState() != Phone.State.IDLE) { in handleMessage() 259 if (ringing.getState() == Call.State.WAITING) { in answerCall() 382 Call.State state = ringing.getState(); in hangupRingingCall() 384 if (state == Call.State.INCOMING) { in hangupRingingCall() 388 } else if (state == Call.State.WAITING) { in hangupRingingCall() 468 if (call.getState() == Call.State.ACTIVE && cm.hasActiveBgCall()) { in hangup() 641 final boolean initiallyIdle = app.mCM.getState() == Phone.State.IDLE; in placeCall() 778 if (fgCall.getState() == Call.State.ACTIVE) { in sendEmptyFlash() 1005 MmiCode.State state = mmiCode.getState(); in displayMMIComplete() 1054 if ((app.getPUKEntryActivity() != null) && (state == MmiCode.State.COMPLETE)) { in displayMMIComplete() [all …]
|
D | RespondViaSmsManager.java | 261 final Phone.State state = PhoneApp.getInstance().mCM.getState(); in onItemClick() 262 if (state == Phone.State.IDLE) { in onItemClick() 290 final Phone.State state = PhoneApp.getInstance().mCM.getState(); in onCancel() 291 if (state == Phone.State.IDLE) { in onCancel()
|
D | CallTime.java | 98 Call.State state = mCall.getState(); in periodicUpdateTimer() 100 if (state == Call.State.ACTIVE) { in periodicUpdateTimer()
|
D | OtaUtils.java | 22 import com.android.phone.OtaUtils.CdmaOtaInCallScreenUiState.State; 570 OtaUtils.CdmaOtaInCallScreenUiState.State.NORMAL); in setupOtaspCall() 675 if (getCdmaOtaInCallScreenUiState() == CdmaOtaInCallScreenUiState.State.NORMAL) { in onOtaProvisionStatusChanged() 1451 mApplication.cdmaOtaInCallScreenUiState.state = State.UNDEFINED; in cleanOtaScreen() 1521 public enum State { enum in OtaUtils.CdmaOtaInCallScreenUiState 1527 public State state; 1531 state = CdmaOtaInCallScreenUiState.State.UNDEFINED; in CdmaOtaInCallScreenUiState() 1538 public void setCdmaOtaInCallScreenUiState(CdmaOtaInCallScreenUiState.State state) { in setCdmaOtaInCallScreenUiState() 1546 public CdmaOtaInCallScreenUiState.State getCdmaOtaInCallScreenUiState() { in getCdmaOtaInCallScreenUiState()
|
D | InCallTouchUi.java | 224 Phone.State state = cm.getState(); // IDLE, RINGING, or OFFHOOK in updateState() 231 final Call.State fgCallState = cm.getActiveFgCallState(); in updateState() 238 if ((ringingCall.getState() != Call.State.IDLE) && !fgCallState.isDialing()) { in updateState() 331 if ((state == Phone.State.OFFHOOK) in updateState() 332 && (fgCallState == Call.State.ALERTING || fgCallState == Call.State.ACTIVE)) { in updateState()
|
D | EmergencyCallHelper.java | 281 Phone.State phoneState = mCM.getState(); in onRetryTimeout() 295 if (phoneState == Phone.State.OFFHOOK) { in onRetryTimeout()
|
D | NotificationMgr.java | 623 (mPhone.getState() == Phone.State.OFFHOOK) && audioManager.isSpeakerphoneOn(); in updateSpeakerNotification() 696 if ((mCM.getState() == Phone.State.OFFHOOK) && PhoneUtils.getMute()) { in updateMuteNotification() 785 if (mCM.getState() == Phone.State.IDLE) { in updateInCallNotification() 1077 if ((ringingCall.getState() == Call.State.WAITING) && !mApp.isShowingCallScreen()) { in updateInCallNotification()
|
D | BluetoothHandsfree.java | 129 private Phone.State mPhoneState = Phone.State.IDLE; 586 Call.State state = mCM.getActiveFgCallState(); in isIncallAudio() 588 return (state == Call.State.ACTIVE || state == Call.State.ALERTING); in isIncallAudio() 1025 Phone.State newState = mCM.getState(); in handlePreciseCallStateChange() 1813 Call.State ringingCallState = ringingCall.getState(); in cdmaGetClccResult() 1816 if (ringingCallState == Call.State.INCOMING) { in cdmaGetClccResult()
|
/packages/apps/Email/src/com/android/email/ |
D | EmailConnectivityManager.java | 26 import android.net.NetworkInfo.State; 125 State state = networkInfo.getState(); in onReceive() 126 if (state == State.CONNECTED) { in onReceive() 131 } else if (state == State.DISCONNECTED) { in onReceive()
|
/packages/apps/KeyChain/src/com/android/keychain/ |
D | KeyChainActivity.java | 67 private static enum State { INITIAL, UNLOCK_REQUESTED }; enum in KeyChainActivity 69 private State mState; 80 return mKeyStore.state() == KeyStore.State.UNLOCKED; in isKeyStoreUnlocked() 86 mState = State.INITIAL; in onCreate() 88 mState = (State) savedState.getSerializable(KEY_STATE); in onCreate() 90 mState = State.INITIAL; in onCreate() 118 mState = State.UNLOCK_REQUESTED; in onResume() 435 if (mState != State.INITIAL) { in onSaveInstanceState()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | Launcher.java | 184 private enum State { WORKSPACE, APPS_CUSTOMIZE, APPS_CUSTOMIZE_SPRING_LOADED }; enum in Launcher 185 private State mState = State.WORKSPACE; 797 private static State intToState(int stateOrdinal) { in intToState() 798 State state = State.WORKSPACE; in intToState() 799 final State[] stateValues = State.values(); in intToState() 819 State state = intToState(savedState.getInt(RUNTIME_STATE, State.WORKSPACE.ordinal())); in restoreState() 820 if (state == State.APPS_CUSTOMIZE) { in restoreState() 1351 if (alreadyOnHome && mState == State.WORKSPACE && !mWorkspace.isTouchActive() && in onNewIntent() 1766 if (mState == State.APPS_CUSTOMIZE) { in onBackPressed() 1839 if (mState == State.APPS_CUSTOMIZE) { in onClick() [all …]
|
D | Workspace.java | 162 enum State { NORMAL, SPRING_LOADED, SMALL }; enum in Workspace 163 private State mState = State.NORMAL; 734 return super.isScrollingIndicatorEnabled() && (mState != State.SPRING_LOADED); in isScrollingIndicatorEnabled() 1234 mState == State.NORMAL && 1372 return mState == State.SMALL || mState == State.SPRING_LOADED; 1407 boolean small = mState == State.SMALL || mIsSwitchingState; 1539 Animator getChangeStateAnimation(final State state, boolean animated) { 1543 Animator getChangeStateAnimation(final State state, boolean animated, int delay) { 1556 final State oldState = mState; 1557 final boolean oldStateIsNormal = (oldState == State.NORMAL); [all …]
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | MediaThumbRequest.java | 53 static enum State {WAIT, DONE, CANCEL} enum in MediaThumbRequest 69 State mState = State.WAIT;
|
/packages/apps/Mms/src/com/android/mms/transaction/ |
D | NotificationPlayer.java | 137 && (mLooper.getThread().getState() != Thread.State.TERMINATED)) { in startSound() 191 && (mLooper.getThread().getState() != Thread.State.TERMINATED)) { in run()
|
/packages/apps/Browser/src/com/android/browser/ |
D | WallpaperHandler.java | 66 if (mUrl != null && getState() == State.NEW) { in onMenuItemClick()
|