Searched defs:offset (Results 126 - 150 of 644) sorted by relevance

1234567891011>>

/frameworks/base/media/packages/BluetoothMidiService/src/com/android/bluetoothmidiservice/
H A DBluetoothPacketEncoder.java56 public void onSend(byte[] msg, int offset, int count, long timestamp)
61 byte status = msg[offset];
106 (msg[offset + count - 1] == MidiConstants.STATUS_END_SYSEX);
119 System.arraycopy(msg, offset, mAccumulationBuffer, mAccumulatedBytes, copy);
121 offset += copy;
150 System.arraycopy(msg, offset + 1, mAccumulationBuffer, mAccumulatedBytes,
183 public void onSend(byte[] msg, int offset, int count, long timestamp) argument
186 mMidiFramer.send(msg, offset, count, timestamp);
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/
H A DAppFuseTest.java107 public long readObjectBytes(int inode, long offset, long size, byte[] bytes)
111 while (i < size && i + offset < fileBytes.length) {
112 bytes[i] = fileBytes[(int) (i + offset)];
117 return super.readObjectBytes(inode, offset, size, bytes);
149 long fileHandle, int inode, long offset, int size, byte[] bytes) {
151 resultBytes[(int)(offset + i)] = bytes[i];
214 long fileHandle, int inode, long offset, int size, byte[] bytes) {
245 public long readObjectBytes(int inode, long offset, long size, byte[] bytes) argument
251 public int writeObjectBytes(long fileHandle, int inode, long offset, int size, byte[] bytes) argument
/frameworks/base/packages/Osu/src/com/android/hotspot2/utils/
H A DHTTPResponse.java30 int offset = 0;
37 while (offset < expected) {
38 int amount = in.read(input, offset, input.length - offset);
40 input.length, offset, input.length - offset, amount));
45 // + new String(input, 0, offset + amount, StandardCharsets.ISO_8859_1));
48 for (int n = offset; n < offset + amount; n++) {
61 offset
177 equals(byte[] b1, int offset, byte[] pattern) argument
[all...]
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/
H A DExifModifier.java41 TagOffset(ExifTag tag, int offset) { argument
43 mOffset = offset;
147 private void writeTagValue(ExifTag tag, int offset) { argument
150 Log.v(TAG, "at offset: " + offset);
152 mByteBuffer.position(offset + mOffsetBase);
H A DIfdData.java109 * Sets the offset of next IFD.
111 protected void setOffsetToNextIfd(int offset) { argument
112 mOffsetToNextIfd = offset;
116 * Gets the offset of next IFD.
124 * IFDs offset or thumbnail offset will be ignored.
/frameworks/base/rs/java/android/renderscript/
H A DDouble2.java379 * @param offset
381 public void copyTo(double[] data, int offset) { argument
382 data[offset] = x;
383 data[offset + 1] = y;
H A DDouble3.java410 * @param offset
412 public void copyTo(double[] data, int offset) { argument
413 data[offset] = x;
414 data[offset + 1] = y;
415 data[offset + 2] = z;
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.java170 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;
180 static int readExactly(FileDescriptor fd, byte[] buffer, int offset, int numBytes) argument
184 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/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/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 DMeasurement.cpp32 size_t start, size_t count, size_t offset) {
36 for (size_t i = start; i < offset; i++) {
44 if (offset < start + count && advances[offset - layoutStart] == 0.0f) {
49 for (nextCluster = offset + 1; nextCluster < start + count; nextCluster++) {
55 bool isAfter = i >= offset;
71 size_t offset) {
72 return getRunAdvance(advances, buf, start, start, count, offset);
76 * Essentially the inverse of getRunAdvance. Compute the value of offset for which the
31 getRunAdvance(const float* advances, const uint16_t* buf, size_t layoutStart, size_t start, size_t count, size_t offset) argument
70 getRunAdvance(const float* advances, const uint16_t* buf, size_t start, size_t count, size_t offset) argument
/frameworks/native/libs/binder/
H A DMemoryHeapBase.cpp80 MemoryHeapBase::MemoryHeapBase(int fd, size_t size, uint32_t flags, uint32_t offset) argument
86 mapfd(dup(fd), size, offset); local
102 status_t MemoryHeapBase::mapfd(int fd, size_t size, uint32_t offset) argument
114 PROT_READ|PROT_WRITE, MAP_SHARED, fd, offset);
130 mOffset = offset;

Completed in 574 milliseconds

1234567891011>>