Home
last modified time | relevance | path

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

12345

/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/base/libs/hwui/utils/
DFatVector.h41 template <typename T, size_t SIZE>
50 char array[sizeof(T) * SIZE];
62 if (!mAllocation.inUse && num <= SIZE) {
87 template <typename T, size_t SIZE>
88 class FatVector : public std::vector<T, InlineStdAllocator<T, SIZE>> {
91 : std::vector<T, InlineStdAllocator<T, SIZE>>( in FatVector()
92 InlineStdAllocator<T, SIZE>(mAllocation)) { in FatVector()
93 this->reserve(SIZE); in FatVector()
99 typename InlineStdAllocator<T, SIZE>::Allocation mAllocation;
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()
59 T mBuffer[SIZE];
/frameworks/base/core/java/com/android/internal/util/
DStatLogger.java40 private final int SIZE; field in StatLogger
69 SIZE = eventLabels.length; in StatLogger()
70 mCountStats = new int[SIZE]; in StatLogger()
71 mDurationStats = new long[SIZE]; in StatLogger()
72 mCallsPerSecond = new int[SIZE]; in StatLogger()
73 mMaxCallsPerSecond = new int[SIZE]; in StatLogger()
74 mDurationPerSecond = new long[SIZE]; in StatLogger()
75 mMaxDurationPerSecond = new long[SIZE]; in StatLogger()
76 mMaxDurationStats = new long[SIZE]; in StatLogger()
97 if (eventId >= 0 && eventId < SIZE) { in logDurationStat()
[all …]
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/thread/
DCommonPool.h32 template <class T, int SIZE>
35 static_assert(SIZE > 0, "Size must be positive");
41 constexpr size_t capacity() const { return SIZE; } in capacity()
43 constexpr bool hasSpace() const { return ((mHead + 1) % SIZE) != mTail; } in hasSpace()
48 return mTail - mHead + SIZE; in size()
53 int newHead = (mHead + 1) % SIZE; in push()
63 mTail = (mTail + 1) % SIZE; in pop()
70 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/av/services/audioflinger/
DBufLog.h81 #define __BUFLOG(STREAMID, TAG, FORMAT, CHANNELS, SAMPLINGRATE, MAXBYTES, BUF, SIZE) \ argument
83 BUF, SIZE)
85 #define BUFLOG(STREAMID, TAG, FORMAT, CHANNELS, SAMPLINGRATE, MAXBYTES, BUF, SIZE) \ argument
88 #define BUFLOG(STREAMID, TAG, FORMAT, CHANNELS, SAMPLINGRATE, MAXBYTES, BUF, SIZE) \ argument
89 __BUFLOG(STREAMID, TAG, FORMAT, CHANNELS, SAMPLINGRATE, MAXBYTES, BUF, SIZE)
/frameworks/base/services/core/java/com/android/server/notification/
DZenLog.java42 private static final int SIZE = Build.IS_DEBUGGABLE ? 100 : 20; field in ZenLog
44 private static final long[] TIMES = new long[SIZE];
45 private static final int[] TYPES = new int[SIZE];
46 private static final String[] MSGS = new String[SIZE];
240 sNext = (sNext + 1) % SIZE; in append()
241 if (sSize < SIZE) { in append()
250 final int start = (sNext - sSize + SIZE) % SIZE; in dump()
252 final int j = (start + i) % SIZE; in dump()
/frameworks/av/services/mediaanalytics/
DMediaAnalyticsService.cpp242 const size_t SIZE = 512; in dump() local
243 char buffer[SIZE]; in dump()
247 snprintf(buffer, SIZE, "Permission Denial: " in dump()
333 snprintf(buffer, SIZE, "Dump of the %s process:\n", kServiceName); in dump()
361 const size_t SIZE = 512; in dumpHeaders() local
362 char buffer[SIZE]; in dumpHeaders()
364 snprintf(buffer, SIZE, "Protocol Version: %d\n", mDumpProto); in dumpHeaders()
369 snprintf(buffer, SIZE, "Metrics gathering: enabled\n"); in dumpHeaders()
371 snprintf(buffer, SIZE, "Metrics gathering: DISABLED via property\n"); in dumpHeaders()
375 snprintf(buffer, SIZE, in dumpHeaders()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeLog.java35 private static final int SIZE = Build.IS_DEBUGGABLE ? 400 : 50; field in DozeLog
99 sTimes = new long[SIZE]; in init()
100 sMessages = new String[SIZE]; in init()
220 final int start = (sPosition - sCount + SIZE) % SIZE; in dump()
222 final int j = (start + i) % SIZE; in dump()
250 sPosition = (sPosition + 1) % SIZE; in log()
251 sCount = Math.min(sCount + 1, SIZE); in log()
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/include/
DTypeConvert.h57 template<typename T, size_t SIZE> const std::vector<T> toVector( in toVector()
58 const hidl_array<T, SIZE> &hArray) { in toVector()
64 template<typename T, size_t SIZE> std::vector<T> toVector( in toVector()
65 hidl_array<T, SIZE> &hArray) { in toVector()
/frameworks/base/packages/SystemUI/src/com/android/systemui/shortcut/
DShortcutKeyDispatcher.java47 protected final long META_MASK = ((long) KeyEvent.META_META_ON) << Integer.SIZE;
48 protected final long ALT_MASK = ((long) KeyEvent.META_ALT_ON) << Integer.SIZE;
49 protected final long CTRL_MASK = ((long) KeyEvent.META_CTRL_ON) << Integer.SIZE;
50 protected final long SHIFT_MASK = ((long) KeyEvent.META_SHIFT_ON) << Integer.SIZE;
/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);
/frameworks/native/libs/math/include/math/
Dvec2.h55 static constexpr size_t SIZE = 2; variable
56 inline constexpr size_type size() const { return SIZE; } in size()
62 assert(i < SIZE);
68 assert(i < SIZE);
Dvec3.h56 static constexpr size_t SIZE = 3; variable
57 inline constexpr size_type size() const { return SIZE; } in size()
63 assert(i < SIZE);
69 assert(i < SIZE);
Dvec4.h59 static constexpr size_t SIZE = 4; variable
60 inline constexpr size_type size() const { return SIZE; } in size()
66 assert(i < SIZE);
72 assert(i < SIZE);
/frameworks/av/media/libaaudio/src/fifo/
DFifoBuffer.h33 SIZE = 2 enumerator
35 void *data[SIZE];
36 int32_t numFrames[SIZE];
/frameworks/base/core/java/android/view/
DWindowInsets.java25 import static android.view.WindowInsets.Type.SIZE;
136 ? new Insets[SIZE] in WindowInsets()
141 ? new Insets[SIZE] in WindowInsets()
213 this(createCompatTypeMap(systemWindowInsets), null, new boolean[SIZE], false, false, null); in WindowInsets()
225 Insets[] typeInsetMap = new Insets[SIZE]; in createCompatTypeMap()
239 boolean[] typeVisibilityMap = new boolean[SIZE]; in createCompatVisibilityMap()
850 for (int i = 0; i < SIZE; i++) { in insetInsets()
905 mTypeInsetsMap = new Insets[SIZE]; in Builder()
906 mTypeMaxInsetsMap = new Insets[SIZE]; in Builder()
907 mTypeVisibilityMap = new boolean[SIZE]; in Builder()
[all …]
/frameworks/av/media/libmediaplayerservice/
DStagefrightRecorder.cpp2309 const size_t SIZE = 256; in dump() local
2310 char buffer[SIZE]; in dump()
2315 snprintf(buffer, SIZE, " No file writer\n"); in dump()
2318 snprintf(buffer, SIZE, " Recorder: %p\n", this); in dump()
2319 snprintf(buffer, SIZE, " Output file (fd %d):\n", mOutputFd); in dump()
2321 snprintf(buffer, SIZE, " File format: %d\n", mOutputFormat); in dump()
2323 snprintf(buffer, SIZE, " Max file size (bytes): %" PRId64 "\n", mMaxFileSizeBytes); in dump()
2325 snprintf(buffer, SIZE, " Max file duration (us): %" PRId64 "\n", mMaxFileDurationUs); in dump()
2327 snprintf(buffer, SIZE, " File offset length (bits): %d\n", mUse64BitFileOffset? 64: 32); in dump()
2329 snprintf(buffer, SIZE, " Interleave duration (us): %d\n", mInterleaveDurationUs); in dump()
[all …]
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/loaders/
DMandelbulb.java50 private static final int SIZE = 256; field in Mandelbulb
58 v.mDimx = v.mDimy = v.mDimz = SIZE; in buildRSVolume()
72 scriptC_mandelbulb.set_size(SIZE); in buildRSVolume()

12345