Home
last modified time | relevance | path

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

1234567

/cts/tests/tests/net/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.java60 int error; in setup() local
70 error = EGL14.eglGetError(); in setup()
71 if (error != EGL14.EGL_SUCCESS) { in setup()
80 error = EGL14.eglGetError(); in setup()
81 if (error != EGL14.EGL_SUCCESS) { in setup()
99 error = EGL14.eglGetError(); in setup()
100 if (error != EGL14.EGL_SUCCESS) { in setup()
111 error = EGL14.eglGetError(); in setup()
112 if (error != EGL14.EGL_SUCCESS) { in setup()
122 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.java100 int error = EGL14.eglGetError(); in destroyEglContext() local
101 if (error != EGL14.EGL_SUCCESS) { in destroyEglContext()
102 throw new RuntimeException("error releasing context: " + error); in destroyEglContext()
106 error = EGL14.eglGetError(); in destroyEglContext()
107 if (error != EGL14.EGL_SUCCESS) { in destroyEglContext()
108 throw new RuntimeException("error destroying context: " + error); in destroyEglContext()
113 int error; in releaseAndTerminate() local
115 error = EGL14.eglGetError(); in releaseAndTerminate()
116 if (error != EGL14.EGL_SUCCESS) { in releaseAndTerminate()
117 throw new RuntimeException("error releasing thread: " + error); in releaseAndTerminate()
[all …]
DWrapperTest.java222 int error; in checkGlError() local
223 while ((error = GLES20.glGetError()) != GLES20.GL_NO_ERROR) { in checkGlError()
224 Log.e(TAG, op + ": glError " + error); in checkGlError()
225 throw new RuntimeException(op + ": glError " + error); in checkGlError()
326 int error; in checkEglError() local
327 while ((error = EGL14.eglGetError()) != EGL14.EGL_SUCCESS) { in checkEglError()
328 Log.e(TAG, msg + ": EGL error: 0x" + Integer.toHexString(error)); in checkEglError()
/cts/tests/tests/jni/src/android/jni/cts/
DJniStaticTest.java41 String error = LinkerNamespacesHelper.runAccessibilityTest(); in test_linker_namespaces() local
42 if (error != null) { in test_linker_namespaces()
43 fail(error); in test_linker_namespaces()
48 String error = LinkerNamespacesHelper.runClassLoaderNamespaces(); in test_linker_namespaces_classloaders() local
49 if (error != null) { in test_linker_namespaces_classloaders()
50 fail(error); in test_linker_namespaces_classloaders()
55 String error = BasicLoaderTestHelper.nativeRunTests(); in test_loader_basic() local
56 if (error != null) { in test_loader_basic()
57 fail(error); in test_loader_basic()
320 String error = LinkerNamespacesHelper.runDlopenPublicLibrariesInRuntimeNamespace(); in test_dlopenPublicLibrariesInRuntimeNamespace() 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/apps/CtsVerifier/src/com/android/cts/verifier/screenpinning/
DScreenPinningTestActivity.java121 private void error(int errorId) { in error() method in ScreenPinningTestActivity
122 error(errorId, new Throwable()); in error()
125 private void error(final int errorId, final Throwable cause) { in error() method in ScreenPinningTestActivity
129 String error = getString(errorId); in error()
130 Log.d(TAG, error, cause); in error()
134 ((TextView) findViewById(R.id.error_text)).setText(error); in error()
143 error(R.string.error_screen_already_pinned);
166 error(R.string.error_screen_pinning_did_not_start);
177 error(R.string.error_screen_no_longer_pinned);
188 error(R.string.error_screen_pinning_did_not_exit);
[all …]
/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/pymodules/its/
Ddevice.py25 import its.error
123 except socket.error or socket.timeout:
125 raise its.error.Error(self.device_id,
133 output, error = proc.communicate()
165 output, error = proc.communicate()
168 if error is None or error.find("error") < 0:
173 raise its.error.Error(self.device_id, " cannot find an available " +
251 raise its.error.Error('Problem with socket on device side')
291 raise its.error.Error('Invalid command response')
298 raise its.error.Error('Invalid command response')
[all …]
/cts/tests/tests/jni_vendor/src/android/jni/vendor/cts/
DVendorJniTest.java85 String error = dlopen(lib); in test_vndkSpLibraries() local
89 if (error.equals("")) { in test_vndkSpLibraries()
94 assertEquals("", error); in test_vndkSpLibraries()
101 String error = dlopen(lib); in test_vndkLibraries() local
102 if (error.equals("")) { in test_vndkLibraries()
111 String error = dlopen(lib); in test_frameworkOnlyLibraries() local
112 if (error.equals("")) { in test_frameworkOnlyLibraries()
/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/hostsidetests/appsecurity/src/android/appsecurity/cts/
DPkgInstallSignatureVerificationTest.java249 String error = "META-INF/MANIFEST.MF has invalid digest"; in testInstallV1SignatureOnlyDoesNotVerify() local
253 "v1-only-with-tampered-classes-dex.apk", error); in testInstallV1SignatureOnlyDoesNotVerify()
258 String error = "signature did not verify"; in testInstallV2SignatureDoesNotVerify() local
262 assertInstallFailsWithError("v2-only-with-dsa-sha256-1024-sig-does-not-verify.apk", error); in testInstallV2SignatureDoesNotVerify()
267 "v2-only-with-rsa-pkcs1-sha256-2048-sig-does-not-verify.apk", error); in testInstallV2SignatureDoesNotVerify()
273 "v2-only-with-rsa-pss-sha256-2048-sig-does-not-verify.apk", error); in testInstallV2SignatureDoesNotVerify()
277 "v2-only-with-ecdsa-sha256-p256-sig-does-not-verify.apk", error); in testInstallV2SignatureDoesNotVerify()
283 String error = "digest of contents did not verify"; in testInstallV2ContentDigestMismatch() local
288 "v2-only-with-rsa-pkcs1-sha512-4096-digest-mismatch.apk", error); in testInstallV2ContentDigestMismatch()
293 "v2-only-with-ecdsa-sha256-p256-digest-mismatch.apk", error); in testInstallV2ContentDigestMismatch()
[all …]
/cts/tests/tests/binder_ndk/libbinder_ndk_test/
Dtest_status.cpp83 static void checkIsServiceSpecific(const AStatus* status, int32_t error, in checkIsServiceSpecific() argument
88 EXPECT_EQ(error, AStatus_getServiceSpecificError(status)); in checkIsServiceSpecific()
138 for (int32_t error : {-404, -1, 0, 1, 23, 918}) { in TEST()
139 AStatus* status = AStatus_fromServiceSpecificError(error); in TEST()
140 checkIsServiceSpecific(status, error, "" /*message*/); in TEST()
147 for (int32_t error : {-404, -1, 0, 1, 23, 918}) { in TEST()
149 AStatus_fromServiceSpecificErrorWithMessage(error, kMessage.c_str()); in TEST()
150 checkIsServiceSpecific(status, error, kMessage); in TEST()
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
DDataSaverModeTest.java186 final StringBuilder error = new StringBuilder(); in testGetRestrictBackgroundStatus_requiredWhitelistedPackages()
193 error.append("\nFailed for '").append(packageName).append("'"); in testGetRestrictBackgroundStatus_requiredWhitelistedPackages()
195 error.append(" (uid ").append(uid).append(")"); in testGetRestrictBackgroundStatus_requiredWhitelistedPackages()
197 error.append(": ").append(t).append("\n"); in testGetRestrictBackgroundStatus_requiredWhitelistedPackages()
200 if (error.length() > 0) { in testGetRestrictBackgroundStatus_requiredWhitelistedPackages()
201 fail(error.toString()); in testGetRestrictBackgroundStatus_requiredWhitelistedPackages()
/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/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/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()
/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()
/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/tests/tests/jni/libjnitest/
Dandroid_jni_cts_LinkerNamespacesTest.cpp98 std::string error; in try_dlopen() local
104 error = dlerror(); in try_dlopen()
106 return error; in try_dlopen()
113 std::string error = try_dlopen(path); in load_library() local
114 bool loaded_in_native = error.empty(); in load_library()
119 return error; in load_library()
146 error = "Inconsistent result for library \"" + path + "\": dlopen() " + in load_library()
147 (loaded_in_native ? "succeeded" : "failed (" + error + ")") + in load_library()
152 error += ", System.loadLibrary() " + in load_library()
168 return error; in load_library()

1234567