Home
last modified time | relevance | path

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

12345678910>>...13

/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/
DRootsCacheTest.java47 private State mState; field in RootsCacheTest
56 mState = new State(); in setUp()
57 mState.action = State.ACTION_OPEN; in setUp()
58 mState.showAdvanced = true; in setUp()
59 mState.localOnly = false; in setUp()
63 mState.acceptMimes = new String[] { "*/*" }; in testMatchingRoots_Everything()
66 getMatchingRoots(mRoots, mState)); in testMatchingRoots_Everything()
74 mState.acceptMimes = new String[] { "*/*" }; in testMatchingRoots_DirectoryCopy()
75 mState.directoryCopy = true; in testMatchingRoots_DirectoryCopy()
80 getMatchingRoots(mRoots, mState)); in testMatchingRoots_DirectoryCopy()
[all …]
DStateTest.java30 private State mState; field in StateTest
41 mState = new State(); in setUp()
45 assertFalse(mState.hasLocationChanged()); in testInitialStateEmpty()
49 mState.pushDocument(DIR_1); in testPushDocument_ChangesLocation()
50 mState.pushDocument(DIR_2); in testPushDocument_ChangesLocation()
51 assertTrue(mState.hasLocationChanged()); in testPushDocument_ChangesLocation()
55 mState.pushDocument(DIR_1); in testPushDocument_ModifiesStack()
56 mState.pushDocument(DIR_2); in testPushDocument_ModifiesStack()
57 assertEquals(DIR_2, mState.stack.getFirst()); in testPushDocument_ModifiesStack()
61 mState.pushDocument(DIR_1); in testPopDocument_ModifiesStack()
[all …]
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayerDriver.cpp37 : mState(STATE_IDLE), in NuPlayerDriver()
85 if (mState != STATE_IDLE) { in setDataSource()
89 mState = STATE_SET_DATASOURCE_PENDING; in setDataSource()
93 while (mState == STATE_SET_DATASOURCE_PENDING) { in setDataSource()
104 if (mState != STATE_IDLE) { in setDataSource()
108 mState = STATE_SET_DATASOURCE_PENDING; in setDataSource()
112 while (mState == STATE_SET_DATASOURCE_PENDING) { in setDataSource()
123 if (mState != STATE_IDLE) { in setDataSource()
127 mState = STATE_SET_DATASOURCE_PENDING; in setDataSource()
131 while (mState == STATE_SET_DATASOURCE_PENDING) { in setDataSource()
[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/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.java58 private InsetState mState; field in InsetDrawable
90 mState.mInsetLeft = insetLeft; in InsetDrawable()
91 mState.mInsetTop = insetTop; in InsetDrawable()
92 mState.mInsetRight = insetRight; in InsetDrawable()
93 mState.mInsetBottom = insetBottom; in InsetDrawable()
116 final InsetState state = mState; in applyTheme()
136 if (getDrawable() == null && (mState.mThemeAttrs == null in verifyRequiredAttributes()
137 || mState.mThemeAttrs[R.styleable.InsetDrawable_drawable] == 0)) { in verifyRequiredAttributes()
145 final InsetState state = mState; in updateStateFromTypedArray()
179 padding.left += mState.mInsetLeft; in getPadding()
[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/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.java76 if (mState.action == ACTION_CREATE) { in onCreate()
80 } else if (mState.action == ACTION_OPEN_TREE || in onCreate()
81 mState.action == ACTION_PICK_COPY_DESTINATION) { in onCreate()
85 if (mState.action == ACTION_GET_CONTENT) { in onCreate()
90 } else if (mState.action == ACTION_OPEN || in onCreate()
91 mState.action == ACTION_CREATE || in onCreate()
92 mState.action == ACTION_OPEN_TREE || in onCreate()
93 mState.action == ACTION_PICK_COPY_DESTINATION) { in onCreate()
97 if (mState.restored) { in onCreate()
109 if (mState.action == ACTION_PICK_COPY_DESTINATION) { in onCreate()
[all …]
/frameworks/native/services/surfaceflinger/RenderEngine/
DGLES20RenderEngine.cpp115 mState.setProjectionMatrix(m); in setViewportAndProjection()
128 mState.setPremultipliedAlpha(premultipliedAlpha);
129 mState.setOpaque(opaque);
131 mState.setPlaneAlpha(alpha);
135 mState.setPlaneAlpha(alpha / 255.0f);
151 mState.setPlaneAlpha(1.0f);
152 mState.setPremultipliedAlpha(true);
153 mState.setOpaque(false);
155 mState.setColor(0, 0, 0, alpha);
157 mState.setColor(0, 0, 0, alpha/255.0f);
[all …]
/frameworks/support/compat/gingerbread/android/support/v4/graphics/drawable/
DDrawableWrapperGingerbread.java45 DrawableWrapperState mState; field in DrawableWrapperGingerbread
51 mState = state; in DrawableWrapperGingerbread()
61 mState = mutateConstantState(); in DrawableWrapperGingerbread()
72 if (mState != null && mState.mDrawableState != null) { in updateLocalState()
73 final Drawable dr = newDrawableFromState(mState.mDrawableState, res); in updateLocalState()
106 | (mState != null ? mState.getChangingConfigurations() : 0) in getChangingConfigurations()
132 final ColorStateList tintList = (isCompatTintEnabled() && mState != null) in isStateful()
133 ? mState.mTint in isStateful()
198 if (mState != null && mState.canConstantState()) { in getConstantState()
199 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()
93 switch (mState) { in configureQueueLocked()
104 ALOGE("%s: Bad state: %d", __FUNCTION__, mState); in configureQueueLocked()
124 switch (mState) { in disconnectLocked()
165 if (mHandoutTotalBufferCount == 0 && mState != STATE_IN_CONFIG && in handoutBufferLocked()
166 mState != STATE_IN_RECONFIG && mState != STATE_PREPARING) { in handoutBufferLocked()
187 if (mState != STATE_CONFIGURED && in getBufferPreconditionCheckLocked()
188 mState != STATE_IN_CONFIG && mState != STATE_IN_RECONFIG && in getBufferPreconditionCheckLocked()
189 mState != STATE_PREPARING) { in getBufferPreconditionCheckLocked()
[all …]
DCamera3Stream.cpp56 mState(STATE_CONSTRUCTED), in Camera3Stream()
78 mState = STATE_ERROR; in Camera3Stream()
111 switch (mState) { in startConfiguration()
131 ALOGE("%s: Unknown state %d", __FUNCTION__, mState); in startConfiguration()
154 if (mState == STATE_CONSTRUCTED) { in startConfiguration()
155 mState = STATE_IN_CONFIG; in startConfiguration()
157 LOG_ALWAYS_FATAL_IF(mState != STATE_CONFIGURED, "Invalid state: 0x%x", mState); in startConfiguration()
158 mState = STATE_IN_RECONFIG; in startConfiguration()
166 return (mState == STATE_IN_CONFIG) || (mState == STATE_IN_RECONFIG); in isConfiguring()
172 switch (mState) { in finishConfiguration()
[all …]
/frameworks/support/fragment/tests/java/android/support/v4/app/
DStrictFragment.java35 int mState; field in StrictFragment
65 if (mState == expect) { in checkState()
74 + stateToString(mState) + "; expected " + expectString.toString()); in checkState()
78 if (mState < minState) { in checkStateAtLeast()
80 + stateToString(mState) + "; expected at least " + stateToString(minState)); in checkStateAtLeast()
94 mState = ATTACHED; in onAttach()
106 mState = CREATED; in onCreate()
115 mState = ACTIVITY_CREATED; in onActivityCreated()
124 mState = STARTED; in onStart()
133 mState = RESUMED; in onResume()
[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.java114 mState = STATE_UPDATED;
120 mState = STATE_UPDATED;
125 mState = STATE_FAILED;
132 if (mState == STATE_CANCELING) {
133 mState = STATE_CANCELED;
148 private int mState = STATE_INITIAL; field in RemotePrintDocument
180 if (mState == STATE_FAILED) { in start()
182 } else if (mState == STATE_DESTROYED) { in start()
185 if (mState != STATE_INITIAL) { in start()
186 throw new IllegalStateException("Cannot start in state:" + stateToString(mState)); in start()
[all …]
/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.java40 private ArrayMap<DimLayer.DimLayerUser, DimLayerState> mState = new ArrayMap<>(); field in DimLayerController
98 DimLayerState state = mState.get(dimLayerUser); in getOrCreateDimLayerState()
101 mState.put(dimLayerUser, state); in getOrCreateDimLayerState()
107 DimLayerState state = mState.get(dimLayerUser); in setContinueDimming()
117 for (int i = mState.size() - 1; i >= 0; i--) { in isDimming()
118 DimLayerState state = mState.valueAt(i); in isDimming()
127 for (int i = mState.size() - 1; i >= 0; i--) { in resetDimming()
128 mState.valueAt(i).continueDimming = false; in resetDimming()
133 DimLayerState state = mState.get(dimLayerUser); in getContinueDimming()
162 if (DEBUG_DIM_LAYER) Slog.v(TAG, "stopDimmingIfNeeded, mState.size()=" + mState.size()); in stopDimmingIfNeeded()
[all …]
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/dirlist/
DFragmentTuner.java45 final State mState; field in FragmentTuner
49 mState = state; in FragmentTuner()
114 if (mState.action == ACTION_OPEN_TREE in canSelectType()
115 || mState.action == ACTION_PICK_COPY_DESTINATION) { in canSelectType()
132 switch (mState.action) { in isDocumentEnabled()
141 if (isVirtual && mState.openableOnly) { in isDocumentEnabled()
146 return MimePredicate.mimeMatches(mState.acceptMimes, mimeType); in isDocumentEnabled()
158 open.setVisible(mState.action == ACTION_GET_CONTENT in updateActionMenu()
159 || mState.action == ACTION_OPEN); in updateActionMenu()
163 selectAll.setVisible(mState.allowMultiple); in updateActionMenu()
[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/support/samples/Support7Demos/src/com/example/android/supportv7/media/
DLocalPlayer.java61 private int mState = STATE_IDLE; field in LocalPlayer
138 if (mState == STATE_PLAYING || mState == STATE_PAUSED) { in seek()
141 } else if (mState == STATE_IDLE || mState == STATE_PREPARING_FOR_PLAY in seek()
142 || mState == STATE_PREPARING_FOR_PAUSE) { in seek()
151 if (mState == STATE_PLAYING || mState == STATE_PAUSED) { in getStatus()
169 if (mState == STATE_PLAYING) { in pause()
171 mState = STATE_PAUSED; in pause()
172 } else if (mState == STATE_PREPARING_FOR_PLAY) { in pause()
173 mState = STATE_PREPARING_FOR_PAUSE; in pause()
182 if (mState == STATE_READY || mState == STATE_PAUSED) { in resume()
[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 …]
DSimpleDecodingSource.cpp110 if (me->mState != INIT) { in start()
119 me->mState = STARTED; in start()
123 me->mState = ERROR; in start()
131 if (me->mState != STARTED) { in stop()
136 me->mState = STOPPING; in stop()
147 me->mState = STOPPED; in stop()
149 me->mState = ERROR; in stop()
156 if (me->mState == STARTED || me->mState == INIT) { in getFormat()
167 mState(INIT), in ProtectedState()
177 if (me->mState != STARTED) { in read()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
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/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()

12345678910>>...13