/cts/hostsidetests/securitybulletin/securityPatch/CVE-2019-2025/ |
D | poc.cpp | 71 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/ |
D | native-media-jni.cpp | 40 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/ |
D | ModelBuilder.cpp | 59 { "process", TaskGeneric::ETaskProcess, NULL, 0 }, 60 { "input", TaskGeneric::ETaskInput, NULL, 0 }, 61 { "output", TaskGeneric::ETaskOutput, NULL, 0 }, 62 { "sound", TaskGeneric::ETaskSound, NULL, 0 }, 63 { "save", TaskGeneric::ETaskSave, NULL, 0 }, 64 { "message", TaskGeneric::ETaskMessage, NULL, 0 }, 65 { "download", TaskGeneric::ETaskDownload, NULL, 0 } 92 return NULL; in parseTestDescriptionXml() 95 if ((root = doc.FirstChildElement("case")) != NULL) { in parseTestDescriptionXml() 97 } else if (!caseOnly && ((root = doc.FirstChildElement("batch")) != NULL)) { in parseTestDescriptionXml() [all …]
|
/cts/tests/tests/nativehardware/jni/ |
D | AHardwareBufferTest.cpp | 158 int res = AHardwareBuffer_allocate(&desc, NULL); in TEST() 160 res = AHardwareBuffer_allocate(NULL, &buffer); in TEST() 162 res = AHardwareBuffer_allocate(NULL, NULL); in TEST() 184 buffer = NULL; in TEST() 189 AHardwareBuffer* buffer = NULL; in TEST() 201 buffer = NULL; in TEST() 216 AHardwareBuffer* buffer = NULL; in TEST() 228 buffer = NULL; in TEST() 232 AHardwareBuffer* buffer = NULL; in TEST() 246 AHardwareBuffer_describe(NULL, &scratch_desc); in TEST() [all …]
|
/cts/tests/tests/security/testeffect/ |
D | CTSTestEffect.cpp | 48 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/media/libaudiojni/ |
D | audio-record-native.cpp | 62 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 …]
|
D | audio-track-native.cpp | 57 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 …]
|
/cts/tests/tests/nativemedia/sl/src/ |
D | SLObjectCreationTest.cpp | 50 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/media/libndkaudio/ |
D | AudioPlayer.cpp | 30 #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 …]
|
D | AudioRecorder.cpp | 29 #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/xa/src/ |
D | XAObjectCreationTest.cpp | 74 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/net/jni/ |
D | NativeDnsJni.c | 37 char *service = NULL; in Java_android_net_cts_DnsTest_testNativeDns() 40 int res = getaddrinfo(node, service, NULL, &answer); in Java_android_net_cts_DnsTest_testNativeDns() 49 while (current != NULL) { in Java_android_net_cts_DnsTest_testNativeDns() 66 answer = NULL; in Java_android_net_cts_DnsTest_testNativeDns() 74 res = getaddrinfo(node, service, NULL, &answer); in Java_android_net_cts_DnsTest_testNativeDns() 82 while (current != NULL) { in Java_android_net_cts_DnsTest_testNativeDns() 99 answer = NULL; in Java_android_net_cts_DnsTest_testNativeDns() 122 res = getnameinfo((const struct sockaddr*)&sa4, sizeof(sa4), buf, sizeof(buf), NULL, 0, flags); in Java_android_net_cts_DnsTest_testNativeDns() 128 if (strstr(buf, "google.com") == NULL && strstr(buf, "dns.google") == NULL) { in Java_android_net_cts_DnsTest_testNativeDns() 135 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/jni/libjnitest/ |
D | android_jni_cts_StaticNonce.c | 75 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 …]
|
D | macroized_tests.c | 79 ((expected) == (actual)) ? NULL : \ 93 if (clazz == NULL) { in initializeVariables() 100 if (clazz == NULL) { in initializeVariables() 108 if (field == NULL) { in initializeVariables() 115 if (biscuits == NULL) { in initializeVariables() 121 return NULL; in initializeVariables() 140 if (result == NULL) { in findStaticMethod() 155 if (result == NULL) { in findInstanceMethod() 195 if (method == NULL) { in help_CallBooleanMethod() 208 result = CALL(CallBooleanMethodA, o, method, NULL); in help_CallBooleanMethod() [all …]
|
D | android_jni_cts_InstanceNonce.c | 75 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 …]
|
D | helper.c | 41 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/primitive/fullpipeline/ |
D | FullPipelineRenderer.cpp | 95 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/reference/scene/glowing/ |
D | GlowingScene.cpp | 28 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/openglperf2/jni/graphics/ |
D | GLUtils.cpp | 25 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/openglperf2/jni/primitive/ |
D | GLPrimitive.cpp | 31 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/ |
D | poc.c | 34 struct nl_msg *message = NULL; in main() 36 char *data = NULL; in main() 44 if (message == NULL) { in main() 54 if (data == NULL) { in main() 67 data = NULL; in main() 71 if (data == NULL) { in main() 92 data = NULL; in main() 97 message = NULL; in main()
|
/cts/apps/CtsVerifier/jni/midi/ |
D | MidiTestManager.cpp | 65 : mMsgBytes(NULL), mNumMsgBytes(0) in TestMessage() 73 if (msgBytes == NULL || numMsgBytes <= 0) { in set() 87 : mTestModuleObj(NULL), in MidiTestManager() 88 mTestStream(NULL), mNumTestStreamBytes(0), in MidiTestManager() 90 mMidiSendPort(NULL), mMidiReceivePort(NULL), in MidiTestManager() 91 mTestMsgs(NULL), mNumTestMsgs(0) in MidiTestManager() 251 int status = pthread_create(&readThread, NULL, readThreadRoutine, this); in StartReading() 281 mJvm->AttachCurrentThread(&env, NULL); in RunTest() 282 if (env == NULL) { in RunTest() 333 mJvm->AttachCurrentThread(&env, NULL); in EndTest() [all …]
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2015-1805/ |
D | poc.c | 33 struct iovec *iovs = NULL; 61 if (iovs == NULL) { in main() 73 bufs[i] = mmap(NULL, PAGE_SIZE, PROT_READ | PROT_WRITE, in main() 92 pthread_create(&thr_evil, NULL, func_evil, NULL); in main() 93 pthread_create(&thr_readv, NULL, func_readv, NULL); in main() 95 pthread_join(thr_evil, NULL); in main() 96 pthread_join(thr_readv, NULL); in main()
|
/cts/suite/audio_quality/test/ |
D | ModelBuilderTest.cpp | 30 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()
|
/cts/apps/CtsVerifier/jni/audio_loopback/ |
D | sles.cpp | 41 if (ppSles != NULL) { in slesInit() 46 if (pSles != NULL) in slesInit() 59 if (ppSles != NULL) { in slesDestroy() 62 if (*ppSles != NULL) in slesDestroy() 79 if (pSles != NULL) { in recorderCallback() 119 if (pSles->fifo2Buffer != NULL) { in recorderCallback() 153 if (pSles != NULL) { in playerCallback() 219 if (pSles == NULL) { in slesCreateServer() 293 pSles->fifo2Buffer = NULL; in slesCreateServer() 308 pSles->freeBuffers[j] = NULL; in slesCreateServer() [all …]
|