Searched refs:state (Results 201 - 225 of 1079) sorted by relevance

1234567891011>>

/frameworks/av/media/libstagefright/
H A DProcessInfo.cpp36 int32_t state; local
40 status_t err = service->getProcessStatesAndOomScoresFromPids(length, &pid, &state, &score);
45 ALOGV("pid %d state %d score %d", pid, state, score);
/frameworks/base/core/java/android/app/
H A DActivityGroup.java67 Bundle state = mLocalActivityManager.saveInstanceState();
68 if (state != null) {
69 outState.putBundle(STATES_KEY, 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/com/android/internal/net/
H A DLegacyVpnInfo.java42 public int state = -1; field in class:LegacyVpnInfo
53 out.writeInt(state);
63 info.state = in.readInt();
75 * Return best matching {@link LegacyVpnInfo} state based on given
89 Log.w(TAG, "Unhandled state " + info.getDetailedState()
/frameworks/base/libs/input/
H A DSpriteController.h172 /* Describes the state of a sprite.
206 * Requests acquire a lock on the controller, update local state and request the
210 * the sprite state before the work and update the sprite surface control afterwards.
227 return mLocked.state;
231 mLocked.state.dirty = 0;
236 mLocked.state.surfaceControl = surfaceControl;
237 mLocked.state.surfaceWidth = width;
238 mLocked.state.surfaceHeight = height;
239 mLocked.state.surfaceDrawn = drawn;
240 mLocked.state
247 SpriteState state; member in struct:android::SpriteController::SpriteImpl::Locked
256 SpriteUpdate(const sp<SpriteImpl> sprite, const SpriteState& state) argument
261 SpriteState state; member in struct:android::SpriteController::SpriteUpdate
[all...]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
H A DPreconditions.java25 * <p>Typically used to sanity check arguments or the current object state.</p>
114 * Checks that the state is currently {@link true}.
116 * @param message Message to raise an exception with if the state checking fails.
117 * @param state State to check
119 * @throws IllegalStateException if state was {@code false}
121 * @return The state value (always {@code true}).
123 public static boolean checkState(String message, boolean state) { argument
124 if (!state) {
128 return state;
/frameworks/base/services/core/java/com/android/server/hdmi/
H A DRequestArcAction.java83 final void handleTimerEvent(int state) { argument
84 if (mState != state || state != STATE_WATING_FOR_REQUEST_ARC_REQUEST_RESPONSE) {
/frameworks/minikin/libs/minikin/
H A DWordBreaker.cpp136 ScanState state = START; local
144 if (state == START && c == '@') {
145 state = SAW_AT;
146 } else if (state == START && c == ':') {
147 state = SAW_COLON;
148 } else if (state == SAW_COLON || state == SAW_COLON_SLASH) {
150 state = static_cast<ScanState>((int)state + 1); // next state add
[all...]
/frameworks/support/frameworks/support/samples/SupportDesignDemos/src/com/example/android/support/design/widget/
H A DBottomSheetUsageBase.java48 int state = mBehavior.getState();
49 if (state != BottomSheetBehavior.STATE_COLLAPSED &&
50 state != BottomSheetBehavior.STATE_HIDDEN) {
/frameworks/support/samples/SupportDesignDemos/src/com/example/android/support/design/widget/
H A DBottomSheetUsageBase.java48 int state = mBehavior.getState();
49 if (state != BottomSheetBehavior.STATE_COLLAPSED &&
50 state != BottomSheetBehavior.STATE_HIDDEN) {
/frameworks/base/media/java/android/media/
H A DRemoteController.java154 * Called whenever the playback state has changed.
157 * @param state one of the playback states authorized
160 public void onClientPlaybackStateUpdate(int state); argument
162 * Called whenever the playback state has changed, and playback position
164 * @param state one of the playback states authorized
166 * @param stateChangeTimeMs the system time at which the state change was reported,
172 * playing (e.g. when state is {@link RemoteControlClient#PLAYSTATE_ERROR}).
174 public void onClientPlaybackStateUpdate(int state, long stateChangeTimeMs, argument
199 * The time returned by this method is calculated from the last state change time based
213 PlaybackState state
463 onPlaybackStateChanged(PlaybackState state) argument
628 onNewPlaybackState(PlaybackState state) argument
679 PlaybackInfo(int state, long stateChangeTimeMs, long currentPosMs, float speed) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DSignalClusterView.java216 for (PhoneState state : mPhoneStates) {
217 mMobileSignalGroup.addView(state.mMobileGroup);
275 PhoneState state = getState(subId);
276 if (state == null) {
279 state.mMobileVisible = statusIcon.visible && !mBlockMobile;
280 state.mMobileStrengthId = statusIcon.icon;
281 state.mMobileTypeId = statusType;
282 state.mMobileDescription = statusIcon.contentDescription;
283 state.mMobileTypeDescription = typeContentDescription;
284 state
290 setEthernetIndicators(IconState state) argument
[all...]
/frameworks/base/graphics/java/android/graphics/drawable/
H A DAnimatedStateListDrawable.java41 * keyframe is chosen based on the current state set. Animations between
94 // Ensure we're showing the correct state when visible.
106 * @param drawable The drawable to show when in the specified state, may not be null
148 // We need to propagate the state change to the current drawable, but
183 // Reset state.
188 final AnimatedStateListState state = mState;
189 final int fromId = state.getKeyframeIdAt(fromIndex);
190 final int toId = state.getKeyframeIdAt(toIndex);
196 final int transitionIndex = state.indexOfTransition(fromId, toId);
202 boolean hasReversibleFlag = state
656 setConstantState(@onNull DrawableContainerState state) argument
664 AnimatedStateListDrawable(@ullable AnimatedStateListState state, @Nullable Resources res) argument
[all...]
H A DDrawableWrapper.java54 DrawableWrapper(DrawableWrapperState state, Resources res) { argument
55 mState = state;
71 * Initializes local dynamic properties from state. This should be called
72 * after significant state changes, e.g. from the One True Constructor and
126 final DrawableWrapperState state = mState;
127 if (state == null) {
132 // apply scaling to any existing constant state properties.
135 state.setDensity(targetDensity);
155 final DrawableWrapperState state = mState;
156 if (state
329 onStateChange(int[] state) argument
[all...]
/frameworks/base/core/java/android/content/res/
H A DXmlBlock.java84 public void setFeature(String name, boolean state) throws XmlPullParserException { argument
85 if (FEATURE_PROCESS_NAMESPACES.equals(name) && state) {
88 if (FEATURE_REPORT_NAMESPACE_ATTRIBUTES.equals(name) && state) {
497 /*package*/ static final native int nativeNext(long state); argument
498 private static final native int nativeGetNamespace(long state); argument
499 /*package*/ static final native int nativeGetName(long state); argument
500 private static final native int nativeGetText(long state); argument
501 private static final native int nativeGetLineNumber(long state); argument
502 private static final native int nativeGetAttributeCount(long state); argument
503 private static final native int nativeGetAttributeNamespace(long state, in argument
504 nativeGetAttributeName(long state, int idx) argument
505 nativeGetAttributeResource(long state, int idx) argument
506 nativeGetAttributeDataType(long state, int idx) argument
507 nativeGetAttributeData(long state, int idx) argument
508 nativeGetAttributeStringValue(long state, int idx) argument
509 nativeGetIdAttribute(long state) argument
510 nativeGetClassAttribute(long state) argument
511 nativeGetStyleAttribute(long state) argument
512 nativeGetAttributeIndex(long state, String namespace, String name) argument
513 nativeDestroyParseState(long state) argument
[all...]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DWifiSettingsStore.java37 /* Persisted state that tracks the wifi & airplane interaction from settings */
39 /* Tracks current airplane mode state */
48 /* Tracks if we have checked the saved wi-fi state after boot */
96 // When wifi state is disabled, we do not care
118 /* On airplane mode disable, restore wifi state if necessary */
136 private void persistWifiState(int state) { argument
138 mPersistWifiState = state;
139 Settings.Global.putInt(cr, Settings.Global.WIFI_ON, state);
160 * The settings app tracks the saved state, but the framework has to check it at boot to
177 * When changing states, we need to remember what the wifi state wa
184 setWifiSavedState(int state) argument
[all...]
/frameworks/rs/driver/
H A DrsdVertexArray.cpp85 RsdVertexArrayState *state = dc->gl.vertexArrayState; local
89 uint32_t maxAttrs = state->mAttrsEnabledSize;
92 if(state->mAttrsEnabled[ct]) {
94 state->mAttrsEnabled[ct] = false;
108 state->mAttrsEnabled[slot] = true;
/frameworks/support/media-compat/jellybean-mr2/android/support/v4/media/session/
H A DMediaSessionCompatApi18.java70 public static void setState(Object rccObj, int state, long position, float speed, argument
73 if (state == MediaSessionCompatApi14.STATE_PLAYING && position > 0) {
83 state = MediaSessionCompatApi14.getRccStateFromState(state);
84 ((RemoteControlClient) rccObj).setPlaybackState(state, position, speed);
/frameworks/support/v7/preference/src/android/support/v7/preference/
H A DEditTextPreference.java104 // No need to save instance state since it's persistent
114 protected void onRestoreInstanceState(Parcelable state) { argument
115 if (state == null || !state.getClass().equals(SavedState.class)) {
116 // Didn't save state for us in onSaveInstanceState
117 super.onRestoreInstanceState(state);
121 SavedState myState = (SavedState) state;
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DRecyclerViewPrefetchTest.java47 public void onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state) { argument
48 super.onLayoutChildren(recycler, state);
54 public void onLayoutCompleted(RecyclerView.State state) { argument
55 super.onLayoutCompleted(state);
65 int gatherPrefetchIndices(int dx, int dy, RecyclerView.State state, int[] outIndices) { argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
H A DQSTileBaseView.java126 public void onStateChanged(QSTile.State state) { argument
127 mHandler.obtainMessage(H.STATE_CHANGED, state).sendToTarget();
130 protected void handleStateChanged(QSTile.State state) { argument
131 mIcon.setIcon(state);
132 if (mCollapsedView && !TextUtils.isEmpty(state.minimalContentDescription)) {
133 setContentDescription(state.minimalContentDescription);
135 setContentDescription(state.contentDescription);
138 mAccessibilityClass = state.minimalAccessibilityClassName;
140 mAccessibilityClass = state.expandedAccessibilityClassName;
142 if (state instanceo
[all...]
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/
H A Dpstfilt.cpp166 state = pointer to structure of type Post_FilterState
169 fields of the structure pointed to by state is initialized to zero
183 This function initializes the state memory used by the Post_Filter function
199 int Post_Filter_reset (Post_FilterState *state)
201 if (state == (Post_FilterState *) NULL){
206 Set_zero (state->mem_syn_pst, M);
207 Set_zero (state->res2, L_SUBFR);
208 Set_zero (state->synth_buf, L_FRAME + M);
209 agc_reset(state->agc_state);
210 preemphasis_reset(state
238 Post_Filter_reset(Post_FilterState *state) argument
[all...]
/frameworks/rs/
H A DrsAllocation.cpp34 mHal.state.mipmapControl = RS_ALLOCATION_MIPMAP_NONE;
35 mHal.state.usageFlags = usages;
36 mHal.state.mipmapControl = mc;
37 mHal.state.userProvidedPtr = ptr;
47 mHal.state.baseAlloc = alloc;
48 mHal.state.usageFlags = alloc->mHal.state.usageFlags;
49 mHal.state.mipmapControl = RS_ALLOCATION_MIPMAP_NONE;
129 mHal.state.originX = offsets[0];
130 mHal.state
[all...]
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
H A Dwb_vad.c622 * Purpose: Allocates state memory and initializes state memory
627 VadVars ** state, /* i/o : State structure */
633 if (state == (VadVars **) NULL)
638 *state = NULL;
643 fprintf(stderr, "vad_init: can not malloc state structure\n");
648 *state = s;
656 * Purpose: Initializes state memory
661 VadVars * state /* i/o : State structure */
666 if (state
626 wb_vad_init( VadVars ** state, VO_MEM_OPERATOR *pMemOP ) argument
715 wb_vad_exit( VadVars ** state, VO_MEM_OPERATOR *pMemOP ) argument
[all...]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics/
H A DTelephonyMetricsTest.java179 // Test write ims call state
279 // Test write on ims connection state
433 // Test write phone state
523 // Test write service state changed
540 TelephonyServiceState state = event.serviceState;
541 assertTrue(state.hasVoiceRat());
542 assertEquals(RadioAccessTechnology.RAT_LTE, state.getVoiceRat());
543 assertTrue(state.hasDataRat());
544 assertEquals(RadioAccessTechnology.RAT_LTE, state.getDataRat());
545 assertTrue(state
[all...]

Completed in 733 milliseconds

1234567891011>>