Home
last modified time | relevance | path

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

123

/aosp14/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()
/aosp14/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 …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/log/table/
H A DTableLogBufferFactoryTest.kt42 val b1 = underTest.create(NAME_1, SIZE)
43 val b1_copy = underTest.create(NAME_1, SIZE)
44 val b2 = underTest.create(NAME_2, SIZE)
45 val b2_copy = underTest.create(NAME_2, SIZE)
54 val b1 = underTest.getOrCreate(NAME_1, SIZE)
55 val b1_copy = underTest.getOrCreate(NAME_1, SIZE)
56 val b2 = underTest.getOrCreate(NAME_2, SIZE)
57 val b2_copy = underTest.getOrCreate(NAME_2, SIZE)
69 const val SIZE = 8
/aosp14/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 …]
/aosp14/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 …]
/aosp14/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];
/aosp14/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;
/aosp14/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];
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/shortcut/
H A 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;
/aosp14/frameworks/base/services/core/java/com/android/server/notification/
H A DZenLog.java44 private static final int SIZE = Build.IS_DEBUGGABLE ? 200 : 100; field in ZenLog
46 private static final long[] TIMES = new long[SIZE];
47 private static final int[] TYPES = new int[SIZE];
48 private static final String[] MSGS = new String[SIZE];
285 sNext = (sNext + 1) % SIZE; in append()
286 if (sSize < SIZE) { in append()
295 final int start = (sNext - sSize + SIZE) % SIZE; in dump()
297 final int j = (start + i) % SIZE; in dump()
/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
H A 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()
/aosp14/frameworks/base/core/tests/coretests/src/android/view/
H A DWindowInsetsTest.java19 import static android.view.WindowInsets.Type.SIZE;
61 Insets[] insets = new Insets[SIZE]; in compatInsets_layoutStable()
62 Insets[] maxInsets = new Insets[SIZE]; in compatInsets_layoutStable()
63 boolean[] visible = new boolean[SIZE]; in compatInsets_layoutStable()
/aosp14/frameworks/base/apct-tests/perftests/core/src/android/mtp_perf/
H A DAppFusePerfTest.java39 static final int SIZE = 10 * 1024 * 1024; // 10MB field in AppFusePerfTest
46 final byte[] bytes = new byte[SIZE]; in testReadWriteFile()
103 return SIZE; in onGetSize()
/aosp14/frameworks/base/core/java/android/util/
H A DSize.java147 return mHeight ^ ((mWidth << (Integer.SIZE / 2)) | (mWidth >>> (Integer.SIZE / 2))); in hashCode()
/aosp14/frameworks/base/core/java/android/view/
H A DWindowInsets.java27 import static android.view.WindowInsets.Type.SIZE;
143 ? new Insets[SIZE] in WindowInsets()
148 ? new Insets[SIZE] in WindowInsets()
249 Insets[] typeInsetsMap = new Insets[SIZE]; in createCompatTypeMap()
269 boolean[] typeVisibilityMap = new boolean[SIZE]; in createCompatVisibilityMap()
907 for (int i = 0; i < SIZE; i++) { in toString()
1083 for (int i = 0; i < SIZE; i++) { in insetInsets()
1143 mTypeInsetsMap = new Insets[SIZE]; in Builder()
1144 mTypeMaxInsetsMap = new Insets[SIZE]; in Builder()
1145 mTypeVisibilityMap = new boolean[SIZE]; in Builder()
[all …]
/aosp14/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
H A DMarshalQueryableSize.java32 private static final int SIZE = SIZEOF_INT32 * 2; field in MarshalQueryableSize
55 return SIZE; in getNativeSize()
H A DMarshalQueryableSizeF.java33 private static final int SIZE = SIZEOF_FLOAT * 2; field in MarshalQueryableSizeF
57 return SIZE; in getNativeSize()
H A DMarshalQueryableBlackLevelPattern.java32 private static final int SIZE = SIZEOF_INT32 * BlackLevelPattern.COUNT; field in MarshalQueryableBlackLevelPattern
60 return SIZE; in getNativeSize()
H A DMarshalQueryableColorSpaceTransform.java35 private static final int SIZE = SIZEOF_INT32 * ELEMENTS_INT32; field in MarshalQueryableColorSpaceTransform
67 return SIZE; in getNativeSize()
H A DMarshalQueryableRggbChannelVector.java32 private static final int SIZE = SIZEOF_FLOAT * RggbChannelVector.COUNT; field in MarshalQueryableRggbChannelVector
59 return SIZE; in getNativeSize()
H A DMarshalQueryableStreamConfiguration.java36 private static final int SIZE = SIZEOF_INT32 * 4; field in MarshalQueryableStreamConfiguration
64 return SIZE; in getNativeSize()
H A DMarshalQueryableStreamConfigurationDuration.java38 private static final int SIZE = SIZEOF_INT64 * 4; field in MarshalQueryableStreamConfigurationDuration
73 return SIZE; in getNativeSize()
H A DMarshalQueryableHighSpeedVideoConfiguration.java36 private static final int SIZE = SIZEOF_INT32 * 5; field in MarshalQueryableHighSpeedVideoConfiguration
68 return SIZE; in getNativeSize()
/aosp14/frameworks/base/media/java/android/media/
H A DAudioMetadata.java464 private static final int INTEGER_BYTE_COUNT = Integer.SIZE / Byte.SIZE;
465 private static final int LONG_BYTE_COUNT = Long.SIZE / Byte.SIZE;
466 private static final int FLOAT_BYTE_COUNT = Float.SIZE / Byte.SIZE;
467 private static final int DOUBLE_BYTE_COUNT = Double.SIZE / Byte.SIZE;

123