/frameworks/native/opengl/libagl/ |
H A D | array.cpp | 1429 // offset in that buffer. 1508 void glBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid* data) argument 1515 if (offset<0 || size<0 || data==0) { 1527 if (offset+size > bo->size) { 1531 memcpy(bo->data + offset, data, size);
|
/frameworks/native/opengl/libs/ETC1/ |
H A D | etc1.cpp | 188 int offset = ((low >> k) & 1) | ((low >> (k + 15)) & 2); local 189 int delta = table[offset];
|
/frameworks/native/vulkan/libvulkan/ |
H A D | api.cpp | 201 size_t offset = arr.pool_size; local 202 char* dst = arr.name_pool + offset; 209 return offset;
|
/frameworks/opt/net/voip/src/jni/rtp/ |
H A D | AudioGroup.cpp | 425 int offset = 12 + ((buffer[0] & 0x0F) << 2); local 427 offset += 4 + (ntohs(*(uint16_t *)&buffer[offset + 2]) << 2); 432 length -= offset; 434 length = mCodec->decode(samples, count, &buffer[offset], length); 892 int offset = sampleCount - toWrite; local 893 memcpy(buffer.i8, &output[offset], buffer.size); 908 int offset = sampleCount - toRead; local 909 memcpy(&input[offset], buffer.i8, buffer.size);
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | BaseGridView.java | 287 * Sets the offset in pixels for window alignment. 289 * @param offset The number of pixels to offset. If the offset is positive, 291 * if the offset is negative, the absolute value is distance from high 295 public void setWindowAlignmentOffset(int offset) { argument 296 mLayoutManager.setWindowAlignmentOffset(offset); 301 * Returns the offset in pixels for window alignment. 303 * @return The number of pixels to offset. If the offset i 348 setItemAlignmentOffset(int offset) argument [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
H A D | ActionBar.java | 984 * Return the current vertical offset of the action bar. 986 * <p>The action bar's current hide offset is the distance that the action bar is currently 990 * @return The action bar's offset toward its fully hidden state in pixels 997 * Set the current hide offset of the action bar. 999 * <p>The action bar's current hide offset is the distance that the action bar is currently 1003 * @param offset The action bar's offset toward its fully hidden state in pixels. 1005 public void setHideOffset(int offset) { argument 1006 if (offset != 0) { 1007 throw new UnsupportedOperationException("Setting an explicit action bar hide offset " [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | ActionBarOverlayLayout.java | 563 public void setActionBarHideOffset(int offset) { argument 566 offset = Math.max(0, Math.min(offset, topHeight)); 567 ViewCompat.setTranslationY(mActionBarTop, -offset);
|
H A D | ListPopupWindow.java | 465 * @return The horizontal offset of the popup from its anchor in pixels. 472 * Set the horizontal offset of this popup from its anchor view in pixels. 474 * @param offset The horizontal offset of the popup from its anchor. 476 public void setHorizontalOffset(int offset) { argument 477 mDropDownHorizontalOffset = offset; 481 * @return The vertical offset of the popup from its anchor in pixels. 491 * Set the vertical offset of this popup from its anchor view in pixels. 493 * @param offset The vertical offset o 495 setVerticalOffset(int offset) argument [all...] |
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
H A D | BaseStaggeredGridLayoutManagerTest.java | 247 protected void scrollToPositionWithOffset(final int position, final int offset) argument 252 mLayoutManager.scrollToPositionWithOffset(position, offset); 771 public void offsetOriginalIndices(int start, int offset) { argument 778 } else if (offset > 0 || (start + Math.abs(offset)) <= i) { 779 mFullSpanItems.add(i + offset); 785 super.offsetOriginalIndices(start, offset);
|
/frameworks/wilhelm/src/android/ |
H A D | AudioPlayer_to_android.cpp | 1598 int64_t offset = (int64_t)pAudioPlayer->mDataSource.mLocator.mFD.offset; local 1601 offset == SL_DATALOCATOR_ANDROIDFD_USE_FILE_SIZE ? 1602 (int64_t)PLAYER_FD_FIND_FILE_SIZE : offset, 1640 int64_t offset = (int64_t)pAudioPlayer->mDataSource.mLocator.mFD.offset; local 1643 offset == SL_DATALOCATOR_ANDROIDFD_USE_FILE_SIZE ? 1644 (int64_t)PLAYER_FD_FIND_FILE_SIZE : offset,
|
/frameworks/av/media/libmediaplayerservice/ |
H A D | StagefrightRecorder.cpp | 250 status_t StagefrightRecorder::setOutputFile(int fd, int64_t offset, int64_t length) { argument 251 ALOGV("setOutputFile: %d, %lld, %lld", fd, (long long)offset, (long long)length); 253 CHECK_EQ(offset, 0ll); 488 use64Bit? "use 64 bit file offset": "use 32 bit file offset"); 640 } else if (key == "param-use-64bit-offset") { 1921 snprintf(buffer, SIZE, " File offset length (bits): %d\n", mUse64BitFileOffset? 64: 32); 1947 snprintf(buffer, SIZE, " Start time offset (ms): %d\n", mStartTimeOffsetMs);
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
H A D | GenericSource.cpp | 120 int fd, int64_t offset, int64_t length) { 124 mOffset = offset; 119 setDataSource( int fd, int64_t offset, int64_t length) argument
|
H A D | NuPlayer.cpp | 279 void NuPlayer::setDataSourceAsync(int fd, int64_t offset, int64_t length) { argument 287 status_t err = source->setDataSource(fd, offset, length);
|
/frameworks/av/media/libstagefright/ |
H A D | MediaCodec.cpp | 690 size_t offset, 701 msg->setSize("offset", offset); 713 size_t offset, 729 msg->setSize("offset", offset); 764 size_t *offset, 779 CHECK(response->findSize("offset", offset)); 1053 response->setSize("offset", buffe 688 queueInputBuffer( size_t index, size_t offset, size_t size, int64_t presentationTimeUs, uint32_t flags, AString *errorDetailMsg) argument 711 queueSecureInputBuffer( size_t index, size_t offset, const CryptoPlugin::SubSample *subSamples, size_t numSubSamples, const uint8_t key[16], const uint8_t iv[16], CryptoPlugin::Mode mode, const CryptoPlugin::Pattern &pattern, int64_t presentationTimeUs, uint32_t flags, AString *errorDetailMsg) argument 762 dequeueOutputBuffer( size_t *index, size_t *offset, size_t *size, int64_t *presentationTimeUs, uint32_t *flags, int64_t timeoutUs) argument 2432 size_t offset; local [all...] |
H A D | OggExtractor.cpp | 84 status_t seekToOffset(off64_t offset); 132 ssize_t readPage(off64_t offset, Page *page); 355 // Given the offset of the "current" page, find the page immediately preceding 357 // To do this we back up from the "current" page's offset until we find any 428 ALOGV("seeking to offset %lld", (long long)pos); 455 ALOGV("seeking to entry %zu / %zu at offset %lld", 461 status_t MyOggExtractor::seekToOffset(off64_t offset) { argument 462 if (mFirstDataOffset >= 0 && offset < mFirstDataOffset) { 465 offset = mFirstDataOffset; 469 status_t err = findNextPage(offset, 494 readPage(off64_t offset, Page *page) argument 857 off64_t offset = mFirstDataOffset; local [all...] |
/frameworks/av/media/libstagefright/codecs/avc/enc/src/ |
H A D | intra_est.cpp | 42 int temp, SBE, offset; local 67 offset = (y_pos >> 2) * picPitch + (x_pos >> 1); 68 topL = video->currPic->Scb + offset; 69 orgY_2 = currInput->YCbCr[1] + offset + (y_pos >> 2) * (orgPitch - picPitch); 82 topL = video->currPic->Scr + offset; 83 orgY_2 = currInput->YCbCr[2] + offset + (y_pos >> 2) * (orgPitch - picPitch); 215 int offset = y_pos * pitch + x_pos; local 218 uint8 *curL = currPic->Sl + offset; /* point to reconstructed frame */ 633 int offset; local 644 offset 1371 int offset = y_pos * pitch + x_pos; local 2010 int block_x, block_y, offset; local [all...] |
H A D | motion_est.cpp | 256 int mbnum, offset; local 273 offset = 0; 344 offset = pitch * (j << 4) + (start_i << 4); 354 cur = currInput->YCbCr[0] + offset; 423 offset += (incr_i << 4); 612 int *offset, *offset2; local 634 offset = htfm_stat->offsetArray; 646 offset = encvid->nrmlz_th + 16; 650 offset[0] = 0; 651 offset[ 747 int *offset; local 1275 int offset = i0 + j0 * lx; local [all...] |
/frameworks/av/media/libstagefright/httplive/ |
H A D | PlaylistFetcher.cpp | 431 buffer->setRange(buffer->offset(), buffer->size() - padding); 1253 if (!itemMeta->findInt64("range-offset", &range_offset) 1301 buffer->offset() == 0 /* first */); 1321 size_t tsOff = tsBuffer->offset(), tsSize = tsBuffer->size(); 1325 tsBuffer->setRange(tsBuffer->offset(), tsBuffer->size() + bytesRead); 1614 // Since we are using absolute timestamps, signal an offset of 0 to prevent 1630 size_t offset = 0; local 1631 while (offset + 188 <= buffer->size()) { 1632 status_t err = mTSParser->feedTSPacket(buffer->data() + offset, 188); 1638 offset 2012 size_t offset = 0; local [all...] |
/frameworks/av/media/libstagefright/matroska/ |
H A D | MatroskaExtractor.cpp | 973 size_t offset = 1; local 975 while (offset < codecPrivateSize && codecPrivate[offset] == 0xff) { 980 ++offset; 982 if (offset >= codecPrivateSize) { 985 if (len1 > (SIZE_MAX - codecPrivate[offset])) { 988 len1 += codecPrivate[offset++]; 991 while (offset < codecPrivateSize && codecPrivate[offset] == 0xff) { 996 ++offset; [all...] |
/frameworks/av/media/libstagefright/mpeg2ts/ |
H A D | ATSParser.cpp | 173 // into mSource. If the packet is a sync frame. set event with start offset 207 ATSParser::SyncEvent::SyncEvent(off64_t offset) argument 208 : mHasReturnedData(false), mOffset(offset), mTimeUs(0) {} 210 void ATSParser::SyncEvent::init(off64_t offset, const sp<MediaSource> &source, argument 213 mOffset = offset; 689 off64_t offset = (event != NULL) ? event->getOffset() : 0; local 704 mPesStartOffsets.push_back(offset); 1214 int64_t offset; local 1215 if (!extra->findInt64("offset", &offset)) { [all...] |
/frameworks/av/media/libstagefright/rtsp/ |
H A D | MyHandler.h | 280 size_t offset = 8; local 282 data[offset++] = 1; // CNAME 286 data[offset++] = cname.size(); 288 memcpy(&data[offset], cname.c_str(), cname.size()); 289 offset += cname.size(); 291 data[offset++] = 6; // TOOL 295 data[offset++] = tool.size(); 297 memcpy(&data[offset], tool.c_str(), tool.size()); 298 offset += tool.size(); 300 data[offset 1463 ssize_t offset = s.find(separator, start); local [all...] |
/frameworks/base/core/java/android/content/res/ |
H A D | AssetManager.java | 783 private native final long seekAsset(long asset, long offset, int whence); argument
|
/frameworks/base/core/java/android/text/ |
H A D | Layout.java | 684 * Return the text offset of the beginning of the specified line ( 743 * Returns true if the character at offset and the preceding character 745 * @param offset the offset 749 public boolean isLevelBoundary(int offset) { argument 750 int line = getLineForOffset(offset); 759 if (offset == lineStart || offset == lineEnd) { 761 int runIndex = offset == lineStart ? 0 : runs.length - 2; 765 offset 779 isRtlCharAt(int offset) argument 808 getRunRange(int offset) argument 827 primaryIsTrailingPrevious(int offset) argument 881 getPrimaryHorizontal(int offset) argument 890 getPrimaryHorizontal(int offset, boolean clamped) argument 900 getSecondaryHorizontal(int offset) argument 909 getSecondaryHorizontal(int offset, boolean clamped) argument 914 getHorizontal(int offset, boolean primary) argument 918 getHorizontal(int offset, boolean trailing, boolean clamped) argument 924 getHorizontal(int offset, boolean trailing, int line, boolean clamped) argument 1123 getLineForOffset(int offset) argument 1309 getOffsetToLeftOf(int offset) argument 1313 getOffsetToRightOf(int offset) argument 1369 getOffsetAtStartOf(int offset) argument [all...] |
H A D | StaticLayout.java | 778 // here is the offset of the starting character of the line we are currently measuring 1246 /* package */ static native long nLoadHyphenator(ByteBuffer buf, int offset); argument
|
H A D | TextUtils.java | 930 public static int getOffsetBefore(CharSequence text, int offset) { argument 931 if (offset == 0) 933 if (offset == 1) 936 char c = text.charAt(offset - 1); 939 char c1 = text.charAt(offset - 2); 942 offset -= 2; 944 offset -= 1; 946 offset -= 1; 950 ReplacementSpan[] spans = ((Spanned) text).getSpans(offset, offset, 965 getOffsetAfter(CharSequence text, int offset) argument [all...] |