Home
last modified time | relevance | path

Searched refs:ERROR_MESSAGE (Results 1 – 25 of 26) sorted by relevance

12

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/exception/
DJSExecutionExceptionTest.java27 public static final String ERROR_MESSAGE = "error_message"; field in JSExecutionExceptionTest
31 JSExecutionException exception = new JSExecutionException(ERROR_MESSAGE); in testJSExecutionExceptionTestWithErrorMsg()
32 assertEquals(exception.getMessage(), ERROR_MESSAGE); in testJSExecutionExceptionTestWithErrorMsg() local
38 JSExecutionException exception = new JSExecutionException(ERROR_MESSAGE, t); in testJSExecutionExceptionTestWithCauseAndErrorMsg()
39 assertEquals(exception.getMessage(), ERROR_MESSAGE); in testJSExecutionExceptionTestWithCauseAndErrorMsg() local
/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/common/
DServiceUnavailableExceptionTest.java26 public static final String ERROR_MESSAGE = "error_message"; field in ServiceUnavailableExceptionTest
37 ServiceUnavailableException exception = new ServiceUnavailableException(ERROR_MESSAGE); in testAdServicesUnavailableException_correctErrorMsg()
39 expect.that(exception).hasMessageThat().isEqualTo(ERROR_MESSAGE); in testAdServicesUnavailableException_correctErrorMsg()
44 ServiceUnavailableException exception = new ServiceUnavailableException(ERROR_MESSAGE); in testAdServicesUnavailableException_isOfTypeIllegalStateException()
DProviderServiceInternalExceptionTest.java27 public static final String ERROR_MESSAGE = "error_message"; field in ProviderServiceInternalExceptionTest
39 new ProviderServiceInternalException(ERROR_MESSAGE); in testProviderServiceInternalException_correctErrorMsg()
41 expect.that(exception).hasMessageThat().isEqualTo(ERROR_MESSAGE); in testProviderServiceInternalException_correctErrorMsg()
47 new ProviderServiceInternalException(ERROR_MESSAGE); in testProviderServiceInternalException_isOfTypeIllegalStateException()
/packages/modules/Connectivity/tests/common/java/android/net/
DEthernetNetworkManagementExceptionTest.java36 private static final String ERROR_MESSAGE = "Test error message"; field in EthernetNetworkManagementExceptionTest
41 new EthernetNetworkManagementException(ERROR_MESSAGE); in testEthernetNetworkManagementExceptionParcelable()
49 new EthernetNetworkManagementException(ERROR_MESSAGE); in testEthernetNetworkManagementExceptionHasExpectedErrorMessage()
51 assertEquals(ERROR_MESSAGE, e.getMessage()); in testEthernetNetworkManagementExceptionHasExpectedErrorMessage()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/users/
DSimpleUserPickerFragment.java67 private static final int ERROR_MESSAGE = 0; field in SimpleUserPickerFragment
281 setMessage(ERROR_MESSAGE, in stopUser()
288 setMessage(ERROR_MESSAGE, in stopUser()
309 setMessage(ERROR_MESSAGE, in stopUser()
321 setMessage(ERROR_MESSAGE, "Invalid user"); in switchUser()
337 setMessage(ERROR_MESSAGE, in startUserVisibleOnDisplay()
352 setMessage(ERROR_MESSAGE, "Cannot create user without a name"); in createUser()
364 setMessage(ERROR_MESSAGE, "Timed out creating user after " + TIMEOUT_MS + "ms..."); in createUser()
370 setMessage(ERROR_MESSAGE, "Interrupted while creating user"); in createUser()
374 setMessage(ERROR_MESSAGE, "Encountered Exception while creating user " + name); in createUser()
[all …]
DProfileUserFragment.java58 private static final int ERROR_MESSAGE = 0; field in ProfileUserFragment
199 setMessage(ERROR_MESSAGE, e); in createUser()
221 setMessage(ERROR_MESSAGE, e); in removeUser()
296 setMessage(ERROR_MESSAGE, e.getMessage()); in assignUserToZone()
301 setMessage(ERROR_MESSAGE, "Failed to assign user " + userId + " to zone " in assignUserToZone()
324 case ERROR_MESSAGE: in setMessage()
/packages/services/Telecomm/scripts/
Daosp_tag_preupload.py14 ERROR_MESSAGE = """ variable
49 print(ERROR_MESSAGE)
64 print(ERROR_MESSAGE)
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/
DErrorWrapperTest.java34 private static final String ERROR_MESSAGE = "message"; field in ErrorWrapperTest
42 DIALOG_TITLE_ID, LazyStringResource.of(ERROR_MESSAGE), in constructor_works()
47 ERROR_MESSAGE); in constructor_works()
DErrorDialogUtilsTest.java37 private static final String ERROR_MESSAGE = "message"; field in ErrorDialogUtilsTest
43 LazyStringResource.of(ERROR_MESSAGE),
51 .putExtra(ErrorDialogUtils.EXTRA_ERROR_MESSAGE_RES, ERROR_MESSAGE)
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DQosCallbackExceptionTest.java43 private static final String ERROR_MESSAGE = "Test Error Message"; field in QosCallbackExceptionTest
47 final Throwable testcause = new Throwable(ERROR_MESSAGE); in testQosCallbackException()
51 final QosCallbackException exceptionMsg = new QosCallbackException(ERROR_MESSAGE); in testQosCallbackException()
52 assertEquals(ERROR_MESSAGE, exceptionMsg.getMessage()); in testQosCallbackException()
/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/adservices/measurement/
DMeasurementErrorResponseTest.java37 private static final String ERROR_MESSAGE = "Error message"; field in MeasurementErrorResponseTest
112 .setErrorMessage(ERROR_MESSAGE) in createExample()
118 expect.that(response.getErrorMessage()).isEqualTo(ERROR_MESSAGE); in verifyExample()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/access/
DPermissionAccessResolver.java25 private static final String ERROR_MESSAGE = "Unauthorized caller. Permission not requested."; field in PermissionAccessResolver
44 return ERROR_MESSAGE; in getErrorMessage()
DKillSwitchAccessResolver.java27 private static final String ERROR_MESSAGE = "Measurement API is disabled by kill-switch."; field in KillSwitchAccessResolver
41 return ERROR_MESSAGE; in getErrorMessage()
DUserConsentAccessResolver.java38 private static final String ERROR_MESSAGE = "User has not consented."; field in UserConsentAccessResolver
60 return ERROR_MESSAGE; in getErrorMessage()
DAppPackageAccessResolver.java27 private static final String ERROR_MESSAGE = "Package %s is not allowed to call the API."; field in AppPackageAccessResolver
56 return String.format(ERROR_MESSAGE, mPackageName); in getErrorMessage()
DConsentNotifiedAccessResolver.java38 private static final String ERROR_MESSAGE = "Consent notification has not been displayed."; field in ConsentNotifiedAccessResolver
83 return ERROR_MESSAGE; in getErrorMessage()
DForegroundEnforcementAccessResolver.java35 private static final String ERROR_MESSAGE = "Measurement API was not called from foreground."; field in ForegroundEnforcementAccessResolver
86 return ERROR_MESSAGE; in getErrorMessage()
DDevContextAccessResolver.java35 private static final String ERROR_MESSAGE = "Localhost is only permitted on user-debug builds " field in DevContextAccessResolver
98 return ERROR_MESSAGE; in getErrorMessage()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/access/
DPermissionAccessResolverTest.java31 private static final String ERROR_MESSAGE = "Unauthorized caller. Permission not requested."; field in PermissionAccessResolverTest
50 assertEquals(ERROR_MESSAGE, mClassUnderTest.getErrorMessage()); in getErrorMessage()
DKillSwitchAccessResolverTest.java32 private static final String ERROR_MESSAGE = "Measurement API is disabled by kill-switch."; field in KillSwitchAccessResolverTest
59 assertEquals(ERROR_MESSAGE, new KillSwitchAccessResolver(() -> false).getErrorMessage()); in testGetErrorMessage()
DUserConsentAccessResolverTest.java48 private static final String ERROR_MESSAGE = "User has not consented."; field in UserConsentAccessResolverTest
102 assertEquals(ERROR_MESSAGE, mClassUnderTest.getErrorMessage()); in getErrorMessage()
DDevContextAccessResolverTest.java50 private static final String ERROR_MESSAGE = "Localhost is only permitted on user-debug builds " field in DevContextAccessResolverTest
364 assertEquals(ERROR_MESSAGE, mClassUnderTest.getErrorMessage()); in getErrorMessageRegister()
376 assertEquals(ERROR_MESSAGE, mClassUnderTest.getErrorMessage()); in getErrorMessageRegisterWebSource()
389 assertEquals(ERROR_MESSAGE, mClassUnderTest.getErrorMessage()); in getErrorMessageRegisterWebTrigger()
DForegroundEnforcementAccessResolverTest.java48 private static final String ERROR_MESSAGE = "Measurement API was not called from foreground."; field in ForegroundEnforcementAccessResolverTest
183 ERROR_MESSAGE, in testGetErrorMessage()
/packages/apps/TV/src/com/android/tv/
DLauncherActivity.java38 public static final String ERROR_MESSAGE = "com.android.tv.LauncherActivity.ErrorMessage"; field in LauncherActivity
82 intent.putExtra(ERROR_MESSAGE, getResources().getString(R.string.msg_missing_app)); in onCreate()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DEapFailureNotifierTest.java84 private static final String ERROR_MESSAGE = "Error Message"; field in EapFailureNotifierTest
105 anyString())).thenReturn(ERROR_MESSAGE); in setUp()
110 ERROR_MESSAGE + " : " + EapFailureNotifier in setUp()

12