Home
last modified time | relevance | path

Searched refs:checkState (Results 1 – 22 of 22) 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/location/location_gnss/src/android/location/cts/gnss/asn1/base/
DAsn1BMPString.java82 Preconditions.checkState(length >= minimumSize, "Value too short."); in encodePerImpl()
83 Preconditions.checkState(maximumSize == null || length <= maximumSize, in encodePerImpl()
135 Preconditions.checkState(codepoint <= 0xFFFF, in encodeCharactersPer()
DAsn1GeneralString.java80 Preconditions.checkState(value.length >= minimumSize, "Value too short."); in encodePerImpl()
81 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.java76 Preconditions.checkState( in encodeBerValue()
103 Preconditions.checkState( in encodePerImpl()
DAsn1Integer.java84 Preconditions.checkState( in validateValue()
87 Preconditions.checkState( in validateValue()
DAsn1Utf8String.java86 Preconditions.checkState( in encodePerImpl()
DAsn1OctetString.java82 Preconditions.checkState( in encodePerImpl()
DAsn1Choice.java202 Preconditions.checkState(optionCount == 0 || selectionOrdinal != null, in encodePerImpl()
/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/mediaediting/src/android/media/mediaediting/cts/
DMediaEditingUtil.java21 import static androidx.media3.common.util.Assertions.checkState;
277 checkState(mediaFormat.containsKey(MediaFormat.KEY_WIDTH)); in getMuxedWidthHeight()
278 checkState(mediaFormat.containsKey(MediaFormat.KEY_HEIGHT)); in getMuxedWidthHeight()
304 checkState(mediaFormat.containsKey(MediaFormat.KEY_PROFILE)); in getMuxedOutputProfile()
DVideoDecodingWrapper.java21 import static androidx.media3.common.util.Assertions.checkState;
110 checkState(mediaFormat.containsKey(MediaFormat.KEY_WIDTH)); in VideoDecodingWrapper()
112 checkState(mediaFormat.containsKey(MediaFormat.KEY_HEIGHT)); in VideoDecodingWrapper()
DAndroidTestUtil.java23 import static androidx.media3.common.util.Assertions.checkState;
882 checkState(!file.exists() || file.delete(), "Could not delete file: " + file.getAbsolutePath()); in createExternalCacheFile()
883 checkState(file.createNewFile(), "Could not create file: " + file.getAbsolutePath()); in createExternalCacheFile()
/cts/tests/tests/gameservice/src/android/service/games/testing/
DActivityResult.java76 Preconditions.checkState(isSuccess()); in getSuccess()
81 Preconditions.checkState(!isSuccess()); in getFailure()
/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/
DAugmentedUiBot.java89 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
/cts/tests/autofillservice/src/android/autofillservice/cts/activities/
DAuthenticationActivity.java140 Preconditions.checkState(sDatasets.get(id) == null, "already have id"); in createSender()
156 Preconditions.checkState(sResponses.get(id) == null, "already have id"); in createSender()
/cts/hostsidetests/mediapc/videoencodingquality/bdrate/src/main/java/com/android/media/videoquality/bdrate/
DBdRateMain.java261 Preconditions.checkState(Files.exists(path)); in loadTestResult()
/cts/tests/tests/notification/src/android/app/notification/current/cts/
DNotificationManagerTest.java465 Preconditions.checkState(mPreviousDefaultBrowser != null); in restoreDefaultBrowser()