Home
last modified time | relevance | path

Searched refs:error (Results 1 – 25 of 201) sorted by relevance

123456789

/cts/tests/tests/apache-http/src/android/net/http/cts/
DSslErrorTest.java37 SslError error = new SslError(SslError.SSL_EXPIRED, mCertificate); in testHasError() local
38 assertTrue(error.hasError(SslError.SSL_EXPIRED)); in testHasError()
39 assertFalse(error.hasError(SslError.SSL_UNTRUSTED)); in testHasError()
43 SslError error = new SslError(SslError.SSL_EXPIRED, mCertificate); in testAddError() local
44 assertFalse(error.hasError(SslError.SSL_UNTRUSTED)); in testAddError()
45 error.addError(SslError.SSL_UNTRUSTED); in testAddError()
46 assertTrue(error.hasError(SslError.SSL_UNTRUSTED)); in testAddError()
50 SslError error = new SslError(SslError.SSL_EXPIRED, mCertificate); in testAddErrorIgnoresInvalidValues() local
51 error.addError(42); in testAddErrorIgnoresInvalidValues()
52 assertFalse(error.hasError(42)); in testAddErrorIgnoresInvalidValues()
[all …]
/cts/tests/tests/graphics/src/android/graphics/cts/
DEGL15Test.java61 int error; in setup() local
71 error = EGL14.eglGetError(); in setup()
72 if (error != EGL14.EGL_SUCCESS) { in setup()
81 error = EGL14.eglGetError(); in setup()
82 if (error != EGL14.EGL_SUCCESS) { in setup()
100 error = EGL14.eglGetError(); in setup()
101 if (error != EGL14.EGL_SUCCESS) { in setup()
112 error = EGL14.eglGetError(); in setup()
113 if (error != EGL14.EGL_SUCCESS) { in setup()
123 error = EGL14.eglGetError(); in setup()
[all …]
DEGL14Test.java52 int error; in setup() local
58 error = EGL14.eglGetError(); in setup()
59 if (error != EGL14.EGL_SUCCESS) { in setup()
68 error = EGL14.eglGetError(); in setup()
69 if (error != EGL14.EGL_SUCCESS) { in setup()
87 error = EGL14.eglGetError(); in setup()
88 if (error != EGL14.EGL_SUCCESS) { in setup()
99 error = EGL14.eglGetError(); in setup()
100 if (error != EGL14.EGL_SUCCESS) { in setup()
110 error = EGL14.eglGetError(); in setup()
[all …]
/cts/tests/tests/os/src/android/os/cts/
DSecurityPatchTest.java45 String error = String.format(SECURITY_PATCH_ERROR, buildSecurityPatch); in testSecurityPatchFound() local
46 assertTrue(error, !buildSecurityPatch.isEmpty()); in testSecurityPatchFound()
55 String error = String.format(SECURITY_PATCH_ERROR, buildSecurityPatch); in testSecurityPatchFormat() local
56 assertEquals(error, 10, buildSecurityPatch.length()); in testSecurityPatchFormat()
57 assertTrue(error, Character.isDigit(buildSecurityPatch.charAt(0))); in testSecurityPatchFormat()
58 assertTrue(error, Character.isDigit(buildSecurityPatch.charAt(1))); in testSecurityPatchFormat()
59 assertTrue(error, Character.isDigit(buildSecurityPatch.charAt(2))); in testSecurityPatchFormat()
60 assertTrue(error, Character.isDigit(buildSecurityPatch.charAt(3))); in testSecurityPatchFormat()
61 assertEquals(error, '-', buildSecurityPatch.charAt(4)); in testSecurityPatchFormat()
62 assertTrue(error, Character.isDigit(buildSecurityPatch.charAt(5))); in testSecurityPatchFormat()
[all …]
/cts/tests/tests/opengl/src/android/opengl/cts/
DNativeAttachShaderTest.java52 int error = mActivity.mRenderer.mAttachShaderError; in test_glAttachedShaders_validshader() local
53 assertEquals(GLES20.GL_NO_ERROR, error); in test_glAttachedShaders_validshader()
66 int error = mActivity.mRenderer.mAttachShaderError; in test_glAttachedShaders_invalidshader() local
67 assertTrue(GLES20.GL_NO_ERROR != error); in test_glAttachedShaders_invalidshader()
80 int error = mActivity.mRenderer.mAttachShaderError; in test_glAttachedShaders_attach_same_shader() local
81 assertTrue(GLES20.GL_NO_ERROR != error); in test_glAttachedShaders_attach_same_shader()
97 int error = mActivity.mRenderer.mAttachShaderError; in test_glAttachedShaders_noshader() local
98 assertEquals(GLES20.GL_NO_ERROR, error); in test_glAttachedShaders_noshader()
110 int error = mActivity.mRenderer.mAttachShaderError;; in test_glAttachShaders_emptyfragshader_emptyvertexshader() local
111 assertEquals(GLES20.GL_NO_ERROR, error); in test_glAttachShaders_emptyfragshader_emptyvertexshader()
[all …]
DAttachShaderTest.java51 int error = mActivity.glGetError(); in test_glAttachedShaders_validshader() local
52 assertEquals(GLES20.GL_NO_ERROR, error); in test_glAttachedShaders_validshader()
99 int error = mActivity.glGetError(); in test_glAttachedShaders_noshader() local
100 assertEquals(GLES20.GL_NO_ERROR, error); in test_glAttachedShaders_noshader()
113 int error = mActivity.glGetError(); in test_glAttachShaders_emptyfragshader_emptyvertexshader() local
114 assertEquals(GLES20.GL_NO_ERROR, error); in test_glAttachShaders_emptyfragshader_emptyvertexshader()
128 int error = mActivity.glGetError(); in test_glAttachShaders_programobject_attach_fragshaderobject() local
129 assertEquals(GLES20.GL_NO_ERROR, error); in test_glAttachShaders_programobject_attach_fragshaderobject()
134 int error = mActivity.glGetError(); in test_glAttachShaders_invalidshader_attach_valid_handle() local
135 assertTrue(GLES20.GL_NO_ERROR != error); in test_glAttachShaders_invalidshader_attach_valid_handle()
[all …]
DEgl14Utils.java109 int error = EGL14.eglGetError(); in destroyEglContext() local
110 if (error != EGL14.EGL_SUCCESS) { in destroyEglContext()
111 throw new RuntimeException("error releasing context: " + error); in destroyEglContext()
115 error = EGL14.eglGetError(); in destroyEglContext()
116 if (error != EGL14.EGL_SUCCESS) { in destroyEglContext()
117 throw new RuntimeException("error destroying context: " + error); in destroyEglContext()
122 int error; in releaseAndTerminate() local
124 error = EGL14.eglGetError(); in releaseAndTerminate()
125 if (error != EGL14.EGL_SUCCESS) { in releaseAndTerminate()
126 throw new RuntimeException("error releasing thread: " + error); in releaseAndTerminate()
[all …]
/cts/tests/quickaccesswallet/src/android/quickaccesswallet/cts/
DGetWalletCardsErrorTest.java50 GetWalletCardsError error = new GetWalletCardsError(icon, "error"); in testParcel_toParcel() local
53 error.writeToParcel(p, 0); in testParcel_toParcel()
56 compareIcons(mContext, error.getIcon(), newError.getIcon()); in testParcel_toParcel()
57 assertThat(error.getMessage()).isEqualTo(newError.getMessage()); in testParcel_toParcel()
62 GetWalletCardsError error = new GetWalletCardsError(null, "error"); in testParcel_withNullIcon_toParcel() local
65 error.writeToParcel(p, 0); in testParcel_withNullIcon_toParcel()
68 compareIcons(mContext, error.getIcon(), newError.getIcon()); in testParcel_withNullIcon_toParcel()
69 assertThat(error.getMessage()).isEqualTo(newError.getMessage()); in testParcel_withNullIcon_toParcel()
74 GetWalletCardsError error = new GetWalletCardsError(null, null); in testParcel_withNullIconAndMessage_toParcel() local
77 error.writeToParcel(p, 0); in testParcel_withNullIconAndMessage_toParcel()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/screenpinning/
DScreenPinningTestActivity.java64 protected void error(int errorId) { in error() method in ScreenPinningTestActivity
65 error(errorId, new Throwable()); in error()
68 private void error(final int errorId, final Throwable cause) { in error() method in ScreenPinningTestActivity
72 String error = getString(errorId); in error()
73 Log.d(TAG, error, cause); in error()
75 ((TextView) findViewById(R.id.txt_instruction)).setText(error); in error()
84 error(R.string.error_screen_already_pinned);
107 error(R.string.error_screen_pinning_did_not_start);
118 error(R.string.error_screen_no_longer_pinned);
129 error(R.string.error_screen_pinning_did_not_exit);
[all …]
/cts/tests/tests/jni/src/android/jni/cts/
DJniStaticTest.java43 String error = LinkerNamespacesHelper.runAccessibilityTest(); in test_linker_namespaces() local
44 if (error != null) { in test_linker_namespaces()
45 fail(error); in test_linker_namespaces()
50 String error = LinkerNamespacesHelper.runClassLoaderNamespaces(); in test_linker_namespaces_classloaders() local
51 if (error != null) { in test_linker_namespaces_classloaders()
52 fail(error); in test_linker_namespaces_classloaders()
57 String error = BasicLoaderTestHelper.nativeRunTests(); in test_loader_basic() local
58 if (error != null) { in test_loader_basic()
59 fail(error); in test_loader_basic()
323 String error = LinkerNamespacesHelper.runDlopenPublicLibraries(); in test_dlopenPublicLibraries() local
[all …]
/cts/hostsidetests/monkey/src/com/android/cts/monkey/
DPackageTest.java42 String error = truncateError(out); in testSinglePackage() local
43 assertTrue("Monkey not found in: " + error, ALLOW_MONKEY.matcher(out).find()); in testSinglePackage()
44 assertFalse("Chimp found in: " + error, ALLOW_CHIMP.matcher(out).find()); in testSinglePackage()
56 String error = truncateError(out); in testSinglePackage() local
57 assertFalse("Monkey found in: " + error, ALLOW_MONKEY.matcher(out).find()); in testSinglePackage()
58 assertTrue("Chimp not found in: " + error, ALLOW_CHIMP.matcher(out).find()); in testSinglePackage()
72 String error = truncateError(out); in testMultiplePackages() local
73 assertTrue("Monkey not found in: " + error, ALLOW_MONKEY.matcher(out).find()); in testMultiplePackages()
74 assertTrue("Chimp not found in: " + error, ALLOW_CHIMP.matcher(out).find()); in testMultiplePackages()
/cts/tests/signature/api-check/src/jni/
Dclassdescriptors.cpp107 jvmtiError error = get_descriptor_list(jvmti_env, loader, &cnt, &classes); in Java_android_signature_cts_api_BootClassPathClassesProvider_getClassloaderDescriptors() local
108 if (error != JVMTI_ERROR_NONE) { in Java_android_signature_cts_api_BootClassPathClassesProvider_getClassloaderDescriptors()
162 jvmtiError error; in Java_android_signature_cts_api_BootClassPathClassesProvider_getClassMemberNamesAndTypes() local
169 error = (getFields != JNI_FALSE) ? jvmti_env->GetClassFields(klass, &count, fids.GetPtr()) in Java_android_signature_cts_api_BootClassPathClassesProvider_getClassMemberNamesAndTypes()
171 if (error != JVMTI_ERROR_NONE) { in Java_android_signature_cts_api_BootClassPathClassesProvider_getClassMemberNamesAndTypes()
175 << ", error code: " << static_cast<unsigned>(error); in Java_android_signature_cts_api_BootClassPathClassesProvider_getClassMemberNamesAndTypes()
176 std::string error = ss.str(); in Java_android_signature_cts_api_BootClassPathClassesProvider_getClassMemberNamesAndTypes() local
178 env->ThrowNew(rt_exception, error.c_str()); in Java_android_signature_cts_api_BootClassPathClassesProvider_getClassMemberNamesAndTypes()
192 error = (getFields != JNI_FALSE) in Java_android_signature_cts_api_BootClassPathClassesProvider_getClassMemberNamesAndTypes()
195 if (error != JVMTI_ERROR_NONE) { in Java_android_signature_cts_api_BootClassPathClassesProvider_getClassMemberNamesAndTypes()
[all …]
/cts/hostsidetests/packagemanager/parsing/host/src/android/content/pm/parsing/cts/host/
DUsesSdkTest.kt65 assertThat(result.error).isEmpty() in defaultsNoTag()
80 assertThat(result.error).isEmpty() in defaultsWithTag()
95 assertThat(result.error).isEmpty() in missingMinDefaults()
110 assertThat(result.error).isEmpty() in missingTargetCoercedToMin()
130 assertThat(result.error).isEmpty() in takeAndroidTargetSdk()
148 assertThat(result.error).isEmpty() in emptyUsesSdk()
164 assertThat(result.error).isEmpty() in takeLastTargetSdk()
180 assertThat(result.error).isEmpty() in takeLastMinSdk()
201 assertThat(result.error).isEmpty() in takeLastExtensionSdk()
219 assertThat(result.error).isEmpty() in lastDeclarationOverridesAllPrevious()
[all …]
/cts/hostsidetests/graphics/gpuprofiling/app/
Dandroid_graphics_cts_GpuCounters.cpp56 char *error; in startCounterProducer() local
62 if ((error = dlerror()) != nullptr || handle == nullptr) { in startCounterProducer()
63 ALOGE("Error loading lib: %s", error); in startCounterProducer()
68 if ((error = dlerror()) != nullptr) { in startCounterProducer()
69 ALOGE("Error looking for start symbol: %s", error); in startCounterProducer()
/cts/tests/vr/src/android/vr/cts/
DVrExtensionBehaviorTest.java61 int error = mActivity.glGetError(); in testProtectedContent() local
62 assertEquals(GLES32.GL_NO_ERROR, error); in testProtectedContent()
85 int error = mActivity.glGetError(); in testProtectedTextures() local
86 assertEquals(GLES32.GL_NO_ERROR, error); in testProtectedTextures()
134 int error = mActivity.glGetError(); in testMutableRenderBuffer() local
135 assertEquals(GLES32.GL_NO_ERROR, error); in testMutableRenderBuffer()
218 int error = mActivity.glGetError(); in runContextPriorityTest() local
219 assertEquals(GLES32.GL_NO_ERROR, error); in runContextPriorityTest()
/cts/tests/tests/opengl/libopengltest/
Dattach_shader_two.cpp42 GLint error = glGetError(); in attachShaderTwo() local
43 LOGI("Error %d\n", error); in attachShaderTwo()
44 Data data = {error, count, -1}; in attachShaderTwo()
Dcolor_one.cpp81 GLint error = glGetError(); in initColorOne() local
126 for (GLint error = glGetError(); error; error in checkGlError() local
128 LOGI("after %s() glError (0x%x)\n", op, error); in checkGlError()
Dattach_shader_nine.cpp30 GLint error = glGetError(); in attachShaderNine() local
31 Data data = {error, -9, -1}; in attachShaderNine()
Dattach_shader_eight.cpp31 GLint error = glGetError(); in attachShaderEight() local
32 Data data = {error, -9 , -1}; in attachShaderEight()
/cts/tests/tests/graphics/jni/
Dandroid_graphics_cts_ANativeWindowTest.cpp42 int error = ANativeWindow_setBuffersDataSpace(window, dataSpace); in setBuffersDataSpace() local
43 if (error != 0) { in setBuffersDataSpace()
44 return error; in setBuffersDataSpace()
50 return error; in setBuffersDataSpace()
/cts/apps/NotificationBot/src/com/android/cts/robot/
DNotificationBot.java170 String error; in testShortcutResetInlineReplyReceived() local
173 error = SUCCESS; in testShortcutResetInlineReplyReceived()
175 error = "Inline reply received, but ShortcutManager rate-limiting is still active."; in testShortcutResetInlineReplyReceived()
180 intent.getParcelableExtra(EXTRA_RESET_REQUEST_INTENT), error); in testShortcutResetInlineReplyReceived()
191 … private static void sendShortcutResetReply(Context context, Intent requestIntent, String error) { in sendShortcutResetReply() argument
194 replyIntent.putExtra(EXTRA_RESET_REPLY_ERROR, error); in sendShortcutResetReply()
196 if (error != null) { in sendShortcutResetReply()
197 Log.e(TAG, error); in sendShortcutResetReply()
/cts/tests/tests/binder_ndk/libbinder_ndk_test/
Dtest_status.cpp86 static void checkIsServiceSpecific(const AStatus* status, int32_t error, in checkIsServiceSpecific() argument
91 EXPECT_EQ(error, AStatus_getServiceSpecificError(status)); in checkIsServiceSpecific()
141 for (int32_t error : {-404, -1, 0, 1, 23, 918}) { in TEST()
142 AStatus* status = AStatus_fromServiceSpecificError(error); in TEST()
143 checkIsServiceSpecific(status, error, "" /*message*/); in TEST()
150 for (int32_t error : {-404, -1, 0, 1, 23, 918}) { in TEST()
152 AStatus_fromServiceSpecificErrorWithMessage(error, kMessage.c_str()); in TEST()
153 checkIsServiceSpecific(status, error, kMessage); in TEST()
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/
DVoiceInteractionTestReceiver.java40 String error = sReceivedIntent.getStringExtra("error"); in waitSessionStarted() local
41 if (error != null) { in waitSessionStarted()
42 fail(error); in waitSessionStarted()
/cts/hostsidetests/packagemanager/parsing/processing/api/src/android/content/pm/parsing/cts/generator/api/
DApkGenerator.kt66 val error = device.installPackage(apkFile, false) in <lambda>() constant
69 error = error.orEmpty(), in <lambda>()
104 val error: String, in <lambda>() constant in android.content.pm.parsing.cts.generator.api.ApkGenerator.InstallResult
/cts/hostsidetests/devicepolicy/app/AccountCheck/Auth/src/com/android/cts/devicepolicy/accountcheck/
DAccountCheckTest.java148 final StringBuilder error = new StringBuilder(); in testCheckPreconfiguredAccountFeatures() local
152 error.append(account + " has " + feature_disallow[0] + "\n"); in testCheckPreconfiguredAccountFeatures()
155 error.append(account + " doesn't have " + feature_allow[0] + "\n"); in testCheckPreconfiguredAccountFeatures()
158 if (error.length() > 0) { in testCheckPreconfiguredAccountFeatures()
159 fail(error.toString()); in testCheckPreconfiguredAccountFeatures()

123456789