Searched defs:offset (Results 151 - 175 of 693) sorted by relevance

1234567891011>>

/frameworks/base/rs/java/android/renderscript/
H A DFloat2.java378 * @param offset
380 public void copyTo(float[] data, int offset) { argument
381 data[offset] = x;
382 data[offset + 1] = y;
H A DFloat3.java410 * @param offset
412 public void copyTo(float[] data, int offset) { argument
413 data[offset] = x;
414 data[offset + 1] = y;
415 data[offset + 2] = z;
/frameworks/base/services/core/java/com/android/server/am/
H A DNativeCrashListener.java165 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;
175 static int readExactly(FileDescriptor fd, byte[] buffer, int offset, int numBytes) argument
179 int n = Os.read(fd, buffer, offset + totalRead, numBytes);
/frameworks/base/services/net/java/android/net/netlink/
H A DNetlinkSocket.java138 public boolean sendMessage(byte[] bytes, int offset, int count) argument
140 return sendMessage(bytes, offset, count, 0);
149 public boolean sendMessage(byte[] bytes, int offset, int count, long timeoutMs) argument
162 return (count == Os.write(mDescriptor, bytes, offset, count));
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/
H A DGsmSmsCbMessage.java226 int offset = SmsCbHeader.PDU_HEADER_LENGTH + 1 + (PDU_BODY_PAGE_LENGTH + 1) * i;
227 int length = pdu[offset + PDU_BODY_PAGE_LENGTH];
234 Pair<String, String> p = unpackBody(pdu, encoding, offset, length,
242 int offset = SmsCbHeader.PDU_HEADER_LENGTH;
243 int length = pdu.length - offset;
245 return unpackBody(pdu, encoding, offset, length, hasLanguageIndicator, language);
255 * @param offset Position of the first byte to unpack
263 private static Pair<String, String> unpackBody(byte[] pdu, int encoding, int offset, int length, argument
269 body = GsmAlphabet.gsm7BitPackedToString(pdu, offset, length * 8 / 7);
273 // The actual body text is offset b
[all...]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/
H A Dsobeloperator.cpp50 const int offset = (i * width + j) * 3; local
52 *(gxPtr + offset + c) =
56 *(gyPtr + offset + c) =
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DBitmapMutateActivity.java46 mAnimator = ObjectAnimator.ofInt(view, "offset", 0, PATTERN_SIZE - 1);
78 public void setOffset(int offset) { argument
79 mOffset = offset;
H A DLines2Activity.java69 public LinesView(Context c, float offset, int color) { argument
71 mOffset = offset;
H A DLinesActivity.java42 mAnimator = ObjectAnimator.ofFloat(view, "offset", 0.0f, 15.0f);
109 public void setOffset(float offset) { argument
110 mOffset = offset;
H A DTransform3dActivity.java77 private void drawBitmap(Canvas canvas, float centerX, float centerY, float offset, argument
80 canvas.translate(offset, 0.0f);
/frameworks/base/tools/aapt2/proto/
H A DTableProtoSerializer_test.cpp164 uint64_t offset, len; local
165 ASSERT_TRUE(in_file_stream.ReadDataMetaData(&offset, &len));
167 std::string actual_data(output_str.data() + offset, len);
171 EXPECT_EQ(0u, offset & 0x03);
185 ASSERT_TRUE(in_file_stream.ReadDataMetaData(&offset, &len));
187 actual_data = std::string(output_str.data() + offset, len);
191 EXPECT_EQ(0u, offset & 0x03);
221 uint64_t offset, len; local
222 EXPECT_FALSE(in_file_stream.ReadDataMetaData(&offset, &len));
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/libcore/io/
H A DBridgeBufferIterator.java37 public void seek(int offset) { argument
38 assert offset <= mSize;
39 mByteBuffer.position(offset);
/frameworks/compile/mclinker/lib/Fragment/
H A DFragmentRef.cpp46 /// @param pOffset - the offset, can be larger than the fragment, but can not
48 /// @return if the offset is legal, return the fragment reference. Otherwise,
51 int64_t offset = pOffset; local
55 offset -= frag->size();
56 if (offset <= 0)
61 if (offset == 0)
64 offset += frag->size();
71 new (result) FragmentRef(*frag, offset);
119 // check if the offset is still in a legal range.
/frameworks/compile/mclinker/lib/LD/
H A DBranchIsland.cpp59 uint64_t BranchIsland::offset() const { function in class:mcld::BranchIsland
H A DDebugString.cpp78 uint32_t offset = pBackend.getRelocator()->getDebugStringOffset(pReloc); local
79 const char* str = d_str.data() + offset;
/frameworks/compile/mclinker/lib/Target/ARM/
H A DARMGOT.cpp52 uint32_t offset = 0; local
54 // setup GOT0 offset
57 frag->setOffset(offset);
58 offset += frag->size();
61 // push GOTPLT into the SectionData and setup the offset
69 entry->setOffset(offset);
70 offset += entry->size();
75 // push GOT into the SectionData and setup the offset
83 entry->setOffset(offset);
84 offset
[all...]
/frameworks/compile/mclinker/lib/Target/Hexagon/
H A DHexagonAbsoluteStub.cpp84 int64_t offset = pTargetSymValue - pSource; local
85 // if offset is going to fit in nbits then we dont
87 if (FITS_IN_NBITS(offset, nbits))
/frameworks/compile/mclinker/unittests/
H A DELFReaderTest.cpp88 ASSERT_EQ(0x40u, (*iter)->offset());
109 m_pInput->fileOffset() + symtab_shdr->offset(), symtab_shdr->size());
112 m_pInput->fileOffset() + strtab_shdr->offset(), strtab_shdr->size());
127 uint64_t offset = m_pInput->fileOffset() + (*rs)->offset(); local
129 llvm::StringRef region = mem->request(offset, size);
/frameworks/minikin/libs/minikin/
H A DGraphemeBreak.cpp60 size_t count, const size_t offset) {
67 if (offset <= start || offset >= start + count) {
70 if (U16_IS_TRAIL(buf[offset])) {
72 return !U16_IS_LEAD(buf[offset - 1]);
76 size_t offset_back = offset;
77 size_t offset_forward = offset;
113 const bool c2_has_advance = (advances != nullptr && advances[offset - start] != 0.0);
189 return (offset - offset_backback) % 4 == 0;
206 size_t count, size_t offset, MoveOp
59 isGraphemeBreak(const float* advances, const uint16_t* buf, size_t start, size_t count, const size_t offset) argument
205 getTextRunCursor(const float* advances, const uint16_t* buf, size_t start, size_t count, size_t offset, MoveOpt opt) argument
[all...]
H A DMeasurement.cpp33 size_t start, size_t count, size_t offset) {
37 for (size_t i = start; i < offset; i++) {
45 if (offset < start + count && advances[offset - layoutStart] == 0.0f) {
50 for (nextCluster = offset + 1; nextCluster < start + count; nextCluster++) {
56 bool isAfter = i >= offset;
73 size_t offset) {
74 return getRunAdvance(advances, buf, start, start, count, offset);
78 * Essentially the inverse of getRunAdvance. Compute the value of offset for which the
32 getRunAdvance(const float* advances, const uint16_t* buf, size_t layoutStart, size_t start, size_t count, size_t offset) argument
72 getRunAdvance(const float* advances, const uint16_t* buf, size_t start, size_t count, size_t offset) argument
/frameworks/minikin/tests/unittest/
H A DGraphemeBreakTests.cpp26 size_t offset; local
28 ParseUnicode(buf, BUF_SIZE, src, &size, &offset);
29 return GraphemeBreak::isGraphemeBreak(nullptr, buf, 0, size, offset);
35 size_t offset; local
37 ParseUnicode(buf, BUF_SIZE, src, &size, &offset);
38 return GraphemeBreak::isGraphemeBreak(advances, buf, 0, size, offset);
/frameworks/minikin/tests/util/
H A DUnicodeUtils.cpp26 // src is of the form "U+1F431 | 'h' 'i'". Position of "|" gets saved to offset if non-null.
29 size_t* offset) {
77 LOG_ALWAYS_FATAL_IF(offset == nullptr);
78 *offset = output_ix;
88 LOG_ALWAYS_FATAL_IF(!seen_offset && offset != nullptr);
91 std::vector<uint16_t> parseUnicodeStringWithOffset(const std::string& in, size_t* offset) { argument
94 ParseUnicode(buffer.get(), in.size(), in.c_str(), &result_size, offset);
28 ParseUnicode(uint16_t* buf, size_t buf_size, const char* src, size_t* result_size, size_t* offset) argument
/frameworks/native/libs/binder/
H A DMemoryHeapBase.cpp79 MemoryHeapBase::MemoryHeapBase(int fd, size_t size, uint32_t flags, uint32_t offset) argument
85 mapfd(fcntl(fd, F_DUPFD_CLOEXEC, 0), size, offset); local
101 status_t MemoryHeapBase::mapfd(int fd, size_t size, uint32_t offset) argument
113 PROT_READ|PROT_WRITE, MAP_SHARED, fd, offset);
129 mOffset = offset;
/frameworks/native/libs/vr/libpdx/private/pdx/rpc/
H A Dpayload.h52 const std::size_t offset = buffer_.size(); local
53 buffer_.resize(offset + size);
54 cursor_ = buffer_.begin() + offset;
55 const_cursor_ = buffer_.cbegin() + offset;
/frameworks/native/opengl/tools/glgen/stubs/egl/
H A DeglCreateWindowSurface.cpp4 (JNIEnv *_env, jobject _this, jobject dpy, jobject config, jobject win, jintArray attrib_list_ref, jint offset) {
18 if (offset < 0) {
21 _exceptionMessage = "offset < 0";
24 _remaining = _env->GetArrayLength(attrib_list_ref) - offset;
27 attrib_list = attrib_list_base + offset;
77 (JNIEnv *_env, jobject _this, jobject dpy, jobject config, jobject win, jintArray attrib_list_ref, jint offset) {
97 if (offset < 0) {
100 _exceptionMessage = "offset < 0";
120 _remaining = _env->GetArrayLength(attrib_list_ref) - offset;
123 attrib_list = attrib_list_base + offset;
3 android_eglCreateWindowSurface(JNIEnv *_env, jobject _this, jobject dpy, jobject config, jobject win, jintArray attrib_list_ref, jint offset) argument
76 android_eglCreateWindowSurfaceTexture(JNIEnv *_env, jobject _this, jobject dpy, jobject config, jobject win, jintArray attrib_list_ref, jint offset) argument
[all...]

Completed in 3092 milliseconds

1234567891011>>