/frameworks/base/libs/protoutil/include/android/util/ |
D | ProtoOutputStream.h | 32 const uint64_t FIELD_TYPE_SHIFT = 32; 38 const uint64_t FIELD_TYPE_MASK = 0x0ffULL << FIELD_TYPE_SHIFT; 44 const uint64_t FIELD_TYPE_UNKNOWN = 0; 45 const uint64_t FIELD_TYPE_DOUBLE = 1ULL << FIELD_TYPE_SHIFT; // double, exactly eight bytes on … 46 const uint64_t FIELD_TYPE_FLOAT = 2ULL << FIELD_TYPE_SHIFT; // float, exactly four bytes on th… 47 const uint64_t FIELD_TYPE_INT64 = 3ULL << FIELD_TYPE_SHIFT; // int64, varint on the wire. Neg… 50 const uint64_t FIELD_TYPE_UINT64 = 4ULL << FIELD_TYPE_SHIFT; // uint64, varint on the wire. 51 const uint64_t FIELD_TYPE_INT32 = 5ULL << FIELD_TYPE_SHIFT; // int32, varint on the wire. Neg… 54 const uint64_t FIELD_TYPE_FIXED64 = 6ULL << FIELD_TYPE_SHIFT; // uint64, exactly eight bytes on … 55 const uint64_t FIELD_TYPE_FIXED32 = 7ULL << FIELD_TYPE_SHIFT; // uint32, exactly four bytes on t… [all …]
|
/frameworks/av/media/libstagefright/webm/ |
D | WebmElement.h | 30 const uint64_t mId, mSize; 32 WebmElement(uint64_t id, uint64_t size); 37 uint64_t totalSize(); 38 uint64_t serializeInto(uint8_t *buf); 39 uint8_t *serialize(uint64_t& size); 40 int write(int fd, uint64_t& size); 50 static sp<WebmElement> SegmentInfo(uint64_t scale = 1000000, double dur = 0); 58 uint64_t uid = 0, 64 uint64_t width, 65 uint64_t height, [all …]
|
D | EbmlUtil.cpp | 38 uint64_t highestOneBit(uint64_t n) { in highestOneBit() 48 uint64_t _powerOf2(uint64_t u) { in _powerOf2() 49 uint64_t powerOf2 = highestOneBit(u); in _powerOf2() 54 int numberOfTrailingZeros(uint64_t u) { in numberOfTrailingZeros() 75 uint64_t encodeUnsigned(uint64_t u) { in encodeUnsigned() 76 uint64_t powerOf2 = _powerOf2(u); in encodeUnsigned() 86 uint64_t encodeUnsigned(uint64_t u, int width) { in encodeUnsigned() 88 uint64_t lengthDescriptor = 1; in encodeUnsigned() 94 int sizeOf(uint64_t u) { in sizeOf() 95 uint64_t powerOf2 = _powerOf2(u); in sizeOf() [all …]
|
D | EbmlUtil.h | 36 uint64_t encodeUnsigned(uint64_t u); 40 uint64_t encodeUnsigned(uint64_t u, int width); 43 int serializeCodedUnsigned(uint64_t u, uint8_t* bary); 46 int sizeOf(uint64_t u);
|
/frameworks/rs/ |
D | rsHidlAdaptation.cpp | 217 uint64_t _allocation = (uint64_t)(uintptr_t)allocation; in AllocationGetType() 218 uint64_t typeRet = GetIContextHandle(context)->allocationGetType(_allocation); in AllocationGetType() 225 uint64_t _type = (uint64_t)(uintptr_t)type; in TypeGetNativeData() 228 [typedata, typeDataSize] (const hidl_vec<uint64_t> &retTypeData){ in TypeGetNativeData() 238 uint64_t _element = (uint64_t)(uintptr_t)element; in ElementGetNativeData() 250 uint64_t _element = (uint64_t)(uintptr_t)element; in ElementGetSubElements() 251 uint64_t _ids = (uint64_t)(uintptr_t)ids; in ElementGetSubElements() 252 uint64_t _names = (uint64_t)(uintptr_t)names; in ElementGetSubElements() 253 uint64_t _arraySizes = (uint64_t)(uintptr_t)arraySizes; in ElementGetSubElements() 256 …[ids, names, arraySizes, dataSize] (const hidl_vec<uint64_t> &retIds, const hidl_vec<hidl_string> … in ElementGetSubElements() [all …]
|
/frameworks/compile/mclinker/include/mcld/LD/ |
D | ELFSegment.h | 60 uint64_t offset() const { return m_Offset; } in offset() 61 uint64_t vaddr() const { return m_Vaddr; } in vaddr() 62 uint64_t paddr() const { return m_Paddr; } in paddr() 63 uint64_t filesz() const { return m_Filesz; } in filesz() 64 uint64_t memsz() const { return m_Memsz; } in memsz() 66 uint64_t align() const { return std::max(m_Align, m_MaxSectionAlign); } in align() 76 void setOffset(uint64_t pOffset) { m_Offset = pOffset; } in setOffset() 78 void setVaddr(uint64_t pVaddr) { m_Vaddr = pVaddr; } in setVaddr() 80 void setPaddr(uint64_t pPaddr) { m_Paddr = pPaddr; } in setPaddr() 82 void setFilesz(uint64_t pFilesz) { m_Filesz = pFilesz; } in setFilesz() [all …]
|
D | LDSection.h | 41 uint64_t pSize = 0, 42 uint64_t pAddr = 0); 51 uint64_t pSize = 0, 52 uint64_t pAddr = 0); 83 uint64_t size() const { return m_Size; } in size() 87 uint64_t offset() const { return m_Offset; } in offset() 99 uint64_t addr() const { return m_Addr; } in addr() 120 void setSize(uint64_t size) { m_Size = size; } in setSize() 122 void setOffset(uint64_t Offset) { m_Offset = Offset; } in setOffset() 124 void setAddr(uint64_t addr) { m_Addr = addr; } in setAddr() [all …]
|
/frameworks/native/libs/nativewindow/tests/ |
D | AHardwareBufferTest.cpp | 30 static ::testing::AssertionResult BuildHexFailureMessage(uint64_t expected, in BuildHexFailureMessage() 31 uint64_t actual, const char* type) { in BuildHexFailureMessage() 40 uint64_t grallocUsage, uint64_t hardwareBufferUsage) { in TestUsageConversion() 41 uint64_t convertedGrallocUsage = AHardwareBuffer_convertToGrallocUsageBits(hardwareBufferUsage); in TestUsageConversion() 45 … uint64_t convertedHArdwareBufferUsage = AHardwareBuffer_convertFromGrallocUsageBits(grallocUsage); in TestUsageConversion() 55 EXPECT_TRUE(TestUsageConversion((uint64_t)BufferUsage::CPU_READ_RARELY, in TEST() 57 EXPECT_TRUE(TestUsageConversion((uint64_t)BufferUsage::CPU_READ_OFTEN, in TEST() 59 EXPECT_TRUE(TestUsageConversion((uint64_t)BufferUsage::CPU_WRITE_RARELY, in TEST() 61 EXPECT_TRUE(TestUsageConversion((uint64_t)BufferUsage::CPU_WRITE_OFTEN, in TEST() 64 EXPECT_TRUE(TestUsageConversion((uint64_t)BufferUsage::GPU_TEXTURE, in TEST() [all …]
|
/frameworks/native/libs/ui/include/ui/ |
D | Gralloc.h | 56 uint32_t layerCount, uint64_t usage, 64 virtual status_t lock(buffer_handle_t bufferHandle, uint64_t usage, const Rect& bounds, 70 virtual status_t lock(buffer_handle_t bufferHandle, uint64_t usage, const Rect& bounds, 85 uint64_t /*usage*/, bool* /*outSupported*/) const { in isSupported() argument 90 uint64_t* /*outBufferId*/) const { in getBufferId() argument 96 virtual status_t getWidth(buffer_handle_t /*bufferHandle*/, uint64_t* /*outWidth*/) const { in getWidth() argument 99 virtual status_t getHeight(buffer_handle_t /*bufferHandle*/, uint64_t* /*outHeight*/) const { in getHeight() argument 103 uint64_t* /*outLayerCount*/) const { in getLayerCount() argument 115 uint64_t* /*outPixelFormatModifier*/) const { in getPixelFormatModifier() argument 118 virtual status_t getUsage(buffer_handle_t /*bufferHandle*/, uint64_t* /*outUsage*/) const { in getUsage() argument [all …]
|
D | GraphicBufferMapper.h | 59 PixelFormat format, uint64_t usage, uint32_t stride, 79 status_t lockAsync(buffer_handle_t handle, uint64_t producerUsage, uint64_t consumerUsage, 90 uint32_t layerCount, uint64_t usage, bool* outSupported); 97 status_t getBufferId(buffer_handle_t bufferHandle, uint64_t* outBufferId); 99 status_t getWidth(buffer_handle_t bufferHandle, uint64_t* outWidth); 100 status_t getHeight(buffer_handle_t bufferHandle, uint64_t* outHeight); 101 status_t getLayerCount(buffer_handle_t bufferHandle, uint64_t* outLayerCount); 105 status_t getPixelFormatModifier(buffer_handle_t bufferHandle, uint64_t* outPixelFormatModifier); 106 status_t getUsage(buffer_handle_t bufferHandle, uint64_t* outUsage); 107 status_t getAllocationSize(buffer_handle_t bufferHandle, uint64_t* outAllocationSize); [all …]
|
D | Gralloc4.h | 52 PixelFormat format, uint32_t layerCount, uint64_t usage, 58 status_t lock(buffer_handle_t bufferHandle, uint64_t usage, const Rect& bounds, 62 status_t lock(buffer_handle_t bufferHandle, uint64_t usage, const Rect& bounds, 68 uint64_t usage, bool* outSupported) const override; 70 status_t getBufferId(buffer_handle_t bufferHandle, uint64_t* outBufferId) const override; 72 status_t getWidth(buffer_handle_t bufferHandle, uint64_t* outWidth) const override; 73 status_t getHeight(buffer_handle_t bufferHandle, uint64_t* outHeight) const override; 74 status_t getLayerCount(buffer_handle_t bufferHandle, uint64_t* outLayerCount) const override; 80 uint64_t* outPixelFormatModifier) const override; 81 status_t getUsage(buffer_handle_t bufferHandle, uint64_t* outUsage) const override; [all …]
|
/frameworks/compile/mclinker/include/mcld/ADT/ |
D | SizeTraits.h | 32 typedef uint64_t Address; 33 typedef uint64_t Offset; 34 typedef uint64_t Word; 85 inline void alignAddress(uint64_t& pAddr, uint64_t pAlignConstraint) { in alignAddress() 91 uint64_t Align(uint64_t pAddress); 94 inline uint64_t Align<32>(uint64_t pAddress) { 99 inline uint64_t Align<64>(uint64_t pAddress) { 128 inline uint64_t bswap64(uint64_t pData) { in bswap64() 153 inline uint64_t signExtend(uint64_t pVal) { in signExtend() 154 uint64_t mask = (~((uint64_t)0)) >> (64 - WIDTH); in signExtend() [all …]
|
/frameworks/base/tests/JankBench/app/src/main/jni/ |
D | Bench.h | 49 bool runPowerManagementTest(uint64_t options); 50 bool runCPUHeatSoak(uint64_t options); 54 float runMemoryBandwidthTest(uint64_t options); 55 float runMemoryLatencyTest(uint64_t options); 57 float runGFlopsTest(uint64_t options); 67 uint64_t getTimeNanos() const; 68 uint64_t getTimeMillis() const; 95 uint64_t mTimeStartNanos; 96 uint64_t mTimeEndNanos; 97 uint64_t mTimeBucketDivisor; [all …]
|
/frameworks/av/media/libstagefright/foundation/ |
D | ByteUtils.cpp | 32 uint64_t U64_AT(const uint8_t *ptr) { in U64_AT() 33 return ((uint64_t)U32_AT(ptr)) << 32 | U32_AT(ptr + 4); in U64_AT() 44 uint64_t U64LE_AT(const uint8_t *ptr) { in U64LE_AT() 45 return ((uint64_t)U32LE_AT(ptr + 4)) << 32 | U32LE_AT(ptr); in U64LE_AT() 49 uint64_t ntoh64(uint64_t x) { in ntoh64() 50 return ((uint64_t)ntohl(x & 0xffffffff) << 32) | ntohl(x >> 32); in ntoh64() 53 uint64_t hton64(uint64_t x) { in hton64() 54 return ((uint64_t)htonl(x & 0xffffffff) << 32) | htonl(x >> 32); in hton64()
|
/frameworks/native/libs/ui/include_vndk/ui/ |
D | GraphicBufferMapper.h | 59 PixelFormat format, uint64_t usage, uint32_t stride, 79 status_t lockAsync(buffer_handle_t handle, uint64_t producerUsage, uint64_t consumerUsage, 90 uint32_t layerCount, uint64_t usage, bool* outSupported); 97 status_t getBufferId(buffer_handle_t bufferHandle, uint64_t* outBufferId); 99 status_t getWidth(buffer_handle_t bufferHandle, uint64_t* outWidth); 100 status_t getHeight(buffer_handle_t bufferHandle, uint64_t* outHeight); 101 status_t getLayerCount(buffer_handle_t bufferHandle, uint64_t* outLayerCount); 105 status_t getPixelFormatModifier(buffer_handle_t bufferHandle, uint64_t* outPixelFormatModifier); 106 status_t getUsage(buffer_handle_t bufferHandle, uint64_t* outUsage); 107 status_t getAllocationSize(buffer_handle_t bufferHandle, uint64_t* outAllocationSize); [all …]
|
/frameworks/compile/mclinker/lib/Support/ |
D | LEB128.cpp | 17 size_t encode<uint64_t>(ByteType*& pBuf, uint64_t pValue) { in encode() 96 uint64_t decode<uint64_t>(const ByteType* pBuf, size_t& pSize) { in decode() 97 uint64_t result = 0; in decode() 127 result |= (static_cast<uint64_t>(byte & 0x7f) << shift); in decode() 136 uint64_t decode<uint64_t>(const ByteType*& pBuf) { in decode() 138 uint64_t result; in decode() 171 result |= (static_cast<uint64_t>(byte & 0x7f) << shift); in decode() 185 uint64_t result = 0; in decode() 194 result |= (static_cast<uint64_t>(byte & 0x7f) << shift); in decode() 199 result |= ((static_cast<uint64_t>(-1)) << shift); in decode() [all …]
|
/frameworks/base/media/mca/filterfw/native/core/ |
D | time_util.h | 28 uint64_t getTimeUs(); 32 static const uint64_t kDefaultLoggingPeriodInFrames; 39 void SetLoggingPeriodInFrames(uint64_t numFrames) { in SetLoggingPeriodInFrames() 44 uint64_t NumCalls() const { return mNumCalls; } in NumCalls() 45 uint64_t TotalUSec() const { return mTotalUSec; } in TotalUSec() 49 uint64_t mLoggingPeriodInFrames; 50 uint64_t mStartUSec; 51 uint64_t mNumCalls; 52 uint64_t mTotalUSec;
|
/frameworks/base/media/mca/filterpacks/native/base/ |
D | time_util.h | 28 uint64_t getTimeUs(); 32 static const uint64_t kDefaultLoggingPeriodInFrames; 39 void SetLoggingPeriodInFrames(uint64_t numFrames) { in SetLoggingPeriodInFrames() 44 uint64_t NumCalls() const { return mNumCalls; } in NumCalls() 45 uint64_t TotalUSec() const { return mTotalUSec; } in TotalUSec() 49 uint64_t mLoggingPeriodInFrames; 50 uint64_t mStartUSec; 51 uint64_t mNumCalls; 52 uint64_t mTotalUSec;
|
/frameworks/av/media/codec2/core/include/ |
D | C2BufferBase.h | 46 enum read_t : uint64_t { 61 enum write_t : uint64_t { 73 enum : uint64_t { 82 inline C2MemoryUsage(uint64_t consumer, uint64_t producer) in C2MemoryUsage() 85 inline explicit C2MemoryUsage(uint64_t expected_) in C2MemoryUsage() 88 uint64_t expected; // expected buffer usage
|
/frameworks/base/cmds/statsd/src/ |
D | hash.cpp | 37 inline uint64_t DecodeFixed64(const char* ptr) { in DecodeFixed64() 38 uint64_t lo = DecodeFixed32(ptr); in DecodeFixed64() 39 uint64_t hi = DecodeFixed32(ptr + 4); in DecodeFixed64() 45 static inline uint64_t ByteAs64(char c) { return static_cast<uint64_t>(c) & 0xff; } in ByteAs64() 91 uint64_t Hash64(const char* data, size_t n, uint64_t seed) { in Hash64() 92 const uint64_t m = 0xc6a4a7935bd1e995; in Hash64() 95 uint64_t h = seed ^ (n * m); in Hash64() 98 uint64_t k = DecodeFixed64(data); in Hash64()
|
/frameworks/av/services/camera/libcameraservice/device3/ |
D | BufferUtils.h | 66 typedef std::unordered_map<const buffer_handle_t, uint64_t, 74 typedef std::unordered_map<uint64_t, buffer_handle_t*> InflightBufferMap; 77 typedef std::unordered_map<uint64_t, std::pair<int32_t, buffer_handle_t*>> RequestedBufferMap; 101 virtual std::pair<bool, uint64_t> getBufferId( 110 uint64_t removeOneBufferCache(int streamId, const native_handle_t* handle); 114 std::vector<uint64_t> clearBufferCaches(int streamId); 119 bool verifyBufferIds(int32_t streamId, std::vector<uint64_t>& inBufIds); 136 void getInflightRequestBufferKeys(std::vector<uint64_t>* out); 140 uint64_t bufferId, buffer_handle_t* buf, int32_t streamId) override; 143 virtual status_t popInflightRequestBuffer(uint64_t bufferId, [all …]
|
/frameworks/native/libs/cputimeinstate/ |
D | testtimeinstate.cpp | 36 static constexpr uint64_t NSEC_PER_SEC = 1000000000; 37 static constexpr uint64_t NSEC_PER_YEAR = NSEC_PER_SEC * 60 * 60 * 24 * 365; 53 uint64_t policyEntries = 0; in TEST() 63 uint64_t policySum = 0; in TestConcurrentTimesConsistent() 86 static void TestUidTimesConsistent(const std::vector<std::vector<uint64_t>> &timeInState, in TestUidTimesConsistent() 90 uint64_t policySum = 0; in TestUidTimesConsistent() 92 uint64_t tisSum = in TestUidTimesConsistent() 93 std::accumulate(timeInState[i].begin(), timeInState[i].end(), (uint64_t)0); in TestUidTimesConsistent() 94 uint64_t concurrentSum = std::accumulate(concurrentTime.policy[i].begin(), in TestUidTimesConsistent() 95 concurrentTime.policy[i].end(), (uint64_t)0); in TestUidTimesConsistent() [all …]
|
/frameworks/base/tools/streaming_proto/ |
D | stream_proto_utils.cpp | 9 const uint64_t FIELD_TYPE_SHIFT = 32; 15 const uint64_t FIELD_COUNT_SHIFT = 40; 16 const uint64_t FIELD_COUNT_SINGLE = 1ULL << FIELD_COUNT_SHIFT; 17 const uint64_t FIELD_COUNT_REPEATED = 2ULL << FIELD_COUNT_SHIFT; 18 const uint64_t FIELD_COUNT_PACKED = 5ULL << FIELD_COUNT_SHIFT; 20 uint64_t 24 uint64_t result = (uint32_t)field.number(); in get_field_id() 27 result |= (uint64_t)field.type() << FIELD_TYPE_SHIFT; in get_field_id()
|
/frameworks/av/media/mtp/ |
D | MtpStorage.cpp | 35 const char* description, bool removable, uint64_t maxFileSize) in MtpStorage() 61 uint64_t MtpStorage::getMaxCapacity() { in getMaxCapacity() 66 mMaxCapacity = (uint64_t)stat.f_blocks * (uint64_t)stat.f_bsize; in getMaxCapacity() 71 uint64_t MtpStorage::getFreeSpace() { in getFreeSpace() 75 return (uint64_t)stat.f_bavail * (uint64_t)stat.f_bsize; in getFreeSpace()
|
/frameworks/base/core/jni/ |
D | com_android_internal_os_FuseAppLoop.cpp | 49 std::map<uint64_t, std::unique_ptr<LocalBytes>> mBuffers; 55 void OnLookup(uint64_t unique, uint64_t inode) override { in OnLookup() 59 void OnGetAttr(uint64_t unique, uint64_t inode) override { in OnGetAttr() 63 void OnOpen(uint64_t unique, uint64_t inode) override { in OnOpen() 75 void OnFsync(uint64_t unique, uint64_t inode) override { in OnFsync() 79 void OnRelease(uint64_t unique, uint64_t inode) override { in OnRelease() 84 void OnRead(uint64_t unique, uint64_t inode, uint64_t offset, uint32_t size) override { in OnRead() 93 void OnWrite(uint64_t unique, uint64_t inode, uint64_t offset, uint32_t size, in OnWrite()
|