/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/ |
D | MpegTsSampleSource.java | 91 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/ |
D | TunerPreferences.java | 44 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/ |
D | DvrManager.java | 178 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 …]
|
D | DvrScheduleManager.java | 262 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/ |
D | JpegUtilNative.java | 212 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/ |
D | PreconditionsTest.java | 33 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/ |
D | Assert.java | 118 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/ |
D | PublicCredential.java | 158 Preconditions.checkState( in Builder() 160 Preconditions.checkState( in Builder() 163 Preconditions.checkState( in Builder() 165 Preconditions.checkState( in Builder() 168 Preconditions.checkState( in Builder()
|
D | PrivateCredential.java | 117 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/ |
D | MpegTsMediaPeriod.java | 66 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/ |
D | ActiveOperationalDataset.java | 20 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/ |
D | FederatedExampleIterator.java | 113 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/ |
D | BlockingUserLifecycleListener.java | 193 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/ |
D | SoftPreconditions.java | 134 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()
|
D | CommonPreferences.java | 151 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/ |
D | GlobalSearchSession.java | 131 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()
|
D | AppSearchSession.java | 203 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/ |
D | ImagePersistWorker.java | 123 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/ |
D | ScaleHelper.java | 18 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/ |
D | JobServiceCallback.java | 19 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/ |
D | EpisodicProgramLoadTask.java | 114 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/ |
D | PublisherFactory.java | 85 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/ |
D | RefCountBase.java | 37 Preconditions.checkState( in RefCountBase() 47 Preconditions.checkState(!mObjectClosed, in addRef()
|
D | MainThread.java | 19 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/ |
D | BlockingResultReceiver.java | 54 Preconditions.checkState(mLatch.getCount() == 1, in send() 64 Preconditions.checkState(called, "receiver not called in " + mTimeoutMs + " ms"); in assertCalled()
|