/frameworks/base/services/core/java/com/android/server/am/ |
H A D | NativeCrashListener.java | 170 static int unpackInt(byte[] buf, int offset) { argument 173 b0 = ((int) buf[offset]) & 0xFF; // mask against sign extension 174 b1 = ((int) buf[offset+1]) & 0xFF; 175 b2 = ((int) buf[offset+2]) & 0xFF; 176 b3 = ((int) buf[offset+3]) & 0xFF; 200 final byte[] buf = new byte[4096]; 209 int headerBytes = readExactly(fd, buf, 0, 8); 216 int pid = unpackInt(buf, 0); 217 int signal = unpackInt(buf, 4); 240 bytes = Os.read(fd, buf, [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/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 | 542 ByteArrayOutputStream buf = new ByteArrayOutputStream(); 554 buf.write(tag); 555 buf.write(0x03); // length 556 buf.write(cmdDet.commandNumber); 557 buf.write(cmdDet.typeOfCommand); 558 buf.write(cmdDet.commandQualifier); 568 buf.write(tag); 569 buf.write(0x02); // length 570 buf.write(DEV_ID_TERMINAL); // source device id 571 buf 604 encodeOptionalTags(CommandDetails cmdDet, ResultCode resultCode, Input cmdInput, ByteArrayOutputStream buf) argument 633 getInKeyResponse(ByteArrayOutputStream buf, Input cmdInput) argument 642 getPliResponse(ByteArrayOutputStream buf) argument [all...] |
/frameworks/rs/cpu_ref/ |
H A D | rsCpuIntrinsicColorMatrix.cpp | 370 memcpy(buf, &_N_ColorMatrix_##x, _N_ColorMatrix_##x##_len); \ 371 buf += _N_ColorMatrix_##x##_len 374 static uint8_t * addBranch(uint8_t *buf, const uint8_t *target, uint32_t condition) { argument 375 size_t off = (target - buf - 8) >> 2; 382 ((uint32_t *)buf)[0] = op; 383 return buf + 4; 397 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) { 400 ((uint32_t *)buf)[0] = op; 401 return buf + 4; 404 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/minikin/include/minikin/ |
H A D | Layout.h | 41 uint8_t* buf; member in class:minikin::Bitmap 93 void doLayout(const uint16_t* buf, size_t start, size_t count, size_t bufSize, 96 static float measureText(const uint16_t* buf, size_t start, size_t count, size_t bufSize, 120 // The i parameter is an offset within the buf relative to start, it is < count, where 138 static float doLayoutRunCached(const uint16_t* buf, size_t runStart, size_t runLength, 143 static float doLayoutWord(const uint16_t* buf, size_t start, size_t count, size_t bufSize, 148 void doLayoutRun(const uint16_t* buf, size_t start, size_t count, size_t bufSize,
|
/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/services/core/jni/ |
H A D | com_android_server_am_BatteryStatsService.cpp | 59 char buf[80]; local 60 strerror_r(errno, buf, sizeof(buf)); 61 ALOGE("Error posting wakeup sem: %s\n", buf); 78 char buf[80]; local 79 strerror_r(errno, buf, sizeof(buf)); 80 ALOGE("Error creating semaphore: %s\n", buf); 81 jniThrowException(env, "java/lang/IllegalStateException", buf); 92 char buf[8 local [all...] |
/frameworks/av/media/libstagefright/colorconversion/ |
H A D | SoftwareRenderer.cpp | 211 ANativeWindowBuffer *buf; local 213 int err = mNativeWindow->dequeueBuffer(mNativeWindow.get(), &buf, &fenceFd); 215 info = mRenderTracker.updateInfoForDequeuedBuffer(buf, fenceFd, 0); 232 buf->handle, GRALLOC_USAGE_SW_WRITE_OFTEN, bounds, &dst)); 242 buf->stride, buf->height, 254 size_t dst_y_size = buf->stride * buf->height; 255 size_t dst_c_stride = ALIGN(buf->stride / 2, 16); 256 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/cppbasic/ |
H A D | compute.cpp | 59 uint32_t *buf = new uint32_t[t->getCount()]; local 61 buf[ct] = ct | (ct << 16); 63 ain->copy1DRangeFrom(0, t->getCount(), buf); 64 delete [] buf; 88 int *buf = new int[t->getCount()]; local 90 buf[ct] = 5; 92 kern1_in->copy2DRangeFrom(0, 0, xDim, yDim, buf); 93 delete [] buf;
|
/frameworks/rs/tests/cppbasic-shared/ |
H A D | compute.cpp | 59 uint32_t *buf = new uint32_t[t->getCount()]; local 61 buf[ct] = ct | (ct << 16); 63 ain->copy1DRangeFrom(0, t->getCount(), buf); 64 delete [] buf; 88 int *buf = new int[t->getCount()]; local 90 buf[ct] = 5; 92 kern1_in->copy2DRangeFrom(0, 0, xDim, yDim, buf); 93 delete [] buf;
|
/frameworks/support/v4/java/android/support/v4/util/ |
H A D | LogWriter.java | 51 @Override public void write(char[] buf, int offset, int count) { argument 53 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);
|
/frameworks/av/services/audioflinger/ |
H A D | AudioWatchdog.cpp | 30 char buf[32]; local 33 ctime_r(&mMostRecent, buf); 35 strcpy(buf, "N/A\n"); 38 mUnderruns, mLogs, buf);
|
/frameworks/base/tests/HierarchyViewerTest/src/com/android/test/hierarchyviewer/ |
H A D | Decoder.java | 26 public Decoder(byte[] buf) { argument 27 this(ByteBuffer.wrap(buf)); 30 public Decoder(ByteBuffer buf) { argument 31 mBuf = buf;
|
/frameworks/minikin/sample/ |
H A D | MinikinSkia.cpp | 58 void* buf = malloc(tableSize); 59 if (buf == nullptr) { 62 mTypeface->getTableData(tag, 0, tableSize, buf); 64 return buf;
|