Searched refs:states (Results 1 - 25 of 31) sorted by relevance

12

/packages/apps/Messaging/src/com/android/messaging/util/
H A DSwitchCompatUtils.java68 final int[][] states = new int[3][];
72 states[i] = new int[] { -android.R.attr.state_enabled };
75 states[i] = new int[] { android.R.attr.state_checked };
79 states[i] = new int[0];
83 return new ColorStateList(states, colors);
88 final int[][] states = new int[3][];
92 states[i] = new int[] { -android.R.attr.state_enabled };
95 states[i] = new int[] { android.R.attr.state_checked };
99 states[i] = new int[0];
102 return new ColorStateList(states, color
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/state/
H A DStateAdapter.java84 public boolean same(Vector<State> states) { argument
86 if (states.size() + 1 != getCount()) {
91 if (!state.equals(states.elementAt(i-1))) {
98 public void fill(Vector<State> states) { argument
99 if (same(states)) {
104 addAll(states);
/packages/apps/Launcher3/src/com/android/launcher3/
H A DWorkspaceStateTransitionAnimation.java125 * Stores the transition states for convenience.
129 // Raw states
171 * Manages the animations between each of the workspace states.
225 TransitionStates states = new TransitionStates(fromState, toState);
226 int workspaceDuration = getAnimationDuration(states);
227 animateWorkspace(states, toPage, animated, workspaceDuration, layerViews,
229 animateBackgroundGradient(states, animated, BACKGROUND_FADE_OUT_DURATION);
253 private int getAnimationDuration(TransitionStates states) { argument
254 if (states.workspaceToAllApps || states
266 animateWorkspace(final TransitionStates states, int toPage, final boolean animated, final int duration, final HashMap<View, Integer> layerViews, final boolean accessibilityEnabled) argument
480 animateBackgroundGradient(TransitionStates states, boolean animated, int duration) argument
[all...]
/packages/apps/Launcher2/src/com/android/launcher2/
H A DHolographicViewHelper.java41 * Generate the pressed/focused states if necessary.
51 StateListDrawable states = new StateListDrawable();
52 states.addState(new int[] {android.R.attr.state_pressed}, outlineD);
53 states.addState(new int[] {android.R.attr.state_focused}, outlineD);
54 states.addState(new int[] {}, originalD);
55 v.setImageDrawable(states);
60 * Invalidates the pressed/focused states.
/packages/apps/Settings/src/com/android/settings/
H A DDisplay.java44 String[] states = new String[3];
46 states[0] = r.getString(R.string.small_font);
47 states[1] = r.getString(R.string.medium_font);
48 states[2] = r.getString(R.string.large_font);
50 android.R.layout.simple_spinner_item, states);
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
H A DA2dpSinkService.java136 List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { argument
138 return mStateMachine.getDevicesMatchingConnectionStates(states);
195 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { argument
198 return service.getDevicesMatchingConnectionStates(states);
H A DA2dpService.java170 List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { argument
172 return mStateMachine.getDevicesMatchingConnectionStates(states);
267 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { argument
270 return service.getDevicesMatchingConnectionStates(states);
H A DA2dpSinkStateMachine.java91 // Stable states
96 // Interim states
659 synchronized List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { argument
670 for(int i = 0; i < states.length; i++) {
671 if (connectionState == states[i]) {
H A DA2dpStateMachine.java88 // Stable states
93 // Interim states
691 synchronized List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { argument
702 for(int i = 0; i < states.length; i++) {
703 if (connectionState == states[i]) {
/packages/apps/Settings/src/com/android/settings/vpn2/
H A DConfigPreference.java60 String[] states = getContext().getResources()
62 setSummary(states[mState]);
H A DAppPreference.java86 final String[] states = getContext().getResources().getStringArray(R.array.vpn_states);
87 setSummary(mState != STATE_DISCONNECTED ? states[mState] : "");
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DConversationViewState.java154 final Bundle states = new Bundle();
157 states.putParcelable(uri.toString(), mvs);
159 dest.writeBundle(states);
164 final Bundle states = source.readBundle(loader);
165 for (String key : states.keySet()) {
166 final MessageViewState state = states.getParcelable(key);
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/
H A DAvrcpControllerService.java139 List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { argument
141 for (int i = 0; i < states.length; i++) {
142 if (states[i] == BluetoothProfile.STATE_CONNECTED) {
199 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { argument
202 return service.getDevicesMatchingConnectionStates(states);
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
H A DSearchWidgetProvider.java78 SearchWidgetState[] states = new SearchWidgetState[appWidgetIds.length];
80 states[i] = getSearchWidgetState(context, appWidgetIds[i]);
82 return states;
91 SearchWidgetState[] states = getSearchWidgetStates(context);
93 for (SearchWidgetState state : states) {
/packages/apps/InCallUI/src/com/android/incallui/widget/multiwaveview/
H A DTargetDrawable.java100 int[] states = d.getState();
101 for (int i = 0; i < states.length; i++) {
102 if (states[i] == android.R.attr.state_focused) {
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
H A DKeyboard.java492 int[] states = KEY_STATE_NORMAL;
496 states = KEY_STATE_PRESSED_ON;
498 states = KEY_STATE_NORMAL_ON;
503 states = KEY_STATE_PRESSED_OFF;
505 states = KEY_STATE_NORMAL_OFF;
509 states = KEY_STATE_PRESSED;
513 return states;
/packages/apps/Bluetooth/src/com/android/bluetooth/hdp/
H A DHealthService.java396 public List<BluetoothDevice> getHealthDevicesMatchingConnectionStates(int[] states) { argument
399 return service.getHealthDevicesMatchingConnectionStates(states);
481 List<BluetoothDevice> getHealthDevicesMatchingConnectionStates(int[] states) { argument
483 List<BluetoothDevice> devices = lookupHealthDevicesMatchingStates(states);
755 private List<HealthChannel> findChannelByStates(BluetoothDevice device, int[] states) { argument
759 for (int state : states) {
776 List<BluetoothDevice> lookupHealthDevicesMatchingStates(int[] states) { argument
781 for (int state : states) {
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
H A DHeadsetService.java162 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { argument
165 return service.getDevicesMatchingConnectionStates(states);
367 private List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { argument
369 return mStateMachine.getDevicesMatchingConnectionStates(states);
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/
H A DHeadsetClientService.java175 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { argument
180 return service.getDevicesMatchingConnectionStates(states);
475 private List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { argument
477 return mStateMachine.getDevicesMatchingConnectionStates(states);
/packages/apps/Bluetooth/src/com/android/bluetooth/pan/
H A DPanService.java251 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { argument
254 return service.getDevicesMatchingConnectionStates(states);
321 List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { argument
327 for (int state : states) {
/packages/apps/Settings/src/com/android/settings/fuelgauge/
H A DBatteryHistoryChart.java610 aggrStates |= rec.states;
877 (rec.states&HistoryItem.STATE_BATTERY_PLUGGED_FLAG) != 0;
888 (rec.states&HistoryItem.STATE_SCREEN_ON_FLAG) != 0;
899 (rec.states&HistoryItem.STATE_GPS_ON_FLAG) != 0;
953 if ((rec.states&(HistoryItem.STATE_WIFI_FULL_LOCK_FLAG
968 (rec.states&HistoryItem.STATE_CPU_RUNNING_FLAG) != 0;
980 if (((rec.states&HistoryItem.STATE_PHONE_STATE_MASK)
984 } else if ((rec.states&HistoryItem.STATE_PHONE_SCANNING_FLAG) != 0) {
987 bin = (rec.states&HistoryItem.STATE_PHONE_SIGNAL_STRENGTH_MASK)
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
H A DBluetoothMapService.java490 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { argument
501 for(int i = 0; i < states.length; i++) {
502 if (connectionState == states[i]) {
1124 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { argument
1128 return service.getDevicesMatchingConnectionStates(states);
/packages/apps/Bluetooth/src/com/android/bluetooth/sap/
H A DSapService.java517 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { argument
528 for(int i = 0; i < states.length; i++) {
529 if (connectionState == states[i]) {
834 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { argument
838 return service.getDevicesMatchingConnectionStates(states);
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/
H A DImagePreset.java590 Vector<State> states = new Vector<State>();
598 states.add(state);
600 imageStateAdapter.fill(states);
/packages/services/Telecomm/src/com/android/server/telecom/
H A DCallsManager.java760 // figure out the right states.
1101 // We do not check states for canAddCall. We treat disconnected calls the same
1144 Call getFirstCallWithState(int... states) { argument
1145 return getFirstCallWithState(null, states);
1149 * Returns the first call that it finds with the given states. The states are treated as having
1151 * states listed later in the parameter list.
1155 Call getFirstCallWithState(Call callToSkip, int... states) { argument
1156 for (int currentState : states) {
1443 private int getNumCallsWithState(int... states) { argument
[all...]

Completed in 438 milliseconds

12