Searched defs:state (Results 276 - 300 of 714) sorted by relevance

<<11121314151617181920>>

/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
H A DQSTileBaseView.java125 public void onStateChanged(QSTile.State state) { argument
126 mHandler.obtainMessage(H.STATE_CHANGED, state).sendToTarget();
129 protected void handleStateChanged(QSTile.State state) { argument
130 mIcon.setIcon(state);
131 if (mCollapsedView && !TextUtils.isEmpty(state.minimalContentDescription)) {
132 setContentDescription(state.minimalContentDescription);
134 setContentDescription(state.contentDescription);
137 mAccessibilityClass = state.minimalAccessibilityClassName;
139 mAccessibilityClass = state.expandedAccessibilityClassName;
141 if (state instanceo
[all...]
H A DQuickQSPanel.java85 protected void drawTile(TileRecord r, State state) { argument
86 if (state instanceof SignalState) {
88 state.copyTo(copy);
92 state = copy;
94 super.drawTile(r, state);
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/
H A DCustomTile.java268 protected void handleUpdateState(State state, Object arg) { argument
277 Log.w(TAG, "Invalid icon, forcing into unavailable state");
283 state.icon = new DrawableIcon(drawable);
284 state.label = mTile.getLabel();
286 state.label = new SpannableStringBuilder().append(state.label,
291 state.contentDescription = mTile.getContentDescription();
293 state.contentDescription = state.label;
314 private static int getColor(int state) { argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
H A DBatteryTile.java112 protected void handleUpdateState(State state, Object arg) { argument
116 state.icon = new Icon() {
133 state.label = percentage;
134 state.contentDescription = mContext.getString(R.string.accessibility_quick_settings_battery,
140 state.minimalAccessibilityClassName = state.expandedAccessibilityClassName
269 public void setToggleState(boolean state) { argument
270 // No toggle state.
H A DBluetoothTile.java106 protected void handleUpdateState(BooleanState state, Object arg) { argument
110 state.value = enabled;
111 state.autoMirrorDrawable = false;
112 state.minimalContentDescription =
115 state.label = null;
117 state.icon = ResourceIcon.get(R.drawable.ic_qs_bluetooth_connected);
118 state.label = mController.getLastDeviceName();
119 state.contentDescription = mContext.getString(
120 R.string.accessibility_bluetooth_name, state.label);
121 state
216 setToggleState(boolean state) argument
[all...]
H A DCastTile.java117 protected void handleUpdateState(BooleanState state, Object arg) { argument
118 state.label = mContext.getString(R.string.quick_settings_cast_title);
119 state.contentDescription = state.label;
120 state.value = false;
121 state.autoMirrorDrawable = false;
125 if (device.state == CastDevice.STATE_CONNECTED) {
126 state.value = true;
127 state.label = getDeviceName(device);
128 state
198 setToggleState(boolean state) argument
[all...]
H A DDndTile.java137 protected void handleUpdateState(BooleanState state, Object arg) { argument
140 final boolean valueChanged = state.value != newValue;
141 state.value = newValue;
142 checkIfRestrictionEnforcedByAdminOnly(state, UserManager.DISALLOW_ADJUST_VOLUME);
145 state.icon = ResourceIcon.get(R.drawable.ic_qs_dnd_on);
146 state.label = mContext.getString(R.string.quick_settings_dnd_priority_label);
147 state.contentDescription = mContext.getString(
151 state.icon = TOTAL_SILENCE;
152 state.label = mContext.getString(R.string.quick_settings_dnd_none_label);
153 state
256 setToggleState(boolean state) argument
[all...]
H A DIntentTile.java127 protected void handleUpdateState(State state, Object arg) { argument
133 // No intent but need to refresh state, just use the last one.
138 state.contentDescription = intent.getStringExtra("contentDescription");
139 state.label = intent.getStringExtra("label");
140 state.icon = null;
144 state.icon = new BytesIcon(iconBitmap);
153 state.icon = new PackageDrawableIcon(iconPackage, iconId);
155 state.icon = ResourceIcon.get(iconId);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DLockIcon.java120 int state = getState();
121 boolean anyFingerprintIcon = state == STATE_FINGERPRINT || state == STATE_FINGERPRINT_ERROR;
124 if (state != mLastState || mDeviceInteractive != mLastDeviceInteractive
127 int iconRes = getAnimationResForTransition(mLastState, state, mLastDeviceInteractive,
143 iconRes = getIconForState(state, mScreenOn, mDeviceInteractive);
173 mLastState = state;
216 private int getIconForState(int state, boolean screenOn, boolean deviceInteractive) { argument
217 switch (state) {
H A DLockscreenWallpaper.java221 private WallpaperDrawable(Resources r, ConstantState state) { argument
222 super(new BitmapDrawable(r, state.mBackground));
223 mState = state;
H A DPanelBar.java44 public void go(int state) { argument
45 if (DEBUG) LOG("go state: %d -> %d", mState, state);
46 mState = state;
96 if (DEBUG) LOG("PanelBar.onTouch: state=%d ACTION_DOWN: panel %s %s", mState, panel,
119 if (SPEW) LOG("panelExpansionChanged: start state=%d", mState);
141 if (SPEW) LOG("panelExpansionChanged: end state=%d [%s%s ]", mState,
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DBluetoothControllerImpl.java72 pw.println("BluetoothController state:");
88 private static String stateToString(int state) { argument
89 switch (state) {
99 return "UNKNOWN(" + state + ")";
169 // Make sure our connection state is up to date.
170 int state = mLocalBluetoothManager.getBluetoothAdapter().getConnectionState();
171 if (state != mConnectionState) {
172 mConnectionState = state;
230 public void onConnectionStateChanged(CachedBluetoothDevice cachedDevice, int state) { argument
233 mConnectionState = state;
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
H A DStorageNotification.java168 // Kick current state into place
544 private int getSmallIcon(DiskInfo disk, int state) { argument
546 switch (state) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
H A DEvents.java180 public static void writeState(long time, State state) { argument
182 sCallback.writeState(time, state);
216 void writeState(long time, State state); argument
H A DUtil.java100 public static String playbackStateStateToString(int state) { argument
101 switch (state) {
106 default: return "UNKNOWN_" + state;
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
H A DBasicTexture.java26 // 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/services/accessibility/java/com/android/server/accessibility/
H A DAutoclickController.java189 * @throws IllegalStateException If internal state is already setup when the method is
217 * @throws IllegalStateException If internal state hasn't yet been initialized by calling
261 /** Current meta state. This value will be used as meta state for click event sequence. */
322 /** Cancels any pending clicks and resets the object state. */
332 * Updates the meta state that should be used for click sequence.
334 public void updateMetaState(int state) { argument
335 mMetaState = state;
/frameworks/base/services/core/java/com/android/server/
H A DUiModeManagerService.java113 // the dock state changes. The original ordered broadcast is sent with an initial result
138 int state = intent.getIntExtra(Intent.EXTRA_DOCK_STATE,
140 updateDockState(state);
331 pw.println("Current UI Mode Service state:");
388 private static boolean isDeskDockState(int state) { argument
389 switch (state) {
682 TwilightState state = mTwilightManager.getCurrentState();
683 if (state != null) {
684 mComputedNightMode = state.isNight();
/frameworks/base/services/core/java/com/android/server/display/
H A DDisplayDevice.java111 * Applies any pending changes to the observable state of the display device
124 * Sets the display state, if supported.
126 * @param state The new display state.
131 public Runnable requestDisplayStateLocked(int state, int brightness) { argument
222 * Dumps the local state of the display device.
H A DDisplayDeviceInfo.java111 * Diff result: The {@link #state} fields differ.
239 * Display state.
241 public int state = Display.STATE_ON; field in class:DisplayDeviceInfo
283 if (state != other.state) {
341 state = other.state;
370 sb.append(", state ").append(Display.stateToString(state));
H A DDisplayPowerState.java32 * Controls the display power state.
37 * This mechanism enables multiple properties of the display power state to be animated
81 // so prepare to set it to a known state when the state is next applied.
123 public void setScreenState(int state) { argument
124 if (mScreenState != state) {
126 Slog.d(TAG, "setScreenState: state=" + state);
129 mScreenState = state;
136 * Gets the desired screen state
358 setState(int state, int backlight) argument
[all...]
/frameworks/base/services/core/java/com/android/server/hdmi/
H A DDeviceDiscoveryAction.java31 * Device discovery is launched when TV device is woken from "Standby" state
32 * or enabled "Control for Hdmi" from disabled state.
380 void handleTimerEvent(int state) { argument
381 if (mState == STATE_NONE || mState != state) {
H A DHdmiCecFeatureAction.java35 * state as the process progresses, and if necessary, returns the result to the caller which
50 // Default state used in common by all the feature actions.
53 // Internal state indicating the progress of action.
99 * @param state the state associated with the time when the timer was created
101 abstract void handleTimerEvent(int state); argument
110 * Also carries the state of the action when the timer is created. Later this state is
114 * @param state state o
117 sendTimerMessage(int state, long delayMillis) argument
132 sendTimerMessage(int state, long delayMillis) argument
161 addTimer(int state, int delayMillis) argument
[all...]
H A DHotplugDetectionAction.java87 void handleTimerEvent(int state) { argument
88 if (mState != state) {
/frameworks/base/services/core/java/com/android/server/media/
H A DMediaSessionStack.java38 * bump priority regardless of the old state.
47 * were entered from a non-priority state.
124 * Notify the priority tracker that a session's state changed.
127 * @param oldState Its old playback state.
128 * @param newState Its new playback state.
137 // playing state
141 // Just clear the volume cache when a state goes inactive
149 * state change. TODO add the old and new session state as params
384 private boolean containsState(int state, in argument
[all...]

Completed in 471 milliseconds

<<11121314151617181920>>