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

12

/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 DHolographicViewHelper.java42 * Generate the pressed/focused states if necessary.
54 StateListDrawable states = new StateListDrawable();
56 states.addState(new int[] {android.R.attr.state_pressed}, outlineD);
57 states.addState(new int[] {android.R.attr.state_focused}, outlineD);
58 states.addState(new int[] {R.attr.stateHotwordOn}, hotwordD);
59 states.addState(new int[] {}, originalD);
60 v.setImageDrawable(states);
65 * Invalidates the pressed/focused states.
/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.
H A DCellLayout.java583 public void restoreInstanceState(SparseArray<Parcelable> states) { argument
584 dispatchRestoreInstanceState(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/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/
H A DInputModeSwitcher.java207 * Maximum toggle states for a soft keyboard.
365 * Used to store all other toggle states for the current input mode.
370 * Number of states to toggle.
738 int states[] = mToggleStates.mKeyStates;
748 // Chinese and Chinese symbol are always the default states,
754 states[statesNum] = mToggleStateSmiley;
762 states[statesNum] = mToggleStateEnLower;
765 states[statesNum] = mToggleStateEnUpper;
769 states[statesNum] = mToggleStateEnSym1;
772 states[statesNu
[all...]
H A DSoftKeyboard.java412 int states[] = toggleStates.mKeyStates;
429 states[statePos], statePos == 0);
/packages/apps/Contacts/src/com/android/contacts/widget/
H A DTextHighlightingAnimation.java149 int[] states = ds.drawableState;
150 if (states != null) {
151 int count = states.length;
153 switch (states[i]) {
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DConversationViewState.java162 final Bundle states = new Bundle();
165 states.putParcelable(uri.toString(), mvs);
167 dest.writeBundle(states);
172 final Bundle states = source.readBundle(loader);
173 for (String key : states.keySet()) {
174 final MessageViewState state = states.getParcelable(key);
/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/Bluetooth/src/com/android/bluetooth/a2dp/
H A DA2dpService.java150 List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { argument
152 return mStateMachine.getDevicesMatchingConnectionStates(states);
243 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { argument
246 return service.getDevicesMatchingConnectionStates(states);
H A DA2dpStateMachine.java92 // Stable states
97 // Interim states
655 synchronized List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { argument
666 for(int i = 0; i < states.length; i++) {
667 if (connectionState == states[i]) {
/packages/apps/DeskClock/src/com/android/deskclock/widget/multiwaveview/
H A DTargetDrawable.java98 int[] states = d.getState();
99 for (int i = 0; i < states.length; i++) {
100 if (states[i] == android.R.attr.state_focused) {
/packages/apps/InCallUI/src/com/android/incallui/widget/multiwaveview/
H A DTargetDrawable.java98 int[] states = d.getState();
99 for (int i = 0; i < states.length; i++) {
100 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/hfp/
H A DHeadsetService.java161 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { argument
164 return service.getDevicesMatchingConnectionStates(states);
353 private List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { argument
355 return mStateMachine.getDevicesMatchingConnectionStates(states);
H A DHeadsetStateMachine.java147 // Stable states
152 // Interim states
797 // TODO(BT) process other states
1221 List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { argument
1232 for(int i = 0; i < states.length; i++) {
1233 if (connectionState == states[i]) {
/packages/apps/Settings/src/com/android/settings/fuelgauge/
H A DBatteryHistoryChart.java374 aggrStates |= rec.states;
563 (rec.states&HistoryItem.STATE_BATTERY_PLUGGED_FLAG) != 0;
574 (rec.states&HistoryItem.STATE_SCREEN_ON_FLAG) != 0;
585 (rec.states&HistoryItem.STATE_GPS_ON_FLAG) != 0;
596 (rec.states&HistoryItem.STATE_WIFI_RUNNING_FLAG) != 0;
607 (rec.states&HistoryItem.STATE_WAKE_LOCK_FLAG) != 0;
619 if (((rec.states&HistoryItem.STATE_PHONE_STATE_MASK)
623 } else if ((rec.states&HistoryItem.STATE_PHONE_SCANNING_FLAG) != 0) {
626 bin = (rec.states&HistoryItem.STATE_SIGNAL_STRENGTH_MASK)
/packages/apps/Bluetooth/src/com/android/bluetooth/hdp/
H A DHealthService.java393 public List<BluetoothDevice> getHealthDevicesMatchingConnectionStates(int[] states) { argument
396 return service.getHealthDevicesMatchingConnectionStates(states);
478 List<BluetoothDevice> getHealthDevicesMatchingConnectionStates(int[] states) { argument
480 List<BluetoothDevice> devices = lookupHealthDevicesMatchingStates(states);
752 private List<HealthChannel> findChannelByStates(BluetoothDevice device, int[] states) { argument
756 for (int state : states) {
773 List<BluetoothDevice> lookupHealthDevicesMatchingStates(int[] states) { argument
778 for (int state : states) {
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
H A DBluetoothMapService.java543 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { argument
554 for(int i = 0; i < states.length; i++) {
555 if (connectionState == states[i]) {
768 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { argument
772 return service.getDevicesMatchingConnectionStates(states);
/packages/apps/Bluetooth/src/com/android/bluetooth/hid/
H A DHidService.java324 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { argument
327 return service.getDevicesMatchingConnectionStates(states);
411 List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { argument
417 for (int state : states) {
/packages/apps/Bluetooth/src/com/android/bluetooth/pan/
H A DPanService.java280 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { argument
283 return service.getDevicesMatchingConnectionStates(states);
345 List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { argument
351 for (int state : 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/apps/Settings/src/com/android/settings/vpn2/
H A DVpnSettings.java433 String[] states = getContext().getResources()
435 setSummary(states[mState]);
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
H A DGattService.java238 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { argument
241 return service.getDevicesMatchingConnectionStates(states);
852 List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { argument
887 for(int state : states) {

Completed in 980 milliseconds

12