/frameworks/native/services/sensorservice/ |
D | vec.h | 36 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/ |
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()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
D | ByteArrayHelpers.java | 51 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/libs/hwui/utils/ |
D | FatVector.h | 41 template <typename T, size_t SIZE> 50 char array[sizeof(T) * SIZE]; 62 if (!mAllocation.inUse && num <= SIZE) { 87 template <typename T, size_t SIZE> 88 class FatVector : public std::vector<T, InlineStdAllocator<T, SIZE>> { 91 : std::vector<T, InlineStdAllocator<T, SIZE>>( in FatVector() 92 InlineStdAllocator<T, SIZE>(mAllocation)) { in FatVector() 93 this->reserve(SIZE); in FatVector() 99 typename InlineStdAllocator<T, SIZE>::Allocation mAllocation;
|
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];
|
/frameworks/base/core/java/com/android/internal/util/ |
D | StatLogger.java | 40 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 …]
|
D | CallbackRegistry.java | 100 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/ |
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;
|
/frameworks/base/libs/hwui/thread/ |
D | CommonPool.h | 32 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/compile/mclinker/include/mcld/LD/ |
D | ELFObjectWriter.h | 50 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/ |
D | ELFObjectWriter.cpp | 202 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/ |
D | BufLog.h | 81 #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/ |
D | ZenLog.java | 42 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/av/services/mediaanalytics/ |
D | MediaAnalyticsService.cpp | 242 const size_t SIZE = 512; in dump() local 243 char buffer[SIZE]; in dump() 247 snprintf(buffer, SIZE, "Permission Denial: " in dump() 333 snprintf(buffer, SIZE, "Dump of the %s process:\n", kServiceName); in dump() 361 const size_t SIZE = 512; in dumpHeaders() local 362 char buffer[SIZE]; in dumpHeaders() 364 snprintf(buffer, SIZE, "Protocol Version: %d\n", mDumpProto); in dumpHeaders() 369 snprintf(buffer, SIZE, "Metrics gathering: enabled\n"); in dumpHeaders() 371 snprintf(buffer, SIZE, "Metrics gathering: DISABLED via property\n"); in dumpHeaders() 375 snprintf(buffer, SIZE, in dumpHeaders() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
D | DozeLog.java | 35 private static final int SIZE = Build.IS_DEBUGGABLE ? 400 : 50; field in DozeLog 99 sTimes = new long[SIZE]; in init() 100 sMessages = new String[SIZE]; in init() 220 final int start = (sPosition - sCount + SIZE) % SIZE; in dump() 222 final int j = (start + i) % SIZE; in dump() 250 sPosition = (sPosition + 1) % SIZE; in log() 251 sCount = Math.min(sCount + 1, SIZE); in log()
|
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/include/ |
D | TypeConvert.h | 57 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/compile/mclinker/include/mcld/ADT/ |
D | SizeTraits.h | 17 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/base/packages/SystemUI/src/com/android/systemui/shortcut/ |
D | ShortcutKeyDispatcher.java | 47 protected final long META_MASK = ((long) KeyEvent.META_META_ON) << Integer.SIZE; 48 protected final long ALT_MASK = ((long) KeyEvent.META_ALT_ON) << Integer.SIZE; 49 protected final long CTRL_MASK = ((long) KeyEvent.META_CTRL_ON) << Integer.SIZE; 50 protected final long SHIFT_MASK = ((long) KeyEvent.META_SHIFT_ON) << Integer.SIZE;
|
/frameworks/native/libs/math/include/math/ |
D | vec2.h | 55 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);
|
D | vec4.h | 59 static constexpr size_t SIZE = 4; variable 60 inline constexpr size_type size() const { return SIZE; } in size() 66 assert(i < SIZE); 72 assert(i < SIZE);
|
D | vec3.h | 56 static constexpr size_t SIZE = 3; variable 57 inline constexpr size_type size() const { return SIZE; } in size() 63 assert(i < SIZE); 69 assert(i < SIZE);
|
/frameworks/av/media/libstagefright/foundation/ |
D | FoundationUtils.cpp | 81 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/av/media/libaaudio/src/fifo/ |
D | FifoBuffer.h | 33 SIZE = 2 enumerator 35 void *data[SIZE]; 36 int32_t numFrames[SIZE];
|
/frameworks/base/core/java/android/view/ |
D | WindowInsets.java | 25 import static android.view.WindowInsets.Type.SIZE; 137 ? new Insets[SIZE] in WindowInsets() 142 ? new Insets[SIZE] in WindowInsets() 214 this(createCompatTypeMap(systemWindowInsets), null, new boolean[SIZE], false, false, null); in WindowInsets() 226 Insets[] typeInsetMap = new Insets[SIZE]; in createCompatTypeMap() 240 boolean[] typeVisibilityMap = new boolean[SIZE]; in createCompatVisibilityMap() 859 for (int i = 0; i < SIZE; i++) { in insetInsets() 914 mTypeInsetsMap = new Insets[SIZE]; in Builder() 915 mTypeMaxInsetsMap = new Insets[SIZE]; in Builder() 916 mTypeVisibilityMap = new boolean[SIZE]; in Builder() [all …]
|
/frameworks/av/media/libmediaplayerservice/ |
D | StagefrightRecorder.cpp | 2309 const size_t SIZE = 256; in dump() local 2310 char buffer[SIZE]; in dump() 2315 snprintf(buffer, SIZE, " No file writer\n"); in dump() 2318 snprintf(buffer, SIZE, " Recorder: %p\n", this); in dump() 2319 snprintf(buffer, SIZE, " Output file (fd %d):\n", mOutputFd); in dump() 2321 snprintf(buffer, SIZE, " File format: %d\n", mOutputFormat); in dump() 2323 snprintf(buffer, SIZE, " Max file size (bytes): %" PRId64 "\n", mMaxFileSizeBytes); in dump() 2325 snprintf(buffer, SIZE, " Max file duration (us): %" PRId64 "\n", mMaxFileDurationUs); in dump() 2327 snprintf(buffer, SIZE, " File offset length (bits): %d\n", mUse64BitFileOffset? 64: 32); in dump() 2329 snprintf(buffer, SIZE, " Interleave duration (us): %d\n", mInterleaveDurationUs); in dump() [all …]
|