Home
last modified time | relevance | path

Searched refs:err (Results 1 – 25 of 94) sorted by relevance

1234

/cts/tests/tests/graphics/jni/
Dandroid_graphics_cts_BitmapTest.cpp37 int err = 0; in validateBitmapInfo() local
38 err = AndroidBitmap_getInfo(env, jbitmap, &info); in validateBitmapInfo()
39 ASSERT_EQ(ANDROID_BITMAP_RESULT_SUCCESS, err); in validateBitmapInfo()
49 int err = AndroidBitmap_lockPixels(env, jbitmap, &pixels); in validateNdkAccessFails() local
50 ASSERT_EQ(err, ANDROID_BITMAP_RESULT_JNI_EXCEPTION); in validateNdkAccessFails()
56 err = AndroidBitmap_getHardwareBuffer(env, jbitmap, &buffer); in validateNdkAccessFails()
57 ASSERT_EQ(err, ANDROID_BITMAP_RESULT_JNI_EXCEPTION); in validateNdkAccessFails()
87 int err = 0; in getFormat() local
88 err = AndroidBitmap_getInfo(env, jbitmap, &info); in getFormat()
89 if (err != ANDROID_BITMAP_RESULT_SUCCESS) { in getFormat()
[all …]
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-3746/
Dpoc.cpp63 status_t err = mOmx->allocateNode(name, observerDec, &mOMXNode); in fuzzIOMXQcomVpx() local
64 if (err != OK) { in fuzzIOMXQcomVpx()
71 err = mOMXNode->sendCommand(OMX_CommandStateSet, OMX_StateIdle); in fuzzIOMXQcomVpx()
72 if (err != OK) { in fuzzIOMXQcomVpx()
73 ALOGE("sendCommand is failed in OMX_StateIdle, err: %d", err); in fuzzIOMXQcomVpx()
84 ALOGE("memory allocate failed for port index 0, err: %d", err); in fuzzIOMXQcomVpx()
97 err = mOMXNode->useBuffer(0, omxInBuf, &inBufferId); in fuzzIOMXQcomVpx()
98 ALOGI("useBuffer, port index 0, err: %d", err); in fuzzIOMXQcomVpx()
110 ALOGE("memory allocate failed for port index 1, err: %d", err); in fuzzIOMXQcomVpx()
116 err = mOMXNode->useBuffer(1, omxOutBuf, &outBufferId); in fuzzIOMXQcomVpx()
[all …]
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-3747/
Dpoc.cpp77 status_t err = mOmx->allocateNode(name, observer, &node); in fuzzIOMXQcomEnc() local
78 if (err != OK) { in fuzzIOMXQcomEnc()
83 err = node->sendCommand(OMX_CommandStateSet, 2); in fuzzIOMXQcomEnc()
84 if (err != OK) { in fuzzIOMXQcomEnc()
85 ALOGE("sendCommand is failed in OMX_StateIdle, err: %d", err); in fuzzIOMXQcomEnc()
95 ALOGE("memory allocate failed for port index 0, err: %d", err); in fuzzIOMXQcomEnc()
100 err = node->useBuffer(0, omxInBuf, &inBufferId[i]); in fuzzIOMXQcomEnc()
101 ALOGI("useBuffer, port index 0, err: %d", err); in fuzzIOMXQcomEnc()
109 ALOGE("memory allocate failed for port index 1, err: %d", err); in fuzzIOMXQcomEnc()
114 err = node->useBuffer(1, omxOutBuf, &outBufferId[i]); in fuzzIOMXQcomEnc()
[all …]
/cts/tests/tests/nativehardware/jni/
DAHardwareBufferTest.cpp268 int err = AHardwareBuffer_sendHandleToUnixSocket(pdata->buffer, pdata->fd); in clientFunction() local
269 EXPECT_EQ(NO_ERROR, err); in clientFunction()
285 int err = AHardwareBuffer_sendHandleToUnixSocket((AHardwareBuffer* _Nonnull)NULL, 0); in TEST() local
286 EXPECT_EQ(BAD_VALUE, err); in TEST()
287 err = 0; in TEST()
288 err = AHardwareBuffer_sendHandleToUnixSocket(buffer, 0); in TEST()
289 EXPECT_EQ(BAD_VALUE, err); in TEST()
292 err = AHardwareBuffer_allocate(&desc, &buffer); in TEST()
293 EXPECT_EQ(NO_ERROR, err); in TEST()
296 err = socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0, fds); in TEST()
[all …]
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2020-29661/
Dpoc.cpp57 if (main_task == -1) err(EXIT_FAILURE, "initial fork"); in main()
60 if (waitpid(main_task, &status, 0) != main_task) err(EXIT_FAILURE, "waitpid main_task"); in main()
66 if (prctl(PR_SET_PDEATHSIG, SIGKILL)) err(EXIT_FAILURE, "PR_SET_PDEATHSIG"); in main()
70 if (signal(SIGTTOU, SIG_IGN)) err(EXIT_FAILURE, "signal"); in main()
71 if (setsid() == -1) err(EXIT_FAILURE, "start new session"); in main()
75 if (ptmx == -1) err(EXIT_FAILURE, "open ptmx"); in main()
78 if (tty == -1) err(EXIT_FAILURE, "open tty"); in main()
86 err(EXIT_FAILURE, "fork"); in main()
92 if (prctl(PR_SET_PDEATHSIG, SIGKILL)) err(EXIT_FAILURE, "PR_SET_PDEATHSIG"); in main()
98 err(EXIT_FAILURE, "fork grandchild"); in main()
[all …]
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-2482/
Dpoc.cpp75 status_t err = mOmx->allocateNode(name, observerDec, &node); in fuzzIOMXSetParameterChangeCount() local
76 if (err != OK) { in fuzzIOMXSetParameterChangeCount()
86 ALOGE("memory allocation failed , err: %d", err); in fuzzIOMXSetParameterChangeCount()
96 ALOGE("memory allocation failed , err: %d", err); in fuzzIOMXSetParameterChangeCount()
113 err = node->setParameter(OMX_IndexParamPortDefinition, params, in fuzzIOMXSetParameterChangeCount()
115 ALOGI("setParameter, err: %d", err); in fuzzIOMXSetParameterChangeCount()
116 if (err != OK) { in fuzzIOMXSetParameterChangeCount()
127 err = node->useBuffer(OMX_CORE_INPUT_PORT_INDEX, memory, &bufferId); in fuzzIOMXSetParameterChangeCount()
128 ALOGE("useBuffer, err: %d", err); in fuzzIOMXSetParameterChangeCount()
129 if (err != OK) { in fuzzIOMXSetParameterChangeCount()
[all …]
/cts/tests/camera/src/android/hardware/multiprocess/camera/cts/
DTestConstants.java43 public static String errToStr(int err) { in errToStr() argument
44 switch(err) { in errToStr()
56 return EVENT_CAMERA_UNKNOWN_STR + " " + err; in errToStr()
66 public static String[] convertToStringArray(int[] err) { in convertToStringArray() argument
67 if (err == null) return null; in convertToStringArray()
68 String[] ret = new String[err.length]; in convertToStringArray()
69 for (int i = 0; i < err.length; i++) { in convertToStringArray()
70 ret[i] = errToStr(err[i]); in convertToStringArray()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2020-0420/
Dpoc.cpp24 status_t err; in main() local
34 err = service->transact(3 /*SET_UPDATABLE_DRIVER_PATH,*/, data, &reply, 0); in main()
35 if (err != OK) { in main()
41 err = service->transact(4 /*GET_UPDATABLE_DRIVER_PATH,*/, data1, &reply1, 0); in main()
42 if (err != OK) { in main()
46 err = reply1.readUtf8FromUtf16(&driverPath); in main()
47 if (err != OK) { in main()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2018-9515/
Dpoc.c49 err(1, "chdir"); in chaos_worker()
55 err(1, "mkdir"); in chaos_worker()
57 err(1, "chdir"); in chaos_worker()
59 err(1, "rmdir"); in chaos_worker()
61 err(1, "chdir"); in chaos_worker()
85 err(1, "looper: mkdir"); in main()
87 err(1, "looper: rmdir"); in main()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2019-2011/
Dpoc.cpp23 android::status_t err = android::NO_ERROR; in main() local
27 err = parcel->writeNativeHandleNoDup(nativeHandleSend); in main()
28 if (err != android::NO_ERROR) { in main()
36 err = parcel->readNativeHandleNoDup(&nativeHandleReceive); in main()
37 if (err == android::NO_ERROR) { in main()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2021-0318/
Dpoc.cpp28 status_t err; in poc() local
39 err = service->transact(2 /*CREATE_SENSOR_EVENT_CONNECTION*/, data, &reply, 0); in poc()
40 printf("CREATE_SENSOR_EVENT_CONNECTION err %08x \n", err); in poc()
53 err = binder->transact(2 /*ENABLE_DISABLE*/, data, &reply, 0); in poc()
54 printf("ENABLE_DISABLE transact err %08x \n", err); in poc()
63 err = binder->transact(6 /*DESTROY*/, data, &reply, 0); in poc()
64 printf("DESTROY transact err %08x \n", err); in poc()
75 err = binder->transact(2 /*ENABLE_DISABLE*/, data, &reply, 0); in poc()
81 printf("ENABLE_DISABLE transact err %08x\n", err); in poc()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-13241/
Dpoc.cpp29 int err = omxUtilsGetParameter(portIndex, &def); in allocateHidlPortBuffers() local
30 omxExitOnError(err); in allocateHidlPortBuffers()
48 status_t err; in main() local
65 err = omxUtilsSetParameter(OMX_UTILS_IP_PORT, params); in main()
67 err = omxUtilsGetParameter(OMX_UTILS_IP_PORT, params); in main()
86 err = omxUtilsUseBuffer(OMX_UTILS_IP_PORT, inputBuffers[i].mHidlMemory, in main()
93 err = omxUtilsUseBuffer(OMX_UTILS_OP_PORT, outputBuffers[i].mHidlMemory, in main()
97 err = omxUtilsSendCommand(OMX_CommandStateSet, OMX_StateIdle); in main()
99 err = omxUtilsSendCommand(OMX_CommandStateSet, OMX_StateExecuting); in main()
102 err = omxUtilsEmptyBuffer(inBufferId[i], omxBuf, 0, 0, -1); in main()
[all …]
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2020-0243/
Dpoc.cpp30 int err; in thread_getParameter() local
37 err = params->service->transact(/*GET_PARAMETER_ID*/ 31, data, &reply, 0); in thread_getParameter()
38 if (err == EPIPE) { in thread_getParameter()
47 status_t err; in main() local
63 err = service->transact(/*CREATE_ID*/ 1, data, &reply, 0); in main()
86 err = binder->transact(/*SET_DATA_SOURCE_URL_ID*/ 2, data, &reply, 0); in main()
87 if (err == EPIPE) { in main()
/cts/tests/openglperf2/jni/graphics/
DRenderer.cpp162 GLuint err = glGetError(); in setUp() local
163 if (err != GL_NO_ERROR) { in setUp()
164 __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, "GLError %d", err); in setUp()
192 GLuint err = glGetError(); in setUp() local
193 if (err != GL_NO_ERROR) { in setUp()
194 __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, "GLError %d in setUp", err); in setUp()
217 GLuint err = glGetError(); in tearDown() local
218 if (err != GL_NO_ERROR) { in tearDown()
219 __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, "GLError %d in tearDown", err); in tearDown()
286 GLuint err = glGetError(); in draw() local
[all …]
/cts/hostsidetests/theme/
Dandroid_device.py39 (out, err) = adb_process.communicate(timeout=timeout)
40 return out.decode('utf-8').strip(), err.decode('utf-8').strip()
53 (out, err) = self.run_shell_command("getprop %s" % key)
68 (output, err) = self.run_shell_command("service check %s" % name)
83 (out, err) = self.run_adb_command("install -r -d -g %s" % apk_path)
85 return out, err, "Success" in result
89 (out, err) = self.run_adb_command("uninstall %s" % package)
98 (out, err) = self.run_shell_command("ps")
Dgenerate_images.py108 def print_adb_result(device, out, err): argument
112 if err is not None:
113 print("err:\n" + err)
136 (out, err, success) = device.install_apk(themeApkPath)
139 print_adb_result(device_serial, out, err)
144 (out, err) = device.run_instrumentation_test(
149 (out, err) = device.run_instrumentation_test(
154 print_adb_result(device_serial, out, err)
/cts/tests/tests/media/libmediandkjni/
Dnative-media-jni.cpp242 media_status_t err, in OnErrorCB() argument
245 ALOGV("OnErrorCB: err(%d), actionCode(%d), detail(%s)", err, actionCode, detail); in OnErrorCB()
340 int err = AMediaExtractor_setDataSourceFd(ex, fd, offset, size); in Java_android_media_cts_NativeDecoderTest_getSampleSizesNative() local
341 if (err != 0) { in Java_android_media_cts_NativeDecoderTest_getSampleSizesNative()
342 ALOGE("setDataSource error: %d", err); in Java_android_media_cts_NativeDecoderTest_getSampleSizesNative()
373 int err; in Java_android_media_cts_NativeDecoderTest_getSampleSizesNativePath() local
377 err = src ? AMediaExtractor_setDataSourceCustom(ex, src) : -1; in Java_android_media_cts_NativeDecoderTest_getSampleSizesNativePath()
379 err = AMediaExtractor_setDataSource(ex, tmp); in Java_android_media_cts_NativeDecoderTest_getSampleSizesNativePath()
392 if (err != 0) { in Java_android_media_cts_NativeDecoderTest_getSampleSizesNativePath()
393 ALOGE("setDataSource error: %d", err); in Java_android_media_cts_NativeDecoderTest_getSampleSizesNativePath()
[all …]
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-0479/
Dpoc.cpp78 status_t err; in main() local
105 err = audioFlinger->createEffect(request, &response); in main()
107 if (err == OK) { in main()
115 if (gEffect == NULL || err != NO_ERROR) { in main()
121 &replyData, &err); in main()
123 err = status.transactionError(); in main()
/cts/tests/tests/jni/libjnitest/
Dandroid_jni_cts_LinkerNamespacesTest.cpp92 static bool not_accessible(const std::string& err) { in not_accessible() argument
93 return err.find("dlopen failed: library \"") == 0 && in not_accessible()
94err.find("is not accessible for the namespace \"classloader-namespace\"") != std::string::npos; in not_accessible()
97 static bool not_found(const std::string& err) { in not_found() argument
98 return err.find("dlopen failed: library \"") == 0 && in not_found()
99 err.find("\" not found") != std::string::npos; in not_found()
102 static bool wrong_arch(const std::string& library, const std::string& err) { in wrong_arch() argument
106 return err.find("dlopen failed: \"" + library + "\" has unexpected e_machine: ") == 0; in wrong_arch()
213 std::string err = load_library(env, clazz, path, test_system_load_library); in check_lib() local
214 bool loaded = err.empty(); in check_lib()
[all …]
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-13253/
Dpoc.cpp79 hDestination, [&](Status_ err, uint32_t, hidl_string msg) { in decrypt() argument
80 if (err != static_cast<Status_>(V1_0::Status::BAD_VALUE) && in decrypt()
81 err != static_cast<Status_>(V1_0::Status::ERROR_DRM_UNKNOWN) && in decrypt()
82 err != in decrypt()
84 ALOGE("OVERFLOW DETECTED %d %s\n", err, msg.c_str()); in decrypt()
/cts/tests/tests/os/jni/
Dandroid_os_cts_TaggedPointer.cpp40 int err; in android_os_cts_TaggedPointer_hasTaggedPointer() local
52 err = sigaction(SIGSEGV, &sigsegv_act, &oldact); in android_os_cts_TaggedPointer_hasTaggedPointer()
53 if (err) { in android_os_cts_TaggedPointer_hasTaggedPointer()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DColorUtils.java60 String err = null; in buildErrorString() local
63 if (err == null) err = s; in buildErrorString()
64 err += "\n\t\t" + channel; in buildErrorString()
66 if (err != null) { in buildErrorString()
67 fail(err); in buildErrorString()
/cts/hostsidetests/securitybulletin/securityPatch/includes/
DomxUtils.cpp77 status_t err = OK; in dequeueMessageForNode() local
79 while (err != TIMED_OUT) { in dequeueMessageForNode()
93 err = mMessageAddedCondition.wait(mLock); in dequeueMessageForNode()
95 err = mMessageAddedCondition.waitRelative( in dequeueMessageForNode()
99 return err; in dequeueMessageForNode()
102 status_t err = dequeueMessageForNode(&msg, DEFAULT_TIMEOUT); in omxUtilsCheckCmdExecution() local
103 if (err == TIMED_OUT) { in omxUtilsCheckCmdExecution()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-2109/
Dpoc.c32 unsigned long err = 0; in main() local
42 if((err = ERR_get_error()) in main()
/cts/hostsidetests/jvmti/redefining/app/src/android/jvmti/cts/
DJvmtiRedefineClassesTest.java59 public RedefineError(int err, Class<?> target, String base64string) { in RedefineError() argument
60 this(err, target, Base64.getDecoder().decode(base64string)); in RedefineError()
63 public RedefineError(int err, Class<?> klass, byte[] dex) { in RedefineError() argument
64 this.expectedError = err; in RedefineError()
86 private static void checkRedefinition(RedefineError err) { in checkRedefinition() argument
87 assertEquals(err.expectedError, redefineClass(err.target, err.dexData)); in checkRedefinition()

1234