/frameworks/base/services/core/java/com/android/server/location/gnss/hal/ |
D | GnssNative.java | 352 Preconditions.checkState(isSupported()); in create() 353 Preconditions.checkState(sInstance == null); in create() 399 Preconditions.checkState(!mRegistered); in addBaseCallbacks() 404 Preconditions.checkState(!mRegistered); in addStatusCallbacks() 410 Preconditions.checkState(!mRegistered); in addSvStatusCallbacks() 416 Preconditions.checkState(!mRegistered); in addNmeaCallbacks() 422 Preconditions.checkState(!mRegistered); in addLocationCallbacks() 428 Preconditions.checkState(!mRegistered); in addMeasurementCallbacks() 434 Preconditions.checkState(!mRegistered); in addAntennaInfoCallbacks() 440 Preconditions.checkState(!mRegistered); in addNavigationMessageCallbacks() [all …]
|
/frameworks/base/services/core/java/com/android/server/location/provider/ |
D | DelegateLocationProvider.java | 56 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()
|
D | LocationProviderManager.java | 333 Preconditions.checkState(onCompleteCallback == null); in deliverOnLocationChanged() 387 Preconditions.checkState(Thread.holdsLock(mLock)); in onRemovableListenerRegister() 415 Preconditions.checkState(Thread.holdsLock(mLock)); in onRemovableListenerUnregister() 442 Preconditions.checkState(Thread.holdsLock(mLock)); in onActive() 458 Preconditions.checkState(Thread.holdsLock(mLock)); in onInactive() 548 Preconditions.checkState(Thread.holdsLock(mLock)); in isUsingHighPower() 582 Preconditions.checkState(Thread.holdsLock(mLock)); in onLocationPermissionsChanged() 610 Preconditions.checkState(Thread.holdsLock(mLock)); in onAdasGnssLocationEnabledChanged() 623 Preconditions.checkState(Thread.holdsLock(mLock)); in onForegroundChanged() 651 Preconditions.checkState(Thread.holdsLock(mLock)); in onProviderLocationRequestChanged() [all …]
|
D | MockableLocationProvider.java | 188 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()
|
D | AbstractLocationProvider.java | 370 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/ |
D | MtpObjectInfo.java | 106 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/ |
D | DecryptedChunkFileOutput.java | 19 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/ |
D | SystemAppOpsHelper.java | 61 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()
|
D | SystemDeviceStationaryHelper.java | 42 Preconditions.checkState(mDeviceIdle != null); in addListener() 54 Preconditions.checkState(mDeviceIdle != null); in removeListener()
|
/frameworks/base/services/core/java/com/android/server/servicewatcher/ |
D | ServiceWatcherImpl.java | 98 Preconditions.checkState(!mRegistered); in register() 109 Preconditions.checkState(mRegistered); in unregister() 195 Preconditions.checkState(Looper.myLooper() == mHandler.getLooper()); in bind() 219 Preconditions.checkState(Looper.myLooper() == mHandler.getLooper()); in unbind() 240 Preconditions.checkState(Looper.myLooper() == mHandler.getLooper()); in runOnBinder() 259 Preconditions.checkState(Looper.myLooper() == mHandler.getLooper()); in onServiceConnected() 260 Preconditions.checkState(mBinder == null); in onServiceConnected() 279 Preconditions.checkState(Looper.myLooper() == mHandler.getLooper()); in onServiceDisconnected() 295 Preconditions.checkState(Looper.myLooper() == mHandler.getLooper()); in onBindingDied()
|
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/tasks/ |
D | EncryptedFullBackupDataProcessor.java | 19 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/ |
D | DecryptedChunkKvOutput.java | 19 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/ |
D | ListenerMultiplexer.java | 243 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/media/java/android/media/ |
D | AudioPlaybackCaptureConfiguration.java | 180 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/ |
D | Preconditions.java | 36 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/services/backup/backuplib/java/com/android/server/backup/transport/ |
D | TransportConnection.java | 287 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/ |
D | DataRemovalRequest.java | 129 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/ |
D | AutofillValue.java | 66 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/packages/SystemUI/src/com/android/systemui/doze/ |
D | DozeMachine.java | 222 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/location/java/android/location/ |
D | GnssStatus.java | 135 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/services/core/java/com/android/server/location/settings/ |
D | SettingsStore.java | 88 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/ |
D | ThreadingDomain.java | 63 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/ |
D | ShadowBackupDataInput.java | 19 import static com.google.common.base.Preconditions.checkState; 103 checkState(mCurrentEntityInputStream != null, "Must call readNextHeader() first"); in readEntityData()
|
/frameworks/base/services/core/java/com/android/server/ |
D | SystemServerInitThreadPool.java | 85 Preconditions.checkState(sInstance != null, "Cannot get " + TAG in submit() 96 Preconditions.checkState(!mShutDown, TAG + " already shut down"); in submitTask() 132 Preconditions.checkState(sInstance == null, TAG + " already started"); in start()
|
/frameworks/base/media/java/android/media/audiofx/ |
D | AudioEffect.java | 604 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
|