Searched defs:state (Results 101 - 125 of 841) sorted by relevance

1234567891011>>

/frameworks/base/core/tests/coretests/src/android/app/activity/
H A DSubActivityScreen.java69 protected void onRestoreInstanceState(Bundle state) { argument
70 super.onRestoreInstanceState(state);
/frameworks/base/libs/hwui/tests/microbench/
H A DShadowBench.cpp80 void BM_TessellateShadows_roundrect_opaque(benchmark::State& state) { argument
86 while (state.KeepRunning()) {
96 void BM_TessellateShadows_roundrect_translucent(benchmark::State& state) { argument
103 while (state.KeepRunning()) {
/frameworks/base/media/java/android/media/
H A DMediaActionSound.java105 public int state; field in class:MediaActionSound.SoundState
110 state = STATE_NOT_LOADED;
137 sound.state = STATE_LOADING;
161 switch (sound.state) {
168 Log.e(TAG, "load() called in wrong state: " + sound + " for sound: "+ soundName);
211 switch (sound.state) {
221 sound.state = STATE_LOADING_PLAY_REQUESTED;
227 Log.e(TAG, "play() called in wrong state: " + sound.state + " for sound: "+ soundName);
244 sound.state
[all...]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
H A DPreconditions.java25 * <p>Typically used to sanity check arguments or the current object state.</p>
114 * Checks that the state is currently {@link true}.
116 * @param message Message to raise an exception with if the state checking fails.
117 * @param state State to check
119 * @throws IllegalStateException if state was {@code false}
121 * @return The state value (always {@code true}).
123 public static boolean checkState(String message, boolean state) { argument
124 if (!state) {
128 return state;
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/
H A DQSTileView.java94 protected void handleStateChanged(QSTile.State state) { argument
95 super.handleStateChanged(state);
96 if (!Objects.equal(mLabel.getText(), state.label) || mState != state.state) {
97 if (state.state == Tile.STATE_UNAVAILABLE) {
98 int color = QSTileImpl.getColorForState(getContext(), state.state);
99 state
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
H A DAirplaneModeTile.java88 protected void handleUpdateState(BooleanState state, Object arg) { argument
91 state.value = airplaneMode;
92 state.label = mContext.getString(R.string.airplane_mode);
94 state.icon = mEnable;
96 state.icon = mDisable;
98 state.state = airplaneMode ? Tile.STATE_ACTIVE : Tile.STATE_INACTIVE;
99 state.contentDescription = state.label;
100 state
[all...]
H A DColorInversionTile.java96 protected void handleUpdateState(BooleanState state, Object arg) { argument
99 state.value = enabled;
100 state.state = state.value ? Tile.STATE_ACTIVE : Tile.STATE_INACTIVE;
101 state.label = mContext.getString(R.string.quick_settings_inversion_label);
102 state.icon = enabled ? mEnable : mDisable;
103 state.expandedAccessibilityClassName = Switch.class.getName();
104 state.contentDescription = state
[all...]
H A DDataSaverTile.java100 protected void handleUpdateState(BooleanState state, Object arg) { argument
101 state.value = arg instanceof Boolean ? (Boolean) arg
103 state.state = state.value ? Tile.STATE_ACTIVE : Tile.STATE_INACTIVE;
104 state.label = mContext.getString(R.string.data_saver);
105 state.contentDescription = state.label;
106 state.icon = ResourceIcon.get(state
[all...]
H A DLocationTile.java97 protected void handleUpdateState(BooleanState state, Object arg) { argument
102 // state.visible = !(mKeyguard.isSecure() && mKeyguard.isShowing());
103 state.value = locationEnabled;
104 checkIfRestrictionEnforcedByAdminOnly(state, UserManager.DISALLOW_SHARE_LOCATION);
106 state.icon = mEnable;
107 state.label = mContext.getString(R.string.quick_settings_location_label);
108 state.contentDescription = mContext.getString(
111 state.icon = mDisable;
112 state.label = mContext.getString(R.string.quick_settings_location_label);
113 state
[all...]
H A DNfcTile.java106 protected void handleUpdateState(BooleanState state, Object arg) { argument
109 state.value = mAdapter == null ? false : mAdapter.isEnabled();
110 state.label = mContext.getString(R.string.quick_settings_nfc_label);
111 state.icon = new DrawableIcon(state.value ? mEnable : mDisable);
112 state.expandedAccessibilityClassName = Switch.class.getName();
113 state.contentDescription = state.label;
H A DNightDisplayTile.java77 protected void handleUpdateState(BooleanState state, Object arg) { argument
79 state.value = isActivated;
80 state.label = state.contentDescription =
82 state.icon = ResourceIcon.get(isActivated ? R.drawable.ic_qs_night_display_on
84 state.expandedAccessibilityClassName = Switch.class.getName();
85 state.state = state.value ? Tile.STATE_ACTIVE : Tile.STATE_INACTIVE;
H A DUserTile.java86 protected void handleUpdateState(State state, Object arg) { argument
89 state.label = p.first;
91 state.contentDescription = p.first;
92 state.icon = new Icon() {
99 // TODO: Default state.
H A DWorkModeTile.java95 protected void handleUpdateState(BooleanState state, Object arg) { argument
97 state.value = (Boolean) arg;
99 state.value = mProfileController.isWorkModeEnabled();
102 state.label = mContext.getString(R.string.quick_settings_work_mode_label);
103 if (state.value) {
104 state.icon = mEnable;
105 state.contentDescription = mContext.getString(
108 state.icon = mDisable;
109 state.contentDescription = mContext.getString(
112 state
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DCastController.java43 public int state = STATE_DISCONNECTED; field in class:CastController.CastDevice
/frameworks/base/services/core/java/com/android/server/
H A DUpdateLockService.java75 void sendLockChangedBroadcast(boolean state) { argument
80 .putExtra(UpdateLock.NOW_IS_CONVENIENT, state)
/frameworks/base/services/core/java/com/android/server/am/
H A DUserState.java37 // User is in the locked state.
39 // User is in the unlocking state.
41 // User is in the running state.
53 public int state = STATE_BOOTING; field in class:UserState
70 if (state == oldState) {
74 Slog.w(TAG, "Expected user " + mHandle.getIdentifier() + " in state "
75 + stateToString(oldState) + " but was in state " + stateToString(state));
81 if (newState == state) {
84 Slog.i(TAG, "User " + mHandle.getIdentifier() + " state change
91 stateToString(int state) argument
[all...]
/frameworks/base/services/core/java/com/android/server/hdmi/
H A DDevicePowerStatusAction.java90 void handleTimerEvent(int state) { argument
91 if (mState != state) {
94 if (state == STATE_WAITING_FOR_REPORT_POWER_STATUS) {
H A DOneTouchPlayAction.java40 // if the TV is brought of out standby state.
115 void handleTimerEvent(int state) { argument
116 if (mState != state) {
119 if (state == STATE_WAITING_FOR_REPORT_POWER_STATUS) {
H A DOneTouchRecordAction.java101 // If recording started successfully, change state and keep this action until <Record Off>
119 void handleTimerEvent(int state) { argument
120 if (mState != state) {
121 Slog.w(TAG, "Timeout in invalid state:[Expected:" + mState + ", Actual:" + state + "]");
H A DPowerStatusMonitorAction.java86 void handleTimerEvent(int state) { argument
H A DSendKeyAction.java49 // State in which the long press is being checked at the beginning. The state is set in
108 Slog.w(TAG, "Not in a valid state");
165 public void handleTimerEvent(int state) { argument
181 Slog.w(TAG, "Not in a valid state");
H A DSystemAudioStatusAction.java118 void handleTimerEvent(int state) { argument
119 if (mState != state) {
H A DTimerRecordingAction.java160 void handleTimerEvent(int state) { argument
161 if (mState != state) {
162 Slog.w(TAG, "Timeout in invalid state:[Expected:" + mState + ", Actual:" + state + "]");
/frameworks/base/services/core/jni/
H A Dcom_android_server_lights_LightsService.cpp113 LightState state{};
116 state.flashMode = Flash::NONE;
119 state.flashMode = flash;
120 state.flashOnMs = onMS;
121 state.flashOffMs = offMS;
124 state.color = colorARGB;
125 state.brightnessMode = brightness;
127 return state;
133 const LightState &state) {
148 state
130 processReturn( const Return<Status> &ret, Type type, const LightState &state) argument
177 LightState state = constructState( local
[all...]
/frameworks/base/telecomm/java/android/telecom/
H A DAudioState.java26 * Encapsulates the telecom audio state, including the current audio routing, supported audio
66 public AudioState(AudioState state) { argument
67 isMuted = state.isMuted();
68 route = state.getRoute();
69 supportedRouteMask = state.getSupportedRouteMask();
72 public AudioState(CallAudioState state) { argument
73 isMuted = state.isMuted();
74 route = state.getRoute();
75 supportedRouteMask = state.getSupportedRouteMask();
86 AudioState state
[all...]

Completed in 269 milliseconds

1234567891011>>