Home
last modified time | relevance | path

Searched refs:Preconditions (Results 1 – 25 of 206) sorted by relevance

123456789

/packages/apps/Tag/src/com/android/apps/tag/record/
DTextRecord.java21 import com.google.common.base.Preconditions;
49 mLanguageCode = Preconditions.checkNotNull(languageCode); in TextRecord()
50 mText = Preconditions.checkNotNull(text); in TextRecord()
81 Preconditions.checkArgument(record.getTnf() == NdefRecord.TNF_WELL_KNOWN); in parse()
82 Preconditions.checkArgument(Arrays.equals(record.getType(), NdefRecord.RTD_TEXT)); in parse()
86 Preconditions.checkArgument(payload.length > 0); in parse()
104 Preconditions.checkArgument(payload.length - languageCodeLength - 1 >= 0); in parse()
134 Preconditions.checkNotNull(text); in newTextRecord()
135 Preconditions.checkNotNull(locale); in newTextRecord()
DMimeRecord.java21 import com.google.common.base.Preconditions;
43 mType = Preconditions.checkNotNull(mimeType); in MimeRecord()
44 Preconditions.checkNotNull(content); in MimeRecord()
71 Preconditions.checkArgument(record.toMimeType() != null); in parse()
DSmartPoster.java22 import com.google.common.base.Preconditions;
106 mUriRecord = Preconditions.checkNotNull(uri); in SmartPoster()
109 mAction = Preconditions.checkNotNull(action); in SmartPoster()
125 Preconditions.checkArgument(record.getTnf() == NdefRecord.TNF_WELL_KNOWN); in parse()
126 Preconditions.checkArgument(Arrays.equals(record.getType(), NdefRecord.RTD_SMART_POSTER)); in parse()
/packages/apps/Camera2/src/com/android/camera/util/
DJpegUtilNative.java25 import com.google.common.base.Preconditions;
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/apps/Settings/src/com/android/settings/deletionhelper/
DAutomaticStorageManagerSwitchBarController.java28 import com.android.internal.util.Preconditions;
51 mContext = Preconditions.checkNotNull(context); in AutomaticStorageManagerSwitchBarController()
52 mSwitchBar = Preconditions.checkNotNull(switchBar); in AutomaticStorageManagerSwitchBarController()
53 mMetrics = Preconditions.checkNotNull(metrics); in AutomaticStorageManagerSwitchBarController()
54 mDaysToRetainPreference = Preconditions.checkNotNull(daysToRetainPreference); in AutomaticStorageManagerSwitchBarController()
55 mFragmentManager = Preconditions.checkNotNull(fragmentManager); in AutomaticStorageManagerSwitchBarController()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deletionhelper/
DAutomaticStorageManagerSwitchBarController.java28 import com.android.internal.util.Preconditions;
51 mContext = Preconditions.checkNotNull(context); in AutomaticStorageManagerSwitchBarController()
52 mSwitchBar = Preconditions.checkNotNull(switchBar); in AutomaticStorageManagerSwitchBarController()
53 mMetrics = Preconditions.checkNotNull(metrics); in AutomaticStorageManagerSwitchBarController()
54 mDaysToRetainPreference = Preconditions.checkNotNull(daysToRetainPreference); in AutomaticStorageManagerSwitchBarController()
55 mFragmentManager = Preconditions.checkNotNull(fragmentManager); in AutomaticStorageManagerSwitchBarController()
/packages/apps/Camera2/src/com/android/camera/processing/memory/
DLruPool.java19 import com.google.common.base.Preconditions;
121 Preconditions.checkArgument(maxSize > 0, "maxSize must be > 0."); in LruPool()
146 Preconditions.checkNotNull(key); in acquire()
172 Preconditions.checkNotNull(key); in add()
173 Preconditions.checkNotNull(value); in add()
252 Preconditions.checkArgument(result >= 0, "Size was < 0."); in checkedSizeOf()
/packages/services/Car/car-lib/src/android/car/
DCarProjectionManager.java45 import com.android.internal.util.Preconditions;
267 Preconditions.checkNotNull(listener, "listener cannot be null"); in registerProjectionListener()
386 Preconditions.checkArgument(event >= 0 && event < NUM_KEY_EVENTS, "Invalid key event"); in addKeyEventHandler()
465 Preconditions.checkNotNull("serviceIntent cannot be null"); in registerProjectionRunner()
482 Preconditions.checkNotNull("serviceIntent cannot be null"); in unregisterProjectionRunner()
509 Preconditions.checkNotNull(callback, "callback cannot be null"); in startProjectionAccessPoint()
575 Preconditions.checkNotNull(device, "device cannot be null"); in requestBluetoothProfileInhibit()
593 Preconditions.checkNotNull(device, "device cannot be null"); in releaseBluetoothProfileInhibit()
611 Preconditions.checkNotNull(status, "status cannot be null"); in updateProjectionStatus()
629 Preconditions.checkNotNull(listener, "listener cannot be null"); in registerProjectionStatusListener()
[all …]
DCarBugreportManager.java28 import com.android.internal.util.Preconditions;
181 Preconditions.checkNotNull(output); in requestBugreport()
182 Preconditions.checkNotNull(extraOutput); in requestBugreport()
183 Preconditions.checkNotNull(callback); in requestBugreport()
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioDeviceInfo.java28 import com.android.internal.util.Preconditions;
83 final AudioGain audioGain = Preconditions.checkNotNull( in CarAudioDeviceInfo()
228 Preconditions.checkArgument(audioGain.maxValue() >= audioGain.minValue()); in checkAudioGainConfiguration()
229 Preconditions.checkArgument((audioGain.defaultValue() >= audioGain.minValue()) in checkAudioGainConfiguration()
231 Preconditions.checkArgument( in checkAudioGainConfiguration()
233 Preconditions.checkArgument( in checkAudioGainConfiguration()
DCarAudioService.java59 import com.android.internal.util.Preconditions;
426 Preconditions.checkNotNull(mCarAudioZones); in getCarVolumeGroup()
427 Preconditions.checkArgumentInRange(zoneId, 0, mCarAudioZones.length - 1, in getCarVolumeGroup()
627 Preconditions.checkNotNull(sourcePortInfo, in createAudioPatchLocked()
631 AudioDevicePort sinkPort = Preconditions.checkNotNull(getAudioPort(usage), in createAudioPatchLocked()
644 AudioGain audioGain = Preconditions.checkNotNull(helper.getAudioGain(), in createAudioPatchLocked()
665 Preconditions.checkNotNull(patch[0], in createAudioPatchLocked()
712 Preconditions.checkArgumentInRange(zoneId, 0, mCarAudioZones.length - 1, in getVolumeGroupCount()
722 Preconditions.checkArgumentInRange(zoneId, 0, mCarAudioZones.length - 1, in getVolumeGroupIdForUsage()
993 final CarVolumeGroup group = Preconditions.checkNotNull( in getAudioPort()
/packages/apps/Settings/src/com/android/settings/applications/
DAppStorageSizesController.java26 import com.android.internal.util.Preconditions;
176 Preconditions.checkNotNull(mTotalSize), in build()
177 Preconditions.checkNotNull(mAppSize), in build()
178 Preconditions.checkNotNull(mDataSize), in build()
179 Preconditions.checkNotNull(mCacheSize), in build()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DAppStorageSizesController.java26 import com.android.internal.util.Preconditions;
176 Preconditions.checkNotNull(mTotalSize), in build()
177 Preconditions.checkNotNull(mAppSize), in build()
178 Preconditions.checkNotNull(mDataSize), in build()
179 Preconditions.checkNotNull(mCacheSize), in build()
/packages/apps/Settings/src/com/android/settings/inputmethod/
DVirtualKeyboardFragment.java31 import com.android.internal.util.Preconditions;
57 Activity activity = Preconditions.checkNotNull(getActivity()); in onCreatePreferences()
59 mImm = Preconditions.checkNotNull(activity.getSystemService(InputMethodManager.class)); in onCreatePreferences()
60 mDpm = Preconditions.checkNotNull(activity.getSystemService(DevicePolicyManager.class)); in onCreatePreferences()
61 mAddVirtualKeyboardScreen = Preconditions.checkNotNull( in onCreatePreferences()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/inputmethod/
DVirtualKeyboardFragment.java33 import com.android.internal.util.Preconditions;
60 Activity activity = Preconditions.checkNotNull(getActivity()); in onCreatePreferences()
62 mImm = Preconditions.checkNotNull(activity.getSystemService(InputMethodManager.class)); in onCreatePreferences()
63 mDpm = Preconditions.checkNotNull(activity.getSystemService(DevicePolicyManager.class)); in onCreatePreferences()
64 mAddVirtualKeyboardScreen = Preconditions.checkNotNull( in onCreatePreferences()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DViewPool.java58 Preconditions.assertUIThread(); in initPool()
77 Preconditions.assertUIThread(); in recycle()
84 Preconditions.assertUIThread(); in addToPool()
96 Preconditions.assertUIThread(); in getView()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DTaskThumbnailCache.java29 import com.android.launcher3.util.Preconditions;
110 Preconditions.assertUIThread(); in updateThumbnailInCache()
122 Preconditions.assertUIThread(); in updateTaskSnapShot()
134 Preconditions.assertUIThread(); in updateThumbnailInBackground()
153 Preconditions.assertUIThread(); in updateThumbnailInBackground()
/packages/services/Car/tests/BugReportApp/src/com/google/android/car/bugreport/
DFileUtils.java20 import com.google.common.base.Preconditions;
47 Preconditions.checkArgument(context.getUser().isSystem(), in getPendingDir()
69 Preconditions.checkArgument(!context.getUser().isSystem(), in getTempDir()
98 Preconditions.checkArgument(bug.getTitle().startsWith("["), in extractLookupCode()
/packages/modules/NetworkStack/src/android/net/ip/
DIpReachabilityMonitor.java47 import com.android.internal.util.Preconditions;
222 Preconditions.checkNotNull(mNetd);
223 Preconditions.checkArgument(!TextUtils.isEmpty(mInterfaceParams.name));
453 Preconditions.checkArgument(numSolicits >= MIN_NUD_SOLICIT_NUM,
455 Preconditions.checkArgument(numSolicits <= MAX_NUD_SOLICIT_NUM,
457 Preconditions.checkArgument(interSolicitIntervalMs >= MIN_NUD_SOLICIT_INTERVAL_MS,
459 Preconditions.checkArgument(interSolicitIntervalMs <= MAX_NUD_SOLICIT_INTERVAL_MS,
/packages/apps/Contacts/tests/src/com/android/contacts/test/mocks/
DMockContentProvider.java26 import com.google.common.base.Preconditions;
250 mUri = Preconditions.checkNotNull(uri); in Insert()
251 mContentValues = Preconditions.checkNotNull(contentValues); in Insert()
252 mResultUri = Preconditions.checkNotNull(resultUri); in Insert()
319 mUri = Preconditions.checkNotNull(uri); in Delete()
330 mSelection = Preconditions.checkNotNull(selection); in withSelection()
395 mUri = Preconditions.checkNotNull(uri); in Update()
396 mContentValues = Preconditions.checkNotNull(contentValues); in Update()
/packages/apps/Dialer/java/com/android/dialer/phonelookup/composite/
DCompositePhoneLookup.java35 import com.google.common.base.Preconditions;
133 Preconditions.checkNotNull(subMessages); in combineSubMessageFutures()
159 DialerFutures.firstMatching(futures, Preconditions::checkNotNull, false /* defaultValue */); in isDirty()
177 Preconditions.checkNotNull(isBuilt); in getMostRecentInfo()
186 Preconditions.checkNotNull(allMaps); in getMostRecentInfo()
235 Preconditions.checkNotNull(isBuilt);
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/analytics/
DMetricsWriterFactory.java21 import com.android.internal.util.Preconditions;
39 Preconditions.checkNotNull(context); in getMetricsWriter()
40 Preconditions.checkNotNull(settingsFacade); in getMetricsWriter()
/packages/apps/Camera2/src/com/android/camera/async/
DRefCountBase.java20 import com.google.common.base.Preconditions;
37 Preconditions.checkState( in RefCountBase()
47 Preconditions.checkState(!mObjectClosed, in addRef()
/packages/apps/Settings/src/com/android/settings/wifi/
DCaptivePortalNetworkCallback.java22 import com.android.internal.util.Preconditions;
34 mNetwork = Preconditions.checkNotNull(network); in CaptivePortalNetworkCallback()
35 mConnectedApPreference = Preconditions.checkNotNull(connectedApPreference); in CaptivePortalNetworkCallback()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/
DCaptivePortalNetworkCallback.java22 import com.android.internal.util.Preconditions;
34 mNetwork = Preconditions.checkNotNull(network); in CaptivePortalNetworkCallback()
35 mConnectedApPreference = Preconditions.checkNotNull(connectedApPreference); in CaptivePortalNetworkCallback()

123456789