Home
last modified time | relevance | path

Searched refs:NULL (Results 1 – 25 of 133) 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/media/libndkaudio/
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 …]
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.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/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/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()
86 if (mEngineObj == NULL) { in open()
102 locator_mic.device= NULL; in open()
105 audioSource.pFormat = NULL; in open()
192 if (mBufferQueue != NULL) { in close()
194 mBufferQueue, NULL /* callback */, NULL /* *pContext */); in close()
[all …]
/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()
73 return NULL; in runJniTests()
79 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 …]
Dandroid_jni_cts_InstanceNonce.c75 return NULL; in InstanceNonce_returnNull()
89 if (result == NULL) { in InstanceNonce_returnShortArray()
90 return NULL; in InstanceNonce_returnShortArray()
105 if ((*env)->ExceptionOccurred(env) != NULL) { in InstanceNonce_returnStringArray()
106 return NULL; in InstanceNonce_returnStringArray()
109 if (stringClass == NULL) { in InstanceNonce_returnStringArray()
112 return NULL; in InstanceNonce_returnStringArray()
115 jobjectArray result = (*env)->NewObjectArray(env, 100, stringClass, NULL); in InstanceNonce_returnStringArray()
117 if (result == NULL) { in InstanceNonce_returnStringArray()
118 return NULL; in InstanceNonce_returnStringArray()
[all …]
Dmacroized_tests.c78 ((expected) == (actual)) ? NULL : \
92 if (clazz == NULL) { in initializeVariables()
99 if (clazz == NULL) { in initializeVariables()
107 if (field == NULL) { in initializeVariables()
114 if (biscuits == NULL) { in initializeVariables()
120 return NULL; in initializeVariables()
139 if (result == NULL) { in findStaticMethod()
154 if (result == NULL) { in findInstanceMethod()
194 if (method == NULL) { in help_CallBooleanMethod()
206 result = CALL(CallBooleanMethodA, o, method, NULL); in help_CallBooleanMethod()
[all …]
/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/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/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()
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()
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/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/apps/cts-usb-accessory/
Dcts-usb-accessory.c32 static struct usb_device *sDevice = NULL;
34 static char* sDeviceSerial = NULL;
61 return NULL; in message_thread()
69 nanosleep(&tm, NULL); in milli_sleep()
107 struct usb_interface_descriptor *intf = NULL; in usb_device_added()
108 struct usb_endpoint_descriptor *ep1 = NULL; in usb_device_added()
109 struct usb_endpoint_descriptor *ep2 = NULL; in usb_device_added()
117 while ((desc = usb_descriptor_iter_next(&iter)) != NULL && (!intf || !ep1 || !ep2)) { in usb_device_added()
150 pthread_create(&th, NULL, message_thread, (void *)endpoints); in usb_device_added()
196 sDevice = NULL; in usb_device_removed()
[all …]
/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/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/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