Searched defs:buf (Results 101 - 125 of 301) sorted by relevance

1234567891011>>

/frameworks/native/opengl/tests/gl2_jni/jni/
H A Dgl_code.cpp48 char* buf = (char*) malloc(infoLen); local
49 if (buf) {
50 glGetShaderInfoLog(shader, infoLen, NULL, buf);
52 shaderType, buf);
53 free(buf);
87 char* buf = (char*) malloc(bufLength); local
88 if (buf) {
89 glGetProgramInfoLog(program, bufLength, NULL, buf);
90 ALOGE("Could not link program:\n%s\n", buf);
91 free(buf);
[all...]
/frameworks/native/opengl/tests/gldual/jni/
H A Dgl_code.cpp48 char* buf = (char*) malloc(infoLen); local
49 if (buf) {
50 glGetShaderInfoLog(shader, infoLen, NULL, buf);
52 shaderType, buf);
53 free(buf);
87 char* buf = (char*) malloc(bufLength); local
88 if (buf) {
89 glGetProgramInfoLog(program, bufLength, NULL, buf);
90 ALOGE("Could not link program:\n%s\n", buf);
91 free(buf);
[all...]
/frameworks/native/services/displayservice/
H A DDisplayEventReceiver.cpp95 FwkReceiver::Event buf[SIZE]; local
96 while ((n = mFwkReceiver.getEvents(buf, SIZE)) > 0) {
98 const FwkReceiver::Event &event = buf[i];
103 switch(buf[i].header.type) {
/frameworks/native/services/surfaceflinger/DisplayHardware/
H A DFramebufferSurface.cpp102 sp<GraphicBuffer> buf; local
105 status_t result = nextBuffer(slot, buf, acquireFence, dataspace);
112 acquireFence, buf, dataspace);
191 sp<GraphicBuffer> buf; local
193 status_t err = nextBuffer(buf, acquireFence);
199 err = mHwc.fbPost(mDisplayType, acquireFence, buf);
/frameworks/native/services/vr/virtual_touchpad/tests/
H A DVirtualTouchpad_test.cpp51 int Write(const void* buf, size_t count) override {
55 s_ += Encode(buf, count);
79 std::string Encode(const void* buf, size_t count) { argument
80 const char* in = static_cast<const char*>(buf);
/frameworks/native/vulkan/libvulkan/
H A Ddebug_report.cpp107 char buf[1024]; local
108 int len = vsnprintf(buf, sizeof(buf), format, ap);
111 if (len >= static_cast<int>(sizeof(buf)))
112 memcpy(buf + sizeof(buf) - 4, "...", 4);
114 Message(flags, object_type, object, 0, 0, LOG_TAG, buf);
/frameworks/opt/net/wifi/libwifi_system/
H A Dsupplicant_manager.cpp50 char buf[2048]; local
100 while ((nread = TEMP_FAILURE_RETRY(read(srcfd, buf, sizeof(buf)))) != 0) {
109 TEMP_FAILURE_RETRY(write(destfd, buf, nread));
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
H A DResponseData.java36 public abstract void format(ByteArrayOutputStream buf); argument
38 public static void writeLength(ByteArrayOutputStream buf, int length) { argument
43 buf.write(0x81);
45 buf.write(length);
59 public void format(ByteArrayOutputStream buf) { argument
62 buf.write(tag); // tag
63 buf.write(1); // length
64 buf.write(mId); // identifier of item chosen
98 public void format(ByteArrayOutputStream buf) { argument
99 if (buf
182 format(ByteArrayOutputStream buf) argument
220 format(ByteArrayOutputStream buf) argument
[all...]
/frameworks/rs/cpp/
H A DRenderScript.cpp88 char buf[256]; local
89 android::renderscript::property_get(str, buf, "0");
90 return atoi(buf);
/frameworks/rs/cpu_ref/
H A DrsCpuScript.h177 char buf[PROP_VALUE_MAX]; local
180 android::renderscript::property_get("debug.rs.precision", buf, "");
181 if (buf[0] != '\0') {
186 android::renderscript::property_get("debug.rs.forcerecompile", buf, "0");
187 if ((::strcmp(buf, "1") == 0) || (::strcmp(buf, "true") == 0)) {
/frameworks/rs/driver/
H A DrsdShaderCache.cpp163 char* buf = (char*) malloc(bufLength); local
164 if (buf) {
165 glGetProgramInfoLog(pgm, bufLength, nullptr, buf);
166 rsc->setError(RS_ERROR_FATAL_PROGRAM_LINK, buf);
167 free(buf);
/frameworks/rs/
H A DrsThreadIO.cpp79 uint32_t buf; local
81 data = &buf;
82 dataLen = sizeof(buf);
89 uint32_t buf; local
91 data = &buf;
92 dataLen = sizeof(buf);
105 uint8_t buf[2 * 1024]; local
106 const CoreCmdHeader *cmd = (const CoreCmdHeader *)&buf[0];
107 const void * data = (const void *)&buf[sizeof(CoreCmdHeader)];
134 r = mToCore.read(&buf[
[all...]
/frameworks/rs/tests/java_api/GenImages/src/com/android/rs/genimage/
H A DGenImage.java140 FloatBuffer createFloatBuffer(float buf[]) { argument
141 ByteBuffer bb = ByteBuffer.allocateDirect(buf.length * 4);
144 fb.put(buf);
/frameworks/av/cmds/screenrecord/
H A DProgram.cpp155 char* buf = new char[infoLen]; local
156 if (buf) {
157 glGetShaderInfoLog(shader, infoLen, NULL, buf);
158 ALOGE("Compile log: %s", buf);
159 delete[] buf;
186 char* buf = new char[bufLength]; local
187 if (buf) {
188 glGetProgramInfoLog(program, bufLength, NULL, buf);
189 ALOGE("Link log: %s", buf);
190 delete[] buf;
[all...]
/frameworks/av/drm/common/
H A DDrmEngineBase.cpp143 const DrmBuffer& buf, const String8& mimeType) {
144 return onOpenDecryptSession(uniqueId, decryptHandle, buf, mimeType);
142 openDecryptSession(int uniqueId, DecryptHandle* decryptHandle, const DrmBuffer& buf, const String8& mimeType) argument
/frameworks/av/drm/libdrmframework/
H A DDrmManagerClient.cpp134 const DrmBuffer& buf, const String8& mimeType) {
135 return mDrmManagerClientImpl->openDecryptSession(mUniqueId, buf, mimeType);
133 openDecryptSession( const DrmBuffer& buf, const String8& mimeType) argument
/frameworks/av/media/libmedia/
H A DCharacterEncodingDetector.cpp90 char buf[1024]; local
91 buf[0] = 0;
103 strlcat(buf, value, sizeof(buf));
105 strlcat(buf, " ", sizeof(buf));
112 // since 'buf' is empty, ICU would return a UTF-8 matcher with low confidence, so
114 ALOGV("all tags are printable, assuming ascii (%zu)", strlen(buf));
116 ucsdet_setText(csd, buf, strlen(buf),
[all...]
H A DVisualizer.cpp292 uint8_t buf[mCaptureSize]; local
293 status = getWaveForm(buf);
295 status = doFft(fft, buf);
/frameworks/av/media/libstagefright/codecs/mp3dec/test/
H A Dmp3reader.cpp246 uint8_t buf[kMaxReadBytes]; local
251 uint8_t *tmp = buf;
263 memcpy(buf, tmp, remainingBytes);
272 buf + remainingBytes, bytesToRead);
279 tmp = buf;
/frameworks/av/media/libstagefright/codecs/vorbis/dec/
H A DSoftVorbis.cpp249 ogg_buffer *buf, ogg_reference *ref, oggpack_buffer *bits) {
250 buf->data = (uint8_t *)data;
251 buf->size = size;
252 buf->refcount = 1;
253 buf->ptr.owner = NULL;
255 ref->buffer = buf;
285 ogg_buffer buf; local
291 &buf, &ref, &bits);
373 ogg_buffer buf; local
374 buf
247 makeBitReader( const void *data, size_t size, ogg_buffer *buf, ogg_reference *ref, oggpack_buffer *bits) argument
[all...]
/frameworks/av/media/libstagefright/colorconversion/
H A DSoftwareRenderer.cpp213 ANativeWindowBuffer *buf; local
215 int err = mNativeWindow->dequeueBuffer(mNativeWindow.get(), &buf, &fenceFd);
217 info = mRenderTracker.updateInfoForDequeuedBuffer(buf, fenceFd, 0);
234 buf->handle, GRALLOC_USAGE_SW_WRITE_OFTEN, bounds, &dst));
244 buf->stride, buf->height,
256 size_t dst_y_size = buf->stride * buf->height;
257 size_t dst_c_stride = ALIGN(buf->stride / 2, 16);
258 size_t dst_c_size = dst_c_stride * buf
[all...]
/frameworks/av/media/libstagefright/foundation/tests/
H A DAData_test.cpp186 sp<ABuffer> buf = new ABuffer(16), buf2; local
189 objdata.set(buf);
191 EXPECT_EQ(buf, buf2);
194 EXPECT_TRUE(obj == buf);
196 obj = buf;
/frameworks/av/media/mtp/
H A DMtpDataPacket.cpp32 // Reads the exact |count| bytes from |fd| to |buf|.
35 ssize_t readExactBytes(int fd, void* buf, size_t count) { argument
41 int result = read(fd, static_cast<int8_t*>(buf) + read_count, count - read_count);
/frameworks/av/media/ndk/
H A DNdkMediaFormat.cpp174 sp<ABuffer> buf; local
175 if (format->mFormat->findBuffer(name, &buf)) {
176 *data = buf->data() + buf->offset();
177 *outsize = buf->size();
228 sp<ABuffer> buf = new ABuffer(size); local
229 memcpy(buf->data(), data, size);
230 buf->setRange(0, size);
232 format->mFormat->setBuffer(name, buf);
/frameworks/av/services/camera/libcameraservice/api1/client2/
H A DJpegProcessor.cpp352 bool checkJpegStart(uint8_t* buf) { argument
353 return buf[0] == MARK && buf[1] == SOI;
356 bool checkJpegEnd(uint8_t *buf) { argument
357 return buf[0] == MARK && buf[1] == EOI;
361 uint8_t checkJpegMarker(uint8_t *buf) { argument
362 if (buf[0] == MARK && buf[1] > 0 && buf[
[all...]

Completed in 8472 milliseconds

1234567891011>>