Home
last modified time | relevance | path

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

123456

/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
DTintManager.java238 final int[][] states = new int[7][]; in getDefaultColorStateList() local
243 states[i] = new int[] { -android.R.attr.state_enabled }; in getDefaultColorStateList()
247 states[i] = new int[] { android.R.attr.state_focused }; in getDefaultColorStateList()
251 states[i] = new int[] { android.R.attr.state_activated }; in getDefaultColorStateList()
255 states[i] = new int[] { android.R.attr.state_pressed }; in getDefaultColorStateList()
259 states[i] = new int[] { android.R.attr.state_checked }; in getDefaultColorStateList()
263 states[i] = new int[] { android.R.attr.state_selected }; in getDefaultColorStateList()
268 states[i] = new int[0]; in getDefaultColorStateList()
272 mDefaultColorStateList = new ColorStateList(states, colors); in getDefaultColorStateList()
279 final int[][] states = new int[3][]; in getSwitchTrackColorStateList() local
[all …]
/frameworks/ex/camera2/public/src/com/android/ex/camera2/utils/
DStateWaiter.java120 public int waitForAnyOfStates(Collection<Integer> states, final long timeoutMs) { in waitForAnyOfStates() argument
121 checkStateCollectionInRange(states); in waitForAnyOfStates()
132 appendStateNames(s, states); in waitForAnyOfStates()
143 if (states.contains(nextState)) { in waitForAnyOfStates()
158 if (!states.contains(nextState)) { in waitForAnyOfStates()
162 appendStateNames(s, states); in waitForAnyOfStates()
180 public void appendStateNames(StringBuilder s, Collection<Integer> states) { in appendStateNames() argument
181 checkStateCollectionInRange(states); in appendStateNames()
184 for (Integer state : states) { in appendStateNames()
212 private Collection<Integer> checkStateCollectionInRange(Collection<Integer> states) { in checkStateCollectionInRange() argument
[all …]
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
DCameraStateHolder.java121 public boolean waitForStates(final int states) { in waitForStates() argument
122 Log.v(TAG, "waitForStates - states = " + Integer.toBinaryString(states)); in waitForStates()
126 return (states | getState()) == states; in waitForStates()
139 public boolean waitToAvoidStates(final int states) {
140 Log.v(TAG, "waitToAvoidStates - states = " + Integer.toBinaryString(states));
144 return (states & getState()) == 0;
/frameworks/base/core/java/android/util/
DStateSet.java143 public static int[] trimStateSet(int[] states, int newSize) { in trimStateSet() argument
144 if (states.length == newSize) { in trimStateSet()
145 return states; in trimStateSet()
149 System.arraycopy(states, 0, trimmedStates, 0, newSize); in trimStateSet()
153 public static String dump(int[] states) { in dump() argument
156 int count = states.length; in dump()
159 switch (states[i]) { in dump()
/frameworks/base/libs/androidfw/
DBackupHelpers.cpp981 FileState states[4]; in backup_helper_test_four() local
985 states[0].modTime_sec = 0xfedcba98; in backup_helper_test_four()
986 states[0].modTime_nsec = 0xdeadbeef; in backup_helper_test_four()
987 states[0].mode = 0777; // decimal 511, hex 0x000001ff in backup_helper_test_four()
988 states[0].size = 0xababbcbc; in backup_helper_test_four()
989 states[0].crc32 = 0x12345678; in backup_helper_test_four()
990 states[0].nameLen = -12; in backup_helper_test_four()
991 r.s = states[0]; in backup_helper_test_four()
995 states[1].modTime_sec = 0x93400031; in backup_helper_test_four()
996 states[1].modTime_nsec = 0xdeadbeef; in backup_helper_test_four()
[all …]
/frameworks/ex/camera2/public/src/com/android/ex/camera2/blocking/
DBlockingStateCallback.java164 public int waitForAnyOfStates(Collection<Integer> states, final long timeout) { in waitForAnyOfStates() argument
171 appendStates(s, states); in waitForAnyOfStates()
184 if (states.contains(nextState)) break; in waitForAnyOfStates()
197 if (!states.contains(nextState)) { in waitForAnyOfStates()
201 appendStates(s, states); in waitForAnyOfStates()
219 public static void appendStates(StringBuilder s, Collection<Integer> states) { in appendStates() argument
221 for (Integer state: states) { in appendStates()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
DCdmaServiceStateTracker.java358 String states[] = (String[])ar.result; in handleMessage() local
365 if (states.length > 9) { in handleMessage()
367 if (states[4] != null) { in handleMessage()
368 baseStationId = Integer.parseInt(states[4]); in handleMessage()
370 if (states[5] != null) { in handleMessage()
371 baseStationLatitude = Integer.parseInt(states[5]); in handleMessage()
373 if (states[6] != null) { in handleMessage()
374 baseStationLongitude = Integer.parseInt(states[6]); in handleMessage()
381 if (states[8] != null) { in handleMessage()
382 systemId = Integer.parseInt(states[8]); in handleMessage()
[all …]
DCdmaLteServiceStateTracker.java153 String states[] = (String[])ar.result; in handlePollStateResultMessage() local
156 states.length + " states=" + states); in handlePollStateResultMessage()
161 if (states.length > 0) { in handlePollStateResultMessage()
163 regState = Integer.parseInt(states[0]); in handlePollStateResultMessage()
166 if (states.length >= 4 && states[3] != null) { in handlePollStateResultMessage()
167 type = Integer.parseInt(states[3]); in handlePollStateResultMessage()
173 if (states.length >= 10) { in handlePollStateResultMessage()
207 tac = Integer.decode(states[6]); in handlePollStateResultMessage()
210 states[6] + " e=" + e); in handlePollStateResultMessage()
214 pci = Integer.decode(states[7]); in handlePollStateResultMessage()
[all …]
/frameworks/opt/colorpicker/src/com/android/colorpicker/
DColorStateDrawable.java40 protected boolean onStateChange(int[] states) { in onStateChange() argument
42 for (int state : states) { in onStateChange()
55 return super.onStateChange(states); in onStateChange()
/frameworks/native/libs/binder/
DBufferedTextOutput.cpp84 Vector<sp<BufferedTextOutput::BufferState> > states; member
266 while (ts->states.size() <= (size_t)mIndex) ts->states.add(NULL); in getBuffer()
267 BufferState* bs = ts->states[mIndex].get(); in getBuffer()
270 ts->states.editItemAt(mIndex) = new BufferState(mIndex); in getBuffer()
271 bs = ts->states[mIndex].get(); in getBuffer()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
DGsmServiceStateTracker.java352 String states[] = (String[])ar.result; in handleMessage() local
355 if (states.length >= 3) { in handleMessage()
357 if (states[1] != null && states[1].length() > 0) { in handleMessage()
358 lac = Integer.parseInt(states[1], 16); in handleMessage()
360 if (states[2] != null && states[2].length() > 0) { in handleMessage()
361 cid = Integer.parseInt(states[2], 16); in handleMessage()
681 String states[]; in handlePollStateResult() local
712 states = (String[])ar.result; in handlePollStateResult()
719 if (states.length > 0) { in handlePollStateResult()
721 regState = Integer.parseInt(states[0]); in handlePollStateResult()
[all …]
/frameworks/base/graphics/java/android/graphics/drawable/
DStateListDrawable.java185 final int[] states = extractStateSet(attrs); in inflateChildElements() local
202 state.addStateSet(states, dr); in inflateChildElements()
215 int[] states = new int[numAttrs]; in extractStateSet() local
227 states[j++] = attrs.getAttributeBooleanValue(i, false) in extractStateSet()
231 states = StateSet.trimStateSet(states, j); in extractStateSet()
232 return states; in extractStateSet()
/frameworks/av/media/libstagefright/codecs/aacenc/src/
Dblock_switch.c34 IIRFilter(const Word16 in, const Word32 coeff[], Word32 states[]);
339 static Word16 IIRFilter(const Word16 in, const Word32 coeff[], Word32 states[]) in IIRFilter() argument
345 accu3 = accu1 - states[0]; in IIRFilter()
346 accu2 = fixmul( coeff[0], states[1] ); in IIRFilter()
349 states[0] = accu1; in IIRFilter()
350 states[1] = out; in IIRFilter()
/frameworks/base/core/java/android/text/method/
DMetaKeyKeyListener.java417 public void clearMetaKeyState(View view, Editable content, int states) { in clearMetaKeyState() argument
418 clearMetaKeyState(content, states); in clearMetaKeyState()
421 public static void clearMetaKeyState(Editable content, int states) { in clearMetaKeyState() argument
422 if ((states&META_SHIFT_ON) != 0) content.removeSpan(CAP); in clearMetaKeyState()
423 if ((states&META_ALT_ON) != 0) content.removeSpan(ALT); in clearMetaKeyState()
424 if ((states&META_SYM_ON) != 0) content.removeSpan(SYM); in clearMetaKeyState()
425 if ((states&META_SELECTING) != 0) content.removeSpan(SELECTING); in clearMetaKeyState()
/frameworks/base/core/java/android/content/res/
DColorStateList.java81 public ColorStateList(int[][] states, int[] colors) { in ColorStateList() argument
82 mStateSpecs = states; in ColorStateList()
85 if (states.length > 0) { in ColorStateList()
88 for (int i = 0; i < states.length; i++) { in ColorStateList()
89 if (states[i].length == 0) { in ColorStateList()
/frameworks/base/core/java/android/app/
DActivityGroup.java53 Bundle states = savedInstanceState != null in onCreate() local
55 mLocalActivityManager.dispatchCreate(states); in onCreate()
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java1960 int firstToken = deltaTimeToken | (cur.states&DELTA_STATE_MASK); in writeHistoryDelta()
2009 + " states=0x" + Integer.toHexString(cur.states)); in writeHistoryDelta()
2063 | (h.states&(~DELTA_STATE_MASK)); in buildStateInt()
2109 cur.states = (firstToken&DELTA_STATE_MASK) | (stateInt&(~DELTA_STATE_MASK)); in readHistoryDelta()
2133 + " states=0x" + Integer.toHexString(cur.states)); in readHistoryDelta()
2135 cur.states = (firstToken&DELTA_STATE_MASK) | (cur.states&(~DELTA_STATE_MASK)); in readHistoryDelta()
2196 final int diffStates = mHistoryLastWritten.states^cur.states; in addHistoryBufferLocked()
2198 final int lastDiffStates = mHistoryLastWritten.states^mHistoryLastLastWritten.states; in addHistoryBufferLocked()
2267 || ((mHistoryLastWritten.states^cur.states) in addHistoryBufferLocked()
2320 mHistoryAddTmp.states &= ~HistoryItem.STATE_CPU_RUNNING_FLAG; in addHistoryRecordLocked()
[all …]
/frameworks/base/core/java/com/android/internal/widget/multiwaveview/
DTargetDrawable.java95 int[] states = d.getState(); in isActive() local
96 for (int i = 0; i < states.length; i++) { in isActive()
97 if (states[i] == android.R.attr.state_focused) { in isActive()
/frameworks/base/core/java/android/view/inputmethod/
DInputConnectionWrapper.java117 public boolean clearMetaKeyStates(int states) { in clearMetaKeyStates() argument
118 return mTarget.clearMetaKeyStates(states); in clearMetaKeyStates()
/frameworks/base/core/java/android/bluetooth/
DBluetoothManager.java164 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int profile, int[] states) { in getDevicesMatchingConnectionStates() argument
177 devices = iGatt.getDevicesMatchingConnectionStates(states); in getDevicesMatchingConnectionStates()
DIBluetoothAvrcpController.aidl28 List<BluetoothDevice> getDevicesMatchingConnectionStates(in int[] states); in getDevicesMatchingConnectionStates() argument
DIBluetoothPan.aidl33 List<BluetoothDevice> getDevicesMatchingConnectionStates(in int[] states); in getDevicesMatchingConnectionStates() argument
DIBluetoothA2dpSink.aidl31 List<BluetoothDevice> getDevicesMatchingConnectionStates(in int[] states); in getDevicesMatchingConnectionStates() argument
/frameworks/base/services/core/java/com/android/server/media/
DMediaSessionStack.java348 private boolean containsState(int state, int[] states) { in containsState() argument
349 for (int i = 0; i < states.length; i++) { in containsState()
350 if (states[i] == state) { in containsState()
/frameworks/base/core/java/android/inputmethodservice/
DKeyboard.java479 int[] states = KEY_STATE_NORMAL; in getCurrentDrawableState() local
483 states = KEY_STATE_PRESSED_ON; in getCurrentDrawableState()
485 states = KEY_STATE_NORMAL_ON; in getCurrentDrawableState()
490 states = KEY_STATE_PRESSED_OFF; in getCurrentDrawableState()
492 states = KEY_STATE_NORMAL_OFF; in getCurrentDrawableState()
496 states = KEY_STATE_PRESSED; in getCurrentDrawableState()
500 return states; in getCurrentDrawableState()

123456