Home
last modified time | relevance | path

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

123456

/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/suite/audio_quality/lib/src/task/
DModelBuilder.cpp57 { "process", TaskGeneric::ETaskProcess, NULL, 0 },
58 { "input", TaskGeneric::ETaskInput, NULL, 0 },
59 { "output", TaskGeneric::ETaskOutput, NULL, 0 },
60 { "sound", TaskGeneric::ETaskSound, NULL, 0 },
61 { "save", TaskGeneric::ETaskSave, NULL, 0 },
62 { "message", TaskGeneric::ETaskMessage, NULL, 0 },
63 { "download", TaskGeneric::ETaskDownload, NULL, 0 }
89 return NULL; in parseTestDescriptionXml()
92 if ((root = doc.FirstChildElement("case")) != NULL) { in parseTestDescriptionXml()
94 } else if (!caseOnly && ((root = doc.FirstChildElement("batch")) != NULL)) { in parseTestDescriptionXml()
[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.cpp77 engineItf = NULL; in SetUp()
78 engineObj = NULL; in SetUp()
79 outputMixObj = NULL; in SetUp()
80 mediaPlayerObj = NULL; in SetUp()
82 res = xaCreateEngine(&engineObj, 0, NULL, 0, NULL, NULL); in SetUp()
88 ASSERT_TRUE(NULL != engineItf); in SetUp()
95 mediaPlayerObj = NULL; in TearDown()
99 outputMixObj = NULL; in TearDown()
103 engineObj = NULL; in TearDown()
113 0, NULL/*iidArray*/, NULL/*required*/); in OutputMixCreation()
[all …]
/cts/tests/tests/nativemedia/sl/src/
DSLObjectCreationTest.cpp53 if (NULL == str) in IsOk()
88 engineItf = NULL; in SetUp()
89 engineObj = NULL; in SetUp()
90 outputMixObj = NULL; in SetUp()
91 audioPlayerObj = NULL; in SetUp()
93 res = slCreateEngine(&engineObj, 0, NULL, 0, NULL, NULL); in SetUp()
99 ASSERT_TRUE(NULL != engineItf); in SetUp()
106 audioPlayerObj = NULL; in TearDown()
110 outputMixObj = NULL; in TearDown()
114 engineObj = NULL; in TearDown()
[all …]
/cts/tests/tests/net/jni/
DNativeDnsJni.c32 char *service = NULL; in Java_android_net_cts_DnsTest_testNativeDns()
35 int res = getaddrinfo(node, service, NULL, &answer); in Java_android_net_cts_DnsTest_testNativeDns()
44 while (current != NULL) { in Java_android_net_cts_DnsTest_testNativeDns()
61 answer = NULL; in Java_android_net_cts_DnsTest_testNativeDns()
69 res = getaddrinfo(node, service, NULL, &answer); in Java_android_net_cts_DnsTest_testNativeDns()
77 while (current != NULL) { in Java_android_net_cts_DnsTest_testNativeDns()
94 answer = NULL; in Java_android_net_cts_DnsTest_testNativeDns()
117 res = getnameinfo((const struct sockaddr*)&sa4, sizeof(sa4), buf, sizeof(buf), NULL, 0, flags); in Java_android_net_cts_DnsTest_testNativeDns()
123 if (strstr(buf, "google.com") == NULL) { in Java_android_net_cts_DnsTest_testNativeDns()
130 res = getnameinfo((const struct sockaddr*)&sa6, sizeof(sa6), buf, sizeof(buf), NULL, 0, flags); in Java_android_net_cts_DnsTest_testNativeDns()
[all …]
/cts/tests/tests/security/jni/
Dandroid_security_cts_SELinuxTest.cpp43 if (subjectContextStr == NULL || objectContextStr == NULL || objectClassStr == NULL in android_security_cts_SELinuxTest_checkSELinuxAccess()
44 || permissionStr == NULL || auxStr == NULL) { in android_security_cts_SELinuxTest_checkSELinuxAccess()
45 jniThrowNullPointerException(env, NULL); in android_security_cts_SELinuxTest_checkSELinuxAccess()
63 if (contextStr == NULL) { in android_security_cts_SELinuxTest_checkSELinuxContext()
64 jniThrowNullPointerException(env, NULL); in android_security_cts_SELinuxTest_checkSELinuxContext()
87 if (path.c_str() == NULL) { in getFileContext()
88 return NULL; in getFileContext()
91 security_context_t tmp = NULL; in getFileContext()
95 ScopedLocalRef<jstring> securityString(env, NULL); in getFileContext()
/cts/tests/tests/jni/libjnitest/
Dhelper.c40 return NULL; in failure()
49 char *result = NULL; in runJniTests()
55 if (name == NULL) { in runJniTests()
64 if (oneResult != NULL) { in runJniTests()
67 (result == NULL) ? "" : result, in runJniTests()
70 if (newResult == NULL) { in runJniTests()
72 return NULL; in runJniTests()
78 if (oneException != NULL) { in runJniTests()
Dandroid_jni_cts_StaticNonce.c75 return NULL; in StaticNonce_returnNull()
89 if (result == NULL) { in StaticNonce_returnShortArray()
90 return NULL; in StaticNonce_returnShortArray()
104 if ((*env)->ExceptionOccurred(env) != NULL) { in StaticNonce_returnStringArray()
105 return NULL; in StaticNonce_returnStringArray()
108 if (stringClass == NULL) { in StaticNonce_returnStringArray()
111 return NULL; in StaticNonce_returnStringArray()
114 jobjectArray result = (*env)->NewObjectArray(env, 100, stringClass, NULL); in StaticNonce_returnStringArray()
116 if (result == NULL) { in StaticNonce_returnStringArray()
117 return NULL; in StaticNonce_returnStringArray()
[all …]
/cts/suite/cts/deviceTests/opengl/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/tests/media/libaudiojni/
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 …]
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()
82 if (mEngineObj == NULL) { in open()
98 locator_mic.device= NULL; in open()
101 audioSource.pFormat = NULL; in open()
188 if (mBufferQueue != NULL) { in close()
190 mBufferQueue, NULL /* callback */, NULL /* *pContext */); in close()
[all …]
/cts/suite/cts/deviceTests/opengl/jni/primitive/
DGLPrimitive.cpp30 Renderer* gRenderer = NULL;
31 ANativeWindow* gNativeWindow = NULL;
43 if (gRenderer == NULL) { in Java_com_android_cts_opengl_primitive_GLPrimitiveActivity_startBenchmark()
97 gNativeWindow = NULL; in Java_com_android_cts_opengl_primitive_GLPrimitiveActivity_setupBenchmark()
104 gRenderer = NULL; in Java_com_android_cts_opengl_primitive_GLPrimitiveActivity_setupBenchmark()
107 gNativeWindow = NULL; in Java_com_android_cts_opengl_primitive_GLPrimitiveActivity_setupBenchmark()
114 if (gRenderer == NULL) { in Java_com_android_cts_opengl_primitive_GLPrimitiveActivity_tearDownBenchmark()
119 gRenderer = NULL; in Java_com_android_cts_opengl_primitive_GLPrimitiveActivity_tearDownBenchmark()
122 gNativeWindow = NULL; in Java_com_android_cts_opengl_primitive_GLPrimitiveActivity_tearDownBenchmark()
/cts/suite/audio_quality/test/
DModelBuilderTest.cpp30 ASSERT_TRUE(testCase != NULL); in TEST_F()
38 ASSERT_TRUE(testCase != NULL); in TEST_F()
46 ASSERT_TRUE(testBatch != NULL); in TEST_F()
54 ASSERT_TRUE(task == NULL); in TEST_F()
62 ASSERT_TRUE(task == NULL); in TEST_F()
69 ASSERT_TRUE(task == NULL); in TEST_F()
76 ASSERT_TRUE(task == NULL); in TEST_F()
83 ASSERT_TRUE(task != NULL); in TEST_F()
DAudioHardwareTest.cpp33 ASSERT_TRUE(playback.get() != NULL); in TEST_F()
35 ASSERT_TRUE(recording.get() != NULL); in TEST_F()
40 ASSERT_TRUE(testCase != NULL); in TEST_F()
42 ASSERT_TRUE(playback.get() != NULL); in TEST_F()
44 ASSERT_TRUE(recording.get() != NULL); in TEST_F()
DTaskSequentialTest.cpp25 TaskGeneric* setup = NULL; in SetUp()
26 TaskGeneric* action = NULL; in SetUp()
28 ASSERT_TRUE(mTestCase != NULL); in SetUp()
29 ASSERT_TRUE(setup != NULL); in SetUp()
30 ASSERT_TRUE(action != NULL); in SetUp()
54 ASSERT_TRUE(indices != NULL); in TEST_F()
DTaskProcessTest.cpp28 TaskGeneric* setup = NULL; in SetUp()
29 TaskGeneric* action = NULL; in SetUp()
31 ASSERT_TRUE(mTestCase != NULL); in SetUp()
32 ASSERT_TRUE(setup != NULL); in SetUp()
33 ASSERT_TRUE(action != NULL); in SetUp()
DBufferTest.cpp42 ASSERT_TRUE(buffer.get() != NULL); in TEST_F()
44 ASSERT_TRUE(data != NULL); in TEST_F()
53 ASSERT_TRUE(bufferRead.get() != NULL); in TEST_F()
67 ASSERT_TRUE(buffer.get() != NULL); in TEST_F()
69 ASSERT_TRUE(data != NULL); in TEST_F()
74 ASSERT_TRUE(bufferl.get() != NULL); in TEST_F()
76 ASSERT_TRUE(data != NULL); in TEST_F()
/cts/suite/cts/deviceTests/opengl/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/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/suite/cts/deviceTests/opengl/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/apps/cts-usb-accessory/
Dcts-usb-accessory.c32 struct usb_device *sDevice = NULL;
59 return NULL; in message_thread()
67 nanosleep(&tm, NULL); in milli_sleep()
97 struct usb_interface_descriptor *intf = NULL; in usb_device_added()
98 struct usb_endpoint_descriptor *ep1 = NULL; in usb_device_added()
99 struct usb_endpoint_descriptor *ep2 = NULL; in usb_device_added()
106 while ((desc = usb_descriptor_iter_next(&iter)) != NULL && (!intf || !ep1 || !ep2)) { in usb_device_added()
139 pthread_create(&th, NULL, message_thread, (void *)endpoints); in usb_device_added()
174 sDevice = NULL; in usb_device_removed()
192 usb_host_run(context, usb_device_added, usb_device_removed, NULL, NULL); in main()
/cts/suite/cts/deviceTests/opengl/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/tests/tests/rscpp/librscpptest/
Dclear_object.rs9 *out = ( NULL == allocation.p ? 1 : 0 );
17 *out = ( NULL == element.p ? 1 : 0 );
25 *out = ( NULL == sampler.p ? 1 : 0 );
33 *out = ( NULL == script.p ? 1 : 0 );
41 *out = ( NULL == type.p ? 1 : 0 );
/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dclear_object.rs9 *out = ( NULL == allocation.p ? 1 : 0 );
17 *out = ( NULL == element.p ? 1 : 0 );
25 *out = ( NULL == sampler.p ? 1 : 0 );
33 *out = ( NULL == script.p ? 1 : 0 );
41 *out = ( NULL == type.p ? 1 : 0 );

123456