/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
H A D | RotationLockTile.java | 68 protected void handleUpdateState(BooleanState state, Object arg) { argument 73 state.visible = mController.isRotationLockAffordanceVisible(); 74 state.value = rotationLocked; 81 state.label = mContext.getString(label); 84 state.label = mContext.getString(R.string.quick_settings_rotation_unlocked_label); 88 state.icon = icon; 89 state.contentDescription = getAccessibilityString(rotationLocked, 96 * Get the correct accessibility string based on the state
|
H A D | WifiTile.java | 106 protected void handleUpdateState(SignalState state, Object arg) { argument 107 state.visible = true; 114 boolean enabledChanging = state.enabled != cb.enabled; 119 state.enabled = cb.enabled; 120 state.connected = wifiConnected; 121 state.activityIn = cb.enabled && cb.activityIn; 122 state.activityOut = cb.enabled && cb.activityOut; 123 state.filter = true; 126 if (!state.enabled) { 127 state 262 setToggleState(boolean state) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | CommandQueue.java | 82 public void disable(int state, boolean animate); argument 97 public void setWindowState(int window, int state); argument 125 public void disable(int state) { argument 128 mHandler.obtainMessage(MSG_DISABLE, state, 0, null).sendToTarget(); 216 public void setWindowState(int window, int state) { argument 219 mHandler.obtainMessage(MSG_SET_WINDOW_STATE, window, state, null).sendToTarget();
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | PanelBar.java | 48 public void go(int state) { argument 49 if (DEBUG) LOG("go state: %d -> %d", mState, state); 50 mState = state; 118 if (DEBUG) LOG("PanelBar.onTouch: state=%d ACTION_DOWN: panel %s %s", mState, panel, 149 * @param panel the panel which changed its expansion state 157 if (DEBUG) LOG("panelExpansionChanged: start state=%d panel=%s", mState, panel.getName()); 186 if (DEBUG) LOG("panelExpansionChanged: end state=%d [%s%s ]", mState,
|
H A D | PhoneStatusBar.java | 463 public void onPlaybackStateChanged(PlaybackState state) { 464 super.onPlaybackStateChanged(state); 465 if (DEBUG_MEDIA) Log.v(TAG, "DEBUG_MEDIA: onPlaybackStateChanged: " + state); 498 // Fingerprint (as computed by getLoggingFingerprint() of the last logged state. 593 // in session state 1092 // we want to freeze the sysui state wherever it is 1771 final PlaybackState state = aController.getPlaybackState(); 1772 if (state == null) continue; 1773 switch (state.getState()) { 1880 + " state 1984 adjustDisableFlags(int state) argument 1996 disable(int state, boolean animate) argument 2528 setWindowState(int window, int state) argument 3903 setBarState(int state) argument [all...] |
H A D | StatusBarWindowManager.java | 34 * Encapsulates all logic for the status bar window state management. 64 * @param barHeight The height of the status bar in collapsed state. 93 private void applyKeyguardFlags(State state) { argument 94 if (state.keyguardShowing) { 103 private void adjustScreenOrientation(State state) { argument 104 if (state.isKeyguardShowingAndNotOccluded()) { 115 private void applyFocusableFlag(State state) { argument 116 if (state.isKeyguardShowingAndNotOccluded() && state.keyguardNeedsInput 117 && state 129 applyHeight(State state) argument 139 applyFitsSystemWindows(State state) argument 143 applyUserActivityTimeout(State state) argument 153 applyInputFeatures(State state) argument 165 apply(State state) argument 227 setStatusBarState(int state) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | BluetoothController.java | 48 public int state = STATE_DISCONNECTED; field in class:BluetoothController.PairedDevice 51 public static String stateToString(int state) { argument 52 if (state == STATE_DISCONNECTED) return "STATE_DISCONNECTED"; 53 if (state == STATE_CONNECTING) return "STATE_CONNECTING"; 54 if (state == STATE_CONNECTED) return "STATE_CONNECTED"; 55 if (state == STATE_DISCONNECTING) return "STATE_DISCONNECTING";
|
H A D | BluetoothControllerImpl.java | 63 // one state on screen, but can have multiple profiles, the later states override the 115 pw.println("BluetoothController state:"); 207 paired.state = connectionStateToPairedDeviceState(info.connectionStateIndex); 214 int state = CONNECTION_STATES[index]; 215 if (state == BluetoothAdapter.STATE_CONNECTED) return PairedDevice.STATE_CONNECTED; 216 if (state == BluetoothAdapter.STATE_CONNECTING) return PairedDevice.STATE_CONNECTING; 217 if (state == BluetoothAdapter.STATE_DISCONNECTING) return PairedDevice.STATE_DISCONNECTING; 290 private void updateConnectionState(BluetoothDevice device, int profile, int state) { argument 295 mHandler.obtainMessage(MSG_UPDATE_SINGLE_CONNECTION_STATE, profile, state, device) 332 int state 340 handleUpdateConnectionState(BluetoothDevice device, int profile, int state) argument [all...] |
H A D | BluetoothUtil.java | 45 public static String profileStateToString(int state) { argument 46 if (state == BluetoothProfile.STATE_CONNECTED) return "STATE_CONNECTED"; 47 if (state == BluetoothProfile.STATE_CONNECTING) return "STATE_CONNECTING"; 48 if (state == BluetoothProfile.STATE_DISCONNECTED) return "STATE_DISCONNECTED"; 49 if (state == BluetoothProfile.STATE_DISCONNECTING) return "STATE_DISCONNECTING";
|
H A D | CastController.java | 42 public int state = STATE_DISCONNECTED; field in class:CastController.CastDevice
|
H A D | KeyButtonRipple.java | 160 protected boolean onStateChange(int[] state) { argument 162 for (int i = 0; i < state.length; i++) { 163 if (state[i] == android.R.attr.state_pressed) {
|
H A D | NetworkControllerImpl.java | 113 // state of inet connection 305 * so we should recheck and send out the state to listeners. 435 // Even if the controllers are correct, make sure we have the right no sims state. 437 // but we still need to update the no sim state. 553 * Notifies listeners of changes in state of to the NetworkController, but 601 * Pushes the current connectivity state to all SignalControllers. 668 pw.println("NetworkController state:"); 844 // WiFi only has one state. 887 * Extract wifi state directly from broadcasts about changes in wifi state 1403 onServiceStateChanged(ServiceState state) argument 1413 onDataConnectionStateChanged(int state, int networkType) argument 1730 copyFrom(State state) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/ |
H A D | StackScrollAlgorithm.java | 137 // The state of the local variables are saved in an algorithmState to easily subdivide it 154 // Due to the overScroller, the stackscroller can have negative scroll state. This is 197 StackScrollState.ViewState state = resultState.getViewStateForView(child); 198 float newYTranslation = state.yTranslation + state.height * (1f - state.scale) / 2f; 199 float newHeight = state.height * state.scale; 216 float clippingCorrection = state.dimmed 218 : mRoundedRectCornerRadius * state 245 updateChildClippingAndBackground(StackScrollState.ViewState state, float realHeight, float clipHeight, float backgroundHeight) argument 317 updateVisibleChildren(StackScrollState resultState, StackScrollAlgorithmState state) argument [all...] |
H A D | StackScrollState.java | 34 * A state of a {@link com.android.systemui.statusbar.stack.NotificationStackScrollLayout} which 90 ViewState state = mStateMap.get(child); 91 if (state == null) { 92 Log.wtf(CHILD_NOT_FOUND_TAG, "No child state was found when applying this state " + 96 if (!state.gone) { 103 float newAlpha = state.alpha; 104 float newYTranslation = state.yTranslation; 105 float newZTranslation = state.zTranslation; 106 float newScale = state 204 performSpeedBumpAnimation(int i, SpeedBumpView speedBump, ViewState state, long delay) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/tv/ |
H A D | TvStatusBar.java | 62 public void disable(int state, boolean animate) { argument 91 public void setWindowState(int window, int state) { argument
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
H A D | NetworkControllerBaseTest.java | 195 public void updateCallState(int state) { argument 197 mPhoneStateListener.onCallStateChanged(state, "0123456789");
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/ |
H A D | BasicTexture.java | 26 // The state of a BasicTexture indicates whether its data is loaded to GL memory. 57 protected BasicTexture(GLCanvas canvas, int id, int state) { argument 60 mState = state;
|
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
H A D | BarController.java | 34 * Controls state/behavior specific to a system bar window. 139 final int state = computeStateLw(wasVis, wasAnim, mWin, change); 140 final boolean stateChanged = updateStateLw(state); 163 private boolean updateStateLw(final int state) { argument 164 if (state != mState) { 165 mState = state; 166 if (DEBUG) Slog.d(mTag, "mState: " + StatusBarManager.windowStateToString(state)); 173 statusbar.setWindowState(mStatusBarManagerId, state); 176 if (DEBUG) Slog.w(mTag, "Error posting window state", e); 247 private void setTransientBarState(int state) { argument 267 transientBarStateToString(int state) argument [all...] |
H A D | GlobalActions.java | 146 // get notified of phone state changes 213 // Simple toggle style if there's no vibrator, otherwise use a tri-state 244 // In ECM mode airplane state cannot be changed 668 * A single press action maintains no state, just responds to a press 860 * Implementations may override this if their state can be in on of the intermediate 871 public void updateState(State state) { argument 872 mState = state; 1047 // Let the service state callbacks handle the state. 1068 intent.putExtra("state", o [all...] |
H A D | PhoneWindow.java | 493 * @param st The panel state to prepare. 529 // Init the panel state's menu--return false if init failed 570 // Restore action view state before we prepare. This gives apps 571 // an opportunity to override frozen/restored state in onPrepare. 595 // Set other state 605 // Action bars handle their own menu state 610 // Freeze state 611 final Bundle state = new Bundle(); 613 st.iconMenuPresenter.saveHierarchyState(state); 616 st.listMenuPresenter.saveHierarchyState(state); 2925 updateColorViewInt(final ColorViewState state, int sysUiVis, int color, int height, boolean animate) argument 4519 onRestoreInstanceState(Parcelable state) argument [all...] |
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
H A D | ScreenMagnifier.java | 64 * and leave it in a magnified state. A triple tapping when magnified would 65 * clear magnification and leave the screen in a not magnified state. 76 * In other words, the initial magnified state is sticky. 84 * 4. When in a permanent magnified state the user can use two or more fingers 88 * 5. When in a permanent magnified state the user can use two or more 339 // if this is the current state since it uses ScaleGestureDetecotr 343 throw new IllegalStateException("Unknown state: " + mCurrentState); 455 private void transitionToState(int state) { argument 457 switch (state) { 471 throw new IllegalArgumentException("Unknown state [all...] |
H A D | TouchExplorer.java | 124 // The current state of the touch explorer. 258 // state. Therefore, there is not need to clean anything. 301 // Go to initial state. 343 throw new IllegalStateException("Illegal state: " + mCurrentState); 388 * Handles a motion event in touch exploring state. 431 // This would lead to a state transition resulting in long 497 // clear the current state and try to detect. 568 // end since we transition to another state. 573 // We know that a new state transition is to happen and the 574 // new state wil 1256 getStateSymbolicName(int state) argument [all...] |
/frameworks/base/services/backup/java/com/android/server/backup/ |
H A D | BackupManagerService.java | 164 // System-private key used for backing up an app's widget state. Must 230 // backup task state machine tick 526 public int state; field in class:BackupManagerService.Operation 530 state = initialState; 699 // Spin up a backup state sequence and set it running 752 // TODO: refactor full backup to be a looper-based state machine 786 // TODO: refactor full restore to be a looper-based state machine 1566 // Maintain persistent state around whether need to do an initialize operation. 1591 // No more initialization needed; wipe the journal and reset our state. 1627 // Remove all the state file [all...] |
/frameworks/base/services/core/java/com/android/server/ |
H A D | MountService.java | 143 * Internal vold volume state constants 226 /** Map from path to state */ 261 * Mounted OBB tracking information. Used to track the current state of all 619 final String state = entry.getValue(); 621 if (state.equals(Environment.MEDIA_UNMOUNTED)) { 627 } else if (state.equals(Environment.MEDIA_SHARED)) { 629 * Bootstrap UMS enabled state since vold indicates 637 // Push mounted state for all emulated storage 745 private void updatePublicVolumeState(StorageVolume volume, String state) { argument 749 oldState = mVolumeStates.put(path, state); [all...] |
H A D | TelephonyRegistry.java | 271 // we keep a copy of all of the state so we can send it out when folks 499 if (VDBG) log("listen: call onSSC state=" + mServiceState[phoneId]); 635 public void notifyCallState(int state, String incomingNumber) { argument 641 log("notifyCallState: state=" + state + " incomingNumber=" + incomingNumber); 649 r.callback.onCallStateChanged(state, incomingNumber); 657 broadcastCallStateChanged(state, incomingNumber, 661 public void notifyCallStateForSubscriber(int subId, int state, String incomingNumber) { argument 667 + " state=" + state 691 notifyServiceStateForPhoneId(int phoneId, int subId, ServiceState state) argument 915 notifyDataActivity(int state) argument 919 notifyDataActivityForSubscriber(int subId, int state) argument 941 notifyDataConnection(int state, boolean isDataConnectivityPossible, String reason, String apn, String apnType, LinkProperties linkProperties, NetworkCapabilities networkCapabilities, int networkType, boolean roaming) argument 949 notifyDataConnectionForSubscriber(int subId, int state, boolean isDataConnectivityPossible, String reason, String apn, String apnType, LinkProperties linkProperties, NetworkCapabilities networkCapabilities, int networkType, boolean roaming) argument 1291 broadcastServiceStateChanged(ServiceState state, int subId) argument 1329 broadcastCallStateChanged(int state, String incomingNumber, int subId) argument 1354 broadcastDataConnectionStateChanged(int state, boolean isDataConnectivityPossible, String reason, String apn, String apnType, LinkProperties linkProperties, NetworkCapabilities networkCapabilities, boolean roaming, int subId) argument 1409 broadcastPreciseDataConnectionStateChanged(int state, int networkType, String apnType, String apn, String reason, LinkProperties linkProperties, String failCause) argument 1514 set(Time t, String s, int subId, int phoneId, ServiceState state) argument 1528 logServiceStateChanged(String s, int subId, int phoneId, ServiceState state) argument [all...] |