Home
last modified time | relevance | path

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

123

/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/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.java438 final int[] states = computePageIndicatorStates(page, pageIndicatorCount, pageCount); in updatePageIndicators() local
439 for (int i = 0; i < states.length; i++) { in updatePageIndicators()
440 final int state = states[i]; in updatePageIndicators()
480 final int[] states = new int[pageIndicatorCount]; in computePageIndicatorStates() local
481 Arrays.fill(states, 0); in computePageIndicatorStates()
485 return states; in computePageIndicatorStates()
489 Arrays.fill(states, 0, rangeSize, R.drawable.ic_swipe_circle_dark); in computePageIndicatorStates()
493 states[0] = R.drawable.ic_swipe_circle_top; in computePageIndicatorStates()
498 states[rangeSize - 1] = R.drawable.ic_swipe_circle_bottom; in computePageIndicatorStates()
502 states[page - rangeStart] = R.drawable.ic_swipe_circle_light; in computePageIndicatorStates()
[all …]
/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/Bluetooth/src/com/android/bluetooth/a2dpsink/
DA2dpSinkService.java156 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates() argument
161 return service.getDevicesMatchingConnectionStates(states); in getDevicesMatchingConnectionStates()
289 List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates() argument
290 if (DBG) Log.d(TAG, "getDevicesMatchingConnectionStates" + Arrays.toString(states)); in getDevicesMatchingConnectionStates()
297 for (int i = 0; i < states.length; i++) { in getDevicesMatchingConnectionStates()
298 if (connectionState == states[i]) { in getDevicesMatchingConnectionStates()
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/
DMapClientService.java195 public synchronized List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates() argument
196 if (DBG) Log.d(TAG, "getDevicesMatchingConnectionStates" + Arrays.toString(states)); in getDevicesMatchingConnectionStates()
203 for (int i = 0; i < states.length; i++) { in getDevicesMatchingConnectionStates()
204 if (connectionState == states[i]) { in getDevicesMatchingConnectionStates()
463 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates() argument
471 return service.getDevicesMatchingConnectionStates(states); in getDevicesMatchingConnectionStates()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/
DAvrcpControllerService.java229 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates() argument
234 return service.getDevicesMatchingConnectionStates(states); in getDevicesMatchingConnectionStates()
666 List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates() argument
667 if (DBG) Log.d(TAG, "getDevicesMatchingConnectionStates" + Arrays.toString(states)); in getDevicesMatchingConnectionStates()
674 for (int i = 0; i < states.length; i++) { in getDevicesMatchingConnectionStates()
675 if (connectionState == states[i]) { in getDevicesMatchingConnectionStates()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherState.java40 import static com.android.launcher3.states.RotationHelper.REQUEST_NONE;
45 import com.android.launcher3.states.SpringLoadedState;
47 import com.android.launcher3.uioverrides.states.AllAppsState;
48 import com.android.launcher3.uioverrides.states.OverviewState;
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DBaseItemDragListener.java20 import static com.android.launcher3.states.RotationHelper.REQUEST_LOCK;
21 import static com.android.launcher3.states.RotationHelper.REQUEST_NONE;
39 import com.android.launcher3.states.InternalStateHandler;
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/
DPbapClientService.java238 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates() argument
243 return service.getDevicesMatchingConnectionStates(states); in getDevicesMatchingConnectionStates()
342 private List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates() argument
349 for (int state : states) { in getDevicesMatchingConnectionStates()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
DBluetoothPbapService.java445 List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates() argument
448 if (mPbapStateMachineMap == null || states == null) { in getDevicesMatchingConnectionStates()
452 for (int state : states) { in getDevicesMatchingConnectionStates()
624 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates() argument
632 return service.getDevicesMatchingConnectionStates(states); in getDevicesMatchingConnectionStates()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/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/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/Bluetooth/src/com/android/bluetooth/hearingaid/
DHearingAidService.java376 List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates() argument
379 if (states == null) { in getDevicesMatchingConnectionStates()
397 for (int state : states) { in getDevicesMatchingConnectionStates()
849 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates() argument
854 return service.getDevicesMatchingConnectionStates(states); in getDevicesMatchingConnectionStates()
/packages/apps/Bluetooth/src/com/android/bluetooth/hid/
DHidDeviceService.java445 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates() argument
448 "getDevicesMatchingConnectionStates(): states=" + Arrays.toString(states)); in getDevicesMatchingConnectionStates()
456 return service.getDevicesMatchingConnectionStates(states); in getDevicesMatchingConnectionStates()
712 List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates() argument
717 for (int state : states) { in getDevicesMatchingConnectionStates()
/packages/apps/Bluetooth/src/com/android/bluetooth/sap/
DSapService.java567 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates() argument
578 for (int i = 0; i < states.length; i++) { in getDevicesMatchingConnectionStates()
579 if (connectionState == states[i]) { in getDevicesMatchingConnectionStates()
960 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates() argument
966 return service.getDevicesMatchingConnectionStates(states); in getDevicesMatchingConnectionStates()
/packages/apps/Launcher3/src/com/android/launcher3/states/
DSpringLoadedState.java16 package com.android.launcher3.states;
19 import static com.android.launcher3.states.RotationHelper.REQUEST_LOCK;
/packages/apps/TV/src/com/android/tv/guide/
DProgramItemView.java270 int[] states = in onCreateDrawableState() local
274 mergeDrawableStates(states, STATE_CURRENT_PROGRAM); in onCreateDrawableState()
277 mergeDrawableStates(states, STATE_TOO_WIDE); in onCreateDrawableState()
279 return states; in onCreateDrawableState()
/packages/apps/Bluetooth/src/com/android/bluetooth/pan/
DPanService.java309 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates() argument
314 return service.getDevicesMatchingConnectionStates(states); in getDevicesMatchingConnectionStates()
425 List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates() argument
431 for (int state : states) { in getDevicesMatchingConnectionStates()
/packages/apps/Launcher3/go/quickstep/src/com/android/launcher3/uioverrides/states/
DOverviewState.java17 package com.android.launcher3.uioverrides.states;
33 import static com.android.launcher3.states.RotationHelper.REQUEST_ROTATE;
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
DA2dpService.java371 List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates() argument
374 if (states == null) { in getDevicesMatchingConnectionStates()
392 for (int state : states) { in getDevicesMatchingConnectionStates()
1185 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates() argument
1190 return service.getDevicesMatchingConnectionStates(states); in getDevicesMatchingConnectionStates()
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/slices/
DNotificationChannelSliceTest.java390 final Map<String, NotificationBackend.NotificationsSentState> states = new ArrayMap<>(); in buildNotificationSentStates() local
396 states.put(CHANNEL_NAME_PREFIX + i, state); in buildNotificationSentStates()
399 return states; in buildNotificationSentStates()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/
DHeadsetClientService.java242 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates() argument
247 return service.getDevicesMatchingConnectionStates(states); in getDevicesMatchingConnectionStates()
516 private synchronized List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states) { in getDevicesMatchingConnectionStates() argument
520 for (int state : states) { in getDevicesMatchingConnectionStates()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/states/
DOverviewState.java16 package com.android.launcher3.uioverrides.states;
33 import static com.android.launcher3.states.RotationHelper.REQUEST_ROTATE;

123