Searched defs:state (Results 1 - 25 of 70) sorted by relevance

123

/cts/tools/dasm/src/java_cup/runtime/
H A Dsymbol.java6 * keep track of state on the parse stack. The symbol currently on top
7 * of the stack contains the current state in the parse_state field.
24 public symbol(int sym_num, int state) argument
27 parse_state = state;
32 /** Constructor without a known state. */
45 /** The parse state to be recorded on the parse stack with this symbol.
/cts/tests/app/app/src/android/app/stubs/
H A DTestedActivity.java34 protected void onRestoreInstanceState(Bundle state) { argument
35 super.onRestoreInstanceState(state);
H A DTestedScreen.java57 protected void onRestoreInstanceState(Bundle state) { argument
58 super.onRestoreInstanceState(state);
H A DMockTabActivity.java66 protected void onRestoreInstanceState(Bundle state) { argument
67 super.onRestoreInstanceState(state);
H A DExpandableListTestActivity.java152 protected void onRestoreInstanceState(Bundle state) { argument
153 super.onRestoreInstanceState(state);
/cts/tests/tests/text/src/android/text/method/cts/
H A DBackspaceTest.java43 // Sync the state to the TextView and call onKeyDown with KEYCODE_DEL key event.
44 // Then update the state to the result of TextView.
45 private void backspace(final EditorState state, int modifiers) throws Throwable { argument
47 mTextView.setText(state.mText, BufferType.EDITABLE);
49 mTextView.setSelection(state.mSelectionStart, state.mSelectionEnd);
58 state.mText = mTextView.getText();
59 state.mSelectionStart = mTextView.getSelectionStart();
60 state.mSelectionEnd = mTextView.getSelectionEnd();
65 EditorState state
[all...]
H A DForwardDeleteTest.java43 // Sync the state to the TextView and call onKeyDown with KEYCODE_FORWARD_DEL key event.
44 // Then update the state to the result of TextView.
45 private void forwardDelete(final EditorState state, int modifiers) throws Throwable { argument
47 mTextView.setText(state.mText, BufferType.EDITABLE);
49 mTextView.setSelection(state.mSelectionStart, state.mSelectionEnd);
58 state.mText = mTextView.getText();
59 state.mSelectionStart = mTextView.getSelectionStart();
60 state.mSelectionEnd = mTextView.getSelectionEnd();
65 EditorState state
[all...]
/cts/tests/tests/os/src/android/os/cts/
H A DTestedScreen.java57 protected void onRestoreInstanceState(Bundle state) { argument
58 super.onRestoreInstanceState(state);
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
H A DPreconditions.java25 * <p>Typically used to sanity check arguments or the current object state.</p>
110 * Checks that the state is currently {@link true}.
112 * @param message Message to raise an exception with if the state checking fails.
113 * @param state State to check
115 * @throws IllegalStateException if state was {@code false}
117 * @return The state value (always {@code true}).
119 public static boolean checkState(String message, boolean state) { argument
120 if (!state) {
124 return state;
/cts/tests/framework/base/activitymanager/src/android/server/am/lifecycle/
H A DLifecycleVerifier.java24 /** Util class that verifies correct activity state transition sequences. */
188 Class<? extends Activity> activityClass, ActivityCallback state) {
189 return new Pair<>(activityClass.getCanonicalName(), state);
187 transition( Class<? extends Activity> activityClass, ActivityCallback state) argument
/cts/tests/tests/database/src/android/database/cts/
H A DContentObserverTest.java161 protected void setSelfChangeState(boolean state) { argument
162 mSelfChange = state;
207 protected void setSelfChangeState(boolean state) { argument
208 mSelfChange = state;
/cts/tests/tests/telecom/src/android/telecom/cts/
H A DBaseRemoteTelecomTest.java185 void assertRemoteConnectionState(final RemoteConnection connection, final int state) { argument
190 return state;
199 "Remote Connection should be in state " + state
203 void assertRemoteConferenceState(final RemoteConference conference, final int state) { argument
208 return state;
217 "Remote Conference should be in state " + state
/cts/tests/tests/telephony/src/android/telephony/embms/cts/
H A DMbmsDownloadCallbackTest.java38 @MbmsDownloadSession.DownloadStatus int state) {
42 args.arg3 = state;
37 onStatusUpdated(DownloadRequest request, FileInfo fileInfo, @MbmsDownloadSession.DownloadStatus int state) argument
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Utils/
H A DTestReport.java147 * @param state the status the test is in.
149 public void setTestState(TestStatus state) { argument
150 switch (state) {
/cts/apps/CtsVerifier/src/com/android/cts/verifier/telecom/
H A DCtsConnection.java139 public void onCallAudioStateChanged(CallAudioState state) { argument
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
H A DAdoptableHostTest.java332 // In the case where we run multiple test we cleanup the state of the device. This
357 if (!"private".equals(info.volId) && "mounted".equals(info.state)) {
385 public String state; field in class:AdoptableHostTest.LocalVolumeInfo
391 state = split[1];
/cts/tests/netlegacy22.api/src/android/net/cts/legacy/api22/
H A DConnectivityManagerLegacyTest.java217 private void expectNetworkBroadcast(final int type, final NetworkInfo.State state, argument
222 Log.d(TAG, "Waiting for " + state + " broadcast for type " + type);
228 if (ni.getType() == type && ni.getState().equals(state)) {
229 Log.d(TAG, "Received expected " + state + " broadcast for type " + type);
240 final String msg = "Did not receive expected " + state + " broadcast for type " + type +
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
H A DClipDrawableTest.java291 assertEquals("initial child state is empty", d.getState(), StateSet.WILD_CARD);
293 int[] state = new int[] {1, 2, 3};
294 assertFalse("child did not change", clipDrawable.onStateChange(state));
295 assertEquals("child state did not change", d.getState(), StateSet.WILD_CARD);
299 assertEquals("initial child state is empty", d.getState(), StateSet.WILD_CARD);
300 clipDrawable.onStateChange(state);
301 assertTrue("child state changed", Arrays.equals(state, d.getState()));
384 protected boolean onStateChange(int[] state) { argument
385 return super.onStateChange(state);
[all...]
H A DDefaultFocusHighlightTest.java86 // Empty state spec
100 // No state spec of state_focused=true
107 // One state spec of only state_focused=true
114 // One state spec of state_focused=true and something=true, but no state spec of
122 // One state spec of state_focused=true and something=true, and one spec of
130 // One state spec of state_focused=true and enabled=true
170 // Empty state spec
178 // No state spec of state_focused=true
182 // One state spe
353 setConstantState(DrawableContainerState state) argument
[all...]
/cts/tests/tests/location/src/android/location/cts/
H A DTestMeasurementUtil.java182 int state = measurement.getState();
183 softAssert.assertTrue("state: Satellite code sync state",
186 String.valueOf(state),
187 state >= 0);
293 "Accumulated delta range state",
299 "Accumulated delta range state",
420 int state = measurement.getState();
427 if (state == 0) {
439 verifyGpsQzssSvTimes(measurement, softAssert, timeInNs, state, "CONSTELLATION_GP
640 getReceivedSvTimeNsLogMessage(String constellationType, String state) argument
655 verifyGpsQzssSvTimes(GnssMeasurement measurement, SoftAssert softAssert, long timeInNs, int state, String constellationType) argument
[all...]
/cts/tests/tests/media/libaudiojni/
H A Dappendix-b-1-1-buffer-queue.cpp87 SLBufferQueueState state; local
223 res = (*bufferQueueItf)->GetState(bufferQueueItf, &state);
226 while (state.count) {
228 (*bufferQueueItf)->GetState(bufferQueueItf, &state);
/cts/tests/tests/nativemedia/aaudio/jni/
H A Dutils.cpp164 aaudio_stream_state_t state = AAUDIO_STREAM_STATE_UNINITIALIZED; local
166 AAudioStream_waitForStateChange(mStream, fromState, &state, DEFAULT_STATE_TIMEOUT));
167 ASSERT_EQ(toState, state);
/cts/tests/tests/print/src/android/print/cts/
H A DPrintJobStateTransitionsTest.java152 private static boolean setState(PrintJob job, int state) { argument
153 switch (state) {
169 throw new IllegalArgumentException("Cannot switch to " + state);
216 private static void checkState(PrintJob job, int state) throws Throwable { argument
217 eventually(() -> assertEquals(state, job.getInfo().getState()));
218 switch (state) {
239 throw new IllegalArgumentException("Cannot check " + state);
254 // QUEUED does not actually set a state, see setState
H A DPrintJobTest.java186 private static void checkState(PrintJob job, int state) throws Throwable { argument
187 eventually(() -> assertEquals(state, job.getInfo().getState()));
188 switch (state) {
209 throw new IllegalArgumentException("Cannot check " + state);
/cts/tests/tests/security/src/android/security/cts/
H A DListeningPortsTest.java216 if (isPortListening(entry.state, isTcp)
285 private static boolean isPortListening(String state, boolean isTcp) { argument
288 return listeningState.equals(state);
300 private final String state; field in class:ListeningPortsTest.ParsedProcEntry
303 private ParsedProcEntry(InetAddress addr, int port, String state, int uid) { argument
306 this.state = state;
342 String state = fields[3];
347 retval.add(new ParsedProcEntry(localIp, localPort, state, uid));

Completed in 682 milliseconds

123