Home
last modified time | relevance | path

Searched refs:errorMessage (Results 1 – 25 of 44) sorted by relevance

12

/frameworks/base/core/java/com/android/internal/util/
DPreconditions.java45 public static void checkArgument(boolean expression, final Object errorMessage) { in checkArgument() argument
47 throw new IllegalArgumentException(String.valueOf(errorMessage)); in checkArgument()
77 final Object errorMessage) { in checkStringNotEmpty() argument
79 throw new IllegalArgumentException(String.valueOf(errorMessage)); in checkStringNotEmpty()
109 public static @NonNull <T> T checkNotNull(final T reference, final Object errorMessage) { in checkNotNull() argument
111 throw new NullPointerException(String.valueOf(errorMessage)); in checkNotNull()
166 final String errorMessage) { in checkArgumentNonnegative() argument
168 throw new IllegalArgumentException(errorMessage); in checkArgumentNonnegative()
213 public static long checkArgumentNonnegative(final long value, final String errorMessage) { in checkArgumentNonnegative() argument
215 throw new IllegalArgumentException(errorMessage); in checkArgumentNonnegative()
[all …]
/frameworks/base/tools/split-select/
DGrouper_test.cpp164 String8 errorMessage("Failed to find expected group ["); in expectHasGroupWithSplits() local
167 errorMessage.append(", "); in expectHasGroupWithSplits()
169 errorMessage.append(splits[i].toString()); in expectHasGroupWithSplits()
171 errorMessage.append("].\nActual:\n"); in expectHasGroupWithSplits()
174 errorMessage.appendFormat("Group %d:\n", int(i + 1)); in expectHasGroupWithSplits()
177 errorMessage.append(" "); in expectHasGroupWithSplits()
178 errorMessage.append(group[j].toString()); in expectHasGroupWithSplits()
179 errorMessage.append("\n"); in expectHasGroupWithSplits()
182 ADD_FAILURE() << errorMessage.string(); in expectHasGroupWithSplits()
/frameworks/rs/java/tests/RsCameraDemo/src/com/android/example/rscamera/
DCameraOps.java105 String errorMessage = "Unknown error"; in resume() local
162 errorMessage = "no back camera"; in resume()
165 errorMessage = e.getMessage(); in resume()
171 return (foundCamera) ? null : errorMessage; in resume()
265 String errorMessage = mErrorDisplayer.getErrorString(e); in openCamera()
266 mErrorDisplayer.showErrorDialog(errorMessage); in openCamera()
376 String errorMessage = mErrorDisplayer.getErrorString(e);
377 mErrorDisplayer.showErrorDialog(errorMessage);
395 String errorMessage = mErrorDisplayer.getErrorString(e);
396 mErrorDisplayer.showErrorDialog(errorMessage);
[all …]
DCameraView.java93 public void showErrorDialog(String errorMessage) { in CameraView()
96 mErrorCallback.showError(errorMessage); in CameraView()
137 String errorMessage = mCameraOps.resume(); in resume() local
138 if (errorMessage != null) { in resume()
140 mErrorCallback.showError(errorMessage); in resume()
321 public void showError(String errorMessage); in showError() argument
/frameworks/base/core/java/com/android/internal/os/
DPathClassLoaderFactory.java46 String errorMessage = createClassloaderNamespace(pathClassloader, in createClassLoader() local
53 if (errorMessage != null) { in createClassLoader()
55 pathClassloader + ": " + errorMessage); in createClassLoader()
/frameworks/opt/net/voip/src/java/android/net/sip/
DISipSessionListener.aidl90 void onError(in ISipSession session, int errorCode, String errorMessage); in onError() argument
100 String errorMessage); in onCallChangeFailed() argument
125 String errorMessage); in onRegistrationFailed() argument
DSipSession.java185 String errorMessage) { in onError() argument
196 String errorMessage) { in onCallChangeFailed() argument
224 String errorMessage) { in onRegistrationFailed() argument
DSipRegistrationListener.java47 String errorMessage); in onRegistrationFailed() argument
/frameworks/base/core/java/android/accounts/
DAccountAuthenticatorResponse.java69 public void onError(int errorCode, String errorMessage) { in onError() argument
71 Log.v(TAG, "AccountAuthenticatorResponse.onError: " + errorCode + ", " + errorMessage); in onError()
74 mAccountAuthenticatorResponse.onError(errorCode, errorMessage); in onError()
DAccountManagerResponse.java50 public void onError(int errorCode, String errorMessage) { in onError() argument
52 mResponse.onError(errorCode, errorMessage); in onError()
DIAccountManagerResponse.aidl26 void onError(int errorCode, String errorMessage); in onError() argument
DIAccountAuthenticatorResponse.aidl27 void onError(int errorCode, String errorMessage); in onError() argument
/frameworks/base/test-runner/src/android/test/
DAssertionFailedError.java33 public AssertionFailedError(String errorMessage) { in AssertionFailedError() argument
34 super(errorMessage); in AssertionFailedError()
/frameworks/data-binding/integration-tests/TestApp/app/src/main/java/android/databinding/testapp/vo/
DConstantBindingTestObject.java34 public void setErrorMessage(String errorMessage) { in setErrorMessage() argument
35 this.mErrorMessage = errorMessage; in setErrorMessage()
/frameworks/support/v4/api22/android/support/v4/media/session/
DPlaybackStateCompatApi22.java31 float speed, long actions, CharSequence errorMessage, long updateTime, in newInstance() argument
38 stateObj.setErrorMessage(errorMessage); in newInstance()
/frameworks/base/graphics/java/android/graphics/
DLargeBitmap.java102 private void checkRecycled(String errorMessage) { in checkRecycled() argument
104 throw new IllegalStateException(errorMessage); in checkRecycled()
DBitmapRegionDecoder.java242 private void checkRecycled(String errorMessage) { in checkRecycled() argument
244 throw new IllegalStateException(errorMessage); in checkRecycled()
/frameworks/support/v4/api21/android/support/v4/media/session/
DPlaybackStateCompatApi21.java64 float speed, long actions, CharSequence errorMessage, long updateTime, in newInstance() argument
71 stateObj.setErrorMessage(errorMessage); in newInstance()
/frameworks/base/tests/OneMedia/src/com/android/onemedia/playback/
DPlaybackError.java23 public String errorMessage; field in PlaybackError
/frameworks/data-binding/compilationTests/src/test/java/android/databinding/compilationTest/
DSimpleCompilationTest.java95 String expectedExtract, String errorMessage) in singleFileErrorTest() argument
115 if (errorMessage != null) { in singleFileErrorTest()
116 assertEquals(errorMessage, scopedException.getBareMessage()); in singleFileErrorTest()
/frameworks/support/v4/java/android/support/v4/media/session/
DPlaybackStateCompat.java302 float rate, long actions, CharSequence errorMessage, long updateTime, in PlaybackStateCompat() argument
310 mErrorMessage = errorMessage; in PlaybackStateCompat()
1016 public Builder setErrorMessage(CharSequence errorMessage) { in setErrorMessage() argument
1017 mErrorMessage = errorMessage; in setErrorMessage()
/frameworks/base/docs/html/training/location/
Ddisplay-address.jd195 occurs, place the corresponding error message in the {@code errorMessage}
228 String errorMessage = "";
246 errorMessage = getString(R.string.service_not_available);
247 Log.e(TAG, errorMessage, ioException);
250 errorMessage = getString(R.string.invalid_lat_long_used);
251 Log.e(TAG, errorMessage + ". " +
259 if (errorMessage.isEmpty()) {
260 errorMessage = getString(R.string.no_address_found);
261 Log.e(TAG, errorMessage);
263 deliverResultToReceiver(Constants.FAILURE_RESULT, errorMessage);
/frameworks/base/opengl/java/android/opengl/
DEGLLogWrapper.java372 String errorMessage = "eglError: " + getErrorString(eglError); in checkError() local
373 logLine(errorMessage); in checkError()
375 throw new GLException(eglError, errorMessage); in checkError()
/frameworks/base/services/core/java/com/android/server/
DNetworkManagementService.java797 String errorMessage = String.format("Invalid event from daemon (%s)", raw); in onEvent() local
808 throw new IllegalStateException(errorMessage); in onEvent()
823 throw new IllegalStateException(errorMessage); in onEvent()
831 throw new IllegalStateException(errorMessage); in onEvent()
837 throw new IllegalStateException(errorMessage); in onEvent()
845 throw new IllegalStateException(errorMessage); in onEvent()
873 throw new IllegalStateException(errorMessage); in onEvent()
883 throw new IllegalStateException(errorMessage, e); in onEvent()
885 throw new IllegalStateException(errorMessage, e); in onEvent()
908 throw new IllegalStateException(errorMessage); in onEvent()
[all …]
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
DMtpManager.java314 private static <T> T ensureNotNull(@Nullable T t, String errorMessage) throws IOException { in ensureNotNull() argument
318 throw new IOException(errorMessage); in ensureNotNull()

12