/external/lzma/Java/Tukaani/src/org/tukaani/xz/simple/ |
SPARC.java | 22 public int code(byte[] buf, int off, int len) { 27 if ((buf[i] == 0x40 && (buf[i + 1] & 0xC0) == 0x00) 28 || (buf[i] == 0x7F && (buf[i + 1] & 0xC0) == 0xC0)) { 29 int src = ((buf[i] & 0xFF) << 24) 30 | ((buf[i + 1] & 0xFF) << 16) 31 | ((buf[i + 2] & 0xFF) << 8) 32 | (buf[i + 3] & 0xFF); 45 buf[i] = (byte)(dest >>> 24) [all...] |
/external/valgrind/coregrind/m_gdbserver/ |
valgrind-low-arm64.c | 139 void transfer_register (ThreadId tid, int abs_regno, void * buf, 152 case 0: VG_(transfer) (&arm->guest_X0, buf, dir, size, mod); break; 153 case 1: VG_(transfer) (&arm->guest_X1, buf, dir, size, mod); break; 154 case 2: VG_(transfer) (&arm->guest_X2, buf, dir, size, mod); break; 155 case 3: VG_(transfer) (&arm->guest_X3, buf, dir, size, mod); break; 156 case 4: VG_(transfer) (&arm->guest_X4, buf, dir, size, mod); break; 157 case 5: VG_(transfer) (&arm->guest_X5, buf, dir, size, mod); break; 158 case 6: VG_(transfer) (&arm->guest_X6, buf, dir, size, mod); break; 159 case 7: VG_(transfer) (&arm->guest_X7, buf, dir, size, mod); break; 160 case 8: VG_(transfer) (&arm->guest_X8, buf, dir, size, mod); break [all...] |
/external/libexif/contrib/examples/ |
photographer.c | 14 static void trim_spaces(char *buf) 16 char *s = buf-1; 17 for (; *buf; ++buf) { 18 if (*buf != ' ') 19 s = buf; 30 char buf[1024]; local 33 exif_entry_get_value(entry, buf, sizeof(buf)); 36 trim_spaces(buf); 53 char buf[1024]; local 105 char buf[64]; local [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/ |
ReadOnlyDoubleBufferTest.java | 25 buf = buf.asReadOnlyBuffer(); 26 baseBuf = buf; 34 assertTrue(buf.isReadOnly()); 38 assertFalse(buf.hasArray()); 43 buf.array(); 50 DoubleBuffer duplicate = buf.duplicate(); 51 assertEquals(buf.hashCode(), duplicate.hashCode()); 56 buf.arrayOffset(); 64 buf.compact() [all...] |
ReadOnlyFloatBufferTest.java | 24 buf = buf.asReadOnlyBuffer(); 25 baseBuf = buf; 33 assertTrue(buf.isReadOnly()); 37 assertFalse(buf.hasArray()); 42 buf.array(); 50 FloatBuffer duplicate = buf.duplicate(); 51 assertEquals(buf.hashCode(), duplicate.hashCode()); 56 buf.arrayOffset(); 65 buf.compact() [all...] |
ReadOnlyIntBufferTest.java | 24 buf = buf.asReadOnlyBuffer(); 25 baseBuf = buf; 33 assertTrue(buf.isReadOnly()); 37 assertFalse(buf.hasArray()); 42 buf.array(); 50 IntBuffer duplicate = buf.duplicate(); 51 assertEquals(buf.hashCode(), duplicate.hashCode()); 56 buf.arrayOffset(); 65 buf.compact() [all...] |
ReadOnlyLongBufferTest.java | 24 buf = buf.asReadOnlyBuffer(); 25 baseBuf = buf; 33 assertTrue(buf.isReadOnly()); 37 assertFalse(buf.hasArray()); 42 buf.array(); 50 LongBuffer duplicate = buf.duplicate(); 51 assertEquals(buf.hashCode(), duplicate.hashCode()); 56 buf.arrayOffset(); 65 buf.compact() [all...] |
ReadOnlyShortBufferTest.java | 24 buf = buf.asReadOnlyBuffer(); 25 baseBuf = buf; 33 assertTrue(buf.isReadOnly()); 37 assertFalse(buf.hasArray()); 42 buf.array(); 50 ShortBuffer duplicate = buf.duplicate(); 51 assertEquals(buf.hashCode(), duplicate.hashCode()); 56 buf.arrayOffset(); 65 buf.compact() [all...] |
/external/wpa_supplicant_8/src/common/ |
wpa_helpers.c | 24 char buf[128]; local 27 os_snprintf(buf, sizeof(buf), "%s%s", wpas_ctrl_path, ifname); 28 ctrl = wpa_ctrl_open(buf); 30 printf("wpa_command: wpa_ctrl_open(%s) failed\n", buf); 38 char buf[128]; local 45 len = sizeof(buf); 46 if (wpa_ctrl_request(ctrl, cmd, strlen(cmd), buf, &len, NULL) < 0) { 52 buf[len] = '\0'; 53 if (strncmp(buf, "FAIL", 4) == 0) 167 char buf[4096]; local 252 char buf[200]; local 261 char buf[200]; local 280 char buf[200]; local 289 char buf[200]; local [all...] |
/toolchain/binutils/binutils-2.25/libiberty/ |
vsnprintf.c | 28 @deftypefn Supplemental int vsnprintf (char *@var{buf}, size_t @var{n}, @ 32 @var{buf} at most @code{@var{n}-1} bytes of text, followed by a 62 char *buf = 0; local 63 int result = vasprintf (&buf, format, ap); 65 if (!buf) 69 free (buf); 73 result = strlen (buf); 77 memcpy (s, buf, result+1); 80 memcpy (s, buf, n-1); 84 free (buf); 109 char buf[128]; local [all...] |
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Debug/ |
DebugEventSocketProxy.cs | 182 string buf = SerializeToken(t); 183 Transmit("consumeToken\t" + buf); 187 string buf = SerializeToken(t); 188 Transmit("consumeHiddenToken\t" + buf); 221 StringBuilder buf = new StringBuilder(50); 222 buf.Append("exception\t"); 223 buf.Append(e.GetType().Name); 225 buf.Append("\t"); 226 buf.Append(e.Index); 227 buf.Append("\t") [all...] |
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Debug/ |
DebugEventSocketProxy.cs | 207 string buf = SerializeToken( t ); 208 Transmit( "consumeToken\t" + buf ); 213 string buf = SerializeToken( t ); 214 Transmit( "consumeHiddenToken\t" + buf ); 255 StringBuilder buf = new StringBuilder( 50 ); 256 buf.Append( "exception\t" ); 257 buf.Append( e.GetType().Name ); 259 buf.Append( "\t" ); 260 buf.Append( e.Index ); 261 buf.Append( "\t" ) [all...] |
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/debug/ |
DebugEventSocketProxy.java | 150 String buf = serializeToken(t); local 151 transmit("consumeToken\t"+buf); 155 String buf = serializeToken(t); local 156 transmit("consumeHiddenToken\t"+buf); 189 StringBuffer buf = new StringBuffer(50); local 190 buf.append("exception\t"); 191 buf.append(e.getClass().getName()); 193 buf.append("\t"); 194 buf.append(e.index); 195 buf.append("\t") 211 StringBuffer buf = new StringBuffer(50); local 221 StringBuffer buf = new StringBuffer(50); local 231 StringBuffer buf = new StringBuffer(50); local 274 StringBuffer buf = new StringBuffer(50); local 287 StringBuffer buf = new StringBuffer(50); local 326 StringBuffer buf = new StringBuffer(50); local [all...] |
/bionic/tests/ |
stdio_test.cpp | 74 char buf[16]; local 75 char* s = fgets(buf, sizeof(buf), fp); 98 char buf[7]; local 99 ASSERT_EQ(buf, fgets(buf, sizeof(buf), tfile)); 100 ASSERT_STREQ("hello\n", buf); 102 ASSERT_EQ(NULL, fgets(buf, sizeof(buf), tfile)) 250 char buf[32]; local 256 char buf[BUFSIZ]; local 262 char buf[BUFSIZ]; local 269 char buf[BUFSIZ]; local 283 char buf[32]; local 294 char buf[BUFSIZ]; local 395 T buf[BUFSIZ]; local 439 char buf[BUFSIZ]; local 445 char buf[BUFSIZ]; local 451 char buf[BUFSIZ]; local 461 char buf[BUFSIZ]; local 471 char buf[BUFSIZ]; local 477 char buf[BUFSIZ]; local 483 char buf[BUFSIZ]; local 493 char buf[BUFSIZ]; local 518 char buf[BUFSIZ]; local 539 char buf[PATH_MAX]; local 557 char buf[128]; local 598 char buf[16]; local 800 char buf[16]; local 834 char buf[16]; local 935 char buf[65*1024]; local 1073 char buf[6] = {0}; local 1201 char buf[BUFSIZ]; local [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x509/ |
DistributionPointName.java | 110 StringBuffer buf = new StringBuffer(); local 111 buf.append("DistributionPointName: ["); 112 buf.append(sep); 115 appendObject(buf, sep, "fullName", name.toString()); 119 appendObject(buf, sep, "nameRelativeToCRLIssuer", name.toString()); 121 buf.append("]"); 122 buf.append(sep); 123 return buf.toString(); 126 private void appendObject(StringBuffer buf, String sep, String name, String value) 130 buf.append(indent) [all...] |
/external/f2fs-tools/lib/ |
libf2fs_io.c | 31 int dev_read_version(void *buf, __u64 offset, size_t len) 35 if (read(config.kd, buf, len) < 0) 40 int dev_read(void *buf, __u64 offset, size_t len) 44 if (read(config.fd, buf, len) < 0) 58 int dev_write(void *buf, __u64 offset, size_t len) 62 if (write(config.fd, buf, len) < 0) 67 int dev_write_block(void *buf, __u64 blk_addr) 69 return dev_write(buf, blk_addr * F2FS_BLKSIZE, F2FS_BLKSIZE); 72 int dev_write_dump(void *buf, __u64 offset, size_t len) 76 if (write(config.dump_fd, buf, len) < 0 [all...] |
/external/tlsdate/src/ |
proxy-polarssl.c | 39 unsigned char buf[NI_MAXHOST + 16]; local 59 buf[0] = 0x04; 60 buf[1] = 0x01; 63 memcpy(buf + 2, &port_n, sizeof(port_n)); 66 buf[4] = 0x00; 67 buf[5] = 0x00; 68 buf[6] = 0x00; 69 buf[7] = 0x01; 72 buf[8] = 0x00; 75 memcpy(buf + sz, ctx->host, strlen(ctx->host) + 1) 97 unsigned char buf[NI_MAXHOST + 16]; local 226 char buf[4096]; local [all...] |
/system/bt/osi/src/ |
buffer.c | 48 buffer_t *buffer_new_ref(const buffer_t *buf) { 49 assert(buf != NULL); 50 return buffer_new_slice(buf, buf->length); 53 buffer_t *buffer_new_slice(const buffer_t *buf, size_t slice_size) { 54 assert(buf != NULL); 56 assert(slice_size <= buf->length); 60 ret->root = buf->root; 64 ++buf->root->refcount; 84 void *buffer_ptr(const buffer_t *buf) { [all...] |
/hardware/intel/common/libwsbm/src/ |
wsbm_manager.c | 165 node->buf = item; 358 wsbmBOWaitIdle(struct _WsbmBufferObject *buf, int lazy) 362 storage = buf->storage; 370 wsbmBOMap(struct _WsbmBufferObject *buf, unsigned mode) 372 struct _WsbmBufStorage *storage = buf->storage; 382 wsbmBOUnmap(struct _WsbmBufferObject *buf) 384 struct _WsbmBufStorage *storage = buf->storage; 393 wsbmBOSyncForCpu(struct _WsbmBufferObject *buf, unsigned mode) 395 struct _WsbmBufStorage *storage = buf->storage; 401 wsbmBOReleaseFromCpu(struct _WsbmBufferObject *buf, unsigned mode 463 struct _WsbmBufferObject *buf = *p_buf; local 934 struct _WsbmBufferObject *buf; local 973 struct _WsbmBufferObject *buf; local [all...] |
/device/google/contexthub/contexthubhal/ |
system_comms.cpp | 40 static void readAppName(MessageBuf &buf, hub_app_name_t &name) { 41 name.id = buf.readU64(); 44 static void writeAppName(MessageBuf &buf, const hub_app_name_t &name) { 45 buf.writeU64(name.id); 48 static void readNanohubAppInfo(MessageBuf &buf, NanohubAppInfo &info) { 49 size_t pos = buf.getPos(); 50 readAppName(buf, info.name); 51 info.version = buf.readU32(); 52 info.flashUse = buf.readU32(); 53 info.ramUse = buf.readU32() [all...] |
/external/autotest/client/site_tests/security_AltSyscall/src/ |
read.c | 16 char buf[128]; local 24 ret = read(fd, buf, sizeof(buf)); 28 for (i = 0; i < (sizeof(buf) / sizeof(buf[0])); i++) { 29 if (buf[i] != 0)
|
/external/libselinux/src/ |
deny_unknown.c | 16 char buf[20]; local 28 memset(buf, 0, sizeof(buf)); 29 ret = read(fd, buf, sizeof(buf) - 1); 34 if (sscanf(buf, "%d", &deny_unknown) != 1)
|
enabled.c | 28 char buf[20], path[PATH_MAX]; local 39 memset(buf, 0, sizeof buf); 42 ret = read(fd, buf, sizeof buf - 1); 48 if (!strcmp(buf, "1"))
|
getenforce.c | 16 char buf[20]; local 28 memset(buf, 0, sizeof buf); 29 ret = read(fd, buf, sizeof buf - 1); 34 if (sscanf(buf, "%d", &enforce) != 1)
|
policyvers.c | 17 char buf[20]; local 33 memset(buf, 0, sizeof buf); 34 ret = read(fd, buf, sizeof buf - 1); 39 if (sscanf(buf, "%u", &vers) != 1)
|