Home
last modified time | relevance | path

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

1234567891011

/aosp12/frameworks/native/services/sensorservice/
H A Dvec.h65 size_t SIZE
80 size_t SIZE
94 size_t SIZE
108 size_t SIZE
143 size_t SIZE
155 size_t SIZE
166 size_t SIZE
224 V<TYPE, SIZE> PURE normalize(const V<TYPE, SIZE>& v) { in normalize()
405 vec<TYPE, SIZE>& vec<TYPE, SIZE>::operator += (const vec<TYPE, SIZE>& rhs) {
413 vec<TYPE, SIZE>& vec<TYPE, SIZE>::operator -= (const vec<TYPE, SIZE>& rhs) {
[all …]
/aosp12/art/test/542-bitfield-rotates/src/
H A DMain.java65 assertIntEquals($noinline$rotate_int_right_reg_v_csubv(0x11, Integer.SIZE), 0x11); in test_Integer_right_v_csubv()
70 assertIntEquals($noinline$rotate_int_right_reg_v_csubv(0x11, -Integer.SIZE), 0x11); in test_Integer_right_v_csubv()
88 assertLongEquals($noinline$rotate_long_right_reg_v_csubv(0x11, Long.SIZE), 0x11); in test_Long_right_v_csubv()
93 assertLongEquals($noinline$rotate_long_right_reg_v_csubv(0x11, -Long.SIZE), 0x11); in test_Long_right_v_csubv()
111 assertIntEquals($noinline$rotate_int_left_reg_csubv_v(0x11, Integer.SIZE), 0x11); in test_Integer_left_csubv_v()
134 assertLongEquals($noinline$rotate_long_left_reg_csubv_v(0x11, Long.SIZE), 0x11); in test_Long_left_csubv_v()
139 assertLongEquals($noinline$rotate_long_left_reg_csubv_v(0x11, -Long.SIZE), 0x11); in test_Long_left_csubv_v()
157 assertIntEquals($noinline$rotate_int_right_reg_v_negv(0x11, Integer.SIZE), 0x11); in test_Integer_right_v_negv()
180 assertLongEquals($noinline$rotate_long_right_reg_v_negv(0x11, Long.SIZE), 0x11); in test_Long_right_v_negv()
203 assertIntEquals($noinline$rotate_int_left_reg_negv_v(0x11, Integer.SIZE), 0x11); in test_Integer_left_negv_v()
[all …]
/aosp12/frameworks/native/libs/ui/include/ui/
H A 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 …]
/aosp12/frameworks/native/libs/ui/include_vndk/ui/
H A 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 …]
/aosp12/frameworks/native/include/ui/
H A 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 …]
/aosp12/hardware/libhardware_legacy/audio/
H A DAudioHardwareStub.cpp101 const size_t SIZE = 256; in dumpInternals() local
102 char buffer[SIZE]; in dumpInternals()
143 const size_t SIZE = 256; in dump() local
144 char buffer[SIZE]; in dump()
146 snprintf(buffer, SIZE, "AudioStreamOutStub::dump\n"); in dump()
149 snprintf(buffer, SIZE, "\tchannels: %d\n", channels()); in dump()
150 snprintf(buffer, SIZE, "\tformat: %d\n", format()); in dump()
186 const size_t SIZE = 256; in dump() local
187 char buffer[SIZE]; in dump()
189 snprintf(buffer, SIZE, "AudioStreamInStub::dump\n"); in dump()
[all …]
H A DAudioHardwareGeneric.cpp168 const size_t SIZE = 256; in dumpInternals() local
169 char buffer[SIZE]; in dumpInternals()
247 const size_t SIZE = 256; in dump() local
248 char buffer[SIZE]; in dump()
258 snprintf(buffer, SIZE, "\tformat: %d\n", format()); in dump()
260 snprintf(buffer, SIZE, "\tdevice: %d\n", mDevice); in dump()
264 snprintf(buffer, SIZE, "\tmFd: %d\n", mFd); in dump()
355 const size_t SIZE = 256; in dump() local
356 char buffer[SIZE]; in dump()
368 snprintf(buffer, SIZE, "\tdevice: %d\n", mDevice); in dump()
[all …]
/aosp12/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
H A DByteArrayHelpers.java51 return toByteArray(array, Short.SIZE); in toByteArray()
79 return toByteArray(array, Long.SIZE); in toByteArray()
88 return toByteArray(array, Float.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()
135 sizeInBits = Character.SIZE; in toByteArray()
137 sizeInBits = Long.SIZE; in toByteArray()
139 sizeInBits = Byte.SIZE; in toByteArray()
[all …]
/aosp12/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A 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()
/aosp12/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
H A DArchiveTest.java58 private static final int SIZE = 5; field in ArchiveTest
88 for (int i = 0; i < SIZE; i++) { in testRecordAndRead()
121 for (int i = 0; i < (SIZE * 2); i++) { in testRecordAndRead_overLimit()
124 if (i >= SIZE) { in testRecordAndRead_overLimit()
141 for (int i = 0; i < SIZE; i++) { in testDoesNotRecordIfHistoryDisabled()
161 for (int i = 0; i < SIZE; i++) { in testRemovesEntriesWhenHistoryDisabled()
185 for (int i = 0; i < SIZE - 1; i++) { in testRemoveChannelNotifications()
188 if (i != 0 && i != SIZE - 2) { in testRemoveChannelNotifications()
210 for (int i = 0; i < SIZE; i++) { in testRemoveChannelNotifications_concurrently()
213 if (i >= SIZE - 2) { in testRemoveChannelNotifications_concurrently()
[all …]
/aosp12/frameworks/base/core/java/com/android/internal/util/
H A DCallbackRegistry.java123 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()
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()
286 if (index < Long.SIZE) { in setRemovalBitLocked()
291 final int remainderIndex = (index / Long.SIZE) - 1; in setRemovalBitLocked()
[all …]
H A 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 …]
/aosp12/art/test/564-checker-bitcount/src/
H A DMain.java80 int signExtensionSize = Integer.SIZE - Byte.SIZE; in testBitCountByte()
82 int signBit = Byte.SIZE - 1; in testBitCountByte()
96 for (int i = 0; i < Byte.SIZE; i++) { in testBitCountByte()
105 int signExtensionSize = Integer.SIZE - Short.SIZE;
107 int signBit = Short.SIZE - 1;
123 for (int i = 0; i < Short.SIZE; i++) {
144 for (int i = 0; i < Character.SIZE; i++) {
164 for (int i = 0; i < Integer.SIZE; i++) {
183 for (int i = 0; i < Long.SIZE; i++) {
/aosp12/frameworks/base/libs/hwui/thread/
H A 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];
/aosp12/frameworks/base/core/java/android/hardware/camera2/marshal/
H A 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;
/aosp12/frameworks/compile/mclinker/include/mcld/LD/
H A 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>
/aosp12/frameworks/compile/mclinker/lib/LD/
H A 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()
250 header->e_shoff = getLastStartOffset<SIZE>(pModule); in writeELFHeader()
297 template <size_t SIZE>
332 template <size_t SIZE>
477 template <size_t SIZE>
481 typedef typename ELFSizeTraits<SIZE>::Rel ElfXX_Rel; in emitRel()
519 template <size_t SIZE>
562 template <size_t SIZE>
[all …]
/aosp12/frameworks/base/libs/hwui/utils/
H A 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];
/aosp12/system/extras/f2fs_utils/
H A Dmkf2fsuserimg.sh31 SIZE=$2
36 MKFS_OPTS+=" -S $SIZE"
125 if [ -z $SIZE ]; then
136 TRUNCATE_CMD="truncate -s $SIZE $OUTPUT_FILE"
165 SIZE=$(((MB_SIZE + 6) * 1024 * 1024))
174 MKFS_OPTS+=" -S $SIZE"
/aosp12/frameworks/av/services/audioflinger/
H A 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)
/aosp12/frameworks/base/services/core/java/com/android/server/notification/
H A 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];
250 sNext = (sNext + 1) % SIZE; in append()
251 if (sSize < SIZE) { in append()
260 final int start = (sNext - sSize + SIZE) % SIZE; in dump()
262 final int j = (start + i) % SIZE; in dump()
/aosp12/system/netd/libnetdutils/
H A 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()
/aosp12/packages/modules/GeoTZ/s2storage/src/readonly/java/com/android/timezone/location/storage/s2/
H A DS2Support.java73 >>> (Long.SIZE - FACE_BIT_COUNT)); in getFaceIdValue()
83 if (unusedBitCount > Long.SIZE - FACE_BIT_COUNT) { in getValidIndex()
128 cellId <<= Long.SIZE - (storageBitCountForLevel + 1); in cellId()
201 return (facePlusTrailingBit) << (Long.SIZE - FACE_BIT_COUNT - 1); in offsetCellId()
234 if (trailingZeroCount == Long.SIZE) { in getS2Level()
237 int cellIdBitCount = Long.SIZE - trailingZeroCount; in getS2Level()
/aosp12/frameworks/base/core/tests/coretests/src/android/view/
H A 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()
/aosp12/art/test/082-inline-execute/src/
H A DMain.java1452 for (int i = 0; i < Integer.SIZE; i++) {
1469 Assert.assertEquals(Long.numberOfLeadingZeros(1L << ((Long.SIZE/2)-1)), Long.SIZE/2);
1472 for (int i = 0; i < Long.SIZE; i++) {
1614 for (int i = 0; i < Integer.SIZE; i++) {
1617 Integer.SIZE - 1 - i);
1620 Integer.SIZE - 1 - i);
1627 for (int i = 0; i < Long.SIZE; i++) {
1630 Long.SIZE - 1 - i);
1633 Long.SIZE - 1 - i);
1675 for (int i = 0; i < Long.SIZE; i++) {
[all …]

1234567891011