Home
last modified time | relevance | path

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

12345678910>>...12

/frameworks/base/graphics/java/android/graphics/drawable/
DInsetDrawable.java55 private InsetState mState; field in InsetDrawable
87 mState.mInsetLeft = insetLeft; in InsetDrawable()
88 mState.mInsetTop = insetTop; in InsetDrawable()
89 mState.mInsetRight = insetRight; in InsetDrawable()
90 mState.mInsetBottom = insetBottom; in InsetDrawable()
109 if (getDrawable() == null && (mState.mThemeAttrs == null in verifyRequiredAttributes()
110 || mState.mThemeAttrs[R.styleable.InsetDrawable_drawable] == 0)) { in verifyRequiredAttributes()
121 final InsetState state = mState; in updateStateFromTypedArray()
159 final InsetState state = mState; in applyTheme()
185 padding.left += mState.mInsetLeft; in getPadding()
[all …]
DRotateDrawable.java55 private RotateState mState; field in RotateDrawable
78 if (getDrawable() == null && (mState.mThemeAttrs == null in verifyRequiredAttributes()
79 || mState.mThemeAttrs[R.styleable.RotateDrawable_drawable] == 0)) { in verifyRequiredAttributes()
90 final RotateState state = mState; in updateStateFromTypedArray()
121 final RotateState state = mState; in applyTheme()
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 …]
DScaleDrawable.java57 private ScaleState mState; field in ScaleDrawable
78 mState.mGravity = gravity; in ScaleDrawable()
79 mState.mScaleWidth = scaleWidth; in ScaleDrawable()
80 mState.mScaleHeight = scaleHeight; in ScaleDrawable()
99 if (getDrawable() == null && (mState.mThemeAttrs == null in verifyRequiredAttributes()
100 || mState.mThemeAttrs[R.styleable.ScaleDrawable_drawable] == 0)) { in verifyRequiredAttributes()
111 final ScaleState state = mState; in updateStateFromTypedArray()
147 final ScaleState state = mState; in applyTheme()
205 final boolean min = mState.mUseIntrinsicSizeAsMin; in onBoundsChange()
209 if (mState.mScaleWidth > 0) { in onBoundsChange()
[all …]
DDrawableWrapper.java45 private DrawableWrapperState mState; field in DrawableWrapper
50 mState = state; in DrawableWrapper()
61 mState = null; in DrawableWrapper()
71 if (mState != null && mState.mDrawableState != null) { in updateLocalState()
72 final Drawable dr = mState.mDrawableState.newDrawable(res); in updateLocalState()
99 if (mState != null) { in setDrawable()
100 mState.mDrawableState = dr.getConstantState(); in setDrawable()
116 final DrawableWrapperState state = mState; in updateStateFromTypedArray()
134 final DrawableWrapperState state = mState; in applyTheme()
146 return (mState != null && mState.canApplyTheme()) || super.canApplyTheme(); in canApplyTheme()
[all …]
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/
DRootsCacheTest.java49 private State mState; field in RootsCacheTest
55 mState = new State(); in setUp()
56 mState.action = State.ACTION_OPEN; in setUp()
57 mState.showAdvanced = true; in setUp()
58 mState.localOnly = false; in setUp()
62 mState.acceptMimes = new String[] { "*/*" }; in testMatchingRootsEverything()
65 RootsCache.getMatchingRoots(mRoots, mState)); in testMatchingRootsEverything()
69 mState.acceptMimes = new String[] { "image/png", "*/*" }; in testMatchingRootsPngOrWild()
72 RootsCache.getMatchingRoots(mRoots, mState)); in testMatchingRootsPngOrWild()
76 mState.acceptMimes = new String[] { "audio/*" }; in testMatchingRootsAudioWild()
[all …]
/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/av/media/libmediaplayerservice/nuplayer/
DNuPlayerDriver.cpp37 : mState(STATE_IDLE), in NuPlayerDriver()
86 if (mState != STATE_IDLE) { in setDataSource()
90 mState = STATE_SET_DATASOURCE_PENDING; in setDataSource()
94 while (mState == STATE_SET_DATASOURCE_PENDING) { in setDataSource()
105 if (mState != STATE_IDLE) { in setDataSource()
109 mState = STATE_SET_DATASOURCE_PENDING; in setDataSource()
113 while (mState == STATE_SET_DATASOURCE_PENDING) { in setDataSource()
124 if (mState != STATE_IDLE) { in setDataSource()
128 mState = STATE_SET_DATASOURCE_PENDING; in setDataSource()
132 while (mState == STATE_SET_DATASOURCE_PENDING) { in setDataSource()
[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/DocumentsUI/src/com/android/documentsui/
DDocumentsActivity.java92 private State mState; field in DocumentsActivity
137 mState = (icicle != null) in onCreate()
159 if (mState.action == ACTION_MANAGE || mState.action == ACTION_BROWSE) { in onCreate()
167 if (mState.action == ACTION_CREATE) { in onCreate()
171 } else if (mState.action == ACTION_OPEN_TREE || in onCreate()
172 mState.action == ACTION_OPEN_COPY_DESTINATION) { in onCreate()
176 if (mState.action == ACTION_GET_CONTENT) { in onCreate()
181 } else if (mState.action == ACTION_OPEN || in onCreate()
182 mState.action == ACTION_CREATE || in onCreate()
183 mState.action == ACTION_OPEN_TREE || in onCreate()
[all …]
/frameworks/av/services/camera/libcameraservice/device3/
DCamera3IOStreamBase.cpp48 mState = STATE_ERROR; in Camera3IOStreamBase()
75 lines.appendFormat(" State: %d\n", mState); in dump()
92 switch (mState) { in configureQueueLocked()
103 ALOGE("%s: Bad state: %d", __FUNCTION__, mState); in configureQueueLocked()
123 switch (mState) { in disconnectLocked()
163 if (mHandoutTotalBufferCount == 0 && mState != STATE_IN_CONFIG && in handoutBufferLocked()
164 mState != STATE_IN_RECONFIG && mState != STATE_PREPARING) { in handoutBufferLocked()
185 if (mState != STATE_CONFIGURED && in getBufferPreconditionCheckLocked()
186 mState != STATE_IN_CONFIG && mState != STATE_IN_RECONFIG && in getBufferPreconditionCheckLocked()
187 mState != STATE_PREPARING) { in getBufferPreconditionCheckLocked()
[all …]
DCamera3Stream.cpp55 mState(STATE_CONSTRUCTED), in Camera3Stream()
70 mState = STATE_ERROR; in Camera3Stream()
99 switch (mState) { in startConfiguration()
119 ALOGE("%s: Unknown state %d", __FUNCTION__, mState); in startConfiguration()
142 if (mState == STATE_CONSTRUCTED) { in startConfiguration()
143 mState = STATE_IN_CONFIG; in startConfiguration()
145 LOG_ALWAYS_FATAL_IF(mState != STATE_CONFIGURED, "Invalid state: 0x%x", mState); in startConfiguration()
146 mState = STATE_IN_RECONFIG; in startConfiguration()
154 return (mState == STATE_IN_CONFIG) || (mState == STATE_IN_RECONFIG); in isConfiguring()
160 switch (mState) { in finishConfiguration()
[all …]
/frameworks/base/libs/hwui/renderstate/
DStencil.cpp38 : mState(kDisabled) { in Stencil()
67 if (mState == kTest) { in clear()
74 if (mState != kTest) { in enableTest()
85 mState = kTest; in enableTest()
90 if (mState != kWrite) { in enableWrite()
103 mState = kWrite; in enableWrite()
112 mState = kTest; in enableDebugTest()
122 mState = kWrite; in enableDebugWrite()
127 if (mState == kDisabled) { in enable()
133 if (mState != kDisabled) { in disable()
[all …]
/frameworks/native/services/surfaceflinger/RenderEngine/
DGLES20RenderEngine.cpp115 mState.setProjectionMatrix(m); in setViewportAndProjection()
123 mState.setPremultipliedAlpha(premultipliedAlpha); in setupLayerBlending()
124 mState.setOpaque(opaque); in setupLayerBlending()
125 mState.setPlaneAlpha(alpha / 255.0f); in setupLayerBlending()
136 mState.setPlaneAlpha(1.0f); in setupDimLayerBlending()
137 mState.setPremultipliedAlpha(true); in setupDimLayerBlending()
138 mState.setOpaque(false); in setupDimLayerBlending()
139 mState.setColor(0, 0, 0, alpha/255.0f); in setupDimLayerBlending()
140 mState.disableTexture(); in setupDimLayerBlending()
162 mState.setTexture(texture); in setupLayerTexturing()
[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/packages/PrintSpooler/src/com/android/printspooler/model/
DRemotePrintDocument.java110 mState = STATE_UPDATED;
116 mState = STATE_UPDATED;
121 mState = STATE_FAILED;
128 if (mState == STATE_CANCELING) {
129 mState = STATE_CANCELED;
144 private int mState = STATE_INITIAL; field in RemotePrintDocument
176 if (mState != STATE_INITIAL) { in start()
177 throw new IllegalStateException("Cannot start in state:" + stateToString(mState)); in start()
181 mState = STATE_STARTED; in start()
184 mState = STATE_FAILED; in start()
[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/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 …]
/frameworks/base/core/java/android/widget/
DEdgeEffect.java103 private int mState = STATE_IDLE; field in EdgeEffect
159 return mState == STATE_IDLE; in isFinished()
167 mState = STATE_IDLE; in finish()
203 if (mState == STATE_PULL_DECAY && now - mStartTime < mDuration) { in onPull()
206 if (mState != STATE_PULL) { in onPull()
209 mState = STATE_PULL; in onPull()
242 if (mState != STATE_PULL && mState != STATE_PULL_DECAY) { in onRelease()
246 mState = STATE_RECEDE; in onRelease()
268 mState = STATE_ABSORB; in onAbsorb()
339 if (mState == STATE_RECEDE && mGlowScaleY == 0) { in draw()
[all …]
/frameworks/base/services/core/java/com/android/server/hdmi/
DDeviceSelectAction.java105 mState = STATE_WAIT_FOR_REPORT_POWER_STATUS; in queryDevicePowerStatus()
106 addTimer(mState, HdmiConfig.TIMEOUT_MS); in queryDevicePowerStatus()
117 switch (mState) { in processCommand()
136 mState = STATE_WAIT_FOR_DEVICE_TO_TRANSIT_TO_STANDBY; in handleReportPowerStatus()
137 addTimer(mState, TIMEOUT_TRANSIT_TO_STANDBY_MS); in handleReportPowerStatus()
151 mState = STATE_WAIT_FOR_DEVICE_POWER_ON; in handleReportPowerStatus()
152 addTimer(mState, TIMEOUT_POWER_ON_MS); in handleReportPowerStatus()
166 mState = STATE_WAIT_FOR_DEVICE_POWER_ON; in turnOnDevice()
167 addTimer(mState, TIMEOUT_POWER_ON_MS); in turnOnDevice()
183 if (mState != timeoutState) { in handleTimerEvent()
[all …]
DSendKeyAction.java91 mState = STATE_CHECKING_LONGPRESS; in start()
92 addTimer(mState, AWAIT_LONGPRESS_MS); in start()
107 if (mState != STATE_CHECKING_LONGPRESS && mState != STATE_PROCESSING_KEYCODE) { in processKeyEvent()
132 addTimer(mState, AWAIT_RELEASE_KEY_MS); in processKeyEvent()
166 switch (mState) { in handleTimerEvent()
170 mState = STATE_PROCESSING_KEYCODE; in handleTimerEvent()
173 addTimer(mState, AWAIT_RELEASE_KEY_MS); in handleTimerEvent()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
DGsmCall.java78 return mState.toString(); in toString()
87 mState = stateFromDCState (dc.state); in attach()
94 mState = state; in attachFake()
102 if (mState != State.DISCONNECTED) { in connectionDisconnected()
117 mState = State.DISCONNECTED; in connectionDisconnected()
130 mState = State.IDLE; in detach()
141 if (newState != mState) { in update()
142 mState = newState; in update()
175 mState = State.DISCONNECTING; in onHangupLocal()
192 mState = State.IDLE; in clearDisconnected()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
DCdmaCall.java76 return mState.toString(); in toString()
85 mState = stateFromDCState (dc.state); in attach()
92 mState = state; in attachFake()
100 if (mState != State.DISCONNECTED) { in connectionDisconnected()
115 mState = State.DISCONNECTED; in connectionDisconnected()
129 mState = State.IDLE; in detach()
140 if (newState != mState) { in update()
141 mState = newState; in update()
172 mState = State.DISCONNECTING; in onHangupLocal()
188 mState = State.IDLE; in clearDisconnected()
/frameworks/av/media/libstagefright/timedtext/
DTimedTextDriver.cpp49 mState(UNINITIALIZED), in TimedTextDriver()
70 if (mState == UNINITIALIZED) { in selectTrack_l()
71 mState = PREPARED; in selectTrack_l()
79 switch (mState) { in start()
86 mState = PLAYING; in start()
90 mState = PLAYING; in start()
101 switch (mState) { in pause()
106 mState = PAUSED; in pause()
122 switch (mState) { in selectTrack()
149 switch (mState) { in unselectTrack()
[all …]
/frameworks/wilhelm/src/itf/
DIBufferQueue.c31 state = ((CAudioPlayer *) thiz->mThis)->mPlay.mState; in getAssociatedState()
34 state = ((CAudioRecorder *) thiz->mThis)->mRecord.mState; in getAssociatedState()
68 ++thiz->mState.count; in IBufferQueue_Enqueue()
73 (1 == thiz->mState.count) && (SL_PLAYSTATE_PLAYING == getAssociatedState(thiz))) ? in IBufferQueue_Enqueue()
96 thiz->mState.count = 0; in IBufferQueue_Clear()
97 thiz->mState.playIndex = 0; in IBufferQueue_Clear()
132 state.count = thiz->mState.count; in IBufferQueue_GetState()
133 state.playIndex = thiz->mState.playIndex; in IBufferQueue_GetState()
135 state = thiz->mState; in IBufferQueue_GetState()
178 thiz->mState.count = 0; in IBufferQueue_init()
[all …]
/frameworks/av/media/libmedia/
DAudioTrackShared.cpp507 memset(&mState, 0, sizeof(mState)); in StaticAudioTrackClientProxy()
523 mState.mLoopStart = (uint32_t) loopStart; in setLoop()
524 mState.mLoopEnd = (uint32_t) loopEnd; in setLoop()
525 mState.mLoopCount = loopCount; in setLoop()
526 mState.mLoopSequence = incrementSequence(mState.mLoopSequence, mState.mPositionSequence); in setLoop()
532 if (mState.mLoopCount != 0 && mPosLoop.mBufferPosition >= mState.mLoopEnd) { in setLoop()
533 mPosLoop.mBufferPosition = mState.mLoopStart; in setLoop()
535 mPosLoop.mLoopCount = mState.mLoopCount; in setLoop()
536 (void) mMutator.push(mState); in setLoop()
546 mState.mPosition = (uint32_t) position; in setBufferPosition()
[all …]

12345678910>>...12