Home
last modified time | relevance | path

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

123456789

/aosp12/frameworks/base/core/tests/coretests/src/android/content/pm/parsing/result/
H A DParseInputAndResultTest.kt82 assertThat(result.errorMessage).isNull()
87 fun errorMessage() { regex
88 val errorMessage = "Test error" regex
92 assertThat(result.errorMessage).isEqualTo(errorMessage)
99 val errorMessage = "Test error" regex
103 assertThat(result.errorMessage).isEqualTo(errorMessage)
110 val errorMessage = "Test error" regex
115 assertThat(result.errorMessage).isEqualTo(errorMessage)
122 val errorMessage = "Test error" regex
127 assertThat(result.errorMessage).isEqualTo(errorMessage)
[all …]
/aosp12/frameworks/libs/modules-utils/java/com/android/internal/util/
H A DPreconditions.java59 throw new IllegalArgumentException(String.valueOf(errorMessage)); in checkArgument()
107 final Object errorMessage) { in checkStringNotEmpty() argument
109 throw new IllegalArgumentException(String.valueOf(errorMessage)); in checkStringNotEmpty()
167 throw new NullPointerException(String.valueOf(errorMessage)); in checkNotNull()
215 throw new IllegalStateException(errorMessage); in checkState()
322 final String errorMessage) { in checkArgumentNonnegative() argument
324 throw new IllegalArgumentException(errorMessage); in checkArgumentNonnegative()
371 throw new IllegalArgumentException(errorMessage); in checkArgumentNonnegative()
387 throw new IllegalArgumentException(errorMessage); in checkArgumentPositive()
402 throw new IllegalArgumentException(errorMessage); in checkArgumentNonNegative()
[all …]
/aosp12/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DCellBroadcastServiceManager.java181 Log.d(TAG, errorMessage); in initCellBroadcastServiceModule()
184 errorMessage); in initCellBroadcastServiceModule()
223 Log.e(TAG, errorMessage); in initCellBroadcastServiceModule()
224 mLocalLog.log(errorMessage); in initCellBroadcastServiceModule()
227 errorMessage); in initCellBroadcastServiceModule()
242 Log.e(TAG, errorMessage); in initCellBroadcastServiceModule()
243 mLocalLog.log(errorMessage); in initCellBroadcastServiceModule()
246 errorMessage); in initCellBroadcastServiceModule()
256 Log.e(TAG, errorMessage); in initCellBroadcastServiceModule()
257 mLocalLog.log(errorMessage); in initCellBroadcastServiceModule()
[all …]
/aosp12/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/util/
H A DPreconditions.java46 public static void checkArgument(boolean expression, final Object errorMessage) { in checkArgument() argument
48 throw new IllegalArgumentException(String.valueOf(errorMessage)); in checkArgument()
95 final Object errorMessage) { in checkStringNotEmpty() argument
97 throw new IllegalArgumentException(String.valueOf(errorMessage)); in checkStringNotEmpty()
127 public static @NonNull <T> T checkNotNull(final T reference, final Object errorMessage) { in checkNotNull() argument
129 throw new NullPointerException(String.valueOf(errorMessage)); in checkNotNull()
204 final String errorMessage) { in checkArgumentNonnegative() argument
206 throw new IllegalArgumentException(errorMessage); in checkArgumentNonnegative()
253 throw new IllegalArgumentException(errorMessage); in checkArgumentNonnegative()
267 public static int checkArgumentPositive(final int value, final String errorMessage) { in checkArgumentPositive() argument
[all …]
/aosp12/frameworks/base/services/core/java/com/android/server/appbinding/
H A DAppBindingUtils.java51 StringBuilder errorMessage) { in findService() argument
56 errorMessage.setLength(0); // Clear it. in findService()
61 errorMessage.append("Service with " + serviceAction + " not found."); in findService()
68 errorMessage.append("More than one " + simpleClassName + "'s found in package " in findService()
70 Log.e(TAG, errorMessage.toString()); in findService()
76 errorMessage.append(simpleClassName + " " in findService()
80 Log.e(TAG, errorMessage.toString()); in findService()
/aosp12/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/
H A DCdmaServiceCategoryProgramHandler.java116 final String errorMessage = in handleSmsMessage() local
118 loge(errorMessage); in handleSmsMessage()
121 errorMessage); in handleSmsMessage()
138 final String errorMessage = in handleServiceCategoryProgramData() local
140 loge(errorMessage); in handleServiceCategoryProgramData()
143 errorMessage); in handleServiceCategoryProgramData()
171 final String errorMessage = "SCP results error: result code = " + resultCode;
172 loge(errorMessage);
175 errorMessage);
/aosp12/frameworks/base/tools/split-select/
H A 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()
/aosp12/packages/services/Car/car-lib/src/android/car/user/
H A DUserIdentificationAssociationResponse.java72 @Nullable String errorMessage, in UserIdentificationAssociationResponse() argument
75 this.mErrorMessage = errorMessage; in UserIdentificationAssociationResponse()
91 public static UserIdentificationAssociationResponse forFailure(@Nullable String errorMessage) { in forFailure() argument
93 errorMessage, /* values= */ null); in forFailure()
112 @UserIdentificationAssociationValue int[] values, @Nullable String errorMessage) { in forSuccess() argument
114 return new UserIdentificationAssociationResponse(/* success= */ true, errorMessage, in forSuccess()
212 String errorMessage = (flg & 0x2) == 0 ? null : in.readString(); in UserIdentificationAssociationResponse() local
216 this.mErrorMessage = errorMessage; in UserIdentificationAssociationResponse()
/aosp12/frameworks/base/services/core/jni/gnss/
H A DUtils.h45 jboolean checkHidlReturn(hardware::Return<bool>& result, const char* errorMessage);
47 jboolean checkAidlStatus(const android::binder::Status& status, const char* errorMessage);
52 void logHidlError(hardware::Return<T>& result, const char* errorMessage) { in logHidlError() argument
53 ALOGE("%s HIDL transport error: %s", errorMessage, result.description().c_str()); in logHidlError()
57 jboolean checkHidlReturn(hardware::Return<T>& result, const char* errorMessage) { in checkHidlReturn() argument
59 logHidlError(result, errorMessage); in checkHidlReturn()
67 jboolean checkHidlReturn(hardware::Return<sp<T>>& result, const char* errorMessage) { in checkHidlReturn() argument
69 logHidlError(result, errorMessage); in checkHidlReturn()
H A DUtils.cpp57 jboolean checkAidlStatus(const android::binder::Status& status, const char* errorMessage) { in checkAidlStatus() argument
59 ALOGE("%s AIDL transport error: %s", errorMessage, status.toString8().c_str()); in checkAidlStatus()
65 jboolean checkHidlReturn(hardware::Return<bool>& result, const char* errorMessage) { in checkHidlReturn() argument
67 logHidlError(result, errorMessage); in checkHidlReturn()
70 ALOGE("%s", errorMessage); in checkHidlReturn()
/aosp12/system/chre/java/test/chqts/src/com/google/android/chre/test/chqts/
H A DContextHubGeneralTestExecutor.java286 protected void fail(String errorMessage) { in fail() argument
287 assertTrue(errorMessage, false /* condition */); in fail()
293 protected <T> void assertEquals(String errorMessage, T expected, T actual) { in assertEquals() argument
295 Assert.assertEquals(errorMessage, expected, actual); in assertEquals()
298 mErrorString.set(errorMessage + ": " + expected + " != " + actual); in assertEquals()
306 protected void assertTrue(String errorMessage, boolean condition) { in assertTrue() argument
308 Assert.assertTrue(errorMessage, condition); in assertTrue()
310 mErrorString.set(errorMessage); in assertTrue()
318 protected void assertFalse(String errorMessage, boolean condition) { in assertFalse() argument
319 assertTrue(errorMessage, !condition); in assertFalse()
/aosp12/frameworks/rs/tests/java_api/RsCameraDemo/src/com/android/example/rscamera/
H A 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()
266 mErrorDisplayer.showErrorDialog(errorMessage); in openCamera()
377 mErrorDisplayer.showErrorDialog(errorMessage);
396 mErrorDisplayer.showErrorDialog(errorMessage);
415 mErrorDisplayer.showErrorDialog(errorMessage);
531 mErrorDisplayer.showErrorDialog(errorMessage);
553 String errorMessage = e.getMessage();
[all …]
/aosp12/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/
H A DCameraOps.java100 String errorMessage = "Unknown error"; in resume() local
176 errorMessage = "no back camera"; in resume()
179 errorMessage = e.getMessage(); in resume()
185 return (foundCamera) ? null : errorMessage; in resume()
290 mErrorDisplayer.showErrorDialog(errorMessage); in openCamera()
412 mErrorDisplayer.showErrorDialog(errorMessage); in setRepeatingRequest()
431 mErrorDisplayer.showErrorDialog(errorMessage); in setRepeatingBurst()
450 mErrorDisplayer.showErrorDialog(errorMessage); in startCameraSession()
567 mErrorDisplayer.showErrorDialog(errorMessage); in setRequest()
589 String errorMessage = e.getMessage(); in setUpCamera()
[all …]
/aosp12/packages/modules/Wifi/service/java/com/android/server/wifi/
H A DEapFailureNotifier.java76 String errorMessage = res.getString(resourceId, config.SSID); in onEapFailure()
77 if (TextUtils.isEmpty(errorMessage)) return false; in onEapFailure()
87 showNotification(errorMessage, config.SSID); in onEapFailure()
97 private void showNotification(String errorMessage, String ssid) { in showNotification() argument
110 .setContentText(errorMessage) in showNotification()
111 .setStyle(new Notification.BigTextStyle().bigText(errorMessage)) in showNotification()
/aosp12/frameworks/base/core/java/android/content/pm/parsing/result/
H A DParseTypeImpl.java179 String errorMessage = mDeferredErrors.valueAt(index);
181 return error(errorMessage);
209 @Nullable String errorMessage) {
210 return error(errorCode, errorMessage, null);
220 public <ResultType> ParseResult<ResultType> error(int errorCode, @Nullable String errorMessage,
223 mErrorMessage = errorMessage;
234 Log.w(TAG, "ParseInput set to error " + errorCode + ", " + errorMessage,
/aosp12/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/testutils/
H A DPollingCheck.java44 public PollingCheck(long timeout, String errorMessage) { in PollingCheck() argument
46 mErrorMessage = errorMessage; in PollingCheck()
106 public static void waitFor(long timeout, BooleanSupplier condition, String errorMessage) { in waitFor() argument
107 new PollingCheck(timeout, errorMessage) { in waitFor() argument
/aosp12/frameworks/opt/net/voip/src/java/android/net/sip/
H A 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
/aosp12/packages/services/Car/cpp/computepipe/runner/graph/
H A DLocalPrebuiltGraph.cpp281 std::vector<unsigned char> errorMessage(errorMessageSize); in GetErrorMessage() local
283 errorCode = mappedFn(&errorMessage[0], errorMessage.size(), &errorMessageSize); in GetErrorMessage()
288 return std::string(reinterpret_cast<char*>(&errorMessage[0]), in GetErrorMessage()
289 reinterpret_cast<char*>(&errorMessage[0]) + errorMessage.size()); in GetErrorMessage()
401 std::string errorMessage = ""; in GraphTerminationCallbackFunction() local
407 std::move(errorMessage)); in GraphTerminationCallbackFunction()
/aosp12/build/soong/cmd/sbox/
H A Dsbox.go311 errorMessage := "mismatch between declared and actual outputs\n"
312 errorMessage += "in sbox command(" + rawCommand + ")\n\n"
313 errorMessage += "in sandbox " + tempDir + ",\n"
314 errorMessage += fmt.Sprintf("failed to create %v files:\n", len(missingOutputErrors))
316 errorMessage += " " + missingOutputError.Error() + "\n"
319 errorMessage += "created 0 files."
321 errorMessage += fmt.Sprintf("did create %v files:\n", len(createdFiles))
329 errorMessage += " " + creationMessage + "\n"
333 return "", errors.New(errorMessage)
/aosp12/system/tools/hidl/metadata/
H A Dparser.cpp33 std::string errorMessage; in main() local
34 if (!Json::parseFromStream(builder, stream, &root, &errorMessage)) { in main()
36 << errorMessage << std::endl; in main()
/aosp12/frameworks/base/core/java/android/hardware/biometrics/
H A DBiometricPrompt.java500 String errorMessage = null;
503 errorMessage = FaceManager.getErrorString(mContext, error, vendorCode);
507 errorMessage = FingerprintManager.getErrorString(mContext, error, vendorCode);
513 if (errorMessage == null) {
516 errorMessage = mContext.getString(R.string.biometric_error_canceled);
519 errorMessage = mContext.getString(R.string.biometric_error_user_canceled);
522 errorMessage = mContext.getString(R.string.biometric_error_hw_unavailable);
525 errorMessage = mContext.getString(
532 errorMessage = mContext.getString(R.string.biometric_error_generic);
537 final String stringToSend = errorMessage;
/aosp12/frameworks/base/services/core/java/com/android/server/utils/
H A DWatchable.java100 static void handleVerifyError(String errorMessage, boolean logOnly) { in handleVerifyError() argument
102 Log.e("Watchable", errorMessage); in handleVerifyError()
104 throw new RuntimeException(errorMessage); in handleVerifyError()
/aosp12/frameworks/base/apex/appsearch/framework/java/external/android/app/appsearch/
H A DAppSearchResult.java105 @Nullable String errorMessage) { in AppSearchResult() argument
108 mErrorMessage = errorMessage; in AppSearchResult()
198 @ResultCode int resultCode, @Nullable String errorMessage) { in newFailedResult() argument
199 return new AppSearchResult<>(resultCode, /*resultValue=*/ null, errorMessage); in newFailedResult()
/aosp12/frameworks/base/core/java/android/accounts/
H A DAccountAuthenticatorResponse.java71 public void onError(int errorCode, String errorMessage) { in onError() argument
73 Log.v(TAG, "AccountAuthenticatorResponse.onError: " + errorCode + ", " + errorMessage); in onError()
76 mAccountAuthenticatorResponse.onError(errorCode, errorMessage); in onError()
/aosp12/system/tools/aidl/metadata/
H A Dparser.cpp33 std::string errorMessage; in main() local
34 if (!Json::parseFromStream(builder, stream, &root, &errorMessage)) { in main()
36 << errorMessage << std::endl; in main()

123456789