Home
last modified time | relevance | path

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

123456

/frameworks/base/services/core/java/com/android/server/location/gnss/hal/
DGnssNative.java370 Preconditions.checkState(isSupported()); in create()
371 Preconditions.checkState(sInstance == null); in create()
425 Preconditions.checkState(!mRegistered); in addBaseCallbacks()
430 Preconditions.checkState(!mRegistered); in addStatusCallbacks()
436 Preconditions.checkState(!mRegistered); in addSvStatusCallbacks()
442 Preconditions.checkState(!mRegistered); in addNmeaCallbacks()
448 Preconditions.checkState(!mRegistered); in addLocationCallbacks()
454 Preconditions.checkState(!mRegistered); in addMeasurementCallbacks()
460 Preconditions.checkState(!mRegistered); in addAntennaInfoCallbacks()
466 Preconditions.checkState(!mRegistered); in addNavigationMessageCallbacks()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/domainselection/
DDomainSelectionConnection.java111 if (checkState(STATUS_DISPOSED)) { in onCreated()
126 if (checkState(STATUS_DISPOSED)) { in onWlanSelected()
137 if (checkState(STATUS_DISPOSED)) { in onWwanSelectedAsync()
164 if (checkState(STATUS_DISPOSED)) { in onWwanSelectedAsyncInternal()
184 if (checkState(STATUS_DISPOSED)) { in onSelectionTerminated()
203 if (checkState(STATUS_DISPOSED)) { in onRequestEmergencyNetworkScan()
221 if (checkState(STATUS_DISPOSED)) { in onDomainSelected()
232 if (checkState(STATUS_DISPOSED) || mHandler == null) { in onCancel()
279 if (checkState(STATUS_DISPOSED) || !checkState(STATUS_WAIT_BINDING)) { in handleMessage()
291 if (!checkState(STATUS_DISPOSED) && checkState(STATUS_WAIT_BINDING)) { in handleMessage()
[all …]
/frameworks/base/services/core/java/com/android/server/location/provider/
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()
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()
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()
/frameworks/base/media/java/android/mtp/
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()
/frameworks/base/services/core/java/com/android/server/location/injector/
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()
DSystemDeviceStationaryHelper.java42 Preconditions.checkState(mDeviceIdle != null); in addListener()
54 Preconditions.checkState(mDeviceIdle != null); in removeListener()
DSystemPackageResetHelper.java46 Preconditions.checkState(mReceiver == null); in onRegister()
65 Preconditions.checkState(mReceiver != null); in onUnregister()
/frameworks/base/services/core/java/com/android/server/servicewatcher/
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()
/frameworks/base/errorprone/tests/res/android/util/
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
/frameworks/base/media/java/android/media/
DAudioPlaybackCaptureConfiguration.java180 Preconditions.checkState( in addMatchingUsage()
197 Preconditions.checkState( in addMatchingUid()
214 Preconditions.checkState( in excludeUsage()
233 Preconditions.checkState( in excludeUid()
/frameworks/base/services/backup/java/com/android/server/backup/transport/
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 …]
/frameworks/base/core/java/android/view/contentcapture/
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()
/frameworks/base/core/java/android/view/autofill/
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()
/frameworks/base/location/java/android/location/
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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
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()
/frameworks/base/services/core/java/com/android/server/location/listeners/
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()
/frameworks/base/services/core/java/com/android/server/location/settings/
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);
/frameworks/base/services/core/java/com/android/server/timezonedetector/location/
DThreadingDomain.java63 Preconditions.checkState(Thread.currentThread() == getThread()); in assertCurrentThread()
71 Preconditions.checkState(Thread.currentThread() != getThread()); in assertNotCurrentThread()
/frameworks/base/services/core/java/com/android/server/
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()
/frameworks/base/media/java/android/media/audiofx/
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
/frameworks/base/services/core/java/com/android/server/pm/
DApexManager.java563 Preconditions.checkState(mPackageNameToApexModuleName != null, in getActiveApexPackageNameContainingPackage()
745 Preconditions.checkState(mPackageNameToApexModuleName != null, in getApkInApexInstallError()
759 Preconditions.checkState(mPackageNameToApexModuleName != null, in getApksInApex()
773 Preconditions.checkState(mPackageNameToApexModuleName != null, in getApexModuleNameForPackageName()
783 Preconditions.checkState(mApexModuleNameToActivePackageName != null, in getActivePackageNameForApexModuleName()
793 Preconditions.checkState(mPackageNameToApexModuleName != null, in snapshotCeData()
814 Preconditions.checkState(mPackageNameToApexModuleName != null, in restoreCeData()
930 Preconditions.checkState(mApexSystemServices != null, in getApexSystemServices()
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/util/
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()
/frameworks/libs/modules-utils/java/com/android/internal/util/
DPreconditions.java206 public static void checkState(final boolean expression) { in checkState() method in Preconditions
207 checkState(expression, null); in checkState()
220 public static void checkState(final boolean expression, String errorMessage) { in checkState() method in Preconditions
236 public static void checkState( in checkState() method in Preconditions

123456