Home
last modified time | relevance | path

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

12345678910>>...12

/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/os/src/android/os/cts/
DSecurityPatchTest.java47 String error = String.format(SECURITY_PATCH_ERROR, buildSecurityPatch); in testSecurityPatchFound() local
48 assertTrue(error, !buildSecurityPatch.isEmpty()); in testSecurityPatchFound()
57 String error = String.format(SECURITY_PATCH_ERROR, buildSecurityPatch); in testSecurityPatchFormat() local
58 assertEquals(error, 10, buildSecurityPatch.length()); in testSecurityPatchFormat()
59 assertTrue(error, Character.isDigit(buildSecurityPatch.charAt(0))); in testSecurityPatchFormat()
60 assertTrue(error, Character.isDigit(buildSecurityPatch.charAt(1))); in testSecurityPatchFormat()
61 assertTrue(error, Character.isDigit(buildSecurityPatch.charAt(2))); in testSecurityPatchFormat()
62 assertTrue(error, Character.isDigit(buildSecurityPatch.charAt(3))); in testSecurityPatchFormat()
63 assertEquals(error, '-', buildSecurityPatch.charAt(4)); in testSecurityPatchFormat()
64 assertTrue(error, Character.isDigit(buildSecurityPatch.charAt(5))); in testSecurityPatchFormat()
[all …]
/cts/tests/tests/opengl/src/android/opengl/cts/
DNativeAttachShaderTest.java56 int error = mActivity.mRenderer.mAttachShaderError; in test_glAttachedShaders_validshader() local
57 assertEquals(GLES20.GL_NO_ERROR, error); in test_glAttachedShaders_validshader()
70 int error = mActivity.mRenderer.mAttachShaderError; in test_glAttachedShaders_invalidshader() local
71 assertTrue(GLES20.GL_NO_ERROR != error); in test_glAttachedShaders_invalidshader()
84 int error = mActivity.mRenderer.mAttachShaderError; in test_glAttachedShaders_attach_same_shader() local
85 assertTrue(GLES20.GL_NO_ERROR != error); in test_glAttachedShaders_attach_same_shader()
101 int error = mActivity.mRenderer.mAttachShaderError; in test_glAttachedShaders_noshader() local
102 assertEquals(GLES20.GL_NO_ERROR, error); in test_glAttachedShaders_noshader()
114 int error = mActivity.mRenderer.mAttachShaderError;; in test_glAttachShaders_emptyfragshader_emptyvertexshader() local
115 assertEquals(GLES20.GL_NO_ERROR, error); in test_glAttachShaders_emptyfragshader_emptyvertexshader()
[all …]
DAttachShaderTest.java55 int error = mActivity.glGetError(); in test_glAttachedShaders_validshader() local
56 assertEquals(GLES20.GL_NO_ERROR, error); in test_glAttachedShaders_validshader()
103 int error = mActivity.glGetError(); in test_glAttachedShaders_noshader() local
104 assertEquals(GLES20.GL_NO_ERROR, error); in test_glAttachedShaders_noshader()
117 int error = mActivity.glGetError(); in test_glAttachShaders_emptyfragshader_emptyvertexshader() local
118 assertEquals(GLES20.GL_NO_ERROR, error); in test_glAttachShaders_emptyfragshader_emptyvertexshader()
132 int error = mActivity.glGetError(); in test_glAttachShaders_programobject_attach_fragshaderobject() local
133 assertEquals(GLES20.GL_NO_ERROR, error); in test_glAttachShaders_programobject_attach_fragshaderobject()
138 int error = mActivity.glGetError(); in test_glAttachShaders_invalidshader_attach_valid_handle() local
139 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/tests/graphics/src/android/graphics/cts/
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 …]
DEGL15Test.java72 int error; in setup() local
82 error = EGL14.eglGetError(); in setup()
83 if (error != EGL14.EGL_SUCCESS) { in setup()
92 error = EGL14.eglGetError(); in setup()
93 if (error != EGL14.EGL_SUCCESS) { in setup()
111 error = EGL14.eglGetError(); in setup()
112 if (error != EGL14.EGL_SUCCESS) { in setup()
123 error = EGL14.eglGetError(); in setup()
124 if (error != EGL14.EGL_SUCCESS) { in setup()
134 error = EGL14.eglGetError(); in setup()
[all …]
/cts/tests/tests/graphics/jni/
Dandroid_graphics_cts_VulkanFeaturesTest.cpp55 std::string error ("There was a failure from vpGetinstanceProfileSupport:\n" in android_graphics_cts_VulkanFeaturesTest_nativeGetABPSupport() local
57 return env->NewStringUTF(error.c_str()); in android_graphics_cts_VulkanFeaturesTest_nativeGetABPSupport()
60 std::string error ("There was a failure from vpGetinstanceProfileSupport:\n" in android_graphics_cts_VulkanFeaturesTest_nativeGetABPSupport() local
62 return env->NewStringUTF(error.c_str()); in android_graphics_cts_VulkanFeaturesTest_nativeGetABPSupport()
92 std::string error("There was a failure from vpCreateInstance:\n" in android_graphics_cts_VulkanFeaturesTest_nativeGetABPSupport() local
94 return env->NewStringUTF(error.c_str()); in android_graphics_cts_VulkanFeaturesTest_nativeGetABPSupport()
101 std::string error("There was a failure from vkEnumeratePhysicalDevices:\n" in android_graphics_cts_VulkanFeaturesTest_nativeGetABPSupport() local
103 return env->NewStringUTF(error.c_str()); in android_graphics_cts_VulkanFeaturesTest_nativeGetABPSupport()
110 std::string error("There was a failure from vkEnumeratePhysicalDevices (2):\n" in android_graphics_cts_VulkanFeaturesTest_nativeGetABPSupport() local
112 return env->NewStringUTF(error.c_str()); in android_graphics_cts_VulkanFeaturesTest_nativeGetABPSupport()
[all …]
/cts/tests/tests/companion/multidevice/client/src/android/companion/cts/multidevice/
DCallbackUtils.kt39 private var error: String? = null variable in android.companion.cts.multidevice.CallbackUtils.AssociationCallback
51 override fun onFailure(error: CharSequence?) { in onFailure()
52 this.error = error?.toString() ?: "There was an unexpected failure." in onFailure()
62 error?.let { in waitForPendingIntent()
74 error?.let { in waitForAssociation()
85 private var error: CompanionException? = null variable in android.companion.cts.multidevice.CallbackUtils.SystemDataTransferCallback
91 override fun onError(error: CompanionException) { in onError()
92 this.error = error in onError()
101 error?.let { in waitForCompletion()
/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/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/hostsidetests/securitybulletin/securityPatch/CVE-2023-21261/
Dpoc.cpp38 FT_Error error = FT_Init_FreeType(&library); in main() local
39 FAIL_CHECK(!error); in main()
43 error = FT_New_Face(library, argv[2], face_index, &face); in main()
44 FAIL_CHECK(!error); in main()
49 error = FT_Set_Char_Size(face, 0 /* char_width */, 0 /* char_height */, in main()
51 FAIL_CHECK((error == FT_THROW(Invalid_Size_Handle))); in main()
/cts/libs/hardware/src/com/android/cts/hardware/
DSyncFenceUtil.java41 int error; in createUselessFence() local
51 error = EGL14.eglGetError(); in createUselessFence()
52 if (error != EGL14.EGL_SUCCESS) { in createUselessFence()
61 error = EGL14.eglGetError(); in createUselessFence()
62 if (error != EGL14.EGL_SUCCESS) { in createUselessFence()
79 error = EGL14.eglGetError(); in createUselessFence()
80 if (error != EGL14.EGL_SUCCESS) { in createUselessFence()
91 error = EGL14.eglGetError(); in createUselessFence()
92 if (error != EGL14.EGL_SUCCESS) { in createUselessFence()
101 error = EGL14.eglGetError(); in createUselessFence()
[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/apps/CameraITS/tests/scene4/
Dtest_preview_aspect_ratio_and_crop.py60 logging.error('Aspect ratio test summary')
61 logging.error('Images failed in the aspect ratio test:')
62 logging.error('Aspect ratio value: width / height')
64 logging.error('%s', fa)
67 logging.error('FoV test summary')
68 logging.error('Images failed in the FoV test:')
70 logging.error('%s', str(fov))
73 logging.error('Crop test summary')
74 logging.error('Images failed in the crop test:')
75 logging.error('Circle center (H x V) relative to the image center.')
[all …]
Dtest_video_aspect_ratio_and_crop.py45 logging.error('Aspect ratio test summary for quality: %s', quality)
46 logging.error('Images failed in the aspect ratio test:')
47 logging.error('Aspect ratio value: width / height')
49 logging.error('%s', fa)
52 logging.error('FoV test summary for quality: %s', quality)
53 logging.error('Images failed in the FoV test:')
55 logging.error('%s', str(fov))
58 logging.error('Crop test summary for quality: %s', quality)
59 logging.error('Images failed in the crop test:')
60 logging.error('Circle center (H x V) relative to the image center.')
[all …]
Dtest_aspect_ratio_and_crop.py119 logging.error('Aspect ratio test summary')
120 logging.error('Images failed in the aspect ratio test:')
121 logging.error('Aspect ratio value: width / height')
123 logging.error('%s', fa)
126 logging.error('FoV test summary')
127 logging.error('Images failed in the FoV test:')
129 logging.error('%s', str(fov))
132 logging.error('Crop test summary')
133 logging.error('Images failed in the crop test:')
134 logging.error('Circle center (H x V) relative to the image center.')
[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/tests/jni/src/android/jni/cts/
DJniStaticTest.java45 String error = LinkerNamespacesHelper.runAccessibilityTest(); in test_linker_namespaces() local
46 if (error != null) { in test_linker_namespaces()
47 fail(error); in test_linker_namespaces()
52 String error = LinkerNamespacesHelper.runClassLoaderNamespaces(); in test_linker_namespaces_classloaders() local
53 if (error != null) { in test_linker_namespaces_classloaders()
54 fail(error); in test_linker_namespaces_classloaders()
59 String error = BasicLoaderTestHelper.nativeRunTests(); in test_loader_basic() local
60 if (error != null) { in test_loader_basic()
61 fail(error); in test_loader_basic()
556 String error = LinkerNamespacesHelper.runDlopenPublicLibraries(); in test_dlopenPublicLibraries() local
[all …]
/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()
/cts/hostsidetests/adpf/app/hintsession/src/cpp/
DUtility.cpp30 GLenum error = glGetError(); in checkAndLogGlError() local
31 if (error == GL_NO_ERROR) { in checkAndLogGlError()
37 switch (error) { in checkAndLogGlError()
44 aout << "Unknown GL error: " << error << std::endl; in checkAndLogGlError()
/cts/tests/tests/companion/common/src/android/companion/cts/common/
DRecordingCallback.kt60 override fun onFailure(error: CharSequence?) { in onFailure()
61 logAndRecordInvocation(OnFailure(error)) in onFailure()
62 onFailureAction?.invoke(error) in onFailure()
74 data class OnFailure(val error: CharSequence?) : CallbackInvocation constant in android.companion.cts.common.OnFailure

12345678910>>...12