/frameworks/rs/tests/java_api/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/base/core/java/android/util/proto/ |
H A D | EncodedBuffer.java | 635 public static void dumpByteString(String tag, String prefix, byte[] buf) { argument 636 dumpByteString(tag, prefix, 0, buf); 642 private static int dumpByteString(String tag, String prefix, int start, byte[] buf) { argument 644 final int length = buf.length; 661 byte b = buf[i];
|
/frameworks/base/core/jni/android/graphics/ |
H A D | GIFMovie.cpp | 436 char buf[GIF_STAMP_LEN]; local 437 if (stream->read(buf, GIF_STAMP_LEN) == GIF_STAMP_LEN) { 438 if (memcmp(GIF_STAMP, buf, GIF_STAMP_LEN) == 0 || 439 memcmp(GIF87_STAMP, buf, GIF_STAMP_LEN) == 0 || 440 memcmp(GIF89_STAMP, buf, GIF_STAMP_LEN) == 0) {
|
/frameworks/base/opengl/java/android/opengl/ |
H A D | GLES31Ext.java | 285 // C function void glDebugMessageInsertKHR ( GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf ) 292 String buf 445 // C function void glBlendEquationiEXT ( GLuint buf, GLenum mode ) 448 int buf, 452 // C function void glBlendEquationSeparateiEXT ( GLuint buf, GLenum modeRGB, GLenum modeAlpha ) 455 int buf, 460 // C function void glBlendFunciEXT ( GLuint buf, GLenum src, GLenum dst ) 463 int buf, 468 // C function void glBlendFuncSeparateiEXT ( GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha ) 471 int buf, 447 glBlendEquationiEXT( int buf, int mode ) argument 454 glBlendEquationSeparateiEXT( int buf, int modeRGB, int modeAlpha ) argument 462 glBlendFunciEXT( int buf, int src, int dst ) argument 470 glBlendFuncSeparateiEXT( int buf, int srcRGB, int dstRGB, int srcAlpha, int dstAlpha ) argument [all...] |
H A D | GLES32.java | 290 // C function void glDebugMessageInsert ( GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf ) 298 String buf 415 // C function void glBlendEquationi ( GLuint buf, GLenum mode ) 418 int buf, 422 // C function void glBlendEquationSeparatei ( GLuint buf, GLenum modeRGB, GLenum modeAlpha ) 425 int buf, 430 // C function void glBlendFunci ( GLuint buf, GLenum src, GLenum dst ) 433 int buf, 438 // C function void glBlendFuncSeparatei ( GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha ) 441 int buf, 417 glBlendEquationi( int buf, int mode ) argument 424 glBlendEquationSeparatei( int buf, int modeRGB, int modeAlpha ) argument 432 glBlendFunci( int buf, int src, int dst ) argument 440 glBlendFuncSeparatei( int buf, int srcRGB, int dstRGB, int srcAlpha, int dstAlpha ) argument [all...] |
H A D | GLLogWrapper.java | 130 private void formattedAppend(StringBuilder buf, int value, int format) { argument 133 buf.append(value); 136 buf.append(Float.intBitsToFloat(value)); 139 buf.append(value / 65536.0f); 145 StringBuilder buf = new StringBuilder(); 146 buf.append("{\n"); 150 buf.append(" [" + index + "] = "); 152 buf.append("out of bounds"); 154 formattedAppend(buf, arr[index], format); 156 buf 198 toString(int n, FloatBuffer buf) argument 208 toString(int n, int format, IntBuffer buf) argument 220 toString(int n, ShortBuffer buf) argument 230 arg(String name, int n, FloatBuffer buf) argument 234 arg(String name, int n, IntBuffer buf) argument 238 arg(String name, int n, ShortBuffer buf) argument [all...] |
/frameworks/rs/rsov/driver/ |
H A D | rsovRuntimeStubs.cpp | 142 char buf[256]; local 143 snprintf(buf, sizeof(buf), 147 rsc->setError(RS_ERROR_FATAL_DRIVER, buf); 442 char buf[256]; local 444 snprintf(buf, sizeof(buf), "Out range ElementAt X %i of %i", x, 446 rsc->setError(RS_ERROR_FATAL_DEBUG, buf); 451 snprintf(buf, sizeof(buf), "Ou [all...] |
/frameworks/base/core/jni/ |
H A D | android_hardware_camera2_legacy_LegacyCameraDevice.cpp | 185 sp<GraphicBuffer> buf(GraphicBuffer::from(anb)); 186 uint32_t grallocBufWidth = buf->getWidth(); 187 uint32_t grallocBufHeight = buf->getHeight(); 188 uint32_t grallocBufStride = buf->getStride(); 234 err = buf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**)(&img)); 262 err = buf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**)(&img)); 269 uint32_t stride = buf->getStride(); 295 err = buf->lockYCbCr(GRALLOC_USAGE_SW_WRITE_OFTEN, &ycbcr); 320 err = buf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**)(&img)); 338 err = buf [all...] |
H A D | android_util_Binder.cpp | 804 char buf[128]; local 805 sprintf(buf, "Restoring bad calling ident: 0x%" PRIx64, token); 806 jniThrowException(env, "java/lang/IllegalStateException", buf); 1015 static int getprocname(pid_t pid, char *buf, size_t len) { argument 1022 *buf = '\0'; 1025 if (!fgets(buf, len, f)) { 1026 *buf = '\0'; 1092 char buf[LOGGER_ENTRY_MAX_PAYLOAD]; local 1093 buf[0] = EVENT_TYPE_LIST; 1094 buf[ [all...] |
H A D | android_opengl_GLES31Ext.cpp | 247 char* buf = (char*) _env->GetDirectBufferAddress(buffer); local 248 if (buf) { 251 buf += position << elementSizeShift; 256 return (void*) buf; 552 /* void glDebugMessageInsertKHR ( GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf ) */ 555 (JNIEnv *_env, jobject _this, jint source, jint type, jint id, jint severity, jstring buf) { 562 if (!buf) { 565 _exceptionMessage = "buf == null"; 568 _nativebuf = _env->GetStringUTFChars(buf, 0); 569 _length = _env->GetStringUTFLength(buf); 554 android_glDebugMessageInsertKHR__IIIILjava_lang_String_2(JNIEnv *_env, jobject _this, jint source, jint type, jint id, jint severity, jstring buf) argument 791 android_glBlendEquationiEXT__II(JNIEnv *_env, jobject _this, jint buf, jint mode) argument 801 android_glBlendEquationSeparateiEXT__III(JNIEnv *_env, jobject _this, jint buf, jint modeRGB, jint modeAlpha) argument 812 android_glBlendFunciEXT__III(JNIEnv *_env, jobject _this, jint buf, jint src, jint dst) argument 823 android_glBlendFuncSeparateiEXT__IIIII(JNIEnv *_env, jobject _this, jint buf, jint srcRGB, jint dstRGB, jint srcAlpha, jint dstAlpha) argument [all...] |
/frameworks/native/opengl/tests/hwc/ |
H A D | hwcTestLib.cpp | 604 void hwcTestSetPixel(GraphicBuffer *gBuf, unsigned char *buf, argument 628 *(buf + yPlaneOffset + y * yPlaneStride + x) = pixel & 0xff; 629 *(buf + uPlaneOffset + (y / 2) * uPlaneStride + (x / 2)) 631 *(buf + vPlaneOffset + (y / 2) * vPlaneStride + (x / 2)) 648 memmove(buf + ((gBuf->getStride() * attrib->bytes) * y) 655 unsigned char* buf = NULL; local 661 err = gBuf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**)(&buf)); 669 hwcTestSetPixel(gBuf, buf, x, y, (x < gBuf->getWidth()) 693 unsigned char* buf = NULL; local 698 err = gBuf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**)(&buf)); [all...] |
/frameworks/av/media/libstagefright/filters/ |
H A D | MediaFilter.cpp | 693 sp<GraphicBuffer> buf = mGraphicBufferListener->getBuffer(item); local 697 buf->lock(GraphicBuffer::USAGE_SW_READ_OFTEN, &bufPtr); 705 mInputFormat, new ABuffer(buf->getWidth() * buf->getHeight() * 4)); 708 (uint8_t*)bufPtr, buf->getWidth(), buf->getHeight(), 709 buf->getStride(), inputInfo->mData->data());
|
/frameworks/base/core/java/com/android/internal/backup/ |
H A D | LocalTransport.java | 183 byte[] buf = new byte[bufSize]; 202 buf = new byte[bufSize]; 204 changeSet.readEntityData(buf, 0, dataSize); 217 entity.write(buf, 0, dataSize); 550 byte[] buf = new byte[size]; 551 in.read(buf); 554 out.writeEntityData(buf, size);
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
H A D | ResourceHelper.java | 582 char[] buf = value.toCharArray(); 584 if (buf[i] > 255) { 590 if ((buf[0] < '0' || buf[0] > '9') && buf[0] != '.' && buf[0] != '-' && buf[0] != '+') {
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
H A D | IccProvider.java | 207 StringBuilder buf = new StringBuilder("content://icc/"); 210 buf.append("adn/"); 214 buf.append("adn/subId/"); 218 buf.append("fdn/"); 222 buf.append("fdn/subId/"); 227 buf.append(0); 229 resultUri = Uri.parse(buf.toString());
|
/frameworks/rs/driver/ |
H A D | rsdGL.cpp | 504 char buf[1024]; 505 snprintf(buf, sizeof(buf), "GL Error = 0x%08x, from: %s", err, msg); 508 rsc->setError(RS_ERROR_FATAL_DRIVER, buf); 512 rsc->setError(RS_ERROR_OUT_OF_MEMORY, buf); 515 rsc->setError(RS_ERROR_DRIVER, buf); 520 ALOGE("%p, %s", rsc, buf);
|
/frameworks/av/services/camera/libcameraservice/device1/ |
H A D | CameraHardwareInterface.cpp | 200 buffer_handle_t& buf = anb->handle; local 201 auto it = mBufferIdMap.find(buf); 204 mBufferIdMap[buf] = bufId; 230 hidl_handle buf = nullptr; local 234 buf = (pair.first) ? anb->handle : nullptr; 239 _hidl_cb(s, bufferId, buf, stride); 432 status_t CameraHardwareInterface::setPreviewWindow(const sp<ANativeWindow>& buf) argument 434 ALOGV("%s(%s) buf %p", __FUNCTION__, mName.string(), buf.get()); 436 mPreviewWindow = buf; [all...] |
/frameworks/base/core/java/android/util/apk/ |
H A D | ApkSignatureSchemeV2Verifier.java | 832 private static byte[] readLengthPrefixedByteArray(ByteBuffer buf) throws IOException { argument 833 int len = buf.getInt(); 836 } else if (len > buf.remaining()) { 838 + ", available: " + buf.remaining()); 841 buf.get(result); 1053 ByteBuffer buf = new DirectByteBuffer( 1061 buf.position(0); 1062 md.update(buf); 1086 public ByteBufferDataSource(ByteBuffer buf) { argument 1087 // Defensive copy, to avoid changes to mBuf being visible in buf [all...] |
/frameworks/av/media/libaudioprocessing/ |
H A D | AudioResamplerDyn.cpp | 226 TC* buf = NULL; local 231 (void)posix_memalign(reinterpret_cast<void**>(&buf), 32, (c.mL+1)*c.mHalfNumCoefs*sizeof(TC)); 238 firKaiserGen(buf, c.mL, c.mHalfNumCoefs, stopBandAtten, fcr, atten); 239 c.mFirCoefs = buf; 243 mCoefBuffer = buf; 253 testFir(buf, c.mL, c.mHalfNumCoefs, fp, fs, /*passSteps*/ 1000, /*stopSteps*/ 100000,
|
/frameworks/av/media/mtp/ |
H A D | MtpFfsHandle.cpp | 367 const char* buf = static_cast<const char*>(data); local 370 int n = TEMP_FAILURE_RETRY(::write(fd, buf, write_len)); 380 buf += n; 390 char* buf = static_cast<char*>(data); local 393 int n = TEMP_FAILURE_RETRY(::read(fd, buf, read_len)); 401 buf += n;
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/ |
H A D | ExifParser.java | 560 byte[] buf = new byte[(int) numOfComp]; 562 buf, 0, (int) numOfComp); 563 tag.setValue(buf); 682 byte buf[] = new byte[tag.getComponentCount()]; 683 read(buf); 684 tag.setValue(buf);
|
/frameworks/rs/cpu_ref/ |
H A D | rsCpuExecutable.cpp | 205 char buf[len + 1]; local 211 buf[i] = 'a' + r; 214 buf[i] = 'A' + (r - 26); 217 buf[i] = '0' + (r - 52); 220 buf[len] = '\0'; 221 return std::string(buf);
|
/frameworks/av/media/img_utils/src/ |
H A D | DngUtils.cpp | 47 status_t OpcodeListBuilder::buildOpList(uint8_t* buf) const { 49 memcpy(buf, &count, sizeof(count)); 50 memcpy(buf + sizeof(count), mOpList.getArray(), mOpList.getSize());
|
/frameworks/av/media/libmedia/ |
H A D | Visualizer.cpp | 292 uint8_t buf[mCaptureSize]; local 293 status = getWaveForm(buf); 295 status = doFft(fft, buf);
|
/frameworks/av/media/libstagefright/omx/1.0/ |
H A D | WGraphicBufferProducer.cpp | 40 sp<GraphicBuffer> buf; local 41 status_t status = mBase->requestBuffer(slot, &buf); 43 wrapAs(&anwBuffer, *buf);
|