/packages/apps/Messaging/src/com/android/messaging/util/ |
H A D | SwitchCompatUtils.java | 68 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/Launcher3/src/com/android/launcher3/ |
H A D | WorkspaceStateTransitionAnimation.java | 125 * 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 duration = getAnimationDuration(states); 227 animateWorkspace(states, toPage, animated, duration, layerViews, 229 animateSearchBar(states, animated, duration, hasOverlaySearchBar, layerViews, 231 animateBackgroundGradient(states, animated, BACKGROUND_FADE_OUT_DURATION); 255 private int getAnimationDuration(TransitionStates states) { argument 256 if (states 268 animateWorkspace(final TransitionStates states, int toPage, final boolean animated, final int duration, final HashMap<View, Integer> layerViews, final boolean accessibilityEnabled) argument 482 animateSearchBar(TransitionStates states, boolean animated, int duration, boolean hasOverlaySearchBar, final HashMap<View, Integer> layerViews, final boolean accessibilityEnabled) argument 548 animateBackgroundGradient(TransitionStates states, boolean animated, int duration) argument [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/state/ |
H A D | StateAdapter.java | 84 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/Launcher2/src/com/android/launcher2/ |
H A D | HolographicViewHelper.java | 41 * 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 D | Display.java | 44 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 D | A2dpSinkService.java | 136 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 D | A2dpService.java | 170 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 D | A2dpSinkStateMachine.java | 91 // 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 D | A2dpStateMachine.java | 88 // 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 D | ConfigPreference.java | 60 String[] states = getContext().getResources() 62 setSummary(states[mState]);
|
H A D | AppPreference.java | 86 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 D | ConversationViewState.java | 154 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 D | AvrcpControllerService.java | 139 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 D | SearchWidgetProvider.java | 78 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 D | TargetDrawable.java | 100 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 D | Keyboard.java | 492 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 D | HealthService.java | 396 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 D | HeadsetService.java | 162 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 D | HeadsetClientService.java | 175 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 D | PanService.java | 251 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 D | BatteryHistoryChart.java | 610 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 D | BluetoothMapService.java | 490 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 D | SapService.java | 518 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { argument 529 for(int i = 0; i < states.length; i++) { 530 if (connectionState == states[i]) { 835 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { argument 839 return service.getDevicesMatchingConnectionStates(states);
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/ |
H A D | ImagePreset.java | 590 Vector<State> states = new Vector<State>(); 598 states.add(state); 600 imageStateAdapter.fill(states);
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
H A D | CallsManager.java | 754 // figure out the right states. 1095 // We do not check states for canAddCall. We treat disconnected calls the same 1138 Call getFirstCallWithState(int... states) { argument 1139 return getFirstCallWithState(null, states); 1143 * Returns the first call that it finds with the given states. The states are treated as having 1145 * states listed later in the parameter list. 1149 Call getFirstCallWithState(Call callToSkip, int... states) { argument 1150 for (int currentState : states) { 1437 private int getNumCallsWithState(int... states) { argument [all...] |