Searched refs:getState (Results 26 - 50 of 319) sorted by relevance

1234567891011>>

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
H A DLocalBluetoothAdapter.java114 public int getState() { method in class:LocalBluetoothAdapter
115 return mAdapter.getState();
207 int currentState = mAdapter.getState();
209 setBluetoothStateInt(mAdapter.getState());
/frameworks/support/design/tests/src/android/support/design/widget/
H A DBottomSheetBehaviorWithInsetsTest.java40 assertThat(activity.mBehavior.getState(), is(BottomSheetBehavior.STATE_COLLAPSED));
H A DBottomSheetBehaviorInitialStateTest.java49 assertThat(activity.mBehavior.getState(), is(BottomSheetBehavior.STATE_EXPANDED));
62 assertThat(activity.mBehavior.getState(), is(BottomSheetBehavior.STATE_HIDDEN));
H A DBottomSheetBehaviorTest.java74 int state = behavior.getState();
278 assertThat(behavior.getState(), is(BottomSheetBehavior.STATE_COLLAPSED));
342 assertThat(getBehavior().getState(), is(BottomSheetBehavior.STATE_COLLAPSED));
358 assertThat(getBehavior().getState(), is(BottomSheetBehavior.STATE_HIDDEN));
402 assertThat(getBehavior().getState(), is(BottomSheetBehavior.STATE_HIDDEN));
425 assertThat(getBehavior().getState(), is(BottomSheetBehavior.STATE_EXPANDED));
439 assertThat(getBehavior().getState(), is(BottomSheetBehavior.STATE_COLLAPSED));
457 assertThat(getBehavior().getState(), is(BottomSheetBehavior.STATE_COLLAPSED));
481 assertThat(getBehavior().getState(), is(BottomSheetBehavior.STATE_COLLAPSED));
496 assertThat(getBehavior().getState(),
[all...]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DCallManagerTest.java103 doReturn(ServiceState.STATE_IN_SERVICE).when(mServiceState).getState();
110 doReturn(Call.State.IDLE).when(mBgCall).getState();
111 doReturn(Call.State.IDLE).when(mFgCall).getState();
112 doReturn(Call.State.IDLE).when(mRingingCall).getState();
332 doReturn(ServiceState.STATE_OUT_OF_SERVICE).when(mSecondServiceState).getState();
336 doReturn(ServiceState.STATE_EMERGENCY_ONLY).when(mSecondServiceState).getState();
340 doReturn(ServiceState.STATE_POWER_OFF).when(mSecondServiceState).getState();
344 doReturn(ServiceState.STATE_OUT_OF_SERVICE).when(mSecondServiceState).getState();
345 doReturn(ServiceState.STATE_EMERGENCY_ONLY).when(mServiceState).getState();
350 doReturn(ServiceState.STATE_POWER_OFF).when(mServiceState).getState();
[all...]
H A DGsmCdmaConnectionTest.java79 assertEquals(GsmCdmaCall.State.IDLE, connection.getState());
97 assertEquals(GsmCdmaCall.State.IDLE, connection.getState());
117 assertEquals(GsmCdmaCall.State.ACTIVE, connection.getState());
121 assertEquals(GsmCdmaCall.State.HOLDING, connection.getState());
189 assertEquals(GsmCdmaCall.State.DISCONNECTED, connection.getState());
H A DDefaultPhoneNotifierTest.java194 doReturn(Call.State.IDLE).when(mForeGroundCall).getState();
195 doReturn(Call.State.IDLE).when(mBackGroundCall).getState();
196 doReturn(Call.State.IDLE).when(mRingingCall).getState();
219 doReturn(Call.State.ACTIVE).when(mForeGroundCall).getState();
226 doReturn(Call.State.HOLDING).when(mBackGroundCall).getState();
233 doReturn(Call.State.ALERTING).when(mRingingCall).getState();
/frameworks/base/core/java/android/bluetooth/
H A DIBluetoothManager.aidl40 int getState();
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
H A DDocumentLoader.java94 if (task.getState() == LoaderTask.STATE_LOADING) {
121 if (task.getState() == LoaderTask.STATE_LOADING) {
130 Preconditions.checkState(existingTask.getState() != LoaderTask.STATE_LOADING);
199 task.getState() != LoaderTask.STATE_CANCELLED &&
202 task.getState() != LoaderTask.STATE_LOADING);
225 if (get(i).getState() == LoaderTask.STATE_COMPLETED) {
296 switch (getState()) {
415 int getState() { method in class:DocumentLoader.LoaderTask
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
H A DImsPhoneBase.java159 public PhoneConstants.State getState() { method in class:ImsPhoneBase
245 int serviceState = getServiceState().getState();
254 Rlog.v(LOG_TAG, "canDial(): ringingCall: " + getRingingCall().getState());
255 Rlog.v(LOG_TAG, "canDial(): foregndCall: " + getForegroundCall().getState());
256 Rlog.v(LOG_TAG, "canDial(): backgndCall: " + getBackgroundCall().getState());
258 && (!getForegroundCall().getState().isAlive()
259 || !getBackgroundCall().getState().isAlive());
268 Call.State foregroundCallState = getForegroundCall().getState();
269 Call.State backgroundCallState = getBackgroundCall().getState();
270 Call.State ringingCallState = getRingingCall().getState();
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/
H A DSipPhoneBase.java120 public PhoneConstants.State getState() { method in class:SipPhoneBase
207 int serviceState = getServiceState().getState();
216 Rlog.v(LOG_TAG, "canDial(): ringingCall: " + getRingingCall().getState());
217 Rlog.v(LOG_TAG, "canDial(): foregndCall: " + getForegroundCall().getState());
218 Rlog.v(LOG_TAG, "canDial(): backgndCall: " + getBackgroundCall().getState());
220 && (!getForegroundCall().getState().isAlive()
221 || !getBackgroundCall().getState().isAlive());
230 Call.State foregroundCallState = getForegroundCall().getState();
231 Call.State backgroundCallState = getBackgroundCall().getState();
232 Call.State ringingCallState = getRingingCall().getState();
[all...]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/
H A DImsPhoneTest.java118 doReturn(Call.State.IDLE).when(mForegroundCall).getState();
119 doReturn(Call.State.IDLE).when(mBackgroundCall).getState();
120 doReturn(Call.State.IDLE).when(mRingingCall).getState();
152 doReturn(Call.State.INCOMING).when(mRingingCall).getState();
162 doReturn(Call.State.IDLE).when(mRingingCall).getState();
163 doReturn(Call.State.ACTIVE).when(mBackgroundCall).getState();
171 doReturn(Call.State.ACTIVE).when(mForegroundCall).getState();
189 doReturn(Call.State.IDLE).when(mForegroundCall).getState();
190 doReturn(Call.State.INCOMING).when(mRingingCall).getState();
198 doReturn(Call.State.ACTIVE).when(mForegroundCall).getState();
[all...]
/frameworks/support/compat/ics/android/support/v4/graphics/drawable/
H A DDrawableWrapperApi14.java154 public int[] getState() { method in class:DrawableWrapperApi14
155 return mDrawable.getState();
278 updateTint(getState());
284 updateTint(getState());
335 setState(dr.getState());
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DGsmCdmaCallTracker.java279 if (mForegroundCall.getState() == GsmCdmaCall.State.ACTIVE) {
301 if (mForegroundCall.getState() != GsmCdmaCall.State.IDLE) {
415 if (mForegroundCall.getState() == GsmCdmaCall.State.ACTIVE) {
517 if (mRingingCall.getState() == GsmCdmaCall.State.INCOMING) {
522 } else if (mRingingCall.getState() == GsmCdmaCall.State.WAITING) {
545 if (mRingingCall.getState().isRinging()) {
561 if (mRingingCall.getState() == GsmCdmaCall.State.INCOMING) {
602 return mForegroundCall.getState() == GsmCdmaCall.State.ACTIVE
603 && mBackgroundCall.getState() == GsmCdmaCall.State.HOLDING
610 int serviceState = mPhone.getServiceState().getState();
1666 public PhoneConstants.State getState() { method in class:GsmCdmaCallTracker
[all...]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
H A DDozeMachineTest.java93 assertEquals(DOZE, mMachine.getState());
103 assertEquals(DOZE_AOD, mMachine.getState());
116 assertEquals(DOZE, mMachine.getState());
129 assertEquals(DOZE_AOD, mMachine.getState());
141 assertEquals(FINISH, mMachine.getState());
276 assertEquals(DOZE_PULSING, mMachine.getState());
/frameworks/av/media/libaaudio/src/core/
H A DAudioStream.cpp115 aaudio_stream_state_t state = getState();
128 state = getState();
/frameworks/av/media/libaaudio/src/legacy/
H A DAudioStreamLegacy.cpp70 if (getState() != AAUDIO_STREAM_STATE_DISCONNECTED) {
147 getState() != AAUDIO_STREAM_STATE_DISCONNECTED) {
H A DAudioStreamRecord.cpp42 const aaudio_stream_state_t state = getState();
180 if (getState() != AAUDIO_STREAM_STATE_CLOSED) {
255 switch (getState()) {
287 if (getState() == AAUDIO_STREAM_STATE_DISCONNECTED) {
/frameworks/base/telephony/java/com/android/ims/internal/
H A DIImsCallSession.aidl77 int getState();
/frameworks/support/media-compat/api21/android/support/v4/media/session/
H A DPlaybackStateCompatApi21.java27 public static int getState(Object stateObj) { method in class:PlaybackStateCompatApi21
28 return ((PlaybackState)stateObj).getState();
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DNetworkControllerImpl.java276 return mWifiSignalController.getState().level;
321 return controller != null ? controller.getState().networkNameData : "";
335 if (!mobileSignalController.getState().isEmergency) {
346 return mMobileSignalControllers.get(voiceSubId).getState().isEmergency;
355 return mMobileSignalControllers.valueAt(0).getState().isEmergency;
749 mDemoWifiState = mWifiSignalController.getState();
856 controller.getState().dataSim = datatype != null;
857 controller.getState().isDefault = datatype != null;
858 controller.getState().dataConnected = datatype != null;
860 controller.getState()
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/
H A DTileQueryHelper.java94 final QSTile.State state = tile.getState().copy();
129 State state = getState(params, spec);
153 private State getState(Collection<QSTile> tiles, String spec) { method in class:TileQueryHelper
156 return tile.getState().copy();
/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DMountServiceTests.java71 public int getState() { method in class:MountServiceTests.ObbObserver
146 assertEquals(expectedState, observer.getState());
171 assertEquals(expectedState, observer.getState());
191 assertEquals(expectedState, observer.getState());
/frameworks/support/frameworks/support/samples/SupportDesignDemos/src/com/example/android/support/design/widget/
H A DBottomSheetUsageBase.java48 int state = mBehavior.getState();
H A DBottomSheetWithFab.java42 if (mBehavior.getState() == BottomSheetBehavior.STATE_HIDDEN) {

Completed in 698 milliseconds

1234567891011>>