Home
last modified time | relevance | path

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

12345678910>>...54

/frameworks/wilhelm/src/
Dsles.c32 assert(NULL != thiz); in IsInterfaceInitialized()
35 assert(NULL != clazz); in IsInterfaceInitialized()
56 assert(NULL != thiz); in IObjectToObjectID()
59 assert(NULL != clazz); in IObjectToObjectID()
76 if (NULL == object) { in AcquireStrongRef()
129 assert(NULL != object); in ReleaseStrongRef()
155 assert(NULL != clazz && NULL != pExposedMask); in checkInterfaces()
168 if (NULL != MPH_init_table[interfaces[i].mMPH].mInit) { in checkInterfaces()
183 if (NULL == pInterfaceIds || NULL == pInterfaceRequired) { in checkInterfaces()
190 if (NULL == iid) { in checkInterfaces()
[all …]
/frameworks/base/tools/aidl/
Doptions_test.cpp24 while (expected[count] != NULL) { in match_arrays()
140 … { "test", "-i/moof", "-I/blah", "-Ibleh", "-imoo", "inputFileName.aidl_cpp", NULL, NULL },
142 /* systemSearchPath */ { "/blah", "bleh", NULL, NULL, NULL, NULL, NULL, NULL },
143 /* localSearchPath */ { "/moof", "moo", NULL, NULL, NULL, NULL, NULL, NULL },
152 …rgv */ { "test", "inputFileName.aidl_cpp", "-oh", "outputH", NULL, NULL, NULL, NULL },
154 /* systemSearchPath */ { NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL },
155 /* localSearchPath */ { NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL },
164 …*/ { "test", "inputFileName.aidl_cpp", "-ocpp", "outputCPP", NULL, NULL, NULL, NULL },
166 /* systemSearchPath */ { NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL },
167 /* localSearchPath */ { NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL },
[all …]
/frameworks/compile/mclinker/include/mcld/LD/
DELFFileFormat.h47 { return (NULL != f_pNULLSection) && (0 != f_pNULLSection->size()); } in hasNULLSection()
50 { return (NULL != f_pGOT) && (0 != f_pGOT->size()); } in hasGOT()
53 { return (NULL != f_pPLT) && (0 != f_pPLT->size()); } in hasPLT()
56 { return (NULL != f_pRelDyn) && (0 != f_pRelDyn->size()); } in hasRelDyn()
59 { return (NULL != f_pRelPlt) && (0 != f_pRelPlt->size()); } in hasRelPlt()
62 { return (NULL != f_pRelaDyn) && (0 != f_pRelaDyn->size()); } in hasRelaDyn()
65 { return (NULL != f_pRelaPlt) && (0 != f_pRelaPlt->size()); } in hasRelaPlt()
69 { return (NULL != f_pComment) && (0 != f_pComment->size()); } in hasComment()
72 { return (NULL != f_pData1) && (0 != f_pData1->size()); } in hasData1()
75 { return (NULL != f_pDebug) && (0 != f_pDebug->size()); } in hasDebug()
[all …]
/frameworks/base/media/libdrm/mobile1/src/xml/
Dxml_tinyparser.c29 if (NULL == buffer) in xml_ignore_blank()
30 return NULL; in xml_ignore_blank()
43 if (NULL == buffer) in xml_goto_tagend()
44 return NULL; in xml_goto_tagend()
49 while (buffer != NULL && XML_IS_NAMECHAR(*buffer)) in xml_goto_tagend()
51 if (NULL == buffer) in xml_goto_tagend()
52 return NULL; in xml_goto_tagend()
56 if (NULL == (buffer = xml_ignore_blank(buffer))) in xml_goto_tagend()
57 return NULL; in xml_goto_tagend()
62 if (NULL == in xml_goto_tagend()
[all …]
/frameworks/native/cmds/dumpstate/
Ddumpstate.c42 static const char *dump_traces_path = NULL;
48 time_t now = time(NULL); in dumpstate()
74 dump_file(NULL, "/proc/version"); in dumpstate()
78 run_command("UPTIME", 10, "uptime", NULL); in dumpstate()
80 run_command("CPU INFO", 10, "top", "-n", "1", "-d", "1", "-m", "30", "-t", NULL); in dumpstate()
81 run_command("PROCRANK", 20, "procrank", NULL); in dumpstate()
93 run_command("PROCESSES", 10, "ps", "-P", NULL); in dumpstate()
94 run_command("PROCESSES AND THREADS", 10, "ps", "-t", "-p", "-P", NULL); in dumpstate()
95 run_command("LIBRANK", 10, "librank", NULL); in dumpstate()
99 run_command("LIST OF OPEN FILES", 10, SU_PATH, "root", "lsof", NULL); in dumpstate()
[all …]
/frameworks/base/media/jni/
Dandroid_media_MediaPlayer.cpp70 virtual void notify(int msg, int ext1, int ext2, const Parcel *obj = NULL);
84 if (clazz == NULL) { in JNIMediaPlayerListener()
86 jniThrowException(env, "java/lang/Exception", NULL); in JNIMediaPlayerListener()
112 if (mParcel != NULL) { in notify()
120 msg, ext1, ext2, NULL); in notify()
158 if (exception == NULL) { // Don't throw exception. Instead, send an event. in process_media_player_call()
165 jniThrowException(env, "java/lang/IllegalStateException", NULL); in process_media_player_call()
167 jniThrowException(env, "java/lang/SecurityException", NULL); in process_media_player_call()
188 if (mp == NULL ) { in android_media_MediaPlayer_setDataSourceAndHeaders()
189 jniThrowException(env, "java/lang/IllegalStateException", NULL); in android_media_MediaPlayer_setDataSourceAndHeaders()
[all …]
Dandroid_media_MediaCodec.cpp71 : mClass(NULL), in JMediaCodec()
72 mObject(NULL) { in JMediaCodec()
74 CHECK(clazz != NULL); in JMediaCodec()
95 return mCodec != NULL ? OK : NO_INIT; in initCheck()
104 mObject = NULL; in ~JMediaCodec()
106 mClass = NULL; in ~JMediaCodec()
115 if (surfaceTexture != NULL) { in configure()
215 CHECK(byteBufferClass != NULL); in getBuffers()
222 CHECK(orderID != NULL); in getBuffers()
225 CHECK(byteOrderClass != NULL); in getBuffers()
[all …]
Dandroid_media_MediaExtractor.cpp50 : mClass(NULL), in JMediaExtractor()
51 mObject(NULL) { in JMediaExtractor()
53 CHECK(clazz != NULL); in JMediaExtractor()
65 mObject = NULL; in ~JMediaExtractor()
67 mClass = NULL; in ~JMediaExtractor()
119 jbyteArray byteArray = NULL; in readSampleData()
121 if (dst == NULL) { in readSampleData()
123 CHECK(byteBufClass != NULL); in readSampleData()
127 CHECK(arrayID != NULL); in readSampleData()
132 if (byteArray == NULL) { in readSampleData()
[all …]
Dandroid_media_MediaCrypto.cpp58 mObject = NULL; in ~JCrypto()
71 if (service == NULL) { in MakeCrypto()
72 return NULL; in MakeCrypto()
77 if (crypto == NULL || crypto->initCheck() != OK) { in MakeCrypto()
78 return NULL; in MakeCrypto()
89 if (crypto == NULL) { in MakeCrypto()
90 return NULL; in MakeCrypto()
96 return NULL; in MakeCrypto()
103 if (mCrypto == NULL) { in requiresSecureDecoderComponent()
114 if (crypto == NULL) { in IsCryptoSchemeSupported()
[all …]
Dandroid_media_Utils.cpp35 if (keys != NULL && values != NULL) { in ConvertKeyValueArraysToKeyedVector()
41 failed = ((keys != NULL && values == NULL) || in ConvertKeyValueArraysToKeyedVector()
42 (keys == NULL && values != NULL)); in ConvertKeyValueArraysToKeyedVector()
47 jniThrowException(env, "java/lang/IllegalArgumentException", NULL); in ConvertKeyValueArraysToKeyedVector()
57 const char* keyStr = env->GetStringUTFChars(key, NULL); in ConvertKeyValueArraysToKeyedVector()
62 const char* valueStr = env->GetStringUTFChars(value, NULL); in ConvertKeyValueArraysToKeyedVector()
80 CHECK(clazz != NULL); in makeIntegerObject()
83 CHECK(integerConstructID != NULL); in makeIntegerObject()
90 CHECK(clazz != NULL); in makeLongObject()
93 CHECK(longConstructID != NULL); in makeLongObject()
[all …]
Dandroid_mtp_MtpDevice.cpp106 const char *deviceNameStr = env->GetStringUTFChars(deviceName, NULL); in android_mtp_MtpDevice_open()
107 if (deviceNameStr == NULL) { in android_mtp_MtpDevice_open()
116 return (device != NULL); in android_mtp_MtpDevice_open()
136 return NULL; in android_mtp_MtpDevice_get_device_info()
141 return NULL; in android_mtp_MtpDevice_get_device_info()
144 if (info == NULL) { in android_mtp_MtpDevice_get_device_info()
147 return NULL; in android_mtp_MtpDevice_get_device_info()
172 return NULL; in android_mtp_MtpDevice_get_storage_ids()
175 return NULL; in android_mtp_MtpDevice_get_storage_ids()
191 return NULL; in android_mtp_MtpDevice_get_storage_info()
[all …]
Dandroid_media_MediaScanner.cpp74 if (mediaScannerClientInterface == NULL) { in MyMediaScannerClient()
107 if ((pathStr = mEnv->NewStringUTF(path)) == NULL) { in scanFile()
123 if ((nameStr = mEnv->NewStringUTF(name)) == NULL) { in handleStringTag()
130 char *cleaned = NULL; in handleStringTag()
145 if (valueStr == NULL) { in handleStringTag()
163 if ((mimeTypeStr = mEnv->NewStringUTF(mimeType)) == NULL) { in setMimeType()
199 if (mp == NULL) { in android_media_MediaScanner_processDirectory()
204 if (path == NULL) { in android_media_MediaScanner_processDirectory()
205 jniThrowException(env, kIllegalArgumentException, NULL); in android_media_MediaScanner_processDirectory()
209 const char *pathStr = env->GetStringUTFChars(path, NULL); in android_media_MediaScanner_processDirectory()
[all …]
/frameworks/base/libs/androidfw/
DAsset.cpp50 static Asset* gHead = NULL;
51 static Asset* gTail = NULL;
64 while (cur != NULL) { in getAssetAllocations()
84 mNext = mPrev = NULL; in Asset()
85 if (gTail == NULL) { in Asset()
105 if (mNext != NULL) { in ~Asset()
108 if (mPrev != NULL) { in ~Asset()
111 mNext = mPrev = NULL; in ~Asset()
130 return NULL; in createFromFile()
143 return NULL; in createFromFile()
[all …]
/frameworks/wilhelm/tests/sandbox/
Dengine.c31 result = slQueryNumSupportedEngineInterfaces(NULL); in main()
36 assert(engine_ids != NULL); in main()
38 assert(engine_req != NULL); in main()
55 result = slQuerySupportedEngineInterfaces(index, NULL); in main()
63 result = slCreateEngine(&engineObject, 0, NULL, numSupportedInterfaces, engine_ids, NULL); in main()
65 assert(NULL == engineObject); in main()
66 result = slCreateEngine(&engineObject, 0, NULL, numSupportedInterfaces, NULL, engine_req); in main()
68 assert(NULL == engineObject); in main()
72 result = slCreateEngine(NULL, 0, NULL, numSupportedInterfaces, engine_ids, engine_req); in main()
76 SLInterfaceID null_id[1] = {NULL}; in main()
[all …]
Dxa.c28 result = xaCreateEngine(&engineObject, 0, NULL, 0, NULL, NULL); in main()
44 result = (*engineEngine)->CreateOutputMix(engineEngine, &outputMixObject, 0, NULL, NULL); in main()
52 XA_DEFAULTDEVICEID_CAMERA, 0, NULL, NULL); in main()
56 result = (*engineEngine)->CreateRadioDevice(engineEngine, &deviceObject, 0, NULL, NULL); in main()
61 0, NULL, NULL); in main()
66 XA_DEFAULTDEVICEID_VIBRA, 0, NULL, NULL); in main()
82 fmtMime.mimeType = NULL; in main()
96 audioSnk.pFormat = NULL; in main()
99 locND.hWindow = NULL; in main()
100 locND.hDisplay = NULL; in main()
[all …]
/frameworks/av/media/libstagefright/
DMediaBuffer.cpp35 : mObserver(NULL), in MediaBuffer()
36 mNextBuffer(NULL), in MediaBuffer()
44 mOriginal(NULL) { in MediaBuffer()
48 : mObserver(NULL), in MediaBuffer()
49 mNextBuffer(NULL), in MediaBuffer()
57 mOriginal(NULL) { in MediaBuffer()
61 : mObserver(NULL), in MediaBuffer()
62 mNextBuffer(NULL), in MediaBuffer()
64 mData(NULL), in MediaBuffer()
71 mOriginal(NULL) { in MediaBuffer()
[all …]
/frameworks/compile/mclinker/lib/LD/
DELFFileFormat.cpp19 f_pNULLSection(NULL), in ELFFileFormat()
20 f_pGOT(NULL), in ELFFileFormat()
21 f_pPLT(NULL), in ELFFileFormat()
22 f_pRelDyn(NULL), in ELFFileFormat()
23 f_pRelPlt(NULL), in ELFFileFormat()
24 f_pRelaDyn(NULL), in ELFFileFormat()
25 f_pRelaPlt(NULL), in ELFFileFormat()
26 f_pComment(NULL), in ELFFileFormat()
27 f_pData1(NULL), in ELFFileFormat()
28 f_pDebug(NULL), in ELFFileFormat()
[all …]
/frameworks/wilhelm/tests/native-media/jni/
Dnative-media-jni.c31 static XAObjectItf engineObject = NULL;
32 static XAEngineItf engineEngine = NULL;
35 static XAObjectItf outputMixObject = NULL;
38 static XAObjectItf playerObj = NULL;
39 static XAPlayItf playerPlayItf = NULL;
40 static XAAndroidBufferQueueItf playerBQItf = NULL;
41 static XAStreamInformationItf playerStreamInfoItf = NULL;
42 static XAVolumeItf playerVolItf = NULL;
106 assert(NULL == pCallbackContext); in AndroidBufferQueueCallback()
131 if ((pBufferData == NULL) && (pBufferContext != NULL)) { in AndroidBufferQueueCallback()
[all …]
/frameworks/base/core/jni/
Dandroid_util_XmlBlock.cpp38 if (bArray == NULL) { in android_content_XmlBlock_nativeCreate()
39 jniThrowNullPointerException(env, NULL); in android_content_XmlBlock_nativeCreate()
45 jniThrowException(env, "java/lang/IndexOutOfBoundsException", NULL); in android_content_XmlBlock_nativeCreate()
49 jbyte* b = env->GetByteArrayElements(bArray, NULL); in android_content_XmlBlock_nativeCreate()
53 if (osb == NULL || osb->getError() != NO_ERROR) { in android_content_XmlBlock_nativeCreate()
54 jniThrowException(env, "java/lang/IllegalArgumentException", NULL); in android_content_XmlBlock_nativeCreate()
65 if (osb == NULL) { in android_content_XmlBlock_nativeGetStringBlock()
66 jniThrowNullPointerException(env, NULL); in android_content_XmlBlock_nativeGetStringBlock()
77 if (osb == NULL) { in android_content_XmlBlock_nativeCreateParseState()
78 jniThrowNullPointerException(env, NULL); in android_content_XmlBlock_nativeCreateParseState()
[all …]
Dandroid_net_LocalSocketImpl.cpp61 return NULL; in socket_create()
78 nameUtf8 = env->GetStringUTFChars(name, NULL); in socket_connect_local()
82 if (env->ExceptionOccurred() != NULL) { in socket_connect_local()
115 if (name == NULL) { in socket_bind_local()
116 jniThrowNullPointerException(env, NULL); in socket_bind_local()
121 if (env->ExceptionOccurred() != NULL) { in socket_bind_local()
125 nameUtf8 = env->GetStringUTFChars(name, NULL); in socket_bind_local()
146 if (env->ExceptionOccurred() != NULL) { in socket_listen()
175 if (s == NULL) { in socket_accept()
176 jniThrowNullPointerException(env, NULL); in socket_accept()
[all …]
Dandroid_util_StringBlock.cpp38 if (bArray == NULL) { in android_content_StringBlock_nativeCreate()
39 jniThrowNullPointerException(env, NULL); in android_content_StringBlock_nativeCreate()
45 jniThrowException(env, "java/lang/IndexOutOfBoundsException", NULL); in android_content_StringBlock_nativeCreate()
49 jbyte* b = env->GetByteArrayElements(bArray, NULL); in android_content_StringBlock_nativeCreate()
53 if (osb == NULL || osb->getError() != NO_ERROR) { in android_content_StringBlock_nativeCreate()
54 jniThrowException(env, "java/lang/IllegalArgumentException", NULL); in android_content_StringBlock_nativeCreate()
65 if (osb == NULL) { in android_content_StringBlock_nativeGetSize()
66 jniThrowNullPointerException(env, NULL); in android_content_StringBlock_nativeGetSize()
77 if (osb == NULL) { in android_content_StringBlock_nativeGetString()
78 jniThrowNullPointerException(env, NULL); in android_content_StringBlock_nativeGetString()
[all …]
Dandroid_util_AssetManager.cpp67 jclass g_stringClass = NULL;
83 uint32_t typeSpecFlags, ResTable_config* config = NULL);
93 env->SetObjectField(outValue, gTypedValueOffsets.mString, NULL); in copyValue()
97 if (config != NULL) { in copyValue()
109 if (am != NULL) { in assetManagerForJavaObject()
113 return NULL; in assetManagerForJavaObject()
120 if (am == NULL) { in android_content_AssetManager_openAsset()
127 if (fileName8.c_str() == NULL) { in android_content_AssetManager_openAsset()
139 if (a == NULL) { in android_content_AssetManager_openAsset()
158 return NULL; in returnParcelFileDescriptor()
[all …]
Dcom_google_android_gles_jni_EGLImpl.cpp91 if (attrib_list == NULL) { in validAttribList()
104 if (attrib_list != NULL) { in beginNativeAttribList()
112 if (attrib_list != NULL) { in endNativeAttributeList()
119 if (display == NULL || (major_minor != NULL && in jni_eglInitialize()
121 jniThrowException(_env, "java/lang/IllegalArgumentException", NULL); in jni_eglInitialize()
126 jboolean success = eglInitialize(dpy, NULL, NULL); in jni_eglInitialize()
142 if (display == NULL || context == NULL || value == NULL in jni_eglQueryContext()
144 jniThrowException(_env, "java/lang/IllegalArgumentException", NULL); in jni_eglQueryContext()
161 if (display == NULL || surface == NULL || value == NULL in jni_eglQuerySurface()
163 jniThrowException(_env, "java/lang/IllegalArgumentException", NULL); in jni_eglQuerySurface()
[all …]
/frameworks/base/media/jni/audioeffect/
Dandroid_media_AudioEffect.cpp100 jobject obj = NULL; in effectCallback()
101 jbyteArray array = NULL; in effectCallback()
151 if (array == NULL) { in effectCallback()
155 bytes = env->GetByteArrayElements(array, NULL); in effectCallback()
192 fields.clazzEffect = NULL; in android_media_AudioEffect_native_init()
193 fields.clazzDesc = NULL; in android_media_AudioEffect_native_init()
197 if (clazz == NULL) { in android_media_AudioEffect_native_init()
208 if (fields.midPostNativeEvent == NULL) { in android_media_AudioEffect_native_init()
218 if (fields.fidNativeAudioEffect == NULL) { in android_media_AudioEffect_native_init()
226 if (fields.fidJniData == NULL) { in android_media_AudioEffect_native_init()
[all …]
/frameworks/wilhelm/src/itf/
DIEngineCapabilities.c27 if (NULL == pProfilesSupported) { in IEngineCapabilities_QuerySupportedProfiles()
51 if (NULL != pNumMaxVoices) in IEngineCapabilities_QueryAvailableVoices()
53 if (NULL != pIsAbsoluteMax) in IEngineCapabilities_QueryAvailableVoices()
55 if (NULL != pNumFreeVoices) in IEngineCapabilities_QueryAvailableVoices()
73 if (NULL == pNum) { in IEngineCapabilities_QueryNumberOfMIDISynthesizers()
89 if (!(NULL != pMajor && NULL != pMinor && NULL != pStep)) { in IEngineCapabilities_QueryAPIVersion()
110 if (NULL != pIndex) { in IEngineCapabilities_QueryLEDCapabilities()
112 if (NULL != pLEDDeviceID || NULL != pDescriptor) { in IEngineCapabilities_QueryLEDCapabilities()
118 if (NULL != pLEDDeviceID) in IEngineCapabilities_QueryLEDCapabilities()
120 if (NULL != pDescriptor) in IEngineCapabilities_QueryLEDCapabilities()
[all …]

12345678910>>...54