/frameworks/base/core/tests/coretests/src/android/app/activity/ |
H A D | SubActivityScreen.java | 69 protected void onRestoreInstanceState(Bundle state) { argument 70 super.onRestoreInstanceState(state);
|
/frameworks/base/libs/hwui/tests/microbench/ |
H A D | ShadowBench.cpp | 80 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 D | MediaActionSound.java | 105 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 D | Preconditions.java | 25 * <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 D | QSTileView.java | 94 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 D | AirplaneModeTile.java | 88 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 D | ColorInversionTile.java | 96 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 D | DataSaverTile.java | 100 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 D | LocationTile.java | 97 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 D | NfcTile.java | 106 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 D | NightDisplayTile.java | 77 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 D | UserTile.java | 86 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 D | WorkModeTile.java | 95 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 D | CastController.java | 43 public int state = STATE_DISCONNECTED; field in class:CastController.CastDevice
|
/frameworks/base/services/core/java/com/android/server/ |
H A D | UpdateLockService.java | 75 void sendLockChangedBroadcast(boolean state) { argument 80 .putExtra(UpdateLock.NOW_IS_CONVENIENT, state)
|
/frameworks/base/services/core/java/com/android/server/am/ |
H A D | UserState.java | 37 // 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 D | DevicePowerStatusAction.java | 90 void handleTimerEvent(int state) { argument 91 if (mState != state) { 94 if (state == STATE_WAITING_FOR_REPORT_POWER_STATUS) {
|
H A D | OneTouchPlayAction.java | 40 // 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 D | OneTouchRecordAction.java | 101 // 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 D | PowerStatusMonitorAction.java | 86 void handleTimerEvent(int state) { argument
|
H A D | SendKeyAction.java | 49 // 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 D | SystemAudioStatusAction.java | 118 void handleTimerEvent(int state) { argument 119 if (mState != state) {
|
H A D | TimerRecordingAction.java | 160 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 D | com_android_server_lights_LightsService.cpp | 113 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 D | AudioState.java | 26 * 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...] |