Home
last modified time | relevance | path

Searched refs:NULL (Results 1 – 25 of 189) sorted by relevance

12345678

/cts/hostsidetests/securitybulletin/securityPatch/CVE-2019-2025/
Dpoc.cpp71 my_futex(&attack_signal, FUTEX_WAIT_PRIVATE, SLEEP, NULL, NULL, 0); in bcfree_helper()
77 return NULL; in bcfree_helper()
97 IPCThreadState::self()->freeBuffer(NULL, rmData, 0, NULL, 0, NULL); in bcfree()
98 IPCThreadState::self()->freeBuffer(NULL, rmData, 0, NULL, 0, NULL); in bcfree()
99 IPCThreadState::self()->freeBuffer(NULL, rmData, 0, NULL, 0, NULL); in bcfree()
100 IPCThreadState::self()->freeBuffer(NULL, rmData, 0, NULL, 0, NULL); in bcfree()
101 IPCThreadState::self()->freeBuffer(NULL, rmData, 0, NULL, 0, NULL); in bcfree()
102 IPCThreadState::self()->freeBuffer(NULL, rmData, 0, NULL, 0, NULL); in bcfree()
103 IPCThreadState::self()->freeBuffer(NULL, rmData, 0, NULL, 0, NULL); in bcfree()
104 IPCThreadState::self()->freeBuffer(NULL, rmData, 0, NULL, 0, NULL); in bcfree()
[all …]
/cts/tests/tests/mediastress/jni/
Dnative-media-jni.cpp40 static XAObjectItf engineObject = NULL;
41 static XAEngineItf engineEngine = NULL;
44 static XAObjectItf outputMixObject = NULL;
47 static XAObjectItf playerObj = NULL;
48 static XAPlayItf playerPlayItf = NULL;
49 static XAAndroidBufferQueueItf playerBQItf = NULL;
50 static XAStreamInformationItf playerStreamInfoItf = NULL;
51 static XAVolumeItf playerVolItf = NULL;
57 static ANativeWindow* theNativeWindow = NULL;
86 static FILE *file = NULL;
[all …]
/cts/tests/tests/security/testeffect/
DCTSTestEffect.cpp48 if (pHandle == NULL || uuid == NULL) { in CTSEffectsLib_Create()
69 if (pContext == NULL) { in CTSEffectsLib_Release()
80 if (pDescriptor == NULL || uuid == NULL){ in CTSEffectsLib_GetDescriptor()
107 if (pContext == NULL) { in CTSEffects_command()
113 if (pReplyData == NULL || *replySize != sizeof(int)) { in CTSEffects_command()
119 if (pCmdData == NULL || cmdSize != sizeof(effect_config_t) in CTSEffects_command()
120 || pReplyData == NULL || *replySize != sizeof(int)) { in CTSEffects_command()
127 if (pReplyData == NULL || in CTSEffects_command()
137 if (pReplyData == NULL || *replySize != sizeof(int)) { in CTSEffects_command()
143 if (pCmdData == NULL || in CTSEffects_command()
[all …]
/cts/tests/tests/nativemedia/xa/src/
DXAObjectCreationTest.cpp74 engineItf = NULL; in SetUp()
75 engineObj = NULL; in SetUp()
76 outputMixObj = NULL; in SetUp()
77 mediaPlayerObj = NULL; in SetUp()
79 res = xaCreateEngine(&engineObj, 0, NULL, 0, NULL, NULL); in SetUp()
85 ASSERT_TRUE(NULL != engineItf); in SetUp()
92 mediaPlayerObj = NULL; in TearDown()
96 outputMixObj = NULL; in TearDown()
100 engineObj = NULL; in TearDown()
110 0, NULL/*iidArray*/, NULL/*required*/); in OutputMixCreation()
[all …]
/cts/tests/tests/media/audio/jni/
DAudioPlayer.cpp30 #ifndef NULL
31 #define NULL 0 macro
57 result = slCreateEngine(&engineObject, 0, NULL, 0, NULL, NULL); in OpenSLEngine()
86 if (outputMixObject != NULL) { in CloseSLEngine()
88 outputMixObject = NULL; in CloseSLEngine()
91 if (engineObject != NULL) { in CloseSLEngine()
93 engineObject = NULL; in CloseSLEngine()
94 engineItf = NULL; in CloseSLEngine()
104 source_ = NULL; in AudioPlayer()
115 bqPlayerObject_ = NULL; in AudioPlayer()
[all …]
Daudio-record-native.cpp62 mEngineObj(NULL), in AudioRecordNative()
63 mEngine(NULL), in AudioRecordNative()
64 mRecordObj(NULL), in AudioRecordNative()
65 mRecord(NULL), in AudioRecordNative()
66 mBufferQueue(NULL), in AudioRecordNative()
67 mConfigItf(NULL), in AudioRecordNative()
71 mRoutingObj(NULL) in AudioRecordNative()
88 if (mEngineObj == NULL) { in open()
104 locator_mic.device= NULL; in open()
107 audioSource.pFormat = NULL; in open()
[all …]
Daudio-track-native.cpp57 mEngineObj(NULL), in AudioTrackNative()
58 mEngine(NULL), in AudioTrackNative()
59 mOutputMixObj(NULL), in AudioTrackNative()
60 mPlayerObj(NULL), in AudioTrackNative()
61 mPlay(NULL), in AudioTrackNative()
62 mBufferQueue(NULL), in AudioTrackNative()
78 if (mEngineObj == NULL) { in open()
92 NULL /* pInterfaceIds */, NULL /* pInterfaceRequired */); in open()
130 audioSink.pFormat = NULL; in open()
172 if (mPlay != NULL && mPlayState != SL_PLAYSTATE_STOPPED) { in close()
[all …]
DAudioRecorder.cpp29 #ifndef NULL
30 #define NULL 0 macro
58 static float* recBuffer = NULL;
72 : sink_(NULL), in AudioRecorder()
77 engineObj_(NULL), in AudioRecorder()
78 engineItf_(NULL), in AudioRecorder()
79 recorderObj_(NULL), in AudioRecorder()
80 recorderItf_(NULL), in AudioRecorder()
81 recBuffQueueItf_(NULL), in AudioRecorder()
82 configItf_(NULL) in AudioRecorder()
[all …]
/cts/tests/tests/nativemedia/sl/src/
DSLObjectCreationTest.cpp50 if (NULL == str) in IsOk()
85 engineItf = NULL; in SetUp()
86 engineObj = NULL; in SetUp()
87 outputMixObj = NULL; in SetUp()
88 audioPlayerObj = NULL; in SetUp()
90 res = slCreateEngine(&engineObj, 0, NULL, 0, NULL, NULL); in SetUp()
96 ASSERT_TRUE(NULL != engineItf); in SetUp()
103 audioPlayerObj = NULL; in TearDown()
107 outputMixObj = NULL; in TearDown()
111 engineObj = NULL; in TearDown()
[all …]
/cts/tests/tests/nativehardware/jni/
DAHardwareBufferTest.cpp166 int res = AHardwareBuffer_allocate(&desc, (AHardwareBuffer * * _Nonnull)NULL); in TEST()
168 res = AHardwareBuffer_allocate((AHardwareBuffer_Desc* _Nonnull)NULL, &buffer); in TEST()
170 res = AHardwareBuffer_allocate((AHardwareBuffer_Desc* _Nonnull)NULL, in TEST()
171 (AHardwareBuffer * * _Nonnull)NULL); in TEST()
193 buffer = NULL; in TEST()
198 AHardwareBuffer* buffer = NULL; in TEST()
210 buffer = NULL; in TEST()
225 AHardwareBuffer* buffer = NULL; in TEST()
237 buffer = NULL; in TEST()
241 AHardwareBuffer* buffer = NULL; in TEST()
[all …]
/cts/tests/openglperf2/jni/primitive/fullpipeline/
DFullPipelineRenderer.cpp95 Renderer(window, offscreen), mProgram(NULL), mSceneGraph(NULL), in FullPipelineRenderer()
96 mModelMatrix(NULL), mViewMatrix(NULL), mProjectionMatrix(NULL), mMesh(NULL), in FullPipelineRenderer()
180 mModelMatrix = NULL; in tearDown()
182 mViewMatrix = NULL; in tearDown()
184 mProjectionMatrix = NULL; in tearDown()
186 mProgram = NULL; in tearDown()
188 mSceneGraph = NULL; in tearDown()
190 mMesh = NULL; in tearDown()
/cts/tests/openglperf2/jni/primitive/
DGLPrimitive.cpp31 Renderer* gRenderer = NULL;
32 ANativeWindow* gNativeWindow = NULL;
44 if (gRenderer == NULL) { in Java_android_opengl2_cts_primitive_GLPrimitiveActivity_startBenchmark()
99 gNativeWindow = NULL; in Java_android_opengl2_cts_primitive_GLPrimitiveActivity_setupBenchmark()
106 gRenderer = NULL; in Java_android_opengl2_cts_primitive_GLPrimitiveActivity_setupBenchmark()
109 gNativeWindow = NULL; in Java_android_opengl2_cts_primitive_GLPrimitiveActivity_setupBenchmark()
116 if (gRenderer == NULL) { in Java_android_opengl2_cts_primitive_GLPrimitiveActivity_tearDownBenchmark()
121 gRenderer = NULL; in Java_android_opengl2_cts_primitive_GLPrimitiveActivity_tearDownBenchmark()
124 gNativeWindow = NULL; in Java_android_opengl2_cts_primitive_GLPrimitiveActivity_tearDownBenchmark()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-0386/
Dpoc.c43 struct nl_msg *message = NULL; in main()
45 char *data = NULL; in main()
53 if (message == NULL) { in main()
63 if (data == NULL) { in main()
76 data = NULL; in main()
80 if (data == NULL) { in main()
101 data = NULL; in main()
106 message = NULL; in main()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2020-11173/
Dpoc.c83 syscall(SYS_futex, &attack, FUTEX_WAIT_PRIVATE, SLEEP, NULL, NULL, 0); in init_thread()
86 return NULL; in init_thread()
100 syscall(SYS_futex, &attack, FUTEX_WAIT_PRIVATE, SLEEP, NULL, NULL, 0); in unmap_thread()
105 return NULL; in unmap_thread()
146 ret = pthread_create(unmap_th + i, NULL, unmap_thread, in trigger()
153 pthread_create(&init_th, NULL, init_thread, (void *)(unsigned long)0); in trigger()
157 ret = pthread_create(unmap_th + i, NULL, unmap_thread, in trigger()
168 syscall(SYS_futex, &attack, FUTEX_WAKE_PRIVATE, INT_MAX, NULL, NULL, 0); in trigger()
169 pthread_join(init_th, NULL); in trigger()
172 pthread_join(unmap_th[i], NULL); in trigger()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2015-1805/
Dpoc.c33 struct iovec *iovs = NULL;
63 if (iovs == NULL) { in main()
75 bufs[i] = mmap(NULL, page_size, PROT_READ | PROT_WRITE, in main()
94 pthread_create(&thr_evil, NULL, func_evil, NULL); in main()
95 pthread_create(&thr_readv, NULL, func_readv, NULL); in main()
97 pthread_join(thr_evil, NULL); in main()
98 pthread_join(thr_readv, NULL); in main()
/cts/tests/openglperf2/jni/reference/scene/glowing/
DGlowingScene.cpp28 Scene(width, height), mFboId(0), mMainProgram(NULL), mBlurProgram(NULL) { in GlowingScene()
50 if (vertex == NULL || fragment == NULL) { in setUpPrograms()
63 if (vertex == NULL || fragment == NULL) { in setUpPrograms()
132 if (mMainProgram != NULL) { in tearDown()
134 mMainProgram = NULL; in tearDown()
136 if (mBlurProgram != NULL) { in tearDown()
138 mBlurProgram = NULL; in tearDown()
145 mFboModelMatrix = NULL; in tearDown()
147 mFboViewMatrix = NULL; in tearDown()
149 mFboProjectionMatrix = NULL; in tearDown()
/cts/hostsidetests/securitybulletin/securityPatch/Bug-137878930/
Dpoc.cpp64 if (serviceManager == NULL) { in makeDrmFactories()
73 if (factory != NULL) { in makeDrmFactories()
86 if (factory != NULL) { in makeDrmFactories()
116 if (drmPlugin != NULL) in createPlugin()
122 if (drmPlugin == NULL) { in createPlugin()
182 return NULL; in getSecureStops()
186 if (drmPluginV1_1 != NULL) in removeAllSecureStops()
191 return NULL; in removeAllSecureStops()
207 pthread_create(&threads[0], NULL, getSecureStops, NULL); in main()
208 pthread_create(&threads[1], NULL, removeAllSecureStops, NULL); in main()
[all …]
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2018-9515/
Dpoc.c44 return NULL; in uaf_worker()
64 return NULL; in chaos_worker()
71 if (pthread_create(&thread, NULL, uaf_worker, NULL)) in main()
75 if (pthread_create(&thread2, NULL, chaos_worker, NULL)) in main()
/cts/tests/tests/openglperf/jni/
DOpenGlPerfNativeJni.cpp33 static TypeEglCreateSyncKHR mEglCreateSyncKHR = NULL;
34 static TypeEglClientWaitSyncKHR mEglClientWaitSyncKHR = NULL;
35 static TypeEglDestroySyncKHR mEglDestroySyncKHR = NULL;
48 if (mEglCreateSyncKHR != NULL && mEglClientWaitSyncKHR != NULL in IsEglKHRFenceSyncSupported()
49 && mEglDestroySyncKHR != NULL) { in IsEglKHRFenceSyncSupported()
66 EGLSyncKHR sync = mEglCreateSyncKHR(dpy, EGL_SYNC_FENCE_KHR, NULL); in Java_android_openglperf_cts_OpenGlPerfNative_waitForEglCompletion()
/cts/tests/tests/jni/libjnitest/
Dhelper.c41 return NULL; in failure()
50 char *result = NULL; in runJniTests()
56 if (name == NULL) { in runJniTests()
65 if (oneResult != NULL) { in runJniTests()
68 (result == NULL) ? "" : result, in runJniTests()
71 if (newResult == NULL) { in runJniTests()
74 return NULL; in runJniTests()
80 if (oneException != NULL) { in runJniTests()
/cts/tests/openglperf2/jni/graphics/
DGLUtils.cpp25 static JNIEnv* sEnv = NULL;
26 static jobject sAssetManager = NULL;
35 if (nativeManager == NULL) { in loadAsset()
36 return NULL; in loadAsset()
43 if (asset == NULL) { in openTextFile()
45 return NULL; in openTextFile()
54 return NULL; in openTextFile()
63 if (activityClass == NULL) { in loadTexture()
69 if (loadTexture == NULL) { in loadTexture()
95 if (buffer == NULL) { in loadMesh()
[all …]
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2018-9344/
Dpoc.cpp45 return NULL; in thread1()
53 Return<sp<IDescramblerBase>> returnDescrambler(NULL); in main()
59 if (casService == NULL) { in main()
65 if (cas == NULL) { in main()
86 if (descramblerBase == NULL) { in main()
98 if (descrambler == NULL) { in main()
103 pthread_create(&pt, NULL, thread1, NULL); in main()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2020-29661/
Dpoc.cpp39 return time(NULL); in start_timer()
43 return time(NULL) < (timer_started + MAX_TEST_DURATION); in timer_active()
125 const char* message1 = NULL; in main()
126 const char* message2 = NULL; in main()
142 if (message1 != NULL || message2 != NULL) { in main()
143 err(EXIT_FAILURE, "%s %s", message1 != NULL ? message1 : "", in main()
144 message2 != NULL ? message2 : ""); in main()
/cts/tests/openglperf2/jni/reference/scene/
DScene.cpp31 if (mModelMatrix == NULL) { in setUpContext()
35 if (mViewMatrix == NULL) { in setUpContext()
39 if (mProjectionMatrix == NULL) { in setUpContext()
57 mModelMatrix = NULL; in tearDown()
59 mViewMatrix = NULL; in tearDown()
61 mProjectionMatrix = NULL; in tearDown()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-8479/
Dpoc.c135 return NULL; in child_ioctl_0()
147 return NULL; in child_ioctl_1()
159 return NULL; in child_ioctl_2()
180 thread_ret[i] = pthread_create(thread_id + i, NULL, child_ioctl_0, NULL); in main()
182 pthread_create(thread_id + i + 1, NULL, child_ioctl_1, NULL); in main()
184 pthread_create(thread_id + i + 2, NULL, child_ioctl_2, NULL); in main()

12345678