Home
last modified time | relevance | path

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

12345678910>>...59

/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()
96 run_command("PROCESSES", 10, "ps", "-P", NULL); in dumpstate()
97 run_command("PROCESSES AND THREADS", 10, "ps", "-t", "-p", "-P", NULL); in dumpstate()
98 run_command("LIBRANK", 10, "librank", NULL); in dumpstate()
102 run_command("LIST OF OPEN FILES", 10, SU_PATH, "root", "lsof", NULL); in dumpstate()
[all …]
/frameworks/base/core/jni/
Dandroid_os_SELinux.cpp97 return NULL; in getPeerCon()
99 if (fileDescriptor == NULL) { in getPeerCon()
101 return NULL; in getPeerCon()
104 security_context_t context = NULL; in getPeerCon()
105 jstring securityString = NULL; in getPeerCon()
109 if (env->ExceptionOccurred() != NULL) { in getPeerCon()
122 if (context != NULL) in getPeerCon()
127 return NULL; in getPeerCon()
145 char * securityContext = NULL; in setFSCreateCon()
146 const char *constant_securityContext = NULL; in setFSCreateCon()
[all …]
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_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 …]
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 …]
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/
Dandroid_media_MediaPlayer.cpp70 virtual void notify(int msg, int ext1, int ext2, const Parcel *obj = NULL);
83 if (clazz == NULL) { in JNIMediaPlayerListener()
85 jniThrowException(env, "java/lang/Exception", NULL); in JNIMediaPlayerListener()
108 if (jParcel != NULL) { in notify()
116 msg, ext1, ext2, NULL); in notify()
154 if (exception == NULL) { // Don't throw exception. Instead, send an event. in process_media_player_call()
161 jniThrowException(env, "java/lang/IllegalStateException", NULL); in process_media_player_call()
163 jniThrowException(env, "java/lang/SecurityException", NULL); in process_media_player_call()
184 if (mp == NULL ) { in android_media_MediaPlayer_setDataSourceAndHeaders()
185 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()
99 if (mCodec != NULL) { in ~JMediaCodec()
107 mObject = NULL; in ~JMediaCodec()
109 mClass = NULL; in ~JMediaCodec()
118 if (surfaceTexture != NULL) { in configure()
218 CHECK(byteBufferClass != NULL); in getBuffers()
225 CHECK(orderID != NULL); in getBuffers()
[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_media_MediaExtractor.cpp57 CHECK(datasourceclass != NULL); in JavaDataSourceBridge()
60 CHECK(mReadMethod != NULL); in JavaDataSourceBridge()
63 CHECK(mGetSizeMethod != NULL); in JavaDataSourceBridge()
66 CHECK(mCloseMethod != NULL); in JavaDataSourceBridge()
101 CHECK(size != NULL); in getSize()
116 : mClass(NULL), in JMediaExtractor()
117 mObject(NULL) { in JMediaExtractor()
119 CHECK(clazz != NULL); in JMediaExtractor()
131 mObject = NULL; in ~JMediaExtractor()
133 mClass = NULL; in ~JMediaExtractor()
[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 …]
/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/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/compile/libbcc/lib/Renderscript/
DRSCompilerDriver.cpp63 RSCompilerDriver::RSCompilerDriver() : mConfig(NULL), mCompiler() { in RSCompilerDriver()
78 RSExecutable *result = NULL; in loadScriptCache()
81 return NULL; in loadScriptCache()
91 return NULL; in loadScriptCache()
99 if ((output_file == NULL) || output_file->hasError()) { in loadScriptCache()
103 return NULL; in loadScriptCache()
116 return NULL; in loadScriptCache()
128 if (info == NULL) { in loadScriptCache()
130 return NULL; in loadScriptCache()
137 if (result == NULL) { in loadScriptCache()
[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 …]
/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/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/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/support/renderscript/v8/rs_support/driver/
DrsdCore.cpp40 NULL,
41 NULL,
42 NULL,
43 NULL,
46 NULL,
69 NULL,
70 NULL,
71 NULL,
72 NULL,
91 NULL,
[all …]

12345678910>>...59