Home
last modified time | relevance | path

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

123456

/aosp14/frameworks/base/services/core/java/com/android/server/location/gnss/hal/
H A DGnssNative.java499 Preconditions.checkState(mRegistered); in initializeGnss()
522 Preconditions.checkState(mRegistered); in init()
531 Preconditions.checkState(mRegistered); in cleanup()
575 Preconditions.checkState(mRegistered); in start()
585 Preconditions.checkState(mRegistered); in stop()
595 Preconditions.checkState(mRegistered); in setPositionMode()
604 Preconditions.checkState(mRegistered); in getInternalState()
612 Preconditions.checkState(mRegistered); in deleteAidingData()
621 Preconditions.checkState(mRegistered); in readNmea()
629 Preconditions.checkState(mRegistered); in injectLocation()
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/location/provider/
H A DDelegateLocationProvider.java56 Preconditions.checkState(!mInitialized); in initializeDelegate()
69 Preconditions.checkState(mInitialized); in waitForInitialization()
87 Preconditions.checkState(mInitialized); in onStart()
93 Preconditions.checkState(mInitialized); in onStop()
99 Preconditions.checkState(mInitialized); in onSetRequest()
105 Preconditions.checkState(mInitialized); in onFlush()
111 Preconditions.checkState(mInitialized); in onExtraCommand()
117 Preconditions.checkState(mInitialized); in dump()
H A DMockableLocationProvider.java188 Preconditions.checkState(isMock()); in setMockProviderAllowed()
198 Preconditions.checkState(isMock()); in setMockProviderLocation()
215 Preconditions.checkState(!mStarted); in onStart()
231 Preconditions.checkState(mStarted); in onStop()
287 Preconditions.checkState(!Thread.holdsLock(mOwnerLock)); in dump()
H A DAbstractLocationProvider.java370 Preconditions.checkState(listener == null || oldInternalState.listener == null); in setListener()
381 Preconditions.checkState(!mStarted); in start()
388 Preconditions.checkState(mStarted); in stop()
395 Preconditions.checkState(mStarted); in setRequest()
401 Preconditions.checkState(mStarted); in flush()
407 Preconditions.checkState(mStarted); in sendExtraCommand()
/aosp14/frameworks/base/media/java/android/mtp/
H A DMtpObjectInfo.java106 Preconditions.checkState(mCompressedSize >= 0); in getCompressedSize()
136 Preconditions.checkState(mThumbCompressedSize >= 0); in getThumbCompressedSize()
157 Preconditions.checkState(mThumbPixWidth >= 0); in getThumbPixWidth()
178 Preconditions.checkState(mThumbPixHeight >= 0); in getThumbPixHeight()
199 Preconditions.checkState(mImagePixWidth >= 0); in getImagePixWidth()
220 Preconditions.checkState(mImagePixHeight >= 0); in getImagePixHeight()
241 Preconditions.checkState(mImagePixDepth >= 0); in getImagePixDepth()
298 Preconditions.checkState(mSequenceNumber >= 0); in getSequenceNumber()
/aosp14/frameworks/base/services/core/java/com/android/server/servicewatcher/
H A DServiceWatcherImpl.java98 Preconditions.checkState(!mRegistered); in register()
109 Preconditions.checkState(mRegistered); in unregister()
199 Preconditions.checkState(Looper.myLooper() == mHandler.getLooper()); in bind()
228 Preconditions.checkState(Looper.myLooper() == mHandler.getLooper()); in unbind()
249 Preconditions.checkState(Looper.myLooper() == mHandler.getLooper()); in runOnBinder()
268 Preconditions.checkState(Looper.myLooper() == mHandler.getLooper()); in onServiceConnected()
269 Preconditions.checkState(mBinder == null); in onServiceConnected()
288 Preconditions.checkState(Looper.myLooper() == mHandler.getLooper()); in onServiceDisconnected()
304 Preconditions.checkState(Looper.myLooper() == mHandler.getLooper()); in onBindingDied()
/aosp14/frameworks/base/services/core/java/com/android/server/location/injector/
H A DSystemAppOpsHelper.java61 Preconditions.checkState(mAppOps != null); in startOpNoThrow()
79 Preconditions.checkState(mAppOps != null); in finishOp()
95 Preconditions.checkState(mAppOps != null); in checkOpNoThrow()
110 Preconditions.checkState(mAppOps != null); in noteOp()
127 Preconditions.checkState(mAppOps != null); in noteOpNoThrow()
H A DSystemDeviceStationaryHelper.java42 Preconditions.checkState(mDeviceIdle != null); in addListener()
54 Preconditions.checkState(mDeviceIdle != null); in removeListener()
H A DSystemPackageResetHelper.java46 Preconditions.checkState(mReceiver == null); in onRegister()
65 Preconditions.checkState(mReceiver != null); in onUnregister()
/aosp14/frameworks/base/services/backup/java/com/android/server/backup/transport/
H A DTransportConnection.java287 Preconditions.checkState( in markAsDisposed()
318 Preconditions.checkState(
568 checkState(mListeners.isEmpty(), "Unexpected listeners when state = UNUSABLE"); in checkStateIntegrityLocked()
569 checkState( in checkStateIntegrityLocked()
572 checkState(mListeners.isEmpty(), "Unexpected listeners when state = IDLE"); in checkStateIntegrityLocked()
573 checkState(mTransport == null, "Transport expected to be null when state = IDLE"); in checkStateIntegrityLocked()
576 checkState( in checkStateIntegrityLocked()
581 checkState(mListeners.isEmpty(), "Unexpected listeners when state = CONNECTED"); in checkStateIntegrityLocked()
582 checkState( in checkStateIntegrityLocked()
587 checkState(false, "Unexpected state = " + stateToString(mState)); in checkStateIntegrityLocked()
[all …]
/aosp14/frameworks/base/media/java/android/media/
H A DAudioPlaybackCaptureConfiguration.java180 Preconditions.checkState( in addMatchingUsage()
197 Preconditions.checkState( in addMatchingUid()
214 Preconditions.checkState( in excludeUsage()
233 Preconditions.checkState( in excludeUid()
/aosp14/frameworks/base/errorprone/tests/res/android/util/
H A DPreconditions.java36 public static void checkState(boolean expression) { in checkState() method in Preconditions
40 public static void checkState(boolean expression, String message) { in checkState() method in Preconditions
/aosp14/frameworks/base/core/java/android/view/autofill/
H A DAutofillValue.java66 Preconditions.checkState(isText(), "value must be a text value, not type=%d", mType); in getTextValue()
87 Preconditions.checkState(isToggle(), "value must be a toggle value, not type=%d", mType); in getToggleValue()
108 Preconditions.checkState(isList(), "value must be a list value, not type=%d", mType); in getListValue()
129 Preconditions.checkState(isDate(), "value must be a date value, not type=%d", mType); in getDateValue()
/aosp14/frameworks/base/core/java/android/view/contentcapture/
H A DDataRemovalRequest.java129 Preconditions.checkState(mLocusIds == null, "Already added LocusIds"); in forEverything()
146 Preconditions.checkState(!mForEverything, "Already is for everything"); in addLocusId()
167 Preconditions.checkState(mForEverything || mLocusIds != null, in build()
175 Preconditions.checkState(!mDestroyed, "Already destroyed!"); in throwIfDestroyed()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
H A DDozeMachine.java222 Preconditions.checkState(!isExecutingTransition()); in requestPulse()
285 Preconditions.checkState(mState == State.DOZE_REQUEST_PULSE in getPulseReason()
351 Preconditions.checkState(newState == State.FINISH); in validateTransition()
354 Preconditions.checkState(newState == State.INITIALIZED); in validateTransition()
361 Preconditions.checkState(mState == State.UNINITIALIZED); in validateTransition()
364 Preconditions.checkState(mState == State.DOZE_REQUEST_PULSE); in validateTransition()
367 Preconditions.checkState( in validateTransition()
/aosp14/frameworks/base/location/java/android/location/
H A DGnssStatus.java135 Preconditions.checkState(svCount >= 0); in wrap()
136 Preconditions.checkState(svidWithFlags.length >= svCount); in wrap()
137 Preconditions.checkState(elevations.length >= svCount); in wrap()
138 Preconditions.checkState(azimuths.length >= svCount); in wrap()
139 Preconditions.checkState(carrierFrequencies.length >= svCount); in wrap()
140 Preconditions.checkState(basebandCn0DbHzs.length >= svCount); in wrap()
/aosp14/frameworks/base/services/core/java/com/android/server/location/listeners/
H A DListenerMultiplexer.java268 Preconditions.checkState(!mReentrancyGuard.isReentrant()); in replaceRegistration()
322 Preconditions.checkState(!mReentrancyGuard.isReentrant()); in removeRegistrationIf()
351 Preconditions.checkState(!mReentrancyGuard.isReentrant()); in removeRegistration()
710 Preconditions.checkState(isReentrant()); in markForRemoval()
729 Preconditions.checkState(mGuardCount > 0); in close()
785 Preconditions.checkState(isBuffered()); in markUpdateServiceRequired()
798 Preconditions.checkState(mBufferCount > 0); in close()
/aosp14/frameworks/base/services/core/java/com/android/server/location/settings/
H A DSettingsStore.java88 Preconditions.checkState(mCache.getVersion() < VERSION_DOES_NOT_EXIST); in initializeCache()
99 Preconditions.checkState(mCache.getVersion() < VERSION_DOES_NOT_EXIST); in initializeCache()
124 Preconditions.checkState(mCache.getVersion() < VERSION_DOES_NOT_EXIST);
/aosp14/frameworks/base/services/core/java/com/android/server/timezonedetector/location/
H A DThreadingDomain.java63 Preconditions.checkState(Thread.currentThread() == getThread()); in assertCurrentThread()
71 Preconditions.checkState(Thread.currentThread() != getThread()); in assertNotCurrentThread()
/aosp14/frameworks/base/media/java/android/media/audiofx/
H A DAudioEffect.java604 checkState("getDescriptor()"); in getDescriptor()
674 checkState("setEnabled()"); in setEnabled()
698 checkState("setParameter()"); in setParameter()
836 checkState("getParameter()"); in getParameter()
1021 checkState("command()"); in command()
1038 checkState("getId()"); in getId()
1049 checkState("getEnabled()"); in getEnabled()
1061 checkState("hasControl()"); in hasControl()
1431 public void checkState(String methodName) throws IllegalStateException { in checkState() method in AudioEffect
/aosp14/frameworks/base/services/core/java/com/android/server/
H A DSystemServerInitThreadPool.java86 Preconditions.checkState(sInstance != null, "Cannot get " + TAG in submit()
97 Preconditions.checkState(!mShutDown, TAG + " already shut down"); in submitTask()
133 Preconditions.checkState(sInstance == null, TAG + " already started"); in start()
/aosp14/frameworks/base/core/java/android/widget/
H A DToastPresenter.java19 import static com.android.internal.util.Preconditions.checkState;
196 checkState(mView != null, "Toast must be showing to update its layout parameters."); in updateLayoutParams()
250 checkState(mView == null, "Only one toast at a time is allowed, call hide() first."); in show()
275 checkState(mView != null, "No toast to hide."); in hide()
/aosp14/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/util/
H A DPreconditions.java162 public static void checkState(final boolean expression, String message) { in checkState() method in Preconditions
175 public static void checkState(final boolean expression) { in checkState() method in Preconditions
176 checkState(expression, null); in checkState()
/aosp14/frameworks/base/services/core/java/com/android/server/location/eventlog/
H A DLocationEventLog.java599 Preconditions.checkState(mAddedRequestCount >= 0); in markRequestRemoved()
606 Preconditions.checkState(mAddedRequestCount > 0); in markRequestActive()
615 Preconditions.checkState(mActiveRequestCount >= 0); in markRequestInactive()
619 Preconditions.checkState(mAddedRequestCount > 0); in markRequestForeground()
628 Preconditions.checkState(mForegroundRequestCount >= 0); in markRequestBackground()
/aosp14/frameworks/base/services/core/java/com/android/server/hdmi/
H A DDeviceDiscoveryAction.java331 Preconditions.checkState(mProcessedDeviceCount < mDevices.size()); in handleReportPhysicalAddress()
363 Preconditions.checkState(mProcessedDeviceCount < mDevices.size());
386 Preconditions.checkState(mProcessedDeviceCount < mDevices.size());
406 Preconditions.checkState(mProcessedDeviceCount < mDevices.size());

123456