Home
last modified time | relevance | path

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

12345678

/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.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 …]
DLinkerNamespacesHelper.java389 String error; in runDlopenPublicLibraries() local
394 error = readExtensionConfigFiles(PUBLIC_CONFIG_DIR, publicLibs); in runDlopenPublicLibraries()
395 if (error != null) return error; in runDlopenPublicLibraries()
396 error = readExtensionConfigFiles(PRODUCT_CONFIG_DIR, publicLibs); in runDlopenPublicLibraries()
397 if (error != null) return error; in runDlopenPublicLibraries()
402 if (error == null) { in runDlopenPublicLibraries()
403 error = ""; in runDlopenPublicLibraries()
405 error += result + "\n"; in runDlopenPublicLibraries()
411 return error; in runDlopenPublicLibraries()
/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/CameraITS/pymodules/its/
Ddevice.py25 import its.error
128 except socket.error or socket.timeout:
130 raise its.error.Error(self.device_id,
138 output, error = proc.communicate()
170 output, error = proc.communicate()
173 if error is None or error.find("error") < 0:
178 raise its.error.Error(self.device_id, " cannot find an available " +
256 raise its.error.SocketError(self.device_id, 'Problem with socket on device side')
296 raise its.error.Error('Invalid command response')
303 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/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/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/hostsidetests/net/app/src/com/android/cts/net/hostside/
DDataSaverModeTest.java170 final StringBuilder error = new StringBuilder(); in testGetRestrictBackgroundStatus_requiredWhitelistedPackages() local
177 error.append("\nFailed for '").append(packageName).append("'"); in testGetRestrictBackgroundStatus_requiredWhitelistedPackages()
179 error.append(" (uid ").append(uid).append(")"); in testGetRestrictBackgroundStatus_requiredWhitelistedPackages()
181 error.append(": ").append(t).append("\n"); in testGetRestrictBackgroundStatus_requiredWhitelistedPackages()
184 if (error.length() > 0) { in testGetRestrictBackgroundStatus_requiredWhitelistedPackages()
185 fail(error.toString()); in testGetRestrictBackgroundStatus_requiredWhitelistedPackages()
/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/
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_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/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/hostsidetests/appsecurity/src/android/appsecurity/cts/
DPkgInstallSignatureVerificationTest.java255 String error = "META-INF/MANIFEST.MF has invalid digest"; in testInstallV1SignatureOnlyDoesNotVerify() local
259 "v1-only-with-tampered-classes-dex.apk", error); in testInstallV1SignatureOnlyDoesNotVerify()
264 String error = "signature did not verify"; in testInstallV2SignatureDoesNotVerify() local
268 assertInstallFailsWithError("v2-only-with-dsa-sha256-1024-sig-does-not-verify.apk", error); in testInstallV2SignatureDoesNotVerify()
273 "v2-only-with-rsa-pkcs1-sha256-2048-sig-does-not-verify.apk", error); in testInstallV2SignatureDoesNotVerify()
279 "v2-only-with-rsa-pss-sha256-2048-sig-does-not-verify.apk", error); in testInstallV2SignatureDoesNotVerify()
283 "v2-only-with-ecdsa-sha256-p256-sig-does-not-verify.apk", error); in testInstallV2SignatureDoesNotVerify()
289 String error = "digest of contents did not verify"; in testInstallV2ContentDigestMismatch() local
294 "v2-only-with-rsa-pkcs1-sha512-4096-digest-mismatch.apk", error); in testInstallV2ContentDigestMismatch()
299 "v2-only-with-ecdsa-sha256-p256-digest-mismatch.apk", error); in testInstallV2ContentDigestMismatch()
[all …]

12345678