Home
last modified time | relevance | path

Searched refs:states (Results 1 – 25 of 40) sorted by relevance

12

/packages/apps/Launcher3/src/com/android/launcher3/
DWorkspaceStateTransitionAnimation.java225 TransitionStates states = new TransitionStates(fromState, toState); in getAnimationToState() local
226 int workspaceDuration = getAnimationDuration(states); in getAnimationToState()
227 animateWorkspace(states, toPage, animated, workspaceDuration, layerViews, in getAnimationToState()
229 animateBackgroundGradient(states, animated, BACKGROUND_FADE_OUT_DURATION); in getAnimationToState()
253 private int getAnimationDuration(TransitionStates states) { in getAnimationDuration() argument
254 if (states.workspaceToAllApps || states.overviewToAllApps) { in getAnimationDuration()
256 } else if (states.workspaceToOverview || states.overviewToWorkspace) { in getAnimationDuration()
266 private void animateWorkspace(final TransitionStates states, int toPage, final boolean animated, in animateWorkspace() argument
279 float finalBackgroundAlpha = (states.stateIsSpringLoaded || states.stateIsOverview) ? in animateWorkspace()
281 … float finalHotseatAndPageIndicatorAlpha = (states.stateIsNormal || states.stateIsSpringLoaded) ? in animateWorkspace()
[all …]
/packages/apps/Messaging/src/com/android/messaging/util/
DSwitchCompatUtils.java68 final int[][] states = new int[3][]; in getSwitchThumbColorStateList() local
72 states[i] = new int[] { -android.R.attr.state_enabled }; in getSwitchThumbColorStateList()
75 states[i] = new int[] { android.R.attr.state_checked }; in getSwitchThumbColorStateList()
79 states[i] = new int[0]; in getSwitchThumbColorStateList()
83 return new ColorStateList(states, colors); in getSwitchThumbColorStateList()
88 final int[][] states = new int[3][]; in getSwitchTrackColorStateList() local
92 states[i] = new int[] { -android.R.attr.state_enabled }; in getSwitchTrackColorStateList()
95 states[i] = new int[] { android.R.attr.state_checked }; in getSwitchTrackColorStateList()
99 states[i] = new int[0]; in getSwitchTrackColorStateList()
102 return new ColorStateList(states, colors); in getSwitchTrackColorStateList()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/state/
DStateAdapter.java84 public boolean same(Vector<State> states) { in same() argument
86 if (states.size() + 1 != getCount()) { in same()
91 if (!state.equals(states.elementAt(i-1))) { in same()
98 public void fill(Vector<State> states) { in fill() argument
99 if (same(states)) { in fill()
104 addAll(states); in fill()
/packages/apps/Launcher2/src/com/android/launcher2/
DHolographicViewHelper.java51 StateListDrawable states = new StateListDrawable(); in generatePressedFocusedStates() local
52 states.addState(new int[] {android.R.attr.state_pressed}, outlineD); in generatePressedFocusedStates()
53 states.addState(new int[] {android.R.attr.state_focused}, outlineD); in generatePressedFocusedStates()
54 states.addState(new int[] {}, originalD); in generatePressedFocusedStates()
55 v.setImageDrawable(states); in generatePressedFocusedStates()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DConversationViewState.java154 final Bundle states = new Bundle(); in writeToParcel() local
157 states.putParcelable(uri.toString(), mvs); in writeToParcel()
159 dest.writeBundle(states); in writeToParcel()
164 final Bundle states = source.readBundle(loader); in ConversationViewState() local
165 for (String key : states.keySet()) { in ConversationViewState()
166 final MessageViewState state = states.getParcelable(key); in ConversationViewState()
/packages/apps/DeskClock/src/com/android/deskclock/timer/
DTimerFragment.java340 final int[] states = computePageIndicatorStates(page, pageIndicatorCount, pageCount); in updatePageIndicators() local
341 for (int i = 0; i < states.length; i++) { in updatePageIndicators()
342 final int state = states[i]; in updatePageIndicators()
382 final int[] states = new int[pageIndicatorCount]; in computePageIndicatorStates() local
383 Arrays.fill(states, 0); in computePageIndicatorStates()
387 return states; in computePageIndicatorStates()
391 Arrays.fill(states, 0, rangeSize, R.drawable.ic_swipe_circle_dark); in computePageIndicatorStates()
395 states[0] = R.drawable.ic_swipe_circle_top; in computePageIndicatorStates()
400 states[rangeSize - 1] = R.drawable.ic_swipe_circle_bottom; in computePageIndicatorStates()
404 states[page - rangeStart] = R.drawable.ic_swipe_circle_light; in computePageIndicatorStates()
[all …]
/packages/apps/Settings/src/com/android/settings/
DDisplay.java43 String[] states = new String[3]; in onCreate() local
45 states[0] = r.getString(R.string.small_font); in onCreate()
46 states[1] = r.getString(R.string.medium_font); in onCreate()
47 states[2] = r.getString(R.string.large_font); in onCreate()
49 android.R.layout.simple_spinner_item, states); in onCreate()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DSearchWidgetProvider.java78 SearchWidgetState[] states = new SearchWidgetState[appWidgetIds.length]; in getSearchWidgetStates() local
80 states[i] = getSearchWidgetState(context, appWidgetIds[i]); in getSearchWidgetStates()
82 return states; in getSearchWidgetStates()
91 SearchWidgetState[] states = getSearchWidgetStates(context); in updateSearchWidgets() local
93 for (SearchWidgetState state : states) { in updateSearchWidgets()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryCellParser.java34 if (((rec.states & HistoryItem.STATE_PHONE_STATE_MASK) in getValue()
38 } else if ((rec.states & HistoryItem.STATE_PHONE_SCANNING_FLAG) != 0) { in getValue()
41 bin = (rec.states & HistoryItem.STATE_PHONE_SIGNAL_STRENGTH_MASK) in getValue()
DBatteryHistoryChart.java565 aggrStates |= rec.states; in setStats()
832 (rec.states&HistoryItem.STATE_BATTERY_PLUGGED_FLAG) != 0; in onSizeChanged()
843 (rec.states&HistoryItem.STATE_SCREEN_ON_FLAG) != 0; in onSizeChanged()
854 (rec.states&HistoryItem.STATE_GPS_ON_FLAG) != 0; in onSizeChanged()
908 if ((rec.states&(HistoryItem.STATE_WIFI_FULL_LOCK_FLAG in onSizeChanged()
923 (rec.states&HistoryItem.STATE_CPU_RUNNING_FLAG) != 0; in onSizeChanged()
935 if (((rec.states&HistoryItem.STATE_PHONE_STATE_MASK) in onSizeChanged()
939 } else if ((rec.states&HistoryItem.STATE_PHONE_SCANNING_FLAG) != 0) { in onSizeChanged()
942 bin = (rec.states&HistoryItem.STATE_PHONE_SIGNAL_STRENGTH_MASK) in onSizeChanged()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/
DPbapClientService.java182 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates() argument
187 return service.getDevicesMatchingConnectionStates(states); in getDevicesMatchingConnectionStates()
286 private List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates() argument
289 … Log.d(TAG,"getDevicesMatchingConnectionStates " + Arrays.toString(states) + " == " + clientState); in getDevicesMatchingConnectionStates()
291 for (int state : states) { in getDevicesMatchingConnectionStates()
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/
DA2dpSinkService.java151 List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates() argument
153 return mStateMachine.getDevicesMatchingConnectionStates(states); in getDevicesMatchingConnectionStates()
278 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates() argument
281 return service.getDevicesMatchingConnectionStates(states); in getDevicesMatchingConnectionStates()
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
DA2dpService.java170 List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates() argument
172 return mStateMachine.getDevicesMatchingConnectionStates(states); in getDevicesMatchingConnectionStates()
273 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates() argument
276 return service.getDevicesMatchingConnectionStates(states); in getDevicesMatchingConnectionStates()
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
DKeyboard.java492 int[] states = KEY_STATE_NORMAL; in getCurrentDrawableState() local
496 states = KEY_STATE_PRESSED_ON; in getCurrentDrawableState()
498 states = KEY_STATE_NORMAL_ON; in getCurrentDrawableState()
503 states = KEY_STATE_PRESSED_OFF; in getCurrentDrawableState()
505 states = KEY_STATE_NORMAL_OFF; in getCurrentDrawableState()
509 states = KEY_STATE_PRESSED; in getCurrentDrawableState()
513 return states; in getCurrentDrawableState()
/packages/apps/Bluetooth/src/com/android/bluetooth/hdp/
DHealthService.java396 public List<BluetoothDevice> getHealthDevicesMatchingConnectionStates(int[] states) { in getHealthDevicesMatchingConnectionStates() argument
399 return service.getHealthDevicesMatchingConnectionStates(states); in getHealthDevicesMatchingConnectionStates()
481 List<BluetoothDevice> getHealthDevicesMatchingConnectionStates(int[] states) { in getHealthDevicesMatchingConnectionStates() argument
483 List<BluetoothDevice> devices = lookupHealthDevicesMatchingStates(states); in getHealthDevicesMatchingConnectionStates()
755 private List<HealthChannel> findChannelByStates(BluetoothDevice device, int[] states) { in findChannelByStates() argument
759 for (int state : states) { in findChannelByStates()
776 List<BluetoothDevice> lookupHealthDevicesMatchingStates(int[] states) { in lookupHealthDevicesMatchingStates() argument
781 for (int state : states) { in lookupHealthDevicesMatchingStates()
/packages/apps/Dialer/InCallUI/src/com/android/incallui/widget/multiwaveview/
DTargetDrawable.java100 int[] states = d.getState(); in isActive() local
101 for (int i = 0; i < states.length; i++) { in isActive()
102 if (states[i] == android.R.attr.state_focused) { in isActive()
/packages/apps/Settings/src/com/android/settings/vpn2/
DManageablePreference.java87 final String[] states = res.getStringArray(R.array.vpn_states); in updateSummary() local
88 String summary = (mState == STATE_NONE ? "" : states[mState]); in updateSummary()
/packages/apps/TV/src/com/android/tv/guide/
DProgramItemView.java233 int states[] = super.onCreateDrawableState(extraSpace in onCreateDrawableState() local
236 mergeDrawableStates(states, STATE_CURRENT_PROGRAM); in onCreateDrawableState()
239 mergeDrawableStates(states, STATE_TOO_WIDE); in onCreateDrawableState()
241 return states; in onCreateDrawableState()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetService.java164 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates() argument
167 return service.getDevicesMatchingConnectionStates(states); in getDevicesMatchingConnectionStates()
384 private List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates() argument
386 return mStateMachine.getDevicesMatchingConnectionStates(states); in getDevicesMatchingConnectionStates()
/packages/apps/Bluetooth/src/com/android/bluetooth/sap/
DSapService.java521 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates() argument
532 for(int i = 0; i < states.length; i++) { in getDevicesMatchingConnectionStates()
533 if (connectionState == states[i]) { in getDevicesMatchingConnectionStates()
847 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates() argument
851 return service.getDevicesMatchingConnectionStates(states); in getDevicesMatchingConnectionStates()
/packages/apps/Bluetooth/src/com/android/bluetooth/pan/
DPanService.java251 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates() argument
254 return service.getDevicesMatchingConnectionStates(states); in getDevicesMatchingConnectionStates()
321 List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates() argument
327 for (int state : states) { in getDevicesMatchingConnectionStates()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/
DHeadsetClientService.java198 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates() argument
203 return service.getDevicesMatchingConnectionStates(states); in getDevicesMatchingConnectionStates()
516 private List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates() argument
518 return mStateMachine.getDevicesMatchingConnectionStates(states); in getDevicesMatchingConnectionStates()
/packages/apps/Bluetooth/src/com/android/bluetooth/hid/
DHidService.java341 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates() argument
344 return service.getDevicesMatchingConnectionStates(states); in getDevicesMatchingConnectionStates()
428 List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates() argument
434 for (int state : states) { in getDevicesMatchingConnectionStates()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/
DAvrcpControllerService.java185 List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates() argument
187 for (int i = 0; i < states.length; i++) { in getDevicesMatchingConnectionStates()
188 if (states[i] == BluetoothProfile.STATE_CONNECTED) { in getDevicesMatchingConnectionStates()
414 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates() argument
417 return service.getDevicesMatchingConnectionStates(states); in getDevicesMatchingConnectionStates()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapService.java542 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates() argument
553 for(int i = 0; i < states.length; i++) { in getDevicesMatchingConnectionStates()
554 if (connectionState == states[i]) { in getDevicesMatchingConnectionStates()
1238 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates() argument
1242 return service.getDevicesMatchingConnectionStates(states); in getDevicesMatchingConnectionStates()

12