Home
last modified time | relevance | path

Searched refs:bufsize (Results 1 – 25 of 67) sorted by relevance

123

/aosp12/hardware/qcom/audio/legacy/libalsa-intf/
H A Daplay.c170 unsigned bufsize; in play_file() local
274 bufsize = pcm->period_size; in play_file()
281 frames = (pcm->flags & PCM_MONO) ? (bufsize / 2) : (bufsize / 4); in play_file()
336 memset(dst_addr, 0x0, bufsize); in play_file()
352 remainingData -= bufsize; in play_file()
434 bufsize = pcm->period_size; in play_file()
436 data = calloc(1, bufsize); in play_file()
444 if (remainingData < bufsize) in play_file()
445 bufsize = remainingData; in play_file()
455 memset(data, 0, bufsize); in play_file()
[all …]
H A Darec.c180 unsigned xfer, bufsize; in record_file() local
250 bufsize = pcm->period_size; in record_file()
269 frames = bufsize / 2; in record_file()
271 frames = bufsize / 8; in record_file()
275 frames = bufsize / 4; in record_file()
320 if (write(fd, dst_addr, bufsize) != bufsize) { in record_file()
334 rec_size += bufsize; in record_file()
346 bufsize = pcm->period_size; in record_file()
353 data = calloc(1, bufsize); in record_file()
360 if (write(fd, data, bufsize) != bufsize) { in record_file()
[all …]
/aosp12/bionic/libc/upstream-openbsd/lib/libc/gdtoa/
H A Dhdtoa.c129 int bufsize; in __hdtoa() local
163 bufsize = (sigfigs > ndigits) ? sigfigs : ndigits; in __hdtoa()
164 s0 = rv_alloc(bufsize); in __hdtoa()
176 for (s = s0 + bufsize - 1; s > s0 + sigfigs - 1; s--) in __hdtoa()
227 int bufsize; in __hldtoa() local
262 bufsize = (sigfigs > ndigits) ? sigfigs : ndigits; in __hldtoa()
263 s0 = rv_alloc(bufsize); in __hldtoa()
275 for (s = s0 + bufsize - 1; s > s0 + sigfigs - 1; s--) in __hldtoa()
/aosp12/system/core/fs_mgr/
H A Dfs_mgr_verity.cpp194 typedef bool (*format_verity_table_func)(char *buf, const size_t bufsize,
197 static bool format_verity_table(char *buf, const size_t bufsize, in format_verity_table() argument
211 res = snprintf(buf, bufsize, in format_verity_table()
216 res = snprintf(buf, bufsize, in format_verity_table()
222 res = snprintf(buf, bufsize, "%s 2 " VERITY_TABLE_OPT_IGNZERO " %s", params->table, in format_verity_table()
225 res = snprintf(buf, bufsize, "%s 1 " VERITY_TABLE_OPT_IGNZERO, params->table); in format_verity_table()
228 if (res < 0 || (size_t)res >= bufsize) { in format_verity_table()
236 static bool format_legacy_verity_table(char *buf, const size_t bufsize, in format_legacy_verity_table() argument
242 res = strlcpy(buf, params->table, bufsize); in format_legacy_verity_table()
244 res = snprintf(buf, bufsize, "%s %d", params->table, params->mode); in format_legacy_verity_table()
[all …]
/aosp12/bionic/libc/upstream-openbsd/lib/libc/stdio/
H A Dmakebuf.c80 __swhatbuf(FILE *fp, size_t *bufsize, int *couldbetty) in __swhatbuf() argument
86 *bufsize = BUFSIZ; in __swhatbuf()
93 *bufsize = BUFSIZ; in __swhatbuf()
102 *bufsize = st.st_blksize; in __swhatbuf()
/aosp12/system/extras/libfec/test/
H A Dtest_read.cpp24 const unsigned bufsize = 2 * 1024 * FEC_BLOCKSIZE; variable
33 unique_ptr<uint8_t[]> buffer(new (nothrow) uint8_t[bufsize]); in main()
56 count = input.read(buffer.get(), bufsize); in main()
/aosp12/frameworks/native/opengl/tools/glgen/stubs/gles11/
H A DglGetTransformFeedbackVarying.java6 int bufsize, in glGetTransformFeedbackVarying() argument
25 int bufsize, in glGetTransformFeedbackVarying() argument
37 int bufsize, in glGetTransformFeedbackVarying() argument
H A DglGetShaderSource.cpp4 …(JNIEnv *_env, jobject _this, jint shader, jint bufsize, jintArray length_ref, jint lengthOffset, … in android_glGetShaderSource__II_3II_3BI() argument
47 (GLsizei)bufsize, in android_glGetShaderSource__II_3II_3BI()
69 (JNIEnv *_env, jobject _this, jint shader, jint bufsize, jobject length_buf, jbyte source) { in android_glGetShaderSource__IILjava_nio_IntBuffer_2B() argument
82 (GLsizei)bufsize, in android_glGetShaderSource__IILjava_nio_IntBuffer_2B()
H A DglGetShaderSource.java5 int bufsize, in glGetShaderSource() argument
17 int bufsize, in glGetShaderSource() argument
H A DglGetActiveAttrib.java6 int bufsize, in glGetActiveAttrib() argument
24 int bufsize, in glGetActiveAttrib() argument
H A DglGetActiveUniform.java6 int bufsize, in glGetActiveUniform() argument
24 int bufsize, in glGetActiveUniform() argument
H A DglGetTransformFeedbackVarying.cpp4 …(JNIEnv *_env, jobject _this, jint program, jint index, jint bufsize, jintArray length_ref, jint l… in android_glGetTransformFeedbackVarying__III_3II_3II_3II_3BI() argument
88 (GLsizei)bufsize, in android_glGetTransformFeedbackVarying__III_3II_3II_3II_3BI()
120 …(JNIEnv *_env, jobject _this, jint program, jint index, jint bufsize, jobject length_buf, jobject … in android_glGetTransformFeedbackVarying__IIILjava_nio_IntBuffer_2Ljava_nio_IntBuffer_2Ljava_nio_IntBuffer_2B() argument
127 …(JNIEnv *_env, jobject _this, jint program, jint index, jint bufsize, jobject length_buf, jobject … in android_glGetTransformFeedbackVarying__IIILjava_nio_IntBuffer_2Ljava_nio_IntBuffer_2Ljava_nio_IntBuffer_2Ljava_nio_ByteBuffer_2() argument
169 (GLsizei)bufsize, in android_glGetTransformFeedbackVarying__IIILjava_nio_IntBuffer_2Ljava_nio_IntBuffer_2Ljava_nio_IntBuffer_2Ljava_nio_ByteBuffer_2()
H A DglGetActiveAttrib.cpp4 …(JNIEnv *_env, jobject _this, jint program, jint index, jint bufsize, jintArray length_ref, jint l… in android_glGetActiveAttrib__III_3II_3II_3II_3BI() argument
88 (GLsizei)bufsize, in android_glGetActiveAttrib__III_3II_3II_3II_3BI()
120 …(JNIEnv *_env, jobject _this, jint program, jint index, jint bufsize, jobject length_buf, jobject … in android_glGetActiveAttrib__IIILjava_nio_IntBuffer_2Ljava_nio_IntBuffer_2Ljava_nio_IntBuffer_2B() argument
152 (GLsizei)bufsize, in android_glGetActiveAttrib__IIILjava_nio_IntBuffer_2Ljava_nio_IntBuffer_2Ljava_nio_IntBuffer_2B()
H A DglGetActiveUniform.cpp4 …(JNIEnv *_env, jobject _this, jint program, jint index, jint bufsize, jintArray length_ref, jint l… in android_glGetActiveUniform__III_3II_3II_3II_3BI() argument
88 (GLsizei)bufsize, in android_glGetActiveUniform__III_3II_3II_3II_3BI()
120 …(JNIEnv *_env, jobject _this, jint program, jint index, jint bufsize, jobject length_buf, jobject … in android_glGetActiveUniform__IIILjava_nio_IntBuffer_2Ljava_nio_IntBuffer_2Ljava_nio_IntBuffer_2B() argument
152 (GLsizei)bufsize, in android_glGetActiveUniform__IIILjava_nio_IntBuffer_2Ljava_nio_IntBuffer_2Ljava_nio_IntBuffer_2B()
/aosp12/system/vold/bench/
H A Dbenchgen.py107 bufsize = 1048576 variable
172 print >>bench, "char* buf = (char*) malloc(%d);" % (bufsize)
221 count = min(int(e.args[2]), bufsize)
230 count = min(int(e.args[2]), bufsize)
239 count = min(int(e.args[2]), bufsize)
247 count = min(int(e.args[2]), bufsize)
266 count = min(int(e.args[1]), bufsize)
/aosp12/frameworks/native/libs/sensor/
H A DBitTube.cpp42 BitTube::BitTube(size_t bufsize) in BitTube() argument
45 init(bufsize, bufsize); in BitTube()
/aosp12/frameworks/native/libs/gui/
H A DBitTube.cpp37 BitTube::BitTube(size_t bufsize) { in BitTube() argument
38 init(bufsize, bufsize); in BitTube()
/aosp12/packages/modules/NetworkStack/common/netlinkclient/src/android/net/netlink/
H A DNetlinkSocket.java128 public static ByteBuffer recvMessage(FileDescriptor fd, int bufsize, long timeoutMs) in recvMessage() argument
134 ByteBuffer byteBuffer = ByteBuffer.allocate(bufsize); in recvMessage()
136 if (length == bufsize) { in recvMessage()
/aosp12/hardware/qcom/audio/legacy/alsa_sound/
H A DAudioUsbALSA.cpp387 unsigned avail, bufsize; in RecordingThreadEntry() local
429 bufsize = musbRecordingHandle->period_size; in RecordingThreadEntry()
432 frames = (musbRecordingHandle->flags & PCM_MONO) ? (bufsize / 2) : (bufsize / 4); in RecordingThreadEntry()
433 x.frames = (musbRecordingHandle->flags & PCM_MONO) ? (bufsize / 2) : (bufsize / 4); in RecordingThreadEntry()
530 memset(dstProxy_addr, 0x0, bufsize); in RecordingThreadEntry()
534 memcpy(dstProxy_addr, srcUsb_addr, bufsize ); in RecordingThreadEntry()
776 unsigned avail, xfer, bufsize; in PlaybackThreadEntry() local
/aosp12/bionic/libc/kernel/uapi/linux/
H A Dscc.h108 unsigned int bufsize; member
134 unsigned int bufsize; member
/aosp12/system/tools/mkbootimg/
H A Dmkbootimg.py278 def __init__(self, bufsize): argument
279 self.bufsize = bufsize
283 if len(arg_bytes) > self.bufsize:
436 type=AsciizBytes(bufsize=VENDOR_RAMDISK_NAME_SIZE),
504 parser.add_argument('--cmdline', type=AsciizBytes(bufsize=cmdline_size),
507 type=AsciizBytes(bufsize=VENDOR_BOOT_ARGS_SIZE),
527 parser.add_argument('--board', type=AsciizBytes(bufsize=BOOT_NAME_SIZE),
/aosp12/system/netd/tests/
H A Dtest_utils.cpp49 size_t bufsize = 0; in runCommand() local
51 while ((linelen = getline(&line, &bufsize, f)) >= 0) { in runCommand()
/aosp12/system/hardware/interfaces/net/netd/testutils/
H A DVtsHalNetNetdTestUtils.cpp57 size_t bufsize = 0; in runCommand() local
59 while ((linelen = getline(&line, &bufsize, f)) >= 0) { in runCommand()
/aosp12/frameworks/base/media/jni/soundpool/
H A DSound.cpp94 size_t bufsize; in decode() local
96 codec.get(), bufidx, &bufsize); in decode()
102 ssize_t sampleSize = AMediaExtractor_readSampleData(ex.get(), buf, bufsize); in decode()
/aosp12/frameworks/native/opengl/tools/glgen/specs/gles11/
H A DGLES20.spec56 void glGetActiveAttrib ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *siz…
57 void glGetActiveUniform ( GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *si…
67 void glGetProgramInfoLog ( GLuint program, GLsizei bufsize, GLsizei *length, char *infolog )
70 void glGetShaderInfoLog ( GLuint shader, GLsizei bufsize, GLsizei *length, char *infolog )
72 void glGetShaderSource ( GLuint shader, GLsizei bufsize, GLsizei *length, char *source )

123