Home
last modified time | relevance | path

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

12345

/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/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/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/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/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/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/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()
168 SoftPreconditions.checkState(sInitialized); in getTrickplaySetting()
179 SoftPreconditions.checkState(sInitialized); in setTrickplaySetting()
192 SoftPreconditions.checkState(sInitialized); in getStoreTsStream()
212 SoftPreconditions.checkState(sInitialized); in getLastPostalCode()
/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/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/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()
DRefreshHelper.java18 import static androidx.core.util.Preconditions.checkState;
67 checkState(!mAttached); in attach()
/packages/apps/Dialer/java/com/android/voicemail/impl/transcribe/
DTranscriptionDbHelper.java66 Assert.checkState(Build.VERSION.SDK_INT >= Build.VERSION_CODES.O); in getTranscriptionAndState()
86 Assert.checkState(Build.VERSION.SDK_INT >= Build.VERSION_CODES.O); in getUntranscribedVoicemails()
113 Assert.checkState(Build.VERSION.SDK_INT >= Build.VERSION_CODES.O); in getTranscribingVoicemails()
/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/apps/Camera2/src/com/android/camera/one/v2/core/
DFrameServerImpl.java19 import static com.google.common.base.Preconditions.checkState;
91 checkState(!mCameraLock.isHeldByCurrentThread(), "Cannot acquire another " + in createExclusiveSession()
/packages/apps/TV/src/com/android/tv/dvr/ui/list/
DSeriesScheduleRowPresenter.java96 SoftPreconditions.checkState( in onStartRecording()
104 SoftPreconditions.checkState( in onStopRecording()
DScheduleRow.java55 SoftPreconditions.checkState(!mStartRecordingRequested); in setStopRecordingRequested()
66 SoftPreconditions.checkState(!mStopRecordingRequested); in setStartRecordingRequested()
/packages/apps/Dialer/java/com/android/dialer/widget/
DContactPhotoView.java81 Assert.checkState( in onMeasure()
84 Assert.checkState( in onMeasure()
/packages/apps/Camera2/src/com/android/camera/one/v2/common/
DPictureSizeCalculator.java113 Preconditions.checkState(!supported.isEmpty()); in getSmallestSupportedSizeContainingTarget()
161 Preconditions.checkState(!supported.isEmpty()); in getLargestSupportedSize()
/packages/apps/Dialer/java/com/android/dialer/dialpadview/
DDialpadView.java548 Assert.checkState(isLandscapeMode); in shouldAdjustKeyWidths()
571 Assert.checkState(!isLandscapeMode); in shouldAdjustDigitKeyHeights()
609 Assert.checkState(!isLandscapeMode); in adjustDigitKeyHeights()
653 Assert.checkState(isLandscapeMode); in adjustKeyWidths()
/packages/apps/TV/src/com/android/tv/dvr/ui/
DSortedArrayAdapter.java94 SoftPreconditions.checkState(!mIds.contains(newItemId)); in add()
116 SoftPreconditions.checkState(!mIds.contains(newItemId)); in addExtraItem()
/packages/apps/TV/tuner/src/com/android/tv/tuner/hdhomerun/
DHdHomeRunTunerHal.java63 SoftPreconditions.checkState(mDevice == null); in openFirstAvailable()
195 if (SoftPreconditions.checkState(!TextUtils.isEmpty(deviceModel))) { in nativeGetDeliverySystemType()
/packages/apps/TV/common/src/com/android/tv/common/recording/
DRecordingStorageStatusManager.java189 SoftPreconditions.checkState(Looper.myLooper() != Looper.getMainLooper()); in getRecordingRootDataDirectory()
228 SoftPreconditions.checkState(false); in getDvrStorageStatus()

12345