Home
last modified time | relevance | path

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

12345678910>>...18

/frameworks/base/core/tests/coretests/src/android/view/
DInsetsStateTest.java79 private InsetsState mState = new InsetsState(); field in InsetsStateTest
84 mState.getSource(ITYPE_STATUS_BAR).setFrame(new Rect(0, 0, 100, 100)); in testCalculateInsets()
85 mState.getSource(ITYPE_STATUS_BAR).setVisible(true); in testCalculateInsets()
86 mState.getSource(ITYPE_IME).setFrame(new Rect(0, 200, 100, 300)); in testCalculateInsets()
87 mState.getSource(ITYPE_IME).setVisible(true); in testCalculateInsets()
89 WindowInsets insets = mState.calculateInsets(new Rect(0, 0, 100, 300), null, false, in testCalculateInsets()
102 mState.getSource(ITYPE_NAVIGATION_BAR).setFrame(new Rect(0, 200, 100, 300)); in testCalculateInsets_imeAndNav()
103 mState.getSource(ITYPE_NAVIGATION_BAR).setVisible(true); in testCalculateInsets_imeAndNav()
104 mState.getSource(ITYPE_IME).setFrame(new Rect(0, 100, 100, 300)); in testCalculateInsets_imeAndNav()
105 mState.getSource(ITYPE_IME).setVisible(true); in testCalculateInsets_imeAndNav()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/buttons/
DKeyButtonDrawable.java80 private final ShadowDrawableState mState; field in KeyButtonDrawable
106 mState = state; in KeyButtonDrawable()
108 mState.mBaseHeight = d.getIntrinsicHeight(); in KeyButtonDrawable()
109 mState.mBaseWidth = d.getIntrinsicWidth(); in KeyButtonDrawable()
110 mState.mChangingConfigurations = d.getChangingConfigurations(); in KeyButtonDrawable()
111 mState.mChildState = d.getConstantState(); in KeyButtonDrawable()
114 mAnimatedDrawable = (AnimatedVectorDrawable) mState.mChildState.newDrawable().mutate(); in KeyButtonDrawable()
121 mState.mDarkIntensity = intensity; in setDarkIntensity()
123 .evaluate(intensity, mState.mLightColor, mState.mDarkColor); in setDarkIntensity()
133 if (mState.mRotateDegrees != degrees) { in setRotation()
[all …]
/frameworks/base/core/java/android/inputmethodservice/navigationbar/
DKeyButtonDrawable.java84 private final ShadowDrawableState mState; field in KeyButtonDrawable
110 mState = state; in KeyButtonDrawable()
112 mState.mBaseHeight = d.getIntrinsicHeight(); in KeyButtonDrawable()
113 mState.mBaseWidth = d.getIntrinsicWidth(); in KeyButtonDrawable()
114 mState.mChangingConfigurations = d.getChangingConfigurations(); in KeyButtonDrawable()
115 mState.mChildState = d.getConstantState(); in KeyButtonDrawable()
118 mAnimatedDrawable = (AnimatedVectorDrawable) mState.mChildState.newDrawable().mutate(); in KeyButtonDrawable()
125 mState.mDarkIntensity = intensity; in setDarkIntensity()
127 .evaluate(intensity, mState.mLightColor, mState.mDarkColor); in setDarkIntensity()
137 if (mState.mRotateDegrees != degrees) { in setRotation()
[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()
52 mState = state; in ColorStateListDrawable()
70 return mState.isStateful(); in isStateful()
75 return mState.hasFocusStateSpecified(); in hasFocusStateSpecified()
87 if (mState.mColor != null) { in applyTheme()
88 setColorStateList(mState.mColor.obtainForTheme(t)); in applyTheme()
91 if (mState.mTint != null) { in applyTheme()
92 setTintList(mState.mTint.obtainForTheme(t)); in applyTheme()
[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.java63 private InsetState mState; field in InsetDrawable
105 mState.mInsetLeft = new InsetValue(0f, insetLeft); in InsetDrawable()
106 mState.mInsetTop = new InsetValue(0f, insetTop); in InsetDrawable()
107 mState.mInsetRight = new InsetValue(0f, insetRight); in InsetDrawable()
108 mState.mInsetBottom = new InsetValue(0f, insetBottom); in InsetDrawable()
126 mState.mInsetLeft = new InsetValue(insetLeftFraction, 0); in InsetDrawable()
127 mState.mInsetTop = new InsetValue(insetTopFraction, 0); in InsetDrawable()
128 mState.mInsetRight = new InsetValue(insetRightFraction, 0); in InsetDrawable()
129 mState.mInsetBottom = new InsetValue(insetBottomFraction, 0); in InsetDrawable()
152 final InsetState state = mState; in applyTheme()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/gnss/hal/
DFakeGnssHal.java256 private HalState mState = new HalState(); field in FakeGnssHal
269 mState = new HalState(); in restartHal()
298 mState.mPowerStats = powerStats; in setPowerStats()
306 return mState.mPositionMode; in getPositionMode()
310 if (mState.mStarted) { in reportLocation()
313 if (mState.mBatchingStarted) { in reportLocation()
314 mState.mBatchedLocations.add(location); in reportLocation()
315 if (mState.mBatchedLocations.size() >= mBatchSize) { in reportLocation()
316 if (mState.mBatchingMode.WakeOnFifoFull) { in reportLocation()
319 mState.mBatchedLocations.remove(0); in reportLocation()
[all …]
/frameworks/base/media/java/android/media/audiofx/
DVisualizer.java166 private int mState = STATE_UNINITIALIZED; field in Visualizer
222 mState = STATE_UNINITIALIZED; in Visualizer()
244 mState = STATE_ENABLED; in Visualizer()
246 mState = STATE_INITIALIZED; in Visualizer()
258 mState = STATE_UNINITIALIZED; in release()
279 if (mState == STATE_UNINITIALIZED) { in setEnabled()
280 throw(new IllegalStateException("setEnabled() called in wrong state: "+mState)); in setEnabled()
283 if ((enabled && (mState == STATE_INITIALIZED)) || in setEnabled()
284 (!enabled && (mState == STATE_ENABLED))) { in setEnabled()
287 mState = enabled ? STATE_ENABLED : STATE_INITIALIZED; in setEnabled()
[all …]
/frameworks/base/services/core/java/com/android/server/hdmi/
DDeviceSelectActionFromPlayback.java130 mState = STATE_WAIT_FOR_ACTIVE_SOURCE_MESSAGE_AFTER_ROUTING_CHANGE; in start()
131 addTimer(mState, HdmiConfig.TIMEOUT_MS); in start()
136 mState = STATE_WAIT_FOR_REPORT_POWER_STATUS; in start()
137 addTimer(mState, HdmiConfig.TIMEOUT_MS); in start()
167 if (mState == STATE_WAIT_FOR_REPORT_POWER_STATUS in processCommand()
181 mState = STATE_WAIT_FOR_DEVICE_TO_TRANSIT_TO_STANDBY; in handleReportPowerStatus()
182 addTimer(mState, TIMEOUT_TRANSIT_TO_STANDBY_MS); in handleReportPowerStatus()
190 mState = STATE_WAIT_FOR_DEVICE_POWER_ON; in handleReportPowerStatus()
191 addTimer(mState, TIMEOUT_POWER_ON_MS); in handleReportPowerStatus()
198 mState = STATE_WAIT_FOR_DEVICE_POWER_ON; in handleReportPowerStatus()
[all …]
DDetectTvSystemAudioModeSupportAction.java43 mState = STATE_WAITING_FOR_FEATURE_ABORT; in start()
44 addTimer(mState, HdmiConfig.TIMEOUT_MS); in start()
52 if (mState != STATE_WAITING_FOR_FEATURE_ABORT) { in processCommand()
58 mState = STATE_WAITING_FOR_SET_SAM; in processCommand()
63 addTimer(mState, HdmiConfig.IRT_MS); in processCommand()
75 if (mState != state) { in handleTimerEvent()
79 switch (mState) { in handleTimerEvent()
86 mState = STATE_WAITING_FOR_FEATURE_ABORT; in handleTimerEvent()
87 addTimer(mState, HdmiConfig.TIMEOUT_MS); in handleTimerEvent()
/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.cpp73 : mState(STATE_IDLE), in NuPlayerDriver()
149 if (mState != STATE_IDLE) { in setDataSource()
153 mState = STATE_SET_DATASOURCE_PENDING; in setDataSource()
157 while (mState == STATE_SET_DATASOURCE_PENDING) { in setDataSource()
168 if (mState != STATE_IDLE) { in setDataSource()
172 mState = STATE_SET_DATASOURCE_PENDING; in setDataSource()
176 while (mState == STATE_SET_DATASOURCE_PENDING) { in setDataSource()
187 if (mState != STATE_IDLE) { in setDataSource()
191 mState = STATE_SET_DATASOURCE_PENDING; in setDataSource()
195 while (mState == STATE_SET_DATASOURCE_PENDING) { in setDataSource()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/listbuilder/
DPipelineState.java33 private @StateName int mState = STATE_IDLE; field in PipelineState
37 return state == mState; in is()
42 return mState; in getState()
46 mState = state; in setState()
54 if (mState != to - 1) { in incrementTo()
56 "Cannot increment from state " + mState + " to state " + to); in incrementTo()
58 mState = to; in incrementTo()
65 if (state != mState) { in requireState()
67 "Required state is <" + state + " but actual state is " + mState); in requireState()
75 if (mState >= state) { in requireIsBefore()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DOomAdjusterTests.java146 mProcessRecord.mState.setCurProcState(ActivityManager.PROCESS_STATE_PERSISTENT_UI); in testMaybeUpdateUsageStats_ProcStatePersistentUI()
155 mProcessRecord.mState.setCurProcState(ActivityManager.PROCESS_STATE_TOP); in testMaybeUpdateUsageStats_ProcStateTop()
164 mProcessRecord.mState.setCurProcState(ActivityManager.PROCESS_STATE_TOP); in testMaybeUpdateUsageStats_ProcStateTop_PreviousInteraction()
165 mProcessRecord.mState.setReportedInteraction(true); in testMaybeUpdateUsageStats_ProcStateTop_PreviousInteraction()
174 mProcessRecord.mState.setCurProcState(ActivityManager.PROCESS_STATE_TOP); in testMaybeUpdateUsageStats_ProcStateTop_PastUsageInterval()
175 mProcessRecord.mState.setReportedInteraction(true); in testMaybeUpdateUsageStats_ProcStateTop_PastUsageInterval()
184 mProcessRecord.mState.setCurProcState(ActivityManager.PROCESS_STATE_BOUND_TOP); in testMaybeUpdateUsageStats_ProcStateBoundTop()
193 mProcessRecord.mState.setCurProcState(ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE); in testMaybeUpdateUsageStats_ProcStateFGS()
203 mProcessRecord.mState.setFgInteractionTime(fgInteractionTime); in testMaybeUpdateUsageStats_ProcStateFGS_ShortInteraction()
204 mProcessRecord.mState.setCurProcState(ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE); in testMaybeUpdateUsageStats_ProcStateFGS_ShortInteraction()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/pkg/mutate/
DPackageStateMutator.java166 private PackageSetting mState; field in PackageStateMutator.StateWriteWrapper
169 this.mState = state; in setState()
177 mState == null ? null : mState.getOrCreateUserState(userId)); in userState()
182 if (mState != null) { in onChanged()
183 mState.onChanged(); in onChanged()
189 if (mState != null) { in setLastPackageUsageTime()
190 mState.getTransientState().setLastPackageUsageTimeInMills(reason, timeInMillis); in setLastPackageUsageTime()
197 if (mState != null) { in setHiddenUntilInstalled()
198 mState.getTransientState().setHiddenUntilInstalled(value); in setHiddenUntilInstalled()
206 if (mState != null) { in setRequiredForSystemUser()
[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/SystemUI/src/com/android/systemui/doze/
DDozeMachine.java155 private State mState = State.UNINITIALIZED; field in DozeMachine
231 return mState == State.UNINITIALIZED || mState == State.FINISH; in isUninitializedOrFinished()
244 Log.i(TAG, "request: current=" + mState + " req=" + requestedState, in requestState()
274 return mState; in getState()
285 Preconditions.checkState(mState == State.DOZE_REQUEST_PULSE in getPulseReason()
286 || mState == State.DOZE_PULSING in getPulseReason()
287 || mState == State.DOZE_PULSING_BRIGHT in getPulseReason()
288 || mState == State.DOZE_PULSE_DONE, "must be in pulsing state, but is " + mState); in getPulseReason()
306 Log.i(TAG, "transition: old=" + mState + " req=" + requestedState + " new=" + newState); in transitionTo()
309 if (newState == mState) { in transitionTo()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/
DPipTransitionState.java67 private @TransitionState int mState; field in PipTransitionState
70 mState = UNDEFINED; in PipTransitionState()
74 if (mState != state) { in setTransitionState()
77 mState, state); in setTransitionState()
79 mState = state; in setTransitionState()
84 return mState; in getTransitionState()
88 return isInPip(mState); in isInPip()
93 return hasEnteredPip(mState); in hasEnteredPip()
98 return isEnteringPip(mState); in isEnteringPip()
115 return mState < ENTERING_PIP in shouldBlockResizeRequest()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DStatusBarMobileView.java57 private MobileIconState mState; field in StatusBarMobileView
149 mState = null; in applyMobileState()
150 } else if (mState == null) { in applyMobileState()
152 mState = state.copy(); in applyMobileState()
154 } else if (!mState.equals(state)) { in applyMobileState()
164 setContentDescription(mState.contentDescription); in initViewState()
165 if (!mState.visible || mForceHidden) { in initViewState()
170 mMobileDrawable.setLevel(mState.strengthId); in initViewState()
171 if (mState.typeId > 0) { in initViewState()
172 mMobileType.setContentDescription(mState.typeContentDescription); in initViewState()
[all …]
DStatusBarWifiView.java56 private WifiIconState mState; field in StatusBarWifiView
107 return mState != null && mState.visible; in isIconVisible()
179 mState = null; in applyWifiState()
180 } else if (mState == null) { in applyWifiState()
182 mState = state.copy(); in applyWifiState()
184 } else if (!mState.equals(state)) { in applyWifiState()
195 if (mState.resId != state.resId && state.resId >= 0) { in updateState()
206 boolean needsLayout = state.activityIn != mState.activityIn in updateState()
207 ||state.activityOut != mState.activityOut; in updateState()
209 if (mState.visible != state.visible) { in updateState()
[all …]
/frameworks/base/services/accessibility/java/com/android/server/accessibility/gestures/
DTouchExplorer.java116 private TouchState mState; field in TouchExplorer
189 mState = new TouchState(mDisplayId, mAms); in TouchExplorer()
190 mReceivedPointerTracker = mState.getReceivedPointerTracker(); in TouchExplorer()
191 mDispatcher = new EventDispatcher(context, mAms, super.getNext(), mState); in TouchExplorer()
208 mGestureDetector = new GestureManifold(context, this, mState, mHandler); in TouchExplorer()
232 MotionEvent event = mState.getLastReceivedEvent(); in clear()
239 if (mState.isTouchExploring()) { in clear()
257 mState.clear(); in clear()
281 Slog.d(LOG_TAG, mState.toString()); in onMotionEvent()
284 mState.onReceivedMotionEvent(event, rawEvent, policyFlags); in onMotionEvent()
[all …]
/frameworks/av/services/camera/libcameraservice/device3/
DCamera3IOStreamBase.cpp57 mState = STATE_ERROR; in Camera3IOStreamBase()
84 lines.appendFormat(" State: %d\n", mState); in dump()
110 switch (mState) { in configureQueueLocked()
121 ALOGE("%s: Bad state: %d", __FUNCTION__, mState); in configureQueueLocked()
149 switch (mState) { in disconnectLocked()
190 if (mHandoutTotalBufferCount == 0 && mState != STATE_IN_CONFIG && in handoutBufferLocked()
191 mState != STATE_IN_RECONFIG && mState != STATE_PREPARING) { in handoutBufferLocked()
212 if (mState != STATE_CONFIGURED && in getBufferPreconditionCheckLocked()
213 mState != STATE_IN_CONFIG && mState != STATE_IN_RECONFIG && in getBufferPreconditionCheckLocked()
214 mState != STATE_PREPARING) { in getBufferPreconditionCheckLocked()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DGsmCdmaCall.java71 return mState.toString(); in toString()
79 mState = stateFromDCState (dc.state); in attach()
86 mState = state; in attachFake()
93 if (mState != State.DISCONNECTED) { in connectionDisconnected()
106 mState = State.DISCONNECTED; in connectionDisconnected()
118 mState = State.IDLE; in detach()
128 if (newState != mState) { in update()
129 mState = newState; in update()
154 if (!mState.isAlive()) { in onHangupLocal()
160 mState = State.DISCONNECTING; in onHangupLocal()
/frameworks/base/core/java/android/view/
DHandwritingInitiator.java63 private State mState = new State(); field in HandwritingInitiator
73 mState = new State(); in reset()
119 mState.mStylusPointerId = motionEvent.getPointerId(actionIndex); in onTouchEvent()
120 mState.mStylusDownTimeInMillis = motionEvent.getEventTime(); in onTouchEvent()
121 mState.mStylusDownX = motionEvent.getX(actionIndex); in onTouchEvent()
122 mState.mStylusDownY = motionEvent.getY(actionIndex); in onTouchEvent()
123 mState.mShouldInitHandwriting = true; in onTouchEvent()
124 mState.mExceedTouchSlop = false; in onTouchEvent()
128 if (pointerId != mState.mStylusPointerId) { in onTouchEvent()
142 if (!mState.mShouldInitHandwriting || mState.mExceedTouchSlop) { in onTouchEvent()
[all …]

12345678910>>...18