/frameworks/ex/camera2/public/src/com/android/ex/camera2/utils/ |
D | StateWaiter.java | 120 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/ |
D | CameraStateHolder.java | 121 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/native/libs/binder/include/binder/ |
D | ProcessInfoService.h | 37 status_t getProcessStatesImpl(size_t length, /*in*/ int32_t* pids, /*out*/ int32_t* states); 39 /*out*/ int32_t* states, /*out*/ int32_t *scores); 55 /*out*/ int32_t* states) { in getProcessStatesFromPids() argument 57 /*out*/ states); in getProcessStatesFromPids() 71 /*out*/ int32_t* states, /*out*/ int32_t *scores) { in getProcessStatesScoresFromPids() argument 73 length, /*in*/ pids, /*out*/ states, /*out*/ scores); in getProcessStatesScoresFromPids()
|
D | IProcessInfoService.h | 32 /*out*/ int32_t* states) = 0; 36 /*out*/ int32_t* states,
|
/frameworks/native/libs/binder/ |
D | IProcessInfoService.cpp | 32 /*out*/ int32_t* states) in getProcessStatesFromPids() argument 46 if (replyLen > 0 && (err = reply.read(states, length * sizeof(*states))) != NO_ERROR) { in getProcessStatesFromPids() 53 /*in*/ int32_t* pids, /*out*/ int32_t* states, /*out*/ int32_t* scores) in getProcessStatesAndOomScoresFromPids() argument 72 states, length * sizeof(*states))) != NO_ERROR) { in getProcessStatesAndOomScoresFromPids()
|
D | ProcessInfoService.cpp | 30 /*out*/ int32_t* states) { in getProcessStatesImpl() argument 40 err = pis->getProcessStatesFromPids(length, /*in*/ pids, /*out*/ states); in getProcessStatesImpl() 61 /*in*/ int32_t* pids, /*out*/ int32_t* states, in getProcessStatesScoresImpl() argument 73 /*in*/ pids, /*out*/ states, /*out*/ scores); in getProcessStatesScoresImpl()
|
D | BufferedTextOutput.cpp | 87 Vector<sp<BufferedTextOutput::BufferState> > states; member 269 while (ts->states.size() <= (size_t)mIndex) ts->states.add(NULL); in getBuffer() 270 BufferState* bs = ts->states[mIndex].get(); in getBuffer() 273 ts->states.editItemAt(mIndex) = new BufferState(mIndex); in getBuffer() 274 bs = ts->states[mIndex].get(); in getBuffer()
|
/frameworks/base/libs/androidfw/ |
D | BackupHelpers.cpp | 981 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/ |
D | BlockingStateCallback.java | 172 public int waitForAnyOfStates(Collection<Integer> states, final long timeout) { in waitForAnyOfStates() argument 181 appendStates(s, states); in waitForAnyOfStates() 194 if (states.contains(nextState)) break; in waitForAnyOfStates() 207 if (!states.contains(nextState)) { in waitForAnyOfStates() 211 appendStates(s, states); in waitForAnyOfStates() 229 public static void appendStates(StringBuilder s, Collection<Integer> states) { in appendStates() argument 231 for (Integer state : states) { in appendStates()
|
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/ |
D | VolumeDialogController.java | 94 public final SparseArray<StreamState> states = new SparseArray<>(); field in VolumeDialogController.State 105 for (int i = 0; i < states.size(); i++) { in copy() 106 rt.states.put(states.keyAt(i), states.valueAt(i).copy()); in copy() 127 for (int i = 0; i < states.size(); i++) { in toString() 131 final int stream = states.keyAt(i); in toString() 132 final StreamState ss = states.valueAt(i); in toString()
|
/frameworks/base/core/java/android/util/ |
D | StateSet.java | 254 public static int[] trimStateSet(int[] states, int newSize) { in trimStateSet() argument 255 if (states.length == newSize) { in trimStateSet() 256 return states; in trimStateSet() 260 System.arraycopy(states, 0, trimmedStates, 0, newSize); in trimStateSet() 264 public static String dump(int[] states) { in dump() argument 267 int count = states.length; in dump() 270 switch (states[i]) { in dump()
|
/frameworks/opt/colorpicker/src/com/android/colorpicker/ |
D | ColorStateDrawable.java | 40 protected boolean onStateChange(int[] states) { in onStateChange() argument 42 for (int state : states) { in onStateChange() 55 return super.onStateChange(states); in onStateChange()
|
/frameworks/base/services/core/jni/ |
D | com_android_server_am_BatteryStatsService.cpp | 213 [&env, &jrpmStats](hidl_vec<PowerStatePlatformSleepState> states, Status status) { in getLowPowerStats() argument 217 for (size_t i = 0; i < states.size(); i++) { in getLowPowerStats() 218 const PowerStatePlatformSleepState& state = states[i]; in getLowPowerStats() 268 for (size_t j = 0; j < subsystem.states.size(); j++) { in getLowPowerStats() 269 const PowerStateSubsystemSleepState& state = subsystem.states[j]; in getLowPowerStats() 304 [&offset, &remaining, &total_added](hidl_vec<PowerStatePlatformSleepState> states, in getPlatformLowPowerStats() 308 for (size_t i = 0; i < states.size(); i++) { in getPlatformLowPowerStats() 310 const PowerStatePlatformSleepState& state = states[i]; in getPlatformLowPowerStats() 424 for (size_t j = 0; j < subsystem.states.size(); j++) { in getSubsystemLowPowerStats() 425 const PowerStateSubsystemSleepState& state = subsystem.states[j]; in getSubsystemLowPowerStats()
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
D | ThemeUtils.java | 44 final int[][] states = new int[2][]; in createDisabledStateList() local 49 states[i] = DISABLED_STATE_SET; in createDisabledStateList() 54 states[i] = EMPTY_STATE_SET; in createDisabledStateList() 58 return new ColorStateList(states, colors); in createDisabledStateList()
|
D | AppCompatDrawableManager.java | 597 final int[][] states = new int[4][]; in createButtonColorStateList() local 605 states[i] = ThemeUtils.DISABLED_STATE_SET; in createButtonColorStateList() 609 states[i] = ThemeUtils.PRESSED_STATE_SET; in createButtonColorStateList() 613 states[i] = ThemeUtils.FOCUSED_STATE_SET; in createButtonColorStateList() 618 states[i] = ThemeUtils.EMPTY_STATE_SET; in createButtonColorStateList() 622 return new ColorStateList(states, colors); in createButtonColorStateList() 626 final int[][] states = new int[3][]; in createSwitchThumbColorStateList() local 638 states[i] = ThemeUtils.DISABLED_STATE_SET; in createSwitchThumbColorStateList() 639 colors[i] = thumbColor.getColorForState(states[i], 0); in createSwitchThumbColorStateList() 642 states[i] = ThemeUtils.CHECKED_STATE_SET; in createSwitchThumbColorStateList() [all …]
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | StateListDrawable.java | 180 final int[] states = extractStateSet(attrs); in inflateChildElements() local 197 state.addStateSet(states, dr); in inflateChildElements() 210 int[] states = new int[numAttrs]; in extractStateSet() local 222 states[j++] = attrs.getAttributeBooleanValue(i, false) in extractStateSet() 226 states = StateSet.trimStateSet(states, j); in extractStateSet() 227 return states; in extractStateSet()
|
/frameworks/base/core/java/android/os/ |
D | IProcessInfoService.aidl | 27 void getProcessStatesFromPids(in int[] pids, out int[] states); in getProcessStatesFromPids() argument 34 void getProcessStatesAndOomScoresFromPids(in int[] pids, out int[] states, out int[] scores); in getProcessStatesAndOomScoresFromPids() argument
|
/frameworks/base/core/java/android/content/res/ |
D | ColorStateList.java | 153 public ColorStateList(int[][] states, @ColorInt int[] colors) { in ColorStateList() argument 154 mStateSpecs = states; in ColorStateList() 613 final int[] states = stateSpecs[specIndex]; in hasState() local 614 final int stateCount = states.length; in hasState() 616 if (states[stateIndex] == state || states[stateIndex] == ~state) { in hasState() 641 final int[][] states = mStateSpecs; in onColorsChanged() local 643 final int N = states.length; in onColorsChanged() 648 if (states[i].length == 0) { in onColorsChanged()
|
/frameworks/base/core/java/android/text/method/ |
D | MetaKeyKeyListener.java | 417 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/app/ |
D | ActivityGroup.java | 53 Bundle states = savedInstanceState != null in onCreate() local 55 mLocalActivityManager.dispatchCreate(states); in onCreate()
|
/frameworks/support/emoji/core/src/android/support/text/emoji/widget/ |
D | EmojiKeyListener.java | 63 public void clearMetaKeyState(View view, Editable content, int states) { in clearMetaKeyState() argument 64 mKeyListener.clearMetaKeyState(view, content, states); in clearMetaKeyState()
|
/frameworks/support/design/base/android/support/design/widget/ |
D | FloatingActionButtonImpl.java | 484 final int[][] states = new int[3][]; in createColorStateList() local 488 states[i] = FOCUSED_ENABLED_STATE_SET; in createColorStateList() 492 states[i] = PRESSED_ENABLED_STATE_SET; in createColorStateList() 497 states[i] = new int[0]; in createColorStateList() 501 return new ColorStateList(states, colors); in createColorStateList()
|
/frameworks/base/core/java/android/view/inputmethod/ |
D | InputConnectionWrapper.java | 229 public boolean clearMetaKeyStates(int states) { in clearMetaKeyStates() argument 230 return mTarget.clearMetaKeyStates(states); in clearMetaKeyStates()
|
/frameworks/base/core/java/android/content/ |
D | UndoManager.java | 689 int findPrevState(ArrayList<UndoState> states, UndoOwner[] owners, int from) { in findPrevState() argument 690 final int N = states.size(); in findPrevState() 703 UndoState state = states.get(from); in findPrevState() 713 int findNextState(ArrayList<UndoState> states, UndoOwner[] owners, int from) { in findNextState() argument 714 final int N = states.size(); in findNextState() 727 UndoState state = states.get(from); in findNextState()
|
/frameworks/base/services/core/java/com/android/server/media/ |
D | MediaSessionStack.java | 369 private boolean containsState(int state, int[] states) { in containsState() argument 370 for (int i = 0; i < states.length; i++) { in containsState() 371 if (states[i] == state) { in containsState()
|