Searched defs:state (Results 101 - 125 of 533) sorted by relevance

1234567891011>>

/frameworks/base/core/java/android/net/
H A DNetworkIdentity.java158 public static NetworkIdentity buildNetworkIdentity(Context context, NetworkState state) { argument
159 final int type = state.networkInfo.getType();
160 final int subType = state.networkInfo.getSubtype();
167 if (state.subscriberId == null) {
171 subscriberId = state.subscriberId;
172 roaming = state.networkInfo.isRoaming();
175 if (state.networkId != null) {
176 networkId = state.networkId;
H A DProxyDataTracker.java193 * Record the detailed state of a network, and if it is a
194 * change from the previous state, send a notification to
196 * @param state the new @{code DetailedState}
197 * @param reason a {@code String} indicating a reason for the state change,
199 * @param extraInfo optional {@code String} providing extra information about the state change
201 private void setDetailedState(NetworkInfo.DetailedState state, String reason, argument
203 mNetworkInfo.setDetailedState(state, reason, extraInfo);
/frameworks/base/core/java/android/preference/
H A DEditTextPreference.java65 * We reset the enabled state.
186 // No need to save instance state since it's persistent
196 protected void onRestoreInstanceState(Parcelable state) { argument
197 if (state == null || !state.getClass().equals(SavedState.class)) {
198 // Didn't save state for us in onSaveInstanceState
199 super.onRestoreInstanceState(state);
203 SavedState myState = (SavedState) state;
H A DPreferenceScreen.java158 private void showDialog(Bundle state) { argument
181 if (state != null) {
182 dialog.onRestoreInstanceState(state);
237 protected void onRestoreInstanceState(Parcelable state) { argument
238 if (state == null || !state.getClass().equals(SavedState.class)) {
239 // Didn't save state for us in onSaveInstanceState
240 super.onRestoreInstanceState(state);
244 SavedState myState = (SavedState) state;
/frameworks/base/core/java/android/printservice/
H A DPrintJob.java27 * service. It provides APIs for observing the print job state and
65 * current print job state. Every call to this method returns a fresh
66 * info object that reflects the current print job state.
144 * is successfully printed. This is a final state.
157 * not successfully printed due to an error. This is a final state.
170 * cancelled as a result of a user request. This is a final state.
193 final int state = getInfo().getState();
194 if (state == PrintJobInfo.STATE_QUEUED
195 || state == PrintJobInfo.STATE_BLOCKED) {
216 final int state
377 setState(int state, String error) argument
[all...]
/frameworks/base/core/java/android/service/notification/
H A DCondition.java50 public final int state; field in class:Condition
54 int state, int flags) {
59 if (!isValidState(state)) throw new IllegalArgumentException("state is invalid: " + state);
65 this.state = state;
79 private static boolean isValidState(int state) { argument
80 return state >= STATE_FALSE && state <
53 Condition(Uri id, String summary, String line1, String line2, int icon, int state, int flags) argument
107 stateToString(int state) argument
[all...]
/frameworks/base/core/java/com/android/internal/preference/
H A DYesNoPreference.java103 // No need to save instance state since it's persistent
113 protected void onRestoreInstanceState(Parcelable state) { argument
114 if (!state.getClass().equals(SavedState.class)) {
115 // Didn't save state for us in onSaveInstanceState
116 super.onRestoreInstanceState(state);
120 SavedState myState = (SavedState) state;
/frameworks/base/core/java/com/android/internal/view/menu/
H A DIconMenuPresenter.java163 Bundle state = new Bundle();
164 saveHierarchyState(state);
166 state.putInt(OPEN_SUBMENU_KEY, mOpenSubMenuId);
168 return state;
172 public void onRestoreInstanceState(Parcelable state) { argument
173 restoreHierarchyState((Bundle) state);
H A DMenuPresenter.java41 * of menu state so that it does not attempt to hide the action bar
130 * Returns an ID for determining how to save/restore instance state.
136 * Returns a Parcelable describing the current state of the presenter.
139 * @return The saved instance state
144 * Supplies the previously saved instance state to be restored.
145 * @param state The previously saved instance state
147 public void onRestoreInstanceState(Parcelable state); argument
/frameworks/base/graphics/java/android/graphics/drawable/
H A DLevelListDrawable.java71 // in case the new state matches our current state...
232 protected void setConstantState(@NonNull DrawableContainerState state) { argument
233 super.setConstantState(state);
235 if (state instanceof LevelListState) {
236 mLevelListState = (LevelListState) state;
240 private LevelListDrawable(LevelListState state, Resources res) { argument
241 final LevelListState as = new LevelListState(state, this, res);
H A DTransitionDrawable.java59 * The current state of the transition. One of {@link #TRANSITION_STARTING},
91 private TransitionDrawable(TransitionState state, Resources res) { argument
92 super(state, res);
95 private TransitionDrawable(TransitionState state, Drawable[] layers) { argument
96 super(layers, state);
100 LayerState createConstantState(LayerState state, Resources res) { argument
101 return new TransitionState((TransitionState) state, this, res);
/frameworks/base/libs/common_time/
H A Dcommon_clock_service.cpp85 status_t CommonClockService::getState(State* state) { argument
86 *state = mTimeServer.getState();
/frameworks/base/media/java/android/media/
H A DAudioManagerInternal.java44 public abstract void setMasterMuteForUid(boolean state, int flags, String callingPackage, argument
/frameworks/base/media/jni/
H A Dandroid_media_AmrInputStream.cpp63 GsmAmrEncoderState *state = (GsmAmrEncoderState *) gae; local
64 int32_t nResult = AMREncodeInit(&state->mEncState, &state->mSidState, false);
79 GsmAmrEncoderState *state = (GsmAmrEncoderState *) gae; local
80 int32_t length = AMREncode(state->mEncState, state->mSidState,
84 (Frame_Type_3GPP*) &state->mLastModeUsed,
109 GsmAmrEncoderState *state = (GsmAmrEncoderState *) gae; local
110 AMREncodeExit(&state->mEncState, &state
[all...]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
H A DMediaRecorderStateUnitTestTemplate.java65 * Calls method under test in the given state of the MediaRecorder object.
67 * @param state the MediaRecorder state in which the method under test is called.
69 private void callMediaRecorderMethodUnderTestInState(MediaRecorderStateErrors.MediaRecorderState state) { argument
70 Log.v(TAG, "call " + mMethodUnderTest + ": started in state " + state);
71 setMediaRecorderToState(state);
77 Log.v(TAG, "call " + mMethodUnderTest + ": ended in state " + state);
82 * object to the corresponding state, give
215 setMediaRecorderToState(MediaRecorderStateErrors.MediaRecorderState state) argument
251 setStateError(MediaRecorderStateErrors.MediaRecorderState state, boolean error) argument
[all...]
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
H A DRecentLoader.java155 public RecentLoader(Context context, RootsCache roots, State state) { argument
158 mState = state;
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
H A DNotificationController.java48 * based on print job state transitions.
273 private static boolean shouldNotifyForState(int state) { argument
274 switch (state) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
H A DSignalTileView.java104 protected void handleStateChanged(QSTile.State state) { argument
105 super.handleStateChanged(state);
106 final SignalState s = (SignalState) state;
120 if (state.autoMirrorDrawable && drawable != null) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
H A DBluetoothTile.java88 protected void handleUpdateState(BooleanState state, Object arg) { argument
93 state.visible = supported;
94 state.value = enabled;
95 state.autoMirrorDrawable = false;
97 state.label = null;
99 state.icon = ResourceIcon.get(R.drawable.ic_qs_bluetooth_connected);
100 state.contentDescription = mContext.getString(
102 state.label = mController.getLastDeviceName();
104 state.icon = ResourceIcon.get(R.drawable.ic_qs_bluetooth_connecting);
105 state
176 setToggleState(boolean state) argument
[all...]
H A DHotspotTile.java90 protected void handleUpdateState(BooleanState state, Object arg) { argument
91 state.visible = mController.isHotspotSupported() && mUsageTracker.isRecentlyUsed();
92 state.label = mContext.getString(R.string.quick_settings_hotspot_label);
94 state.value = mController.isHotspotEnabled();
95 state.icon = state.visible && state.value ? mEnable : mDisable;
119 * This will catch broadcasts for changes in hotspot state so we can show
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DBluetoothController.java48 public int state = STATE_DISCONNECTED; field in class:BluetoothController.PairedDevice
51 public static String stateToString(int state) { argument
52 if (state == STATE_DISCONNECTED) return "STATE_DISCONNECTED";
53 if (state == STATE_CONNECTING) return "STATE_CONNECTING";
54 if (state == STATE_CONNECTED) return "STATE_CONNECTED";
55 if (state == STATE_DISCONNECTING) return "STATE_DISCONNECTING";
H A DBluetoothUtil.java45 public static String profileStateToString(int state) { argument
46 if (state == BluetoothProfile.STATE_CONNECTED) return "STATE_CONNECTED";
47 if (state == BluetoothProfile.STATE_CONNECTING) return "STATE_CONNECTING";
48 if (state == BluetoothProfile.STATE_DISCONNECTED) return "STATE_DISCONNECTED";
49 if (state == BluetoothProfile.STATE_DISCONNECTING) return "STATE_DISCONNECTING";
/frameworks/base/services/core/java/com/android/server/display/
H A DDisplayDevice.java106 * Applies any pending changes to the observable state of the display device
119 * Sets the display state, if supported.
124 public Runnable requestDisplayStateLocked(int state) { argument
215 * Dumps the local state of the display device.
/frameworks/base/services/core/java/com/android/server/hdmi/
H A DNewDeviceAction.java191 public void handleTimerEvent(int state) { argument
192 if (mState == STATE_NONE || mState != state) {
195 if (state == STATE_WAITING_FOR_SET_OSD_NAME) {
202 } else if (state == STATE_WAITING_FOR_DEVICE_VENDOR_ID) {
H A DSystemAudioAction.java34 // Transient state to differentiate with STATE_NONE where the on-finished callback
187 final void handleTimerEvent(int state) { argument
188 if (mState != state) {

Completed in 1610 milliseconds

1234567891011>>