Home
last modified time | relevance | path

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

123456

/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/native/libs/ui/include/ui/
DFatVector.h29 template <typename T, size_t SIZE = 4>
40 char array[sizeof(T) * SIZE];
52 if (!mAllocation.inUse && num <= SIZE) {
77 template <typename T, size_t SIZE = 4>
78 class FatVector : public std::vector<T, InlineStdAllocator<T, SIZE>> {
81 : std::vector<T, InlineStdAllocator<T, SIZE>>(InlineStdAllocator<T, SIZE>(mAllocation)) { in FatVector()
82 this->reserve(SIZE); in FatVector()
88 typename InlineStdAllocator<T, SIZE>::Allocation mAllocation;
/frameworks/native/include/ui/
DFatVector.h29 template <typename T, size_t SIZE = 4>
40 char array[sizeof(T) * SIZE];
52 if (!mAllocation.inUse && num <= SIZE) {
77 template <typename T, size_t SIZE = 4>
78 class FatVector : public std::vector<T, InlineStdAllocator<T, SIZE>> {
81 : std::vector<T, InlineStdAllocator<T, SIZE>>(InlineStdAllocator<T, SIZE>(mAllocation)) { in FatVector()
82 this->reserve(SIZE); in FatVector()
88 typename InlineStdAllocator<T, SIZE>::Allocation mAllocation;
/frameworks/native/libs/ui/include_vndk/ui/
DFatVector.h29 template <typename T, size_t SIZE = 4>
40 char array[sizeof(T) * SIZE];
52 if (!mAllocation.inUse && num <= SIZE) {
77 template <typename T, size_t SIZE = 4>
78 class FatVector : public std::vector<T, InlineStdAllocator<T, SIZE>> {
81 : std::vector<T, InlineStdAllocator<T, SIZE>>(InlineStdAllocator<T, SIZE>(mAllocation)) { in FatVector()
82 this->reserve(SIZE); in FatVector()
88 typename InlineStdAllocator<T, SIZE>::Allocation mAllocation;
/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/base/services/tests/uiservicestests/src/com/android/server/notification/
DArchiveTest.java45 private static final int SIZE = 5; field in ArchiveTest
53 mArchive = new NotificationManagerService.Archive(SIZE); in setUp()
71 for (int i = 0; i < SIZE; i++) { in testRecordAndRead()
78 List<StatusBarNotification> actual = Arrays.asList(mArchive.getArray(SIZE, true)); in testRecordAndRead()
88 for (int i = 0; i < (SIZE * 2); i++) { in testRecordAndRead_overLimit()
91 if (i >= SIZE) { in testRecordAndRead_overLimit()
96 List<StatusBarNotification> actual = Arrays.asList(mArchive.getArray((SIZE * 2), true)); in testRecordAndRead_overLimit()
107 for (int i = 0; i < SIZE; i++) { in testDoesNotRecordIfHistoryDisabled()
116 List<StatusBarNotification> actual = Arrays.asList(mArchive.getArray(SIZE, true)); in testDoesNotRecordIfHistoryDisabled()
127 for (int i = 0; i < SIZE; i++) { in testRemovesEntriesWhenHistoryDisabled()
[all …]
/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()
59 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];
241 sNext = (sNext + 1) % SIZE; in append()
242 if (sSize < SIZE) { in append()
251 final int start = (sNext - sSize + SIZE) % SIZE; in dump()
253 final int j = (start + i) % SIZE; in dump()
/frameworks/base/core/tests/coretests/src/android/view/
DWindowInsetsTest.java19 import static android.view.WindowInsets.Type.SIZE;
58 Insets[] insets = new Insets[SIZE]; in compatInsets_layoutStable()
59 Insets[] maxInsets = new Insets[SIZE]; in compatInsets_layoutStable()
60 boolean[] visible = new boolean[SIZE]; in compatInsets_layoutStable()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
DRestrictedSwitchPreferenceTest.java37 private static final int SIZE = 50; field in RestrictedSwitchPreferenceTest
57 mPreference.setIconSize(SIZE); in onBindViewHolder_setIconSize_shouldHaveCorrectLayoutParam()
61 assertThat(mImageView.getLayoutParams().height).isEqualTo(SIZE); in onBindViewHolder_setIconSize_shouldHaveCorrectLayoutParam()
62 assertThat(mImageView.getLayoutParams().width).isEqualTo(SIZE); in onBindViewHolder_setIconSize_shouldHaveCorrectLayoutParam()
/frameworks/av/media/libmediatranscoding/
DTranscodingClientManager.cpp60 const size_t SIZE = 256; in dumpAllClients() local
61 char buffer[SIZE]; in dumpAllClients()
63 snprintf(buffer, SIZE, " Total num of Clients: %zu\n", mClientIdToClientInfoMap.size()); in dumpAllClients()
67 snprintf(buffer, SIZE, "========== Dumping all clients =========\n"); in dumpAllClients()
79 snprintf(buffer, SIZE, " -- Clients: %d name: %s\n", iter.first, clientName.c_str()); in dumpAllClients()
/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/BackupEncryption/test/robolectric/src/com/android/server/backup/testing/
DRandomInputStream.java64 for (int rnd = mRandom.nextInt(), n = Math.min(end - i, Integer.SIZE / Byte.SIZE); in read()
66 rnd >>= Byte.SIZE) { in read()
/frameworks/base/packages/SystemUI/src/com/android/systemui/shortcut/
DShortcutKeyDispatcher.java52 protected final long META_MASK = ((long) KeyEvent.META_META_ON) << Integer.SIZE;
53 protected final long ALT_MASK = ((long) KeyEvent.META_ALT_ON) << Integer.SIZE;
54 protected final long CTRL_MASK = ((long) KeyEvent.META_CTRL_ON) << Integer.SIZE;
55 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/av/media/libstagefright/foundation/
DFoundationUtils.cpp81 const size_t SIZE = 256; in nameForFd() local
82 char buffer[SIZE]; in nameForFd()
84 snprintf(buffer, SIZE, "/proc/%d/fd/%d", getpid(), fd); in nameForFd()
/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);

123456