Searched refs:size (Results 276 - 300 of 4916) sorted by relevance

<<11121314151617181920>>

/frameworks/base/core/java/android/widget/
H A DSpace.java72 * If mode is AT_MOST, return the child size instead of the parent size
75 private static int getDefaultSize2(int size, int measureSpec) { argument
76 int result = size;
82 result = size;
85 result = Math.min(size, specSize);
/frameworks/base/libs/androidfw/
H A DBackupData.cpp146 BackupDataWriter::WriteEntityData(const void* data, size_t size) argument
148 if (kIsDebug) ALOGD("Writing data: size=%lu", (unsigned long) size);
160 ssize_t amt = write(m_fd, data, size);
161 if (amt != (ssize_t)size) {
267 size_t size = m_header.entity.keyLen; local
268 char* buf = m_key.lockBuffer(size);
273 int amt = read(m_fd, buf, size+1);
274 CHECK_SIZE(amt, (int)size+1);
275 m_key.unlockBuffer(size);
332 ReadEntityData(void* data, size_t size) argument
[all...]
/frameworks/base/libs/hwui/
H A DPatchCache.cpp103 size_t count = mGarbage.size();
120 size_t count = mGarbage.size();
133 for (size_t i = 0; i < patchesToRemove.size(); i++) {
149 if (patchesToRemove.size() > 0) {
173 uint32_t size = newMesh->getSize(); local
174 if (mSize + size > mMaxSize) {
184 if (block->size >= size) {
204 mRenderState.meshState().updateMeshBufferSubData(mMeshBuffer, newMesh->positionOffset, size,
208 if (block->size
[all...]
/frameworks/base/libs/hwui/utils/
H A DLinearAllocator.cpp34 // The ideal size of a page allocation (these need to be multiples of 8)
78 #define ADD_ALLOCATION(size) _addAllocation(1);
79 #define RM_ALLOCATION(size) _addAllocation(-1);
96 void* operator new(size_t /*size*/, void* buf) { return buf; }
146 bool LinearAllocator::fitsInCurrentPage(size_t size) { argument
147 return mNext && ((char*)mNext + size) <= end(mCurrentPage);
150 void LinearAllocator::ensureNext(size_t size) { argument
151 if (fitsInCurrentPage(size)) return;
170 void* LinearAllocator::allocImpl(size_t size) { argument
171 size
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DStatusBarIconList.java37 final int N = mSlots.size();
49 public int size() { method in class:StatusBarIconList
50 return mSlots.size();
80 final int N = mSlots.size();
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
H A DUtils.java27 for (int i = list.size() - 1; i >= 0; i--) {
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DSimpleCache.java36 return super.size() > mMaxEntries;
/frameworks/base/tools/aapt2/unflatten/
H A DResChunkPullParser.cpp34 return StringPrintf("(type=%02" PRIx16 " header_size=%" PRIu16 " size=%" PRIu32 ")",
36 util::DeviceToHost32(header->size));
49 util::DeviceToHost32(current_chunk_->size));
69 } else if (util::DeviceToHost32(current_chunk_->size) <
71 error_ = "chunk's total size is smaller than header " + ChunkHeaderDump(current_chunk_);
74 } else if (offset + util::DeviceToHost32(current_chunk_->size) > len_) {
/frameworks/base/tools/aapt2/util/
H A DUtil.cpp65 if (str.size() < prefix.size()) {
68 return str.substr(0, prefix.size()) == prefix;
72 if (str.size() < suffix.size()) {
75 return str.substr(str.size() - suffix.size(), suffix.size()) == suffix;
79 if (str.size() == 0 || str.data() == nullptr) {
131 if (piece.data()[0] == '$' || piece.data()[piece.size()
[all...]
/frameworks/base/tools/incident_report/
H A Dprinter.h40 int reallocate(int size);
/frameworks/base/tools/streaming_proto/
H A Dstring_utils.cpp14 const int N = str.size();
43 const int N = str.size();
74 end = str.size();
83 const int N = result.size();
/frameworks/compile/mclinker/include/mcld/Fragment/
H A DNullFragment.h26 /// size -
27 size_t size() const { return 0x0; } function in class:mcld::NullFragment
/frameworks/compile/mclinker/unittests/
H A DStringTableTest.cpp41 int size = 127 - 32; local
48 ASSERT_EQ(m_pTestee->size(), size);
71 ASSERT_EQ(m_pTestee->size(), 1);
/frameworks/hardware/interfaces/sensorservice/1.0/
H A DISensorManager.hal63 * 0x0000 int32_t size (SensorsEventFormatOffset::TOTAL_LENGTH)
73 * @param size the intended size to be used. The following must be true:
74 * SensorsEventFormatOffset::TOTAL_LENGTH <= size <= mem.size
78 * BAD_VALUE if size > mem.size();
79 * BAD_VALUE if size < TOTAL_LENGTH;
84 createAshmemDirectChannel(memory mem, uint64_t size)
94 * @param size th
[all...]
/frameworks/ml/nn/runtime/
H A DMemory.h44 // Creates a shared memory object of the size specified in bytes.
45 int create(uint32_t size);
74 // Create the native_handle based on input size, prot, and fd.
77 int set(size_t size, int prot, int fd, size_t offset);
96 uint32_t size() const { return static_cast<uint32_t>(mKnown.size()); } function in class:android::nn::MemoryTracker
/frameworks/native/libs/vr/libperformance/include/dvr/
H A Dperformance_client_api.h64 /// @param size Size of the string buffer in bytes, including space for the NULL
67 int dvrGetCpuPartition(pid_t task_id, char* partition, size_t size);
/frameworks/rs/
H A DrsDevice.cpp35 for (size_t idx=0; idx < mContexts.size(); idx++) {
/frameworks/support/compat/java/android/support/v4/os/
H A DParcelableCompatCreatorCallbacks.java45 * @param size Size of the array.
49 T[] newArray(int size); argument
/frameworks/support/compat/java/android/support/v4/util/
H A DContainerHelpers.java45 static int binarySearch(int[] array, int size, int value) { argument
47 int hi = size - 1;
64 static int binarySearch(long[] array, int size, long value) { argument
66 int hi = size - 1;
/frameworks/support/core-ui/java/android/support/v4/widget/
H A DSpace.java58 * If mode is AT_MOST, return the child size instead of the parent size
61 private static int getDefaultSize2(int size, int measureSpec) { argument
62 int result = size;
68 result = size;
71 result = Math.min(size, specSize);
/frameworks/wilhelm/src/android/include/
H A DAacBqToPcmCbRenderer.h44 static SLresult validateBufferStartEndOnFrameBoundaries(void* data, size_t size);
/frameworks/av/media/libstagefright/foundation/
H A DABitReader.cpp23 ABitReader::ABitReader(const uint8_t *data, size_t size) argument
25 mSize(size),
135 NALBitReader::NALBitReader(const uint8_t *data, size_t size) argument
136 : ABitReader(data, size),
141 // check against raw size and reservoir bits first
149 size_t size = mSize; local
152 while (size > 0 && numBitsRemaining > 0) {
166 --size;
/frameworks/base/core/java/android/bluetooth/le/
H A DBluetoothLeUtils.java42 if (array.size() == 0) {
47 for (int i = 0; i < array.size(); ++i) {
89 if (array.size() != otherArray.size()) {
94 for (int i = 0; i < array.size(); ++i) {
113 if (map.size() != otherMap.size()) {
/frameworks/base/libs/hwui/thread/
H A DTaskManager.cpp47 for (size_t i = 0; i < mThreads.size(); i++) {
53 return mThreads.size() > 0;
57 for (size_t i = 0; i < mThreads.size(); i++) {
63 if (mThreads.size() > 0) {
69 for (size_t i = 0; i < mThreads.size(); i++) {
98 for (size_t i = 0; i < tasks.size(); i++) {
124 return mTasks.size();
/frameworks/base/services/autofill/java/com/android/server/autofill/
H A DHelper.java67 builder.append("[Bundle with ").append(keySet.size()).append(" extras:");
87 final AutofillId[] array = new AutofillId[set.size()];
88 for (int i = 0; i < set.size(); i++) {
98 final int size = ids == null ? 0 : ids.size();
99 final ArrayMap<AutofillId, AutofillValue> fields = new ArrayMap<>(size);
100 for (int i = 0; i < size; i++) {

Completed in 2566 milliseconds

<<11121314151617181920>>