Searched defs:NULL (Results 1 - 6 of 6) sorted by relevance

/system/core/sh/
H A Dshell.h66 #ifndef NULL
67 #define NULL (void *)0 macro
/system/core/sh/bltin/
H A Dbltin.h80 #undef NULL macro
83 #define INITARGS(argv) if ((commandname = argv[0]) == NULL) {fputs("Argc is zero\n", stderr); exit(2);} else
/system/core/include/utils/
H A DUniquePtr.h28 #include <cstdlib> // For NULL.
61 explicit UniquePtr(T* ptr = NULL) : mPtr(ptr) { argument
77 mPtr = NULL;
84 void reset(T* ptr = NULL) { argument
109 explicit UniquePtr(T* ptr = NULL) : mPtr(ptr) { argument
123 mPtr = NULL;
127 void reset(T* ptr = NULL) { argument
/system/core/libpixelflinger/codeflinger/
H A DCodeCache.cpp62 heap_error("HEAP MEMORY CORRUPTION", __FUNCTION__, NULL)
77 static void* gExecutableStore = NULL;
78 static mspace gMspace = NULL;
83 if (gExecutableStore == NULL) {
89 gExecutableStore = mmap(NULL, kMaxCodeCacheCapacity,
92 LOG_ALWAYS_FATAL_IF(gExecutableStore == NULL,
107 LOG_ALWAYS_FATAL_IF(mBase == NULL,
144 LOG_ALWAYS_FATAL_IF(mBase == NULL,
86 LOG_ALWAYS_FATAL_IF(fd < 0, Ó Ó, strerror(errno)); gExecutableStore = mmap(NULL, kMaxCodeCacheCapacity, PROT_READ | PROT_WRITE | PROT_EXEC, MAP_PRIVATE, fd, 0); LOG_ALWAYS_FATAL_IF(gExecutableStore == NULL, Ó Ó, strerror(errno)); close(fd); gMspace = create_mspace_with_base(gExecutableStore, kMaxCodeCacheCapacity, false); mspace_set_footprint_limit(gMspace, kMaxCodeCacheCapacity); } return gMspace; } Assembly::Assembly(size_t size) : mCount(1), mSize(0) { mBase = (uint32_t*)mspace_malloc(getMspace(), size); LOG_ALWAYS_FATAL_IF(mBase == NULL, Ó Ó, size, kMaxCodeCacheCapacity); mSize = size; } Assembly::~Assembly() { mspace_free(getMspace(), mBase); } void Assembly::incStrong(const void*) const { android_atomic_inc(&mCount); } void Assembly::decStrong(const void*) const { if (android_atomic_dec(&mCount) == 1) { delete this; } } ssize_t Assembly::size() const { if (!mBase) return NO_MEMORY; return mSize; } uint32_t* Assembly::base() const { return mBase; } ssize_t Assembly::resize(size_t newSize) { mBase = (uint32_t*)mspace_realloc(getMspace(), mBase, newSize); LOG_ALWAYS_FATAL_IF(mBase == NULL, Ó Ó, newSize, kMaxCodeCacheCapacity); mSize = newSize; return size(); } CodeCache::CodeCache(size_t size) : mCacheSize(size), mCacheInUse(0) { pthread_mutex_init(&mLock, 0); } CodeCache::~CodeCache() { pthread_mutex_destroy(&mLock); } sp<Assembly> CodeCache::lookup(const AssemblyKeyBase& keyBase) const { pthread_mutex_lock(&mLock); sp<Assembly> r; ssize_t index = mCacheData.indexOfKey(key_t(keyBase)); if (index >= 0) argument
/system/core/adb/
H A Dadb.c110 { NULL, 0 }
113 if (p == NULL)
121 if (q == NULL) {
126 for (tagn = 0; tags[tagn].tag != NULL; tagn++)
396 if (t == NULL) {
419 * pointer to a char pointer. It is assumed that if *dst is non-NULL, it
428 *dst = NULL;
465 key = adb_strtok_r(NULL, prop_seps, &save);
744 // If |buffer| is NULL, does not write but returns required size.
754 if (buffer != NULL) {
1376 WriteFile( GetStdHandle( STD_OUTPUT_HANDLE ), "OK\\n", 3, &count, NULL ); local
[all...]
/system/security/keystore/
H A Dkeystore.cpp107 rc = hw_get_module_by_class(KEYSTORE_HARDWARE_MODULE_ID, NULL, &mod);
123 *dev = NULL;
722 salt = NULL;
736 if (salt == NULL) {
778 while ((file = readdir(dir)) != NULL) {
817 if (salt != NULL) {
955 if (userState == NULL) {
969 while ((file = readdir(dir)) != NULL) {
1051 if (existing == NULL) {
1073 return getGrant(filename, uid) != NULL;
1827 pubExpBlob->size(), NULL)); local
[all...]

Completed in 6537 milliseconds