Home
last modified time | relevance | path

Searched refs:ret (Results 1 – 25 of 48) sorted by relevance

12

/cts/tests/tests/graphics/src/android/graphics/cts/
DColorMatrixTest.java64 float[] ret = mColorMatrix.getArray(); in testReset() local
65 preCompare(ret); in testReset()
68 ret = mColorMatrix.getArray(); in testReset()
69 assertEquals(20, ret.length); in testReset()
73 assertEquals(1.0f, ret[i]); in testReset()
77 assertEquals(0.0f, ret[i]); in testReset()
82 float[] ret = mColorMatrix.getArray(); in testSet1() local
83 preCompare(ret); in testSet1()
94 ret = mColorMatrix.getArray(); in testSet1()
95 assertEquals(20, ret.length); in testSet1()
[all …]
DBitmapTest.java184 Bitmap ret = Bitmap.createBitmap(bitmap); in testCreateBitmap1() local
185 assertNotNull(ret); in testCreateBitmap1()
186 assertEquals(10, ret.getWidth()); in testCreateBitmap1()
187 assertEquals(10, ret.getHeight()); in testCreateBitmap1()
188 assertEquals(Config.RGB_565, ret.getConfig()); in testCreateBitmap1()
201 Bitmap ret = Bitmap.createBitmap(mBitmap, 0, 0, 100, 100); in testCreateBitmap2() local
202 assertNotNull(ret); in testCreateBitmap2()
203 assertTrue(mBitmap.equals(ret)); in testCreateBitmap2()
207 ret = Bitmap.createBitmap(mBitmap, 10, 10, 50, 50); in testCreateBitmap2()
208 assertNotNull(ret); in testCreateBitmap2()
[all …]
/cts/tests/tests/os/jni/seccomp-tests/tests/
Dseccomp_bpf_tests.c93 long ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_STRICT, NULL, NULL, NULL); in TEST() local
94 ASSERT_EQ(0, ret) { in TEST()
101 long ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_STRICT, NULL, NULL, NULL); in TEST_SIGNAL() local
102 ASSERT_EQ(0, ret) { in TEST_SIGNAL()
113 long ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); in TEST() local
114 EXPECT_EQ(0, ret) { in TEST()
121 long ret = prctl(PR_SET_NO_NEW_PRIVS, 1, NULL, 0, 0); in TEST() local
122 ASSERT_EQ(0, ret) { in TEST()
125 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, NULL, NULL, NULL); in TEST()
126 EXPECT_EQ(-1, ret); in TEST()
[all …]
Dresumption.c179 int ret; in TEST_F() local
189 ret = sigaction(SIGSYS, &act, NULL); in TEST_F()
190 ASSERT_EQ(0, ret) { in TEST_F()
193 ret = sigprocmask(SIG_UNBLOCK, &mask, NULL); in TEST_F()
194 ASSERT_EQ(0, ret) { in TEST_F()
201 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); in TEST_F()
202 ASSERT_EQ(0, ret); in TEST_F()
203 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->prog); in TEST_F()
204 ASSERT_EQ(0, ret); in TEST_F()
207 ret = syscall(__NR_getpid); in TEST_F()
[all …]
Dsigsegv.c152 int ret; in TEST_F_SIGNAL() local
161 ret = sigaction(SIGSYS, &act, NULL); in TEST_F_SIGNAL()
162 ASSERT_EQ(0, ret) { in TEST_F_SIGNAL()
165 ret = sigprocmask(SIG_UNBLOCK, &mask, NULL); in TEST_F_SIGNAL()
166 ASSERT_EQ(0, ret) { in TEST_F_SIGNAL()
170 ret = prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); in TEST_F_SIGNAL()
171 ASSERT_EQ(0, ret); in TEST_F_SIGNAL()
172 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->prog); in TEST_F_SIGNAL()
173 ASSERT_EQ(0, ret); in TEST_F_SIGNAL()
176 ret = syscall(__NR_getpid); in TEST_F_SIGNAL()
/cts/apps/cts-usb-accessory/
Dcts-usb-accessory.c36 int ret = 0; in message_thread() local
40 while (sDevice && ret >= 0) { in message_thread()
42 ret = usb_device_bulk_transfer(sDevice, endpoints[0], buffer, sizeof(buffer), 1000); in message_thread()
43 if (ret < 0 && errno == ETIMEDOUT) { in message_thread()
44 ret = 0; in message_thread()
46 if (ret > 0) { in message_thread()
48 fwrite(buffer, 1, ret, stdout); in message_thread()
71 int ret = usb_device_control_transfer(device, USB_DIR_OUT | USB_TYPE_VENDOR, in send_string() local
82 int ret; in usb_device_added() local
145 ret = usb_device_control_transfer(device, USB_DIR_IN | USB_TYPE_VENDOR, in usb_device_added()
[all …]
/cts/tests/tests/os/src/android/os/cts/
DBundleTest.java268 CharSequence[] ret = mBundle.getCharSequenceArray(KEY); in testGetCharSequenceArray() local
269 assertEquals(4, ret.length); in testGetCharSequenceArray()
270 assertEquals("one", ret[0]); in testGetCharSequenceArray()
271 assertEquals("two", ret[1]); in testGetCharSequenceArray()
272 assertEquals("three", ret[2]); in testGetCharSequenceArray()
273 assertSpannableEquals(mSpannable, ret[3]); in testGetCharSequenceArray()
275 ret = mBundle.getCharSequenceArray(KEY); in testGetCharSequenceArray()
276 assertEquals(4, ret.length); in testGetCharSequenceArray()
277 assertEquals("one", ret[0]); in testGetCharSequenceArray()
278 assertEquals("two", ret[1]); in testGetCharSequenceArray()
[all …]
/cts/tests/tests/content/src/android/content/res/cts/
DAssetManager_AssetInputStreamTest.java82 int ret = mAssetInputStream.read(data); in testReadMethods() local
83 assertEquals(dataLength, ret); in testReadMethods()
97 ret = mAssetInputStream.read(data, offset, dataLength); in testReadMethods()
98 assertEquals(dataLength, ret); in testReadMethods()
99 for (int i = offset; i < ret; i++) { in testReadMethods()
104 ret = mAssetInputStream.read(data, offset, dataLength); in testReadMethods()
105 assertEquals(dataLength, ret); in testReadMethods()
106 for (int i = offset; i < ret; i++) { in testReadMethods()
110 ret = mAssetInputStream.read(data, offset, len); in testReadMethods()
111 assertEquals(len - dataLength, ret); in testReadMethods()
[all …]
/cts/apps/CameraITS/tests/scene3/
Dtest_reprocess_edge_enhancement.py69 ret = {}
70 ret["edge_mode"] = cap["metadata"]["android.edge.mode"]
71 ret["sharpness"] = its.image.compute_image_sharpness(tile)
73 return ret
122 ret = test_edge_mode(cam, edge_mode, s, e, fd, out_surface)
123 edge_mode_reported_regular.append(ret["edge_mode"])
124 sharpness_regular.append(ret["sharpness"])
145 ret = test_edge_mode(cam, edge_mode, s, e, fd, out_surface,
147 edge_mode_reported.append(ret["edge_mode"])
148 sharpnesses.append(ret["sharpness"])
/cts/tests/tests/os/jni/
Dandroid_os_cts_TaggedPointer.cpp42 jboolean ret = true; in android_os_cts_TaggedPointer_hasTaggedPointer() local
55 ret = false; in android_os_cts_TaggedPointer_hasTaggedPointer()
60 ret = false; in android_os_cts_TaggedPointer_hasTaggedPointer()
65 ret = false; in android_os_cts_TaggedPointer_hasTaggedPointer()
71 return ret; in android_os_cts_TaggedPointer_hasTaggedPointer()
Dandroid_os_cts_HardwareName.cpp24 int ret; in android_os_cts_HardwareName_getName() local
26 ret = property_get("ro.boot.hardware", name, NULL); in android_os_cts_HardwareName_getName()
27 if (ret <= 0) { in android_os_cts_HardwareName_getName()
Dandroid_os_cts_CpuInstructions.cpp41 jboolean ret = true; in test_instruction() local
48 ret = false; in test_instruction()
53 ret = false; in test_instruction()
62 return ret; in test_instruction()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DRsUnpackColor8888Test.java65 Float4 ret = new Float4(0.003921569f, 0.003921569f, 0.003921569f, 0.003921569f); in rs_UnpackColor8888() local
66 ret.x *= (c[0] & 0xff); in rs_UnpackColor8888()
67 ret.y *= (c[1] & 0xff); in rs_UnpackColor8888()
68 ret.z *= (c[2] & 0xff); in rs_UnpackColor8888()
69 ret.w *= (c[3] & 0xff); in rs_UnpackColor8888()
70 return ret; in rs_UnpackColor8888()
/cts/tests/tests/security/jni/
Dandroid_security_cts_LinuxRngTest.cpp53 goto ret; in android_security_cts_LinuxRngTest_getCharDeviceMajor()
58 goto ret; in android_security_cts_LinuxRngTest_getCharDeviceMajor()
63 ret: in android_security_cts_LinuxRngTest_getCharDeviceMajor()
79 goto ret; in android_security_cts_LinuxRngTest_getCharDeviceMinor()
84 goto ret; in android_security_cts_LinuxRngTest_getCharDeviceMinor()
89 ret: in android_security_cts_LinuxRngTest_getCharDeviceMinor()
Dandroid_security_cts_CharDeviceTest.cpp72 jboolean ret = true; in android_security_cts_CharDeviceTest_doExynosReadTest() local
96 ret = false; in android_security_cts_CharDeviceTest_doExynosReadTest()
105 return ret; in android_security_cts_CharDeviceTest_doExynosReadTest()
Dandroid_security_cts_NativeCodeTest.cpp192 int ret; in android_security_cts_NativeCodeTest_doFutexTest() local
198 ret = futex_syscall(&futex, FUTEX_CMP_REQUEUE_PI, 1, NULL, &futex, 0); in android_security_cts_NativeCodeTest_doFutexTest()
199 return (ret == -1 && errno == EINVAL); in android_security_cts_NativeCodeTest_doFutexTest()
Dandroid_security_cts_SELinuxTest.cpp92 int ret = getfilecon(path.c_str(), &tmp); in getFileContext() local
96 if (ret != -1) { in getFileContext()
/cts/tests/tests/hardware/src/android/hardware/multiprocess/camera/cts/
DTestConstants.java68 String[] ret = new String[err.length]; in convertToStringArray()
70 ret[i] = errToStr(err[i]); in convertToStringArray()
72 return ret; in convertToStringArray()
/cts/tests/tests/media/src/android/media/cts/
DAudioRecordTest.java564 int ret = record.read(shortData, 0, amount); in testSynchronizedRecord() local
565 assertEquals(TEST_NAME, amount, ret); in testSynchronizedRecord()
566 if (samplesRead == 0 && ret > 0) { in testSynchronizedRecord()
569 samplesRead += ret; in testSynchronizedRecord()
751 int ret = blocking ? record.read(byteBuffer, amount) : in doTest() local
757 assertEquals(amount, ret); in doTest()
759 assertTrue("0 <= " + ret + " <= " + amount, in doTest()
760 0 <= ret && ret <= amount); in doTest()
765 if (samplesRead == 0 && ret > 0) { in doTest()
768 samplesRead += ret / bytesPerSample; in doTest()
[all …]
DNativeDecoderTest.java175 int [] ret = new int[foo.size()]; in getSampleSizes() local
176 for (int i = 0; i < ret.length; i++) { in getSampleSizes()
177 ret[i] = foo.get(i); in getSampleSizes()
179 return ret; in getSampleSizes()
381 long ret = b * 65536 + a; in adler32() local
382 Log.i("@@@", "adler " + input.length + "/" + ret); in adler32()
383 return ret; in adler32()
413 boolean ret = testPlaybackNative(mActivity.getSurfaceHolder().getSurface(), in testVideoPlayback()
415 assertTrue("native playback error", ret); in testVideoPlayback()
500 boolean ret = testPsshNative( in testPssh()
[all …]
/cts/suite/cts/deviceTests/browserbench/assets/octane/js/
Djquery.js86 var match, elem, ret, doc;
130 ret = rsingleTag.exec( selector );
132 if ( ret ) {
134 selector = [ document.createElement( ret[1] ) ];
138 selector = [ doc.createElement( ret[1] ) ];
142 ret = jQuery.buildFragment( [ match[1] ], [ doc ] );
143 selector = ( ret.cacheable ? jQuery.clone(ret.fragment) : ret.fragment ).childNodes;
229 var ret = this.constructor();
232 push.apply( ret, elems );
235 jQuery.merge( ret, elems );
[all …]
/cts/tests/tests/media/libmediandkjni/
Dnative-media-jni.cpp135 jintArray ret = env->NewIntArray(numsamples); in testExtractor() local
137 jint *dst = env->GetIntArrayElements(ret, &isCopy); in testExtractor()
141 env->ReleaseIntArrayElements(ret, dst, 0); in testExtractor()
145 return ret; in testExtractor()
194 int ret = b * 65536 + a; in adler32() local
195 ALOGV("adler %d/%d", len, ret); in adler32()
196 return ret; in adler32()
343 jintArray ret = env->NewIntArray(numsamples); in Java_android_media_cts_NativeDecoderTest_getDecodedDataNative() local
345 jint *org = env->GetIntArrayElements(ret, &isCopy); in Java_android_media_cts_NativeDecoderTest_getDecodedDataNative()
355 env->ReleaseIntArrayElements(ret, org, 0); in Java_android_media_cts_NativeDecoderTest_getDecodedDataNative()
[all …]
/cts/apps/CtsVerifier/jni/verifier/
Dcom_android_cts_verifier_os_FileUtils.cpp44 jboolean ret = false; in com_android_cts_verifier_os_FileUtils_getFileStatus() local
50 ret = true; in com_android_cts_verifier_os_FileUtils_getFileStatus()
74 return ret; in com_android_cts_verifier_os_FileUtils_getFileStatus()
/cts/libs/deviceutil/jni/
Dandroid_cts_FileUtils.cpp52 jboolean ret = false; in android_cts_FileUtils_getFileStatus() local
58 ret = true; in android_cts_FileUtils_getFileStatus()
77 return ret; in android_cts_FileUtils_getFileStatus()
/cts/common/host-side/xml-plan-generator/tests/src/com/android/compatibility/common/xmlgenerator/
DXmlPlanGeneratorTest.java114 int ret = p.waitFor(); in runGenerator() local
115 if (ret == 0) { in runGenerator()

12