/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/av/services/audiopolicy/common/managerdefinitions/src/ |
D | VolumeCurve.cpp | 66 const size_t SIZE = 256; in dump() local 67 char buffer[SIZE]; in dump() 69 snprintf(buffer, SIZE, " {"); in dump() 72 snprintf(buffer, SIZE, "(%3d, %5d)", in dump() 82 const size_t SIZE = 256; in dump() local 83 char buffer[SIZE]; in dump() 87 snprintf(buffer, SIZE, "%s %02d %02d ", in dump() 91 snprintf(buffer, SIZE, "%04x : %02d, ", mIndexCur.keyAt(i), mIndexCur.valueAt(i)); in dump() 102 snprintf(buffer, SIZE, "%*s %s :", in dump() 113 const size_t SIZE = 256; in dump() local [all …]
|
D | AudioSourceDescriptor.cpp | 34 const size_t SIZE = 256; in dump() local 35 char buffer[SIZE]; in dump() 38 snprintf(buffer, SIZE, "mStream: %d\n", audio_attributes_to_stream_type(&mAttributes)); in dump() 40 snprintf(buffer, SIZE, "mDevice:\n"); in dump() 50 const size_t SIZE = 256; in dump() local 51 char buffer[SIZE]; in dump() 53 snprintf(buffer, SIZE, "\nAudio sources dump:\n"); in dump() 56 snprintf(buffer, SIZE, "- Source %d dump:\n", keyAt(i)); in dump()
|
D | AudioPatch.cpp | 42 const size_t SIZE = 256; in dump() local 43 char buffer[SIZE]; in dump() 46 snprintf(buffer, SIZE, "%*sAudio patch %d:\n", spaces, "", index+1); in dump() 48 snprintf(buffer, SIZE, "%*s- handle: %2d\n", spaces, "", mHandle); in dump() 50 snprintf(buffer, SIZE, "%*s- audio flinger handle: %2d\n", spaces, "", mAfPatchHandle); in dump() 52 snprintf(buffer, SIZE, "%*s- owner uid: %2d\n", spaces, "", mUid); in dump() 54 snprintf(buffer, SIZE, "%*s- %d sources:\n", spaces, "", mPatch.num_sources); in dump() 60 snprintf(buffer, SIZE, "%*s- Device ID %d %s\n", spaces + 2, "", in dump() 64 snprintf(buffer, SIZE, "%*s- Mix ID %d I/O handle %d\n", spaces + 2, "", in dump() 69 snprintf(buffer, SIZE, "%*s- %d sinks:\n", spaces, "", mPatch.num_sinks); in dump() [all …]
|
D | AudioGain.cpp | 103 const size_t SIZE = 256; in dump() local 104 char buffer[SIZE]; in dump() 107 snprintf(buffer, SIZE, "%*sGain %d:\n", spaces, "", index+1); in dump() 109 snprintf(buffer, SIZE, "%*s- mode: %08x\n", spaces, "", mGain.mode); in dump() 111 snprintf(buffer, SIZE, "%*s- channel_mask: %08x\n", spaces, "", mGain.channel_mask); in dump() 113 snprintf(buffer, SIZE, "%*s- min_value: %d mB\n", spaces, "", mGain.min_value); in dump() 115 snprintf(buffer, SIZE, "%*s- max_value: %d mB\n", spaces, "", mGain.max_value); in dump() 117 snprintf(buffer, SIZE, "%*s- default_value: %d mB\n", spaces, "", mGain.default_value); in dump() 119 snprintf(buffer, SIZE, "%*s- step_value: %d mB\n", spaces, "", mGain.step_value); in dump() 121 snprintf(buffer, SIZE, "%*s- min_ramp_ms: %d ms\n", spaces, "", mGain.min_ramp_ms); in dump() [all …]
|
D | EffectDescriptor.cpp | 27 const size_t SIZE = 256; in dump() local 28 char buffer[SIZE]; in dump() 31 snprintf(buffer, SIZE, " I/O: %d\n", mIo); in dump() 33 snprintf(buffer, SIZE, " Strategy: %d\n", mStrategy); in dump() 35 snprintf(buffer, SIZE, " Session: %d\n", mSession); in dump() 37 snprintf(buffer, SIZE, " Name: %s\n", mDesc.name); in dump() 39 snprintf(buffer, SIZE, " %s\n", mEnabled ? "Enabled" : "Disabled"); in dump() 179 const size_t SIZE = 256; in dump() local 180 char buffer[SIZE]; in dump() 182 snprintf(buffer, SIZE, in dump() [all …]
|
D | AudioRoute.cpp | 29 const size_t SIZE = 256; in dump() local 30 char buffer[SIZE]; in dump() 33 snprintf(buffer, SIZE, "%*s- Type: %s\n", spaces, "", mType == AUDIO_ROUTE_MUX ? "Mux" : "Mix"); in dump() 36 snprintf(buffer, SIZE, "%*s- Sink: %s\n", spaces, "", mSink->getTagName().string()); in dump() 40 snprintf(buffer, SIZE, "%*s- Sources: \n", spaces, ""); in dump() 43 snprintf(buffer, SIZE, "%*s%s \n", spaces + 4, "", mSources[i]->getTagName().string()); in dump()
|
D | AudioOutputDescriptor.cpp | 189 const size_t SIZE = 256; in dump() local 190 char buffer[SIZE]; in dump() 193 snprintf(buffer, SIZE, " ID: %d\n", mId); in dump() 195 snprintf(buffer, SIZE, " Sampling rate: %d\n", mSamplingRate); in dump() 197 snprintf(buffer, SIZE, " Format: %08x\n", mFormat); in dump() 199 snprintf(buffer, SIZE, " Channels: %08x\n", mChannelMask); in dump() 201 snprintf(buffer, SIZE, " Devices %08x\n", device()); in dump() 203 snprintf(buffer, SIZE, " Stream volume refCount muteCount\n"); in dump() 206 snprintf(buffer, SIZE, " %02d %.03f %02d %02d\n", in dump() 244 const size_t SIZE = 256; in dump() local [all …]
|
D | AudioSession.cpp | 142 const size_t SIZE = 256; in dump() local 143 char buffer[SIZE]; in dump() 146 snprintf(buffer, SIZE, "%*sAudio session %d:\n", spaces, "", index+1); in dump() 148 snprintf(buffer, SIZE, "%*s- session: %2d\n", spaces, "", mRecordClientInfo.session); in dump() 150 snprintf(buffer, SIZE, "%*s- owner uid: %2d\n", spaces, "", mRecordClientInfo.uid); in dump() 152 snprintf(buffer, SIZE, "%*s- input source: %d\n", spaces, "", mRecordClientInfo.source); in dump() 154 snprintf(buffer, SIZE, "%*s- format: %08x\n", spaces, "", mConfig.format); in dump() 156 snprintf(buffer, SIZE, "%*s- sample: %d\n", spaces, "", mConfig.sample_rate); in dump() 158 snprintf(buffer, SIZE, "%*s- channel mask: %08x\n", in dump() 161 snprintf(buffer, SIZE, "%*s- is soundtrigger: %s\n", in dump() [all …]
|
D | AudioInputDescriptor.cpp | 198 const size_t SIZE = 256; in dump() local 199 char buffer[SIZE]; in dump() 202 snprintf(buffer, SIZE, " ID: %d\n", getId()); in dump() 204 snprintf(buffer, SIZE, " Sampling rate: %d\n", mSamplingRate); in dump() 206 snprintf(buffer, SIZE, " Format: %d\n", mFormat); in dump() 208 snprintf(buffer, SIZE, " Channels: %08x\n", mChannelMask); in dump() 210 snprintf(buffer, SIZE, " Devices %08x\n", mDevice); in dump() 281 const size_t SIZE = 256; in dump() local 282 char buffer[SIZE]; in dump() 284 snprintf(buffer, SIZE, "\nInputs dump:\n"); in dump() [all …]
|
D | StreamDescriptor.cpp | 84 const size_t SIZE = 256; in dump() local 85 char buffer[SIZE]; in dump() 88 snprintf(buffer, SIZE, "%s %02d %02d ", in dump() 92 snprintf(buffer, SIZE, "%04x : %02d, ", in dump() 209 const size_t SIZE = 256; in dump() local 210 char buffer[SIZE]; in dump() 212 snprintf(buffer, SIZE, "\nStreams dump:\n"); in dump() 214 snprintf(buffer, SIZE, in dump() 218 snprintf(buffer, SIZE, " %02zu ", i); in dump()
|
D | AudioCollections.cpp | 45 const size_t SIZE = 256; in dump() local 46 char buffer[SIZE]; in dump() 48 snprintf(buffer, SIZE, "\n%*sAudio Routes (%zu):\n", spaces, "", size()); in dump() 51 snprintf(buffer, SIZE, "%*s- Route %zu:\n", spaces, "", i + 1); in dump()
|
D | AudioPolicyMix.cpp | 51 const size_t SIZE = 256; in dump() local 52 char buffer[SIZE]; in dump() 55 snprintf(buffer, SIZE, "%*sAudio Policy Mix %d:\n", spaces, "", index+1); in dump() 62 snprintf(buffer, SIZE, "%*s- mix type: %s\n", spaces, "", mixTypeLiteral.c_str()); in dump() 66 snprintf(buffer, SIZE, "%*s- Route Flags: %s\n", spaces, "", routeFlagLiteral.c_str()); in dump() 70 snprintf(buffer, SIZE, "%*s- device type: %s\n", spaces, "", deviceLiteral.c_str()); in dump() 72 snprintf(buffer, SIZE, "%*s- device address: %s\n", spaces, "", mDeviceAddress.string()); in dump() 77 snprintf(buffer, SIZE, "%*s- Criterion %d:\n", spaces + 2, "", indexCriterion++); in dump() 84 snprintf(buffer, SIZE, "%*s- Usage:%s\n", spaces + 4, "", usageLiteral.c_str()); in dump() 92 snprintf(buffer, SIZE, "%*s- Source:%s\n", spaces + 4, "", sourceLiteral.c_str()); in dump() [all …]
|
D | AudioProfile.cpp | 187 const size_t SIZE = 256; in dump() local 188 char buffer[SIZE]; in dump() 191 snprintf(buffer, SIZE, "%s%s%s\n", mIsDynamicFormat ? "[dynamic format]" : "", in dump() 196 snprintf(buffer, SIZE, "%*s- name: %s\n", spaces, "", mName.string()); in dump() 201 snprintf(buffer, SIZE, "%*s- format: %s\n", spaces, "", formatLiteral.c_str()); in dump() 205 snprintf(buffer, SIZE, "%*s- sampling rates:", spaces, ""); in dump() 208 snprintf(buffer, SIZE, "%d", mSamplingRates[i]); in dump() 216 snprintf(buffer, SIZE, "%*s- channel masks:", spaces, ""); in dump() 219 snprintf(buffer, SIZE, "0x%04x", mChannelMasks[i]); in dump()
|
/frameworks/base/libs/hwui/utils/ |
D | FatVector.h | 41 template <typename T, size_t SIZE> 49 char array[sizeof(T) * SIZE]; 63 if (!mAllocation.inUse && num <= SIZE) { 88 template <typename T, size_t SIZE> 89 class FatVector : public std::vector<T, InlineStdAllocator<T, SIZE>> { 91 FatVector() : std::vector<T, InlineStdAllocator<T, SIZE>>( in FatVector() 92 InlineStdAllocator<T, SIZE>(mAllocation)) { in FatVector() 93 this->reserve(SIZE); in FatVector() 101 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() 67 T mBuffer[SIZE];
|
/frameworks/base/core/java/com/android/internal/util/ |
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/data-binding/baseLibrary/src/main/java/android/databinding/ |
D | CallbackRegistry.java | 98 removeRemovedCallbacks((i + 1) * Long.SIZE, removedBits); in notifyCallbacks() 121 final int maxNotified = Math.min(Long.SIZE, mCallbacks.size()); in notifyFirst64() 149 final int startCallbackIndex = (remainderIndex + 2) * Long.SIZE; in notifyRecurse() 172 final int startIndex = (remainderIndex + 1) * Long.SIZE; in notifyRemainder() 173 final int endIndex = Math.min(mCallbacks.size(), startIndex + Long.SIZE); in notifyRemainder() 229 if (index < Long.SIZE) { in isRemoved() 237 final int maskIndex = (index / Long.SIZE) - 1; in isRemoved() 244 final long bitMask = 1L << (index % Long.SIZE); in isRemoved() 260 final int endIndex = startIndex + Long.SIZE; in removeRemovedCallbacks() 262 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/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/base/services/core/java/com/android/server/notification/ |
D | ZenLog.java | 40 private static final int SIZE = Build.IS_DEBUGGABLE ? 100 : 20; field in ZenLog 42 private static final long[] TIMES = new long[SIZE]; 43 private static final int[] TYPES = new int[SIZE]; 44 private static final String[] MSGS = new String[SIZE]; 216 sNext = (sNext + 1) % SIZE; in append() 217 if (sSize < SIZE) { in append() 226 final int start = (sNext - sSize + SIZE) % SIZE; in dump() 228 final int j = (start + i) % SIZE; in dump()
|
/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)
|