Searched refs:state (Results 126 - 150 of 865) sorted by relevance

1234567891011>>

/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
H A DBaseActivity.java72 static final String EXTRA_STATE = "state";
102 final State state = getDisplayState();
107 if (state.action == State.ACTION_BROWSE && root != null) {
144 State state = getDisplayState();
145 grid.setVisible(state.derivedMode != State.MODE_GRID);
146 list.setVisible(state.derivedMode != State.MODE_LIST);
149 sortSize.setVisible(state.showSize);
162 State state = getDisplayState();
165 state.stack.root = root;
166 state
458 onSaveInstanceState(Bundle state) argument
464 onRestoreInstanceState(Bundle state) argument
[all...]
/frameworks/base/core/java/android/view/
H A DInputEventConsistencyVerifier.java74 // Linked list of key state objects.
77 // Current state of the trackball.
143 * Resets the state of the input event consistency verifier.
157 final KeyState state = mKeyStateList;
158 mKeyStateList = state.next;
159 state.recycle();
211 KeyState state = findKeyState(deviceId, source, keyCode, /*remove*/ false);
212 if (state != null) {
217 if (state.unhandled) {
218 state
[all...]
/frameworks/base/graphics/java/android/graphics/drawable/
H A DGradientDrawable.java260 * <p>Set the stroke width and color state list for the drawable. If width
267 * @param colorStateList The color state list of the stroke
297 * <p>Set the stroke width and color state list for the drawable. If width
305 * @param colorStateList The color state list of the stroke
727 * Changes this drawable to use a single color state list instead of a
736 * @param colorStateList The color state list used to fill the shape
1032 final GradientState state = mGradientState;
1033 if (state == null) {
1037 if (state.mThemeAttrs != null) {
1039 state
1616 GradientState(GradientState state) argument
1793 GradientDrawable(GradientState state, Resources res) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
H A DWifiTile.java119 protected void handleUpdateState(SignalState state, Object arg) { argument
120 state.visible = true;
129 boolean enabledChanging = state.enabled != cb.enabled;
134 state.enabled = cb.enabled;
135 state.connected = wifiConnected;
136 state.activityIn = cb.enabled && cb.activityIn;
137 state.activityOut = cb.enabled && cb.activityOut;
138 state.filter = true;
141 if (!state.enabled) {
142 state
258 setToggleState(boolean state) argument
[all...]
H A DRotationLockTile.java70 protected void handleUpdateState(BooleanState state, Object arg) { argument
75 state.visible = mController.isRotationLockAffordanceVisible();
76 if (state.value == rotationLocked && state.contentDescription != null) {
80 state.value = rotationLocked;
86 state.label = mContext.getString(label);
89 state.label = mContext.getString(R.string.quick_settings_rotation_unlocked_label);
93 state.icon = icon;
94 state.contentDescription = getAccessibilityString(rotationLocked,
117 * Get the correct accessibility string based on the state
[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);
95 state.value = (boolean) arg;
97 state.value = mController.isHotspotEnabled();
99 state.icon = state.visible && state.value ? mEnable : mDisable;
129 * This will catch broadcasts for changes in hotspot state so we can show
/frameworks/av/cmds/stagefright/
H A Dmediafilter.cpp348 CodecState *state = local
351 vidState = state;
353 state->mNumBuffersDecoded = 0;
355 state->mCodec = MediaCodec::CreateByType(
358 CHECK(state->mCodec != NULL);
360 err = state->mCodec->configure(
365 state->mSignalledInputEOS = false;
366 state->mSawOutputEOS = false;
472 CodecState *state = &stateByTrack.editValueAt(i); local
474 sp<MediaCodec> codec = state
527 CodecState *state = &stateByTrack.editValueFor(trackIndex); local
559 CodecState *state = &stateByTrack.editValueAt(i); local
585 CodecState *state = &stateByTrack.editValueAt(i); local
647 CodecState *state = &stateByTrack.editValueAt(i); local
[all...]
/frameworks/ex/camera2/public/src/com/android/ex/camera2/blocking/
H A DBlockingStateCallback.java32 * A camera device listener that implements blocking operations on state changes.
34 * <p>Provides wait calls that block until the next unobserved state of the
55 private void setCurrentState(int state) { argument
56 if (VERBOSE) Log.v(TAG, "Camera device state now " + stateToString(state));
58 mRecentStates.put(state);
60 throw new RuntimeException("Unable to set device state", e);
73 * Device has not reported any state yet
78 * Device is in the first-opened state (transitory)
143 * Wait until the desired state i
153 waitForState(int state, long timeout) argument
222 stateToString(int state) argument
[all...]
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/
H A Ddec_amr.cpp117 state = pointer to a pointer to structures of type Decoder_amrState
120 structure pointed to by the pointer which is pointed to by state is
123 state pointer points to the address of the memory allocated by
138 This function allocates and initializes state memory used by the Decoder_amr
139 function. It stores the pointer to the filter status structure in state. This
156 int Decoder_amr_init (Decoder_amrState **state)
161 if (state == (Decoder_amrState **) NULL){
165 *state = NULL;
169 fprintf(stderr, "Decoder_amr_init: can not malloc state structure\n");
200 *state
395 Decoder_amr_reset(Decoder_amrState *state, enum Mode mode) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_view_VelocityTracker.cpp152 VelocityTrackerState* state = reinterpret_cast<VelocityTrackerState*>(ptr); local
153 delete state;
157 VelocityTrackerState* state = reinterpret_cast<VelocityTrackerState*>(ptr); local
158 state->clear();
169 VelocityTrackerState* state = reinterpret_cast<VelocityTrackerState*>(ptr); local
170 state->addMovement(event);
175 VelocityTrackerState* state = reinterpret_cast<VelocityTrackerState*>(ptr); local
176 state->computeCurrentVelocity(units, maxVelocity);
181 VelocityTrackerState* state = reinterpret_cast<VelocityTrackerState*>(ptr); local
183 state
189 VelocityTrackerState* state = reinterpret_cast<VelocityTrackerState*>(ptr); local
197 VelocityTrackerState* state = reinterpret_cast<VelocityTrackerState*>(ptr); local
[all...]
/frameworks/base/services/core/java/com/android/server/display/
H A DDisplayPowerState.java32 * Controls the display power state.
37 * This mechanism enables multiple properties of the display power state to be animated
81 // so prepare to set it to a known state when the state is next applied.
123 public void setScreenState(int state) { argument
124 if (mScreenState != state) {
126 Slog.d(TAG, "setScreenState: state=" + state);
129 mScreenState = state;
136 * Gets the desired screen state
350 setState(int state, int backlight) argument
[all...]
/frameworks/base/telephony/java/com/android/internal/telephony/
H A DITelephonyRegistry.aidl40 void notifyCallState(int state, String incomingNumber);
41 void notifyCallStateForSubscriber(in int subId, int state, String incomingNumber);
42 void notifyServiceStateForPhoneId(in int phoneId, in int subId, in ServiceState state);
48 void notifyDataActivity(int state);
49 void notifyDataActivityForSubscriber(in int subId, int state);
50 void notifyDataConnection(int state, boolean isDataConnectivityPossible,
53 void notifyDataConnectionForSubscriber(int subId, int state, boolean isDataConnectivityPossible,
H A DIccCardConstants.java27 /* UNKNOWN means the ICC state is unknown */
37 //TODO: we can remove this state in the future if Bug 18489776 analysis
62 * UNKNOWN is a transient state, for example, after user inputs ICC pin under
63 * PIN_REQUIRED state, the query for ICC status returns UNKNOWN before it
89 public static State intToState(int state) throws IllegalArgumentException { argument
90 switch(state) {
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DSupplicantStateTracker.java42 * Tracks the state changes in supplicant and provides functionality
43 * that is based on these state changes:
113 //start the state machine
134 SupplicantState supState = (SupplicantState) stateChangeResult.state;
136 if (DBG) Log.d(TAG, "Supplicant state: " + supState.toString() + "\n");
169 Log.e(TAG, "Unknown supplicant state " + supState);
174 private void sendSupplicantStateChangedBroadcast(SupplicantState state, boolean failedAuth) { argument
176 switch (state) {
193 Slog.w(TAG, "Unknown supplicant state " + state);
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DDriverCall.java36 // If you add a state, make sure to look for the switch()
42 public State state; // May be null if unavail field in class:DriverCall
60 // index,isMT,state,mode,isMpty(,number,TOA)?
66 ret.state = stateFromCLCC(p.nextInt());
108 + state + ","
120 stateFromCLCC(int state) throws ATParseEx { argument
121 switch(state) {
129 throw new ATParseEx("illegal call state " + state);
/frameworks/support/v8/renderscript/jni/
H A Dandroid_rscompat_usage_io_driver.cpp29 alloc->mHal.drvState.lod[0].stride = drv->wndBuffer->stride * alloc->mHal.state.elementSizeBytes;
76 !(alloc->mHal.state.usageFlags & RS_ALLOCATION_USAGE_IO_INPUT) &&
77 !(alloc->mHal.state.usageFlags & RS_ALLOCATION_USAGE_IO_OUTPUT)) {
83 if ((alloc->mHal.state.usageFlags & RS_ALLOCATION_USAGE_IO_OUTPUT) &&
84 (alloc->mHal.state.usageFlags & RS_ALLOCATION_USAGE_SCRIPT)) {
100 if (alloc->mHal.state.usageFlags & RS_ALLOCATION_USAGE_SCRIPT) {
/frameworks/native/libs/input/
H A DVelocityTracker.cpp228 ALOGD("VelocityTracker: stopped for %0.3f ms, clearing state.",
715 State& state = mPointerState[id]; local
718 updateState(state, eventTime, position.x, position.y);
720 initState(state, eventTime, position.x, position.y);
732 const State& state = mPointerState[id]; local
733 populateEstimator(state, outEstimator);
740 void IntegratingVelocityTrackerStrategy::initState(State& state, argument
742 state.updateTime = eventTime;
743 state.degree = 0;
745 state
753 updateState(State& state, nsecs_t eventTime, float xpos, float ypos) const argument
795 populateEstimator(const State& state, VelocityTracker::Estimator* outEstimator) const argument
[all...]
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/
H A Dlevinson.cpp91 state = pointer to an array of pointers to structures of type
95 pointer pointed to by state points to the newly allocated memory to
110 This function allocates and initializes the state memory used by the
126 int Levinson_init (LevinsonState **state)
130 if (state == (LevinsonState **) NULL){
134 *state = NULL;
138 //fprint(stderr, "Levinson_init: can not malloc state structure\n");
143 *state = s;
171 Word16 Levinson_init(LevinsonState **state) argument
175 if (state
279 Levinson_reset(LevinsonState *state) argument
375 Levinson_exit(LevinsonState **state) argument
[all...]
/frameworks/base/tests/OneMedia/src/com/android/onemedia/
H A DOnePlayerActivity.java143 final int state = mPlaybackState.getState();
146 Log.d(TAG, "Play button pressed, in state " + state);
147 if (state == PlaybackState.STATE_PAUSED
148 || state == PlaybackState.STATE_STOPPED) {
150 } else if (state == PlaybackState.STATE_PLAYING) {
155 Log.d(TAG, "Start button pressed, in state " + state);
177 public void onPlaybackStateChange(PlaybackState state) {
178 mPlaybackState = state;
[all...]
/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;
/frameworks/base/core/java/android/preference/
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/tests/coretests/src/android/app/activity/
H A DTestedActivity.java37 protected void onRestoreInstanceState(Bundle state) argument
39 super.onRestoreInstanceState(state);
/frameworks/base/libs/storage/
H A DIObbActionListener.cpp34 const int32_t /* state */) { }
49 int32_t state = data.readInt32(); local
50 onObbResult(filename, nonce, state);
/frameworks/base/tools/layoutlib/bridge/src/com/google/android/maps/
H A DMapView.java112 public void onSaveInstanceState(Bundle state) { argument
115 public void onRestoreInstanceState(Bundle state) { argument
/frameworks/rs/
H A DrsProgramFragment.cpp48 if (mHal.state.constants[0] == nullptr) {
57 void *p = rsc->mHal.funcs.allocation.lock1D(rsc, mHal.state.constants[0]);
60 rsc->mHal.funcs.allocation.unlock1D(rsc, mHal.state.constants[0]);
63 void ProgramFragment::setup(Context *rsc, ProgramFragmentState *state) { argument
64 if ((state->mLast.get() == this) && !mDirty) {
67 state->mLast.set(this);
69 for (uint32_t ct=0; ct < mHal.state.texturesCount; ct++) {
70 if (!mHal.state.textures[ct]) {

Completed in 1883 milliseconds

1234567891011>>