Home
last modified time | relevance | path

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

12345

/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/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 …]
/cts/tests/tests/graphics/src/android/opengl/cts/
DEglContextTest.java98 int error = EGL14.eglGetError(); in destroyEglContext() local
99 if (error != EGL14.EGL_SUCCESS) { in destroyEglContext()
100 throw new RuntimeException("error releasing context: " + error); in destroyEglContext()
104 error = EGL14.eglGetError(); in destroyEglContext()
105 if (error != EGL14.EGL_SUCCESS) { in destroyEglContext()
106 throw new RuntimeException("error destroying context: " + error); in destroyEglContext()
110 error = EGL14.eglGetError(); in destroyEglContext()
111 if (error != EGL14.EGL_SUCCESS) { in destroyEglContext()
112 throw new RuntimeException("error releasing thread: " + error); in destroyEglContext()
116 error = EGL14.eglGetError(); in destroyEglContext()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/screenpinning/
DScreenPinningTestActivity.java126 private void error(int errorId) { in error() method in ScreenPinningTestActivity
127 error(errorId, new Throwable()); in error()
130 private void error(final int errorId, final Throwable cause) { in error() method in ScreenPinningTestActivity
134 String error = getString(errorId); in error()
135 Log.d(TAG, error, cause); in error()
139 ((TextView) findViewById(R.id.error_text)).setText(error); in error()
148 error(R.string.error_screen_already_pinned);
171 error(R.string.error_screen_pinning_did_not_start);
182 error(R.string.error_screen_no_longer_pinned);
193 error(R.string.error_screen_pinning_did_not_exit);
[all …]
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DDeviceInfoActivity.java119 private void error(String message) { in error() method in DeviceInfoActivity
189 error("Failed to begin JSON group: " + e.getMessage()); in startGroup()
201 error("Failed to begin JSON group: " + e.getMessage()); in startGroup()
212 error("Failed to end JSON group: " + e.getMessage()); in endGroup()
223 error("Failed to begin JSON array: " + e.getMessage()); in startArray()
236 error("Failed to begin JSON array: " + e.getMessage()); in startArray()
247 error("Failed to end JSON group: " + e.getMessage()); in endArray()
259 error("Failed to add result for type double: " + e.getMessage()); in addResult()
271 error("Failed to add result for type long: " + e.getMessage()); in addResult()
283 error("Failed to add result for type int: " + e.getMessage()); in addResult()
[all …]
/cts/apps/CameraITS/pymodules/its/
Ddevice.py15 import its.error
100 except socket.error:
102 raise its.error.Error(self.device_id,
110 output, error = proc.communicate()
142 output, error = proc.communicate()
145 if error is None or error.find("error") < 0:
150 raise its.error.Error(self.device_id, " cannot find an available " +
223 raise its.error.Error('Problem with socket on device side')
250 raise its.error.Error('Invalid command response')
257 raise its.error.Error('Invalid command response')
[all …]
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapcomparers/
DWeightedPixelDifference.java58 float error = 0f; in errorBetweenPixels() local
59 error += Math.abs(Color.red(color1) - Color.red(color2)); in errorBetweenPixels()
60 error += Math.abs(Color.green(color1) - Color.green(color2)); in errorBetweenPixels()
61 error += Math.abs(Color.blue(color1) - Color.blue(color2)); in errorBetweenPixels()
62 error += Math.abs(Color.alpha(color1) - Color.alpha(color2)); in errorBetweenPixels()
63 return error; in errorBetweenPixels()
DNearPixelComparer.java61 int error = Math.abs(Color.red(ideal) - Color.red(given)); in pixelsAreSame() local
62 error += Math.abs(Color.green(ideal) - Color.green(given)); in pixelsAreSame()
63 error += Math.abs(Color.blue(ideal) - Color.blue(given)); in pixelsAreSame()
64 return (error < THRESHOLD); in pixelsAreSame()
DMeanSquaredComparer.java67 float error = sum1DFloatAllocation(outputAllocation); in verifySameRowsRS() local
68 error /= (height * width); in verifySameRowsRS()
70 Log.d(TAG, "Error RS : " + error); in verifySameRowsRS()
72 return (error < mErrorPerPixel); in verifySameRowsRS()
DThresholdDifferenceComparer.java52 int error = Math.abs(Color.red(ideal[index]) - Color.red(given[index])); in verifySame() local
53 error += Math.abs(Color.blue(ideal[index]) - Color.blue(given[index])); in verifySame()
54 error += Math.abs(Color.green(ideal[index]) - Color.green(given[index])); in verifySame()
55 if (error > mThreshold) { in verifySame()
/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()
Dattach_shader_four.cpp36 GLint error = glGetError(); in attachShaderFour() local
37 Data data = {error, count, -1}; in attachShaderFour()
Dattach_shader_seven.cpp34 GLint error = glGetError(); in attachShaderSeven() local
35 Data data = {error, -9 , -1}; in attachShaderSeven()
Dattach_shader_eleven.cpp41 GLint error = glGetError(); in attachShaderEleven() local
42 Data data = {error, count, -1}; in attachShaderEleven()
Dattach_shader_ten.cpp40 GLint error = glGetError(); in attachShaderTen() local
41 Data data = {error, count, -1}; in attachShaderTen()
Dattach_shader_five.cpp40 GLint error = glGetError(); in attachShaderFive() local
41 Data data = {error, count, -1}; in attachShaderFive()
/cts/tests/tests/view/src/android/view/cts/
DVelocityTrackerTest.java175 estimatedVx, error(mVx, estimatedVx) * 100.0f, in addMovement()
176 estimatedVy, error(mVy, estimatedVy) * 100.0f)); in addMovement()
184 float errorVx = error(mVx, estimatedVx); in assertVelocity()
185 float errorVy = error(mVy, estimatedVy); in assertVelocity()
195 private static float error(float expected, float actual) { in error() method in VelocityTrackerTest
/cts/common/host-side/manifest-generator/src/com/android/compatibility/common/generator/
DManifestGenerator.java60 error("Missing package name"); in main()
62 error("Missing instrumentation name"); in main()
64 error("No activities"); in main()
66 error("Missing output file"); in main()
120 private static void error(String message) { in error() method in ManifestGenerator
/cts/suite/cts/deviceTests/browserbench/assets/octane/
Drun.js51 function PrintError(name, error) { argument
52 PrintResult(name, error);

12345