Home
last modified time | relevance | path

Searched refs:errorMsg (Results 1 – 25 of 70) sorted by relevance

123

/aosp12/packages/modules/NetworkStack/src/com/android/networkstack/util/
H A DDnsUtils.java66 final StringBuilder errorMsg = new StringBuilder(host); in getAllByName() local
74 errorMsg.append(String.format(" (%s)%s", dnsTypeToStr(TYPE_AAAA), e.getMessage())); in getAllByName()
82 errorMsg.append(String.format(" (%s)%s", dnsTypeToStr(TYPE_A), e.getMessage())); in getAllByName()
86 logger.log("FAIL: " + errorMsg.toString()); in getAllByName()
141 String errorMsg = null; in getAllByName() local
146 errorMsg = e.getMessage(); in getAllByName()
148 errorMsg = "Timeout"; in getAllByName()
150 logDnsResult(result, watch.stop() / 1000 /* latencyMs */, logger, type, errorMsg); in getAllByName()
153 if (null != errorMsg) throw new UnknownHostException(host); in getAllByName()
160 @NonNull final String errorMsg) { in logDnsResult() argument
[all …]
/aosp12/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/
H A DJsonParser.java43 String errorMsg = null; in parse() local
50 errorMsg = "Duplicate field name."; in parse()
64 errorMsg = e.getMessage(); in parse()
68 errorMsg = "Unsupported value type."; in parse()
73 if (errorMsg != null) { in parse()
74 throw new JSONException(errorMsg); in parse()
/aosp12/packages/modules/NetworkStack/common/netlinkclient/src/android/net/netlink/
H A DNetlinkErrorMessage.java30 final NetlinkErrorMessage errorMsg = new NetlinkErrorMessage(header); in parse() local
32 errorMsg.mNlMsgErr = StructNlMsgErr.parse(byteBuffer); in parse()
33 if (errorMsg.mNlMsgErr == null) { in parse()
37 return errorMsg; in parse()
/aosp12/system/tools/hidl/
H A Dhidl-gen_y.yy187 *errorMsg = identifier + " ends with _cb "
197 if (!isValidIdentifier(identifier, errorMsg)) {
374 std::string errorMsg;
375 if (!isValidIdentifier($1, &errorMsg)) {
386 std::string errorMsg;
387 if (!isValidTypeName($1, &errorMsg)) {
570 std::string errorMsg;
573 &errorMsg)) {
583 std::string errorMsg;
967 std::string errorMsg;
[all …]
H A DAST.cpp536 std::string errorMsg; in lookupLocalIdentifier() local
537 EnumValue* enumValue = lookupEnumValue(fqName, &errorMsg, scope); in lookupLocalIdentifier()
539 std::cerr << "ERROR: " << errorMsg << " at " << ref.location() << "\n"; in lookupLocalIdentifier()
546 EnumValue* AST::lookupEnumValue(const FQName& fqName, std::string* errorMsg, const Scope* scope) { in lookupEnumValue() argument
554 *errorMsg = "Cannot find type " + enumTypeName.string(); in lookupEnumValue()
559 *errorMsg = "Type " + enumTypeName.string() + " is not an enum type"; in lookupEnumValue()
566 *errorMsg = "Enum type " + enumTypeName.string() + " does not have " + enumValueName; in lookupEnumValue()
/aosp12/frameworks/base/telephony/common/android/telephony/
H A DLocationAccessPolicy.java217 private static void logError(Context context, LocationPermissionQuery query, String errorMsg) { in logError() argument
219 Log.i(TAG, errorMsg); in logError()
222 Log.e(TAG, errorMsg); in logError()
225 Toast.makeText(context, errorMsg, Toast.LENGTH_SHORT).show(); in logError()
287 String errorMsg = "Allowing " + query.callingPackage + " " + locationTypeForLog in checkAppLocationPermissionHelper() local
291 logError(context, query, errorMsg); in checkAppLocationPermissionHelper()
294 String errorMsg = "Allowing " + query.callingPackage + " " + locationTypeForLog in checkAppLocationPermissionHelper() local
297 logError(context, query, errorMsg); in checkAppLocationPermissionHelper()
/aosp12/frameworks/base/services/core/java/com/android/server/timezonedetector/location/
H A DSimulatedLocationTimeZoneProviderProxy.java96 String errorMsg = "testCommand=" + testCommand in handleTestCommand() local
99 mLastEvent.set(errorMsg); in handleTestCommand()
101 resultBundle.putString(TEST_COMMAND_RESULT_ERROR_KEY, errorMsg); in handleTestCommand()
112 String errorMsg = "Unknown test event type. testCommand=" + testCommand; in handleTestCommand() local
113 mLastEvent.set(errorMsg); in handleTestCommand()
115 resultBundle.putString(TEST_COMMAND_RESULT_ERROR_KEY, errorMsg); in handleTestCommand()
/aosp12/system/tools/hidl/lint/test/
H A Dmain.cpp78 #define EXPECT_LINT(interface, errorMsg) \ argument
84 EXPECT_THAT(errors[0].getMessage(), ContainsRegex(errorMsg)); \
87 #define EXPECT_A_LINT(interface, errorMsg) \ argument
93 EXPECT_THAT(errors, Contains(Property(&Lint::getMessage, ContainsRegex(errorMsg)))); \
/aosp12/packages/services/Car/cpp/watchdog/server/src/
H A DWatchdogBinderMediator.cpp146 std::string errorMsg = StringPrintf("Failed to %s custom I/O perf collection: %s", in dump() local
149 dumpHelpText(fd, errorMsg); in dump()
151 ALOGW("%s", errorMsg.c_str()); in dump()
189 status_t WatchdogBinderMediator::dumpHelpText(const int fd, const std::string& errorMsg) { in dumpHelpText() argument
190 if (!errorMsg.empty()) { in dumpHelpText()
191 ALOGW("Error: %s", errorMsg.c_str()); in dumpHelpText()
192 if (!WriteStringToFd(StringPrintf("Error: %s\n\n", errorMsg.c_str()), fd)) { in dumpHelpText()
H A DWatchdogProcessService.cpp568 std::string errorMsg = in dumpAndKillAllProcesses() local
571 ALOGW("%s", errorMsg.c_str()); in dumpAndKillAllProcesses()
572 return Error() << errorMsg; in dumpAndKillAllProcesses()
679 std::string errorMsg = "VHAL is not connected: " + connectRet.error().message(); in updateVhal() local
680 ALOGW("%s", errorMsg.c_str()); in updateVhal()
681 return Error() << errorMsg; in updateVhal()
684 std::string errorMsg = StringPrintf("VHAL doesn't support property(id: %d)", value.prop); in updateVhal() local
685 ALOGW("%s", errorMsg.c_str()); in updateVhal()
686 return Error() << errorMsg; in updateVhal()
/aosp12/packages/services/Telephony/src/com/android/phone/
H A DPhoneDisplayMessage.java54 public static void displayErrorMessage(Context context, String errorMsg) { in displayErrorMessage() argument
55 if (DBG) log("displayErrorMessage: errorMsg=" + errorMsg); in displayErrorMessage()
58 displayMessage(context, title, errorMsg); in displayErrorMessage()
/aosp12/packages/services/Car/service/src/com/android/car/telemetry/publisher/statsconverters/
H A DStatsConversionException.java23 StatsConversionException(String errorMsg) { in StatsConversionException() argument
24 super(errorMsg); in StatsConversionException()
/aosp12/packages/modules/NetworkStack/tests/unit/src/android/net/netlink/
H A DNetlinkErrorMessageTest.java75 final NetlinkErrorMessage errorMsg = (NetlinkErrorMessage) msg; in testParseNlmErrorOk() local
77 final StructNlMsgHdr hdr = errorMsg.getHeader(); in testParseNlmErrorOk()
85 final StructNlMsgErr err = errorMsg.getNlMsgError(); in testParseNlmErrorOk()
/aosp12/frameworks/av/media/codec2/sfplugin/tests/
H A DCCodecBuffers_test.cpp675 std::string *errorMsg) { in VerifyPlane() argument
676 *errorMsg = ""; in VerifyPlane()
777 const sp<MediaCodecBuffer> &buffer, std::string *errorMsg) { in VerifyClientBuffer() argument
778 *errorMsg = ""; in VerifyClientBuffer()
781 *errorMsg = "Missing image data"; in VerifyClientBuffer()
791 *errorMsg = "Y plane does not match: " + planeErrorMsg; in VerifyClientBuffer()
795 *errorMsg = "U plane does not match: " + planeErrorMsg; in VerifyClientBuffer()
799 *errorMsg = "V plane does not match: " + planeErrorMsg; in VerifyClientBuffer()
825 *errorMsg = "Y plane by legacy layout does not match: " + planeErrorMsg; in VerifyClientBuffer()
843 std::string errorMsg; in TEST_P() local
[all …]
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
H A DScreenshotNotificationsController.java65 String errorMsg = res.getString(msgResId); in notifyScreenshotError() local
71 .setContentText(errorMsg) in notifyScreenshotError()
92 .bigText(errorMsg) in notifyScreenshotError()
/aosp12/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DEvenMoreAsserts.java62 private static String appendUserMessage(String errorMsg, String userMsg) { in appendUserMessage() argument
63 return userMsg == null ? errorMsg : errorMsg + userMsg; in appendUserMessage()
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/am/
H A DBroadcastRecordTest.java105 final StringBuilder errorMsg = new StringBuilder(); in verifyRemaining() local
123 errorMsg.append(appInfo.packageName).append("@") in verifyRemaining()
128 return errorMsg.length() == 0 ? null in verifyRemaining()
129 : errorMsg.insert(0, "Contains unexpected receiver: ").toString(); in verifyRemaining()
/aosp12/packages/apps/Settings/src/com/android/settings/sim/smartForwarding/
H A DSmartForwardingActivity.java152 int errorMsg; in onError() local
154 errorMsg = R.string.smart_forwarding_failed_not_activated_text; in onError()
156 errorMsg = R.string.smart_forwarding_failed_text; in onError()
162 .setMessage(errorMsg) in onError()
/aosp12/packages/services/Car/cpp/computepipe/example/
H A DClientSvc.cpp25 void terminationCallback(bool error, std::string errorMsg) { in terminationCallback() argument
27 LOG(ERROR) << errorMsg; in terminationCallback()
/aosp12/frameworks/base/tools/aapt2/compile/
H A DPng.cpp1009 const char* errorMsg = nullptr; in do9Patch() local
1018 errorMsg = "Image must be at least 3x3 (1x1 without frame) pixels"; in do9Patch()
1031 &errorMsg, &numXDivs, true)) { in do9Patch()
1039 &yDivs[1], &errorMsg, &numYDivs, true)) { in do9Patch()
1076 &image->layoutBoundsBottom, &errorMsg); in do9Patch()
1151 errorMsg = "Too many rows and columns in 9-patch perimeter"; in do9Patch()
1217 if (errorMsg) { in do9Patch()
1219 err << "9-patch malformed: " << errorMsg; in do9Patch()
1282 std::string errorMsg; in process() local
1283 if (!do9Patch(&pngInfo, &errorMsg)) { in process()
[all …]
/aosp12/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
H A DBluetoothEventManager.java373 int errorMsg; in showUnbondMessage() local
377 errorMsg = R.string.bluetooth_pairing_pin_error_message; in showUnbondMessage()
380 errorMsg = R.string.bluetooth_pairing_rejected_error_message; in showUnbondMessage()
383 errorMsg = R.string.bluetooth_pairing_device_down_error_message; in showUnbondMessage()
389 errorMsg = R.string.bluetooth_pairing_error_message; in showUnbondMessage()
396 BluetoothUtils.showError(context, name, errorMsg); in showUnbondMessage()
/aosp12/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
H A DUiccCarrierPrivilegeRules.java549 String errorMsg = "Invalid response: payload=" + response.payload in handleMessage() local
551 updateState(STATE_ERROR, errorMsg); in handleMessage()
555 String errorMsg = "Error reading value from SIM via " in handleMessage() local
560 errorMsg += "error code : " + errorCode; in handleMessage()
562 errorMsg += "unknown exception : " + ar.exception.getMessage(); in handleMessage()
565 updateStatusMessage(errorMsg); in handleMessage()
567 updateState(STATE_ERROR, errorMsg); in handleMessage()
/aosp12/frameworks/base/tools/aapt/
H A DImages.cpp575 const char* errorMsg = NULL; in do_9patch() local
583 errorMsg = "Image must be at least 3x3 (1x1 without frame) pixels"; in do_9patch()
590 errorMsg = "Must have one-pixel frame that is either transparent or white"; in do_9patch()
596 &xDivs[1], &errorMsg, &numXDivs, true) != NO_ERROR) { in do_9patch()
604 &yDivs[1], &errorMsg, &numYDivs, true) != NO_ERROR) { in do_9patch()
624 &image->info9Patch.paddingBottom, &errorMsg, NULL, false) != NO_ERROR) { in do_9patch()
633 &image->layoutBoundsRight, &errorMsg); in do_9patch()
637 &image->layoutBoundsBottom, &errorMsg); in do_9patch()
709 errorMsg = "Too many rows and columns in 9-patch perimeter"; in do_9patch()
778 if (errorMsg) { in do_9patch()
[all …]
/aosp12/packages/services/Car/tests/DiagnosticTools/src/com/google/android/car/diagnostictools/utils/
H A DMathEval.java197 TranslationTooLongException(String errorMsg) { in TranslationTooLongException() argument
198 super(errorMsg); in TranslationTooLongException()
/aosp12/packages/apps/Messaging/src/com/android/messaging/ui/appsettings/
H A DApnEditorActivity.java438 String errorMsg = null; in getErrorMsg() local
445 errorMsg = getString(R.string.error_apn_name_empty); in getErrorMsg()
447 errorMsg = getString(R.string.error_mcc_not3); in getErrorMsg()
449 errorMsg = getString(R.string.error_mnc_not23); in getErrorMsg()
452 return errorMsg; in getErrorMsg()

123