Home
last modified time | relevance | path

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

123456

/frameworks/base/services/core/java/com/android/server/location/gnss/hal/
DGnssNative.java348 Preconditions.checkState(isSupported()); in create()
349 Preconditions.checkState(sInstance == null); in create()
395 Preconditions.checkState(!mRegistered); in addBaseCallbacks()
400 Preconditions.checkState(!mRegistered); in addStatusCallbacks()
406 Preconditions.checkState(!mRegistered); in addSvStatusCallbacks()
412 Preconditions.checkState(!mRegistered); in addNmeaCallbacks()
418 Preconditions.checkState(!mRegistered); in addLocationCallbacks()
424 Preconditions.checkState(!mRegistered); in addMeasurementCallbacks()
430 Preconditions.checkState(!mRegistered); in addAntennaInfoCallbacks()
436 Preconditions.checkState(!mRegistered); in addNavigationMessageCallbacks()
[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()
DLocationProviderManager.java290 Preconditions.checkState(onCompleteCallback == null); in deliverOnLocationChanged()
331 Preconditions.checkState(Thread.holdsLock(mLock)); in onRemovableListenerRegister()
359 Preconditions.checkState(Thread.holdsLock(mLock)); in onRemovableListenerUnregister()
386 Preconditions.checkState(Thread.holdsLock(mLock)); in onActive()
402 Preconditions.checkState(Thread.holdsLock(mLock)); in onInactive()
494 Preconditions.checkState(Thread.holdsLock(mLock)); in isUsingHighPower()
528 Preconditions.checkState(Thread.holdsLock(mLock)); in onLocationPermissionsChanged()
556 Preconditions.checkState(Thread.holdsLock(mLock)); in onAdasGnssLocationEnabledChanged()
569 Preconditions.checkState(Thread.holdsLock(mLock)); in onForegroundChanged()
597 Preconditions.checkState(Thread.holdsLock(mLock)); in onProviderLocationRequestChanged()
[all …]
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/packages/BackupEncryption/src/com/android/server/backup/encryption/chunking/
DDecryptedChunkFileOutput.java19 import static com.android.internal.util.Preconditions.checkState;
58 checkState(mFileOutputStream == null, "Cannot open twice"); in open()
65 checkState(mFileOutputStream != null, "Must open before processing chunks"); in processChunk()
72 checkState(mClosed, "Must close before getting mDigest"); in getDigest()
/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()
/frameworks/base/services/core/java/com/android/server/servicewatcher/
DServiceWatcherImpl.java97 Preconditions.checkState(!mRegistered); in register()
108 Preconditions.checkState(mRegistered); in unregister()
194 Preconditions.checkState(Looper.myLooper() == mHandler.getLooper()); in bind()
218 Preconditions.checkState(Looper.myLooper() == mHandler.getLooper()); in unbind()
239 Preconditions.checkState(Looper.myLooper() == mHandler.getLooper()); in runOnBinder()
258 Preconditions.checkState(Looper.myLooper() == mHandler.getLooper()); in onServiceConnected()
259 Preconditions.checkState(mBinder == null); in onServiceConnected()
278 Preconditions.checkState(Looper.myLooper() == mHandler.getLooper()); in onServiceDisconnected()
294 Preconditions.checkState(Looper.myLooper() == mHandler.getLooper()); in onBindingDied()
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/tasks/
DEncryptedFullBackupDataProcessor.java19 import static com.android.internal.util.Preconditions.checkState;
80 checkState(mBackupTask == null, "initiate() twice"); in initiate()
99 checkState(mBackupTask != null, "start() before initiate()"); in start()
105 checkState( in pushData()
136 checkState(mBackupTaskFuture != null && mBackupTask != null, "cancel() before start()"); in cancel()
143 checkState(mBackupTaskFuture != null, "finish() before start()"); in finish()
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/kv/
DDecryptedChunkKvOutput.java19 import static com.android.internal.util.Preconditions.checkState;
63 checkState(!mClosed, "Cannot process chunk after close()"); in processChunk()
80 checkState(mClosed, "Must close() before getDigest()"); in getDigest()
99 checkState(mClosed, "Must close() before getPairs()"); in getPairs()
/frameworks/base/services/core/java/com/android/server/location/listeners/
DListenerMultiplexer.java243 Preconditions.checkState(!mReentrancyGuard.isReentrant()); in replaceRegistration()
291 Preconditions.checkState(!mReentrancyGuard.isReentrant()); in removeRegistration()
309 Preconditions.checkState(!mReentrancyGuard.isReentrant()); in removeRegistrationIf()
361 Preconditions.checkState(Thread.holdsLock(mRegistrations)); in removeRegistration()
521 Preconditions.checkState(Thread.holdsLock(mRegistrations)); in onRegistrationActiveChanged()
659 Preconditions.checkState(Thread.holdsLock(mRegistrations)); in isReentrant()
667 Preconditions.checkState(Thread.holdsLock(mRegistrations)); in markForRemoval()
669 Preconditions.checkState(isReentrant()); in markForRemoval()
686 Preconditions.checkState(mGuardCount > 0); in close()
737 Preconditions.checkState(isBuffered()); in markUpdateServiceRequired()
[all …]
/frameworks/base/services/backup/backuplib/java/com/android/server/backup/transport/
DTransportClient.java284 Preconditions.checkState( in markAsDisposed()
315 Preconditions.checkState(
557 checkState(mListeners.isEmpty(), "Unexpected listeners when state = UNUSABLE"); in checkStateIntegrityLocked()
558 checkState( in checkStateIntegrityLocked()
561 checkState(mListeners.isEmpty(), "Unexpected listeners when state = IDLE"); in checkStateIntegrityLocked()
562 checkState(mTransport == null, "Transport expected to be null when state = IDLE"); in checkStateIntegrityLocked()
565 checkState( in checkStateIntegrityLocked()
570 checkState(mListeners.isEmpty(), "Unexpected listeners when state = CONNECTED"); in checkStateIntegrityLocked()
571 checkState( in checkStateIntegrityLocked()
576 checkState(false, "Unexpected state = " + stateToString(mState)); in checkStateIntegrityLocked()
[all …]
/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/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/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/core/java/android/view/contentcapture/
DDataRemovalRequest.java128 Preconditions.checkState(mLocusIds == null, "Already added LocusIds"); in forEverything()
145 Preconditions.checkState(!mForEverything, "Already is for everything"); in addLocusId()
166 Preconditions.checkState(mForEverything || mLocusIds != null, in build()
174 Preconditions.checkState(!mDestroyed, "Already destroyed!"); in throwIfDestroyed()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeMachine.java203 Preconditions.checkState(!isExecutingTransition()); in requestPulse()
258 Preconditions.checkState(mState == State.DOZE_REQUEST_PULSE in getPulseReason()
326 Preconditions.checkState(newState == State.FINISH); in validateTransition()
329 Preconditions.checkState(newState == State.INITIALIZED); in validateTransition()
336 Preconditions.checkState(mState == State.UNINITIALIZED); in validateTransition()
339 Preconditions.checkState(mState == State.DOZE_REQUEST_PULSE); in validateTransition()
342 Preconditions.checkState( in validateTransition()
/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/apex/appsearch/framework/java/android/app/appsearch/
DAppSearchSession.java148 Preconditions.checkState(!mIsClosed, "AppSearchSession has already been closed"); in setSchema()
195 Preconditions.checkState(!mIsClosed, "AppSearchSession has already been closed"); in getSchema()
232 Preconditions.checkState(!mIsClosed, "AppSearchSession has already been closed"); in getNamespaces()
283 Preconditions.checkState(!mIsClosed, "AppSearchSession has already been closed"); in put()
332 Preconditions.checkState(!mIsClosed, "AppSearchSession has already been closed"); in getByDocumentId()
458 Preconditions.checkState(!mIsClosed, "AppSearchSession has already been closed"); in search()
487 Preconditions.checkState(!mIsClosed, "AppSearchSession has already been closed"); in reportUsage()
538 Preconditions.checkState(!mIsClosed, "AppSearchSession has already been closed"); in remove()
593 Preconditions.checkState(!mIsClosed, "AppSearchSession has already been closed"); in remove()
628 Preconditions.checkState(!mIsClosed, "AppSearchSession has already been closed"); in getStorageInfo()
/frameworks/base/core/java/android/inputmethodservice/
DImsConfigurationTracker.java56 Preconditions.checkState(!mInitialized, "onInitialize can be called only once."); in onInitialize()
66 Preconditions.checkState(mInitialized, in onBindInput()
/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/packages/BackupEncryption/test/robolectric/src/com/android/server/testing/shadows/
DShadowBackupDataInput.java19 import static com.google.common.base.Preconditions.checkState;
103 checkState(mCurrentEntityInputStream != null, "Must call readNextHeader() first"); in readEntityData()

123456