Home
last modified time | relevance | path

Searched refs:SIZE (Results 1 – 25 of 96) sorted by relevance

1234

/frameworks/base/core/tests/coretests/src/android/database/
DNewDatabasePerformanceTests.java107 private static final int SIZE = 10 * kMultiplier; field in NewDatabasePerformanceTests.Insert1000
109 private String[] statements = new String[SIZE];
116 for (int i = 0; i < SIZE; i++) { in setUp()
128 for (int i = 0; i < SIZE; i++) { in testRun()
139 private static final int SIZE = 10 * kMultiplier; field in NewDatabasePerformanceTests.InsertIndexed1000
141 private String[] statements = new String[SIZE];
148 for (int i = 0; i < SIZE; i++) { in setUp()
161 for (int i = 0; i < SIZE; i++) { in testRun()
172 private static final int SIZE = 1 * kMultiplier; field in NewDatabasePerformanceTests.Select100
175 private String[] where = new String[SIZE];
[all …]
DDatabasePerformanceTests.java198 private static final int SIZE = 1000; field in DatabasePerformanceTests.Perf1Test
200 private String[] statements = new String[SIZE];
207 for (int i = 0; i < SIZE; i++) { in setUp()
220 for (int i = 0; i < SIZE; i++) { in run()
231 private static final int SIZE = 1000; field in DatabasePerformanceTests.Perf2Test
233 private String[] statements = new String[SIZE];
240 for (int i = 0; i < SIZE; i++) { in setUp()
254 for (int i = 0; i < SIZE; i++) { in run()
265 private static final int SIZE = 100; field in DatabasePerformanceTests.Perf3Test
268 private String[] where = new String[SIZE];
[all …]
/frameworks/native/services/sensorservice/
Dvec.h36 template <typename TYPE, size_t SIZE>
39 template <typename TYPE, size_t SIZE>
48 typename TYPE, size_t SIZE, size_t S>
49 vec<TYPE, SIZE>& doAssign( in doAssign()
50 vec<TYPE, SIZE>& lhs, const VEC<TYPE, S>& rhs) { in doAssign()
51 const size_t minSize = min(SIZE, S); in doAssign()
52 const size_t maxSize = max(SIZE, S); in doAssign()
65 size_t SIZE
67 VLHS<TYPE, SIZE> PURE doAdd( in doAdd()
68 const VLHS<TYPE, SIZE>& lhs, in doAdd()
[all …]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DSmallCircleActivity.java38 layout.addView(view, new LinearLayout.LayoutParams(PathView.SIZE, PathView.SIZE)); in onCreate()
41 layout.addView(view, new LinearLayout.LayoutParams(PathView.SIZE, PathView.SIZE)); in onCreate()
47 private static final int SIZE = 37; field in SmallCircleActivity.PathView
55 mPath.addCircle(SIZE * 0.5f, SIZE * 0.5f, SIZE * 0.275f, Path.Direction.CW); in PathView()
56 mPath.addCircle(SIZE * 0.5f, SIZE * 0.5f, SIZE * 0.225f, Path.Direction.CCW); in PathView()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DByteArrayHelpers.java51 return toByteArray(array, Short.SIZE); in toByteArray()
61 return toByteArray(array, Character.SIZE); in toByteArray()
70 return toByteArray(array, Integer.SIZE); in toByteArray()
79 return toByteArray(array, Long.SIZE); in toByteArray()
88 return toByteArray(array, Float.SIZE); in toByteArray()
97 return toByteArray(array, Double.SIZE); in toByteArray()
127 sizeInBits = Integer.SIZE; in toByteArray()
129 sizeInBits = Float.SIZE; in toByteArray()
131 sizeInBits = Double.SIZE; in toByteArray()
133 sizeInBits = Short.SIZE; in toByteArray()
[all …]
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioPatch.cpp40 const size_t SIZE = 256; in dump() local
41 char buffer[SIZE]; in dump()
44 snprintf(buffer, SIZE, "%*sAudio patch %d:\n", spaces, "", index+1); in dump()
46 snprintf(buffer, SIZE, "%*s- handle: %2d\n", spaces, "", mHandle); in dump()
48 snprintf(buffer, SIZE, "%*s- audio flinger handle: %2d\n", spaces, "", mAfPatchHandle); in dump()
50 snprintf(buffer, SIZE, "%*s- owner uid: %2d\n", spaces, "", mUid); in dump()
52 snprintf(buffer, SIZE, "%*s- %d sources:\n", spaces, "", mPatch.num_sources); in dump()
56 snprintf(buffer, SIZE, "%*s- Device ID %d %s\n", spaces + 2, "", in dump()
61 snprintf(buffer, SIZE, "%*s- Mix ID %d I/O handle %d\n", spaces + 2, "", in dump()
66 snprintf(buffer, SIZE, "%*s- %d sinks:\n", spaces, "", mPatch.num_sinks); in dump()
[all …]
DAudioGain.cpp104 const size_t SIZE = 256; in dump() local
105 char buffer[SIZE]; in dump()
108 snprintf(buffer, SIZE, "%*sGain %d:\n", spaces, "", index+1); in dump()
110 snprintf(buffer, SIZE, "%*s- mode: %08x\n", spaces, "", mGain.mode); in dump()
112 snprintf(buffer, SIZE, "%*s- channel_mask: %08x\n", spaces, "", mGain.channel_mask); in dump()
114 snprintf(buffer, SIZE, "%*s- min_value: %d mB\n", spaces, "", mGain.min_value); in dump()
116 snprintf(buffer, SIZE, "%*s- max_value: %d mB\n", spaces, "", mGain.max_value); in dump()
118 snprintf(buffer, SIZE, "%*s- default_value: %d mB\n", spaces, "", mGain.default_value); in dump()
120 snprintf(buffer, SIZE, "%*s- step_value: %d mB\n", spaces, "", mGain.step_value); in dump()
122 snprintf(buffer, SIZE, "%*s- min_ramp_ms: %d ms\n", spaces, "", mGain.min_ramp_ms); in dump()
[all …]
DAudioInputDescriptor.cpp118 const size_t SIZE = 256; in dump() local
119 char buffer[SIZE]; in dump()
122 snprintf(buffer, SIZE, " ID: %d\n", getId()); in dump()
124 snprintf(buffer, SIZE, " Sampling rate: %d\n", mSamplingRate); in dump()
126 snprintf(buffer, SIZE, " Format: %d\n", mFormat); in dump()
128 snprintf(buffer, SIZE, " Channels: %08x\n", mChannelMask); in dump()
130 snprintf(buffer, SIZE, " Devices %08x\n", mDevice); in dump()
132 snprintf(buffer, SIZE, " Ref Count %d\n", mRefCount); in dump()
134 snprintf(buffer, SIZE, " Open Ref Count %d\n", mOpenRefCount); in dump()
201 const size_t SIZE = 256; in dump() local
[all …]
DEffectDescriptor.cpp27 const size_t SIZE = 256; in dump() local
28 char buffer[SIZE]; in dump()
31 snprintf(buffer, SIZE, " I/O: %d\n", mIo); in dump()
33 snprintf(buffer, SIZE, " Strategy: %d\n", mStrategy); in dump()
35 snprintf(buffer, SIZE, " Session: %d\n", mSession); in dump()
37 snprintf(buffer, SIZE, " Name: %s\n", mDesc.name); in dump()
39 snprintf(buffer, SIZE, " %s\n", mEnabled ? "Enabled" : "Disabled"); in dump()
175 const size_t SIZE = 256; in dump() local
176 char buffer[SIZE]; in dump()
178 snprintf(buffer, SIZE, "\nTotal Effects CPU: %f MIPS, Total Effects memory: %d KB\n", in dump()
[all …]
DStreamDescriptor.cpp79 const size_t SIZE = 256; in dump() local
80 char buffer[SIZE]; in dump()
83 snprintf(buffer, SIZE, "%s %02d %02d ", in dump()
87 snprintf(buffer, SIZE, "%04x : %02d, ", in dump()
145 const size_t SIZE = 256; in dump() local
146 char buffer[SIZE]; in dump()
148 snprintf(buffer, SIZE, "\nStreams dump:\n"); in dump()
150 snprintf(buffer, SIZE, in dump()
154 snprintf(buffer, SIZE, " %02zu ", i); in dump()
DAudioOutputDescriptor.cpp190 const size_t SIZE = 256; in dump() local
191 char buffer[SIZE]; in dump()
194 snprintf(buffer, SIZE, " ID: %d\n", mId); in dump()
196 snprintf(buffer, SIZE, " Sampling rate: %d\n", mSamplingRate); in dump()
198 snprintf(buffer, SIZE, " Format: %08x\n", mFormat); in dump()
200 snprintf(buffer, SIZE, " Channels: %08x\n", mChannelMask); in dump()
202 snprintf(buffer, SIZE, " Devices %08x\n", device()); in dump()
204 snprintf(buffer, SIZE, " Stream volume refCount muteCount\n"); in dump()
207 snprintf(buffer, SIZE, " %02d %.03f %02d %02d\n", in dump()
244 const size_t SIZE = 256; in dump() local
[all …]
DIOProfile.cpp123 const size_t SIZE = 256; in dump() local
124 char buffer[SIZE]; in dump()
129 snprintf(buffer, SIZE, " - flags: 0x%04x\n", mFlags); in dump()
131 snprintf(buffer, SIZE, " - devices:\n"); in dump()
141 const size_t SIZE = 256; in log() local
142 char buffer[SIZE]; in log()
DHwModule.cpp251 const size_t SIZE = 256; in dump() local
252 char buffer[SIZE]; in dump()
255 snprintf(buffer, SIZE, " - name: %s\n", mName); in dump()
257 snprintf(buffer, SIZE, " - handle: %d\n", mHandle); in dump()
259 snprintf(buffer, SIZE, " - version: %u.%u\n", mHalVersion >> 8, mHalVersion & 0xFF); in dump()
265 snprintf(buffer, SIZE, " output %zu:\n", i); in dump()
273 snprintf(buffer, SIZE, " input %zu:\n", i); in dump()
362 const size_t SIZE = 256; in dump() local
363 char buffer[SIZE]; in dump()
365 snprintf(buffer, SIZE, "\nHW Modules dump:\n"); in dump()
[all …]
DDeviceDescriptor.cpp252 const size_t SIZE = 256; in dump() local
253 char buffer[SIZE]; in dump()
255 snprintf(buffer, SIZE, "\n Available %s devices:\n", direction.string()); in dump()
313 const size_t SIZE = 256; in dump() local
314 char buffer[SIZE]; in dump()
317 snprintf(buffer, SIZE, "%*sDevice %d:\n", spaces, "", index+1); in dump()
320 snprintf(buffer, SIZE, "%*s- id: %2d\n", spaces, "", mId); in dump()
323 snprintf(buffer, SIZE, "%*s- type: %-48s\n", spaces, "", in dump()
329 snprintf(buffer, SIZE, "%*s- address: %-32s\n", spaces, "", mAddress.string()); in dump()
/frameworks/data-binding/baseLibrary/src/main/java/android/databinding/
DCallbackRegistry.java98 removeRemovedCallbacks((i + 1) * Long.SIZE, removedBits); in notifyCallbacks()
121 final int maxNotified = Math.min(Long.SIZE, mCallbacks.size()); in notifyFirst64()
149 final int startCallbackIndex = (remainderIndex + 2) * Long.SIZE; in notifyRecurse()
172 final int startIndex = (remainderIndex + 1) * Long.SIZE; in notifyRemainder()
173 final int endIndex = Math.min(mCallbacks.size(), startIndex + Long.SIZE); in notifyRemainder()
226 if (index < Long.SIZE) { in isRemoved()
234 final int maskIndex = (index / Long.SIZE) - 1; in isRemoved()
241 final long bitMask = 1L << (index % Long.SIZE); in isRemoved()
257 final int endIndex = startIndex + Long.SIZE; in removeRemovedCallbacks()
259 long bitMask = 1L << (Long.SIZE - 1); in removeRemovedCallbacks()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DCallbackRegistry.java100 removeRemovedCallbacks((i + 1) * Long.SIZE, removedBits); in notifyCallbacks()
123 final int maxNotified = Math.min(Long.SIZE, mCallbacks.size()); in notifyFirst64Locked()
152 final int startCallbackIndex = (remainderIndex + 2) * Long.SIZE; in notifyRecurseLocked()
175 final int startIndex = (remainderIndex + 1) * Long.SIZE; in notifyRemainderLocked()
176 final int endIndex = Math.min(mCallbacks.size(), startIndex + Long.SIZE); in notifyRemainderLocked()
229 if (index < Long.SIZE) { in isRemovedLocked()
237 final int maskIndex = (index / Long.SIZE) - 1; in isRemovedLocked()
244 final long bitMask = 1L << (index % Long.SIZE); in isRemovedLocked()
259 final int endIndex = startIndex + Long.SIZE; in removeRemovedCallbacks()
261 long bitMask = 1L << (Long.SIZE - 1); in removeRemovedCallbacks()
[all …]
/frameworks/base/core/java/android/hardware/camera2/marshal/
DMarshalHelpers.java36 public static final int SIZEOF_INT32 = Integer.SIZE / Byte.SIZE;
37 public static final int SIZEOF_INT64 = Long.SIZE / Byte.SIZE;
38 public static final int SIZEOF_FLOAT = Float.SIZE / Byte.SIZE;
39 public static final int SIZEOF_DOUBLE = Double.SIZE / Byte.SIZE;
/frameworks/base/libs/hwui/utils/
DRingBuffer.h26 template<class T, size_t SIZE>
34 constexpr size_t capacity() const { return SIZE; } in capacity()
38 mHead = (mHead + 1) % SIZE; in next()
39 if (mCount < SIZE) { in next()
63 T mBuffer[SIZE];
/frameworks/compile/mclinker/include/mcld/LD/
DELFObjectWriter.h50 template <size_t SIZE>
59 template <size_t SIZE>
65 template <size_t SIZE>
84 template <size_t SIZE>
90 template <size_t SIZE>
96 template <size_t SIZE>
106 template <size_t SIZE>
/frameworks/compile/mclinker/lib/LD/
DELFObjectWriter.cpp202 template <size_t SIZE>
206 typedef typename ELFSizeTraits<SIZE>::Ehdr ElfXX_Ehdr; in writeELFHeader()
207 typedef typename ELFSizeTraits<SIZE>::Shdr ElfXX_Shdr; in writeELFHeader()
208 typedef typename ELFSizeTraits<SIZE>::Phdr ElfXX_Phdr; in writeELFHeader()
217 (SIZE == 32) ? llvm::ELF::ELFCLASS32 : llvm::ELF::ELFCLASS64; in writeELFHeader()
250 header->e_shoff = getLastStartOffset<SIZE>(pModule); in writeELFHeader()
297 template <size_t SIZE>
301 typedef typename ELFSizeTraits<SIZE>::Shdr ElfXX_Shdr; in emitSectionHeader()
307 pOutput.request(getLastStartOffset<SIZE>(pModule), header_size); in emitSectionHeader()
322 shdr[sectIdx].sh_entsize = getSectEntrySize<SIZE>(*ld_sect); in emitSectionHeader()
[all …]
/frameworks/base/services/core/java/com/android/server/notification/
DZenLog.java39 private static final int SIZE = Build.IS_DEBUGGABLE ? 100 : 20; field in ZenLog
41 private static final long[] TIMES = new long[SIZE];
42 private static final int[] TYPES = new int[SIZE];
43 private static final String[] MSGS = new String[SIZE];
201 sNext = (sNext + 1) % SIZE; in append()
202 if (sSize < SIZE) { in append()
211 final int start = (sNext - sSize + SIZE) % SIZE; in dump()
213 final int j = (start + i) % SIZE; in dump()
/frameworks/native/libs/ui/
DGraphicBufferAllocator.cpp59 const size_t SIZE = 4096; in dump() local
60 char buffer[SIZE]; in dump()
61 snprintf(buffer, SIZE, "Allocated buffers:\n"); in dump()
67 snprintf(buffer, SIZE, "%10p: %7.2f KiB | %4u (%4u) x %4u | %8X | 0x%08x\n", in dump()
71 snprintf(buffer, SIZE, "%10p: unknown | %4u (%4u) x %4u | %8X | 0x%08x\n", in dump()
78 snprintf(buffer, SIZE, "Total allocated (estimate): %.2f KB\n", total/1024.0f); in dump()
81 mAllocDev->dump(mAllocDev, buffer, SIZE); in dump()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeLog.java35 private static final int SIZE = Build.IS_DEBUGGABLE ? 400 : 50; field in DozeLog
88 sTimes = new long[SIZE]; in init()
89 sMessages = new String[SIZE]; in init()
176 final int start = (sPosition - sCount + SIZE) % SIZE; in dump()
178 final int j = (start + i) % SIZE; in dump()
206 sPosition = (sPosition + 1) % SIZE; in log()
207 sCount = Math.min(sCount + 1, SIZE); in log()
/frameworks/av/media/libmedia/
DMemoryLeakTrackUtil.cpp78 const size_t SIZE = 256; in dumpMemoryAddresses() local
79 char buffer[SIZE]; in dumpMemoryAddresses()
99 snprintf(buffer, SIZE, " Allocation count %i\n", count); in dumpMemoryAddresses()
101 snprintf(buffer, SIZE, " Total memory %i\n", totalMemory); in dumpMemoryAddresses()
154 snprintf(buffer, SIZE, "size %8i, dup %4i, ", e->size, e->dups); in dumpMemoryAddresses()
160 snprintf(buffer, SIZE, "0x%08x", e->backtrace[ct]); in dumpMemoryAddresses()
/frameworks/compile/mclinker/include/mcld/ADT/
DSizeTraits.h17 template <size_t SIZE>
39 template <size_t SIZE>
139 template <size_t SIZE>
140 typename SizeTraits<SIZE>::Word bswap(typename SizeTraits<SIZE>::Word pData);

1234