Home
last modified time | relevance | path

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

123

/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/SystemUI/src/com/android/systemui/doze/
DDozeMachine.java145 Preconditions.checkState(mParts == null); in setParts()
170 Preconditions.checkState(!isExecutingTransition()); in requestPulse()
218 Preconditions.checkState(mState == State.DOZE_REQUEST_PULSE in getPulseReason()
285 Preconditions.checkState(newState == State.FINISH); in validateTransition()
288 Preconditions.checkState(newState == State.INITIALIZED); in validateTransition()
295 Preconditions.checkState(mState == State.UNINITIALIZED); in validateTransition()
298 Preconditions.checkState(mState == State.DOZE_REQUEST_PULSE); in validateTransition()
301 Preconditions.checkState( in validateTransition()
/frameworks/base/services/backup/java/com/android/server/backup/transport/
DTransportClient.java283 Preconditions.checkState( in markAsDisposed()
314 Preconditions.checkState(
556 checkState(mListeners.isEmpty(), "Unexpected listeners when state = UNUSABLE"); in checkStateIntegrityLocked()
557 checkState( in checkStateIntegrityLocked()
560 checkState(mListeners.isEmpty(), "Unexpected listeners when state = IDLE"); in checkStateIntegrityLocked()
561 checkState(mTransport == null, "Transport expected to be null when state = IDLE"); in checkStateIntegrityLocked()
564 checkState( in checkStateIntegrityLocked()
569 checkState(mListeners.isEmpty(), "Unexpected listeners when state = CONNECTED"); in checkStateIntegrityLocked()
570 checkState( in checkStateIntegrityLocked()
575 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/core/java/android/view/contentcapture/
DDataRemovalRequest.java126 Preconditions.checkState(mLocusIds == null, "Already added LocusIds"); in forEverything()
143 Preconditions.checkState(!mForEverything, "Already is for everything"); in addLocusId()
164 Preconditions.checkState(mForEverything || mLocusIds != null, in build()
172 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=" + mType); in getTextValue()
87 Preconditions.checkState(isToggle(), "value must be a toggle value, not type=" + mType); in getToggleValue()
108 Preconditions.checkState(isList(), "value must be a list value, not type=" + mType); in getListValue()
129 Preconditions.checkState(isDate(), "value must be a date value, not type=" + mType); in getDateValue()
/frameworks/base/media/java/android/media/audiofx/
DAudioEffect.java545 checkState("getDescriptor()"); in getDescriptor()
615 checkState("setEnabled()"); in setEnabled()
639 checkState("setParameter()"); in setParameter()
777 checkState("getParameter()"); in getParameter()
962 checkState("command()"); in command()
979 checkState("getId()"); in getId()
990 checkState("getEnabled()"); in getEnabled()
1002 checkState("hasControl()"); in hasControl()
1372 public void checkState(String methodName) throws IllegalStateException { in checkState() method in AudioEffect
/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/base/core/java/com/android/internal/util/
DPreconditions.java169 public static void checkState(final boolean expression, String message) { in checkState() method in Preconditions
183 public static void checkState(final boolean expression) { in checkState() method in Preconditions
184 checkState(expression, null); in checkState()
/frameworks/base/services/core/java/com/android/server/hdmi/
DDeviceDiscoveryAction.java323 Preconditions.checkState(mProcessedDeviceCount < mDevices.size()); in handleReportPhysicalAddress()
353 Preconditions.checkState(mProcessedDeviceCount < mDevices.size());
380 Preconditions.checkState(mProcessedDeviceCount < mDevices.size());
400 Preconditions.checkState(mProcessedDeviceCount < mDevices.size());
/frameworks/base/core/java/android/content/pm/
DShortcutInfo.java814 Preconditions.checkState(isVisibleToPublisher(), in ensureUpdatableWith()
817 Preconditions.checkState(mUserId == source.mUserId, "Owner User ID must match"); in ensureUpdatableWith()
818 Preconditions.checkState(mId.equals(source.mId), "ID must match"); in ensureUpdatableWith()
819 Preconditions.checkState(mPackageName.equals(source.mPackageName), in ensureUpdatableWith()
824 Preconditions.checkState(!isImmutable(), "Target ShortcutInfo is immutable"); in ensureUpdatableWith()
1078 Preconditions.checkState(mTitle == null, "shortLabel already set"); in setShortLabelResId()
1098 Preconditions.checkState(mTitleResId == 0, "shortLabelResId already set"); in setShortLabel()
1109 Preconditions.checkState(mText == null, "longLabel already set"); in setLongLabelResId()
1126 Preconditions.checkState(mTextResId == 0, "longLabelResId already set"); in setLongLabel()
1161 Preconditions.checkState(mDisabledMessage == null, "disabledMessage already set"); in setDisabledMessageResId()
[all …]
/frameworks/base/wifi/java/android/net/wifi/
DWifiNetworkAgentSpecifier.java20 import static com.android.internal.util.Preconditions.checkState;
138 checkState(ssidWithQuotes.startsWith("\"") && ssidWithQuotes.endsWith("\"")); in satisfiesNetworkSpecifier()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/wakelock/
DWakeLockFake.java32 Preconditions.checkState(mAcquired > 0); in release()
/frameworks/base/core/java/android/hardware/usb/
DUsbRequest.java246 Preconditions.checkState(mNativeContext != 0, "request is not initialized"); in queue()
249 Preconditions.checkState(!mIsUsingNewQueue, "this request is currently queued"); in queue()
/frameworks/base/apct-tests/perftests/core/src/android/database/
DSQLiteDatabaseIoPerfTest.java134 Preconditions.checkState(mWriteBytes == null, "Measurement already started"); in startMeasuringWrites()
139 Preconditions.checkState(mWriteBytes != null, "Measurement wasn't started"); in endMeasuringWrites()
/frameworks/base/services/core/java/com/android/server/lights/
DLightsService.java118 Preconditions.checkState(lightIds.length == lightStates.length); in setLightStates()
122 Preconditions.checkState(session != null, "not registered"); in setLightStates()
154 Preconditions.checkState(getSessionLocked(token) == null, "already registered"); in openSession()
187 Preconditions.checkState(light != null && !isSystemLight(hwLight), in checkRequestIsValid()
/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()
/frameworks/base/core/java/android/service/autofill/
DSaveInfo.java478 Preconditions.checkState(mCustomDescription == null, in setDescription()
498 Preconditions.checkState(mDescription == null, in setCustomDescription()
695 Preconditions.checkState( in build()
/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/native/services/sensorservice/
DFusion.h93 void checkState();
/frameworks/base/tools/locked_region_code_injection/src/lockedregioncodeinjection/
DLockFindingClassVisitor.java37 import static com.google.common.base.Preconditions.checkState;
150 checkState(instructions.get(i + 1).getType() == AbstractInsnNode.LABEL, in visitEnd()
160 checkState(handlersMap.get(i).get(0).end == label, in visitEnd()
/frameworks/base/services/core/java/com/android/server/
DServiceWatcher.java254 Preconditions.checkState(Looper.myLooper() == mHandler.getLooper()); in bindBestPackage()
331 Preconditions.checkState(Looper.myLooper() == mHandler.getLooper()); in bind()
347 Preconditions.checkState(Looper.myLooper() == mHandler.getLooper()); in unbind()
/frameworks/base/services/backup/java/com/android/server/backup/remote/
DRemoteCall.java115 Preconditions.checkState( in call()
DRemoteResult.java63 Preconditions.checkState(isPresent(), "Can't obtain value of failed result"); in get()
/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

123