/frameworks/rs/cpp/ |
H A D | RenderScript.cpp | 436 char buf[256]; local 437 property_get(str, buf, "0"); 438 return atoi(buf);
|
/frameworks/rs/driver/ |
H A D | rsdShaderCache.cpp | 160 char* buf = (char*) malloc(bufLength); local 161 if (buf) { 162 glGetProgramInfoLog(pgm, bufLength, NULL, buf); 163 rsc->setError(RS_ERROR_FATAL_PROGRAM_LINK, buf); 164 free(buf);
|
/frameworks/rs/java/tests/GenImages/src/com/android/rs/genimage/ |
H A D | GenImage.java | 140 FloatBuffer createFloatBuffer(float buf[]) { argument 141 ByteBuffer bb = ByteBuffer.allocateDirect(buf.length * 4); 144 fb.put(buf);
|
/frameworks/rs/ |
H A D | rsThreadIO.cpp | 81 uint32_t buf; local 83 data = &buf; 84 dataLen = sizeof(buf); 91 uint32_t buf; local 93 data = &buf; 94 dataLen = sizeof(buf); 108 uint8_t buf[2 * 1024]; local 109 const CoreCmdHeader *cmd = (const CoreCmdHeader *)&buf[0]; 110 const void * data = (const void *)&buf[sizeof(CoreCmdHeader)]; 138 r = mToCore.read(&buf[ [all...] |
/frameworks/av/cmds/screenrecord/ |
H A D | Overlay.cpp | 257 void Overlay::getTimeString_l(nsecs_t monotonicNsec, char* buf, size_t bufLen) { argument 268 strftime(buf, bufLen, format, &tm); 273 strlcat(buf, tmpBuf, bufLen);
|
H A D | Program.cpp | 155 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 D | DrmEngineBase.cpp | 143 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 D | DrmManagerClient.cpp | 134 const DrmBuffer& buf, const String8& mimeType) { 135 return mDrmManagerClientImpl->openDecryptSession(mUniqueId, buf, mimeType); 133 openDecryptSession( const DrmBuffer& buf, const String8& mimeType) argument
|
H A D | NoOpDrmManagerClientImpl.cpp | 120 sp<DecryptHandle> NoOpDrmManagerClientImpl::openDecryptSession(int uniqueId, const DrmBuffer& buf, argument
|
/frameworks/av/media/libmedia/ |
H A D | CharacterEncodingDetector.cpp | 90 char buf[1024]; local 91 buf[0] = 0; 104 strlcat(buf, value, sizeof(buf)); 106 strlcat(buf, " ", sizeof(buf)); 113 // since 'buf' is empty, ICU would return a UTF-8 matcher with low confidence, so 115 ALOGV("all tags are printable, assuming ascii (%zu)", strlen(buf)); 117 ucsdet_setText(csd, buf, strlen(buf), [all...] |
H A D | Visualizer.cpp | 297 uint8_t buf[mCaptureSize]; local 298 status = getWaveForm(buf); 300 status = doFft(fft, buf);
|
/frameworks/av/media/libmediaplayerservice/ |
H A D | MediaPlayerFactory.cpp | 197 char buf[20]; local 199 read(fd, buf, sizeof(buf)); 202 uint32_t ident = *((uint32_t*)buf);
|
/frameworks/av/media/libstagefright/codecs/vorbis/dec/ |
H A D | SoftVorbis.cpp | 232 ogg_buffer *buf, ogg_reference *ref, oggpack_buffer *bits) { 233 buf->data = (uint8_t *)data; 234 buf->size = size; 235 buf->refcount = 1; 236 buf->ptr.owner = NULL; 238 ref->buffer = buf; 261 ogg_buffer buf; local 267 &buf, &ref, &bits); 333 ogg_buffer buf; local 334 buf 230 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 D | SoftwareRenderer.cpp | 188 ANativeWindowBuffer *buf; local 191 &buf)) != 0) { 202 buf->handle, GRALLOC_USAGE_SW_WRITE_OFTEN, bounds, &dst)); 210 buf->stride, buf->height, 218 size_t dst_y_size = buf->stride * buf->height; 219 size_t dst_c_stride = ALIGN(buf->stride / 2, 16); 220 size_t dst_c_size = dst_c_stride * buf->height / 2; 228 dst_y += buf [all...] |
/frameworks/av/media/ndk/ |
H A D | NdkMediaFormat.cpp | 170 sp<ABuffer> buf; local 171 if (format->mFormat->findBuffer(name, &buf)) { 172 *data = buf->data() + buf->offset(); 173 *outsize = buf->size(); 224 sp<ABuffer> buf = new ABuffer(size); local 225 memcpy(buf->data(), data, size); 226 buf->setRange(0, size); 228 format->mFormat->setBuffer(name, buf);
|
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
H A D | JpegProcessor.cpp | 320 bool checkJpegStart(uint8_t* buf) { argument 321 return buf[0] == MARK && buf[1] == SOI; 324 bool checkJpegEnd(uint8_t *buf) { argument 325 return buf[0] == MARK && buf[1] == EOI; 329 uint8_t checkJpegMarker(uint8_t *buf) { argument 330 if (buf[0] == MARK && buf[1] > 0 && buf[ [all...] |
/frameworks/base/cmds/idmap/ |
H A D | inspect.cpp | 167 status_t parse_idmap_header(IdmapBuffer& buf, AssetManager& am) { argument 171 status_t err = buf.nextUint32(&i); 185 err = buf.nextUint32(&i); 191 err = buf.nextUint32(&i); 197 err = buf.nextUint32(&i); 203 err = buf.nextPath(path); 215 err = buf.nextPath(path); 225 status_t parse_data(IdmapBuffer& buf, const AssetManager& am) { argument 229 status_t err = buf.nextUint16(&data16); 235 err = buf 295 IdmapBuffer buf; local [all...] |
H A D | scan.cpp | 171 char *buf = new char[uncompLen]; local 172 if (NULL == buf) { 178 if (inflater.read(buf, uncompLen) < 0) { 180 delete[] buf; 185 int priority = parse_manifest(buf, uncompLen, target_package_name); 186 delete[] buf;
|
/frameworks/base/core/java/com/android/internal/util/ |
H A D | FastPrintWriter.java | 32 public void write(char[] buf, int offset, int count) throws IOException { argument 310 private void appendLocked(char[] buf, int i, final int length) throws IOException { argument 316 appendLocked(buf, i, next < end ? BUFFER_LEN : (end - i)); 326 System.arraycopy(buf, i, mText, pos, length); 551 * @param buf 559 * offset + count} is greater than the length of {@code buf}. 562 public void write(char[] buf, int offset, int count) { argument 565 appendLocked(buf, offset, count);
|
H A D | FastXmlSerializer.java | 99 private void append(char[] buf, int i, final int length) throws IOException { argument 104 append(buf, i, next<end ? BUFFER_LEN : (end-i)); 114 System.arraycopy(buf, i, mText, pos, length); 148 private void escapeAndAppendString(char[] buf, int start, int len) throws IOException { argument 155 char c = buf[pos]; 159 if (lastPos < pos) append(buf, lastPos, pos-lastPos); 163 if (lastPos < pos) append(buf, lastPos, pos-lastPos); 372 public XmlSerializer text(char[] buf, int start, int len) throws IOException, argument 378 escapeAndAppendString(buf, start, len); 380 mLineStart = buf[star [all...] |
/frameworks/base/core/jni/ |
H A D | android_util_EventLog.cpp | 74 uint8_t buf[MAX_EVENT_PAYLOAD]; local 80 size_t max = sizeof(buf) - sizeof(len) - 2; // Type byte, final newline 83 buf[0] = EVENT_TYPE_STRING; 84 memcpy(&buf[1], &len, sizeof(len)); 85 memcpy(&buf[1 + sizeof(len)], str, len); 86 buf[1 + sizeof(len) + len] = '\n'; 89 return android_bWriteLog(tag, buf, 2 + sizeof(len) + len); 102 uint8_t buf[MAX_EVENT_PAYLOAD]; local 103 const size_t max = sizeof(buf) - 1; // leave room for final newline 114 buf[po [all...] |
H A D | android_view_DisplayEventReceiver.cpp | 157 DisplayEventReceiver::Event buf[EVENT_BUFFER_SIZE]; local 159 while ((n = mReceiver.getEvents(buf, EVENT_BUFFER_SIZE)) > 0) { 162 const DisplayEventReceiver::Event& ev = buf[i];
|
/frameworks/base/libs/androidfw/ |
H A D | BackupData.cpp | 275 char* buf = m_key.lockBuffer(size); local 276 if (buf == NULL) { 280 int amt = read(m_fd, buf, size+1);
|
H A D | ZipUtils.cpp | 36 static inline unsigned long get4LE(const unsigned char* buf) { argument 37 return buf[0] | (buf[1] << 8) | (buf[2] << 16) | (buf[3] << 24); 52 * "buf" must hold at least "uncompressedLen" bytes. 54 /*static*/ template<typename T> bool inflateToBuffer(T& reader, void* buf, argument 77 zstream.next_out = (Bytef*) buf; 216 /*static*/ bool ZipUtils::inflateToBuffer(FILE* fp, void* buf, argument 220 return ::inflateToBuffer<FileReader>(reader, buf, 224 inflateToBuffer(int fd, void* buf, long uncompressedLen, long compressedLen) argument 232 inflateToBuffer(void* in, void* buf, long uncompressedLen, long compressedLen) argument 316 unsigned char buf[8]; local [all...] |
/frameworks/base/libs/hwui/ |
H A D | DrawProfiler.cpp | 222 char buf[PROPERTY_VALUE_MAX] = {'\0',}; local 223 if (property_get(PROPERTY_PROFILE, buf, "") > 0) { 224 if (!strcmp(buf, PROPERTY_PROFILE_VISUALIZE_BARS)) { 226 } else if (!strcmp(buf, "true")) {
|