Home
last modified time | relevance | path

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

123456

/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/os/src/android/os/cts/
DSecurityPatchTest.java56 String error = String.format(SECURITY_PATCH_ERROR, mBuildSecurityPatch); in testSecurityPatchFound() local
57 assertTrue(error, !mBuildSecurityPatch.isEmpty()); in testSecurityPatchFound()
73 String error = String.format(SECURITY_PATCH_ERROR, mBuildSecurityPatch); in testSecurityPatchesFormat() local
74 testSecurityPatchFormat(mBuildSecurityPatch, error); in testSecurityPatchesFormat()
80 error = String.format(SECURITY_PATCH_ERROR, mVendorSecurityPatch); in testSecurityPatchesFormat()
81 testSecurityPatchFormat(mVendorSecurityPatch, error); in testSecurityPatchesFormat()
85 private void testSecurityPatchFormat(String patch, String error) { in testSecurityPatchFormat() argument
86 assertEquals(error, 10, patch.length()); in testSecurityPatchFormat()
87 assertTrue(error, Character.isDigit(patch.charAt(0))); in testSecurityPatchFormat()
88 assertTrue(error, Character.isDigit(patch.charAt(1))); 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 …]
/cts/tests/tests/hardware/src/android/hardware/cts/
DEgl14Utils.java78 int error = EGL14.eglGetError(); in destroyEglContext() local
79 if (error != EGL14.EGL_SUCCESS) { in destroyEglContext()
80 throw new RuntimeException("error releasing context: " + error); in destroyEglContext()
84 error = EGL14.eglGetError(); in destroyEglContext()
85 if (error != EGL14.EGL_SUCCESS) { in destroyEglContext()
86 throw new RuntimeException("error destroying context: " + error); in destroyEglContext()
91 int error; in releaseAndTerminate() local
93 error = EGL14.eglGetError(); in releaseAndTerminate()
94 if (error != EGL14.EGL_SUCCESS) { in releaseAndTerminate()
95 throw new RuntimeException("error releasing thread: " + error); in releaseAndTerminate()
[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/tests/jni/src/android/jni/cts/
DJniStaticTest.java39 String error = LinkerNamespacesHelper.runAccessibilityTest(); in test_linker_namespaces() local
40 if (error != null) { in test_linker_namespaces()
41 fail(error); in test_linker_namespaces()
46 String error = LinkerNamespacesHelper.runClassLoaderNamespaces(); in test_linker_namespaces_classloaders() local
47 if (error != null) { in test_linker_namespaces_classloaders()
48 fail(error); in test_linker_namespaces_classloaders()
53 String error = BasicLoaderTestHelper.nativeRunTests(); in test_loader_basic() local
54 if (error != null) { in test_loader_basic()
55 fail(error); in test_loader_basic()
/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/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/apps/CameraITS/pymodules/its/
Ddevice.py15 import its.error
120 except socket.error or socket.timeout:
122 raise its.error.Error(self.device_id,
130 output, error = proc.communicate()
162 output, error = proc.communicate()
165 if error is None or error.find("error") < 0:
170 raise its.error.Error(self.device_id, " cannot find an available " +
244 raise its.error.Error('Problem with socket on device side')
271 raise its.error.Error('Invalid command response')
278 raise its.error.Error('Invalid command response')
[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/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()
Dattach_shader_six.cpp34 GLint error = glGetError(); in attachShaderSix() local
35 Data data = {error, -9 , -1}; in attachShaderSix()
Dattach_shader_three.cpp40 GLint error = glGetError(); in attachShaderThree() local
41 Data data = {error, -9, -1}; in attachShaderThree()
/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/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/net/app/src/com/android/cts/net/hostside/
DDataSaverModeTest.java202 final StringBuilder error = new StringBuilder(); in testGetRestrictBackgroundStatus_requiredWhitelistedPackages()
209 error.append("\nFailed for '").append(packageName).append("'"); in testGetRestrictBackgroundStatus_requiredWhitelistedPackages()
211 error.append(" (uid ").append(uid).append(")"); in testGetRestrictBackgroundStatus_requiredWhitelistedPackages()
213 error.append(": ").append(t).append("\n"); in testGetRestrictBackgroundStatus_requiredWhitelistedPackages()
216 if (error.length() > 0) { in testGetRestrictBackgroundStatus_requiredWhitelistedPackages()
217 fail(error.toString()); in testGetRestrictBackgroundStatus_requiredWhitelistedPackages()
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/
DVoiceInteractionTestReceiver.java39 String error = sReceivedIntent.getStringExtra("error"); in waitSessionStarted() local
40 if (error != null) { in waitSessionStarted()
41 testCase.fail(error); in waitSessionStarted()
/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/hostsidetests/appsecurity/src/android/appsecurity/cts/
DPkgInstallSignatureVerificationTest.java251 String error = "META-INF/MANIFEST.MF has invalid digest"; in testInstallV1SignatureOnlyDoesNotVerify() local
255 "v1-only-with-tampered-classes-dex.apk", error); in testInstallV1SignatureOnlyDoesNotVerify()
260 String error = "signature did not verify"; in testInstallV2SignatureDoesNotVerify() local
264 assertInstallFailsWithError("v2-only-with-dsa-sha256-1024-sig-does-not-verify.apk", error); in testInstallV2SignatureDoesNotVerify()
269 "v2-only-with-rsa-pkcs1-sha256-2048-sig-does-not-verify.apk", error); in testInstallV2SignatureDoesNotVerify()
275 "v2-only-with-rsa-pss-sha256-2048-sig-does-not-verify.apk", error); in testInstallV2SignatureDoesNotVerify()
279 "v2-only-with-ecdsa-sha256-p256-sig-does-not-verify.apk", error); in testInstallV2SignatureDoesNotVerify()
285 String error = "digest of contents did not verify"; in testInstallV2ContentDigestMismatch() local
290 "v2-only-with-rsa-pkcs1-sha512-4096-digest-mismatch.apk", error); in testInstallV2ContentDigestMismatch()
295 "v2-only-with-ecdsa-sha256-p256-digest-mismatch.apk", error); in testInstallV2ContentDigestMismatch()
[all …]
/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()

123456