/external/selinux/libselinux/src/ |
is_customizable_type.c | 15 char *buf; local 23 buf = malloc(selinux_page_size); 24 if (!buf) { 28 while (fgets_unlocked(buf, selinux_page_size, fp) && ctr < UINT_MAX) { 38 while (fgets_unlocked(buf, selinux_page_size, fp) 40 buf[strlen(buf) - 1] = 0; 41 list[i] = (char *) strdup(buf); 55 free(buf);
|
/external/selinux/libselinux/utils/ |
compute_create.c | 10 char *buf; local 26 ret = security_compute_create(argv[1], argv[2], tclass, &buf); 33 printf("%s\n", buf); 34 freecon(buf);
|
compute_member.c | 10 char *buf; local 26 ret = security_compute_member(argv[1], argv[2], tclass, &buf); 33 printf("%s\n", buf); 34 freecon(buf);
|
compute_relabel.c | 10 char *buf; local 26 ret = security_compute_relabel(argv[1], argv[2], tclass, &buf); 33 printf("%s\n", buf); 34 freecon(buf);
|
getfilecon.c | 8 char *buf; local 17 rc = getfilecon(argv[i], &buf); 23 printf("%s\t%s\n", argv[i], buf); 24 freecon(buf);
|
getpidcon.c | 9 char *buf; local 22 rc = getpidcon(pid, &buf); 28 printf("%s\n", buf); 29 freecon(buf);
|
/external/strace/tests/ |
getrandom.c | 40 unsigned char buf[4]; local 42 if (syscall(__NR_getrandom, buf, sizeof(buf) - 1, 0) != sizeof(buf) - 1) 45 (int) buf[0], (int) buf[1], (int) buf[2]); 47 if (syscall(__NR_getrandom, buf, sizeof(buf), 1) != sizeof(buf)) [all...] |
/hardware/intel/img/hwcomposer/merrifield/ips/common/ |
Wsbm.h | 34 bool allocateTTMBuffer(uint32_t size, uint32_t align,void ** buf); 35 bool allocateTTMBufferUB(uint32_t size, uint32_t align, void ** buf, void *user_pt); 36 bool destroyTTMBuffer(void * buf); 37 void * getCPUAddress(void * buf); 38 uint32_t getGttOffset(void * buf); 39 bool wrapTTMBuffer(int64_t handle, void **buf); 40 bool unreferenceTTMBuffer(void *buf); 41 bool waitIdleTTMBuffer(void *buf); 42 uint64_t getKBufHandle(void *buf);
|
/hardware/intel/img/hwcomposer/moorefield_hdmi/ips/common/ |
Wsbm.h | 34 bool allocateTTMBuffer(uint32_t size, uint32_t align,void ** buf); 35 bool allocateTTMBufferUB(uint32_t size, uint32_t align, void ** buf, void *user_pt); 36 bool destroyTTMBuffer(void * buf); 37 void * getCPUAddress(void * buf); 38 uint32_t getGttOffset(void * buf); 39 bool wrapTTMBuffer(uint32_t handle, void **buf); 40 bool unreferenceTTMBuffer(void *buf); 41 bool waitIdleTTMBuffer(void *buf); 42 uint32_t getKBufHandle(void *buf);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/ |
ReadOnlyCharBufferTest.java | 25 loadTestData1(buf); 26 buf = buf.asReadOnlyBuffer(); 27 baseBuf = buf; 31 buf = null; 37 assertTrue(buf.isReadOnly()); 41 assertFalse(buf.hasArray()); 46 buf.array(); 53 CharBuffer duplicate = buf.duplicate(); 54 assertEquals(buf.hashCode(), duplicate.hashCode()) [all...] |
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/decoder/ |
ByteQueue.java | 26 private UnboundedFifoByteBuffer buf; field in class:ByteQueue 30 buf = new UnboundedFifoByteBuffer(); 34 buf = new UnboundedFifoByteBuffer(initialCapacity); 39 buf.add(b); 43 return buf.remove(); 47 return buf.size(); 52 buf = new UnboundedFifoByteBuffer(initialCapacity); 54 buf = new UnboundedFifoByteBuffer(); 58 return buf.iterator();
|
/packages/services/Telephony/src/org/apache/james/mime4j/decoder/ |
ByteQueue.java | 26 private UnboundedFifoByteBuffer buf; field in class:ByteQueue 30 buf = new UnboundedFifoByteBuffer(); 34 buf = new UnboundedFifoByteBuffer(initialCapacity); 39 buf.add(b); 43 return buf.remove(); 47 return buf.size(); 52 buf = new UnboundedFifoByteBuffer(initialCapacity); 54 buf = new UnboundedFifoByteBuffer(); 58 return buf.iterator();
|
/prebuilts/go/darwin-x86/src/os/ |
sys_linux.go | 16 var buf [512]byte // Enough for a DNS name. 17 n, err := f.Read(buf[0:]) 22 if n > 0 && buf[n-1] == '\n' { 25 return string(buf[0:n]), nil
|
/prebuilts/go/linux-x86/src/os/ |
sys_linux.go | 16 var buf [512]byte // Enough for a DNS name. 17 n, err := f.Read(buf[0:]) 22 if n > 0 && buf[n-1] == '\n' { 25 return string(buf[0:n]), nil
|
/system/bt/osi/include/ |
buffer.h | 31 // Creates a new reference to the buffer |buf|. A reference is indistinguishable 33 // and vice versa. In other words, this function creates an alias to |buf|. The 35 // the returned buffer does not release |buf|. |buf| must not be NULL. 36 buffer_t *buffer_new_ref(const buffer_t *buf); 38 // Creates a new reference to the last |slice_size| bytes of |buf|. See 41 // (0 < slice_size <= buffer_length). |buf| must not be NULL. 42 buffer_t *buffer_new_slice(const buffer_t *buf, size_t slice_size); 44 // Frees a buffer object. |buf| may be NULL. 45 void buffer_free(buffer_t *buf); [all...] |
/bootable/recovery/minzip/ |
Bits.h | 233 INLINE int readUtf8String(unsigned char const** ppSrc, char* buf, size_t bufLen) 238 memcpy(buf, *ppSrc, copyLen); 239 buf[copyLen] = '\0'; 254 char* buf; local 256 buf = (char*) malloc(length+1); 258 memcpy(buf, *ppSrc, length); 259 buf[length] = '\0'; 264 return buf; 271 INLINE void set1(unsigned char* buf, unsigned char val) 273 *buf = (unsigned char)(val) [all...] |
/prebuilts/gdb/darwin-x86/lib/python2.7/ctypes/test/ |
test_strings.py | 7 BUF = c_char * 4 9 buf = BUF("a", "b", "c") 10 self.assertEqual(buf.value, "abc") 11 self.assertEqual(buf.raw, "abc\000") 13 buf.value = "ABCD" 14 self.assertEqual(buf.value, "ABCD") 15 self.assertEqual(buf.raw, "ABCD") 17 buf.value = "x" 18 self.assertEqual(buf.value, "x" [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/ctypes/test/ |
test_strings.py | 7 BUF = c_char * 4 9 buf = BUF("a", "b", "c") 10 self.assertEqual(buf.value, "abc") 11 self.assertEqual(buf.raw, "abc\000") 13 buf.value = "ABCD" 14 self.assertEqual(buf.value, "ABCD") 15 self.assertEqual(buf.raw, "ABCD") 17 buf.value = "x" 18 self.assertEqual(buf.value, "x" [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ctypes/test/ |
test_strings.py | 7 BUF = c_char * 4 9 buf = BUF("a", "b", "c") 10 self.assertEqual(buf.value, "abc") 11 self.assertEqual(buf.raw, "abc\000") 13 buf.value = "ABCD" 14 self.assertEqual(buf.value, "ABCD") 15 self.assertEqual(buf.raw, "ABCD") 17 buf.value = "x" 18 self.assertEqual(buf.value, "x" [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ctypes/test/ |
test_strings.py | 7 BUF = c_char * 4 9 buf = BUF("a", "b", "c") 10 self.assertEqual(buf.value, "abc") 11 self.assertEqual(buf.raw, "abc\000") 13 buf.value = "ABCD" 14 self.assertEqual(buf.value, "ABCD") 15 self.assertEqual(buf.raw, "ABCD") 17 buf.value = "x" 18 self.assertEqual(buf.value, "x" [all...] |
/external/llvm/test/CodeGen/X86/ |
sjlj.ll | 6 @buf = internal global [5 x i8*] zeroinitializer 18 store i8* %fp, i8** getelementptr inbounds ([5 x i8*], [5 x i8*]* @buf, i64 0, i64 0), align 16 20 store i8* %sp, i8** getelementptr inbounds ([5 x i8*], [5 x i8*]* @buf, i64 0, i64 2), align 16 21 %r = tail call i32 @llvm.eh.sjlj.setjmp(i8* bitcast ([5 x i8*]* @buf to i8*)) 24 ; x86: movl %ebp, buf 25 ; X86: movl %esp, buf+8 26 ; x86: movl ${{.*LBB.*}}, buf+4 29 ; PIC86: movl %ebp, buf@GOTOFF(%[[GOT:.*]]) 30 ; PIC86: movl %esp, buf@GOTOFF+8(%[[GOT]]) 32 ; PIC86: movl %[[LREG]], buf@GOTOFF+ [all...] |
/external/libpng/contrib/tools/ |
png-fix-itxt.c | 45 unsigned char buf[MAX_LENGTH]; local 62 GETBREAK; buf[0] = c; length = c; length <<= 8; 63 GETBREAK; buf[1] = c; length += c; length <<= 8; 64 GETBREAK; buf[2] = c; length += c; length <<= 8; 65 GETBREAK; buf[3] = c; length += c; 68 GETBREAK; buf[4] = c; 69 GETBREAK; buf[5] = c; 70 GETBREAK; buf[6] = c; 71 GETBREAK; buf[7] = c; 75 if (buf[4] == 105 && buf[5] == 84 && buf[6] == 88 && buf[7] == 116 [all...] |
/external/mockito/cglib-and-asm/src/org/mockito/asm/util/ |
ASMifierAnnotationVisitor.java | 64 buf.setLength(0);
65 buf.append("av").append(id).append(".visit(");
66 ASMifierAbstractVisitor.appendConstant(buf, name);
67 buf.append(", ");
68 ASMifierAbstractVisitor.appendConstant(buf, value);
69 buf.append(");\n");
70 text.add(buf.toString());
78 buf.setLength(0);
79 buf.append("av").append(id).append(".visitEnum(");
80 ASMifierAbstractVisitor.appendConstant(buf, name); [all...] |
/hardware/broadcom/wlan/bcmdhd/wpa_supplicant_8_lib/ |
driver_cmd_wext.c | 77 char buf[WEXT_CSCAN_BUF_LEN]; local 92 os_memcpy(buf, WEXT_CSCAN_HEADER, bp); 94 if ((bp + IW_ESSID_MAX_SIZE + 10) >= (int)sizeof(buf)) 97 buf[bp++] = WEXT_CSCAN_SSID_SECTION; 98 buf[bp++] = params->ssids[i].ssid_len; 99 os_memcpy(&buf[bp], params->ssids[i].ssid, params->ssids[i].ssid_len); 104 buf[bp++] = WEXT_CSCAN_CHANNEL_SECTION; 105 buf[bp++] = 0; 108 buf[bp++] = WEXT_CSCAN_PASV_DWELL_SECTION; 109 buf[bp++] = (u8)WEXT_CSCAN_PASV_DWELL_TIME 208 char buf[WEXT_PNO_MAX_COMMAND_SIZE]; local 374 char buf[MAX_DRV_CMD_SIZE]; local [all...] |
/external/libvncserver/libvncserver/ |
stats.c | 33 char *messageNameServer2Client(uint32_t type, char *buf, int len); 34 char *messageNameClient2Server(uint32_t type, char *buf, int len); 35 char *encodingName(uint32_t enc, char *buf, int len); 50 char *messageNameServer2Client(uint32_t type, char *buf, int len) { 51 if (buf==NULL) return "error"; 53 case rfbFramebufferUpdate: snprintf(buf, len, "FramebufferUpdate"); break; 54 case rfbSetColourMapEntries: snprintf(buf, len, "SetColourMapEntries"); break; 55 case rfbBell: snprintf(buf, len, "Bell"); break; 56 case rfbServerCutText: snprintf(buf, len, "ServerCutText"); break; 57 case rfbResizeFrameBuffer: snprintf(buf, len, "ResizeFrameBuffer"); break [all...] |