Searched refs:states (Results 1 - 25 of 89) sorted by relevance

1234

/frameworks/base/core/java/android/os/
H A DIProcessInfoService.aidl27 void getProcessStatesFromPids(in int[] pids, out int[] states);
32 * in the states array to indicate that no process with the given PID exists.
34 void getProcessStatesAndOomScoresFromPids(in int[] pids, out int[] states, out int[] scores);
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
H A DCameraStateHolder.java117 * @param states Expected states.
121 public boolean waitForStates(final int states) { argument
122 Log.v(TAG, "waitForStates - states = " + Integer.toBinaryString(states));
126 return (states | getState()) == states;
135 * @param states States to avoid.
139 public boolean waitToAvoidStates(final int states) { argument
140 Log.v(TAG, "waitToAvoidStates - states
[all...]
/frameworks/native/include/binder/
H A DIProcessInfoService.h34 /*out*/ int32_t* states) = 0;
38 /*out*/ int32_t* states,
H A DProcessInfoService.h39 status_t getProcessStatesImpl(size_t length, /*in*/ int32_t* pids, /*out*/ int32_t* states);
41 /*out*/ int32_t* states, /*out*/ int32_t *scores);
50 * for that process into the "states" output array, or
57 /*out*/ int32_t* states) {
59 /*out*/ states);
64 * for that process into the "states" output array, or
73 /*out*/ int32_t* states, /*out*/ int32_t *scores) {
75 length, /*in*/ pids, /*out*/ states, /*out*/ scores);
56 getProcessStatesFromPids(size_t length, int32_t* pids, int32_t* states) argument
72 getProcessStatesScoresFromPids(size_t length, int32_t* pids, int32_t* states, int32_t *scores) argument
/frameworks/native/libs/binder/include/binder/
H A DIProcessInfoService.h34 /*out*/ int32_t* states) = 0;
38 /*out*/ int32_t* states,
H A DProcessInfoService.h39 status_t getProcessStatesImpl(size_t length, /*in*/ int32_t* pids, /*out*/ int32_t* states);
41 /*out*/ int32_t* states, /*out*/ int32_t *scores);
50 * for that process into the "states" output array, or
57 /*out*/ int32_t* states) {
59 /*out*/ states);
64 * for that process into the "states" output array, or
73 /*out*/ int32_t* states, /*out*/ int32_t *scores) {
75 length, /*in*/ pids, /*out*/ states, /*out*/ scores);
56 getProcessStatesFromPids(size_t length, int32_t* pids, int32_t* states) argument
72 getProcessStatesScoresFromPids(size_t length, int32_t* pids, int32_t* states, int32_t *scores) argument
/frameworks/ex/camera2/public/src/com/android/ex/camera2/utils/
H A DStateWaiter.java34 * requested type arrives. Unobserved states are states that have occurred since
60 * <p>All {@code state}/{@code states} arguments used in other methods must be
63 * @param stateNames an array of string names, used to mark the range of the valid states
104 * Wait until the one of the desired {@code states} is observed, checking all
107 * <p>Any intermediate state transitions that are not in {@code states} are ignored.</p>
111 * @param states Set of desired states to observe a transition to.
117 * @throws TimeoutRuntimeException if none of the states is observed before timeout.
120 public int waitForAnyOfStates(Collection<Integer> states, fina argument
180 appendStateNames(StringBuilder s, Collection<Integer> states) argument
212 checkStateCollectionInRange(Collection<Integer> states) argument
[all...]
/frameworks/opt/colorpicker/src/com/android/colorpicker/
H A DColorStateDrawable.java40 protected boolean onStateChange(int[] states) { argument
42 for (int state : states) {
55 return super.onStateChange(states);
/frameworks/native/libs/binder/
H A DIProcessInfoService.cpp32 /*out*/ int32_t* states)
46 if (replyLen > 0 && (err = reply.read(states, length * sizeof(*states))) != NO_ERROR) {
53 /*in*/ int32_t* pids, /*out*/ int32_t* states, /*out*/ int32_t* scores)
72 states, length * sizeof(*states))) != NO_ERROR) {
31 getProcessStatesFromPids(size_t length, int32_t* pids, int32_t* states) argument
52 getProcessStatesAndOomScoresFromPids(size_t length, int32_t* pids, int32_t* states, int32_t* scores) argument
H A DProcessInfoService.cpp30 /*out*/ int32_t* states) {
40 err = pis->getProcessStatesFromPids(length, /*in*/ pids, /*out*/ states);
54 ALOGW("%s: Could not retrieve process states from ProcessInfoService after %d retries.",
61 /*in*/ int32_t* pids, /*out*/ int32_t* states,
73 /*in*/ pids, /*out*/ states, /*out*/ scores);
87 ALOGW("%s: Could not retrieve process states and scores "
29 getProcessStatesImpl(size_t length, int32_t* pids, int32_t* states) argument
60 getProcessStatesScoresImpl(size_t length, int32_t* pids, int32_t* states, int32_t *scores) argument
H A DBufferedTextOutput.cpp87 Vector<sp<BufferedTextOutput::BufferState> > states; member in struct:android::BufferedTextOutput::ThreadState
269 while (ts->states.size() <= (size_t)mIndex) ts->states.add(NULL);
270 BufferState* bs = ts->states[mIndex].get();
273 ts->states.editItemAt(mIndex) = new BufferState(mIndex);
274 bs = ts->states[mIndex].get();
/frameworks/base/core/java/android/util/
H A DStateSet.java25 * one or more of those states.
128 * A state set that does not contain any valid states.
145 * prohibited (if negative) {@link android.view.View} states.
146 * @param stateSet an array of {@link android.view.View} states
164 // We use negative values to indicate must-NOT-match states.
172 // We've reached the end of states to match.
177 // Continue checking other must-not-match states.
184 // Continue checking other other must-match states.
193 // We've reached the end of states to match and we didn't
205 * prohibited (if negative) {@link android.view.View} states
254 trimStateSet(int[] states, int newSize) argument
264 dump(int[] states) argument
[all...]
/frameworks/ex/camera2/public/src/com/android/ex/camera2/blocking/
H A DBlockingStateCallback.java35 * requested type arrives. Unobserved states are states that have occurred since
98 * Total number of reachable states
160 * Wait until the one of the desired states is observed, checking all
165 * @param states Set of desired states to observe a transition to.
169 * @throws TimeoutRuntimeException if none of the states is observed before timeout.
172 public int waitForAnyOfStates(Collection<Integer> states, final long timeout) { argument
181 appendStates(s, states);
194 if (states
229 appendStates(StringBuilder s, Collection<Integer> states) argument
[all...]
/frameworks/base/core/java/android/text/method/
H A DKeyListener.java82 * Remove the given shift states from the edited text.
84 public void clearMetaKeyState(View view, Editable content, int states); argument
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/
H A DThemeUtils.java45 final int[][] states = new int[2][];
50 states[i] = DISABLED_STATE_SET;
55 states[i] = EMPTY_STATE_SET;
59 return new ColorStateList(states, colors);
/frameworks/base/core/java/android/app/
H A DActivityGroup.java33 private static final String STATES_KEY = "android:states";
53 Bundle states = savedInstanceState != null
55 mLocalActivityManager.dispatchCreate(states);
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/
H A DVolumeDialogController.java96 public final SparseArray<StreamState> states = new SparseArray<>(); field in class:VolumeDialogController.State
111 for (int i = 0; i < states.size(); i++) {
112 rt.states.put(states.keyAt(i), states.valueAt(i).copy());
137 for (int i = 0; i < states.size(); i++) {
141 final int stream = states.keyAt(i);
142 final StreamState ss = states.valueAt(i);
/frameworks/support/emoji/core/src/main/java/androidx/emoji/widget/
H A DEmojiKeyListener.java64 public void clearMetaKeyState(View view, Editable content, int states) { argument
65 mKeyListener.clearMetaKeyState(view, content, states);
/frameworks/support/media-widget/src/androidTest/java/androidx/media/widget/
H A DVideoView2Test.java192 List<PlaybackStateCompat> states = someState.getAllValues();
193 assertEquals(PlaybackStateCompat.STATE_PAUSED, states.get(0).getState());
194 assertEquals(PlaybackStateCompat.STATE_PLAYING, states.get(1).getState());
195 assertEquals(PlaybackStateCompat.STATE_STOPPED, states.get(2).getState());
237 List<PlaybackStateCompat> states = someState.getAllValues();
238 assertEquals(PlaybackStateCompat.STATE_PAUSED, states.get(0).getState());
239 assertEquals(PlaybackStateCompat.STATE_PLAYING, states.get(1).getState());
240 assertEquals(PlaybackStateCompat.STATE_STOPPED, states.get(2).getState());
/frameworks/base/libs/androidfw/
H A DBackupHelpers.cpp981 FileState states[4];
985 states[0].modTime_sec = 0xfedcba98;
986 states[0].modTime_nsec = 0xdeadbeef;
987 states[0].mode = 0777; // decimal 511, hex 0x000001ff
988 states[0].size = 0xababbcbc;
989 states[0].crc32 = 0x12345678;
990 states[0].nameLen = -12;
991 r.s = states[0];
995 states[1].modTime_sec = 0x93400031;
996 states[
[all...]
/frameworks/base/services/core/jni/
H A Dcom_android_server_am_BatteryStatsService.cpp214 [&env, &jrpmStats](hidl_vec<PowerStatePlatformSleepState> states, Status status) {
218 for (size_t i = 0; i < states.size(); i++) {
219 const PowerStatePlatformSleepState& state = states[i];
266 for (size_t j = 0; j < subsystem.states.size(); j++) {
267 const PowerStateSubsystemSleepState& state = subsystem.states[j];
298 [&offset, &remaining, &total_added](hidl_vec<PowerStatePlatformSleepState> states,
302 for (size_t i = 0; i < states.size(); i++) {
304 const PowerStatePlatformSleepState& state = states[i];
410 for (size_t j = 0; j < subsystem.states.size(); j++) {
411 const PowerStateSubsystemSleepState& state = subsystem.states[
[all...]
/frameworks/base/graphics/java/android/graphics/drawable/
H A DStateListDrawable.java104 if (DEBUG) android.util.Log.i(TAG, "onStateChange " + this + " states "
180 final int[] states = extractStateSet(attrs);
184 // attributes and extracting states.
197 state.addStateSet(states, dr);
210 int[] states = new int[numAttrs];
222 states[j++] = attrs.getAttributeBooleanValue(i, false)
226 states = StateSet.trimStateSet(states, j);
227 return states;
235 * Gets the number of states containe
[all...]
/frameworks/base/core/java/android/content/res/
H A DColorStateList.java67 * states that a view must either be in or not be in and the color specifies the color associated
78 * states may be set or unset:
91 * file. An item with no state spec is considered to match any set of states and is generally
151 * states to colors.
153 public ColorStateList(int[][] states, @ColorInt int[] colors) { argument
154 mStateSpecs = states;
280 * Creates a new ColorStateList that has the same states and colors as this
545 * {@link android.view.View} states.
547 * @param stateSet an array of {@link android.view.View} states
552 * @return the color associated with that set of states i
[all...]
/frameworks/base/cmds/statsd/src/external/
H A DSubsystemSleepStatePuller.cpp95 [&data, wallClockTimestampNs, elapsedTimestampNs](hidl_vec<PowerStatePlatformSleepState> states, Status status) {
98 for (size_t i = 0; i < states.size(); i++) {
99 const PowerStatePlatformSleepState& state = states[i];
148 for (size_t j = 0; j < subsystem.states.size(); j++) {
150 subsystem.states[j];
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothProfile.java234 * states.
236 * <p> If none of the devices match any of the given states,
239 * @param states Array of states. States can be one of {@link #STATE_CONNECTED}, {@link
244 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states); argument

Completed in 1638 milliseconds

1234