Searched defs:state (Results 1 - 25 of 109) sorted by relevance

12345

/packages/apps/Settings/src/com/android/settings/wifi/
H A DSummary.java25 static String get(Context context, String ssid, DetailedState state) { argument
28 int index = state.ordinal();
36 static String get(Context context, DetailedState state) { argument
37 return get(context, null, state);
H A DWifiApEnabler.java180 private void handleWifiApStateChanged(int state) { argument
181 switch (state) {
H A DWifiEnabler.java78 // Wi-Fi state is sticky, so just let the receiver update UI
102 //Do nothing if called as a result of a state machine event
121 // Intent has been taken into account, disable until new state is active
129 private void handleWifiStateChanged(int state) { argument
130 switch (state) {
160 private void handleStateChanged(@SuppressWarnings("unused") NetworkInfo.DetailedState state) { argument
166 // Here we use the state of the switch as an optimization.
167 if (state != null && mSwitch.isChecked()) {
170 //setSummary(Summary.get(mContext, info.getSSID(), state));
/packages/apps/Mms/src/com/android/mms/transaction/
H A DTransactionState.java50 * To represent the current state(or the result of processing) to the
51 * ones who wants to know the state.
53 * @return Current state of the Transaction.
60 * To set the state of transaction. This method is only invoked by
63 * @param state The current state of transaction.
65 synchronized void setState(int state) { argument
66 if ((state < INITIALIZED) && (state > FAILED)) {
67 throw new IllegalArgumentException("Bad state
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
H A DShiftKeyState.java62 protected String toString(int state) { argument
63 switch (state) {
66 default: return super.toString(state);
H A DAlphabetShiftState.java120 private static String toString(int state) { argument
121 switch (state) {
H A DModifierKeyState.java75 protected String toString(int state) { argument
76 switch (state) {
/packages/apps/Email/src/org/apache/james/mime4j/decoder/
H A DQuotedPrintableInputStream.java43 private byte state = 0; field in class:QuotedPrintableInputStream
128 switch (state) {
129 case 0: // start state, no bytes pending
132 break; // state remains 0
134 state = 1;
139 state = 2;
142 state = 3;
148 * Emit one = and stay in this state.
160 state = 0;
167 state
[all...]
/packages/apps/Settings/src/com/android/settings/bluetooth/
H A DBluetoothEnabler.java35 * preference reflects the current state.
47 int state = intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, BluetoothAdapter.ERROR);
48 handleStateChanged(state);
73 // Bluetooth state is not sticky, so set it manually
118 void handleStateChanged(int state) { argument
119 switch (state) {
/packages/apps/Calendar/src/com/android/calendar/
H A DMultiStateButton.java29 * or clicked, the state transitions automatically.
42 //The current state for this button, ranging from 0 to maxState-1
73 /* When clicked, toggle the state */
87 * set the current state to the maximum allowed if it's greater than the new max.
101 * Attempts to set the state. Returns true if successful, false otherwise.
103 public boolean setState(int state){ argument
104 if(state >= mMaxStates || state < 0) {
106 Log.w("Cal", "MultiStateButton state set to value greater than maxState or < 0");
109 mState = state;
[all...]
/packages/apps/Calendar/src/com/android/calendar/selectcalendars/
H A DSelectSyncedCalendarsMultiAccountActivity.java129 protected void onRestoreInstanceState(Bundle state) { argument
130 super.onRestoreInstanceState(state);
132 boolean[] isExpanded = state.getBooleanArray(EXPANDED_KEY);
/packages/apps/Phone/src/com/android/phone/
H A DCallController.java47 * - running the state machine of MMI sequences
48 * - restoring/resetting mute and speaker state when a new call starts
49 * - updating the prox sensor wake lock state
133 // Reset the mThreeWayCallOrigStateDialing state
232 // Clear out the "restore mute state" flag since we're
238 // "Add Call" request), so we should let the mute state be handled
239 // by the PhoneUtils phone state change handler.)
367 // If the call status is NOT in an acceptable state, it
370 // with the underlying issue of the phone state.
372 if (DBG) log("Voicemail number not reachable in current SIM card state
598 checkIfOkToInitiateOutgoingCall(int state) argument
[all...]
H A DCdmaSubscriptionListPreference.java66 protected void showDialog(Bundle state) { argument
69 super.showDialog(state);
H A DCdmaSystemSelectListPreference.java55 protected void showDialog(Bundle state) { argument
60 super.showDialog(state);
/packages/inputmethods/LatinIME/native/jni/src/
H A Dcorrection_state.h55 inline static void initCorrectionState(CorrectionState *state, const int rootPos, argument
57 state->mParentIndex = -1;
58 state->mChildCount = childCount;
59 state->mInputIndex = 0;
60 state->mSiblingPos = rootPos;
61 state->mNeedsToTraverseAllNodes = traverseAll;
63 state->mTransposedPos = -1;
64 state->mExcessivePos = -1;
65 state->mSkipPos = -1;
67 state
[all...]
/packages/apps/Browser/src/com/android/browser/
H A DCrashRecoveryHandler.java91 Log.v(LOGTAG, "Clearing crash recovery state");
93 File state = new File(mContext.getCacheDir(), STATE_FILE);
94 if (state.exists()) {
95 state.delete();
120 final Bundle state = mController.createSaveState();
121 Message.obtain(mBackgroundHandler, MSG_WRITE_STATE, state)
126 Log.w(LOGTAG, "Failed to save state", t);
157 Bundle state = null;
172 state = parcel.readBundle();
173 if (state !
223 writeState(Bundle state) argument
[all...]
/packages/apps/Contacts/src/com/android/contacts/detail/
H A DContactDetailViewPagerAdapter.java128 public void restoreState(Parcelable state, ClassLoader loader) { argument
/packages/apps/Contacts/src/com/android/contacts/editor/
H A DBaseRawContactEditorView.java43 * source {@link Entity} can be swapped out. Any state-based changes, such as
117 * Set the internal state for this view, given a current
118 * {@link EntityDelta} state and the {@link AccountType} that
119 * apply to that state.
121 public abstract void setState(EntityDelta state, AccountType source, ViewIdGenerator vig, argument
H A DEditor.java63 public void setValues(DataKind kind, ValuesDelta values, EntityDelta state, boolean readOnly, argument
H A DEventFieldEditorView.java111 public void setValues(DataKind kind, ValuesDelta entry, EntityDelta state, boolean readOnly, argument
114 super.setValues(kind, entry, state, readOnly, vig);
276 // Update state
H A DPhoneticNameEditorView.java175 public void setValues(DataKind kind, ValuesDelta entry, EntityDelta state, boolean readOnly, argument
180 super.setValues(kind, entry, state, readOnly, vig);
H A DPhotoEditorView.java95 public void setValues(DataKind kind, ValuesDelta values, EntityDelta state, boolean readOnly, argument
100 setId(vig.getId(state, kind, values, 0));
H A DRawContactReadOnlyEditorView.java110 * Set the internal state for this view, given a current
111 * {@link EntityDelta} state and the {@link AccountType} that
112 * apply to that state.
115 public void setState(EntityDelta state, AccountType type, ViewIdGenerator vig, argument
120 // Bail if invalid state or source
121 if (state == null || type == null) return;
124 EntityModifier.ensureKindExists(state, type, StructuredName.CONTENT_ITEM_TYPE);
127 ValuesDelta values = state.getValues();
172 EntityModifier.ensureKindExists(state, type, Photo.CONTENT_ITEM_TYPE);
175 primary = state
[all...]
/packages/apps/Mms/src/com/android/mms/util/
H A DDownloadManager.java92 Log.v(TAG, "Service state changed: " + intent.getExtras());
95 ServiceState state = ServiceState.newFromBundle(intent.getExtras());
96 boolean isRoaming = state.getRoaming();
187 public void markState(final Uri uri, int state) { argument
193 && (state == STATE_DOWNLOADING)) {
209 if (state == STATE_PERMANENT_FAILURE) {
221 state |= DEFERRED_MASK;
224 // Use the STATUS field to store the state of downloading process
227 values.put(Mms.STATUS, state);
/packages/apps/Settings/src/com/android/settings/
H A DAccessibilityEnableScriptInjectionPreference.java124 protected void onRestoreInstanceState(Parcelable state) { argument
125 if (state == null || !state.getClass().equals(SavedState.class)) {
126 super.onRestoreInstanceState(state);
129 SavedState myState = (SavedState) state;

Completed in 404 milliseconds

12345