Home
last modified time | relevance | path

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

12345678910>>...68

/frameworks/wilhelm/src/
Dsles.cpp32 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 …]
Dhandlers.h44 #define handler_MediaPlayer_gain NULL
45 #define handler_MediaPlayer_transport NULL
46 #define handler_MediaPlayer_position NULL
47 #define handler_MediaPlayer_abq_enqueue NULL
48 #define handler_MediaPlayer_play_state NULL
49 #define handler_AudioPlayer_transport NULL
50 #define handler_AudioPlayer_position NULL
51 #define handler_AudioPlayer_bq_enqueue NULL
52 #define handler_AudioPlayer_abq_enqueue NULL
53 #define handler_AudioPlayer_play_state NULL
[all …]
/frameworks/base/libs/androidfw/tests/
DConfigLocale_test.cpp118 if (lang != NULL) { in fillIn()
122 if (country != NULL) { in fillIn()
126 if (script != NULL) { in fillIn()
134 if (variant != NULL) { in fillIn()
143 fillIn("en", NULL, NULL, NULL, &l); in TEST()
144 fillIn(NULL, NULL, NULL, NULL, &r); in TEST()
149 fillIn("eng", NULL, NULL, NULL, &l); in TEST()
153 fillIn("eng", "419", NULL, NULL, &r); in TEST()
157 fillIn("en", NULL, NULL, NULL, &l); in TEST()
158 fillIn("en", "US", NULL, NULL, &r); in TEST()
[all …]
/frameworks/compile/mclinker/include/mcld/LD/
DELFFileFormat.h43 return (f_pNULLSection != NULL) && (f_pNULLSection->size() != 0); in hasNULLSection()
46 bool hasGOT() const { return (f_pGOT != NULL) && (f_pGOT->size() != 0); } in hasGOT()
48 bool hasPLT() const { return (f_pPLT != NULL) && (f_pPLT->size() != 0); } in hasPLT()
51 return (f_pRelDyn != NULL) && (f_pRelDyn->size() != 0); in hasRelDyn()
55 return (f_pRelPlt != NULL) && (f_pRelPlt->size() != 0); in hasRelPlt()
59 return (f_pRelaDyn != NULL) && (f_pRelaDyn->size() != 0); in hasRelaDyn()
63 return (f_pRelaPlt != NULL) && (f_pRelaPlt->size() != 0); in hasRelaPlt()
68 return (f_pComment != NULL) && (f_pComment->size() != 0); in hasComment()
72 return (f_pData1 != NULL) && (f_pData1->size() != 0); in hasData1()
76 return (f_pDebug != NULL) && (f_pDebug->size() != 0); in hasDebug()
[all …]
/frameworks/base/media/jni/
Dandroid_media_MediaCodecList.cpp36 if (mcl == NULL) { in getCodecList()
47 if (mcl == NULL) { in android_media_MediaCodecList_getCodecCount()
57 if (mcl == NULL) { in android_media_MediaCodecList_getCodecName()
59 return NULL; in android_media_MediaCodecList_getCodecName()
63 if (info == NULL) { in android_media_MediaCodecList_getCodecName()
64 jniThrowException(env, "java/lang/IllegalArgumentException", NULL); in android_media_MediaCodecList_getCodecName()
65 return NULL; in android_media_MediaCodecList_getCodecName()
74 if (name == NULL) { in android_media_MediaCodecList_findCodecByName()
75 jniThrowException(env, "java/lang/IllegalArgumentException", NULL); in android_media_MediaCodecList_findCodecByName()
79 const char *nameStr = env->GetStringUTFChars(name, NULL); in android_media_MediaCodecList_findCodecByName()
[all …]
Dandroid_media_MediaRecorder.cpp86 if (clazz == NULL) { in JNIMediaRecorderListener()
88 jniThrowException(env, "java/lang/Exception", NULL); in JNIMediaRecorderListener()
111 env->CallStaticVoidMethod(mClass, fields.post_event, mObject, msg, ext1, ext2, NULL); in notify()
133 jniThrowException(env, "java/lang/IllegalStateException", NULL); in process_media_recorder_call()
167 if (camera == NULL) { in android_media_MediaRecorder_setCamera()
171 sp<Camera> c = get_native_camera(env, camera, NULL); in android_media_MediaRecorder_setCamera()
172 if (c == NULL) { in android_media_MediaRecorder_setCamera()
177 if (mr == NULL) { in android_media_MediaRecorder_setCamera()
178 jniThrowException(env, "java/lang/IllegalStateException", NULL); in android_media_MediaRecorder_setCamera()
194 if (mr == NULL) { in android_media_MediaRecorder_setVideoSource()
[all …]
Dandroid_media_MediaPlayer.cpp109 virtual void notify(int msg, int ext1, int ext2, const Parcel *obj = NULL);
122 if (clazz == NULL) { in JNIMediaPlayerListener()
124 jniThrowException(env, "java/lang/Exception", NULL); in JNIMediaPlayerListener()
147 if (jParcel != NULL) { in notify()
156 msg, ext1, ext2, NULL); in notify()
194 if (exception == NULL) { // Don't throw exception. Instead, send an event. in process_media_player_call()
201 jniThrowException(env, "java/lang/IllegalStateException", NULL); in process_media_player_call()
203 jniThrowException(env, "java/lang/IllegalArgumentException", NULL); in process_media_player_call()
205 jniThrowException(env, "java/lang/SecurityException", NULL); in process_media_player_call()
226 if (mp == NULL ) { in android_media_MediaPlayer_setDataSourceAndHeaders()
[all …]
Dandroid_media_MediaExtractor.cpp59 : mClass(NULL), in JMediaExtractor()
60 mObject(NULL) { in JMediaExtractor()
62 CHECK(clazz != NULL); in JMediaExtractor()
74 mObject = NULL; in ~JMediaExtractor()
76 mClass = NULL; in ~JMediaExtractor()
95 if (casBinderObj == NULL) { in setMediaCas()
101 if (hwBinder == NULL) { in setMediaCas()
106 if (cas == NULL) { in setMediaCas()
170 jbyteArray byteArray = NULL; in readSampleData()
173 CHECK(byteBufClass.get() != NULL); in readSampleData()
[all …]
Dandroid_media_MediaCrypto.cpp54 if (mCrypto != NULL) { in ~JCrypto()
62 mObject = NULL; in ~JCrypto()
71 if (service == NULL) { in MakeCrypto()
72 return NULL; in MakeCrypto()
76 if (crypto == NULL || (crypto->initCheck() != OK && crypto->initCheck() != NO_INIT)) { in MakeCrypto()
77 return NULL; in MakeCrypto()
88 if (crypto == NULL) { in MakeCrypto()
89 return NULL; in MakeCrypto()
95 return NULL; in MakeCrypto()
102 if (mCrypto == NULL) { in requiresSecureDecoderComponent()
[all …]
Dandroid_media_MediaCodec.cpp124 : mClass(NULL), in JMediaCodec()
125 mObject(NULL) { in JMediaCodec()
127 CHECK(clazz != NULL); in JMediaCodec()
147 CHECK((mCodec != NULL) != (mInitStatus != OK)); in JMediaCodec()
153 CHECK(mByteBufferClass != NULL); in cacheJavaObjects()
157 CHECK(byteOrderClass.get() != NULL); in cacheJavaObjects()
161 CHECK(nativeOrderID != NULL); in cacheJavaObjects()
166 CHECK(mNativeByteOrderObj != NULL); in cacheJavaObjects()
168 nativeByteOrderObj = NULL; in cacheJavaObjects()
174 CHECK(mByteBufferOrderMethodID != NULL); in cacheJavaObjects()
[all …]
Dandroid_media_MediaDescrambler.cpp50 if (descrambler != NULL) { in setDescrambler()
53 if (old != NULL) { in setDescrambler()
64 jbyteArray byteArray = NULL; in getBufferAndSize()
67 CHECK(byteBufClass.get() != NULL); in getBufferAndSize()
69 if (ptr == NULL) { in getBufferAndSize()
72 CHECK(arrayID != NULL); in getBufferAndSize()
77 if (byteArray == NULL) { in getBufferAndSize()
86 if (byteArray != NULL) { in getBufferAndSize()
101 if (mDescrambler == NULL) { in JDescrambler()
102 jniThrowException(env, "java/lang/NullPointerException", NULL); in JDescrambler()
[all …]
/frameworks/base/libs/androidfw/
DAsset.cpp53 static Asset* gHead = NULL;
54 static Asset* gTail = NULL;
60 asset->mNext = asset->mPrev = NULL; in registerAsset()
61 if (gTail == NULL) { in registerAsset()
84 if (asset->mNext != NULL) { in unregisterAsset()
87 if (asset->mPrev != NULL) { in unregisterAsset()
90 asset->mNext = asset->mPrev = NULL; in unregisterAsset()
108 while (cur != NULL) { in getAssetAllocations()
124 : mAccessMode(ACCESS_UNKNOWN), mNext(NULL), mPrev(NULL) in Asset()
143 return NULL; in createFromFile()
[all …]
/frameworks/compile/mclinker/lib/LD/
DELFFileFormat.cpp18 : f_pNULLSection(NULL), in ELFFileFormat()
19 f_pGOT(NULL), in ELFFileFormat()
20 f_pPLT(NULL), in ELFFileFormat()
21 f_pRelDyn(NULL), in ELFFileFormat()
22 f_pRelPlt(NULL), in ELFFileFormat()
23 f_pRelaDyn(NULL), in ELFFileFormat()
24 f_pRelaPlt(NULL), in ELFFileFormat()
25 f_pComment(NULL), in ELFFileFormat()
26 f_pData1(NULL), in ELFFileFormat()
27 f_pDebug(NULL), in ELFFileFormat()
[all …]
/frameworks/compile/mclinker/unittests/
DGraphTest.cpp43 ASSERT_TRUE(NULL == u1->first_in); in TEST_F()
44 ASSERT_TRUE(NULL == u1->first_out); in TEST_F()
46 ASSERT_TRUE(NULL == u1->next); in TEST_F()
48 ASSERT_TRUE(NULL == u2->first_in); in TEST_F()
49 ASSERT_TRUE(NULL == u2->first_out); in TEST_F()
53 ASSERT_TRUE(NULL == u3->first_in); in TEST_F()
54 ASSERT_TRUE(NULL == u3->first_out); in TEST_F()
56 ASSERT_TRUE(NULL == u3->prev); in TEST_F()
58 ListDigraph::Node* head = NULL; in TEST_F()
64 ASSERT_TRUE(NULL == u1->first_in); in TEST_F()
[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.c29 result = xaCreateEngine(&engineObject, 0, NULL, 0, NULL, NULL); in main()
45 result = (*engineEngine)->CreateOutputMix(engineEngine, &outputMixObject, 0, NULL, NULL); in main()
53 XA_DEFAULTDEVICEID_CAMERA, 0, NULL, NULL); in main()
57 result = (*engineEngine)->CreateRadioDevice(engineEngine, &deviceObject, 0, NULL, NULL); in main()
62 0, NULL, NULL); in main()
67 XA_DEFAULTDEVICEID_VIBRA, 0, NULL, NULL); in main()
84 fmtMime.mimeType = NULL; in main()
98 audioSnk.pFormat = NULL; in main()
101 locND.hWindow = NULL; // FIXME wrong in main()
102 locND.hDisplay = NULL; in main()
[all …]
/frameworks/base/tools/aapt/
DAaptConfig.h37 bool parse(const android::String8& str, ConfigDescription* out = NULL);
55 bool parseMcc(const char* str, android::ResTable_config* out = NULL);
56 bool parseMnc(const char* str, android::ResTable_config* out = NULL);
57 bool parseLayoutDirection(const char* str, android::ResTable_config* out = NULL);
58 bool parseSmallestScreenWidthDp(const char* str, android::ResTable_config* out = NULL);
59 bool parseScreenWidthDp(const char* str, android::ResTable_config* out = NULL);
60 bool parseScreenHeightDp(const char* str, android::ResTable_config* out = NULL);
61 bool parseScreenLayoutSize(const char* str, android::ResTable_config* out = NULL);
62 bool parseScreenLayoutLong(const char* str, android::ResTable_config* out = NULL);
63 bool parseScreenRound(const char* name, android::ResTable_config* out = NULL);
[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()
55 jniThrowException(env, "java/lang/IllegalArgumentException", NULL); in android_content_XmlBlock_nativeCreate()
66 if (osb == NULL) { in android_content_XmlBlock_nativeGetStringBlock()
67 jniThrowNullPointerException(env, NULL); in android_content_XmlBlock_nativeGetStringBlock()
78 if (osb == NULL) { in android_content_XmlBlock_nativeCreateParseState()
79 jniThrowNullPointerException(env, NULL); in android_content_XmlBlock_nativeCreateParseState()
84 if (st == NULL) { in android_content_XmlBlock_nativeCreateParseState()
[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()
66 if (osb == NULL) { in android_content_StringBlock_nativeGetSize()
67 jniThrowNullPointerException(env, NULL); in android_content_StringBlock_nativeGetSize()
78 if (osb == NULL) { in android_content_StringBlock_nativeGetString()
79 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 EGLBoolean 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 …]
Dandroid_util_AssetManager.cpp96 jclass g_stringClass = NULL;
102 uint32_t typeSpecFlags, ResTable_config* config = NULL);
112 env->SetObjectField(outValue, gTypedValueOffsets.mString, NULL); in copyValue()
116 if (config != NULL) { in copyValue()
171 memset(argv, NULL, sizeof(argv)); in verifySystemIdmaps()
203 waitpid(pid, NULL, 0); in verifySystemIdmaps()
215 if (am != NULL) { in assetManagerForJavaObject()
219 return NULL; in assetManagerForJavaObject()
226 if (am == NULL) { in android_content_AssetManager_openAsset()
233 if (fileName8.c_str() == NULL) { in android_content_AssetManager_openAsset()
[all …]
/frameworks/av/media/libstagefright/foundation/
DMediaBuffer.cpp37 : mObserver(NULL), in MediaBuffer()
45 mOriginal(NULL) { in MediaBuffer()
49 : mObserver(NULL), in MediaBuffer()
51 mData(NULL), in MediaBuffer()
57 mOriginal(NULL) { in MediaBuffer()
66 if (mMemory == NULL) { in MediaBuffer()
69 if (mData == NULL) { in MediaBuffer()
81 : mObserver(NULL), in MediaBuffer()
83 mData(NULL), in MediaBuffer()
90 mOriginal(NULL) { in MediaBuffer()
[all …]
/frameworks/compile/mclinker/lib/Support/
DTarget.cpp19 : Name(NULL), in Target()
20 TripleMatchQualityFn(NULL), in Target()
21 TargetMachineCtorFn(NULL), in Target()
22 MCLinkerCtorFn(NULL), in Target()
23 TargetLDBackendCtorFn(NULL), in Target()
24 DiagnosticLineInfoCtorFn(NULL) { in Target()
28 if (TripleMatchQualityFn == NULL) in getTripleQuality()
36 if (TargetMachineCtorFn == NULL) in createTargetMachine()
37 return NULL; in createTargetMachine()
46 if (MCLinkerCtorFn == NULL) in createMCLinker()
[all …]
/frameworks/wilhelm/src/itf/
DIEngineCapabilities.cpp27 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>>...68