/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
H A D | Display.java | 32 Point size = new Point(); 33 activity.getWindowManager().getDefaultDisplay().getSize(size); 34 return size.x;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/ |
H A D | Stroke.java | 43 mLength += mPoints.get(mPoints.size() - 1).dist(point); 49 return mPoints.size(); 57 return mPoints.get(0).dist(mPoints.get(mPoints.size() - 1));
|
H A D | HistoryEvaluator.java | 57 int size = list.size(); 58 for (int i = 0; i < size; i++) { 84 int size = list.size(); 85 for (int i = 0; i < size; i++) {
|
/frameworks/base/tests/MusicServiceDemo/src/com/example/android/musicservicedemo/ |
H A D | Utils.java | 67 * @param size 70 public static int wrapIndex(int i, int size) { argument 71 int m = i % size; 73 m += size;
|
/frameworks/compile/mclinker/lib/ADT/ |
H A D | StringEntry.cpp | 33 char* data = reinterpret_cast<char*>(malloc(pVal.size() + 1)); 34 ::memcpy(data, pVal.data(), pVal.size()); 35 m_Value = llvm::StringRef(data, pVal.size());
|
/frameworks/compile/mclinker/lib/LD/ |
H A D | MergedStringTable.cpp | 23 offset += it->getKey().size() + 1; 32 ::memcpy(ptr, it->getKey().data(), it->getKey().size()); 33 ptr += it->getKey().size() + 1;
|
/frameworks/compile/mclinker/lib/Script/ |
H A D | OutputFormatCmd.cpp | 36 assert(m_FormatList.size() == 1 || m_FormatList.size() == 3); 37 for (size_t i = 0; i < m_FormatList.size(); ++i) {
|
H A D | ScriptReader.cpp | 46 size_t size = input.memArea()->size(); local 47 llvm::StringRef region = input.memArea()->request(input.fileOffset(), size);
|
/frameworks/support/v17/tests/src/android/support/v17/leanback/widget/ |
H A D | StaggeredGridDefaultTest.java | 36 8, mStaggeredGrid.mLocations.size()); 40 9, mStaggeredGrid.mLocations.size()); 52 9, mStaggeredGrid.mLocations.size());
|
/frameworks/av/media/libstagefright/foundation/ |
H A D | AString.cpp | 46 AString::AString(const char *s, size_t size) argument 50 setTo(s, size); 64 setTo(from, 0, from.size()); 80 setTo(from, 0, from.size()); 86 size_t AString::size() const { function in class:android::AString 102 void AString::setTo(const char *s, size_t size) { argument 104 append(s, size); 177 void AString::append(const char *s, size_t size) { argument 180 if (mSize + size + 1 > mAllocSize) { 181 mAllocSize = (mAllocSize + size 278 insert(const char *from, size_t size, size_t insertionPos) argument 356 size_t size = static_cast<size_t>(parcel.readInt32()); local [all...] |
/frameworks/av/media/libstagefright/include/ |
H A D | HevcUtils.h | 79 status_t addNalUnit(const uint8_t* data, size_t size); 86 inline size_t getNumNalUnits() { return mNalUnits.size(); } 91 bool write(size_t index, uint8_t* dest, size_t size); 97 status_t parseVps(const uint8_t* data, size_t size); 98 status_t parseSps(const uint8_t* data, size_t size); 99 status_t parsePps(const uint8_t* data, size_t size);
|
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
H A D | JpegProcessor.cpp | 93 // Find out buffer size for JPEG 96 ALOGE("%s: Camera %d: Jpeg buffer size (%zu) is invalid ", 112 // Since ashmem heaps are rounded up to page size, don't reallocate if 113 // the capture heap isn't exactly the same size as the required JPEG buffer 275 // Find size of JPEG image 277 if (jpegSize == 0) { // failed to find size, default to whole buffer 363 // Return the size of the JPEG, 0 indicates failure 365 size_t size; local 371 size = blob->jpeg_size; 372 if (size > [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | StatusBarIconList.java | 33 if (mIcons.size() < mSlots.size()) { 40 final int N = mSlots.size(); 52 public int size() { method in class:StatusBarIconList 53 return mSlots.size(); 83 final int N = mSlots.size();
|
/frameworks/base/tools/aapt2/flatten/ |
H A D | ChunkWriter.h | 44 mStartSize = mBuffer->size(); 65 inline size_t size() { function in class:aapt::ChunkWriter 66 return mBuffer->size() - mStartSize; 71 mHeader->size = util::hostToDevice32(mBuffer->size() - mStartSize); 78 mStartSize = mBuffer->size();
|
/frameworks/opt/telephony/src/java/com/google/android/mms/util/ |
H A D | AbstractCache.java | 42 if (mCacheMap.size() >= MAX_CACHED_ITEMS) { 46 Log.v(TAG, "Failed! size limitation reached."); 57 Log.v(TAG, key + " cached, " + mCacheMap.size() + " items total."); 90 Log.v(TAG, mCacheMap.size() + " items cached."); 98 Log.v(TAG, "Purging cache, " + mCacheMap.size() 104 public int size() { method in class:AbstractCache 105 return mCacheMap.size();
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | ArrayObjectAdapter.java | 50 public int size() { method in class:ArrayObjectAdapter 51 return mItems.size(); 88 add(mItems.size(), item); 93 * If the index is >= {@link #size} an exception will be thrown. 105 * given index. If the index is >= {@link #size} an exception will be thrown. 111 int itemsCount = items.size(); 155 int itemsToRemove = Math.min(count, mItems.size() - position); 171 int itemCount = mItems.size();
|
/frameworks/av/camera/camera2/ |
H A D | CaptureRequest.cpp | 48 int32_t size; local 49 if ((err = parcel->readInt32(&size)) != OK) { 50 ALOGE("%s: Failed to read surface list size from parcel", __FUNCTION__); 53 ALOGV("%s: Read surface list size = %d", __FUNCTION__, size); 56 for (int i = 0; i < size; ++i) { 108 int32_t size = static_cast<int32_t>(mSurfaceList.size()); local 111 parcel->writeInt32(size); 113 for (int32_t i = 0; i < size; [all...] |
/frameworks/av/include/media/stagefright/ |
H A D | DataURISource.h | 32 virtual ssize_t readAt(off64_t offset, void *data, size_t size); 33 virtual status_t getSize(off64_t *size);
|
/frameworks/av/media/libstagefright/httplive/ |
H A D | HTTPDownloader.cpp | 71 * | `url` file |<--------- buffer size --------->|<--- `block_size` -->| | | 83 uint32_t block_size, /* download block size */ 90 off64_t size; local 126 status_t getSizeErr = mDataSource->getSize(&size); 133 size = 65536; 136 sp<ABuffer> buffer = *out != NULL ? *out : new ABuffer(size); 143 if (block_size > 0 && (range_length == -1 || (int64_t)(buffer->size() + block_size) < range_length)) { 144 range_length = buffer->size() + block_size; 147 // Only resize when we don't know the size. 148 size_t bufferRemaining = buffer->capacity() - buffer->size(); [all...] |
/frameworks/av/media/libstagefright/wifi-display/ |
H A D | Parameters.h | 25 static sp<Parameters> Parse(const char *data, size_t size); 36 status_t parse(const char *data, size_t size);
|
/frameworks/base/core/java/android/bluetooth/ |
H A D | OobData.java | 69 public OobData[] newArray(int size) { 70 return new OobData[size];
|
/frameworks/base/core/java/android/os/ |
H A D | BatteryProperty.java | 69 public BatteryProperty[] newArray(int size) { 70 return new BatteryProperty[size];
|
/frameworks/base/core/java/com/android/internal/content/ |
H A D | ReferrerIntent.java | 47 public ReferrerIntent[] newArray(int size) { 48 return new ReferrerIntent[size];
|
/frameworks/base/core/java/com/android/internal/util/ |
H A D | ParcelableString.java | 48 public ParcelableString[] newArray(int size) { 49 return new ParcelableString[size];
|
/frameworks/base/libs/androidfw/tests/ |
H A D | TypeWrappers_test.cpp | 35 t.header.size = t.entriesStart; 40 e1.size = sizeof(e1); 42 t.header.size += sizeof(e1); 46 t.header.size += sizeof(v1); 53 e2.size = sizeof(e2); 55 t.header.size += sizeof(e2); 59 t.header.size += sizeof(v2); 61 uint8_t* data = (uint8_t*)malloc(t.header.size);
|