Searched defs:state (Results 126 - 150 of 757) sorted by relevance

1234567891011>>

/frameworks/av/services/audiopolicy/enginedefault/src/
H A DEngine.cpp65 status_t Engine::setPhoneState(audio_mode_t state) argument
67 ALOGV("setPhoneState() state %d", state);
69 if (state < 0 || state >= AUDIO_MODE_CNT) {
70 ALOGW("setPhoneState() invalid state %d", state);
74 if (state == mPhoneState ) {
75 ALOGW("setPhoneState() setting same state %d", state);
[all...]
/frameworks/av/services/camera/libcameraservice/device3/
H A DStatusTracker.cpp91 void StatusTracker::markComponent(int id, ComponentState state, argument
94 state == IDLE ? "idle" : "active");
99 state,
138 // Wait for state updates
147 ALOGE("%s: Error waiting on state changes: %s (%d)",
164 // Collect all pending state updates and see if the device
170 // Only collect changes to overall device state
173 // For each pending component state update, check if we've transitioned
174 // to a new overall device state
180 // Update single component state
[all...]
/frameworks/base/cmds/media/src/com/android/commands/media/
H A DMedia.java193 public void onPlaybackStateChanged(PlaybackState state) { argument
194 System.out.println("onPlaybackStateChanged " + state);
/frameworks/base/core/java/android/animation/
H A DStateListAnimator.java29 * drawable state.
76 * Associates the given animator with the provided drawable state specs so that it will be run
77 * when the View's drawable state matches the specs.
79 * @param specs The drawable state specs to match against
90 * Returns the current {@link android.animation.Animator} which is started because of a state
155 throw new AssertionError("cannot clone state list animator", e);
163 public void setState(int[] state) { argument
168 if (StateSet.stateSetMatches(tuple.mSpecs, state)) {
206 * If there is an animation running for a recent state change, ends it.
256 * Return a {@link android.content.res.ConstantState} instance that holds the shared state o
[all...]
/frameworks/base/core/java/android/app/
H A DExpandableListActivity.java204 protected void onRestoreInstanceState(Bundle state) { argument
206 super.onRestoreInstanceState(state);
210 * Updates the screen state (current list and other views) when the
/frameworks/base/core/java/android/app/backup/
H A DBlobBackupHelper.java58 * the current data state. During a backup operation this method is called once
62 * or {@code null} if the current state is empty or undefined.
68 * to apply that described state in the live system. This method is called once
84 * [Int=N] : number of keys represented in the state blob
91 final ArrayMap<String, Long> state = new ArrayMap<String, Long>();
101 Log.i(TAG, " " + numKeys + " keys in state record");
109 state.put(key, checksum);
112 Log.w(TAG, "Prior state from unrecognized version " + version);
115 // Empty file is expected on first backup, so carry on. If the state
118 Log.i(TAG, "Hit EOF reading prior state");
132 writeBackupState(ArrayMap<String, Long> state, ParcelFileDescriptor stateFile) argument
[all...]
/frameworks/base/core/java/android/hardware/camera2/legacy/
H A DGLThreadManager.java138 * @param state {@link CameraDeviceState} to use for error handling.
140 public GLThreadManager(int cameraId, int facing, CameraDeviceState state) { argument
144 mDeviceState = state;
/frameworks/base/core/java/android/net/
H A DNetworkIdentity.java167 public static NetworkIdentity buildNetworkIdentity(Context context, NetworkState state) { argument
168 final int type = state.networkInfo.getType();
169 final int subType = state.networkInfo.getSubtype();
177 if (state.subscriberId == null) {
178 if (state.networkInfo.getState() != NetworkInfo.State.DISCONNECTED &&
179 state.networkInfo.getState() != NetworkInfo.State.UNKNOWN) {
181 + state.networkInfo);
185 subscriberId = state.subscriberId;
186 roaming = state.networkInfo.isRoaming();
188 metered = !state
[all...]
/frameworks/base/core/java/android/preference/
H A DEditTextPreference.java66 * We reset the enabled state.
188 // No need to save instance state since it's persistent
198 protected void onRestoreInstanceState(Parcelable state) { argument
199 if (state == null || !state.getClass().equals(SavedState.class)) {
200 // Didn't save state for us in onSaveInstanceState
201 super.onRestoreInstanceState(state);
205 SavedState myState = (SavedState) state;
H A DPreferenceScreen.java181 private void showDialog(Bundle state) { argument
216 if (state != null) {
217 dialog.onRestoreInstanceState(state);
272 protected void onRestoreInstanceState(Parcelable state) { argument
273 if (state == null || !state.getClass().equals(SavedState.class)) {
274 // Didn't save state for us in onSaveInstanceState
275 super.onRestoreInstanceState(state);
279 SavedState myState = (SavedState) state;
/frameworks/base/core/java/android/service/notification/
H A DCondition.java75 * if the state of the condition is {@link #STATE_TRUE}.
85 * The state of this condition. {@link #STATE_TRUE} will enable Do Not Disturb mode.
87 * might still be enabled globally if other conditions are in a {@link #STATE_TRUE} state.
90 public final int state; field in class:Condition
98 * An object representing the current state of a {@link android.app.AutomaticZenRule}.
100 * @param summary a user visible description of the rule state.
102 public Condition(Uri id, String summary, int state) { argument
103 this(id, summary, "", "", -1, state, FLAG_RELEVANT_ALWAYS);
108 int state, int flags) {
111 if (!isValidState(state)) thro
107 Condition(Uri id, String summary, String line1, String line2, int icon, int state, int flags) argument
131 isValidState(int state) argument
160 stateToString(int state) argument
[all...]
/frameworks/base/core/java/android/service/quicksettings/
H A DTile.java27 * A Tile holds the state of a tile that will be displayed
40 * An unavailable state indicates that for some reason this tile is not currently
42 * icon will be tinted differently to reflect this state.
47 * This represents a tile that is currently in a disabled state but is still interactable.
49 * A disabled state indicates that the tile is not currently active (e.g. wifi disconnected or
50 * bluetooth disabled), but is still interactable by the user to modify this state. Tiles
52 * icon will be tinted differently to reflect this state, but still be distinct from unavailable.
58 * cast is casting). This is the default state.
93 * The current state of the tile.
104 * Sets the current state fo
111 setState(int state) argument
[all...]
/frameworks/base/core/java/android/util/
H A DStateSet.java23 * represents the state of a {@link android.view.View} (e.g. focused,
27 * A state spec is an array of signed ints where each element
29 * {@link android.view.View} state.
31 * Utils dealing with state sets.
33 * In theory we could encapsulate the state set and state spec arrays
114 throw new IllegalArgumentException("Invalid state set mask");
123 * A state specification that will be matched by all StateSets.
128 * A state set that does not contain any valid states.
135 * @param stateSetOrSpec a state se
208 stateSetMatches(int[] stateSpec, int state) argument
[all...]
/frameworks/base/core/java/com/android/internal/graphics/drawable/
H A DAnimationScaleListDrawable.java56 private AnimationScaleListDrawable(@Nullable AnimationScaleListState state, argument
58 // Every scale list drawable has its own constant state.
59 final AnimationScaleListState newState = new AnimationScaleListState(state, this, res);
96 final AnimationScaleListState state = mAnimationScaleListState;
130 state.addDrawable(dr);
246 protected void setConstantState(@NonNull DrawableContainerState state) { argument
247 super.setConstantState(state);
249 if (state instanceof AnimationScaleListState) {
250 mAnimationScaleListState = (AnimationScaleListState) state;
/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.java165 Bundle state = new Bundle();
166 saveHierarchyState(state);
168 state.putInt(OPEN_SUBMENU_KEY, mOpenSubMenuId);
170 return state;
174 public void onRestoreInstanceState(Parcelable state) { argument
175 restoreHierarchyState((Bundle) state);
H A DMenuPresenter.java43 * of menu state so that it does not attempt to hide the action bar
136 * Returns an ID for determining how to save/restore instance state.
142 * Returns a Parcelable describing the current state of the presenter.
145 * @return The saved instance state
150 * Supplies the previously saved instance state to be restored.
151 * @param state The previously saved instance state
153 public void onRestoreInstanceState(Parcelable state); argument
/frameworks/base/core/java/com/android/internal/widget/
H A DPagerAdapter.java233 * Save any instance state associated with this adapter and its pages that should be
234 * restored if the current UI state needs to be reconstructed.
236 * @return Saved state for this adapter
243 * Restore any instance state associated with this adapter and its pages
246 * @param state State previously saved by a call to {@link #saveState()}
249 public void restoreState(Parcelable state, ClassLoader loader) { argument
/frameworks/base/graphics/java/android/graphics/drawable/
H A DClipDrawable.java103 final ClipState state = mState;
104 if (state == null) {
108 if (state.mThemeAttrs != null) {
109 final TypedArray a = t.resolveAttributes(state.mThemeAttrs, R.styleable.ClipDrawable);
132 final ClipState state = mState;
133 if (state == null) {
138 state.mChangingConfigurations |= a.getChangingConfigurations();
141 state.mThemeAttrs = a.extractThemeAttrs();
143 state.mOrientation = a.getInt(
144 R.styleable.ClipDrawable_clipOrientation, state
234 ClipDrawable(ClipState state, Resources res) argument
[all...]
H A DLevelListDrawable.java71 // in case the new state matches our current state...
238 protected void setConstantState(@NonNull DrawableContainerState state) { argument
239 super.setConstantState(state);
241 if (state instanceof LevelListState) {
242 mLevelListState = (LevelListState) state;
246 private LevelListDrawable(LevelListState state, Resources res) { argument
247 final LevelListState as = new LevelListState(state, this, res);
H A DTransitionDrawable.java60 * The current state of the transition. One of {@link #TRANSITION_STARTING},
92 private TransitionDrawable(TransitionState state, Resources res) { argument
93 super(state, res);
96 private TransitionDrawable(TransitionState state, Drawable[] layers) { argument
97 super(layers, state);
101 LayerState createConstantState(LayerState state, Resources res) { argument
102 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/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 DNavigationView.java59 State state,
65 mState = state;
171 public BreadcrumbAdapter(State state, Environment env) { argument
172 mState = state;
55 NavigationView( DrawerController drawer, DocumentsToolbar toolbar, Spinner breadcrumb, State state, NavigationView.Environment env) argument

Completed in 777 milliseconds

1234567891011>>