/toolchain/binutils/binutils-2.25/libiberty/ |
strndup.c | 27 memory was available. The result is always NUL terminated. 43 char *result; local 49 result = (char *) malloc (len + 1); 50 if (!result) 53 result[len] = '\0'; 54 return (char *) memcpy (result, s, len);
|
xstrndup.c | 26 without fail, using @code{xmalloc} to obtain memory. The result is 50 char *result; local 56 result = XNEWVEC (char, len + 1); 58 result[len] = '\0'; 59 return (char *) memcpy (result, s, len);
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
SyncResultTest.java | 20 SyncResult result = new SyncResult(); local 21 assertThat(result.stats, not(nullValue())); 26 SyncResult result = new SyncResult(); local 27 assertFalse(result.hasSoftError()); 28 result.stats.numIoExceptions++; 29 assertTrue(result.hasSoftError()); 30 assertTrue(result.hasError()); 35 SyncResult result = new SyncResult(); local 36 assertFalse(result.hasHardError()); 37 result.stats.numAuthExceptions++ 44 SyncResult result = new SyncResult(); local 52 SyncResult result = new SyncResult(); local [all...] |
/external/guava/guava-gwt/test-super/com/google/common/cache/super/com/google/common/cache/ |
TestingCacheLoaders.java | 49 Map<K, V> result = Maps.newHashMap(); // allow nulls local 51 result.put(key, load(key)); 53 return result;
|
/external/guava/guava-tests/test/com/google/common/cache/ |
TestingCacheLoaders.java | 52 Map<K, V> result = Maps.newHashMap(); // allow nulls local 54 result.put(key, load(key)); 56 return result;
|
/external/guice/core/test/com/google/inject/ |
SuiteUtils.java | 28 TestSuite result = new TestSuite(suite.getName()); local 38 result.addTest(removeSuppressedTests((TestSuite) test, suppressedTestNames)); 40 result.addTest(test); 44 return result;
|
/external/jcommander/src/main/java/com/beust/jcommander/internal/ |
Maps.java | 36 Map<T, T> result = Maps.newHashMap(); local 38 result.put(parameters[i], parameters[i + 1]); 40 return result;
|
/external/testng/src/test/java/test/factory/ |
FactoryOrderTest.java | 18 List result = new ArrayList(); local 22 result.add(new FactoryOrderSampleTest(i)); 25 return result.toArray();
|
FactoryWithDataProvider.java | 21 List<Object> result = new ArrayList<>(); local 23 result.add(new OddTest(n)); 26 return result.toArray();
|
/bionic/libc/bionic/ |
__vsnprintf_chk.cpp | 71 int result = __vsnprintf_chk(dest, supplied_size, flags, dest_len_from_compiler, format, va); local 73 return result;
|
__vsprintf_chk.cpp | 49 int result = vsnprintf(dest, dest_len_from_compiler, format, va); local 50 if ((size_t) result >= dest_len_from_compiler) { 53 return result; 71 int result = __vsprintf_chk(dest, flags, dest_len_from_compiler, format, va); local 73 return result;
|
fchmod.cpp | 40 int result = ___fchmod(fd, mode); local 42 if ((result == 0) || (errno != EBADF)) { 43 return result; 63 result = chmod(buf, mode); 64 if ((result == -1) && (errno == ELOOP)) { 71 return result;
|
fgetxattr.cpp | 40 ssize_t result = ___fgetxattr(fd, name, value, size); local 42 if ((result != -1) || (errno != EBADF)) { 43 return result;
|
flistxattr.cpp | 40 ssize_t result = ___flistxattr(fd, list, size); local 42 if ((result != -1) || (errno != EBADF)) { 43 return result;
|
fork.cpp | 45 int result = syscall(__NR_clone, FORK_FLAGS, NULL, NULL, &(self->tid), NULL); local 47 int result = syscall(__NR_clone, FORK_FLAGS, NULL, NULL, NULL, &(self->tid)); local 49 if (result == 0) { 56 return result;
|
fsetxattr.cpp | 40 int result = ___fsetxattr(fd, name, value, size, flags); local 42 if ((result == 0) || (errno != EBADF)) { 43 return result;
|
/bionic/tests/libs/ |
dlsym_from_this_functions.cpp | 25 int* result = static_cast<int*>(dlsym(RTLD_DEFAULT, "test_dlsym_symbol")); local 27 if (result == nullptr) { 30 return result; 35 int* result = static_cast<int*>(dlsym(RTLD_DEFAULT, "test_dlsym_symbol2")); local 37 if (result == nullptr) { 40 return result; 45 int* result = static_cast<int*>(dlsym(RTLD_NEXT, "test_dlsym_symbol")); local 47 if (result == nullptr) { 50 return result;
|
/cts/tests/tests/security/jni/ |
android_security_cts_KernelSettingsTest.cpp | 25 int result = getxattr("/system/bin/cat", "security.capability", NULL, 0); local 26 return ((result != -1) || (errno == ENODATA));
|
/external/aac/libFDK/include/arm/ |
clz_arm.h | 101 INT result; local 102 asm("clz %0, %1 ": "=r"(result) : "r"(value) ); 103 return result; 108 INT result; local 115 result = fixnormz_D(value); 116 return result - 1;
|
/external/aac/libFDK/include/mips/ |
cplx_mul.h | 110 INT result; local 114 "mfhi %[result];\n" 115 : [result]"=r"(result) 119 *c_Re = result; 123 "mfhi %[result];\n" 124 : [result]"=r"(result) 127 *c_Im = result; 139 INT result; local [all...] |
/external/bison/lib/ |
calloc.c | 44 void *result; local 65 result = calloc (n, s); 68 if (result == NULL) 72 return result;
|
close.c | 33 int result; local 37 result = close (fd); 41 result = -1; 46 return result;
|
malloc.c | 41 void *result; local 48 result = malloc (n); 51 if (result == NULL) 55 return result;
|
pipe2.c | 58 int result = pipe2 (fd, flags); local 59 if (!(result < 0 && errno == ENOSYS)) 62 return result;
|
realloc.c | 49 void *result; local 68 result = malloc (n); 71 result = realloc (p, n); 74 if (result == NULL) 78 return result;
|