Home
last modified time | relevance | path

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

12345678910>>...15

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DKeyButtonDrawable.java81 private final ShadowDrawableState mState; field in KeyButtonDrawable
91 mState = state; in KeyButtonDrawable()
93 mState.mBaseHeight = d.getIntrinsicHeight(); in KeyButtonDrawable()
94 mState.mBaseWidth = d.getIntrinsicWidth(); in KeyButtonDrawable()
95 mState.mChangingConfigurations = d.getChangingConfigurations(); in KeyButtonDrawable()
96 mState.mChildState = d.getConstantState(); in KeyButtonDrawable()
99 mAnimatedDrawable = (AnimatedVectorDrawable) mState.mChildState.newDrawable().mutate(); in KeyButtonDrawable()
105 mState.mDarkIntensity = intensity; in setDarkIntensity()
107 .evaluate(intensity, mState.mLightColor, mState.mDarkColor); in setDarkIntensity()
117 if (mState.mRotateDegrees != degrees) { in setRotation()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/
DInsetsStateTest.java61 private InsetsState mState = new InsetsState(); field in InsetsStateTest
68 mState.getSource(TYPE_TOP_BAR).setFrame(new Rect(0, 0, 100, 100)); in testCalculateInsets()
69 mState.getSource(TYPE_TOP_BAR).setVisible(true); in testCalculateInsets()
70 mState.getSource(TYPE_IME).setFrame(new Rect(0, 200, 100, 300)); in testCalculateInsets()
71 mState.getSource(TYPE_IME).setVisible(true); in testCalculateInsets()
73 WindowInsets insets = mState.calculateInsets(new Rect(0, 0, 100, 300), false, false, in testCalculateInsets()
88 mState.getSource(TYPE_NAVIGATION_BAR).setFrame(new Rect(0, 200, 100, 300)); in testCalculateInsets_imeAndNav()
89 mState.getSource(TYPE_NAVIGATION_BAR).setVisible(true); in testCalculateInsets_imeAndNav()
90 mState.getSource(TYPE_IME).setFrame(new Rect(0, 100, 100, 300)); in testCalculateInsets_imeAndNav()
91 mState.getSource(TYPE_IME).setVisible(true); in testCalculateInsets_imeAndNav()
[all …]
/frameworks/base/graphics/java/android/graphics/drawable/
DColorStateListDrawable.java37 private ColorStateListDrawableState mState; field in ColorStateListDrawable
41 mState = new ColorStateListDrawableState(); in ColorStateListDrawable()
46 mState = new ColorStateListDrawableState(); in ColorStateListDrawable()
64 return mState.isStateful(); in isStateful()
69 return mState.hasFocusStateSpecified(); in hasFocusStateSpecified()
81 if (mState.mColor != null) { in applyTheme()
82 setColorStateList(mState.mColor.obtainForTheme(t)); in applyTheme()
85 if (mState.mTint != null) { in applyTheme()
86 setTintList(mState.mTint.obtainForTheme(t)); in applyTheme()
92 return super.canApplyTheme() || mState.canApplyTheme(); in canApplyTheme()
[all …]
DAnimatedImageDrawable.java98 private State mState; field in AnimatedImageDrawable
143 if (mState.mRepeatCount != repeatCount) { in setRepeatCount()
144 mState.mRepeatCount = repeatCount; in setRepeatCount()
145 if (mState.mNativePtr != 0) { in setRepeatCount()
146 nSetRepeatCount(mState.mNativePtr, repeatCount); in setRepeatCount()
170 if (mState.mNativePtr == 0) { in getRepeatCount()
173 if (mState.mRepeatCount == REPEAT_UNDEFINED) { in getRepeatCount()
174 mState.mRepeatCount = nGetRepeatCount(mState.mNativePtr); in getRepeatCount()
177 return mState.mRepeatCount; in getRepeatCount()
192 mState = new State(0, null, null); in AnimatedImageDrawable()
[all …]
DRotateDrawable.java59 private RotateState mState; field in RotateDrawable
86 final RotateState state = mState; in applyTheme()
106 if (getDrawable() == null && (mState.mThemeAttrs == null in verifyRequiredAttributes()
107 || mState.mThemeAttrs[R.styleable.RotateDrawable_drawable] == 0)) { in verifyRequiredAttributes()
115 final RotateState state = mState; in updateStateFromTypedArray()
151 final RotateState st = mState; in draw()
169 if (mState.mFromDegrees != fromDegrees) { in setFromDegrees()
170 mState.mFromDegrees = fromDegrees; in setFromDegrees()
181 return mState.mFromDegrees; in getFromDegrees()
192 if (mState.mToDegrees != toDegrees) { in setToDegrees()
[all …]
DInsetDrawable.java62 private InsetState mState; field in InsetDrawable
104 mState.mInsetLeft = new InsetValue(0f, insetLeft); in InsetDrawable()
105 mState.mInsetTop = new InsetValue(0f, insetTop); in InsetDrawable()
106 mState.mInsetRight = new InsetValue(0f, insetRight); in InsetDrawable()
107 mState.mInsetBottom = new InsetValue(0f, insetBottom); in InsetDrawable()
125 mState.mInsetLeft = new InsetValue(insetLeftFraction, 0); in InsetDrawable()
126 mState.mInsetTop = new InsetValue(insetTopFraction, 0); in InsetDrawable()
127 mState.mInsetRight = new InsetValue(insetRightFraction, 0); in InsetDrawable()
128 mState.mInsetBottom = new InsetValue(insetBottomFraction, 0); in InsetDrawable()
151 final InsetState state = mState; in applyTheme()
[all …]
DScaleDrawable.java71 private ScaleState mState; field in ScaleDrawable
92 mState.mGravity = gravity; in ScaleDrawable()
93 mState.mScaleWidth = scaleWidth; in ScaleDrawable()
94 mState.mScaleHeight = scaleHeight; in ScaleDrawable()
119 final ScaleState state = mState; in applyTheme()
141 if (getDrawable() == null && (mState.mThemeAttrs == null in verifyRequiredAttributes()
142 || mState.mThemeAttrs[R.styleable.ScaleDrawable_drawable] == 0)) { in verifyRequiredAttributes()
150 final ScaleState state = mState; in updateStateFromTypedArray()
226 final boolean min = mState.mUseIntrinsicSizeAsMin; in onBoundsChange()
230 if (mState.mScaleWidth > 0) { in onBoundsChange()
[all …]
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DOutput.cpp55 if (mState.isEnabled == enabled) { in setCompositionEnabled()
59 mState.isEnabled = enabled; in setCompositionEnabled()
65 mState.transform = transform; in setProjection()
66 mState.orientation = orientation; in setProjection()
67 mState.scissor = scissor; in setProjection()
68 mState.frame = frame; in setProjection()
69 mState.viewport = viewport; in setProjection()
70 mState.needsFiltering = needsFiltering; in setProjection()
79 mState.bounds = Rect(mRenderSurface->getSize()); in setBounds()
85 mState.layerStackId = layerStackId; in setLayerStackFilter()
[all …]
DOutputLayer.cpp69 mState.hwc.emplace(std::shared_ptr<HWC2::Layer>(hwc.createLayer(*displayId), in initialize()
88 return mState; in getState()
92 return mState; in editState()
294 mState.displayFrame = calculateOutputDisplayFrame(); in updateCompositionState()
295 mState.sourceCrop = calculateOutputSourceCrop(); in updateCompositionState()
296 mState.bufferTransform = in updateCompositionState()
300 (mState.bufferTransform & ui::Transform::ROT_INVALID)) { in updateCompositionState()
301 mState.forceClientComposition = true; in updateCompositionState()
308 if (!mState.hwc) { in writeStateToHWC()
312 auto& hwcLayer = (*mState.hwc).hwcLayer; in writeStateToHWC()
[all …]
/frameworks/base/media/java/android/media/audiofx/
DVisualizer.java163 private int mState = STATE_UNINITIALIZED; field in Visualizer
219 mState = STATE_UNINITIALIZED; in Visualizer()
235 mState = STATE_ENABLED; in Visualizer()
237 mState = STATE_INITIALIZED; in Visualizer()
249 mState = STATE_UNINITIALIZED; in release()
270 if (mState == STATE_UNINITIALIZED) { in setEnabled()
271 throw(new IllegalStateException("setEnabled() called in wrong state: "+mState)); in setEnabled()
274 if ((enabled && (mState == STATE_INITIALIZED)) || in setEnabled()
275 (!enabled && (mState == STATE_ENABLED))) { in setEnabled()
278 mState = enabled ? STATE_ENABLED : STATE_INITIALIZED; in setEnabled()
[all …]
/frameworks/ml/nn/runtime/
DModelArgumentInfo.h49 State state() const { return mState; } in state()
51 bool unspecified() const { return mState == UNSPECIFIED; } in unspecified()
54 CHECK_EQ(mState, POINTER); in buffer()
59 CHECK(mState == POINTER || mState == MEMORY); in dimensions()
63 CHECK(mState == POINTER || mState == MEMORY); in dimensions()
68 CHECK(mState == POINTER || mState == MEMORY); in isSufficient()
72 CHECK(mState == POINTER || mState == MEMORY); in isSufficient()
77 CHECK(mState == POINTER || mState == MEMORY); in length()
82 CHECK_EQ(mState, MEMORY); in locationAndLength()
86 CHECK_EQ(mState, MEMORY); in locationAndLength()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DSimulatedGsmCallState.java48 State mState; field in CallInfo
55 mState = state; in CallInfo()
81 + mState.value() + ",0," + (mIsMpty ? "1" : "0") in toCLCCLine()
95 ret.state = DriverCall.stateFromCLCC(mState.value()); in toDriverCall()
112 return mState == State.ACTIVE || mState == State.HOLDING; in isActiveOrHeld()
117 return mState == State.DIALING || mState == State.ALERTING; in isConnecting()
122 return mState == State.INCOMING || mState == State.WAITING; in isRinging()
192 && (call.mState == CallInfo.State.INCOMING in triggerRing()
193 || call.mState == CallInfo.State.WAITING) in triggerRing()
212 mCalls[empty].mState = CallInfo.State.WAITING; in triggerRing()
[all …]
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayerDriver.cpp75 : mState(STATE_IDLE), in NuPlayerDriver()
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()
186 if (mState != STATE_IDLE) { in setDataSource()
190 mState = STATE_SET_DATASOURCE_PENDING; in setDataSource()
194 while (mState == STATE_SET_DATASOURCE_PENDING) { in setDataSource()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeMachine.java129 private State mState = State.UNINITIALIZED; field in DozeMachine
177 Log.i(TAG, "request: current=" + mState + " req=" + requestedState, in requestState()
207 return mState; in getState()
218 Preconditions.checkState(mState == State.DOZE_REQUEST_PULSE in getPulseReason()
219 || mState == State.DOZE_PULSING in getPulseReason()
220 || mState == State.DOZE_PULSING_BRIGHT in getPulseReason()
221 || mState == State.DOZE_PULSE_DONE, "must be in pulsing state, but is " + mState); in getPulseReason()
238 Log.i(TAG, "transition: old=" + mState + " req=" + requestedState + " new=" + newState); in transitionTo()
241 if (newState == mState) { in transitionTo()
247 State oldState = mState; in transitionTo()
[all …]
/frameworks/native/services/surfaceflinger/Scheduler/
DIdleTimer.cpp36 mState = TimerState::RESET; in start()
44 mState = TimerState::STOPPED; in stop()
58 if (mState == TimerState::STOPPED) { in loop()
62 if (mState == TimerState::IDLE) { in loop()
67 if (mState == TimerState::RESET) { in loop()
77 if (mState == TimerState::STOPPED) { in loop()
82 mState = TimerState::WAITING; in loop()
83 while (mState == TimerState::WAITING) { in loop()
87 if (mState == TimerState::RESET) { in loop()
89 mState = TimerState::WAITING; in loop()
[all …]
/frameworks/av/services/camera/libcameraservice/device3/
DCamera3Stream.cpp57 mState(STATE_CONSTRUCTED), in Camera3Stream()
90 mState = STATE_ERROR; in Camera3Stream()
159 switch (mState) { in forceToIdle()
165 ALOGE("%s: Invalid state: %d", __FUNCTION__, mState); in forceToIdle()
176 mState = STATE_IN_IDLE; in forceToIdle()
181 ALOGE("%s: Unknown state %d", __FUNCTION__, mState); in forceToIdle()
193 switch (mState) { in restoreConfiguredState()
200 ALOGE("%s: Invalid state: %d", __FUNCTION__, mState); in restoreConfiguredState()
211 mState = STATE_CONFIGURED; in restoreConfiguredState()
216 ALOGE("%s: Unknown state %d", __FUNCTION__, mState); in restoreConfiguredState()
[all …]
DCamera3IOStreamBase.cpp51 mState = STATE_ERROR; in Camera3IOStreamBase()
78 lines.appendFormat(" State: %d\n", mState); in dump()
100 switch (mState) { in configureQueueLocked()
111 ALOGE("%s: Bad state: %d", __FUNCTION__, mState); in configureQueueLocked()
131 switch (mState) { in disconnectLocked()
172 if (mHandoutTotalBufferCount == 0 && mState != STATE_IN_CONFIG && in handoutBufferLocked()
173 mState != STATE_IN_RECONFIG && mState != STATE_PREPARING) { in handoutBufferLocked()
194 if (mState != STATE_CONFIGURED && in getBufferPreconditionCheckLocked()
195 mState != STATE_IN_CONFIG && mState != STATE_IN_RECONFIG && in getBufferPreconditionCheckLocked()
196 mState != STATE_PREPARING) { in getBufferPreconditionCheckLocked()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DStatusBarMobileView.java53 private MobileIconState mState; field in StatusBarMobileView
134 mState = null; in applyMobileState()
135 } else if (mState == null) { in applyMobileState()
137 mState = state.copy(); in applyMobileState()
139 } else if (!mState.equals(state)) { in applyMobileState()
149 setContentDescription(mState.contentDescription); in initViewState()
150 if (!mState.visible) { in initViewState()
155 mMobileDrawable.setLevel(mState.strengthId); in initViewState()
156 if (mState.typeId > 0) { in initViewState()
157 mMobileType.setContentDescription(mState.typeContentDescription); in initViewState()
[all …]
DStatusBarWifiView.java57 private WifiIconState mState; field in StatusBarWifiView
112 return mState != null && mState.visible; in isIconVisible()
183 mState = null; in applyWifiState()
184 } else if (mState == null) { in applyWifiState()
186 mState = state.copy(); in applyWifiState()
188 } else if (!mState.equals(state)) { in applyWifiState()
199 if (mState.resId != state.resId && state.resId >= 0) { in updateState()
210 boolean needsLayout = state.activityIn != mState.activityIn in updateState()
211 ||state.activityOut != mState.activityOut; in updateState()
213 if (mState.visible != state.visible) { in updateState()
[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.java115 mState = STATE_UPDATED;
122 mState = STATE_UPDATED;
128 mState = STATE_FAILED;
135 if (mState == STATE_CANCELING) {
136 mState = STATE_CANCELED;
156 private int mState = STATE_INITIAL; field in RemotePrintDocument
188 if (mState == STATE_FAILED) { in start()
190 } else if (mState == STATE_DESTROYED) { in start()
193 if (mState != STATE_INITIAL) { in start()
194 throw new IllegalStateException("Cannot start in state:" + stateToString(mState)); 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/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/opt/net/wifi/service/java/com/android/server/wifi/
DAvailableNetworkNotifier.java99 @State private int mState = STATE_NO_NOTIFICATION; field in AvailableNetworkNotifier
252 if (mState != STATE_NO_NOTIFICATION) { in clearPendingNotification()
257 + mState in clearPendingNotification()
261 mState = STATE_NO_NOTIFICATION; in clearPendingNotification()
281 if (availableNetworks.isEmpty() && mState == STATE_SHOWING_RECOMMENDATION_NOTIFICATION) { in handleScanResults()
287 if (mState == STATE_NO_NOTIFICATION in handleScanResults()
293 if (mState == STATE_NO_NOTIFICATION && !mScreenOn) { in handleScanResults()
298 if (mState == STATE_NO_NOTIFICATION in handleScanResults()
299 || mState == STATE_SHOWING_RECOMMENDATION_NOTIFICATION) { in handleScanResults()
349 if (mState != STATE_CONNECTING_IN_NOTIFICATION) { in handleWifiConnected()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DGsmCdmaCall.java68 return mState.toString(); in toString()
76 mState = stateFromDCState (dc.state); in attach()
83 mState = state; in attachFake()
90 if (mState != State.DISCONNECTED) { in connectionDisconnected()
103 mState = State.DISCONNECTED; in connectionDisconnected()
115 mState = State.IDLE; in detach()
125 if (newState != mState) { in update()
126 mState = newState; in update()
153 mState = State.DISCONNECTING; in onHangupLocal()

12345678910>>...15