/frameworks/base/services/core/java/com/android/server/am/ |
H A D | NativeCrashListener.java | 165 static int unpackInt(byte[] buf, int offset) { argument 168 b0 = ((int) buf[offset]) & 0xFF; // mask against sign extension 169 b1 = ((int) buf[offset+1]) & 0xFF; 170 b2 = ((int) buf[offset+2]) & 0xFF; 171 b3 = ((int) buf[offset+3]) & 0xFF; 195 final byte[] buf = new byte[4096]; 208 int headerBytes = readExactly(fd, buf, 0, 8); 215 int pid = unpackInt(buf, 0); 216 int signal = unpackInt(buf, 4); 239 bytes = Os.read(fd, buf, [all...] |
/frameworks/av/media/libmedia/ |
H A D | IMediaSource.cpp | 149 MediaBuffer *buf; local 170 buf = new RemoteMediaBufferWrapper(mem); 171 buf->set_range(offset, length); 172 buf->meta_data()->updateFromParcel(reply); 176 buf = new MediaBuffer(len); 177 reply.read(buf->data(), len); 178 buf->meta_data()->updateFromParcel(reply); 180 buffers->push_back(buf); 346 MediaBuffer *buf = nullptr; local 347 ret = read(&buf, useOption [all...] |
/frameworks/base/core/java/android/util/apk/ |
H A D | ZipUtils.java | 121 ByteBuffer buf = ByteBuffer.allocate(ZIP_EOCD_REC_MIN_SIZE + maxCommentSize); 122 buf.order(ByteOrder.LITTLE_ENDIAN); 123 long bufOffsetInFile = fileSize - buf.capacity(); 125 zip.readFully(buf.array(), buf.arrayOffset(), buf.capacity()); 126 int eocdOffsetInBuf = findZipEndOfCentralDirectoryRecord(buf); 132 buf.position(eocdOffsetInBuf); 133 ByteBuffer eocd = buf.slice();
|
/frameworks/ex/framesequence/jni/ |
H A D | FrameSequenceJNI.cpp | 63 jobject buf, jint offset, jint limit) { 64 jobject globalBuf = env->NewGlobalRef(buf); 87 jobject buf = frameSequence->getRawByteBuffer(); local 88 if (buf != NULL) { 89 env->DeleteGlobalRef(buf); 112 char buf[256]; local 113 snprintf(buf, sizeof(buf), "%s, error %d", message, errorCode); 114 jniThrowException(env, ILLEGAL_STATE_EXEPTION, buf); 62 nativeDecodeByteBuffer(JNIEnv* env, jobject clazz, jobject buf, jint offset, jint limit) argument
|
/frameworks/av/media/img_utils/include/img_utils/ |
H A D | EndianUtils.h | 102 virtual status_t write(const uint8_t* buf, size_t offset, size_t count); 104 virtual status_t write(const int8_t* buf, size_t offset, size_t count); 106 virtual status_t write(const uint16_t* buf, size_t offset, size_t count); 108 virtual status_t write(const int16_t* buf, size_t offset, size_t count); 110 virtual status_t write(const uint32_t* buf, size_t offset, size_t count); 112 virtual status_t write(const int32_t* buf, size_t offset, size_t count); 114 virtual status_t write(const uint64_t* buf, size_t offset, size_t count); 116 virtual status_t write(const int64_t* buf, size_t offset, size_t count); 118 virtual status_t write(const float* buf, size_t offset, size_t count); 120 virtual status_t write(const double* buf, size_ 132 writeHelper(const T* buf, size_t offset, size_t count) argument [all...] |
H A D | Input.h | 49 virtual ssize_t read(uint8_t* buf, size_t offset, size_t count) = 0;
|
H A D | Output.h | 48 virtual status_t write(const uint8_t* buf, size_t offset, size_t count) = 0;
|
/frameworks/base/libs/common_time/ |
H A D | diag_thread.cpp | 275 char buf[1024]; local 279 snprintf(buf, sizeof(buf), "E,%lld,%lld,%lld,%d\n", 284 buf[sizeof(buf) - 1] = 0; 287 write(data_fd_, buf, strlen(buf)); 295 char buf[1024]; local 297 snprintf(buf, sizeof(buf), [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/ |
H A D | CatService.java | 543 ByteArrayOutputStream buf = new ByteArrayOutputStream(); 555 buf.write(tag); 556 buf.write(0x03); // length 557 buf.write(cmdDet.commandNumber); 558 buf.write(cmdDet.typeOfCommand); 559 buf.write(cmdDet.commandQualifier); 569 buf.write(tag); 570 buf.write(0x02); // length 571 buf.write(DEV_ID_TERMINAL); // source device id 572 buf 605 encodeOptionalTags(CommandDetails cmdDet, ResultCode resultCode, Input cmdInput, ByteArrayOutputStream buf) argument 634 getInKeyResponse(ByteArrayOutputStream buf, Input cmdInput) argument 643 getPliResponse(ByteArrayOutputStream buf) argument [all...] |
/frameworks/rs/cpu_ref/ |
H A D | rsCpuIntrinsicColorMatrix.cpp | 367 memcpy(buf, &_N_ColorMatrix_##x, _N_ColorMatrix_##x##_len); \ 368 buf += _N_ColorMatrix_##x##_len 371 static uint8_t * addBranch(uint8_t *buf, const uint8_t *target, uint32_t condition) { argument 372 size_t off = (target - buf - 8) >> 2; 379 ((uint32_t *)buf)[0] = op; 380 return buf + 4; 394 static uint8_t * addVMLAL_S16(uint8_t *buf, uint32_t dest_q, uint32_t src_d1, uint32_t src_d2, uint32_t src_d2_s) { 397 ((uint32_t *)buf)[0] = op; 398 return buf + 4; 401 static uint8_t * addVMULL_S16(uint8_t *buf, uint32_ [all...] |
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/ |
H A D | CountedDataInputStream.java | 126 byte buf[] = new byte[n]; 127 readOrThrow(buf); 128 return new String(buf, "UTF8"); 132 byte buf[] = new byte[n]; 133 readOrThrow(buf); 134 return new String(buf, charset);
|
/frameworks/native/opengl/tests/gl2_yuvtex/ |
H A D | gl2_yuvtex.cpp | 94 char* buf = (char*) malloc(infoLen); local 95 if (buf) { 96 glGetShaderInfoLog(shader, infoLen, NULL, buf); 98 shaderType, buf); 99 free(buf); 103 char* buf = (char*) malloc(0x1000); local 104 if (buf) { 105 glGetShaderInfoLog(shader, 0x1000, NULL, buf); 107 shaderType, buf); 108 free(buf); 142 char* buf = (char*) malloc(bufLength); local 203 char* buf = NULL; local [all...] |
/frameworks/base/tools/bit/ |
H A D | adb.cpp | 127 char* buf = (char*)malloc(size); local 128 if (buf == NULL) { 134 ssize_t amt = read(fd, buf+pos, size-pos); 139 free(buf); 144 free(buf); 150 return buf; 158 char* buf = read_sized_buffer(fd, &err, &size); local 160 if (buf != NULL) { 161 free(buf); 165 if (buf ! [all...] |
/frameworks/base/services/core/jni/ |
H A D | com_android_server_am_BatteryStatsService.cpp | 68 char buf[80]; local 69 strerror_r(errno, buf, sizeof(buf)); 70 ALOGE("Error posting wakeup sem: %s\n", buf); 87 char buf[80]; local 88 strerror_r(errno, buf, sizeof(buf)); 89 ALOGE("Error creating semaphore: %s\n", buf); 90 jniThrowException(env, "java/lang/IllegalStateException", buf); 101 char buf[8 local [all...] |
/frameworks/minikin/libs/minikin/ |
H A D | GraphemeBreak.cpp | 59 bool GraphemeBreak::isGraphemeBreak(const float* advances, const uint16_t* buf, size_t start, argument 70 if (U16_IS_TRAIL(buf[offset])) { 72 return !U16_IS_LEAD(buf[offset - 1]); 78 U16_PREV(buf, start, offset_back, c1); 79 U16_NEXT(buf, offset_forward, start + count, c2); 138 U16_PREV(buf, start, offset_backback, c0); 155 U16_PREV(buf, start, offset_backback, c0); 158 U16_PREV(buf, start, offset_backback, c0); 182 U16_PREV(buf, lookback_barrier, offset_backback, c0); 205 size_t GraphemeBreak::getTextRunCursor(const float* advances, const uint16_t* buf, size_ argument [all...] |
/frameworks/av/media/libstagefright/colorconversion/ |
H A D | SoftwareRenderer.cpp | 213 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/cmds/screenrecord/ |
H A D | FrameOutput.h | 68 static void reduceRgbaToRgb(uint8_t* buf, unsigned int pixelCount); 71 static void setValueLE(uint8_t* buf, uint32_t value);
|
/frameworks/base/core/java/android/util/ |
H A D | LogWriter.java | 64 @Override public void write(char[] buf, int offset, int count) { argument 66 char c = buf[offset + i];
|
/frameworks/base/core/java/com/android/internal/util/ |
H A D | LineBreakBufferedWriter.java | 118 public void write(char[] buf, int off, int len) { argument 125 if (buf[off + i] == '\n') { 136 appendToBuffer(buf, off, nextNewLine); 150 appendToBuffer(buf, off, rest); 161 appendToBuffer(buf, off, len); 163 if (buf[off + i] == '\n') { 228 * @param buf The char[] containing the data. 232 private void appendToBuffer(char[] buf, int off, int len) { argument 236 System.arraycopy(buf, off, buffer, bufferIndex, len);
|
/frameworks/compile/mclinker/lib/Script/ |
H A D | ScriptReader.cpp | 48 std::stringbuf buf(region.data()); 50 std::istream in(&buf);
|
/frameworks/native/libs/input/tests/ |
H A D | TestHelpers.h | 55 char buf[1]; local 56 ssize_t nRead = ::read(receiveFd, buf, 1);
|
/frameworks/rs/tests/cpp_api/cppbasic/ |
H A D | compute.cpp | 56 uint32_t *buf = new uint32_t[t->getCount()]; local 58 buf[ct] = ct | (ct << 16); 60 ain->copy1DRangeFrom(0, t->getCount(), buf); 61 delete [] buf; 85 int *buf = new int[t->getCount()]; local 87 buf[ct] = 5; 89 kern1_in->copy2DRangeFrom(0, 0, xDim, yDim, buf); 90 delete [] buf;
|
/frameworks/rs/tests/cpp_api/cppbasic-shared/ |
H A D | compute.cpp | 56 uint32_t *buf = new uint32_t[t->getCount()]; local 58 buf[ct] = ct | (ct << 16); 60 ain->copy1DRangeFrom(0, t->getCount(), buf); 61 delete [] buf; 85 int *buf = new int[t->getCount()]; local 87 buf[ct] = 5; 89 kern1_in->copy2DRangeFrom(0, 0, xDim, yDim, buf); 90 delete [] buf;
|
/frameworks/support/compat/java/android/support/v4/util/ |
H A D | LogWriter.java | 55 @Override public void write(char[] buf, int offset, int count) { argument 57 char c = buf[offset + i];
|
/frameworks/av/media/libstagefright/webm/ |
H A D | WebmFrame.h | 33 WebmFrame(int type, bool key, uint64_t absTimecode, MediaBuffer *buf);
|