Home
last modified time | relevance | path

Searched refs:IllegalArgumentException (Results 1 – 25 of 2399) sorted by relevance

12345678910>>...96

/frameworks/base/media/java/android/media/audiofx/
DEnvironmentalReverb.java137 throws IllegalArgumentException, UnsupportedOperationException, RuntimeException { in EnvironmentalReverb()
149 throws IllegalStateException, IllegalArgumentException, UnsupportedOperationException { in setRoomLevel()
162 throws IllegalStateException, IllegalArgumentException, UnsupportedOperationException { in getRoomLevel()
178 throws IllegalStateException, IllegalArgumentException, UnsupportedOperationException { in setRoomHFLevel()
191 throws IllegalStateException, IllegalArgumentException, UnsupportedOperationException { in getRoomHFLevel()
205 throws IllegalStateException, IllegalArgumentException, UnsupportedOperationException { in setDecayTime()
218 throws IllegalStateException, IllegalArgumentException, UnsupportedOperationException { in getDecayTime()
234 throws IllegalStateException, IllegalArgumentException, UnsupportedOperationException { in setDecayHFRatio()
247 throws IllegalStateException, IllegalArgumentException, UnsupportedOperationException { in getDecayHFRatio()
263 throws IllegalStateException, IllegalArgumentException, UnsupportedOperationException { in setReflectionsLevel()
[all …]
DEqualizer.java137 throws IllegalStateException, IllegalArgumentException, in Equalizer()
176 throws IllegalStateException, IllegalArgumentException, UnsupportedOperationException { in getNumberOfBands()
198 throws IllegalStateException, IllegalArgumentException, UnsupportedOperationException { in getBandLevelRange()
216 throws IllegalStateException, IllegalArgumentException, UnsupportedOperationException { in setBandLevel()
236 throws IllegalStateException, IllegalArgumentException, UnsupportedOperationException { in getBandLevel()
258 throws IllegalStateException, IllegalArgumentException, UnsupportedOperationException { in getCenterFreq()
280 throws IllegalStateException, IllegalArgumentException, UnsupportedOperationException { in getBandFreqRange()
299 throws IllegalStateException, IllegalArgumentException, UnsupportedOperationException { in getBand()
318 throws IllegalStateException, IllegalArgumentException, UnsupportedOperationException { in getCurrentPreset()
334 throws IllegalStateException, IllegalArgumentException, UnsupportedOperationException { in usePreset()
[all …]
DVirtualizer.java123 throws IllegalStateException, IllegalArgumentException, in Virtualizer()
157 throws IllegalStateException, IllegalArgumentException, UnsupportedOperationException { in setStrength()
170 throws IllegalStateException, IllegalArgumentException, UnsupportedOperationException { in getRoundedStrength()
189 throws IllegalStateException, IllegalArgumentException, UnsupportedOperationException { in getAnglesInt()
192 throw (new IllegalArgumentException( in getAnglesInt()
201 throw (new IllegalArgumentException( in getAnglesInt()
310 throws IllegalArgumentException { in getDeviceForModeQuery()
317 throw (new IllegalArgumentException( in getDeviceForModeQuery()
323 throws IllegalArgumentException { in getDeviceForModeForce()
381 throws IllegalStateException, IllegalArgumentException, UnsupportedOperationException { in canVirtualize()
[all …]
DLoudnessEnhancer.java78 throws IllegalStateException, IllegalArgumentException, in LoudnessEnhancer()
104 throws IllegalStateException, IllegalArgumentException, in LoudnessEnhancer()
123 throws IllegalStateException, IllegalArgumentException, UnsupportedOperationException { in setTargetGain()
135 throws IllegalStateException, IllegalArgumentException, UnsupportedOperationException { in getTargetGain()
230 throw new IllegalArgumentException("settings: " + settings); in Settings()
234 throw new IllegalArgumentException( in Settings()
240 throw new IllegalArgumentException("invalid key name: " + key); in Settings()
244 throw new IllegalArgumentException("invalid value for key: " + key); in Settings()
269 throws IllegalStateException, IllegalArgumentException, UnsupportedOperationException { in getProperties()
287 throws IllegalStateException, IllegalArgumentException, UnsupportedOperationException { in setProperties()
DBassBoost.java92 throws IllegalStateException, IllegalArgumentException, in BassBoost()
126 throws IllegalStateException, IllegalArgumentException, UnsupportedOperationException { in setStrength()
139 throws IllegalStateException, IllegalArgumentException, UnsupportedOperationException { in getRoundedStrength()
229 throw new IllegalArgumentException("settings: " + settings); in Settings()
233 throw new IllegalArgumentException( in Settings()
239 throw new IllegalArgumentException("invalid key name: " + key); in Settings()
243 throw new IllegalArgumentException("invalid value for key: " + key); in Settings()
267 throws IllegalStateException, IllegalArgumentException, UnsupportedOperationException { in getProperties()
284 throws IllegalStateException, IllegalArgumentException, UnsupportedOperationException { in setProperties()
DPresetReverb.java127 throws IllegalArgumentException, UnsupportedOperationException, RuntimeException { in PresetReverb()
143 throws IllegalStateException, IllegalArgumentException, UnsupportedOperationException { in setPreset()
155 throws IllegalStateException, IllegalArgumentException, UnsupportedOperationException { in getPreset()
245 throw new IllegalArgumentException("settings: " + settings); in Settings()
249 throw new IllegalArgumentException( in Settings()
255 throw new IllegalArgumentException("invalid key name: " + key); in Settings()
259 throw new IllegalArgumentException("invalid value for key: " + key); in Settings()
283 throws IllegalStateException, IllegalArgumentException, UnsupportedOperationException { in getProperties()
300 throws IllegalStateException, IllegalArgumentException, UnsupportedOperationException { in setProperties()
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/util/
DPreconditions.java34 throw new IllegalArgumentException(); in checkArgument()
48 throw new IllegalArgumentException(String.valueOf(errorMessage)); in checkArgument()
65 throw new IllegalArgumentException(String.format(messageTemplate, messageArgs)); in checkArgument()
79 throw new IllegalArgumentException(); in checkStringNotEmpty()
97 throw new IllegalArgumentException(String.valueOf(errorMessage)); in checkStringNotEmpty()
187 throw new IllegalArgumentException("Requested flags 0x" in checkFlagsArgument()
206 throw new IllegalArgumentException(errorMessage); in checkArgumentNonnegative()
222 throw new IllegalArgumentException(); in checkArgumentNonnegative()
237 throw new IllegalArgumentException(); in checkArgumentNonnegative()
253 throw new IllegalArgumentException(errorMessage); in checkArgumentNonnegative()
[all …]
/frameworks/libs/modules-utils/java/com/android/internal/util/
DPreconditions.java47 throw new IllegalArgumentException(); in checkArgument()
64 throw new IllegalArgumentException(String.valueOf(errorMessage)); in checkArgument()
82 throw new IllegalArgumentException(String.format(messageTemplate, messageArgs)); in checkArgument()
96 throw new IllegalArgumentException(); in checkStringNotEmpty()
114 throw new IllegalArgumentException(String.valueOf(errorMessage)); in checkStringNotEmpty()
134 throw new IllegalArgumentException(String.format(messageTemplate, messageArgs)); in checkStringNotEmpty()
312 throw new IllegalArgumentException("Requested flags 0x" in checkFlagsArgument()
331 throw new IllegalArgumentException(errorMessage); in checkArgumentNonnegative()
347 throw new IllegalArgumentException(); in checkArgumentNonnegative()
362 throw new IllegalArgumentException(); in checkArgumentNonnegative()
[all …]
/frameworks/base/core/tests/timetests/src/android/app/time/
DDetectorStatusTypesTest.java49 assertThrows(IllegalArgumentException.class, in testRequireValidDetectionAlgorithmStatus()
52 assertThrows(IllegalArgumentException.class, in testRequireValidDetectionAlgorithmStatus()
65 assertThrows(IllegalArgumentException.class, in testFormatAndParseDetectionAlgorithmStatus()
68 assertThrows(IllegalArgumentException.class, in testFormatAndParseDetectionAlgorithmStatus()
71 assertThrows(IllegalArgumentException.class, in testFormatAndParseDetectionAlgorithmStatus()
73 assertThrows(IllegalArgumentException.class, in testFormatAndParseDetectionAlgorithmStatus()
75 assertThrows(IllegalArgumentException.class, in testFormatAndParseDetectionAlgorithmStatus()
86 assertThrows(IllegalArgumentException.class, in testRequireValidDetectorStatus()
88 assertThrows(IllegalArgumentException.class, in testRequireValidDetectorStatus()
100 assertThrows(IllegalArgumentException.class, in testFormatAndParseDetectorStatus()
[all …]
/frameworks/base/core/java/org/apache/http/params/
DHttpConnectionParams.java70 throw new IllegalArgumentException("HTTP parameters may not be null"); in getSoTimeout()
85 throw new IllegalArgumentException("HTTP parameters may not be null"); in setSoTimeout()
99 throw new IllegalArgumentException("HTTP parameters may not be null"); in getTcpNoDelay()
117 throw new IllegalArgumentException("HTTP parameters may not be null"); in setTcpNoDelay()
124 throw new IllegalArgumentException("HTTP parameters may not be null"); in getSocketBufferSize()
132 throw new IllegalArgumentException("HTTP parameters may not be null"); in setSocketBufferSize()
145 throw new IllegalArgumentException("HTTP parameters may not be null"); in getLinger()
162 throw new IllegalArgumentException("HTTP parameters may not be null"); in setLinger()
175 throw new IllegalArgumentException("HTTP parameters may not be null"); in getConnectionTimeout()
189 throw new IllegalArgumentException("HTTP parameters may not be null"); in setConnectionTimeout()
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DZenModeEventLoggerFake.java64 private void checkInRange(int i) throws IllegalArgumentException { in checkInRange()
66 throw new IllegalArgumentException("invalid index for logged event: " + i); in checkInRange()
71 public int getEventId(int i) throws IllegalArgumentException { in getEventId()
77 public int getPrevZenMode(int i) throws IllegalArgumentException { in getPrevZenMode()
83 public int getNewZenMode(int i) throws IllegalArgumentException { in getNewZenMode()
89 public int getChangedRuleType(int i) throws IllegalArgumentException { in getChangedRuleType()
94 public int getNumRulesActive(int i) throws IllegalArgumentException { in getNumRulesActive()
99 public boolean getFromSystemOrSystemUi(int i) throws IllegalArgumentException { in getFromSystemOrSystemUi()
105 public boolean getIsUserAction(int i) throws IllegalArgumentException { in getIsUserAction()
110 public int getPackageUid(int i) throws IllegalArgumentException { in getPackageUid()
[all …]
/frameworks/libs/modules-utils/javatests/com/android/modules/utils/build/
DUnboundedSdkLevelTest.java52 assertThrows(IllegalArgumentException.class, () -> sdkLevel.isAtLeastInternal("R")); in testFinalizedSdk_S()
53 assertThrows(IllegalArgumentException.class, () -> sdkLevel.isAtLeastInternal("S")); in testFinalizedSdk_S()
58 assertThrows(IllegalArgumentException.class, () -> sdkLevel.isAtLeastInternal("")); in testFinalizedSdk_S()
59 assertThrows(IllegalArgumentException.class, () -> sdkLevel.isAtLeastInternal("current")); in testFinalizedSdk_S()
65 assertThrows(IllegalArgumentException.class, () -> sdkLevel.isAtMostInternal("R")); in testFinalizedSdk_S()
66 assertThrows(IllegalArgumentException.class, () -> sdkLevel.isAtMostInternal("S")); in testFinalizedSdk_S()
71 assertThrows(IllegalArgumentException.class, () -> sdkLevel.isAtMostInternal("")); in testFinalizedSdk_S()
72 assertThrows(IllegalArgumentException.class, () -> sdkLevel.isAtMostInternal("current")); in testFinalizedSdk_S()
89 assertThrows(IllegalArgumentException.class, () -> sdkLevel.isAtLeastInternal("")); in testNonFinalizedSdk_Sv2()
90 assertThrows(IllegalArgumentException.class, () -> sdkLevel.isAtLeastInternal("current")); in testNonFinalizedSdk_Sv2()
[all …]
/frameworks/base/opengl/java/android/opengl/
DGLUtils.java45 throw new IllegalArgumentException("bitmap is recycled"); in getInternalFormat()
49 throw new IllegalArgumentException("Unknown internalformat"); in getInternalFormat()
67 throw new IllegalArgumentException("bitmap is recycled"); in getType()
71 throw new IllegalArgumentException("Unknown type"); in getType()
104 throw new IllegalArgumentException("bitmap is recycled"); in texImage2D()
107 throw new IllegalArgumentException("invalid Bitmap format"); in texImage2D()
130 throw new IllegalArgumentException("bitmap is recycled"); in texImage2D()
133 throw new IllegalArgumentException("invalid Bitmap format"); in texImage2D()
152 throw new IllegalArgumentException("bitmap is recycled"); in texImage2D()
155 throw new IllegalArgumentException("invalid Bitmap format"); in texImage2D()
[all …]
/frameworks/base/core/tests/coretests/src/android/text/method/
DEditorState.java84 throw new IllegalArgumentException( in setByString()
93 throw new IllegalArgumentException("Invalid code point is specified:" + token); in setByString()
98 throw new IllegalArgumentException( in setByString()
104 throw new IllegalArgumentException( in setByString()
110 throw new IllegalArgumentException( in setByString()
116 throw new IllegalArgumentException( in setByString()
122 throw new IllegalArgumentException( in setByString()
127 throw new IllegalArgumentException("Unknown or invalid token: " + token); in setByString()
133 throw new IllegalArgumentException( in setByString()
136 throw new IllegalArgumentException( in setByString()
[all …]
/frameworks/base/media/java/android/media/
DMediaMetadataEditor.java206 throws IllegalArgumentException { in putString()
212 throw(new IllegalArgumentException("Invalid type 'String' for key "+ key)); in putString()
235 throws IllegalArgumentException { in putLong()
241 throw(new IllegalArgumentException("Invalid type 'long' for key "+ key)); in putLong()
259 throws IllegalArgumentException { in putBitmap()
265 throw(new IllegalArgumentException("Invalid type 'Bitmap' for key "+ key)); in putBitmap()
290 throws IllegalArgumentException { in putObject()
300 throw(new IllegalArgumentException("Not a non-null Long for key "+ key)); in putObject()
306 throw(new IllegalArgumentException("Not a String for key "+ key)); in putObject()
316 throw(new IllegalArgumentException("Not a Bitmap for key "+ key)); in putObject()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DZygoteArguments.java256 throws IllegalArgumentException, EOFException { in ZygoteArguments()
266 throws IllegalArgumentException, EOFException { in getInstance()
280 throws IllegalArgumentException, EOFException { in parseArgs()
304 throw new IllegalArgumentException( in parseArgs()
311 throw new IllegalArgumentException( in parseArgs()
318 throw new IllegalArgumentException( in parseArgs()
329 throw new IllegalArgumentException( in parseArgs()
336 throw new IllegalArgumentException( in parseArgs()
356 throw new IllegalArgumentException( in parseArgs()
372 throw new IllegalArgumentException( in parseArgs()
[all …]
/frameworks/base/core/tests/coretests/src/android/provider/
DSimPhonebookContractTest.java31 assertThrows(IllegalArgumentException.class, () -> in getContentUri_invalidEfType_throwsIllegalArgumentException()
34 assertThrows(IllegalArgumentException.class, () -> in getContentUri_invalidEfType_throwsIllegalArgumentException()
37 assertThrows(IllegalArgumentException.class, () -> in getContentUri_invalidEfType_throwsIllegalArgumentException()
45 assertThrows(IllegalArgumentException.class, () -> in getItemUri_invalidEfType_throwsIllegalArgumentException()
48 assertThrows(IllegalArgumentException.class, () -> in getItemUri_invalidEfType_throwsIllegalArgumentException()
51 assertThrows(IllegalArgumentException.class, () -> in getItemUri_invalidEfType_throwsIllegalArgumentException()
59 assertThrows(IllegalArgumentException.class, () -> in getItemUri_invalidRecordIndex_throwsIllegalArgumentException()
63 assertThrows(IllegalArgumentException.class, () -> in getItemUri_invalidRecordIndex_throwsIllegalArgumentException()
/frameworks/base/core/java/android/security/keymaster/
DKeymasterArguments.java77 throw new IllegalArgumentException("Not an enum or repeating enum tag: " + tag); in addEnum()
89 throw new IllegalArgumentException("Not a repeating enum tag: " + tag); in addEnums()
104 throw new IllegalArgumentException("Not an enum tag: " + tag); in getEnum()
120 throw new IllegalArgumentException("Not a repeating enum tag: " + tag); in getEnums()
149 throw new IllegalArgumentException("Not an int or repeating int tag: " + tag); in addUnsignedInt()
153 throw new IllegalArgumentException("Int tag value out of range: " + value); in addUnsignedInt()
166 throw new IllegalArgumentException("Not an int tag: " + tag); in getUnsignedInt()
186 throw new IllegalArgumentException("Not a long or repeating long tag: " + tag); in addUnsignedLong()
198 throw new IllegalArgumentException("Tag is not a repeating long: " + tag); in getUnsignedLongs()
212 throw new IllegalArgumentException("Long tag value out of range: " + value); in addLongTag()
[all …]
/frameworks/base/graphics/java/android/graphics/
DYuvImage.java173 throw new IllegalArgumentException( in YuvImage()
178 throw new IllegalArgumentException( in YuvImage()
183 throw new IllegalArgumentException("yuv cannot be null"); in YuvImage()
187 throw new IllegalArgumentException("ColorSpace cannot be null"); in YuvImage()
220 throw new IllegalArgumentException( in compressToJpeg()
224 throw new IllegalArgumentException("Only SRGB color space is supported."); in compressToJpeg()
229 throw new IllegalArgumentException( in compressToJpeg()
234 throw new IllegalArgumentException("quality must be 0..100"); in compressToJpeg()
238 throw new IllegalArgumentException("stream cannot be null"); in compressToJpeg()
308 throw new IllegalArgumentException("SDR input cannot be null"); in compressToJpegR()
[all …]
/frameworks/base/media/java/android/media/audiopolicy/
DAudioMix.java399 throws IllegalArgumentException { in Builder()
401 throw new IllegalArgumentException("Illegal null AudioMixingRule argument"); in Builder()
414 throws IllegalArgumentException { in setMixingRule()
416 throw new IllegalArgumentException("Illegal null AudioMixingRule argument"); in setMixingRule()
447 Builder setCallbackFlags(int flags) throws IllegalArgumentException { in setCallbackFlags()
449 throw new IllegalArgumentException("Illegal callback flags 0x" in setCallbackFlags()
477 throws IllegalArgumentException { in setFormat()
479 throw new IllegalArgumentException("Illegal null AudioFormat argument"); in setFormat()
494 throws IllegalArgumentException { in setRouteFlags()
496 throw new IllegalArgumentException("Illegal empty route flags"); in setRouteFlags()
[all …]
/frameworks/base/core/java/android/hardware/camera2/utils/
DSurfaceUtils.java102 } catch (IllegalArgumentException e) { in getSurfaceId()
117 } catch (IllegalArgumentException e) { in getSurfaceUsage()
135 if (errorFlag == BAD_VALUE) throw new IllegalArgumentException("Surface was abandoned"); in getSurfaceSize()
151 if (surfaceType == BAD_VALUE) throw new IllegalArgumentException("Surface was abandoned"); in getSurfaceFormat()
174 if (surfaceType == BAD_VALUE) throw new IllegalArgumentException("Surface was abandoned"); in detectSurfaceFormat()
190 if (dataSpace == BAD_VALUE) throw new IllegalArgumentException("Surface was abandoned"); in getSurfaceDataspace()
224 throw new IllegalArgumentException("Surface format(" + surfaceFormat + ") is not" in checkHighSpeedSurfaceFormat()
240 throw new IllegalArgumentException("Output target surface list must not be null and" in checkConstrainedHighSpeedSurfaces()
251 throw new IllegalArgumentException("Fps range " + fpsRange.toString() + " in the" in checkConstrainedHighSpeedSurfaces()
264 throw new IllegalArgumentException("Surface size " + surfaceSize.toString() + " is" in checkConstrainedHighSpeedSurfaces()
[all …]
/frameworks/base/core/tests/coretests/src/android/os/
DWorkDurationUnitTest.java57 assertThrows(IllegalArgumentException.class, () -> { in testWorkDurationSetters_IllegalArgument()
60 assertThrows(IllegalArgumentException.class, () -> { in testWorkDurationSetters_IllegalArgument()
63 assertThrows(IllegalArgumentException.class, () -> { in testWorkDurationSetters_IllegalArgument()
66 assertThrows(IllegalArgumentException.class, () -> { in testWorkDurationSetters_IllegalArgument()
69 assertThrows(IllegalArgumentException.class, () -> { in testWorkDurationSetters_IllegalArgument()
72 assertThrows(IllegalArgumentException.class, () -> { in testWorkDurationSetters_IllegalArgument()
75 assertThrows(IllegalArgumentException.class, () -> { in testWorkDurationSetters_IllegalArgument()
/frameworks/base/core/java/android/app/time/
DDetectorStatusTypes.java108 throw new IllegalArgumentException("Invalid detector status: " + detectorStatus); in requireValidDetectorStatus()
131 throw new IllegalArgumentException("Unknown status: " + detectorStatus); in detectorStatusToString()
144 throw new IllegalArgumentException("Empty status: " + detectorStatusString); in detectorStatusFromString()
157 throw new IllegalArgumentException("Unknown status: " + detectorStatusString); in detectorStatusFromString()
171 throw new IllegalArgumentException( in requireValidDetectionAlgorithmStatus()
196 throw new IllegalArgumentException("Unknown status: " + detectorAlgorithmStatus); in detectionAlgorithmStatusToString()
210 throw new IllegalArgumentException("Empty status: " + detectorAlgorithmStatusString); in detectionAlgorithmStatusFromString()
223 throw new IllegalArgumentException( in detectionAlgorithmStatusFromString()
/frameworks/base/core/java/com/android/internal/logging/
DMetricsLogger.java92 public void visible(int category) throws IllegalArgumentException { in visible()
94 throw new IllegalArgumentException("Must define metric category"); in visible()
101 public void hidden(int category) throws IllegalArgumentException { in hidden()
103 throw new IllegalArgumentException("Must define metric category"); in hidden()
112 throws IllegalArgumentException { in visibility()
125 throws IllegalArgumentException { in visibility()
154 throw new IllegalArgumentException("Must define metric category"); in action()
161 public static void visible(Context context, int category) throws IllegalArgumentException { in visible()
167 public static void hidden(Context context, int category) throws IllegalArgumentException { in hidden()
174 throws IllegalArgumentException { in visibility()
[all …]
/frameworks/base/core/java/android/hardware/camera2/
DDngCreator.java90 throw new IllegalArgumentException("Null argument to DngCreator constructor"); in DngCreator()
160 throw new IllegalArgumentException("Orientation " + orientation + in setOrientation()
189 throw new IllegalArgumentException("Null argument to setThumbnail"); in setThumbnail()
196 throw new IllegalArgumentException("Thumbnail dimensions width,height (" + width + in setThumbnail()
225 throw new IllegalArgumentException("Null argument to setThumbnail"); in setThumbnail()
230 throw new IllegalArgumentException("Unsupported Image format " + format); in setThumbnail()
237 throw new IllegalArgumentException("Thumbnail dimensions width,height (" + width + in setThumbnail()
267 throw new IllegalArgumentException("Null location passed to setLocation"); in setLocation()
300 throw new IllegalArgumentException("Null description passed to setDescription."); in setDescription()
338 throw new IllegalArgumentException("Null dngOutput passed to writeInputStream"); in writeInputStream()
[all …]

12345678910>>...96