Home
last modified time | relevance | path

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

12

/frameworks/support/v4/tests/java/android/support/v4/app/
DStrictFragment.java60 public void checkState(String caller, int... expected) { in checkState() method in StrictFragment
93 checkState("onAttach", DETACHED); in onAttach()
105 checkState("onCreate", ATTACHED); in onCreate()
114 checkState("onActivityCreated", ATTACHED, CREATED); in onActivityCreated()
123 checkState("onStart", ACTIVITY_CREATED); in onStart()
132 checkState("onResume", STARTED); in onResume()
149 checkState("onPause", RESUMED); in onPause()
158 checkState("onStop", STARTED); in onStop()
167 checkState("onDestroy", CREATED); in onDestroy()
176 checkState("onDestroy", CREATED, ATTACHED); in onDetach()
DStrictViewFragment.java33 checkState("onCreateView", CREATED); in onCreateView()
45 checkState("onViewCreated", CREATED); in onViewCreated()
56 checkState("onDestroyView", CREATED); in onDestroyView()
/frameworks/base/media/java/android/mtp/
DMtpObjectInfo.java101 Preconditions.checkState(mCompressedSize >= 0); in getCompressedSize()
131 Preconditions.checkState(mThumbCompressedSize >= 0); in getThumbCompressedSize()
152 Preconditions.checkState(mThumbPixWidth >= 0); in getThumbPixWidth()
173 Preconditions.checkState(mThumbPixHeight >= 0); in getThumbPixHeight()
194 Preconditions.checkState(mImagePixWidth >= 0); in getImagePixWidth()
215 Preconditions.checkState(mImagePixHeight >= 0); in getImagePixHeight()
236 Preconditions.checkState(mImagePixDepth >= 0); in getImagePixDepth()
293 Preconditions.checkState(mSequenceNumber >= 0); in getSequenceNumber()
DMtpDevice.java338 Preconditions.checkState(handle >= 0, "Other thread is reading an event."); in readEvent()
/frameworks/base/media/java/android/media/audiofx/
DAudioEffect.java447 checkState("getDescriptor()"); in getDescriptor()
516 checkState("setEnabled()"); in setEnabled()
539 checkState("setParameter()"); in setParameter()
670 checkState("getParameter()"); in getParameter()
848 checkState("command()"); in command()
865 checkState("getId()"); in getId()
876 checkState("getEnabled()"); in getEnabled()
888 checkState("hasControl()"); in hasControl()
1254 public void checkState(String methodName) throws IllegalStateException { in checkState() method in AudioEffect
/frameworks/base/core/java/com/android/internal/util/
DPreconditions.java124 public static void checkState(final boolean expression, String message) { in checkState() method in Preconditions
137 public static void checkState(final boolean expression) { in checkState() method in Preconditions
138 checkState(expression, null); in checkState()
/frameworks/base/services/core/java/com/android/server/hdmi/
DDeviceDiscoveryAction.java247 Preconditions.checkState(mProcessedDeviceCount < mDevices.size()); in handleReportPhysicalAddress()
273 Preconditions.checkState(mProcessedDeviceCount < mDevices.size());
296 Preconditions.checkState(mProcessedDeviceCount < mDevices.size());
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
DMapper.java204 Preconditions.checkState(!mInMappingIds.contains(parentDocumentId)); in startAddingDocuments()
250 Preconditions.checkState(mInMappingIds.contains(parentId)); in putDocuments()
333 Preconditions.checkState(mInMappingIds.contains(parentId)); in stopAddingDocuments()
DDocumentLoader.java118 Preconditions.checkState(mBackgroundThread != null); in getNextTaskOrReleaseBackgroundThread()
130 Preconditions.checkState(existingTask.getState() != LoaderTask.STATE_LOADING); in getNextTaskOrReleaseBackgroundThread()
DAppFuse.java68 Preconditions.checkState(mDeviceFd == null); in mount()
/frameworks/support/documents-archive/src/android/support/provider/
DPreconditions.java49 static void checkState(boolean expression, String message) { in checkState() method in Preconditions
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DGraphRunner.java220 public boolean checkState(int state) { in checkState() method in GraphRunner.GraphRunLoop
725 return !mRunLoop.checkState(State.STOPPED); in isRunning()
734 return mRunLoop.checkState(State.PAUSED); in isPaused()
743 return mRunLoop.checkState(State.STOPPED); in isStopped()
/frameworks/opt/telephony/src/java/android/telephony/
DCarrierMessagingServiceManager.java59 Preconditions.checkState(mCarrierMessagingServiceConnection == null); in bindToCarrierMessagingService()
/frameworks/native/services/sensorservice/
DFusion.h93 void checkState();
DFusion.cpp392 void Fusion::checkState() { in checkState() function in android::Fusion
492 checkState(); in predict()
540 checkState(); in update()
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/
DRemotePrintServicePlugin.java126 Preconditions.checkState(isRunning); in onChanged()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
DPreconditions.java123 public static boolean checkState(String message, boolean state) { in checkState() method in Preconditions
/frameworks/base/core/java/com/android/internal/view/
DFloatingActionMode.java291 Preconditions.checkState(mFloatingToolbar != null); in checkToolbarInitialized()
292 Preconditions.checkState(mFloatingToolbarVisibilityHelper != null); in checkToolbarInitialized()
/frameworks/base/core/java/android/content/pm/
DShortcutInfo.java266 Preconditions.checkState(mUserId == source.mUserId, "Owner User ID must match"); in copyNonNullFieldsFrom()
267 Preconditions.checkState(mId.equals(source.mId), "ID must match"); in copyNonNullFieldsFrom()
268 Preconditions.checkState(mPackageName.equals(source.mPackageName), in copyNonNullFieldsFrom()
/frameworks/data-binding/gradlePlugin/src/main/java/android/databinding/tool/
DDataBindingExcludeGeneratedTask.java124 Preconditions.checkState(false, "Could not read data binding generated class list"); in readGeneratedClasses()
/frameworks/base/docs/html/training/displaying-bitmaps/
Dmanage-memory.jd110 checkState();
124 checkState();
127 private synchronized void checkState() {
/frameworks/base/core/java/com/android/internal/os/
DInstallerConnection.java61 Preconditions.checkState(mWarnIfHeld == null); in setWarnIfHeld()
/frameworks/base/services/core/java/com/android/server/pm/
DUserRestrictionsUtils.java64 Preconditions.checkState(ret.size() == strings.length); in newSetWithUniqueCheck()
DShortcutService.java1195 Preconditions.checkState(isCallerSystem() || isCallerShell(), in enforceSystemOrShell()
1200 Preconditions.checkState(isCallerShell(), "Caller must be shell"); in enforceShell()
1204 Preconditions.checkState(isCallerSystem(), "Caller must be system"); in enforceSystem()
1298 Preconditions.checkState( in fixUpIncomingShortcutInfo()
/frameworks/base/core/java/android/widget/
DAbsListView.java1697 SparseBooleanArray checkState; field in AbsListView.SavedState
1720 checkState = in.readSparseBooleanArray(); in SavedState()
1743 out.writeSparseBooleanArray(checkState); in writeToParcel()
1762 + " checkState=" + checkState + "}"; in toString()
1803 ss.checkState = mPendingSync.checkState; in onSaveInstanceState()
1858 ss.checkState = mCheckStates.clone(); in onSaveInstanceState()
1908 if (ss.checkState != null) { in onRestoreInstanceState()
1909 mCheckStates = ss.checkState; in onRestoreInstanceState()

12