/aosp14/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | SmallCircleActivity.java | 38 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 D | ByteArrayHelpers.java | 51 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 D | TableLogBufferFactoryTest.kt | 42 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 D | ArchiveTest.java | 58 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 D | CallbackRegistry.java | 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() 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 D | StatLogger.java | 42 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 D | CommonPool.h | 33 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 D | MarshalHelpers.java | 36 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 D | RingBuffer.h | 26 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 D | ShortcutKeyDispatcher.java | 43 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 D | ZenLog.java | 44 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 D | RestrictedSwitchPreferenceTest.java | 37 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 D | WindowInsetsTest.java | 19 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 D | AppFusePerfTest.java | 39 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 D | Size.java | 147 return mHeight ^ ((mWidth << (Integer.SIZE / 2)) | (mWidth >>> (Integer.SIZE / 2))); in hashCode()
|
/aosp14/frameworks/base/core/java/android/view/ |
H A D | WindowInsets.java | 27 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 D | MarshalQueryableSize.java | 32 private static final int SIZE = SIZEOF_INT32 * 2; field in MarshalQueryableSize 55 return SIZE; in getNativeSize()
|
H A D | MarshalQueryableSizeF.java | 33 private static final int SIZE = SIZEOF_FLOAT * 2; field in MarshalQueryableSizeF 57 return SIZE; in getNativeSize()
|
H A D | MarshalQueryableBlackLevelPattern.java | 32 private static final int SIZE = SIZEOF_INT32 * BlackLevelPattern.COUNT; field in MarshalQueryableBlackLevelPattern 60 return SIZE; in getNativeSize()
|
H A D | MarshalQueryableColorSpaceTransform.java | 35 private static final int SIZE = SIZEOF_INT32 * ELEMENTS_INT32; field in MarshalQueryableColorSpaceTransform 67 return SIZE; in getNativeSize()
|
H A D | MarshalQueryableRggbChannelVector.java | 32 private static final int SIZE = SIZEOF_FLOAT * RggbChannelVector.COUNT; field in MarshalQueryableRggbChannelVector 59 return SIZE; in getNativeSize()
|
H A D | MarshalQueryableStreamConfiguration.java | 36 private static final int SIZE = SIZEOF_INT32 * 4; field in MarshalQueryableStreamConfiguration 64 return SIZE; in getNativeSize()
|
H A D | MarshalQueryableStreamConfigurationDuration.java | 38 private static final int SIZE = SIZEOF_INT64 * 4; field in MarshalQueryableStreamConfigurationDuration 73 return SIZE; in getNativeSize()
|
H A D | MarshalQueryableHighSpeedVideoConfiguration.java | 36 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 D | AudioMetadata.java | 464 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;
|