Home
last modified time | relevance | path

Searched refs:checkState (Results 1 – 18 of 18) sorted by relevance

/cts/tests/fragment/src/android/fragment/cts/
DStrictFragment.java65 public void checkState(String caller, int... expected) { in checkState() method in StrictFragment
99 checkState("onAttach", DETACHED); in onAttach()
111 checkState("onCreate", ATTACHED); in onCreate()
120 checkState("onActivityCreated", ATTACHED, CREATED); in onActivityCreated()
130 checkState("onStart", ACTIVITY_CREATED); in onStart()
139 checkState("onResume", STARTED); in onResume()
159 checkState("onPause", RESUMED); in onPause()
168 checkState("onStop", STARTED); in onStop()
177 checkState("onDestroy", CREATED); in onDestroy()
186 checkState("onDestroy", CREATED, ATTACHED); in onDetach()
DStrictViewFragment.java43 checkState("onCreateView", CREATED); in onCreateView()
55 checkState("onViewCreated", CREATED); in onViewCreated()
66 checkState("onDestroyView", CREATED); in onDestroyView()
DTransitionFragment.java68 checkState("onCreateView", CREATED); in onCreateView()
/cts/tests/tests/print/src/android/print/cts/
DPrintJobTest.java193 private static void checkState(PrintJob job, int state) throws Throwable {
252 checkState(printJob, PrintJobInfo.STATE_STARTED);
260 checkState(printJob, PrintJobInfo.STATE_BLOCKED);
266 checkState(printJob, PrintJobInfo.STATE_BLOCKED);
280 checkState(printJob, PrintJobInfo.STATE_STARTED);
284 checkState(printJob, PrintJobInfo.STATE_FAILED);
290 checkState(printJob, PrintJobInfo.STATE_FAILED);
DPrintJobStateTransitionsTest.java216 private static void checkState(PrintJob job, int state) throws Throwable {
332 checkState(printJob, mState1);
343 checkState(printJob, mState2);
354 checkState(printJob, mState3);
/cts/tests/tests/location/src/android/location/cts/asn1/base/
DAsn1BMPString.java81 Preconditions.checkState(length >= minimumSize, "Value too short."); in encodePerImpl()
82 Preconditions.checkState(maximumSize == null || length <= maximumSize, in encodePerImpl()
134 Preconditions.checkState(codepoint <= 0xFFFF, in encodeCharactersPer()
DAsn1GeneralString.java79 Preconditions.checkState(value.length >= minimumSize, "Value too short."); in encodePerImpl()
80 Preconditions.checkState(maximumSize == null || value.length <= maximumSize, in encodePerImpl()
DAsn1SequenceOf.java107 Preconditions.checkState(sequence.size() >= minimumSize, in encodePerImpl()
109 Preconditions.checkState(maximumSize == null in encodePerImpl()
DAsn1BitString.java75 Preconditions.checkState( in encodeBerValue()
102 Preconditions.checkState( in encodePerImpl()
DAsn1Integer.java83 Preconditions.checkState( in validateValue()
86 Preconditions.checkState( in validateValue()
DAsn1Utf8String.java85 Preconditions.checkState( in encodePerImpl()
DAsn1OctetString.java81 Preconditions.checkState( in encodePerImpl()
DAsn1Choice.java202 Preconditions.checkState(optionCount == 0 || selectionOrdinal != null, in encodePerImpl()
/cts/tests/camera/src/android/hardware/camera2/cts/rs/
DScriptGraph.java376 checkState("Parameter has already been set", !mParameterMap.contains(parameter)); in set()
643 checkState("This graph was not configured with IO_USAGE_INPUT", isInputFromSurface()); in getInputSurface()
649 checkState("ScriptGraph has been closed", !mClosed); in checkNotClosed()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DAuthenticationActivity.java99 Preconditions.checkState(sDatasets.get(id) == null, "already have id"); in createSender()
115 Preconditions.checkState(sResponses.get(id) == null, "already have id"); in createSender()
/cts/tests/tests/opengl/src/android/opengl/cts/
DEglConfigTest.java28 import static androidx.test.internal.util.Checks.checkState;
/cts/tests/autofillservice/src/android/autofillservice/cts/augmented/
DAugmentedUiBot.java88 Preconditions.checkState(mOkToCallAssertUiGone, "must call assertUiShown() first"); in assertUiGone()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DPreconditions.java119 public static boolean checkState(String message, boolean state) { in checkState() method in Preconditions