/frameworks/base/core/java/android/widget/ |
H A D | SpellChecker.java | 324 SuggestionsInfo suggestionsInfo, int offset, int length) { 343 editable, suggestionsInfo, spellCheckSpan, offset, length); 353 if (offset != USE_SPAN_RANGE && length != USE_SPAN_RANGE) { 354 start = spellCheckSpanStart + offset; 410 final int offset = ssi.getOffsetAt(j); 413 suggestionsInfo, offset, length); 454 SpellCheckSpan spellCheckSpan, int offset, int length) { 462 if (offset != USE_SPAN_RANGE && length != USE_SPAN_RANGE) { 463 start = spellCheckSpanStart + offset; 740 private <T> void removeSpansAt(Editable editable, int offset, argument 323 onGetSuggestionsInternal( SuggestionsInfo suggestionsInfo, int offset, int length) argument 453 createMisspelledSuggestionSpan(Editable editable, SuggestionsInfo suggestionsInfo, SpellCheckSpan spellCheckSpan, int offset, int length) argument [all...] |
H A D | TextView.java | 2139 * from showing, and the vertical offset for gravity, if any. 2148 * from showing, and the vertical offset for gravity, if any. 3379 * @return the horizontal offset of the shadow layer 3390 * @return the vertical offset of the shadow layer 5720 final int offset = getHorizontalOffsetForDrawables(); 5721 final int leftOffset = isLayoutRtl ? 0 : offset; 5722 final int rightOffset = isLayoutRtl ? offset : 0 ; 5921 r.offset(paddingLeft, paddingTop); 5958 bounds.offset(getCompoundPaddingLeft(), voffset); 6016 final int offset 7456 bringPointIntoView(int offset) argument 10185 getTextRunCursor(int contextStart, int contextEnd, int dir, int offset, int cursorOpt, Paint p) argument [all...] |
/frameworks/base/core/java/com/android/internal/app/ |
H A D | WindowDecorActionBar.java | 727 public void setHideOffset(int offset) { argument 728 if (offset != 0 && !mOverlayLayout.isInOverlayMode()) { 730 "(Window.FEATURE_OVERLAY_ACTION_BAR) to set a non-zero hide offset"); 732 mOverlayLayout.setActionBarHideOffset(offset);
|
/frameworks/base/core/java/com/android/internal/app/procstats/ |
H A D | DumpUtils.java | 90 public static void printScreenLabel(PrintWriter pw, int offset) { argument 91 switch (offset) { 107 public static void printScreenLabelCsv(PrintWriter pw, int offset) { argument 108 switch (offset) { 123 public static void printMemLabel(PrintWriter pw, int offset, char sep) { argument 124 switch (offset) { 152 public static void printMemLabelCsv(PrintWriter pw, int offset) { argument 153 if (offset >= ADJ_MEM_FACTOR_NORMAL) { 154 if (offset <= ADJ_MEM_FACTOR_CRITICAL) { 155 pw.print(ADJ_MEM_NAMES_CSV[offset]); [all...] |
/frameworks/av/include/drm/ |
H A D | DrmConvertedStatus.h | 26 * data/checksum data and the offset. Offset is going to be used in the case of close 61 int offset; member in class:android::DrmConvertedStatus
|
/frameworks/av/include/media/stagefright/ |
H A D | DataSource.h | 64 // this returns zero; it just means the given offset is equal to, or 66 virtual ssize_t readAt(off64_t offset, void *data, size_t size) = 0; 69 bool getUInt16(off64_t offset, uint16_t *x); 70 bool getUInt24(off64_t offset, uint32_t *x); // 3 byte int, returned as a 32-bit int 71 bool getUInt32(off64_t offset, uint32_t *x); 72 bool getUInt64(off64_t offset, uint64_t *x); 85 bool getVector(off64_t offset, Vector<T>* x, size_t count, 99 virtual status_t reconnectAtOffset(off64_t offset) { argument 145 bool DataSource::getVector(off64_t offset, Vector<T>* x, size_t count, argument 164 numBytesRead = this->readAt(offset, (voi [all...] |
/frameworks/av/include/media/stagefright/foundation/ |
H A D | ABuffer.h | 40 size_t offset() const { return mRangeOffset; } function in struct:android::ABuffer 42 void setRange(size_t offset, size_t size);
|
/frameworks/av/include/ndk/ |
H A D | NdkMediaCodec.h | 45 int32_t offset; member in struct:AMediaCodecBufferInfo 134 size_t idx, off_t offset, size_t size, uint64_t time, uint32_t flags); 140 size_t idx, off_t offset, AMediaCodecCryptoInfo*, uint64_t time, uint32_t flags);
|
/frameworks/av/media/img_utils/include/img_utils/ |
H A D | EndianUtils.h | 97 * EndianOutput. If the given offset is greater than zero, that many elements will 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_ 132 writeHelper(const T* buf, size_t offset, size_t count) argument [all...] |
H A D | TiffEntryImpl.h | 41 status_t writeData(uint32_t offset, /*out*/EndianOutput* out) const; 42 status_t writeTagInfo(uint32_t offset, /*out*/EndianOutput* out) const; 123 status_t TiffEntryImpl<T>::writeTagInfo(uint32_t offset, /*out*/EndianOutput* out) const { 124 assert((offset % TIFF_WORD_SIZE) == 0); 132 BAIL_ON_FAIL(out->write(&offset, 0, 1), ret); 150 status_t TiffEntryImpl<T>::writeData(uint32_t /*offset*/, EndianOutput* out) const { 182 inline status_t TiffEntryImpl<sp<TiffIfd> >::writeTagInfo(uint32_t offset, argument 184 assert((offset % TIFF_WORD_SIZE) == 0); 190 BAIL_ON_FAIL(out->write(&offset, 0, 1), ret); 204 inline status_t TiffEntryImpl<sp<TiffIfd> >::writeData(uint32_t offset, EndianOutpu argument 69 LOG_ALWAYS_FATAL_IF(index < 0, �, __FUNCTION__); } template<typename T> TiffEntryImpl<T>::~TiffEntryImpl() {} template<typename T> uint32_t TiffEntryImpl<T>::getCount() const { return mCount; } template<typename T> uint16_t TiffEntryImpl<T>::getTag() const { return mTag; } template<typename T> TagType TiffEntryImpl<T>::getType() const { return static_cast<TagType>(mType); } template<typename T> const void* TiffEntryImpl<T>::getDataHelper() const { return reinterpret_cast<const void*>(mData.array()); } template<typename T> size_t TiffEntryImpl<T>::getSize() const { uint32_t total = getActualSize(); WORD_ALIGN(total) return (total <= OFFSET_SIZE) ? 0 : total; } template<typename T> uint32_t TiffEntryImpl<T>::getActualSize() const { uint32_t total = sizeof(T) * mCount; if (getType() == RATIONAL || getType() == SRATIONAL) { total <<= 1; } return total; } template<typename T> Endianness TiffEntryImpl<T>::getEndianness() const { return mEnd; } template<typename T> uint32_t TiffEntryImpl<T>::getComparableValue() const { return mTag; } template<typename T> status_t TiffEntryImpl<T>::writeTagInfo(uint32_t offset, EndianOutput* out) const { assert((offset % TIFF_WORD_SIZE) == 0); status_t ret = OK; BAIL_ON_FAIL(out->write(&mTag, 0, 1), ret); BAIL_ON_FAIL(out->write(&mType, 0, 1), ret); BAIL_ON_FAIL(out->write(&mCount, 0, 1), ret); uint32_t dataSize = getActualSize(); if (dataSize > OFFSET_SIZE) argument [all...] |
/frameworks/av/media/img_utils/src/ |
H A D | ByteArrayOutput.cpp | 32 status_t ByteArrayOutput::write(const uint8_t* buf, size_t offset, size_t count) { argument 33 if (mByteArray.appendArray(buf + offset, count) < 0) {
|
H A D | EndianUtils.cpp | 48 status_t EndianOutput::write(const uint8_t* buf, size_t offset, size_t count) { argument 50 if((res = mOutput->write(buf, offset, count)) == OK) { 56 status_t EndianOutput::write(const int8_t* buf, size_t offset, size_t count) { argument 57 return write(reinterpret_cast<const uint8_t*>(buf), offset, count); 61 status_t EndianOutput::write(const _type_* buf, size_t offset, size_t count) { \ 62 return writeHelper<_type_>(buf, offset, count); \ 72 status_t EndianOutput::write(const float* buf, size_t offset, size_t count) { argument 74 return writeHelper<uint32_t>(reinterpret_cast<const uint32_t*>(buf), offset, count); 77 status_t EndianOutput::write(const double* buf, size_t offset, size_t count) { argument 79 return writeHelper<uint64_t>(reinterpret_cast<const uint64_t*>(buf), offset, coun [all...] |
H A D | FileInput.cpp | 48 ssize_t FileInput::read(uint8_t* buf, size_t offset, size_t count) { argument 54 size_t bytesRead = ::fread(buf + offset, sizeof(uint8_t), count, mFp);
|
H A D | FileOutput.cpp | 47 status_t FileOutput::write(const uint8_t* buf, size_t offset, size_t count) { argument 53 ::fwrite(buf + offset, sizeof(uint8_t), count, mFp);
|
H A D | TiffIfd.cpp | 75 uint32_t TiffIfd::checkAndGetOffset(uint32_t offset) const { 90 if (offset == BAD_OFFSET) { 91 ALOGW("%s: Could not calculate IFD offsets, IFD %u had a bad initial offset.", 98 return offset + ifdSize; 101 status_t TiffIfd::writeData(uint32_t offset, /*out*/EndianOutput* out) const { argument 102 assert((offset % TIFF_WORD_SIZE) == 0); 105 ALOGV("%s: IFD %u written to offset %u", __FUNCTION__, mIfdId, offset ); 106 uint32_t valueOffset = checkAndGetOffset(offset); 123 // Writer IFD footer (4 bytes, offset t 296 setStripOffset(uint32_t offset) argument [all...] |
H A D | TiffWriter.cpp | 95 uint32_t offset = FILE_HEADER_SIZE; local 98 BAIL_ON_FAIL(ifd->writeData(offset, &endOut), ret); 99 offset += ifd->getSize(); 142 uint32_t offset = FILE_HEADER_SIZE; local 145 BAIL_ON_FAIL(ifd->writeData(offset, &endOut), ret); 146 offset += ifd->getSize();
|
/frameworks/av/media/libmedia/ |
H A D | ICrypto.cpp | 102 const sp<IMemory> &sharedBuffer, size_t offset, 134 data.writeInt32(offset); 302 int32_t offset = data.readInt32(); local 349 } else if ((size_t)offset > sharedBuffer->size() - totalSize) { 357 sharedBuffer, offset, 97 decrypt( DestinationType dstType, const uint8_t key[16], const uint8_t iv[16], CryptoPlugin::Mode mode, const CryptoPlugin::Pattern &pattern, const sp<IMemory> &sharedBuffer, size_t offset, const CryptoPlugin::SubSample *subSamples, size_t numSubSamples, void *dstPtr, AString *errorDetailMsg) argument
|
H A D | IDataSource.cpp | 52 virtual ssize_t readAt(off64_t offset, size_t size) { argument 55 data.writeInt64(offset); 144 off64_t offset = (off64_t) data.readInt64(); local 146 reply->writeInt64(readAt(offset, size));
|
H A D | IHDCP.cpp | 122 size_t offset, size_t size, uint32_t streamCTR, 127 data.writeInt32(offset); 284 size_t offset = data.readInt32(); local 295 err = encryptNative(graphicBuffer, offset, size, 120 encryptNative( const sp<GraphicBuffer> &graphicBuffer, size_t offset, size_t size, uint32_t streamCTR, uint64_t *outInputCTR, void *outData) argument
|
H A D | IMediaHTTPConnection.cpp | 90 virtual ssize_t readAt(off64_t offset, void *buffer, size_t size) { argument 95 data.writeInt64(offset);
|
H A D | IMediaMetadataRetriever.cpp | 119 status_t setDataSource(int fd, int64_t offset, int64_t length) argument 124 data.writeInt64(offset); 249 int64_t offset = data.readInt64(); local 251 reply->writeInt32(setDataSource(fd, offset, length));
|
H A D | IMediaPlayer.cpp | 114 status_t setDataSource(int fd, int64_t offset, int64_t length) { argument 118 data.writeInt64(offset); 465 int64_t offset = data.readInt64(); local 467 reply->writeInt32(setDataSource(fd, offset, length));
|
H A D | IMediaRecorder.cpp | 174 status_t setOutputFile(int fd, int64_t offset, int64_t length) { argument 175 ALOGV("setOutputFile(%d, %" PRId64 ", %" PRId64 ")", fd, offset, length); 179 data.writeInt64(offset); 431 int64_t offset = data.readInt64(); local 433 reply->writeInt32(setOutputFile(fd, offset, length));
|
H A D | IMediaSource.cpp | 174 size_t offset = reply.readInt32(); local 177 buf->set_range(offset, length); 319 size_t offset = buf->range_offset(); local 345 offset = 0; 353 reply->writeInt32(offset);
|
H A D | JetPlayer.cpp | 344 int JetPlayer::loadFromFD(const int fd, const long long offset, const long long length) argument 346 ALOGV("JetPlayer::loadFromFD(): fd=%d offset=%lld length=%lld", fd, offset, length); 350 mIoWrapper = new MidiIoWrapper(fd, offset, length);
|