Home
last modified time | relevance | path

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

1234567

/cts/tests/tests/graphics/jni/
DCameraTestHelpers.cpp43 int ret = ACameraManager_getCameraIdList(mCameraManager, &mCameraIdList); in initCamera() local
44 if (ret != AMEDIA_OK) { in initCamera()
45 ALOGE("Failed to get cameraIdList: ret=%d", ret); in initCamera()
46 return ret; in initCamera()
61 ret = ACameraManager_openCamera(mCameraManager, mCameraId, &mDeviceCb, in initCamera()
63 if (ret != AMEDIA_OK || mDevice == nullptr) { in initCamera()
64 ALOGE("Failed to open camera, ret=%d, mDevice=%p.", ret, mDevice); in initCamera()
68 ret = ACameraManager_getCameraCharacteristics(mCameraManager, mCameraId, in initCamera()
70 if (ret != ACAMERA_OK || mCameraMetadata == nullptr) { in initCamera()
72 mCameraId, ret, mCameraMetadata); in initCamera()
[all …]
DVulkanProfiles.cpp193 bool ret = true; in __anon3a2b8bf20202() local
197 ret = ret && (s->features.depthBiasClamp == VK_TRUE); in __anon3a2b8bf20202()
198 ret = ret && (s->features.fragmentStoresAndAtomics == VK_TRUE); in __anon3a2b8bf20202()
199 ret = ret && (s->features.fullDrawIndexUint32 == VK_TRUE); in __anon3a2b8bf20202()
200 ret = ret && (s->features.imageCubeArray == VK_TRUE); in __anon3a2b8bf20202()
201 ret = ret && (s->features.independentBlend == VK_TRUE); in __anon3a2b8bf20202()
202 ret = ret && (s->features.robustBufferAccess == VK_TRUE); in __anon3a2b8bf20202()
203 ret = ret && (s->features.sampleRateShading == VK_TRUE); in __anon3a2b8bf20202()
204 ret = ret && (s->features.shaderSampledImageArrayDynamicIndexing == VK_TRUE); in __anon3a2b8bf20202()
205 ret = ret && (s->features.shaderStorageImageArrayDynamicIndexing == VK_TRUE); in __anon3a2b8bf20202()
[all …]
DImageReaderTestHelpers.cpp49 int ret = AImageReader_newWithUsage(mWidth, mHeight, mFormat, mUsage, in initImageReader() local
51 if (ret != AMEDIA_OK || mImgReader == nullptr) { in initImageReader()
52 ALOGE("Failed to create new AImageReader, ret=%d, mImgReader=%p", ret, in initImageReader()
57 ret = AImageReader_setImageListener(mImgReader, &mReaderAvailableCb); in initImageReader()
58 if (ret != AMEDIA_OK) { in initImageReader()
59 ALOGE("Failed to set image available listener, ret=%d.", ret); in initImageReader()
60 return ret; in initImageReader()
63 ret = AImageReader_getWindow(mImgReader, &mImgReaderAnw); in initImageReader()
64 if (ret != AMEDIA_OK || mImgReaderAnw == nullptr) { in initImageReader()
67 ret, mImgReaderAnw); in initImageReader()
[all …]
Dandroid_graphics_cts_CameraGpuCtsActivity.cpp114 int ret = mImageReader.initImageReader(); in initRenderer() local
115 if (ret < 0) { in initRenderer()
116 ALOGE("Failed to initialize image reader: %d", ret); in initRenderer()
117 return ret; in initRenderer()
120 ret = mCamera.initCamera(mImageReader.getNativeWindow()); in initRenderer()
121 if (ret < 0) { in initRenderer()
122 ALOGE("Failed to initialize camera: %d", ret); in initRenderer()
123 return ret; in initRenderer()
190 int ret = mCamera.takePicture(); in drawFrame() local
191 if (ret < 0) { in drawFrame()
[all …]
Dandroid_graphics_cts_VulkanPreTransformCtsActivity.cpp52 VkTestResult ret = deviceInfo.init(env, jSurface); in createNativeTest() local
53 if (ret == VK_TEST_PHYSICAL_DEVICE_NOT_EXISTED) { in createNativeTest()
57 ASSERT(ret == VK_TEST_SUCCESS, "Failed to initialize Vulkan device"); in createNativeTest()
68 ret = renderer.drawFrame(); in createNativeTest()
70 ASSERT(ret == VK_TEST_SUCCESS, "Failed to draw frame(%u) ret(%d)", i, (int)ret); in createNativeTest()
72 ASSERT(ret == VK_TEST_SUCCESS_SUBOPTIMAL, "Failed to draw suboptimal frame(%u) ret(%d)", in createNativeTest()
73 i, (int)ret); in createNativeTest()
/cts/tests/tests/graphics/src/android/graphics/cts/
DColorMatrixTest.java65 float[] ret = mColorMatrix.getArray(); in testReset() local
66 preCompare(ret); in testReset()
69 ret = mColorMatrix.getArray(); in testReset()
70 assertEquals(20, ret.length); in testReset()
74 assertEquals(1.0f, ret[i], 0.0f); in testReset()
78 assertEquals(0.0f, ret[i], 0.0f); in testReset()
84 float[] ret = mColorMatrix.getArray(); in testSet1() local
85 preCompare(ret); in testSet1()
95 ret = mColorMatrix.getArray(); in testSet1()
96 assertArrayEquals(fArray, ret, 0.0f); in testSet1()
[all …]
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2014-3145/
Dpoc.c66 ssize_t ret; in send_receive_packet() local
68 ret = send(s[1], pkt, len, 0); in send_receive_packet()
69 if (ret != len) { in send_receive_packet()
73 ret = recv(s[0], tmp, len, MSG_DONTWAIT); in send_receive_packet()
74 if (ret < 0 && errno == EAGAIN) in send_receive_packet()
93 int s[2], ret; in main() local
95 ret = socketpair(AF_UNIX, SOCK_DGRAM, 0, s); in main()
96 if (ret) { in main()
100 ret = setsockopt(s[0], SOL_SOCKET, SO_ATTACH_FILTER, in main()
102 if (ret < 0) { in main()
[all …]
/cts/tests/tests/media/misc/jni/
DAImageReaderCts.cpp75 int ret; in initCamera() local
83 ret = ACameraManager_getCameraIdList(mCameraManager, &mCameraIdList); in initCamera()
84 if (ret != AMEDIA_OK) { in initCamera()
85 ALOGE("Failed to get cameraIdList: ret=%d", ret); in initCamera()
86 return ret; in initCamera()
100 ret = ACameraManager_openCamera(mCameraManager, mCameraId, &mDeviceCb, &mDevice); in initCamera()
101 if (ret != AMEDIA_OK || mDevice == nullptr) { in initCamera()
102 ALOGE("Failed to open camera, ret=%d, mDevice=%p.", ret, mDevice); in initCamera()
106 ret = ACameraManager_getCameraCharacteristics(mCameraManager, mCameraId, &mCameraMetadata); in initCamera()
107 if (ret != ACAMERA_OK || mCameraMetadata == nullptr) { in initCamera()
[all …]
/cts/tests/camera/libctscamera2jni/
Dnative-camera-jni.cpp234 camera_status_t ret = ACameraCaptureSession_getDevice(session, &device); in onReady() local
236 if (ret != ACAMERA_OK && !thiz->mIsClosed) { in onReady()
277 camera_status_t ret = ACameraCaptureSession_getDevice(session, &device); in onActive() local
278 if (ret != ACAMERA_OK) { in onActive()
289 bool ret = (mPendingPreparedCbs.size() == 0); in gotAllPreparedCallbacksWithErrorLog() local
290 if (!ret) { in gotAllPreparedCallbacksWithErrorLog()
296 return ret; in gotAllPreparedCallbacksWithErrorLog()
400 auto ret = ACameraMetadata_getConstEntry(result, ACAMERA_SYNC_FRAME_NUMBER, &entry); in onCaptureCompleted() local
401 if (ret != ACAMERA_OK) { in onCaptureCompleted()
408 ret = ACameraMetadata_getConstEntry(copy, ACAMERA_SYNC_FRAME_NUMBER, &entryCopy); in onCaptureCompleted()
[all …]
/cts/tests/tests/os/UffdGc/jni/
Dandroid_os_cts_uffdgc_UserfaultfdTest.cc42 int ret = 0; in userfault_handler_thread() local
48 ret = errno; in userfault_handler_thread()
64 ret = errno; in userfault_handler_thread()
72 ret = -1; in userfault_handler_thread()
77 ret = errno; in userfault_handler_thread()
83 ret = -1; in userfault_handler_thread()
94 ret = errno; in userfault_handler_thread()
100 pthread_exit(reinterpret_cast<void*>(ret)); in userfault_handler_thread()
152 int ret = 0, write_fd = 0; in Java_android_os_cts_uffdgc_UserfaultfdTest_performKernelSpaceUffd() local
159 ret = errno; in Java_android_os_cts_uffdgc_UserfaultfdTest_performKernelSpaceUffd()
[all …]
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2020-11173/
Dpoc.c33 int ret = -1; in set_affinity() local
37 return ret; in set_affinity()
51 int ret = -1; in ion_alloc() local
56 return ret; in ion_alloc()
62 ret = ioctl(ion_fd, ION_IOC_ALLOC, &alloc_data); in ion_alloc()
63 if (ret < 0) { in ion_alloc()
65 return ret; in ion_alloc()
110 int ret = -1; in trigger() local
120 return ret; in trigger()
123 ret = ioctl(dev_fd, FASTRPC_IOCTL_GETINFO, &cid); in trigger()
[all …]
/cts/tests/tests/libthermalndk/jni/
DNativeThermalTest.cpp115 int ret = AThermal_registerThermalStatusListener(ctx.mThermalMgr, onStatusChange, &ctx); in testRegisterThermalStatusListener() local
116 if (ret != 0) { in testRegisterThermalStatusListener()
118 strerror(ret)); in testRegisterThermalStatusListener()
153 ret = AThermal_unregisterThermalStatusListener(ctx.mThermalMgr, onStatusChange, &ctx); in testRegisterThermalStatusListener()
154 if (ret != 0) { in testRegisterThermalStatusListener()
156 strerror(ret)); in testRegisterThermalStatusListener()
176 int ret = AThermal_registerThermalStatusListener(ctx.mThermalMgr, nullptr, &ctx); in testThermalStatusRegisterNullListener() local
177 if (ret != EINVAL) { in testThermalStatusRegisterNullListener()
182 ret = AThermal_registerThermalStatusListener(ctx.mThermalMgr, onStatusChange, in testThermalStatusRegisterNullListener()
184 if (ret != 0) { in testThermalStatusRegisterNullListener()
[all …]
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-8426/
Dpoc.c52 int ret = 0; in set_affinity() local
56 ret = sched_setaffinity(0, sizeof(cpu_set_t), &mask); in set_affinity()
57 if(ret == -1){ in set_affinity()
60 return ret; in set_affinity()
84 int i, try_time = TRY_TIMES, ret; in main() local
100 ret = ioctl(fd, NVHOST_IOCTL_CHANNEL_OPEN, &o_args); in main()
101 if(ret == -1) { in main()
115 ret = pthread_create(close_thread_id + i, NULL, close_thread, NULL); in main()
116 if(ret){ in main()
127 ret = ioctl(fd, NVHOST_IOCTL_CHANNEL_OPEN, &o_args); in main()
[all …]
/cts/tests/tests/carrierapi/src/android/carrierapi/cts/
DIccUtils.java31 StringBuilder ret = new StringBuilder(2 * bytes.length); in bytesToHexString() local
35 ret.append(HEX_CHARS[b]); in bytesToHexString()
37 ret.append(HEX_CHARS[b]); in bytesToHexString()
39 return ret.toString(); in bytesToHexString()
50 byte[] ret; in hexStringToBytes()
56 ret = new byte[sz / 2]; in hexStringToBytes()
59 ret[i / 2] = (byte) ((hexCharToInt(s.charAt(i)) << 4) | hexCharToInt(s.charAt(i + 1))); in hexStringToBytes()
62 return ret; in hexStringToBytes()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-8425/
Dpoc.c52 int ret = 0; in set_affinity() local
56 ret = sched_setaffinity(0, sizeof(cpu_set_t), &mask); in set_affinity()
57 if(ret == -1){ in set_affinity()
60 return ret; in set_affinity()
84 int i, try_time = TRY_TIMES, ret; in main() local
100 ret = ioctl(fd, NVHOST_IOCTL_CHANNEL_OPEN, &o_args); in main()
101 if(ret == -1) { in main()
115 ret = pthread_create(close_thread_id + i, NULL, close_thread, NULL); in main()
116 if(ret){ in main()
125 ret = ioctl(fd, NVHOST_IOCTL_CHANNEL_OPEN, &o_args); in main()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-6733/
Dpoc.c85 int ret = 0; in set_affinity() local
89 ret = sched_setaffinity(0, sizeof(cpu_set_t), &mask); in set_affinity()
90 if(ret == -1){ in set_affinity()
93 return ret; in set_affinity()
103 int ret = 1; in child() local
106 while(ret){ in child()
107 ret = ioctl(fd, DRM_IOCTL_TEGRA_CLOSE_CHANNEL, &close_c); in child()
114 int i, try_time = THREAD_NUM, ret; in main() local
136 ret = ioctl(fd, DRM_IOCTL_TEGRA_OPEN_CHANNEL, &open_c); in main()
139 ret = ioctl(fd, DRM_IOCTL_TEGRA_CLOSE_CHANNEL, &close_c); in main()
[all …]
/cts/hostsidetests/securitybulletin/utils/mali_gpu_utils/src/
Dmali_gpu_utils.c23 int32_t ret = 0; in initialize_mali_gpu() local
28 ret = ioctl(mali_fd, KBASE_IOCTL_VERSION_CHECK_JM, &vc); in initialize_mali_gpu()
29 if (ret < 0) { in initialize_mali_gpu()
30 ret = ioctl(mali_fd, KBASE_IOCTL_VERSION_CHECK_CSF, &vc); in initialize_mali_gpu()
31 if (ret < 0) { in initialize_mali_gpu()
40 ret = ioctl(mali_fd, KBASE_IOCTL_SET_FLAGS, &set_flags); in initialize_mali_gpu()
41 if (ret < 0) { in initialize_mali_gpu()
72 ret = ioctl(mali_fd, KBASE_IOCTL_GET_DDK_VERSION, &get_version); in initialize_mali_gpu()
73 if (ret < 0) { in initialize_mali_gpu()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-6732/
Dpoc.c86 int ret = 0; in set_affinity() local
90 ret = sched_setaffinity(0, sizeof(cpu_set_t), &mask); in set_affinity()
91 if(ret == -1){ in set_affinity()
93 return ret; in set_affinity()
103 int ret = 1; in child() local
106 while(ret){ in child()
107 ret = ioctl(fd, DRM_IOCTL_TEGRA_CLOSE_CHANNEL, &close_c); in child()
114 int i, try_time = TRY_TIMES, ret; in main() local
135 ret = ioctl(fd, DRM_IOCTL_TEGRA_OPEN_CHANNEL, &open_c); in main()
136 if(ret){ in main()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-6734/
Dpoc.c91 int ret = 0; in set_affinity() local
95 ret = sched_setaffinity(0, sizeof(cpu_set_t), &mask); in set_affinity()
96 if(ret == -1){ in set_affinity()
98 return ret; in set_affinity()
117 int i, try_time = TRY_TIMES, ret; in main() local
133 ret = pthread_create(keepon_thread_id + i, NULL, keepon_thread, NULL); in main()
134 if(ret){ in main()
141 ret = ioctl(fd, DRM_IOCTL_TEGRA_OPEN_CHANNEL, &open_c); in main()
142 if(ret == 0){ in main()
149 ret = ioctl(fd, DRM_IOCTL_TEGRA_CLOSE_CHANNEL, &close_c); in main()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DBundleUtils.java32 final Bundle ret = new Bundle(); in makeBundle() local
39 ret.putString(key, null); in makeBundle()
42 ret.putBoolean(key, (Boolean) value); in makeBundle()
45 ret.putInt(key, (Integer) value); in makeBundle()
48 ret.putString(key, (String) value); in makeBundle()
51 ret.putBundle(key, (Bundle) value); in makeBundle()
57 return ret; in makeBundle()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-8482/
Dpoc.c71 int ret = 0; in set_affinity() local
75 ret = sched_setaffinity(0, sizeof(cpu_set_t), &mask); in set_affinity()
76 if(ret == -1){ in set_affinity()
79 return ret; in set_affinity()
123 int ret; in close_thread() local
127 ret = ioctl(vic, NVHOST_IOCTL_CHANNEL_SET_ERROR_NOTIFIER, &err1); in close_thread()
135 int i, j, ret; in main() local
172 ret = ioctl(nvmap, NVMAP_IOC_CREATE, &args); in main()
173 if(ret) in main()
182 ret = ioctl(nvmap, NVMAP_IOC_ALLOC, &alloc); in main()
[all …]
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-6730/
Dpoc.c94 int ret = 0; in set_affinity() local
98 ret = sched_setaffinity(0, sizeof(cpu_set_t), &mask); in set_affinity()
99 if(ret == -1){ in set_affinity()
101 return ret; in set_affinity()
120 int i, try_time = TRY_TIMES, ret; in main() local
136 ret = pthread_create(clk_thread_id + i, NULL, clk_thread, NULL); in main()
137 if(ret){ in main()
144 ret = ioctl(fd, DRM_IOCTL_TEGRA_OPEN_CHANNEL, &open_c); in main()
145 if(ret == 0){ in main()
152 ret = ioctl(fd, DRM_IOCTL_TEGRA_CLOSE_CHANNEL, &close_c); in main()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-6731/
Dpoc.c94 int ret = 0; in set_affinity() local
98 ret = sched_setaffinity(0, sizeof(cpu_set_t), &mask); in set_affinity()
99 if(ret == -1){ in set_affinity()
101 return ret; in set_affinity()
120 int i, try_time = TRY_TIMES, ret; in main() local
136 ret = pthread_create(clk_thread_id + i, NULL, clk_thread, NULL); in main()
137 if(ret){ in main()
144 ret = ioctl(fd, DRM_IOCTL_TEGRA_OPEN_CHANNEL, &open_c); in main()
145 if(ret == 0){ in main()
152 ret = ioctl(fd, DRM_IOCTL_TEGRA_CLOSE_CHANNEL, &close_c); in main()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-6735/
Dpoc.c92 int ret = 0; in set_affinity() local
96 ret = sched_setaffinity(0, sizeof(cpu_set_t), &mask); in set_affinity()
97 return ret; in set_affinity()
116 int i, try_time = TRY_TIMES, ret; in main() local
132 ret = pthread_create(keepon_thread_id + i, NULL, keepon_thread, NULL); in main()
133 if(ret){ in main()
140 ret = ioctl(fd, DRM_IOCTL_TEGRA_OPEN_CHANNEL, &open_c); in main()
141 if(ret == 0){ in main()
148 ret = ioctl(fd, DRM_IOCTL_TEGRA_CLOSE_CHANNEL, &close_c); in main()
/cts/tests/tests/selinux/common/jni/
Dandroid_security_SELinuxTargetSdkTest.cpp58 int ret = send(sock, &request, sizeof(request), 0); in checkNetlinkRouteGetlink() local
59 if (ret < 0) { in checkNetlinkRouteGetlink()
95 int ret = send(sock, &request, sizeof(request), 0); in checkNetlinkRouteGetneigh() local
96 if (ret < 0 && errno == 13) in checkNetlinkRouteGetneigh()
102 ret = send(sock, &request, sizeof(request), 0); in checkNetlinkRouteGetneigh()
103 if (ret < 0 && errno == 13) in checkNetlinkRouteGetneigh()
130 int ret = bind(sock,(struct sockaddr *)&addr,sizeof(addr)); in checkNetlinkRouteBind() local
131 if (ret < 0) { in checkNetlinkRouteBind()
155 int ret = getfilecon(path.c_str(), &tmp); in getFileContext() local
159 if (ret != -1) { in getFileContext()

1234567