Home
last modified time | relevance | path

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

12345678

/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/
DMpegTsSampleSource.java91 Assertions.checkState(mPrepared); in getTrackCount()
97 Assertions.checkState(mPrepared); in getFormat()
103 Assertions.checkState(mPrepared); in enable()
104 Assertions.checkState(mTrackStates.get(track) == TRACK_STATE_DISABLED); in enable()
112 Assertions.checkState(mPrepared); in disable()
113 Assertions.checkState(mTrackStates.get(track) != TRACK_STATE_DISABLED); in disable()
136 Assertions.checkState(mPrepared); in readData()
137 Assertions.checkState(mTrackStates.get(track) != TRACK_STATE_DISABLED); in readData()
163 Assertions.checkState(mPrepared); in seekToUs()
169 Assertions.checkState(mPrepared); in getBufferedPositionUs()
[all …]
/packages/apps/TV/tuner/src/com/android/tv/tuner/prefs/
DTunerPreferences.java44 SoftPreconditions.checkState(sInitialized); in getChannelDataVersion()
52 SoftPreconditions.checkState(sInitialized); in setChannelDataVersion()
60 SoftPreconditions.checkState(sInitialized); in getScannedChannelCount()
66 SoftPreconditions.checkState(sInitialized); in setScannedChannelCount()
74 SoftPreconditions.checkState(sInitialized); in isScanDone()
80 SoftPreconditions.checkState(sInitialized); in setScanDone()
88 SoftPreconditions.checkState(sInitialized); in getTrickplayExpiredMs()
94 SoftPreconditions.checkState(sInitialized); in setTrickplayExpiredMs()
/packages/apps/TV/src/com/android/tv/dvr/
DDvrManager.java178 if (!SoftPreconditions.checkState(mDataManager.isDvrScheduleLoadFinished())) { in addSchedule()
196 if (!SoftPreconditions.checkState(mDataManager.isDvrScheduleLoadFinished())) { in addScheduleWithHighestPriority()
247 if (!SoftPreconditions.checkState(mDataManager.isDvrScheduleLoadFinished())) { in addSchedule()
283 if (!SoftPreconditions.checkState(mDataManager.isInitialized())) { in addSeriesRecording()
343 if (!SoftPreconditions.checkState(mDataManager.isDvrScheduleLoadFinished())) { in addScheduleToSeriesRecording()
384 if (SoftPreconditions.checkState(mDataManager.isDvrScheduleLoadFinished())) { in updateSeriesRecording()
441 if (!SoftPreconditions.checkState(mDataManager.isDvrScheduleLoadFinished())) { in removeSeriesRecording()
461 if (!SoftPreconditions.checkState(mDataManager.isDvrScheduleLoadFinished())) { in stopRecording()
474 if (!SoftPreconditions.checkState(mDataManager.isDvrScheduleLoadFinished())) { in removeScheduledRecording()
489 if (!SoftPreconditions.checkState(mDataManager.isDvrScheduleLoadFinished())) { in forceRemoveScheduledRecording()
[all …]
DDvrScheduleManager.java262 if (!SoftPreconditions.checkState(mInitialized, TAG, "Not initialized yet")) { in getStartedRecordings()
418 if (!SoftPreconditions.checkState(mInitialized, TAG, "Not initialized yet")) { in suggestNewPriority()
478 if (!SoftPreconditions.checkState(mInitialized, TAG, "Not initialized yet")) { in suggestNewSeriesPriority()
512 SoftPreconditions.checkState(mInitialized, TAG, "Not initialized yet"); in getConflictingSchedules()
513 SoftPreconditions.checkState( in getConflictingSchedules()
515 SoftPreconditions.checkState( in getConflictingSchedules()
543 SoftPreconditions.checkState(mInitialized, TAG, "Not initialized yet"); in getConflictingSchedules()
544 SoftPreconditions.checkState(seriesRecording != null, TAG, "series recording is null"); in getConflictingSchedules()
576 SoftPreconditions.checkState(mInitialized, TAG, "Not initialized yet"); in getConflictingSchedules()
577 SoftPreconditions.checkState(channelId != Channel.INVALID_ID, TAG, "Invalid channel ID"); in getConflictingSchedules()
[all …]
/packages/apps/Camera2/src/com/android/camera/util/
DJpegUtilNative.java212 Preconditions.checkState((degrees % 90) == 0, "Rotation must be a multiple of 90 degrees," + in compressJpegFromYUV420Image()
216 Preconditions.checkState(outBuf.isDirect(), "Output buffer must be direct"); in compressJpegFromYUV420Image()
217 Preconditions.checkState(crop.left < crop.right, "Invalid crop rectangle: " + in compressJpegFromYUV420Image()
219 Preconditions.checkState(crop.top < crop.bottom, "Invalid crop rectangle: " + in compressJpegFromYUV420Image()
222 Preconditions.checkState(img.getFormat() == ImageFormat.YUV_420_888, "Only " + in compressJpegFromYUV420Image()
225 Preconditions.checkState(planeList.size() == NUM_PLANES); in compressJpegFromYUV420Image()
234 Preconditions.checkState(plane.getBuffer().isDirect()); in compressJpegFromYUV420Image()
/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/util/
DPreconditionsTest.java33 Preconditions.checkState(true, MESSAGE_TEMPLATE, MESSAGE); in testCheckState_success()
41 () -> Preconditions.checkState(false, MESSAGE)); in testCheckState_failure()
47 Preconditions.checkState(true, MESSAGE_TEMPLATE, MESSAGE); in testCheckState_formattedMessage_success()
55 () -> Preconditions.checkState(false, MESSAGE_TEMPLATE, MESSAGE)); in testCheckState_formattedMessage_failure()
/packages/apps/Dialer/java/com/android/dialer/common/
DAssert.java118 public static void checkState(boolean expression) { in checkState() method in Assert
119 checkState(expression, null); in checkState()
131 public static void checkState( in checkState() method in Assert
188 checkState(Looper.getMainLooper().equals(Looper.myLooper()), messageTemplate, args); in isMainThread()
211 checkState(!Looper.getMainLooper().equals(Looper.myLooper()), messageTemplate, args); in isWorkerThread()
/packages/modules/Connectivity/nearby/framework/java/android/nearby/
DPublicCredential.java158 Preconditions.checkState( in Builder()
160 Preconditions.checkState( in Builder()
163 Preconditions.checkState( in Builder()
165 Preconditions.checkState( in Builder()
168 Preconditions.checkState( in Builder()
DPrivateCredential.java117 Preconditions.checkState(secretId != null && secretId.length > 0, in Builder()
119 Preconditions.checkState(authenticityKey != null && authenticityKey.length > 0, in Builder()
121 Preconditions.checkState( in Builder()
124 Preconditions.checkState(deviceName != null && deviceName.length() > 0, in Builder()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer2/
DMpegTsMediaPeriod.java66 Assertions.checkState(mPrepared); in enable()
67 Assertions.checkState(mTrackStates.get(track) == TRACK_STATE_DISABLED); in enable()
73 Assertions.checkState(mPrepared); in disable()
74 Assertions.checkState(mTrackStates.get(track) != TRACK_STATE_DISABLED); in disable()
237 Assertions.checkState(mPrepared); in readData()
238 Assertions.checkState(mTrackStates.get(mIndex) != TRACK_STATE_DISABLED); in readData()
/packages/modules/Connectivity/thread/framework/java/android/net/thread/
DActiveOperationalDataset.java20 import static com.android.internal.util.Preconditions.checkState;
938 checkState(mActiveTimestamp != null, "Active Timestamp is missing"); in build()
939 checkState(mNetworkName != null, "Network Name is missing"); in build()
940 checkState(mExtendedPanId != null, "Extended PAN ID is missing"); in build()
941 checkState(mPanId != null, "PAN ID is missing"); in build()
942 checkState(mChannel != null, "Channel is missing"); in build()
943 checkState(mChannelPage != null, "Channel Page is missing"); in build()
944 checkState(mChannelMask.size() != 0, "Channel Mask is missing"); in build()
945 checkState(mPskc != null, "PSKc is missing"); in build()
946 checkState(mNetworkKey != null, "Network Key is missing"); in build()
[all …]
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/examplestore/
DFederatedExampleIterator.java113 Preconditions.checkState(!mClosed, "hasNext() called after close()"); in hasNext()
114 Preconditions.checkState(!isMainThread(), "hasNext() called on main thread"); in hasNext()
124 Preconditions.checkState(!mClosed, "next() called after close()"); in next()
125 Preconditions.checkState(!isMainThread(), "next() called on main thread"); in next()
144 Preconditions.checkState(!isMainThread(), "close() called on main thread"); in close()
194 Preconditions.checkState( in next()
/packages/services/Car/libs/car-test-lib/src/android/car/testapi/
DBlockingUserLifecycleListener.java193 checkState(!mForAnyEvent, "not allowed forAnyEvent()"); in assertNotForAnyEvent()
242 checkState(isForAnyEvent(), in waitForAnyEvent()
264 checkState(!isForAnyEvent(), in waitForEvents()
280 checkState(!isForAnyEvent(), in getAllReceivedEvents()
344 private static void checkState(boolean expression, String errorMessage) { in checkState() method in BlockingUserLifecycleListener
/packages/apps/TV/common/src/com/android/tv/common/
DSoftPreconditions.java134 public static boolean checkState( in checkState() method in SoftPreconditions
154 public static boolean checkState(final boolean expression) { in checkState() method in SoftPreconditions
155 checkState(expression, null, null); in checkState()
169 checkState(feature.isEnabled(context), tag, feature.toString()); in checkFeatureEnabled()
DCommonPreferences.java151 SoftPreconditions.checkState(sInitialized); in shouldShowSetupActivity()
169 SoftPreconditions.checkState(sInitialized); in getTrickplaySetting()
180 SoftPreconditions.checkState(sInitialized); in setTrickplaySetting()
193 SoftPreconditions.checkState(sInitialized); in getStoreTsStream()
213 SoftPreconditions.checkState(sInitialized); in getLastPostalCode()
/packages/modules/AppSearch/framework/java/android/app/appsearch/
DGlobalSearchSession.java131 Preconditions.checkState(!mIsClosed, "GlobalSearchSession has already been closed"); in getByDocumentId()
157 Preconditions.checkState(!mIsClosed, "GlobalSearchSession has already been closed"); in search()
181 Preconditions.checkState(!mIsClosed, "GlobalSearchSession has already been closed"); in getSchema()
210 Preconditions.checkState(!mIsClosed, "GlobalSearchSession has already been closed"); in reportSystemUsage()
274 Preconditions.checkState(!mIsClosed, "GlobalSearchSession has already been closed"); in registerObserverCallback()
398 Preconditions.checkState(!mIsClosed, "GlobalSearchSession has already been closed"); in unregisterObserverCallback()
DAppSearchSession.java203 Preconditions.checkState(!mIsClosed, "AppSearchSession has already been closed"); in setSchema()
245 Preconditions.checkState(!mIsClosed, "AppSearchSession has already been closed"); in getSchema()
293 Preconditions.checkState(!mIsClosed, "AppSearchSession has already been closed"); in getNamespaces()
351 Preconditions.checkState(!mIsClosed, "AppSearchSession has already been closed"); in put()
412 Preconditions.checkState(!mIsClosed, "AppSearchSession has already been closed"); in getByDocumentId()
539 Preconditions.checkState(!mIsClosed, "AppSearchSession has already been closed"); in search()
623 Preconditions.checkState(!mIsClosed, "AppSearchSession has already been closed"); in searchSuggestion()
690 Preconditions.checkState(!mIsClosed, "AppSearchSession has already been closed"); in reportUsage()
745 Preconditions.checkState(!mIsClosed, "AppSearchSession has already been closed"); in remove()
808 Preconditions.checkState(!mIsClosed, "AppSearchSession has already been closed"); in remove()
[all …]
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/
DImagePersistWorker.java123 Assert.checkState(width == bitmap.getHeight()); in writeClippedBitmap()
124 Assert.checkState(height == bitmap.getWidth()); in writeClippedBitmap()
128 Assert.checkState(width == bitmap.getWidth()); in writeClippedBitmap()
129 Assert.checkState(height == bitmap.getHeight()); in writeClippedBitmap()
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DScaleHelper.java18 import static androidx.core.util.Preconditions.checkState;
65 checkState(DEBUG); in attach()
66 checkState(mScaleDetector == null); in attach()
/packages/modules/AdServices/shared/libraries/device-side/java/com/android/adservices/shared/testing/concurrency/
DJobServiceCallback.java19 import static com.android.adservices.shared.util.Preconditions.checkState;
73 checkState( in setCallback()
83 checkState(callbackInstance != null, "%s not set yet.", callbackInstance); in assertCallbackCalled()
/packages/apps/TV/src/com/android/tv/dvr/provider/
DEpisodicProgramLoadTask.java114 SoftPreconditions.checkState( in setLoadCurrentProgram()
122 SoftPreconditions.checkState( in setLoadScheduledEpisode()
133 SoftPreconditions.checkState( in setLoadDisallowedProgram()
145 SoftPreconditions.checkState( in setIgnoreChannelOption()
157 if (SoftPreconditions.checkState( in execute()
/packages/services/Car/service/src/com/android/car/telemetry/publisher/
DPublisherFactory.java85 Preconditions.checkState(mPublisherListener != null, "PublisherFactory is not initialized"); in getPublisher()
104 Preconditions.checkState(stats != null, "StatsManager not found"); in getPublisher()
161 Preconditions.checkState( in initialize()
/packages/apps/Camera2/src/com/android/camera/async/
DRefCountBase.java37 Preconditions.checkState( in RefCountBase()
47 Preconditions.checkState(!mObjectClosed, in addRef()
DMainThread.java19 import static com.google.common.base.Preconditions.checkState;
51 checkState(sIsMainThread.get(), "Not main thread."); in checkMainThread()
/packages/services/Car/libs/car-test-lib/src/android/car/test/util/
DBlockingResultReceiver.java54 Preconditions.checkState(mLatch.getCount() == 1, in send()
64 Preconditions.checkState(called, "receiver not called in " + mTimeoutMs + " ms"); in assertCalled()

12345678