/frameworks/base/libs/androidfw/ |
H A D | CursorWindow.cpp | 184 LOG_WINDOW("Allocated row %u, rowSlot is at offset %u, fieldDir is %d bytes at offset %u\n", 186 rowSlot->offset = fieldDirOffset; 210 uint32_t offset = mHeader->freeOffset + padding; local 211 uint32_t nextFreeOffset = offset + size; 220 return offset; 269 FieldSlot* fieldDir = static_cast<FieldSlot*>(offsetToPtr(rowSlot->offset)); 293 uint32_t offset = alloc(size); local 294 if (!offset) { 298 memcpy(offsetToPtr(offset), valu [all...] |
H A D | ResourceTypes.cpp | 324 uint16_t offset = dtohs(mData[3]); local 326 if (entryId < offset) { 331 entryId -= offset;
|
/frameworks/base/libs/common_time/ |
H A D | common_time_server.cpp | 588 size_t offset = 0; local 591 for (i = 0; (i < src_len) && (offset < dst_len); ++i) { 594 res = snprintf(dst + offset, dst_len - offset, "\n%04zx :", i); 597 offset += res; 598 if (offset >= dst_len) 602 res = snprintf(dst + offset, dst_len - offset, " %02x", src[i]); 605 offset += res;
|
H A D | common_time_server_packets.cpp | 42 if ((offset + sizeof(field_name)) > length) \ 44 *((type*)(data + offset)) = converter(field_name); \ 45 offset += sizeof(field_name); \ 53 if ((offset + sizeof(field_name)) > length) \ 55 field_name = converter(*((type*)(data + offset))); \ 56 offset += sizeof(field_name); \ 80 ssize_t offset = 0; local 87 return offset; 92 ssize_t offset = 0; local 100 return offset; 186 ssize_t offset = serializeHeader(data, length); local 196 ssize_t offset = deserializeHeader(data, length); local 208 ssize_t offset = serializeHeader(data, length); local 218 ssize_t offset = deserializeHeader(data, length); local 230 ssize_t offset = serializeHeader(data, length); local 239 ssize_t offset = deserializeHeader(data, length); local 248 ssize_t offset = serializeHeader(data, length); local 260 ssize_t offset = deserializeHeader(data, length); local 272 ssize_t offset = serializeHeader(data, length); local 282 ssize_t offset = deserializeHeader(data, length); local [all...] |
/frameworks/base/libs/hwui/ |
H A D | DisplayListOp.h | 1182 float left, top, offset; local 1184 PathCache::computePathBounds(path, paint, left, top, offset, width, height); 1185 left -= offset; 1186 top -= offset;
|
H A D | FrameInfo.h | 143 int64_t offset = get(FrameInfoIndex::SyncStart) local 145 if (offset > 0) { 146 gap -= offset;
|
H A D | OpenGLRenderer.cpp | 989 int offset = 0; local 994 offset ^= 0x2; 999 paint.setColor(colors[offset + (i & 0x1)]); 1793 const float x = left + texture->left - texture->offset; 1794 const float y = top + texture->top - texture->offset; 2224 const float x = texture->left - texture->offset; 2225 const float y = texture->top - texture->offset;
|
H A D | PatchCache.h | 149 BufferBlock(uint32_t offset, uint32_t size): offset(offset), size(size), next(nullptr) { argument 152 uint32_t offset; member in struct:android::uirenderer::PatchCache::BufferBlock
|
H A D | PathCache.cpp | 130 float& left, float& top, float& offset, uint32_t& width, uint32_t& height) { 132 PathCache::computeBounds(bounds, paint, left, top, offset, width, height); 136 float& left, float& top, float& offset, uint32_t& width, uint32_t& height) { 143 offset = (int) floorf(std::max(paint->getStrokeWidth(), 1.0f) * 1.5f + 0.5f); 145 width = uint32_t(pathWidth + offset * 2.0 + 0.5); 146 height = uint32_t(pathHeight + offset * 2.0 + 0.5); 167 float left, float top, float offset, uint32_t width, uint32_t height) { 174 canvas.translate(-left + offset, -top + offset); 274 float left, top, offset; local 129 computePathBounds(const SkPath* path, const SkPaint* paint, float& left, float& top, float& offset, uint32_t& width, uint32_t& height) argument 135 computeBounds(const SkRect& bounds, const SkPaint* paint, float& left, float& top, float& offset, uint32_t& width, uint32_t& height) argument 166 drawPath(const SkPath *path, const SkPaint* paint, SkBitmap& bitmap, float left, float top, float offset, uint32_t width, uint32_t height) argument 333 float left, top, offset; local [all...] |
H A D | PathCache.h | 65 float offset, int generation) 69 , offset(offset) { 92 float offset = 0; member in struct:android::uirenderer::PathTexture 232 float& left, float& top, float& offset, uint32_t& width, uint32_t& height); 234 float& left, float& top, float& offset, uint32_t& width, uint32_t& height); 64 PathTexture(Caches& caches, float left, float top, float offset, int generation) argument
|
H A D | PathTessellator.cpp | 83 * Produces a pseudo-normal for a vertex, given the normals of the two incoming lines. If the offset 84 * from each vertex in a perimeter is calculated, the resultant lines connecting the offset vertices 85 * will be offset by 1.0 88 * offset of (sqrt(2)/2, sqrt(2)/2) at each corner, instead of (1, 1) 131 inline void scaleOffsetForStrokeWidth(Vector2& offset) const { 134 offset.x *= 0.5f * inverseScaleX; 135 offset.y *= 0.5f * inverseScaleY; 137 offset *= halfStrokeWidth; 145 inline Vector2 deriveAAOffset(const Vector2& offset) const { 146 return (Vector2){offset 406 storeCapAA(const PaintInfo& paintInfo, const std::vector<Vertex>& vertices, AlphaVertex* buffer, bool isFirst, Vector2 normal, int offset) argument 585 int offset = 2 * (vertices.size() - 2); local 654 int offset = 2 * perimeter.size() + 3; local 996 const int offset = 2 * i; local [all...] |
H A D | PixelBuffer.cpp | 42 void upload(uint32_t x, uint32_t y, uint32_t width, uint32_t height, int offset) override; 71 void CpuPixelBuffer::upload(uint32_t x, uint32_t y, uint32_t width, uint32_t height, int offset) { argument 73 mFormat, GL_UNSIGNED_BYTE, &mBuffer[offset]); 89 void upload(uint32_t x, uint32_t y, uint32_t width, uint32_t height, int offset) override; 149 void GpuPixelBuffer::upload(uint32_t x, uint32_t y, uint32_t width, uint32_t height, int offset) { argument 154 GL_UNSIGNED_BYTE, reinterpret_cast<void*>(offset));
|
H A D | Program.cpp | 154 const mat4& transformMatrix, bool offset) { 155 if (projectionMatrix != mProjection || offset != mOffset) { 156 if (CC_LIKELY(!offset)) { 160 // offset screenspace xy by an amount that compensates for typical precision 163 // This offset value is based on an assumption that some hardware may use as 164 // little as 12.4 precision, so we offset by slightly more than 1/16. 169 mOffset = offset; 153 set(const mat4& projectionMatrix, const mat4& modelViewMatrix, const mat4& transformMatrix, bool offset) argument
|
H A D | RenderProperties.h | 493 bool offsetLeftRight(int offset) { argument 494 if (offset != 0) { 495 mPrimitiveFields.mLeft += offset; 496 mPrimitiveFields.mRight += offset; 502 bool offsetTopBottom(int offset) { argument 503 if (offset != 0) { 504 mPrimitiveFields.mTop += offset; 505 mPrimitiveFields.mBottom += offset;
|
H A D | SpotShadow.cpp | 631 // Starting with some negative offset, assuming both umbra and penumbra are starting 634 int offset = polygonLength - 2; local 636 int currentIndex = (i + offset) % polygonLength;
|
/frameworks/base/libs/hwui/debug/ |
H A D | nullgles.cpp | 178 void glBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, const void *data) {} argument 278 void* glMapBufferRange(GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access) { argument
|
/frameworks/base/libs/usb/tests/accessorytest/ |
H A D | hid.c | 52 int id, ret, offset; local 94 for (offset = 0; offset < desc_length; ) { 95 int count = desc_length - offset; 98 fprintf(stderr, "sending ACCESSORY_SET_HID_REPORT_DESC offset: %d count: %d desc_length: %d\n", 99 offset, count, desc_length); 101 ACCESSORY_SET_HID_REPORT_DESC, id, offset, &desc.value[offset], count, 1000); 103 offset += count;
|
/frameworks/base/media/java/android/media/ |
H A D | AmrInputStream.java | 74 public int read(byte[] b, int offset, int length) throws IOException { argument 96 System.arraycopy(mBuf, mBufOut, b, offset, length);
|
H A D | ExifInterface.java | 345 // Private tags used for pointing the other IFD offset. The types of the following tags are int. 1002 // List of tags for pointing to the other image file directory offset. 1012 // Tags for indicating the thumbnail offset and length 1119 * for writable and seekable file descriptors only. This constructor will not rewind the offset 1671 * Returns the offset and length of thumbnail inside the image file, or 1674 * @return two-element array, the offset in the first value, and length in 2080 // Read first ifd offset 2083 throw new IOException("Invalid first Ifd offset: " + firstIfdOffset); 2123 Log.d(TAG, "Thumbnail offset: " + mThumbnailOffset + ", length: " 2167 // Return if there is no data from the offset 2737 write(byte[] bytes, int offset, int length) argument [all...] |
H A D | JetPlayer.java | 545 private native final boolean native_loadJetFromFileD(FileDescriptor fd, long offset, long len); argument
|
H A D | MediaCodec.java | 195 Also note that the meaning of {@link BufferInfo#offset BufferInfo.offset} was not consistent across 196 devices. On some devices the offset pointed to the top-left pixel of the crop rectangle, while on 1472 * Per buffer metadata includes an offset and size specifying 1479 * @param newOffset the start-offset of the data in the buffer. 1488 offset = newOffset; 1495 * The start-offset of the data in the buffer. 1497 public int offset; field in class:MediaCodec.BufferInfo 1534 copy.set(offset, size, presentationTimeUs, flags); 2254 * @param offset Th 2271 queueInputBuffer( int index, int offset, int size, long presentationTimeUs, int flags) argument 2288 native_queueInputBuffer( int index, int offset, int size, long presentationTimeUs, int flags) argument 2467 queueSecureInputBuffer( int index, int offset, @NonNull CryptoInfo info, long presentationTimeUs, int flags) argument 2486 native_queueSecureInputBuffer( int index, int offset, @NonNull CryptoInfo info, long presentationTimeUs, int flags) argument [all...] |
H A D | MediaDataSource.java | 46 * @param offset the offset within buffer to read the data into. 51 public abstract int readAt(long position, byte[] buffer, int offset, int size) argument
|
H A D | MediaExtractor.java | 229 * @param offset the offset into the file where the data to be extracted starts, in bytes 233 @NonNull FileDescriptor fd, long offset, long length) throws IOException; 504 * starting at the given offset. 511 public native int readSampleData(@NonNull ByteBuffer byteBuf, int offset); argument 232 setDataSource( @onNull FileDescriptor fd, long offset, long length) argument
|
H A D | MediaHTTPConnection.java | 170 private void seekTo(long offset) throws IOException { argument 200 if (offset > 0) { 202 "Range", "bytes=" + offset + "-"); 288 if (offset > 0 && response != HttpURLConnection.HTTP_PARTIAL) { 297 mCurrentOffset = offset; 309 public int readAt(long offset, int size) { argument 310 return native_readAt(offset, size); 313 private int readAt(long offset, byte[] data, int size) { argument 320 if (offset != mCurrentOffset) { 321 seekTo(offset); 403 native_readAt(long offset, int size) argument [all...] |
H A D | MediaMetadataRetriever.java | 115 * @param offset the offset into the file where the data to be played starts, 121 public native void setDataSource(FileDescriptor fd, long offset, long length) argument
|