Home
last modified time | relevance | path

Searched refs:mState (Results 1 – 25 of 358) sorted by relevance

12345678910>>...15

/frameworks/base/media/java/android/media/audiofx/
DVisualizer.java159 private int mState = STATE_UNINITIALIZED; field in Visualizer
208 mState = STATE_UNINITIALIZED; in Visualizer()
224 mState = STATE_ENABLED; in Visualizer()
226 mState = STATE_INITIALIZED; in Visualizer()
238 mState = STATE_UNINITIALIZED; in release()
257 if (mState == STATE_UNINITIALIZED) { in setEnabled()
258 throw(new IllegalStateException("setEnabled() called in wrong state: "+mState)); in setEnabled()
261 if ((enabled && (mState == STATE_INITIALIZED)) || in setEnabled()
262 (!enabled && (mState == STATE_ENABLED))) { in setEnabled()
265 mState = enabled ? STATE_ENABLED : STATE_INITIALIZED; in setEnabled()
[all …]
/frameworks/base/graphics/java/android/graphics/drawable/
DRotateDrawable.java57 private RotateState mState; field in RotateDrawable
84 final RotateState state = mState; in applyTheme()
104 if (getDrawable() == null && (mState.mThemeAttrs == null in verifyRequiredAttributes()
105 || mState.mThemeAttrs[R.styleable.RotateDrawable_drawable] == 0)) { in verifyRequiredAttributes()
113 final RotateState state = mState; in updateStateFromTypedArray()
149 final RotateState st = mState; in draw()
167 if (mState.mFromDegrees != fromDegrees) { in setFromDegrees()
168 mState.mFromDegrees = fromDegrees; in setFromDegrees()
179 return mState.mFromDegrees; in getFromDegrees()
190 if (mState.mToDegrees != toDegrees) { in setToDegrees()
[all …]
DInsetDrawable.java60 private InsetState mState; field in InsetDrawable
102 mState.mInsetLeft = new InsetValue(0f, insetLeft); in InsetDrawable()
103 mState.mInsetTop = new InsetValue(0f, insetTop); in InsetDrawable()
104 mState.mInsetRight = new InsetValue(0f, insetRight); in InsetDrawable()
105 mState.mInsetBottom = new InsetValue(0f, insetBottom); in InsetDrawable()
123 mState.mInsetLeft = new InsetValue(insetLeftFraction, 0); in InsetDrawable()
124 mState.mInsetTop = new InsetValue(insetTopFraction, 0); in InsetDrawable()
125 mState.mInsetRight = new InsetValue(insetRightFraction, 0); in InsetDrawable()
126 mState.mInsetBottom = new InsetValue(insetBottomFraction, 0); in InsetDrawable()
149 final InsetState state = mState; in applyTheme()
[all …]
DScaleDrawable.java69 private ScaleState mState; field in ScaleDrawable
90 mState.mGravity = gravity; in ScaleDrawable()
91 mState.mScaleWidth = scaleWidth; in ScaleDrawable()
92 mState.mScaleHeight = scaleHeight; in ScaleDrawable()
117 final ScaleState state = mState; in applyTheme()
139 if (getDrawable() == null && (mState.mThemeAttrs == null in verifyRequiredAttributes()
140 || mState.mThemeAttrs[R.styleable.ScaleDrawable_drawable] == 0)) { in verifyRequiredAttributes()
148 final ScaleState state = mState; in updateStateFromTypedArray()
224 final boolean min = mState.mUseIntrinsicSizeAsMin; in onBoundsChange()
228 if (mState.mScaleWidth > 0) { in onBoundsChange()
[all …]
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayerDriver.cpp60 : mState(STATE_IDLE), in NuPlayerDriver()
129 if (mState != STATE_IDLE) { in setDataSource()
133 mState = STATE_SET_DATASOURCE_PENDING; in setDataSource()
137 while (mState == STATE_SET_DATASOURCE_PENDING) { in setDataSource()
148 if (mState != STATE_IDLE) { in setDataSource()
152 mState = STATE_SET_DATASOURCE_PENDING; in setDataSource()
156 while (mState == STATE_SET_DATASOURCE_PENDING) { in setDataSource()
167 if (mState != STATE_IDLE) { in setDataSource()
171 mState = STATE_SET_DATASOURCE_PENDING; in setDataSource()
175 while (mState == STATE_SET_DATASOURCE_PENDING) { in setDataSource()
[all …]
/frameworks/support/lifecycle/runtime/src/main/java/android/arch/lifecycle/
DLifecycleRegistry.java59 private State mState; field in LifecycleRegistry
90 mState = INITIALIZED; in LifecycleRegistry()
101 mState = state; in markState()
113 mState = getStateAfter(event); in handleLifecycleEvent()
128 State eldestObserverState = mObserverMap.eldest().getValue().mState; in isSynced()
129 State newestObserverState = mObserverMap.newest().getValue().mState; in isSynced()
130 return eldestObserverState == newestObserverState && mState == newestObserverState; in isSynced()
136 State siblingState = previous != null ? previous.getValue().mState : null; in calculateTargetState()
139 return min(min(mState, siblingState), parentState); in calculateTargetState()
144 State initialState = mState == DESTROYED ? DESTROYED : INITIALIZED; in addObserver()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/
DSimulatedGsmCallState.java46 State mState; field in CallInfo
53 mState = state; in CallInfo()
79 + mState.value() + ",0," + (mIsMpty ? "1" : "0") in toCLCCLine()
93 ret.state = DriverCall.stateFromCLCC(mState.value()); in toDriverCall()
110 return mState == State.ACTIVE || mState == State.HOLDING; in isActiveOrHeld()
115 return mState == State.DIALING || mState == State.ALERTING; in isConnecting()
120 return mState == State.INCOMING || mState == State.WAITING; in isRinging()
190 && (call.mState == CallInfo.State.INCOMING in triggerRing()
191 || call.mState == CallInfo.State.WAITING) in triggerRing()
210 mCalls[empty].mState = CallInfo.State.WAITING; in triggerRing()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeMachine.java115 private State mState = State.UNINITIALIZED; field in DozeMachine
160 Log.i(TAG, "request: current=" + mState + " req=" + requestedState, in requestState()
187 return mState; in getState()
198 Preconditions.checkState(mState == State.DOZE_REQUEST_PULSE in getPulseReason()
199 || mState == State.DOZE_PULSING in getPulseReason()
200 || mState == State.DOZE_PULSE_DONE, "must be in pulsing state, but is " + mState); in getPulseReason()
217 Log.i(TAG, "transition: old=" + mState + " req=" + requestedState + " new=" + newState); in transitionTo()
220 if (newState == mState) { in transitionTo()
226 State oldState = mState; in transitionTo()
227 mState = newState; in transitionTo()
[all …]
/frameworks/support/fragment/tests/java/android/support/v4/app/
DStrictFragment.java35 int mState; field in StrictFragment
69 if (mState == expect) { in checkState()
78 + stateToString(mState) + "; expected " + expectString.toString()); in checkState()
82 if (mState < minState) { in checkStateAtLeast()
84 + stateToString(mState) + "; expected at least " + stateToString(minState)); in checkStateAtLeast()
98 mState = ATTACHED; in onAttach()
110 mState = CREATED; in onCreate()
119 int fromState = mState; in onActivityCreated()
120 mState = ACTIVITY_CREATED; in onActivityCreated()
129 mState = STARTED; in onStart()
[all …]
/frameworks/support/compat/java/android/support/v4/graphics/drawable/
DDrawableWrapperApi14.java48 DrawableWrapperState mState; field in DrawableWrapperApi14
54 mState = state; in DrawableWrapperApi14()
64 mState = mutateConstantState(); in DrawableWrapperApi14()
75 if (mState != null && mState.mDrawableState != null) { in updateLocalState()
76 final Drawable dr = newDrawableFromState(mState.mDrawableState, res); in updateLocalState()
114 | (mState != null ? mState.getChangingConfigurations() : 0) in getChangingConfigurations()
140 final ColorStateList tintList = (isCompatTintEnabled() && mState != null) in isStateful()
141 ? mState.mTint in isStateful()
206 if (mState != null && mState.canConstantState()) { in getConstantState()
207 mState.mChangingConfigurations = getChangingConfigurations(); in getConstantState()
[all …]
/frameworks/av/services/camera/libcameraservice/device3/
DCamera3IOStreamBase.cpp49 mState = STATE_ERROR; in Camera3IOStreamBase()
76 lines.appendFormat(" State: %d\n", mState); in dump()
95 switch (mState) { in configureQueueLocked()
106 ALOGE("%s: Bad state: %d", __FUNCTION__, mState); in configureQueueLocked()
126 switch (mState) { in disconnectLocked()
167 if (mHandoutTotalBufferCount == 0 && mState != STATE_IN_CONFIG && in handoutBufferLocked()
168 mState != STATE_IN_RECONFIG && mState != STATE_PREPARING) { in handoutBufferLocked()
189 if (mState != STATE_CONFIGURED && in getBufferPreconditionCheckLocked()
190 mState != STATE_IN_CONFIG && mState != STATE_IN_RECONFIG && in getBufferPreconditionCheckLocked()
191 mState != STATE_PREPARING) { in getBufferPreconditionCheckLocked()
[all …]
DCamera3Stream.cpp56 mState(STATE_CONSTRUCTED), in Camera3Stream()
81 mState = STATE_ERROR; in Camera3Stream()
148 switch (mState) { in startConfiguration()
168 ALOGE("%s: Unknown state %d", __FUNCTION__, mState); in startConfiguration()
191 if (mState == STATE_CONSTRUCTED) { in startConfiguration()
192 mState = STATE_IN_CONFIG; in startConfiguration()
194 LOG_ALWAYS_FATAL_IF(mState != STATE_CONFIGURED, "Invalid state: 0x%x", mState); in startConfiguration()
195 mState = STATE_IN_RECONFIG; in startConfiguration()
203 return (mState == STATE_IN_CONFIG) || (mState == STATE_IN_RECONFIG); in isConfiguring()
209 switch (mState) { in finishConfiguration()
[all …]
/frameworks/base/services/core/java/com/android/server/notification/
DRankingReconsideration.java33 private int mState; field in RankingReconsideration
44 mState = START; in RankingReconsideration()
52 if (mState == START) { in run()
53 mState = RUNNING; in run()
57 mState = DONE; in run()
69 if (mState == START) { // can't cancel if running or done in cancel()
70 mState = CANCELLED; in cancel()
77 return mState == CANCELLED; in isCancelled()
81 return mState == DONE; in isDone()
/frameworks/base/libs/hwui/renderstate/
DStencil.cpp63 if (mState == StencilState::Test) { in clear()
70 if (mState != StencilState::Test) { in enableTest()
81 mState = StencilState::Test; in enableTest()
86 if (mState != StencilState::Write) { in enableWrite()
99 mState = StencilState::Write; in enableWrite()
108 mState = StencilState::Test; in enableDebugTest()
118 mState = StencilState::Write; in enableDebugWrite()
123 if (mState == StencilState::Disabled) { in enable()
129 if (mState != StencilState::Disabled) { in disable()
131 mState = StencilState::Disabled; in disable()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DDimLayerController.java41 private ArrayMap<DimLayer.DimLayerUser, DimLayerState> mState = new ArrayMap<>(); field in DimLayerController
99 DimLayerState state = mState.get(dimLayerUser); in getOrCreateDimLayerState()
102 mState.put(dimLayerUser, state); in getOrCreateDimLayerState()
108 DimLayerState state = mState.get(dimLayerUser); in setContinueDimming()
118 for (int i = mState.size() - 1; i >= 0; i--) { in isDimming()
119 DimLayerState state = mState.valueAt(i); in isDimming()
128 for (int i = mState.size() - 1; i >= 0; i--) { in resetDimming()
129 mState.valueAt(i).continueDimming = false; in resetDimming()
134 DimLayerState state = mState.get(dimLayerUser); in getContinueDimming()
163 if (DEBUG_DIM_LAYER) Slog.v(TAG, "stopDimmingIfNeeded, mState.size()=" + mState.size()); in stopDimmingIfNeeded()
[all …]
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DRemotePrintDocument.java115 mState = STATE_UPDATED;
122 mState = STATE_UPDATED;
128 mState = STATE_FAILED;
135 if (mState == STATE_CANCELING) {
136 mState = STATE_CANCELED;
151 private int mState = STATE_INITIAL; field in RemotePrintDocument
183 if (mState == STATE_FAILED) { in start()
185 } else if (mState == STATE_DESTROYED) { in start()
188 if (mState != STATE_INITIAL) { in start()
189 throw new IllegalStateException("Cannot start in state:" + stateToString(mState)); in start()
[all …]
/frameworks/native/services/surfaceflinger/RenderEngine/
DGLES20RenderEngine.cpp202 mState.setProjectionMatrix(m); in setViewportAndProjection()
215 mState.setPremultipliedAlpha(premultipliedAlpha);
216 mState.setOpaque(opaque);
218 mState.setPlaneAlpha(alpha);
222 mState.setPlaneAlpha(alpha / 255.0f);
238 mState.setPlaneAlpha(1.0f);
239 mState.setPremultipliedAlpha(true);
240 mState.setOpaque(false);
242 mState.setColor(0, 0, 0, alpha);
244 mState.setColor(0, 0, 0, alpha/255.0f);
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DOpenNetworkNotifier.java101 @State private int mState = STATE_NO_NOTIFICATION; field in OpenNetworkNotifier
232 if (mState != STATE_NO_NOTIFICATION) { in clearPendingNotification()
237 + mState in clearPendingNotification()
241 mState = STATE_NO_NOTIFICATION; in clearPendingNotification()
268 if (mState == STATE_NO_NOTIFICATION in handleScanResults()
274 if (mState == STATE_NO_NOTIFICATION && !mScreenOn) { in handleScanResults()
279 if (mState == STATE_NO_NOTIFICATION in handleScanResults()
280 || mState == STATE_SHOWING_RECOMMENDATION_NOTIFICATION) { in handleScanResults()
303 if (mState != STATE_CONNECTING_IN_NOTIFICATION) { in handleWifiConnected()
314 mState = STATE_CONNECTED_NOTIFICATION; in handleWifiConnected()
[all …]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DFilter.java56 private State mState = new State(); field in Filter
274 return mState.check(State.STATE_OPEN); in isOpen()
395 return (mIsActive && !mState.check(State.STATE_CLOSED)); in inSchedulableState()
442 synchronized (mState) { in performPreparation()
443 if (mState.current == State.STATE_OPEN) { in performPreparation()
589 synchronized (mState) { in execute()
592 if (mState.current == State.STATE_UNPREPARED) { in execute()
594 mState.current = State.STATE_PREPARED; in execute()
596 if (mState.current == State.STATE_PREPARED) { in execute()
599 mState.current = State.STATE_OPEN; in execute()
[all …]
/frameworks/base/tests/utils/testutils/java/com/android/internal/util/test/
DBidirectionalAsyncChannel.java39 private ChannelState mState = ChannelState.DISCONNECTED; field in BidirectionalAsyncChannel
42 assertEquals("AsyncChannel was not fully connected", ChannelState.CONNECTED, mState); in assertConnected()
48 ChannelState.DISCONNECTED, mState); in connect()
58 mState = ChannelState.HALF_CONNECTED; in connect()
61 mState = ChannelState.FAILURE; in connect()
66 mState = ChannelState.CONNECTED; in connect()
70 mState = ChannelState.DISCONNECTED; in connect()
85 ChannelState.CONNECTED, mState); in disconnect()
87 mState = ChannelState.DISCONNECTED; in disconnect()
93 ChannelState.CONNECTED, mState); in sendMessage()
/frameworks/av/media/libstagefright/
DMediaMuxer.cpp43 mState(UNINITIALIZED) { in MediaMuxer()
52 mState = INITIALIZED; in MediaMuxer()
73 if (mState != INITIALIZED) { in addTrack()
91 if (mState != INITIALIZED) { in setOrientationHint()
107 if (mState != INITIALIZED) { in setLocation()
122 if (mState == INITIALIZED) { in start()
123 mState = STARTED; in start()
127 ALOGE("start() is called in invalid state %d", mState); in start()
135 if (mState == STARTED) { in stop()
136 mState = STOPPED; in stop()
[all …]
DSimpleDecodingSource.cpp121 if (me->mState != INIT) { in start()
130 me->mState = STARTED; in start()
134 me->mState = ERROR; in start()
142 if (me->mState != STARTED) { in stop()
147 me->mState = STOPPING; in stop()
158 me->mState = STOPPED; in stop()
160 me->mState = ERROR; in stop()
167 if (me->mState == STARTED || me->mState == INIT) { in getFormat()
178 mState(INIT), in ProtectedState()
188 if (me->mState != STARTED) { in read()
[all …]
/frameworks/base/apct-tests/perftests/multiuser/src/android/multiuser/
DBenchmarkRunner.java36 private int mState = NOT_STARTED; // Current benchmark state. field in BenchmarkRunner
44 switch (mState) { in keepRunning()
46 mState = RUNNING; in keepRunning()
64 mState = FINISHED; in startNextTestRun()
81 if (mState != RUNNING) { in pauseTiming()
85 mState = PAUSED; in pauseTiming()
89 if (mState != PAUSED) { in resumeTiming()
93 mState = RUNNING; in resumeTiming()
/frameworks/base/core/java/android/widget/
DEdgeEffect.java104 private int mState = STATE_IDLE; field in EdgeEffect
160 return mState == STATE_IDLE; in isFinished()
168 mState = STATE_IDLE; in finish()
204 if (mState == STATE_PULL_DECAY && now - mStartTime < mDuration) { in onPull()
207 if (mState != STATE_PULL) { in onPull()
210 mState = STATE_PULL; in onPull()
243 if (mState != STATE_PULL && mState != STATE_PULL_DECAY) { in onRelease()
247 mState = STATE_RECEDE; in onRelease()
269 mState = STATE_ABSORB; in onAbsorb()
340 if (mState == STATE_RECEDE && mGlowScaleY == 0) { in draw()
[all …]
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/android/arch/persistence/room/integration/testapp/vo/
DAddress.java26 private String mState; field in Address
41 return mState; in getState()
45 mState = state; in setState()
75 if (mState != null ? !mState.equals(address.mState) : address.mState != null) { in equals()
85 result = 31 * result + (mState != null ? mState.hashCode() : 0); in hashCode()

12345678910>>...15