Home
last modified time | relevance | path

Searched refs:SIZE (Results 1 – 25 of 144) 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/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()
86 : std::vector<T, InlineStdAllocator<T, SIZE>>(init, in FatVector()
87 InlineStdAllocator<T, SIZE>(mAllocation)) { in FatVector()
88 this->reserve(SIZE); in FatVector()
[all …]
/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()
86 : std::vector<T, InlineStdAllocator<T, SIZE>>(init, in FatVector()
87 InlineStdAllocator<T, SIZE>(mAllocation)) { in FatVector()
88 this->reserve(SIZE); in FatVector()
[all …]
/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()
86 : std::vector<T, InlineStdAllocator<T, SIZE>>(init, in FatVector()
87 InlineStdAllocator<T, SIZE>(mAllocation)) { in FatVector()
88 this->reserve(SIZE); in FatVector()
[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/packages/SystemUI/tests/src/com/android/systemui/log/table/
DTableLogBufferFactoryTest.kt35 val b1 = underTest.create(NAME_1, SIZE) in create - always creates new instance()
36 val b1_copy = underTest.create(NAME_1, SIZE) in create - always creates new instance()
37 val b2 = underTest.create(NAME_2, SIZE) in create - always creates new instance()
38 val b2_copy = underTest.create(NAME_2, SIZE) in create - always creates new instance()
47 val b1 = underTest.getOrCreate(NAME_1, SIZE) in getOrCreate - reuses instance()
48 val b1_copy = underTest.getOrCreate(NAME_1, SIZE) in getOrCreate - reuses instance()
49 val b2 = underTest.getOrCreate(NAME_2, SIZE) in getOrCreate - reuses instance()
50 val b2_copy = underTest.getOrCreate(NAME_2, SIZE) in getOrCreate - reuses instance()
62 const val SIZE = 8 constant
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DArchiveTest.java58 private static final int SIZE = 5; field in ArchiveTest
68 mArchive = new NotificationManagerService.Archive(SIZE); in setUp()
88 for (int i = 0; i < SIZE; i++) { in testRecordAndRead()
95 List<StatusBarNotification> actual = Arrays.asList(mArchive.getArray(mUm, SIZE, true)); in testRecordAndRead()
109 List<StatusBarNotification> actual = Arrays.asList(mArchive.getArray(mUm, SIZE, true)); in testCrossUser()
121 for (int i = 0; i < (SIZE * 2); i++) { in testRecordAndRead_overLimit()
124 if (i >= SIZE) { in testRecordAndRead_overLimit()
130 mArchive.getArray(mUm, (SIZE * 2), true)); in testRecordAndRead_overLimit()
141 for (int i = 0; i < SIZE; i++) { in testDoesNotRecordIfHistoryDisabled()
150 List<StatusBarNotification> actual = Arrays.asList(mArchive.getArray(mUm, SIZE, true)); in testDoesNotRecordIfHistoryDisabled()
[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 …]
DStatLogger.java42 private final int SIZE; field in StatLogger
77 SIZE = eventLabels.length; in StatLogger()
78 mCountStats = new int[SIZE]; in StatLogger()
79 mDurationStats = new long[SIZE]; in StatLogger()
80 mCallsPerSecond = new int[SIZE]; in StatLogger()
81 mMaxCallsPerSecond = new int[SIZE]; in StatLogger()
82 mDurationPerSecond = new long[SIZE]; in StatLogger()
83 mMaxDurationPerSecond = new long[SIZE]; in StatLogger()
84 mMaxDurationStats = new long[SIZE]; in StatLogger()
105 if (eventId >= 0 && eventId < SIZE) { in logDurationStat()
[all …]
/frameworks/base/libs/hwui/thread/
DCommonPool.h33 template <class T, int SIZE>
36 static_assert(SIZE > 0, "Size must be positive");
42 constexpr size_t capacity() const { return SIZE; } in capacity()
44 constexpr bool hasSpace() const { return ((mHead + 1) % SIZE) != mTail; } in hasSpace()
49 return mTail - mHead + SIZE; in size()
54 int newHead = (mHead + 1) % SIZE; in push()
64 mTail = (mTail + 1) % SIZE; in pop()
71 T mBuffer[SIZE];
/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()
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/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/libs/net/common/netd/libnetdutils/
DMemBlockTest.cpp103 constexpr unsigned SIZE = 10; in TEST() local
110 MemBlock block2 = makeArbitraryMemBlock(SIZE); in TEST()
111 EXPECT_EQ(SIZE, block2.get().size()); in TEST()
113 for (unsigned i = 0; i < SIZE; i++) { in TEST()
119 EXPECT_EQ(SIZE, block.get().size()); in TEST()
120 for (unsigned i = 0; i < SIZE; i++) { in TEST()
/frameworks/base/packages/SystemUI/src/com/android/systemui/shortcut/
DShortcutKeyDispatcher.java43 protected final long META_MASK = ((long) KeyEvent.META_META_ON) << Integer.SIZE;
44 protected final long ALT_MASK = ((long) KeyEvent.META_ALT_ON) << Integer.SIZE;
45 protected final long CTRL_MASK = ((long) KeyEvent.META_CTRL_ON) << Integer.SIZE;
46 protected final long SHIFT_MASK = ((long) KeyEvent.META_SHIFT_ON) << Integer.SIZE;
/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/base/services/core/java/com/android/server/notification/
DZenLog.java43 private static final int SIZE = Build.IS_DEBUGGABLE ? 200 : 100; field in ZenLog
45 private static final long[] TIMES = new long[SIZE];
46 private static final int[] TYPES = new int[SIZE];
47 private static final String[] MSGS = new String[SIZE];
284 sNext = (sNext + 1) % SIZE; in append()
285 if (sSize < SIZE) { in append()
294 final int start = (sNext - sSize + SIZE) % SIZE; in dump()
296 final int j = (start + i) % SIZE; in dump()
/frameworks/native/services/inputflinger/dispatcher/
DLatencyAggregator.h36 SIZE = 7, // Must be last enumerator
80 std::array<std::unique_ptr<dist_proc::aggregation::KllQuantile>, SketchIndex::SIZE>
82 std::array<std::unique_ptr<dist_proc::aggregation::KllQuantile>, SketchIndex::SIZE>
DInputEventTimeline.h46 std::array<nsecs_t, GraphicsTimeline::SIZE> graphicsTimeline;
49 ConnectionTimeline(std::array<nsecs_t, GraphicsTimeline::SIZE> graphicsTimeline);
66 bool setGraphicsTimeline(std::array<nsecs_t, GraphicsTimeline::SIZE> graphicsTimeline);
/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()

123456